1 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
4 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
5 builtin functions to generate faster code.
6 (_mm_cvtpu16_ps): Ditto.
7 (_mm_cvtpi32x2_ps): Ditto.
9 2008-04-22 Nick Clifton <nickc@redhat.com>
11 * common.opt (ftree-loop-distribution): Add Optimization
14 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
15 (frv_expand_builtin_va_start): Likewise.
17 * config/arm/arm.c (thumb_find_work_register): Fix location of
18 argument register count.
20 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
22 Support scheduling for ColdFire V1 and V3 microarchitecture.
23 Improve scheduling of multiplication instructions.
25 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
26 (mac): New instruction attribute.
27 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
28 (m68k_sched_mac): New variable.
29 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
31 (max_insn_size): New static variable.
32 (struct _sched_ib): New type.
33 (sched_ib): New static variable.
34 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
35 to fields of 'struct _sched_ib sched_ib'. Update all uses.
36 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
38 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
39 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
40 new variables. Update.
41 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
42 Add modeling of cfv3 instruction buffer. Update.
43 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
44 * config/m68k/m68k.h (TUNE_CFV3): New macro.
45 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
46 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
47 a particular reservation applies to.
48 (type2): Reorganize attribute values. Rename alu to alu_reg,
49 alu_l to alu, move_l to omove. Join move to alu. Split mul
51 (cf_ib_*): Simplify description of instruction buffer.
52 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
53 (cf_mem): Split into cf_mem1 and cf_mem2.
54 (cf_v2_move_??): Rename to cfv12_alu_??.
55 (cf_v2_move_l_??): Rename to cfv12_omove_??.
56 (cf_v2_mul_??): Remove reservations.
57 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
58 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
59 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
61 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
62 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
63 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
64 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
65 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
66 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
67 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
68 expansions of the above reservations for instructions of sizes
71 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
73 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
75 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
77 * coverage.c: Include tree-pass.h.
78 (coverage_counter_alloc): Print da_file_name to the dump file.
80 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
82 * sbitmap.c (sbitmap_range_empty_p): New function.
83 * sbitmap.h (sbitmap_range_empty_p): New function.
84 * bitmap.h: Now includes obstack.h.
86 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
87 Kenneth Zadeck <zadeck@naturalbridge.com>
89 * dbgcnt.def (ra_byte_scan): Added.
90 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
91 when the last hit happens for a counter.
92 * timevar.def (TV_DF_BYTE_LR): New variable.
93 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
94 * passes.c (pass_fast_rtl_byte_dce): New pass.
95 * fwprop.c (update_df): Added mode to call df_ref_create.
96 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
97 DF_REF_EXTRACT_OFFSET.
98 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
99 DF_BYTE_LR_OUT, df_byte_lr): New macro.
101 (df_ref_extract): Added mode field.
102 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
103 DF_REF_EXTRACT_OFFSET.
104 (DF_REF_EXTRACT_MODE): New macro.
105 (df_byte_lr_bb_info): New structure.
106 (df_print_byte_regset, df_compute_accessed_bytes,
107 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
108 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
109 df_byte_lr_simulate_uses,
110 df_byte_lr_simulate_artificial_refs_at_top,
111 df_byte_lr_simulate_artificial_refs_at_end,
112 df_compute_accessed_bytes): New function.
113 (df_ref_create): Add parameter.
114 (df_byte_lr_get_bb_info): New inline function.
115 * df-scan.c (df_ref_record, df_uses_record,
116 df_ref_create_structure): Added mode parameter.
117 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
118 df_defs_record, df_uses_record, df_get_conditional_uses,
119 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
120 df_entry_block_defs_collect, df_exit_block_uses_collect):
121 Added mode parameter to calls to df_ref_record, df_uses_record,
122 df_ref_create_structure.
123 (df_ref_equal_p, df_ref_compare): Added test for modes.
124 (df_ref_create_structure): Added code to set mode. Renamed
125 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
126 DF_REF_EXTRACT_OFFSET.
127 * df-core.c (df_print_byte_regset): New function.
128 * df-byte-scan.c: New file.
129 * df-problems.c (df_rd_transfer_function): Removed unnecessary
130 calls to BITMAP_FREE.
131 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
132 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
133 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
134 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
135 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
136 df_byte_lr_local_compute, df_byte_lr_init,
137 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
138 df_byte_lr_transfer_function, df_byte_lr_free,
139 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
140 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
141 df_byte_lr_simulate_uses,
142 df_byte_lr_simulate_artificial_refs_at_top,
143 df_byte_lr_simulate_artificial_refs_at_end): New function.
144 * dce.c (byte_dce_process_block): New function.
145 (dce_process_block): au is now passed in rather than computed
146 locally. Changed loops that look at artificial defs to not look
147 for conditional or partial ones, because there never are any.
148 (fast_dce): Now is able to drive byte_dce_process_block or
149 dce_process_block depending on the kind of dce being done.
150 (rest_of_handle_fast_dce): Add parameter to fast_dce.
151 (rest_of_handle_fast_byte_dce): New function.
152 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
153 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
155 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
158 * gcc.h: Added fortran options that take arguments to
159 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
162 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
164 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
165 scalarization if on the LHS and not a full access.
167 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
169 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
171 2008-04-18 Rafael Espindola <espindola@google.com>
173 * tree-vrp.c (find_case_label_index): Fix the binary search.
174 (find_case_label_range): New.
175 (vrp_visit_switch_stmt): Use find_case_label_range.
176 (simplify_switch_using_ranges): Use find_case_label_range.
178 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
180 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
181 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
183 2008-04-18 Tom Tromey <tromey@redhat.com>
186 * doc/cpp.texi (Implementation-defined behavior): Mention
189 2008-04-18 Ian Lance Taylor <iant@google.com>
191 * fold-const.c (pointer_may_wrap_p): New static function.
192 (fold_comparison): Add another test for pointer overflow. Use
193 pointer_may_wrap_p to disable some false positives.
195 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
197 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
198 (fname_as_string): Match updated cpp_interpret_string prototype.
199 (fix_string_type): Support char16_t* and char32_t*.
200 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
201 derivative) nodes. Register as builtin if C++0x.
202 (c_parse_error): Support CPP_CHAR{16,32}.
203 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
204 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
205 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
206 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
207 CTI_CHAR32_ARRAY_TYPE>: New elements.
208 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
209 char32_type_node, signed_char32_type_node, char16_array_type_node,
210 char32_array_type_node): New defines.
211 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
212 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
213 (lex_string): Support CPP_STRING{16,32}, match updated
214 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
215 (lex_charconst): Support CPP_CHAR{16,32}.
216 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
217 and CPP_STRING{16,32}.
219 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
222 * aclocal.m4: Regenerate.
223 * configure: Regenerate.
225 2008-04-18 Jan Hubicka <jh@suse.cz>
227 * except.c (dw2_size_of_call_site_table,
228 sjlj_size_of_call_site_table): Use vector API for call_site_record.
230 * cgraphbuild.c (build_cgraph_edges): Update.
231 * tree-pass.h: Update comment.
232 * final.c (leaf_function_p): Update.
233 (leaf_renumber_regs): Update.
234 (rest_of_clean_state): Update.
235 * omp-low.c (expand_omp_parallel): Update.
236 * ipa-reference.c (analyze_function): Update.
237 * reorg.c (find_end_label): Update.
238 (optimize_skip): Update.
239 (fill_simple_delay_slots): Update.
240 (fill_simple_delay_slots): Update.
241 (make_return_insns): Update.
242 (dbr_schedule): Update.
243 * gimple-low.c (record_vars_into): Update.
244 * cfgbuild.c (make_edges): Update.
245 * function.c (assign_stack_local): Update.
246 (assign_parm_adjust_stack_rtl): Update.
247 (locate_and_pad_parm): Update.
248 (allocate_struct_function): Do not initialize stack_alignment_needed
249 and preferred_stack_boundary here.
250 (stack_protect_prologue): Update.
251 (stack_protect_epilogue): Update.
252 (expand_function_start): Initialize stack_alignment_needed,
253 preferred_stack_boundary and max_jumptable_ents.
254 (expand_function_end): Update.
255 (free_after_compilation): Do not NULLify epilogue_delay_list.
256 * function.h (struct rtl_data): Add stack_protect_guard,
257 stack_alignment_needed,
258 preferred_stack_boundary, epilogue_delay_list.
259 (struct function): Remove value_histograms, stack_alignment_needed,
260 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
262 unexpanded_var_list, stack_protect_guard.
263 (current_function_epilogue_delay_list): Remove.
264 * ipa-type-escape.c (analyze_function): Update.
265 * gimplify.c (pop_gimplify_context): Update comment.
266 * calls.c (expand_call): Update.
267 (emit_library_call_value_1): Update.
268 * except.c (set_nothrow_function_flags): Update.
269 * cfgexpand.c (get_decl_align_unit): Update.
270 (create_stack_guard): Update.
271 (estimated_stack_frame_size): Update.
272 (expand_used_vars): Update.
273 (tree_expand_cfg): Free histogram earliers, init expansion variables.
274 * explow.c (allocate_dynamic_stack_space): Update.
275 * tree-ssa-live.c (remove_unused_locals): Update.
276 * varasm.c (mark_constant_pool): Update.
277 * tree-inline.c (remap_decls): Update.
278 (initialize_cfun): Update.
279 (declare_return_variable): Update.
280 (inline_forbidden_p): Update.
281 (expand_call_inline): Update.
282 (declare_inline_vars): Update.
283 (tree_function_versioning): Update.
284 * tree-flow.h (value_histograms): New.
285 (VALUE_HISTOGRAMS): New macro.
286 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
288 * tree-cfg.c (set_bb_for_stmt): Update.
289 (replace_by_duplicate_decl): Update.
290 (move_block_to_fn): Update.
291 (new_label_mapper): Update.
292 (dump_function_to_file): Update.
293 * ipa-struct-reorg.c (build_data_structure): Update.
294 * cfgrtl.c (print_rtl_with_bb): Update.
295 * reload1.c (reload): Update.
297 * config/i386/i386.c (setup_incoming_varargs_64,
298 ix86_compute_frame_layout): Update.
299 * config/arc/arc.c (arc_output_function_epilogue): Update.
301 2008-04-18 Marius Strobl <marius@FreeBSD.org>
303 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
305 * gthr-posix95.h: Likewise.
307 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
309 PR rtl-optimization/35838
310 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
311 out the byte offset of the first subreg.
313 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
315 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
316 to split_ti instead of three separate calls with single member arrays.
317 (subti3 splitter): Ditto.
318 (adddi3 splitter): Ditto with split_di.
319 (subdi3 splitter): Ditto.
320 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
321 two separate calls with single member arrays. Swap match_dup
322 operands 1 and 2 to better fit into the array.
323 (negdi2 splitter): Ditto with split_di.
324 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
325 two separate calls with single member arrays. Swap match_dup operands
326 6 and 7 to better fit into the array.
328 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
330 * config/i386/i386.c (sse_builtin_type): New.
331 (bdesc_sse_args): Likewise.
332 (bdesc_sse_3arg): Removed.
333 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
334 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
335 IX86_BUILTIN_ROUNDPS.
336 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
337 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
338 IX86_BUILTIN_ROUNDPS.
339 (ix86_expand_sse_4_operands_builtin): Removed.
340 (ix86_expand_sse_operands_builtin): New.
341 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
342 and CODE_FOR_sse4_1_roundps.
343 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
344 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
346 2008-04-17 Alan Modra <amodra@bigpond.net.au>
349 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
350 regs before frame pop when needed. If use_backchain_to_restore_sp
351 then load backchain into a temp reg to restore vr and vrsave. Add
352 code to restore vr after frame pop if possible.
354 2008-04-17 Richard Guenther <rguenther@suse.de>
356 * tree-vn.c (expressions_equal_p): Do not check type
357 equality or compatibility before calling operand_equal_p.
358 * fold-const.c (operand_equal_p): Check equivalence of
359 integer constants before bailing out due to signedness or
360 precision differences.
361 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
362 spurious differences in type qualification. Ignore types
363 for COMPONENT_REFs at all.
365 2008-04-17 Christian Bruel <christian.bruel@st.com>
367 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
370 2008-04-16 Jakub Jelinek <jakub@redhat.com>
373 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
376 PR tree-optimization/35899
377 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
378 rather than TREE_OPERAND.
380 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
383 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
384 temporary registers. Change operand predicate to general_operand.
385 (remainderxf3): Ditto.
387 2008-04-16 Richard Guenther <rguenther@suse.de>
389 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
390 * tree-affine.c (aff_combination_expand): Look through some
393 2008-04-15 Doug Kwan <dougkwan@google.com>
395 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
397 * tree-pretty-print.c (dump_generic_node): Ditto.
398 * final.c (output_addr_const): Ditto.
399 * dwarf2out.c (output_cfi): Ditto.
400 * c-pretty-print.c (pp_c_integer_constant): Ditto.
401 * print-rtl.c (print_rtx): Ditto.
402 * print-tree.c (print_node_brief, print_node): Ditto.
403 * c-common.c (match_case_to_enum_1): Ditto.
404 * sched-vis.c (print_value): Ditto.
405 * config/i386/i386.c (print_operand): Cast to long unsigned int
408 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
409 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
410 MS Windows VirtualProtect function.
412 2008-04-15 Jan Hubicka <jh@suse.cz>
414 * gengtype.c (write_root): Param_is argument is OK.
415 * expr.c (expand_expr_real_1): Update call of get_exception_*.
416 * function.h: Include varray.h
417 (rtl_eh): New stucture based on except.c one.
418 (call_site_record): New forward declaration and vector type.
419 * calls.c (emit_call_1): Do not call
420 note_current_region_may_contain_throw.
421 * except.c (eh_status): Remove cur_region, try_region since they are
423 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
424 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
425 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
426 Remove call_site_data_used, call_site_data_size.
427 Turn call_site_record into vector in function.h.
428 (note_current_region_may_contain_throw): Remove.
429 (get_exception_pointer, get_exception_filter): Do not take struct
430 function argument; update.
431 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
432 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
433 build_post_landing_pads, dw2_build_landing_pads,
434 sjlj_assign_call_site_values, sjlj_mark_call_sites,
435 sjlj_emit_function_enter, sjlj_emit_function_enter,
436 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
437 sjlj_build_landing_pads, finish_eh_generation,
438 remove_exception_handler_label, remove_eh_handler,
439 maybe_remove_eh_handler, add_reachable_handler,
440 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
441 add_action_record, collect_one_action_chain, add_call_site,
442 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
443 sjlj_output_call_site_table, output_function_exception_table,
444 * except.h (note_current_region_may_contain_throw): Remove
445 (get_exception_pointer, get_exception_filter): Do not take struct
447 * Makefile.in (GTFILES): Put varargs before struct function.
449 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
451 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
453 (get_constraint_for): Deal with STRING_CST here instead.
455 2008-04-15 Richard Guenther <rguenther@suse.de>
457 * tree-ssa-propagate.c (substitute_and_fold): Substitute
458 statements in a basic-block with a backward walk. Do not
459 substitute into dead statements but instead remove those.
461 2008-04-15 Richard Guenther <rguenther@suse.de>
463 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
464 to zero, thus disable creation of SFTs.
466 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
468 * tree-predcom.c (suitable_reference_p): Return false if the
471 2008-04-15 Jakub Jelinek <jakub@redhat.com>
474 * c-decl.c (finish_decl): If extern or static var has variable
475 size, set TREE_TYPE (decl) to error_mark_node.
477 2008-04-15 Rafael Espindola <espindola@google.com>
479 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
482 2008-04-15 Richard Guenther <rguenther@suse.de>
484 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
485 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
486 (visit_reference_op_load): Do walk vuse-vdef chains on
488 (visit_reference_op_store): But do not here.
489 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
491 (vn_lookup_with_vuses): But do so here.
493 2008-04-14 Ian Lance Taylor <iant@google.com>
495 * fold-const.c (fold_overflow_warning): Remove assertion.
497 2008-04-15 Ben Elliston <bje@au.ibm.com>
499 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
500 temp1 local variables.
502 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
505 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
506 ".text.unlikely" section as executable.
508 2008-04-14 James E. Wilson <wilson@tuliptree.org>
510 * config/ia64/ia64.c (rtx_needs_barrier): Handle
511 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
512 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
513 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
514 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
515 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
516 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
518 2008-04-14 Ian Lance Taylor <iant@google.com>
520 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
521 * fold-const.c (fold_comparison): If appropriate, test
522 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
523 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
524 reassociating a pointer type.
525 * doc/invoke.texi (Optimize Options): Document that
526 -fstrict-overflow applies to pointer wraparound.
528 2008-04-13 Jan Hubicka <jh@suse.cz>
530 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
532 2008-04-12 Andrew Pinski <pinskia@gmail.com>
534 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
535 we are going to "save the world".
537 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
539 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
540 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
541 operand 0 constraint, not "=".
543 2008-04-11 James E. Wilson <wilson@tuliptree.org>
545 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
547 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
549 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
550 of size of positions_needed * CHAR_BIT.
552 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
555 * dse.c (store_info): Change positions_needed to unsigned
557 (lowpart_bitmask): New.
558 (record_store): Cast to unsigned HOST_WIDE_INT for
559 positions_needed. Assert width <= size of positions_needed *
560 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
561 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
562 lowpart_bitmask to set mask.
564 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
566 * config/bfin/constraints.md: New file.
567 * config/bfin/bfin.md: Include it.
568 (adddi3): Use satisfies_constraint functions instead of the old macros.
569 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
570 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
571 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
572 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
573 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
574 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
575 EXTRA_CONSTRAINT): Delete.
576 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
577 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
579 * config/bfin/bfin.c: Include "tm-constrs.h".
580 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
581 Use satisfies_constraint functions instead of the old macros.
582 * doc/md.texi (Blackfin Constraints): Update file name reference.
584 2008-04-11 Richard Guenther <rguenther@suse.de>
586 PR tree-optimization/35869
587 * tree-vrp.c (execute_vrp): Move switch statement update after
588 jump threading. Schedule another cfg cleanup run.
590 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
593 * attribs.c (decl_attributes): Return early on errorneous node.
595 2008-04-10 Oleg Ryjkov <olegr@google.com>
597 * tree.h (struct tree_base): Added a new flag default_def_flag.
598 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
600 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
602 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
604 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
607 * pa.md: Define mode iterator P. Define mode attribute dwc.
608 (dcacheflush): Update pattern to use iterator P and attribute dwc.
609 (icacheflush): Likewise.
610 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
611 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
613 2008-04-11 Ben Elliston <bje@au.ibm.com>
615 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
617 2008-04-10 Rafael Espindola <espindola@google.com>
619 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
620 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
621 (extract_range_from_expr): The same.
623 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
625 * config/mips/mips.md (GPR2): New mode iterator.
627 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
628 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
629 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
630 Rewrite these to take two modes, the mode of comparison and the
631 mode of the destination.
632 * config/mips/mips.c (mips_expand_scc): Instead of having
633 paradoxical subreg as destination, expand "narrowing" scc if mode
634 of comparison is SI and target is requested in DI mode.
635 (mips_emit_int_order_test): Update comment. Make mode of
636 comparison match CMP0 rather than TARGET. When creating inverse
637 target use mode of TARGET.
639 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
641 * gcov-dump.c (tag_summary): Only print summaries for the first
642 GCOV_COUNTERS_SUMMABLE counters.
644 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
646 * config/i386/i386.md (absneg): New code iterator.
647 (absnegprefix): New code attribute.
648 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
649 patterns using absneg code iterator.
650 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
651 using absneg code iterator.
652 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
653 *neg<mode>2 patterns using absneg code iterator.
654 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
655 *negextendsfdf2 patterns using absneg code iterator.
656 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
657 *negextendsfxf2 patterns using absneg code iterator.
658 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
659 *negextendsfdf2 patterns using absneg code iterator.
660 * config/i386/sse.md (<code><mode>2): Macroize expander from
661 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
663 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
665 * config/s390/s390.h: Remove the remains of the recent search
666 & replace action of current_function_outgoing_args_size.
668 2008-04-10 Ira Rosen <irar@il.ibm.com>
670 PR tree-optimization/35821
671 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
672 NEW_STMT_LIST is not NULL.
674 2008-04-09 David Edelsohn <edelsohn@gnu.org>
677 * toplev.c (process_options): Remove -ffunction-sections debugging
680 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
682 PR middle-end/PR28690
683 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
684 than gen_rtx_fmt_ee to perform more canonicalizations.
686 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
689 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
691 2008-04-09 Richard Guenther <rguenther@suse.de>
693 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
694 (dump_function_to_file): Dump function arguments with types.
696 2008-04-08 Richard Guenther <rguenther@suse.de>
698 * fold-const.c (fold_widened_comparison): Do not allow
699 sign-changes that change the result.
701 2008-04-08 Janis Johnson <janis187@us.ibm.com>
704 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
705 kinds of indirect references.
707 2008-04-08 David Edelsohn <edelsohn@gnu.org>
709 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
710 GNU Fortran language string.
712 2008-04-08 Rafael Espindola <espindola@google.com>
714 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
715 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
716 * tree.h (tree_call_nonnegative_warnv_p): New.
718 2008-04-08 Jan Hubicka <jh@suse.cz>
720 * function.c (free_after_compilation): Clear out regno_reg_rtx
723 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
726 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
728 PR middle-end/PR28690
729 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
730 same precedence as REG_POINTER and MEM_POINTER operands.
732 2008-04-08 Richard Guenther <rguenther@suse.de>
735 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
736 for adding index to base.
738 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
740 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
741 (MINGW_ENABLE_EXECUTE_STACK): New.
742 (IN_LIBGCC2): For libgcc include windows.h file for
743 function declarations.
745 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
747 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
748 and tem2 if tem1 is not a REG or MULT.
750 2008-04-08 Jan Hubicka <jh@suse.cz>
752 * function.h (incomming_args): Break out of struct function.
753 (function_subsections): Break out of struct function.
754 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
755 return_rtx and hard_reg_initial_vals from struct function.
756 Kill inl_max_label_num.
757 (current_function_pops_args, current_function_args_info,
758 current_function_args_size, current_function_args_size,
759 current_function_pretend_args_size,
760 current_function_outgoing_args_size,
761 current_function_internal_arg_pointer, current_function_return_rtx):
762 Kill compatibility accestor macros.
763 * builtins.c (expand_builtin_apply_args_1): Update.
764 (expand_builtin_next_arg): Update.
765 * df-scan.c (df_get_call_refs): Update.
766 * dbxout.c (dbxout_function_end): Update.
767 * dwarf2out.c (dwarf2out_switch_text_section): Update.
768 (output_line_info): Update.
769 (secname_for_decl): Update.
770 (dwarf2out_var_location): Update.
771 * function.c (free_after_compilation): Update.
772 (assign_parm_find_stack_rtl): Update.
773 (assign_parms): Update.
774 (expand_dummy_function_end): Update.
775 (expand_function_end): Update.
776 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
777 (expand_call): Update.
778 (emit_library_call_value_1): Update.
779 (store_one_arg): Update.
780 * varasm.c (initialize_cold_section_name): Update.
781 (unlikely_text_section): Update.
782 (unlikely_text_section_p): Update.
783 (assemble_start_function): Update.
784 (assemble_end_function): Update.
785 (default_section_type_flags): Update.
786 (switch_to_section): Update.
787 * integrate.c (set_decl_abstract_flags): Update.
788 (get_hard_reg_initial_val): Update.
789 (has_hard_reg_initial_val): Update.
790 (allocate_initial_values): Update.
791 * resource.c (init_resource_info): Update.
792 * config/alpha/alpha.c (NUM_ARGS): Update.
793 (direct_return): Update.
794 (alpha_va_start): Update.
795 (alpha_sa_size): Update.
796 (alpha_initial_elimination_offset): Update.
797 (alpha_expand_prologue): Update.
798 (alpha_start_function): Update.
799 (alpha_expand_epilogue): Update.
800 (unicosmk_initial_elimination_offset):
801 * config/alpha/alpha.md (call expander): Update.
802 * config/s390/s390.c (s390_register_info): Update.
803 (s390_register_info): Update.
804 (s390_frame_info): Update.
805 (s390_initial_elimination_offset): Update.
806 (s390_build_builtin_va_list): Update.
807 (s390_va_start): Update.
808 * config/spu/spu.c (direct_return): Update.
809 (spu_expand_prologue): Update.
810 (spu_initial_elimination_offset): Update.
811 (spu_build_builtin_va_list): Update.
812 (spu_va_start): Update.
813 * config/sparc/sparc.c (sparc_init_modes): Update.
814 (sparc_compute_frame_size): Update.
815 (function_value): Update.
816 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
817 * config/i386/i386.md (return expander): Update.
818 * config/i386/i386.c (ix86_va_start): Update.
819 (ix86_can_use_return_insn_p): Update.
820 (ix86_compute_frame_layout): Update.
821 (ix86_expand_epilogue): Update.
822 * config/sh/sh.c (output_stack_adjust): Update.
823 (calc_live_regs): Update.
824 (sh_expand_prologue): Update.
825 (sh_builtin_saveregs): Update.
826 (sh_va_start): Update.
827 (initial_elimination_offset): Update.
828 (sh_allocate_initial_value): Update.
829 (sh_function_ok_for_sibcall): Update.
830 (sh_get_pr_initial_val): Update.
831 * config/sh/sh.md (return expander): Update.
832 * config/avr/avr.c (frame_pointer_required_p): UPdate.
833 * config/crx/crx.c (crx_compute_frame): UPdate.
834 (crx_initial_elimination_offset): UPdate.
835 * config/xtensa/xtensa.c (compute_frame_size): Update
836 (xtensa_builtin_saveregs): Update.
837 (xtensa_va_start): Update.
838 (order_regs_for_local_alloc): Update.
839 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
840 (xstormy16_expand_builtin_va_start): Update.
841 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
842 * config/m68hc11/m68hc11.md (return expanders): Update.
843 * config/m68hc11/m68hc11.c (expand_prologue): Update.
844 (expand_epilogue): Update.
845 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
846 (cris_simple_epilogue): Update.
847 (cris_expand_prologue): Update.
848 (cris_expand_epilogue): Update.
849 * config/iq2000/iq2000.c (iq2000_va_start): Update.
850 (compute_frame_size): Update.
851 * config/mt/mt.c (mt_compute_frame_size): Update.
852 * config/mn10300/mn10300.c (expand_prologue): Update.
853 (expand_epilogue): Update.
854 (initial_offset): Update.
855 (mn10300_builtin_saveregs):
856 * config/mn10300/mn10300.md (return expander): Update.
857 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
858 (ia64_initial_elimination_offset): Update.
859 (ia64_initial_elimination_offset): Update.
860 (ia64_expand_prologue): Update.
861 * config/m68k/m68k.md (return expander): Update.
862 * config/rs6000/rs6000.c (rs6000_va_start): Update.
863 (rs6000_stack_info): Update.
864 * config/mcore/mcore.c (layout_mcore_frame): Update.
865 (mcore_expand_prolog): Update.
866 * config/arc/arc.c (arc_compute_frame_size): Update.
867 * config/score/score3.c (score3_compute_frame_size): Update.
868 * config/score/score7.c (score7_compute_frame_size): Update.
869 * config/arm/arm.c (use_return_insn): Update.
870 (thumb_find_work_register): Update.
871 (arm_compute_save_reg_mask): Update.
872 (arm_output_function_prologue): Update.
873 (arm_output_epilogue): Update.
874 (arm_size_return_regs): Update.
875 (arm_get_frame_offsets): Update.
876 (arm_expand_prologue): Update.
877 (thumb_exit): Update.
878 (thumb_unexpanded_epilogue): Update.
879 (thumb1_output_function_prologue): Update.
880 * config/pa/pa.md (return expander): Update.
881 * config/pa/pa.c (compute_frame_size): Update.
882 (hppa_builtin_saveregs): Update.
883 * config/mips/mips.c (mips_va_start): Update.
884 (mips16_build_function_stub): Update.
885 (mips_compute_frame_info): Update.
886 (mips_restore_gp): Update.
887 (mips_output_function_prologue): Update.
888 (mips_expand_prologue): Update.
889 * config/v850/v850.c (compute_frame_size): Update.
890 (expand_prologue): * config/mmix/mmix.c (along): update.
891 (mmix_initial_elimination_offset): update.
892 (mmix_reorg): update.
893 (mmix_use_simple_return): update.
894 (mmix_expand_prologue): update.
895 (mmix_expand_epilogue): Update.
896 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
897 (emit_link_insn): Update.
899 2008-04-08 Anatoly Sokolov <aesok@post.ru>
901 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
902 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
904 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
907 2008-04-07 Jan Hubicka <jh@suse.cz>
909 * function.h (rtl): Rename to x_rtl.
911 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
912 frame_offset, stack_check_probe_note, arg_pointer_save_area,
913 used_temp_slots avail_temp_slots, temp_slot_level,
914 nonlocal_goto_handler_labels): Update accesstors.
915 (rtl): New global variable.
916 (struct function): Move some fileds to rtl_data.
917 (get_arg_pointer_save_area): Update prototype.
918 * builtins.c (expand_builtin_setjmp_receiver): Update call of
919 get_arg_pointer_save_area.
920 * expr.c (init_expr): Update
921 * function.c (get_frame_size): Update
922 (assign_stack_local): Update
923 (expand_function_end): Update.
924 (get_art_pointer_save_area): Update
926 * emit-rtl.c (rtl): Declare.
927 (regno_reg_rtx): Declare.
928 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
930 (gen_reg_rtx): Update.
931 * varasm.c (n_deferred_constatns): Update accestor.
932 (init_varasm_status): Do not allocate varasm_status.
933 (force_const_mem, get_pool_size, output_constant_pool): Update.
934 * stmt.c (force_label_rtx): Do not use x_ prefixes.
935 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
936 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
937 * sparc/sparc.h (INIT_EXPANDERS): Update.
938 * ia64/ia64.h (INIT_EXPANDERS): Update.
940 2008-04-07 James E. Wilson <wilson@tuliptree.org>
942 * reload.c (push_secondary_reload): Add missing break to for loop.
944 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
946 PR middle-end/PR28690
947 * rtlanal.c: Update copyright years.
948 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
949 as REG_POINTER and MEM_POINTER operands.
950 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
951 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
952 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
953 * gcse.c: Update copyright years.
954 (pre_delete): Call gen_reg_rtx_and_attrs.
955 (hoist_code): Likewise.
956 (build_store_vectors): Likewise.
957 (delete_store): Likewise.
958 * loop-invariant.c (move_invariant_reg): Likewise.
959 Update copyright years.
961 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
963 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
964 control string instead of quoted.
966 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
968 * doc/rtl.texi: Rewrite of subreg section.
970 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
973 * config/i386/i386.c (legitimize_pic_address): Add treating
974 of dllimport SYM_REF's.
975 (legitimize_dllimport_symbol): Add prototype.
977 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
979 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
980 reference in constructor with non self-referential type.
982 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
984 Removal of Return with Depressed Stack Pointer support
985 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
986 (ECF_SP_DEPRESSED): Likewise.
987 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
988 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
989 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
990 (expand_call): Do not test ECF_SP_DEPRESSED.
991 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
992 * function.c (keep_stack_depressed): Delete.
993 (handle_epilogue_set): Likewise.
994 (update_epilogue_consts): Likewise.
995 (emit_equiv_load): Likewise.
996 (thread_prologue_and_epilogue_insns): Remove support for Return with
997 Depressed Stack Pointer.
998 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
1000 2008-04-06 Richard Guenther <rguenther@suse.de>
1002 PR tree-optimization/35400
1003 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
1004 information from SSA_NAMEs.
1006 2008-04-06 Anatoly Sokolov <aesok@post.ru>
1008 * config/avr/avr.h (avr_mega_p): Remove declaration.
1009 (AVR_MEGA): Remove macro.
1010 * config/avr/avr.c (avr_mega_p): Remove variable.
1011 (avr_override_options): Remove inicializion of avr_mega_p.
1012 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
1013 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
1014 (avr_jump_mode): (Ditto.).
1015 (avr_output_progmem_section_asm_op): (Ditto.).
1016 (avr_asm_init_sections): (Ditto.).
1017 (avr_asm_init_sections): (Ditto.).
1018 (avr_rtx_costs): (Ditto.).
1019 * config/avr/avr.md: (Ditto.).
1020 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
1023 2008-04-06 Richard Guenther <rguenther@suse.de>
1025 PR tree-optimization/35842
1026 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
1027 is_gimple_invariant_address.
1029 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1031 * gcc.c (default_compilers): Sync Fortran extensions list with
1032 that in fortran/lang-specs.h.
1033 * doc/invoke.texi: Likewise.
1034 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
1035 * dwarf2out.c (gen_compile_unit_die): Likewise.
1037 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
1039 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
1041 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
1044 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
1045 attribute is used for nested functions.
1047 2008-04-05 Jan Hubicka <jh@suse.cz>
1049 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
1051 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
1053 (dump_files): Update.
1054 (enable_rtl_dump_file): Do not accept letter argument.
1055 * tree-pass.h (dump_file_info): Remove letter argument.
1056 * toplev.c (decode_d_option): Update -da handling.
1057 * toplev.h (enable_rtl_dump_file): Update prototype.
1058 * passes.c (register_one_dump_file): Do not accept IPA argument; work
1059 it out based on pass type.
1060 (register_dump_files_1): Likewise.
1061 (init_optimization_passes): Update register_one_dump_file calls.
1062 (execute_one_pass): Sanity check that IPA passes are called at IPA
1063 level and RTL passes at RTL level.
1064 (execute_pass_list): IPA pass can not be after or subpass of
1066 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
1067 disallov RTL subpasses of IPA subpasses.
1069 2008-04-05 Ben Elliston <bje@au.ibm.com>
1071 * tree-cfg.c (need_fake_edge_p): Return false for calls to
1072 builtins that return exactly once and do not throw. Cache call to
1075 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
1077 PR rtl-optimization/34916
1079 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
1080 between instruction pairs.
1082 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
1084 * doc/invoke.texi: Document -mbitops for SH.
1085 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
1086 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
1087 * config/sh/sh.c (print_operand): Add %t operand code.
1088 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
1089 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
1090 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
1091 (extendqihi2): Likewise.
1092 (movqi_i): Likewise.
1093 (insv): Use bset, bclr and bst instructions for SH2A if possible.
1094 (extv): Use bld instruction for SH2A if possible.
1096 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
1097 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
1098 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
1099 (bset.b, bclr.b): Define peepholes.
1100 * config/sh/sh.opt (mbitops): New option.
1102 2008-04-04 Janis Johnson <janis187@us.ibm.com>
1105 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
1106 and view convert expression.
1108 2008-04-04 Jakub Jelinek <jakub@redhat.com>
1111 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
1113 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
1115 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
1117 * config/i386/cpuid.h (bit_AES): New.
1118 (bit_PCLMUL): Likewise.
1120 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
1121 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
1122 SSE2 if AES or PCLMUL is enabled.
1123 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
1124 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
1125 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
1126 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
1127 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
1128 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
1129 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
1130 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
1131 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
1132 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
1133 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
1134 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
1135 __builtin_ia32_aeskeygenassist128 and
1136 __builtin_ia32_pclmulqdq128.
1137 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
1138 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
1139 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
1141 * config/i386/i386.h (TARGET_AES): New.
1142 (TARGET_PCLMUL): Likewise.
1143 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
1145 * config/i386/i386.md (UNSPEC_AESENC): New.
1146 (UNSPEC_AESENCLAST): Likewise.
1147 (UNSPEC_AESDEC): Likewise.
1148 (UNSPEC_AESDECLAST): Likewise.
1149 (UNSPEC_AESIMC): Likewise.
1150 (UNSPEC_AESKEYGENASSIST): Likewise.
1151 (UNSPEC_PCLMUL): Likewise.
1153 * config/i386/i386.opt (maes): New.
1154 (mpclmul): Likewise.
1156 * config/i386/sse.md (aesenc): New pattern.
1157 (aesenclast): Likewise.
1159 (aesdeclast): Likewise.
1161 (aeskeygenassist): Likewise.
1162 (pclmulqdq): Likewise.
1164 * config/i386/wmmintrin.h: New.
1166 * doc/extend.texi: Document AES and PCLMUL built-in function.
1168 * doc/invoke.texi: Document -maes and -mpclmul.
1170 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
1172 * function.c (free_after_parsing): Replace with
1173 cxx_push_function_context from C++ front-end.
1174 (allocate_struct_function): Don't call langhook.
1175 * langhooks.h (struct lang_hooks_for_functions): Delete.
1176 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
1178 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
1179 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
1180 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
1181 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
1182 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
1183 remove LANG_HOOKS_FUNCTION_INITIALIZER.
1184 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
1186 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
1187 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
1189 2008-04-04 Jakub Jelinek <jakub@redhat.com>
1192 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
1195 2008-04-04 Richard Guenther <rguenther@suse.de>
1198 * fold-const.c (optimize_minmax_comparison): Use the correct
1199 type for the constant in the simplified comparison.
1201 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
1203 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
1204 Pass L2 size as "--param l2-cache-size" to the compiler.
1205 (decode_l2_cache): New function to decode L2 cache parameters using
1206 0x8000006 extended cpuid function.
1207 (detect_caches_amd): Determine parameters of L2 cache using
1208 decode_l2_caches function.
1209 (decode_caches_intel): Decode L2 cache parameters.
1210 (detect_caches_intel): Determine L2 cache parameters using
1211 decode_caches_intel and decode_l2_caches functions.
1213 2008-04-03 Bob Wilson <bob.wilson@acm.org>
1215 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
1216 secondary input reload for subword loads from the constant pool.
1218 2008-04-03 Janis Johnson <janis187@us.ibm.com>
1221 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
1222 constants of the appropriate size for runtime calculations.
1225 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
1226 decimal-float literal constant zero.
1228 2008-04-03 Jakub Jelinek <jakub@redhat.com>
1231 * c-parser.c (c_parser_omp_atomic): Call
1232 default_function_array_conversion on the RHS.
1235 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
1236 call is_variable_sized if decl has incomplete type.
1238 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
1240 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
1242 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
1244 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
1246 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
1247 (sgt<u>): Merge sgt and sgtu into new expander.
1248 (sgt, sgtu): Remove expanders.
1249 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
1250 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
1251 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
1252 *sgtu_<mode>_mips16 into new pattern.
1253 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
1254 (sge<u>): Merge sge and sgeu into new expander.
1255 (sge, sgeu): Remove expanders.
1256 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
1258 (*sge_<mode>, second *sge_<mode>): Remove patterns.
1259 (slt<u>): Merge slt and sltu into new expander.
1260 (slt, sltu): Remove expanders.
1261 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
1262 (*slt_<mode>, *sltu_<mode>): Remove patterns.
1263 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
1264 *sltu_<mode>_mips16 into new pattern.
1265 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
1266 (sle<u>): Merge sle and sleu into new expander.
1267 (sle, sleu): Remove expanders.
1268 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
1269 (*sle_<mode>, *sleu_<mode>): Remove patterns.
1270 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
1271 *sleu_<mode>_mips16 into new pattern.
1272 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
1274 2008-04-03 Jan Hubicka <jh@suse.cz>
1276 PR tree-optimization/35795
1277 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
1278 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1279 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1280 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
1281 * score/score3.c (score3_output_mi_thunk): Likewise.
1282 * score/score7.c (score7_output_mi_thunk): Likewise.
1283 * mips/mips.c (mips_output_mi_thunk): Likewise.
1285 2008-04-03 Richard Guenther <rguenther@suse.de>
1287 * tree-vrp.c (extract_range_from_unary_expr): Handle all
1288 conversions. Simplify code.
1290 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
1292 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
1294 2008-04-03 Tom Tromey <tromey@redhat.com>
1295 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1297 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
1298 * config/bfin/t-bfin-linux (generated_files): Add
1299 linux-sysroot-suffix.h.
1300 * doc/install.texi (Prerequisites): Require make 3.80.
1301 * doc/sourcebuild.texi (Front End Directory): Document new
1303 * Makefile.in (generated_files): New variable.
1304 (ALL_HOST_OBJS): New variable.
1305 ($(ALL_HOST_OBJS)): New target.
1307 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
1309 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
1310 (remap_block): Call id->transform_lang_insert_block instead
1312 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
1313 Set id.transform_lang_insert_block to NULL.
1314 (clone_body): Move to cp/optimize.c
1315 * tree-inline.h (struct copy_body_data): Change
1316 transform_lang_insert_block to function pointer.
1317 (copy_generic_body, copy_decl_no_change): Export.
1318 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
1319 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
1320 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
1322 * c-tree.h (insert_block): Kill.
1323 * c-decl.c (insert_block): Kill.
1325 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
1327 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1328 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
1329 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
1331 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
1332 argument, call {push,pop}_function_context from here.
1333 * c-parser.c: Use c_{push,pop}_function_context.
1335 * function.c (push_function_context_to): Move meat ...
1336 (push_function_context): ... here. Simplify.
1337 * function.c (pop_function_context_from): Move meat ...
1338 (pop_function_context): ... here. Simplify.
1339 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
1341 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1342 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
1343 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
1344 * tree.h (push_function_context_to, pop_function_context_from): Remove.
1346 2008-04-03 Ben Elliston <bje@au.ibm.com>
1348 * expmed.c (extract_force_align_mem_bit_field): Remove.
1350 2008-04-03 Richard Guenther <rguenther@suse.de>
1353 * expr.h (try_casesi): Adjust prototype.
1354 * expr.c (try_casesi): Take fallback label as extra parameter.
1355 Use that for gen_casesi if default_label is NULL.
1356 * stmt.c (expand_case): Pass fallback label to try_casesi,
1357 make sure to fill gaps with a fallback label if default_label
1360 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
1363 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
1365 2008-04-03 Ben Elliston <bje@au.ibm.com>
1367 * expmed.c (extract_split_bit_field): Remove if (0) code.
1368 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
1369 (do_ds_constraint): Likewise.
1371 2008-04-02 Joseph Myers <joseph@codesourcery.com>
1373 * doc/cppopts.texi (-dU): Document.
1374 * c-common.h (flag_dump_macros): Update comment.
1375 * c-opts.c (handle_OPT_d): Handle -dU.
1376 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
1377 dump_queued_macros, cb_used_define, cb_used_undef): New.
1378 (init_pp_output): Handle -dU.
1379 (cb_line_change): Call dump_queued_macros.
1380 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
1382 2008-04-02 Anatoly Sokolov <aesok@post.ru>
1384 * config/avr/predicates.md (io_address_operand): New predicate.
1385 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
1386 * config/avr/avr.c (avr_io_address_p): Remove function.
1387 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
1388 'avr_io_address_p' function.
1389 (out_movhi_r_mr): (Ditto.).
1390 (out_movqi_mr_r): (Ditto.).
1391 (out_movhi_mr_r): (Ditto.).
1392 (avr_address_cost): (Ditto.).
1394 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
1396 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
1397 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
1398 in 32bit mode when XMM registers are available to avoid store
1400 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
1401 corresponding post-reload splitters.
1403 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
1405 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
1406 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
1407 __builtin_ia32_roundss.
1408 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
1409 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
1410 __builtin_ia32_roundss.
1411 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
1412 IX86_BUILTIN_SHUFPD here.
1414 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
1416 * config/i386/i386.md (plogic): New.
1417 (plogicprefix): Likewise.
1419 * config/i386/mmx.md (mmx_<code><mode>3): New.
1420 (mmx_and<mode>3): Removed.
1421 (mmx_ior<mode>3): Likewise.
1422 (mmx_xor<mode>3): Likewise.
1424 * config/i386/sse.md (<code><mode>3): New.
1425 (*<code><mode>3): Likewise.
1426 (*<code><mode>3): Likewise.
1427 (<code><mode>3): Likewise.
1428 (*sse_<code><mode>3): Likewise.
1429 (*sse2_<code><mode>3): Likewise.
1430 (<code>tf3): Likewise.
1431 (*<code>tf3): Likewise.
1432 (and<mode>3): Likewise.
1433 (*and<mode>3): Likewise.
1434 (ior<mode>3): Removed.
1435 (*ior<mode>3): Likewise.
1436 (xor<mode>3): Likewise.
1437 (*xor<mode>3): Likewise.
1438 (*and<mode>3): Likewise.
1439 (*ior<mode>3): Likewise.
1440 (*xor<mode>3): Likewise.
1441 (and<mode>3): Likewise.
1442 (*sse_and<mode>3): Likewise.
1443 (*sse2_and<mode>3): Likewise.
1445 (*andtf3): Likewise.
1446 (ior<mode>3): Likewise.
1447 (*sse_ior<mode>3): Likewise.
1448 (*sse2_ior<mode>3): Likewise.
1450 (*iortf3): Likewise.
1451 (xor<mode>3): Likewise.
1452 (*sse_xor<mode>3): Likewise.
1453 (*sse2_xor<mode>3): Likewise.
1455 (*xortf3): Likewise.
1457 2008-04-02 Richard Guenther <rguenther@suse.de>
1459 PR tree-optimization/14495
1460 PR tree-optimization/34793
1461 * tree-vrp.c (struct switch_update): New structure.
1462 (to_remove_edges, to_update_switch_stmts): New VECs.
1463 (simplify_switch_using_ranges): New function. Remove not taken
1464 case labels and edges.
1465 (simplify_stmt_using_ranges): Call it.
1466 (identify_jump_threads): Mark edges we have queued for removal
1467 so we don't thread them.
1468 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
1470 * tree-cfg.c (group_case_labels): Deal with missing default label.
1471 (tree_verify_flow_info): Allow missing default label.
1472 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
1473 (emit_case_nodes): Likewise.
1474 (expand_case): Do not rely on the default label to be present.
1475 * expr.c (try_casesi): Deal with NULL default_label.
1476 (do_tablejump): Likewise.
1478 2008-04-02 Richard Guenther <rguenther@suse.de>
1480 PR tree-optimization/14495
1481 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
1482 SWITCH_EXPR here ...
1483 (vrp_visit_switch_stmt): ... but here (new function).
1484 (find_case_label_index): New helper function.
1485 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
1487 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
1489 * fwprop.c: Fix ISO-C99ism.
1491 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
1494 * Makefile.in (objdir): Set it here.
1495 * configure.ac: Not here. Find dynamic linker characteristics.
1496 * exec-tool.in: Use them.
1497 * aclocal.m4: Regenerate.
1498 * configure: Regenerate.
1500 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
1502 * expr.c (expand_var): Delete it.
1503 * expr.h (expand_var): Delete prototype.
1504 * function.c (expand_function_start): Use expand_decl instead.
1505 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
1508 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
1510 PR rtl-optimization/35542
1511 * fwprop.c (forward_propagate_and_simplify): Replace
1512 loc_reg_mentioned_in_p with reg_mentioned_p.
1514 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
1516 PR rtl-optimization/35281
1517 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
1518 (propagate_rtx_1): Handle PR_HANDLE_MEM.
1519 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
1520 (varying_mem_p): Move above propagate_rtx.
1521 (all_uses_available_at): Do not check MEMs.
1523 2008-04-02 Rafael Espindola <espindola@google.com>
1525 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
1526 (register_edge_assert_for_2): Split the cond argument.
1527 (register_edge_assert_for_1): Adjust for the change in
1528 register_edge_assert_for_2.
1529 (register_edge_assert_for): Split the cond argument.
1530 (find_switch_asserts): Adjust for the change in
1531 register_edge_assert_for.
1533 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
1535 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
1536 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
1537 offsets for 64-bit mingw.
1538 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
1539 abi for x86_64-pc-mingw.
1541 2008-04-02 Richard Guenther <rguenther@suse.de>
1543 * tree-vrp.c (extract_range_from_assert): Make sure to not
1544 produce range min/max with TREE_OVERFOW set.
1545 If merging a anti-range and a range keep the anti-range if
1546 the range covers all values of the type.
1547 (register_edge_assert_for_2): Only allow sign-changing
1548 conversions in detecting canonical range checks. Also
1549 register an assert for the unsigned name if useful.
1551 PR tree-optimization/35787
1552 * tree-vrp.c (vrp_val_max): New function.
1553 (vrp_val_min): Likewise.
1554 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
1555 (vrp_val_is_min): Likewise.
1556 (supports_overflow_infinity): Use vrp_val_{min,max}.
1557 (negative_overflow_infinity): Likewise.
1558 (positive_overflow_infinity): Likewise.
1559 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
1560 (is_positive_overflow_infinity): Likewise.
1561 (is_overflow_infinity): Likewise.
1562 (avoid_overflow_infinity): Use vrp_val_{min,max} and
1563 vrp_val_is_{min,max}.
1564 (set_and_canonicalize_value_range): Canonicalize anti-ranges
1565 to ranges if possible. Avoid empty ranges.
1567 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1570 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
1571 the expression is a function address.
1573 2008-04-01 George Helffrich <george@gcc.gnu.org>
1575 PR fortran/PR35154, fortran/PR23057
1576 * fortran/trans-common.c (create_common): Add decl to function
1577 chain to preserve identifier scope in debug output.
1579 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
1580 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
1581 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
1582 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
1584 (dbxout_syms): Check for COMMON-based symbol and wrap in
1585 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
1586 in bracket for efficiency.
1588 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
1589 using DW_TAG_common_block + member offset.
1590 (add_pubname_string): New function.
1591 (dw_expand_expr): New function to find block name and offset for
1593 (common_check): New function to check whether symbol in Fortran COMMON.
1594 (gen_variable_die): If COMMON, use DW_TAG_common_block.
1596 * testsuite/gcc.dg/debug/pr35154.c: New test to check that non-Fortran
1597 use of common is unchanged.
1599 * testsuite/lib/gfortran-dg.exp: New harness to compile Fortran progs
1600 with all combinations of debug options available on target.
1601 * testsuite/gfortran.dg/debug/debug.exp: Ditto.
1602 * testsuite/gfortran.dg/debug/trivial.f: Ditto.
1603 * testsuite/gfortran.dg/debug/pr35154-stabs.f: New test case for
1604 .stabs functionality.
1605 * testsuite/gfortran.dg/debug/pr35154-dwarf2.f: New test case for
1606 DWARF functionality.
1608 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
1611 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
1613 2008-04-02 Ben Elliston <bje@au.ibm.com>
1615 * config/v850/v850.md (casesi): Remove if (0) code.
1616 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1617 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
1619 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
1621 * config/i386/i386.md (rex64suffix): New mode attribute.
1622 (floathi<mode>2): Disable expander for SSE math.
1623 (*floathi<mode>2_1): New insn insn_and_split pattern.
1624 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
1625 corresponding post-reload splitters.
1626 (*floathi<mode>2_i387): New macroized insn pattern.
1627 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
1628 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
1629 insn_and_split pattern.
1630 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
1631 New macroized instruction patterns and corresponding post-reload
1633 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
1634 and corresponding post-reload splitters.
1635 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
1636 New macroized instruction patterns.
1637 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
1638 macroized instruction patterns and corresponding post-reload splitters.
1639 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
1640 corresponding post-reload splitters.
1641 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
1642 New macroized instruction patterns.
1643 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
1644 corresponding post-reload splitters.
1645 (*floatsi<mode>2_i387): New macroized instruction patterns.
1647 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
1649 * config/i386/i386.md (smaxmin): New.
1650 (umaxmin): Likewise.
1651 (maxminiprefix): Likewise.
1652 (maxminfprefix): Likewise.
1653 (<code><mode>3): Likewise.
1654 (smin<mode>3): Removed.
1655 (smax<mode>3): Likewise.
1657 * config/i386/mmx.md (mmx_<code>v2sf3): New.
1658 (mmx_<code>v4hi3): Likewise.
1659 (mmx_<code>v8qi3): Likewise.
1660 (mmx_smaxv2sf3): Removed.
1661 (mmx_sminv2sf3): Likewise.
1662 (mmx_umaxv8qi3): Likewise.
1663 (mmx_smaxv4hi3): Likewise.
1664 (mmx_uminv8qi3): Likewise.
1665 (mmx_sminv4hi3): Likewise.
1667 * config/i386/sse.md (<addsub><mode>3): New.
1668 (*<addsub><mode>3): Likewise.
1669 (<sse>_vm<addsub><mode>3): Likewise.
1670 (<maxmin><mode>3): Likewise.
1671 (*<maxmin><mode>3_finite): Likewise.
1672 (*<maxmin><mode>3): Likewise.
1673 (<sse>_vm<maxmin><mode>3): Likewise.
1674 (sse3_h<addsub>v4sf3): Likewise.
1675 (sse3_h<addsub>v2df3): Likewise.
1676 (<maxmin>v16qi3): Likewise.
1677 (*<maxmin>v16qi3): Likewise.
1678 (<maxmin>v8hi3): Likewise.
1679 (*<maxmin>v8hi3): Likewise.
1680 (*sse4_1_<maxmin><mode>3): Likewise.
1681 (*sse4_1_<maxmin><mode>3): Likewise.
1682 (add<mode>3): Removed.
1683 (*add<mode>3): Likewise.
1684 (<sse>_vmadd<mode>3): Likewise.
1685 (sub<mode>3): Likewise.
1686 (*sub<mode>3): Likewise.
1687 (<sse>_vmsub<mode>3): Likewise.
1688 (smin<mode>3): Likewise.
1689 (*smin<mode>3_finite): Likewise.
1690 (*smin<mode>3): Likewise.
1691 (<sse>_vmsmin<mode>3): Likewise.
1692 (smax<mode>3): Likewise.
1693 (*smax<mode>3_finite): Likewise.
1694 (*smax<mode>3): Likewise.
1695 (<sse>_vmsmax<mode>3): Likewise.
1696 (sse3_haddv4sf3): Likewise.
1697 (sse3_haddv2df3): Likewise.
1698 (sse3_hsubv4sf3): Likewise.
1699 (sse3_hsubv2df3): Likewise.
1700 (umaxv16qi3): Likewise.
1701 (*umaxv16qi3): Likewise.
1702 (smaxv8hi3): Likewise.
1703 (*smaxv8hi3): Likewise.
1704 (*sse4_1_smax<mode>3): Likewise.
1705 (*sse4_1_umax<mode>3): Likewise.
1706 (uminv16qi3): Likewise.
1707 (*uminv16qi3): Likewise.
1708 (sminv8hi3): Likewise.
1709 (*sminv8hi3): Likewise.
1710 (*sse4_1_smin<mode>3): Likewise.
1711 (*sse4_1_umin<mode>3): Likewise.
1713 2008-04-01 Rafael Espindola <espindola@google.com>
1715 * tree-cfg.c (verify_expr): remove in_phi.
1716 (verify_stmt): Don't call walk_tree with verify_expr. Use
1717 is_gimple_min_invariant instead of is_gimple_val.
1719 2008-04-01 Joseph Myers <joseph@codesourcery.com>
1721 * doc/include/gpl_v3.texi: Update for manpage generation.
1722 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
1724 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
1725 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
1726 gpl_v3.texi instead of gpl.texi.
1729 2008-04-01 Jakub Jelinek <jakub@redhat.com>
1732 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
1734 2008-04-01 Rafael Espindola <espindola@google.com>
1736 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
1737 (extract_code_and_val_from_cond): Use
1738 extract_code_and_val_from_cond_with_ops.
1740 2008-04-01 Jan Hubicka <jh@suse.cz>
1742 * function.c (free_after_compilation): Free epilogue_delay_list.
1743 (prepare_function_start): Assert that previous compilation was freed.
1745 2008-04-01 Jan Hubicka <jh@suse.cz>
1746 Jim Wilson <wilson@tuliptree.org>
1747 Andreas Tobler <andreast@gcc.gnu.org>
1750 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
1751 rtl.emit instead cfun->emit.
1752 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
1753 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
1755 2008-04-01 Ben Elliston <bje@au.ibm.com>
1757 * doc/c-tree.texi (Function Basics): Fix grammatical error.
1759 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
1761 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
1763 (fprofile-use): Add var flag_profile_use
1764 * coverage.c (coverage_begin_output): Do not open a gcno file for
1765 output only if -ftest-coverage is set.
1766 Do not add getpwd() to gcda file path.
1767 (build_gcov_info): Check the new flag
1768 flag_profile_datafile_relative_path.
1769 (coverage_init): Use profile_data_prefix.
1770 Read profile counter only if flag_profile_use is set.
1771 * opts.c (common_handle_option): New option fprofile-use=,
1772 fprofile-dir=, fprofile-generate=.
1773 * toplev.c (profile_data_prefix): New variable definition.
1774 * toplev.h (profile_data_prefix): New declaration.
1775 * doc/invoke.tex (Option Summary, Optimization Options):
1778 2008-03-31 James E. Wilson <wilson@tuliptree.org>
1780 * varasm.c (output_constant_pool_1): In LABEL_REF check,
1781 use tmp consistently.
1784 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
1785 * config/ia64/ia64.c (rtx_needs_barrier): Handle
1786 UNSPEC_FR_RECIP_APPROX_RES.
1787 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
1789 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
1792 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
1794 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
1797 * fold-const.c (fold_indirect_ref_1): Support accessing non first
1798 element of the vector via a pointer.
1800 2008-03-31 Ian Lance Taylor <iant@google.com>
1802 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
1804 2008-03-31 Jan Hubicka <jh@suse.cz>
1806 * builtins.c (expand_builtin_setjmp_receiver): Update call of
1807 get_arg_pointer_save_area.
1808 * expr.c (init_expr): Just clear out rtl.expr.
1809 * function.c (free_after_compilation): Clear out whole RTL structure.
1810 (get_func_frame_size): Merge into ...
1811 (get_frame_size): ... this one.
1812 (assign_stack_local_1): Merge into ...
1813 (assign_stack_local): ... this one.
1814 (expand_function_end): Update call of get_arg_pointer_save_area.
1815 (get_art_pointer_save_area): Remove cfun argument.
1816 * function.h (emit_status): regno_pointer_align does not need length
1817 attribute. Move x_regno_reg_rtx to ...
1818 (regno_reg_rtx): ... new global array.
1819 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
1820 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
1821 apply_args_value, forced_labels, stack_pointer_delta):
1823 (struct varasm_status): Move here from varasm.c
1824 (struct rtl_data): New. Move here some fields from struct function.
1825 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
1826 frame_offset, stack_check_probe_note, arg_pointer_save_area,
1827 used_temp_slots avail_temp_slots, temp_slot_level,
1828 nonlocal_goto_handler_labels): Update accesstors.
1829 (rtl): New global variable.
1830 (struct function): Move some fileds to rtl_data.
1831 (get_arg_pointer_save_area): Update prototype.
1832 * emit-rtl.c (rtl): Declare.
1833 (regno_reg_rtx): Declare.
1834 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
1836 (gen_reg_rtx): Update.
1837 (init_virtual_regs): Do not tate emit_status argument.
1838 (init_emit): Do not allocate emit.
1839 * varasm.c (varasm_statuc): Move to function.h.
1840 (n_deferred_constatns): Update accestor.
1841 (init_varasm_status): Do not allocate varasm_status.
1842 (force_const_mem, get_pool_size, output_constant_pool): Update.
1843 * stmt.c (force_label_rtx): Do not use x_ prefixes.
1844 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
1846 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
1848 PR rtl-optimization/35729
1849 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
1852 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
1855 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
1856 load/store if memory is unaligned.
1857 (*movti_rex64): Likewise.
1859 * config/i386/predicates.md (misaligned_operand): New.
1861 2008-03-31 Andrew Pinski <pinskia@gmail.com>
1864 * tree-ssa-phiopt.c (conditional_replacement): Return early for
1867 2008-03-31 Jan Beulich <jbeulich@novell.com>
1869 * config/ia64/constraints.md: Add 'j' constraint.
1870 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
1871 (movdi_internal): Likewise.
1873 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
1876 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
1878 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
1881 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
1882 proper error message for the third argument on blendpd and
1885 * config/i386/sse.md (blendbits): New.
1886 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
1888 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
1890 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
1892 2008-03-30 Richard Guenther <rguenther@suse.de>
1895 * fold-const.c (fold_sign_changed_comparison): Do leave
1896 conversions to base-types alone.
1898 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
1900 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
1901 the link register if one altivec register is be saved.
1903 2008-03-30 Ben Elliston <bje@au.ibm.com>
1905 * final.c (final_scan_insn): Remove if (0) code.
1907 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
1909 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
1911 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
1913 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
1914 of V4SFmode to ix86_binary_operator_ok.
1916 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
1918 * config/i386/i386.c (override_options): Initialize
1919 ix86_veclib_handler to ix86_veclibabi_svml when
1920 -mveclibabi=svml is used.
1921 (ix86_veclibabi_svml): New function for SVML ABI style
1922 vectorization support.
1923 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
1925 2008-03-28 Rafael Espindola <espindola@google.com>
1927 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
1928 (tree_binary_nonnegative_warnv_p): Make it public.
1929 (tree_single_nonnegative_warnv_p): Make it public.
1930 (tree_invalid_nonnegative_warnv_p): Make it public.
1931 (tree_unary_nonzero_warnv_p): Make it public.
1932 (tree_binary_nonzero_warnv_p): Make it public
1933 (tree_single_nonzero_warnv_p): Make it public.
1934 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
1935 (extract_range_from_binary_expr): Split the expr argument.
1936 (extract_range_from_unary_expr): Split the expr argument.
1937 (extract_range_from_comparison): Split the expr argument.
1938 (extract_range_from_expr): Use the new aux functions.
1939 (vrp_evaluate_conditional_warnv): Use
1940 vrp_evaluate_conditional_warnv_with_ops.
1941 * tree.h (tree_unary_nonzero_warnv_p): Declare.
1942 (tree_binary_nonzero_warnv_p): Declare.
1943 (tree_single_nonzero_warnv_p): Declare.
1944 (tree_expr_nonzero_warnv_p): Declare.
1945 (tree_unary_nonnegative_warnv_p): Declare.
1946 (tree_binary_nonnegative_warnv_p): Declare.
1947 (tree_single_nonnegative_warnv_p): Declare.
1948 (tree_invalid_nonnegative_warnv_p): Declare.
1950 2008-03-28 Richard Guenther <rguenther@suse.de>
1952 PR tree-optimization/30317
1953 PR tree-optimization/30911
1954 PR tree-optimization/34793
1955 * tree-vrp.c (set_and_canonicalize_value_range): New function.
1956 (struct assert_locus_d): New member EXPR.
1957 (register_new_assert_for): Add EXPR parameter to support
1958 ASSERT_EXPR <name, expr OP limit>.
1959 (register_edge_assert_for_1): Adjust callers.
1960 (find_assert_locations): Likewise.
1961 (process_assert_insertions_for): Build condition from expression.
1962 (extract_range_from_assert): Handle ASSERT_EXPRs
1963 of the form ASSERT_EXPR <name, expr OP limit>.
1964 (register_edge_assert_for_2): New helper registering
1965 asserts for comparisons. Recognize range tests of the form
1966 (unsigned)i - CST1 OP CST2.
1967 (register_edge_assert_for_1): Use it.
1968 (register_edge_assert_for): Likewise.
1969 (needs_overflow_infinity): Integer sub-types
1970 do not need overflow infinities.
1971 (vrp_val_is_max): The extreme values of integer sub-types
1972 are those of the base type.
1973 (vrp_val_is_min): Likewise.
1974 * tree.def (ASSERT_EXPR): Document extra allowed conditional
1977 2008-03-28 Nick Clifton <nickc@redhat.com>
1980 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
1981 Return GENERAL_REGS for stack adjustment reloads.
1983 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
1986 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
1987 const_vector when all the vectors are constant.
1989 2008-03-27 Bob Wilson <bob.wilson@acm.org>
1991 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
1993 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
1994 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
1996 (s<code>_sf): Use new scc_sf attribute for opcode names.
1998 2008-03-27 Tom Tromey <tromey@redhat.com>
2000 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
2001 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
2002 config/spu/t-spu-elf, config/i386/t-interix,
2003 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
2004 config/i386/x-darwin, config/i386/x-mingw32,
2005 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
2006 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
2007 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
2008 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
2009 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
2010 config/rs6000/x-darwin, config/rs6000/t-rs6000,
2011 config/score/t-score-elf, config/arm/t-strongarm-pe,
2012 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
2013 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
2014 Revert automatic dependency patch.
2016 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
2019 * config/i386/i386.c (ix86_function_arg_boundary): Align
2020 decimal floating point to its natural boundary.
2022 2008-03-27 Richard Guenther <rguenther@suse.de>
2025 * fold-const.c (fold_comparison): Restrict distinct decl
2026 comparison folding to VAR_DECLs and PARM_DECLs. Do not
2027 solely rely on operand_equal_p.
2029 2008-03-27 Richard Guenther <rguenther@suse.de>
2032 * c-common.c (handle_weak_attribute): Reject combination of
2035 2008-03-27 Richard Guenther <rguenther@suse.de>
2037 PR tree-optimization/32810
2038 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
2039 conversions from DECL_INITIAL.
2040 (fold_const_aggregate_ref): Likewise from constructor elements.
2042 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
2044 * tree-affine.h (aff_combination_expand): Declare.
2045 (get_inner_reference_aff): Likewise.
2046 * tree-affine.c (aff_combination_expand): Split out from
2047 tree_to_aff_combination_expand.
2048 (get_inner_reference_aff): New function.
2049 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
2050 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
2051 (struct lim_aux_data): sm_done field removed.
2052 (mem_ref_loc_p, mem_ref_locs_p): New types.
2053 (struct mem_ref): Added id, stored, accesses_in_loop,
2054 indep_loop, dep_loop, indep_ref, dep_ref fields.
2055 Removed is_stored, locs and next fields.
2056 (memory_accesses): New variable.
2057 (movement_possibility): Do not allow moving statements
2058 that store to memory.
2059 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
2061 (determine_max_movement): For statements with memory references,
2062 find the outermost loop in that the reference is independent.
2063 (move_computations_stmt): Mark the virtual operands for renaming.
2064 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
2065 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
2066 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
2067 add_vop_ref_mapping, create_vop_ref_mapping_loop,
2068 create_vop_ref_mapping, analyze_memory_references,
2069 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
2070 get_all_locs_in_loop, ref_always_accessed_p,
2071 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
2072 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
2073 store_motion_loop, store_motion): New functions.
2074 (struct vop_to_refs_elt): New type.
2075 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
2076 memref_hash, memref_eq, hoist_memory_references): Rewritten.
2077 (schedule_sm): Replaced by...
2078 (execute_sm): ... this.
2079 (determine_lsm_ref, hoist_memory_references,
2080 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
2081 find_more_ref_vops, free_mem_ref, free_mem_refs,
2082 determine_lsm_loop, determine_lsm): Removed.
2083 (tree_ssa_lim_finalize): Free data structures used by store motion.
2084 (tree_ssa_lim): Call analyze_memory_references. Use
2085 store_motion instead of determine_lsm.
2087 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
2089 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
2090 rename tmake_file to m68hc11/t-m68hc11.
2091 (mcore): Set inhibit_libc to true.
2092 * config.host (alpha*-dec-*vms*): Set extra_programs.
2093 (interix3*): Don't use host_xmake_file.
2094 * configure.ac: Let config.gcc override inhibit_libc.
2095 * configure: Regenerate.
2097 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
2098 * config/t-openbsd-thread: Remove commented out lines.
2100 * config/x-interix: Remove.
2102 * config/m68hc11/t-m68hc11-gas: Rename to...
2103 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
2105 * config/mcore/t-mcore: Remove T_CFLAGS.
2106 * config/mcore/t-mcore-pe: Likewise.
2108 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
2110 * configure.ac: Replace custom __GNU_SOURCE test with
2111 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
2112 * aclocal.m4: Regenerate.
2113 * configure: Regenerate.
2114 * config.in: Regenerate.
2116 2008-03-27 Richard Guenther <rguenther@suse.de>
2118 * fold-const.c (target.h): Include.
2119 (fold_comparison): Fold comparison of addresses of decls
2120 that bind locally or of constants. Consolidate address folding code.
2121 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
2122 results from fold_binary_to_constant.
2123 (compare_values_warnv): Likewise.
2125 2008-03-27 Andrew Pinski <pinskia@gmail.com>
2128 * fold-const.c (fold_truthop): Check for integeral types when folding
2129 a == 0 && b == 0 and a != 0 || b != 0 .
2131 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
2133 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
2135 2008-03-26 Andreas Schwab <schwab@suse.de>
2137 * doc/invoke.texi: Fix use of @item vs. @itemx.
2139 2008-03-26 Tom Tromey <tromey@redhat.com>
2141 * Makefile.in (build/gensupport.o, build/print-rtl.o,
2142 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
2143 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
2144 build/gencodes.o, build/genconditions.o, build/genconfig.o,
2145 build/genconstants.o, build/genemit.o, build/genextract.o,
2146 build/genflags.o, build/genmddeps.o, build/genopinit.o,
2147 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
2150 2008-03-26 Richard Guenther <rguenther@suse.de>
2153 2008-03-26 Richard Guenther <rguenther@suse.de>
2155 * fold-const.c (target.h): Include.
2156 (fold_comparison): Fold comparison of addresses of two decls
2157 that bind locally. Consolidate address folding code.
2159 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2161 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
2162 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
2163 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
2164 dconstsqrt2, dconstthird, dconste and/or dconst10.
2165 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
2166 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
2167 dconstsqrt2, dconste): Delete.
2168 (init_emit_once): Likewise. Simplify initializing dconstm1.
2170 * real.c (get_real_const): New.
2171 * real.h (dconst3, dconst10, dconstm2, dconstthird,
2172 dconstsqrt2, dconste): Delete.
2173 (real_value_const, get_real_const): New.
2175 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
2177 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
2179 * config/i386/i386.c (ix86_function_arg_boundary): Check
2180 BIGGEST_ALIGNMENT instead of 128.
2181 (setup_incoming_varargs_64): Likewise.
2183 2008-03-26 Tom Tromey <tromey@redhat.com>
2185 * Makefile.in (DEPFILES): Add missing '/'.
2187 2008-03-26 Richard Guenther <rguenther@suse.de>
2189 * fold-const.c (target.h): Include.
2190 (fold_comparison): Fold comparison of addresses of two decls
2191 that bind locally. Consolidate address folding code.
2193 2008-03-26 Nick Clifton <nickc@redhat.com>
2196 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
2197 not allow INT+INT as a legitimate addressing mode.
2199 2008-03-26 Richard Guenther <rguenther@suse.de>
2201 * tree-flow.h (widen_bitfield): Remove declaration.
2202 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
2203 (widen_bitfield): Remove function.
2204 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
2207 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
2210 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
2213 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
2215 PR rtl-optimization/35232
2216 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
2217 (forget_old_reloads_1, forget_marked_reloads): Don't clear
2218 reg_reloaded_call_part_clobbered here.
2219 (reload_regs_reach_end_p): New function.
2220 (reload_reg_rtx_for_input): New variable.
2221 (reload_reg_rtx_for_output): Likewise.
2222 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
2223 when reassigning a pseudo register. Load reloadreg from
2224 reload_reg_rtx_for_input, moving the mode and register
2226 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
2227 instead of the original when deciding whether an input reload
2228 would be a no-op or whether an output reload can be deleted.
2229 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
2230 when setting up new_spill_reg_store. Load it from
2231 reload_reg_rtx_for_output, moving the mode and register
2233 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
2234 instead of the original when deciding whether an output reload
2235 would be a no-op. Do the same when modifying insn notes.
2236 Use rtx_equal_p instead of == to compare the registers.
2237 (inherit_piecemeal_p): Take a mode and two register numbers
2239 (emit_reload_insns): Clear new_spill_reg_store for every hard
2240 register in the reload register. Remove spill registers
2241 from reg_reloaded_valid before considering whether to record
2242 inheritance information for them. Use reload_reg_rtx_for_output
2243 instead of reg_rtx when recording output reloads. Use
2244 reload_reg_rtx_for_input instead of reg_rtx when recording
2245 input reloads. Set or clear reg_reloaded_call_part_clobbered
2246 at the same time as setting reg_reloaded_valid.
2247 (delete_output_reload): Add a new_reload_reg parameter and use it
2248 instead of rld[j].reg_rtx.
2249 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
2252 2008-03-25 Tom Tromey <tromey@redhat.com>
2254 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
2255 (build/genattr.o): Likewise.
2256 (build/genattrtab.o): Likewise.
2257 (build/gencodes.o): Likewise.
2258 (build/genconfig.o): Likewise.
2259 (build/genconstants.o): Likewise.
2260 (build/genemit.o): Likewise.
2261 (build/genextract.o): Likewise.
2262 (build/genflags.o): Likewise.
2264 2008-03-25 Bob Wilson <bob.wilson@acm.org>
2266 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
2267 instead of size_int for integer types.
2268 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
2269 to match type of MINUS_EXPR.
2271 2008-03-25 Tom Tromey <tromey@redhat.com>
2273 * configure: Rebuilt.
2274 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
2277 2008-03-25 Tom Tromey <tromey@redhat.com>
2279 * config/x-solaris (host-solaris.o): Update.
2280 * config/x-linux (host-linux.o): Update.
2281 * config/x-hpux (host-hpux.o): Update.
2282 * config/x-darwin (host-darwin.o): Update.
2283 * config/v850/t-v850e (v850-c.o): Update.
2284 * config/v850/t-v850 (v850-c.o): Update.
2285 * config/t-vxworks (vxworks.o): Update.
2286 * config/t-sol2 (sol2-c.o, sol2.o): Update.
2287 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
2288 * config/spu/t-spu-elf (spu-c.o): Update.
2290 * config/sh/t-symbian (sh-c.o): Update.
2291 (symbian.o): Update.
2292 * config/sh/t-sh (sh-c.o): Update.
2293 * config/score/t-score-elf (score7.o, score3.o): Update.
2294 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
2295 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
2296 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
2297 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
2299 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
2300 * config/m32c/t-m32c (m32c-pragma.o): Update.
2301 * config/ia64/t-ia64 (ia64-c.o): Update.
2302 * config/i386/x-mingw32 (host-mingw32.o): Update.
2303 * config/i386/x-i386 (driver-i386.o): Update.
2304 * config/i386/x-darwin (host-i386-darwin.o): Update.
2305 * config/i386/x-cygwin (host-cygwin.o): Update.
2306 * config/i386/t-nwld (nwld.o): Update.
2307 * config/i386/t-netware (netware.o): Update.
2308 * config/i386/t-interix (winnt.o): Update.
2309 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
2310 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
2311 msformat-c.o): Update.
2312 * config/bfin/t-bfin-linux (generated_files): Add
2313 linux-sysroot-suffix.h.
2314 * config/arm/t-wince-pe (pe.o): Update.
2315 * config/arm/t-strongarm-pe (pe.o): Update.
2316 * config/arm/t-pe (pe.o): Update.
2317 * config/arm/t-arm (arm-c.o): Update.
2318 * doc/install.texi (Prerequisites): Require make 3.80.
2319 * Makefile.in: Remove .o targets.
2320 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
2321 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
2322 (simple_generated_h, simple_generated_c): Move earlier.
2323 (generated_files): New variable.
2324 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
2325 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
2326 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
2327 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
2328 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
2329 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
2330 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
2331 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
2332 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
2333 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
2334 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
2335 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
2337 (COMPILE.base, COMPILE): New variables.
2338 (%.o): New pattern rule.
2339 (ALL_HOST_OBJS): New variable.
2340 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
2341 (dummy-checksum.o, cc1-checksum.o): Remove.
2342 (DRIVER_SHLIB): New variable.
2343 (DRIVER_DEFINES): Use it.
2344 (gencondmd.c): Move out of build/.
2345 (s-conditions): Update.
2346 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
2347 (ALL_BUILD_OBJS): Likewise.
2348 (build/%.o): Use BUILDCOMPILE.
2349 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
2350 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
2351 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
2352 build/gencheck.o, build/gencodes.o, build/genconditions.o,
2353 build/genconfig.o, build/genconstants.o, build/genemit.o,
2354 build/genextract.o, build/genflags.o, build/genmddeps.o,
2355 build/genopinit.o, build/genoutput.o, build/genpeep.o,
2356 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
2357 build/gen-protos.o, build/scan.o, build/fix-header.o,
2358 build/scan-decls.o): Simplify.
2359 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
2360 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
2361 prefix.o, toplev.o): Reduce to variable setting.
2362 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
2363 ($(out_object_file), gcc-options.o): New targets.
2364 ($(ALL_HOST_OBJS)): New target. Include dependency files.
2365 * configure: Rebuilt.
2366 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
2367 * doc/sourcebuild.texi (Front End Directory): Document new variable.
2369 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
2371 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
2372 complain when we hit an error, return ERROR_MARK_NODE.
2374 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
2376 * config/sh/constraints.md (Pso, Psz): New constraints.
2377 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
2378 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
2380 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
2382 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
2383 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
2385 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
2387 * config/sh/sh.md (prefetch): Add condition for SH2A target.
2388 (prefetch_sh2a): New.
2390 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
2391 Naveen.H.S <naveen.hs@kpitcummins.com>
2393 * config/sh/constraints.md (I28): New constraint.
2394 * config/sh/sh.c (broken_move): Add support for movi20s.
2395 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
2397 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
2398 Jayant Sonar <Jayant.sonar@kpitcummins.com>
2399 Naveen.H.S <naveen.hs@kpitcummins.com>
2401 * config/sh/sh.c (SH_ATTRIBUTES): Define.
2402 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
2403 (print_operand): Handle resbank in %@ operand code.
2404 (sh_encode_section_info): New.
2405 (push_regs): Add conditions for resbank.
2406 (sh_expand_epilogue): Likewise.
2407 (sh_insert_attributes): Likewise.
2408 (sh_attribute_table): Likewise.
2409 (sh_handle_resbank_handler_attribute): New.
2410 (sh2a_handle_function_vector_handler_attribute): New.
2411 (sh2a_is_function_vector_call): New.
2412 (sh2a_get_function_vector_number): New.
2413 (sh2a_function_vector_p): New.
2414 (sh_cfun_resbank_handler_p): New.
2415 * config/sh/sh.md (calli): Emit jsr/n if possible.
2416 (calli_tbr_rel): New.
2417 (calli_pcrel): Emit jsr/n if possible.
2418 (return_i): Emit rts/n if possible.
2419 (call_valuei_tbr_rel): New.
2420 (call_valuei_pcrel): Add condition for SH2A target.
2421 (call_value): Likewise.
2422 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
2423 (sh2a_get_function_vector_number): Likewise.
2424 (sh2a_is_function_vector_call): Likewise.
2425 * doc/extend.texi: Document TBR relative addressing of SH2A.
2426 (resbank): Add description for SH2A.
2428 2008-03-24 Richard Guenther <rguenther@suse.de>
2431 * gimplify.c (gimplify_modify_expr): For frontend type-correct
2432 pointer assignments change conversions according to middle-end rules.
2433 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
2434 * configure.ac: Include type checking in yes.
2435 * configure: Regenerate.
2437 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2439 * diagnostic.c (diagnostic_count_diagnostic): Delete.
2440 (diagnostic_report_diagnostic): Update. Handle ICEs here.
2442 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
2444 * gthr-vxworks.h (UNUSED): Define.
2446 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
2448 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
2450 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
2452 * doc/extend.texi (Function Attributes): Add missing comma in the
2453 example of the "alloc_size" attribute.
2455 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
2458 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
2460 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
2463 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
2466 * stor-layout.c (update_alignment_for_field): Set minimum alignment
2467 of the underlying type of a MS bitfield layout to the natural
2468 alignment of the type.
2470 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
2472 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
2473 to their natural alignment to avoid store forwarding stalls.
2475 2008-03-22 Richard Guenther <rguenther@suse.de>
2477 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
2478 For PHI nodes verify the address is invariant.
2479 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
2480 (get_symbol_constant_value): Use is_gimple_min_invariant.
2481 (maybe_fold_stmt_indirect): Likewise.
2483 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
2485 PR rtl-optimization/33927
2486 * Makefile.in (dse.o): Depend on $(TM_P_H).
2487 * expr.h (extract_low_bits): Declare.
2488 * expmed.c (extract_low_bits): New function.
2489 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
2490 * dse.c: Include tm_p.h.
2491 (find_shift_sequence): Remove the read_reg argument and return the
2492 read value. Emit the instructions instead of returning them.
2493 Iterate on new_mode rather than calculating it each time.
2494 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
2495 source to NEW_MODE and extract_low_bits to convert the shifted
2497 (replace_read): Allow the load and store to have different mode
2498 classes. Use extract_low_bits when SHIFT == 0. Create the shift
2499 or extraction instructions before trying the replacement. Update
2500 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
2502 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
2504 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
2505 to their natural alignment to avoid store forwarding stalls.
2507 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
2510 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
2511 encouraging but not allowing gprs for input;
2512 change the input constraint to !f#r.
2513 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
2515 change the output constraint to !f#r.
2517 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
2520 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
2521 corresponding post-reload splitters.
2522 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
2523 when x87 FP math is selected.
2524 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
2525 New function prototype.
2526 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
2527 unreachable function to ease macroization of insn patterns.
2529 2008-03-21 Martin Jambor <mjambor@suse.cz>
2531 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
2532 reference dumps if ddr is NULL or dependence is unknown.
2534 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
2536 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
2537 unsigned extension into account.
2538 (ATOMIC_COMPARE_AND_SWAP): Likewise.
2539 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
2540 Do computations on a scratch register.
2542 2008-03-21 Richard Guenther <rguenther@suse.de>
2544 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2545 Use is_gimple_min_invariant instead of TREE_INVARIANT.
2546 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
2547 * tree-ssa-dom.c (record_equality): Likewise.
2548 * tree-inline.c (copy_body_r): Likewise.
2549 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
2552 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
2554 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
2555 as 'delete_unused' argument.
2557 2008-03-20 Richard Guenther <rguenther@suse.de>
2559 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
2560 special casing of constant qualifiers.
2561 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
2562 care about them in general.
2563 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
2564 regardless of their type.
2565 (fold_stmt_r): Forcefully fold *& if we end up with that.
2567 2008-03-20 Paul Brook <paul@codesourcery.com>
2569 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
2570 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
2572 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
2574 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
2575 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
2577 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
2579 * common.opt (Wmudflap): New option.
2580 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
2581 (mx_register_decls): Likewise.
2582 (mudflap_finish_file): Likewise.
2583 * doc/invoke.texi: Document -Wno-mudflap.
2585 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
2587 * c-format.c (replace_format_name_to_system_name): New.
2589 (convert_format_name_to_system_name): New.
2590 (decode_format_attr): Add use of convert_format_name_to_system_name.
2591 (format_types_orig): Add gnu_ prefix to names.
2592 (check_format_info_main): Special treating of \0 escaped names for
2593 supporting multi-character format specifiers as I32, I64.
2594 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
2595 (gnu_target_overrides_format_attributes): New.
2596 * c-format.h: Add structure target_ovr_attr to hold
2597 system specific formatter names.
2598 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
2599 msformat-c.o file to c_target_objs and cxx_target_objs.
2600 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
2601 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
2602 (TARGET_N_FORMAT_TYPES): New.
2603 * config/i386/msformat-c.c: New.
2604 * config/i386/t-cygming: Add build rule for msformat-c.o.
2605 * doc/extend.texi: Add new format names gnu_* and ms_* and
2607 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
2609 2008-03-20 Ira Rosen <irar@il.ibm.com>
2611 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
2612 optimizations turned on under -O3.
2613 (ftree-vectorize): Add that the flag is turned on with -O3.
2615 2008-03-20 Ben Elliston <bje@au.ibm.com>
2617 * regmove.c (try_auto_increment): Fix spelling error in comment.
2618 * final.c (final_scan_insn): Likewise.
2620 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
2623 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
2624 allocator preferences for "y" and "r" class registers.
2625 ("*mov<mode>_internal"): Ditto.
2626 ("*movv2sf_internal_rex64"): Ditto.
2627 ("*movv2sf_internal"): Ditto.
2629 2008-03-19 Michael Matz <matz@suse.de>
2632 * calls.c (expand_call): Check overlap of arguments with call
2633 address for sibcalls.
2635 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
2638 * stor-layout.c (update_alignment_for_field): Set minimum alignment
2639 of the underlying type of a MS bitfield layout to the natural
2640 alignment of the type.
2642 2008-03-19 Jan Hubicka <jh@suse.cz>
2645 * toplev.c (decode_d_option): Handle all CPP flags.
2646 * tree-vrp.c: Update tree_pass descriptors.
2647 * regrename.c: Update tree_pass descriptors.
2648 * fwprop.c: Update tree_pass descriptors.
2649 * doc/invoke.texi: Remove documentation of dropped -d? flags.
2650 * tree-into-ssa.c: Update tree_pass descriptors.
2651 * tree-dump.c: Update tree_pass descriptors.
2652 * tree-complex.c: Update tree_pass descriptors.
2653 * tree-dump.h: Update tree_pass descriptors.
2654 * see.c: Update tree_pass descriptors.
2655 * cgraphbuild.c: Update tree_pass descriptors.
2656 * tracer.c: Update tree_pass descriptors.
2657 * tree-loop-distribution.c: Update tree_pass descriptors.
2658 * cgraph.c: Update tree_pass descriptors.
2659 * postreload-gcse.c: Update tree_pass descriptors.
2660 * postreload.c: Update tree_pass descriptors.
2661 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
2662 * tree-tailcall.c: Update tree_pass descriptors.
2663 * tree-pass.h (tree_opt_pass): Rename to ...
2664 (opt_pass) ... this one; add "type" field and remove letter field.
2665 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
2666 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
2667 all_lowering_passes): Update declaration.
2668 * ipa-cp.c: Update tree_pass descriptors.
2669 * final.c: Update tree_pass descriptors.
2670 * omp-low.c: Update tree_pass descriptors.
2671 * tree-ssa-dse.c: Update tree_pass descriptors.
2672 * ipa-reference.c: Update tree_pass descriptors.
2673 * tree-ssa-uncprop.c: Update tree_pass descriptors.
2674 * auto-inc-dec.c: Update tree_pass descriptors.
2675 * reorg.c: Update tree_pass descriptors.
2676 * cgraphunit.c: Update tree_pass descriptors.
2677 * tree-ssa-copyrename.c: Update tree_pass descriptors.
2678 * tree-ssa-ccp.c: Update tree_pass descriptors.
2679 * df-core.c: Update tree_pass descriptors.
2680 * mode-switching.c: Update tree_pass descriptors.
2681 * tree-nomudflap.c: Update tree_pass descriptors.
2682 * modulo-sched.c: Update tree_pass descriptors.
2683 * ipa-pure-const.c: Update tree_pass descriptors.
2684 * cse.c: Update tree_pass descriptors.
2685 * web.c: Update tree_pass descriptors.
2686 * tree-stdarg.c: Update tree_pass descriptors.
2687 * tree-ssa-math-opts.c: Update tree_pass descriptors.
2688 * tree-ssa-dom.c: Update tree_pass descriptors.
2689 * tree-nrv.c: Update tree_pass descriptors.
2690 * tree-ssa-alias.c: Update tree_pass descriptors.
2691 * loop-init.c: Update tree_pass descriptors.
2692 * gimple-low.c: Update tree_pass descriptors.
2693 * ipa-inline.c: Update tree_pass descriptors.
2694 * tree-ssa-sink.c: Update tree_pass descriptors.
2695 * global.c: Update tree_pass descriptors.
2696 * ifcvt.c: Update tree_pass descriptors.
2697 * jump.c: Update tree_pass descriptors.
2698 * predict.c: Update tree_pass descriptors.
2699 * tree-ssa-loop.c: Update tree_pass descriptors.
2700 * recog.c: Update tree_pass descriptors.
2701 * dse.c: Update tree_pass descriptors.
2702 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
2703 * tree-eh.c: Update tree_pass descriptors.
2704 * regmove.c: Update tree_pass descriptors.
2706 * function.c: Update tree_pass descriptors.
2707 * tree-vectorizer.c: Update tree_pass descriptors.
2708 * gcse.c: Update tree_pass descriptors.
2709 * ipa-type-escape.c: Update tree_pass descriptors.
2710 * tree-if-conv.c: Update tree_pass descriptors.
2711 * init-regs.c: Update tree_pass descriptors.
2712 * ipa.c: Update tree_pass descriptors.
2713 * tree-ssa-phiopt.c: Update tree_pass descriptors.
2714 * rtl-factoring.c: Update tree_pass descriptors.
2715 * lower-subreg.c: Update tree_pass descriptors.
2716 * bt-load.c: Update tree_pass descriptors.
2717 * tree-dfa.c: Update tree_pass descriptors.
2718 * except.c: Update tree_pass descriptors.
2719 * emit-rtl.c: Update tree_pass descriptors.
2720 * cfgexpand.c: Update tree_pass descriptors.
2721 * tree-cfgcleanup.c: Update tree_pass descriptors.
2722 * cfgcleanup.c: Update tree_pass descriptors.
2723 * tree-ssa-pre.c: Update tree_pass descriptors.
2724 * tree-sra.c: Update tree_pass descriptors.
2725 * tree-mudflap.c: Update tree_pass descriptors.
2726 * tree-ssa-copy.c: Update tree_pass descriptors.
2727 * cfglayout.c: Update tree_pass descriptors.
2728 * tree-ssa-forwprop.c: Update tree_pass descriptors.
2729 * tree-ssa-dce.c: Update tree_pass descriptors.
2730 * tree-ssa.c: Update tree_pass descriptors.
2731 * regclass.c: Update tree_pass descriptors.
2732 * integrate.c: Update tree_pass descriptors.
2733 * tree-optimize.c: Update tree_pass descriptors.
2734 * tree-ssa-phiprop.c: Update tree_pass descriptors.
2735 * tree-object-size.c: Update tree_pass descriptors.
2736 * combine.c: Update tree_pass descriptors.
2737 * tree-outof-ssa.c: Update tree_pass descriptors.
2738 * bb-reorder.c: Update tree_pass descriptors.
2739 * stack-ptr-mod.c: Update tree_pass descriptors.
2740 * var-tracking.c: Update tree_pass descriptors.
2741 * tree-profile.c: Update tree_pass descriptors.
2742 * tree-vect-generic.c: Update tree_pass descriptors.
2743 * reg-stack.c: Update tree_pass descriptors.
2744 * sched-rgn.c: Update tree_pass descriptors.
2745 * tree-ssa-structalias.c: Update tree_pass descriptors.
2746 * tree-cfg.c: Update tree_pass descriptors.
2747 * passes.c (current_pass): Update declaration.
2748 (finish_optimization_passes): Update.
2749 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
2750 (register_one_dump_file, register_dump_files_1, next_pass_1):
2752 (init_optimization_passes): Update handling of new types.
2753 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
2754 * ipa-struct-reorg.c: Update tree_pass descriptors.
2755 * tree-ssa-reassoc.c: Update tree_pass descriptors.
2756 * combine-stack-adj.c: Update tree_pass descriptors.
2757 * cfgrtl.c: Update tree_pass descriptors.
2758 * dce.c: Update tree_pass descriptors.
2759 * tree-ssanames.c: Update tree_pass descriptors.
2761 2008-03-19 Richard Guenther <rguenther@suse.de>
2764 * tree-ssa.c (walk_data): New structure.
2765 (warn_uninitialized_var): If not always_executed warn with "maybe"
2767 (execute_early_warn_uninitialized): Compute post-dominators.
2768 Initialize always_executed before processing each basic block.
2770 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
2773 * config/i386/i386.c (x86_this_parameter): Calculate correct location
2774 of "this" pointer when "regparm = N" or "fastcall" is in effect.
2776 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2778 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
2780 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
2782 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
2784 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
2785 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
2786 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
2787 target after ignore has been set, and move there also the commputation
2788 of subtarget and original_target.
2789 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
2790 (LANG_HOOKS_INITIALIZER): Remove it.
2791 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
2793 2008-03-18 Richard Guenther <rguenther@suse.de>
2795 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
2796 found an expression with constants, note that in the VN for the lhs.
2797 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
2798 fold them to constants if possible. Run cleanup_cfg if done so.
2799 (execute_pre): Return todo.
2801 (execute_fre): Likewise.
2802 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
2804 (get_prop_source_stmt): Look through pointer conversions.
2806 2008-03-18 Jan Hubicka <jh@suse.cz>
2808 * tree-pretty-print.c: Include predict.h.
2809 (dump_generic_node): Dump predictor.
2810 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
2811 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
2812 * gimple-low.c (lower_stmt): Likewise.
2813 * expr.c (expand_expr_real): Likewise.
2814 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
2816 (build_predict_expr, build_predict_expr): New.
2817 * predict.h (predictor_name, build_predict_expr): Update.
2818 * c-typeck.c (c_finish_bc_stmt): Add prediction.
2819 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
2820 * predict.def (PRED_CONTINUE): Update hitrate.
2821 * tree.def (PREDICT_EXPR): Define.
2822 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
2823 do not handle BIND_EXPR.
2824 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
2825 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
2826 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
2829 2008-03-18 Michael Matz <matz@suse.de>
2831 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
2833 2008-03-18 Richard Guenther <rguenther@suse.de>
2835 * tree-gimple.h (is_gimple_invariant_address): Declare.
2836 (is_gimple_constant): Likewise.
2837 * tree-gimple.c (is_gimple_constant): New function.
2838 (is_gimple_invariant_address): Likewise.
2839 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
2840 and is_gimple_invariant_address.
2841 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
2843 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
2844 an addressable base.
2846 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2849 * gimplify.c (gimplify_expr): Gimplify second operand of
2852 2008-03-17 Richard Guenther <rguenther@suse.de>
2854 PR tree-optimization/19637
2855 * fold-const.c (fold_unary): Remove restrictions of removing
2856 intermediate pointer-conversions (P2)(P1)P0.
2857 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
2858 conversion to void pointer.
2859 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
2861 2008-03-16 James E. Wilson <wilson@tuliptree.org>
2864 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
2865 emulated thread local variables.
2867 2008-03-16 Richard Guenther <rguenther@suse.de>
2870 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
2871 expand TREE_INVARIANT operations that are not gimple invariant.
2873 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
2875 * doc/extend.texi (Alignment): Say that the ABI controls
2876 the __alignof__ for non-strict-alignment targets rather
2877 than being a recommendation.
2879 2008-03-15 Paul Brook <paul@codesourcery.com>
2881 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
2883 (arm_output_fn_unwind): Mark functions that can not be unwound.
2885 2008-03-15 Paul Brook <paul@codesourcery.com>
2887 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
2888 extension instructions.
2890 2008-03-15 Richard Guenther <rguenther@suse.de>
2892 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
2893 and fold constant aggregate refs.
2894 (fold_const_aggregate_ref): Handle string constants
2895 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
2896 (evaluate_stmt): Simplify now that ccp_fold folds constant
2899 2008-03-15 Paul Brook <paul@codesourcery.com>
2901 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
2902 (extzv): Use gen_extzv_t2.
2903 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
2905 2008-03-15 Richard Guenther <rguenther@suse.de>
2907 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
2908 (fold_const_aggregate_ref): Likewise.
2909 (get_value): Return NULL if we don't have any values.
2910 (ccp_finalize): Set const_val to NULL after freeing it.
2911 * tree-flow.h (get_symbol_constant_value): Declare.
2912 (fold_const_aggregate_ref): Likewise.
2913 * tree-ssa-sccvn.c (try_to_simplify): Use them.
2915 2008-03-15 Richard Guenther <rguenther@suse.de>
2918 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
2919 to not produce negative array indices if not allowed. Add
2920 parameter to indicate that.
2921 (maybe_fold_offset_to_component_ref): Allow negative array
2922 indices only for the first member of a structure.
2923 (maybe_fold_offset_to_reference): Allow negative array indices.
2924 (maybe_fold_stmt_addition): Likewise.
2926 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
2927 Anatoly Sokolov <aesok@post.ru>
2929 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
2930 (avr_arch): Add ARCH_AVR6.
2931 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
2932 (initial_elimination_offset): Initialize and use 'avr_pc_size'
2933 instead of fixed value 2.
2934 (print_operand_address): Use gs() asm specifier instead of pm().
2935 (avr_assemble_integer): (Ditto.).
2936 (avr_output_addr_vec_elt): (Ditto.).
2937 (print_operand): Handle "!" code.
2938 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
2939 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
2940 (AVR_HAVE_EIJMP_EICALL): Define.
2941 (AVR_3_BYTE_PC): Redefine.
2942 (AVR_2_BYTE_PC): (Ditto.).
2943 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
2944 (LINK_SPEC): Add atmega2560 and atmega2561.
2945 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
2947 * config/avr/avr.md (call_insn): Use eicall instead of icall
2948 for 3 byte PC devices.
2949 (call_value_insn): (Ditto.).
2950 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
2951 (indirect_jump): Use only for for 2 byte PC devices.
2952 (*tablejump): (Ditto.).
2953 (*indirect_jump_avr6): Add insn.
2954 (*tablejump_rjmp): Don't use for 3 byte PC devices.
2955 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
2956 instead of ijmp for 3 byte PC devices.
2957 (__tablejump2__): (Ditto.).
2958 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
2959 (MULITLIB_DIRNAMES): (Ditto.).
2960 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
2962 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
2964 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
2965 "sse2_umulsidi3". Use V1DI mode for operand 0.
2966 ("mmx_psadbw"): Use V1DI mode for operand 0.
2967 * config/i386/i386-modes.def (V1SI): New vector mode.
2968 * config/i386/i386.c (struct builtin_description)
2969 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
2970 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
2971 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
2972 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
2973 v1di_ftype_v8qi_v8qi type.
2974 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
2976 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
2977 __builtin_ia32_pmuludq]: Fix the mode of return value.
2979 2008-03-15 Richard Guenther <rguenther@suse.de>
2982 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
2985 2008-03-14 Bob Wilson <bob.wilson@acm.org>
2987 * doc/invoke.texi (Option Summary, Xtensa Options): Document
2988 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
2989 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
2990 unless TARGET_SERIALIZE_VOLATILE is enabled.
2991 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
2992 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
2993 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
2995 2008-03-14 Richard Guenther <rguenther@suse.de>
2997 PR tree-optimization/34172
2998 * tree-flow.h (refs_may_alias_p): Declare.
2999 (get_single_def_stmt): Likewise.
3000 (get_single_def_stmt_from_phi): Likewise.
3001 (get_single_def_stmt_with_phi): Likewise.
3002 * tree-dfa.c (refs_may_alias_p): New function.
3003 (get_single_def_stmt): Likewise.
3004 (get_single_def_stmt_from_phi): Likewise.
3005 (get_single_def_stmt_with_phi): Likewise.
3006 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
3007 (vn_reference_lookup_1): New helper function.
3008 (vn_reference_lookup): Walk the virtual use-def chain to
3009 continue searching for a match if the def does not alias the
3010 reference we are looking for.
3012 2008-03-14 David Edelsohn <edelsohn@gnu.org>
3014 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
3015 archive and Perzl. Update The Written Word listing.
3017 2008-03-14 Richard Guenther <rguenther@suse.de>
3019 PR tree-optimization/34043
3020 PR tree-optimization/33989
3021 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
3023 (bitmap_find_leader): Use extra argument to verify dominance
3024 relationship inside a basic-block.
3025 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
3026 (find_leader_in_sets): Adjust.
3027 (create_component_ref_by_pieces): Take extra argument for
3028 dominance check, handle lookup failures.
3029 (find_or_generate_expression): Likewise.
3030 (create_expression_by_pieces): Likewise.
3031 (insert_into_preds_of_block): Adjust.
3032 (create_value_expr_from): If asked for, verify all operands
3033 are in the blocks AVAIL_OUT set.
3034 (make_values_for_stmt): Check for SSA_NAMEs that are life
3035 over an abnormal edge.
3036 (compute_avail): Remove such check.
3037 (do_SCCVN_insertion): New function.
3038 (eliminate): If we do not find a leader suitable for replacement
3039 insert a replacement expression from SCCVN if available.
3040 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
3041 (struct vn_ssa_aux): Add needs_insertion flag.
3042 * tree-ssa-sccvn.c (may_insert): New global flag.
3043 (copy_reference_ops_from_ref): Value-number union member access
3044 based on its size, not type and member if insertion is allowed.
3045 (visit_reference_op_load): For a weak match from union type
3046 punning lookup a view-converted value and insert a SSA_NAME
3047 for that value if that is not found.
3048 (visit_use): Make dumps shorter. Do not disallow value numbering
3049 SSA_NAMEs that are life over an abnormal edge to constants.
3050 (free_scc_vn): Release inserted SSA_NAMEs.
3051 (run_scc_vn): New flag to specify whether insertion is allowed.
3052 Process SSA_NAMEs in forward order.
3053 * tree-ssa-loop-im.c (for_each_index): Handle invariant
3054 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
3055 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
3056 pointer type to/from integral types that do not change the
3057 precision to regular conversions.
3059 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
3061 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
3062 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
3063 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
3064 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
3065 input arguments and the mode of return value. Built-in functions
3066 that operate on whole 64-bit MMX register now use V1DI mode.
3068 2008-03-13 Alon Dayan <alond@il.ibm.com>
3069 Olga Golovanevsky <olga@il.ibm.com>
3071 PR tree-optimization/35041
3072 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
3073 to locate the right position in a statement.
3075 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
3079 * config/i386/xmmintrin.h: Change all static inline functions to
3080 extern inline and add __gnu_inline__ attribute.
3081 * config/i386/bmintrin.h: Ditto.
3082 * config/i386/smmintrin.h: Ditto.
3083 * config/i386/tmmintrin.h: Ditto.
3084 * config/i386/mmintrin-common.h: Ditto.
3085 * config/i386/ammintrin.h: Ditto.
3086 * config/i386/emmintrin.h: Ditto.
3087 * config/i386/pmmintrin.h: Ditto.
3088 * config/i386/mmintrin.h: Ditto.
3089 * config/i386/mm3dnow.h: Ditto.
3091 2008-03-13 Jakub Jelinek <jakub@redhat.com>
3094 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
3095 (lower_omp_2): New function.
3096 (lower_omp_1, lower_omp): Rewritten.
3098 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
3101 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
3102 with the phrase "Microsoft Windows compilers".
3103 (Push/Pop Macro Pragmas): New subsection. Document
3104 #pragma push_macro and pragma pop_macro.
3106 2008-03-12 Paul Brook <paul@codesourcery.com>
3108 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
3110 2008-03-12 Paul Brook <paul@codesourcery.com>
3112 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
3113 (thumb2_alusi3_short): Exclude PLUS and MINUS.
3114 (thumb2_addsi_shortim): Rename ...
3115 (thumb2_addsi_short): ... to this. Allow register operands.
3116 (thumb2_subsi_short): New pattern.
3117 (thumb2_one_cmplsi2_short,
3118 thumb2_negsi2_short): New patterns and peepholes.
3120 2008-03-12 Paul Brook <paul@codesourcery.com>
3122 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
3124 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
3126 * config/i386/i386.md (int_cond): New code iterator.
3128 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
3129 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
3130 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
3131 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
3132 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
3133 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
3134 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
3135 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
3137 2008-03-12 Paul Brook <paul@codesourcery.com>
3139 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
3140 instead of {arm,thumb}_compute_save_reg_mask.
3141 (output_return_instruction): Ditto.
3142 (thumb_unexpanded_epilogue): Ditto.
3143 (thumb1_expand_prologue): Ditto.
3144 (thumb1_output_function_prologue): Ditto.
3145 (arm_set_return_address): Ditto.
3146 (thumb_set_return_address): Ditto.
3147 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
3148 regs to achieve stack alignment.
3149 (thumb1_compute_save_reg_mask): Fix compiler warning.
3150 (arm_output_epilogue): Use offsets->saved_regs_mask.
3151 Adjust stack pointer by poping call clobered registers.
3152 (arm_expand_prologue): Use offsets->saved_regs_mask.
3153 Adjust stack pointer by pushing extra registers.
3154 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
3156 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
3159 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
3160 conversion to the operands of a multiplication.
3162 2008-03-12 Richard Guenther <rguenther@suse.de>
3164 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
3165 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
3166 * timevar.def (TV_TREE_PHIPROP): Add.
3167 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
3168 pass description. Use TV_TREE_PHIPROP.
3169 * tree-ssa-forwprop.c: Remove phiprop code.
3171 2008-03-12 Jakub Jelinek <jakub@redhat.com>
3174 * omp-low.c (maybe_lookup_decl): Constify first argument.
3175 (use_pointer_for_field): Change last argument from bool to
3176 omp_context *. Disallow shared copy-in/out in nested
3177 parallel if decl is shared in outer parallel too.
3178 (build_outer_var_ref, scan_sharing_clauses,
3179 lower_rec_input_clauses, lower_copyprivate_clauses,
3180 lower_send_clauses, lower_send_shared_vars): Adjust callers.
3182 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
3183 Ira Rosen <irar@il.ibm.com>
3185 * tree-vectorizer.c (free_stmt_vec_info): New function.
3186 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
3187 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
3188 * tree-vectorizer.h (free_stmt_vec_info): Declare.
3189 * tree-vect-transform.c (vectorizable_conversion): Free
3190 vec_oprnds0 if it was allocated.
3191 (vect_permute_store_chain): Remove unused VECs.
3192 (vectorizable_store): Free VECs that are allocated in the..
3194 (vect_transform_strided_load, vectorizable_load): Likewise.
3195 (vect_remove_stores): Simplify the code.
3196 (vect_transform_loop): Move code to vect_remove_stores().
3197 Call vect_remove_stores() and free_stmt_vec_info().
3199 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3201 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
3202 TARGET_HPUX. Revise comment.
3203 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
3204 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
3205 Use sr4 variant of `be' instruction when not generating PIC code.
3206 (attr_length_call): Adjust for above change.
3208 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
3210 * ipa-reference.c (static_execute): Remove module_statics_const and
3211 associated setting code.
3213 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
3216 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
3217 predicate for operand 1.
3218 (paritysi2_cmp): Use register_operand predicate for operand 2.
3219 Use earlyclobber modifier for operand 1. Remove support for
3221 (paritydi2_cmp): Use register_operand predicate for operand 3.
3222 Use earlyclobber modifier for operand 1. Remove support for
3225 2008-03-11 Paul Brook <paul@codesourcery.com>
3226 Vladimir Prus <vladimir@codesourcery.com>
3228 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
3229 (arm_compute_save_reg0_reg12_mask): Always
3230 check if register 11 must be saved. Always safe hard frame pointer
3231 when frame_pointer_needeed.
3232 (arm_compute_save_reg_mask): Save IP and PC
3233 only with apcs frames.
3234 (arm_output_epilogue): Adjust Thumb2 codepath to
3235 be also invoked and work for ARM non-apcs frames.
3236 (arm_expand_prologue): Don't bother saving IP
3237 for non-apcs frame, since it's not clobbered by
3238 prologue code. Implement non-apcs frame
3241 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
3243 PR rtl-optimization/35281
3244 * expr.c (convert_move): Use a new pseudo for the intermediate
3245 from_mode->word_mode result.
3247 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
3249 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
3250 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
3251 * toplev.c (compile_file): Don't call it.
3253 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
3256 * expr.c (store_expr): Call emit_block_move if the mode
3257 of "temp" RTX is BLKmode.
3259 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
3260 Richard Guenther <rguenther@suse.de>
3262 PR tree-optimization/31358
3263 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
3264 the step with a NULL_TREE.
3265 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
3266 to sizetype if type is a pointer type.
3267 (add_candidate_1): Don't convert the base and step to
3268 the generic type if the orginal type is a pointer type.
3269 (add_iv_value_candidates): Use sizetype for the step
3270 if type is a pointer type.
3271 (cand_value_at): Likewise.
3272 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
3274 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
3275 Don't convert the tem affine to the type.
3276 (add_elt_to_tree): Use sizetype for the step if a pointer.
3277 Use POINTER_PLUS_EXPR for pointers.
3278 (aff_combination_to_tree): Use sizetype for the step if a
3281 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
3283 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
3284 Remove commutativity hint.
3286 2008-03-10 Jakub Jelinek <jakub@redhat.com>
3290 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
3291 errorneous type. Check that v is a VAR_DECL.
3294 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
3296 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
3298 PR tree-optimization/35494
3299 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
3300 may be overriden at link and run time.
3302 2008-03-10 Richard Guenther <rguenther@suse.de>
3304 PR tree-optimization/34677
3305 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
3306 (poolify_tree): Likewise.
3307 (modify_expr_template): Likewise.
3308 (poolify_modify_stmt): Likewise.
3309 (insert_fake_stores): Handle all component-ref style stores
3310 in addition to INDIRECT_REF. Also handle complex types.
3311 Do not poolify the inserted load.
3312 (realify_fake_stores): Do not rebuild the tree but only
3313 make it a SSA_NAME copy.
3314 (init_pre): Remove initialzation of modify_expr_template.
3315 Do not allocate modify_expr_node_pool.
3316 (fini_pre): Do not free modify_expr_node_pool.
3318 2008-03-10 Paul Brook <paul@codesourcery.com>
3320 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
3323 2008-03-10 Paul Brook <paul@codesourcery.com>
3324 Mark Shinwell <shinwell@codesourcery.com>
3326 * config/arm/cortex-r4.md: New.
3327 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
3329 * config/arm/arm.md: Include cortex-r4.md.
3330 (insn): Add smmls, sdiv and udiv values.
3331 (generic_sched): Don't use generic scheduling for Cortex-R4.
3332 (arm_issue_rate): New function.
3333 (TARGET_SCHED_ISSUE_RATE): Define.
3335 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
3337 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
3339 2008-03-10 Richard Guenther <rguenther@suse.de>
3341 * tree-ssa-pre.c (get_sccvn_value): Simplify.
3342 (compute_avail): Do not add stmt uses to AVAIL_OUT.
3344 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
3346 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
3347 Set default to true.
3349 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3351 * c.opt (Wsynth): Deprecate.
3352 * doc/invoke.texi (Option Summary, Warning Options): Document
3353 -Wno-format-contains-nul.
3355 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
3358 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
3359 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
3361 2008-03-09 Ira Rosen <irar@il.ibm.com>
3363 * config/rs6000/rs6000.c (builtin_description): Rename vector
3364 left shift operations.
3365 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
3366 (altivec_vsl<VI_char>): Rename to ...
3367 (ashl<mode>3): ... new name.
3368 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
3370 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
3372 2008-03-08 Richard Guenther <rguenther@suse.de>
3374 * coverage.h (tree_coverage_counter_addr): Declare.
3375 * coverage.c (tree_coverage_counter_addr): New function.
3376 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
3378 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
3379 (tree_gen_one_value_profiler): Likewise.
3380 (tree_gen_ic_profiler): Likewise.
3381 (tree_gen_average_profiler): Likewise.
3382 (tree_gen_ior_profiler): Likewise.
3384 2008-03-08 Richard Guenther <rguenther@suse.de>
3386 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
3387 (vn_binary_op_insert): Likewise.
3388 (vn_unary_op_lookup): Likewise.
3389 (vn_unary_op_insert): Likewise.
3390 (vn_nary_op_lookup): Declare.
3391 (vn_nary_op_insert): Likewise.
3392 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
3393 and binary hashes, use a single obstack for unary_op_pool
3395 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
3396 a single struct vn_nary_op_s. Store tree code length and
3397 a variable number of operands.
3398 (struct vn_reference_op_struct): Remove unused op2.
3399 (vn_reference_op_eq): Do not compare op2.
3400 (vn_reference_op_compute_hash): Do not compute hash of op2.
3401 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
3402 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
3403 with vn_nary_op_compute_hash.
3404 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
3405 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
3407 (vn_unary_op_insert, vn_binary_op_insert): Replace with
3409 (visit_unary_op): Call nary functions.
3410 (visit_binary_op): Likewise.
3411 (process_scc): Adjust for struct vn_tables_s changes.
3412 (allocate_vn_table): Likewise.
3413 (free_vn_table): Likewise.
3414 * tree-vn.c (vn_add): Call nary functions.
3415 (vn_lookup): Likewise.
3417 2008-03-08 Jakub Jelinek <jakub@redhat.com>
3420 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
3421 wdst back after sync_compare_and_swapqhi_internal.
3423 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
3426 * config/i386/i386-modes.def (V1DI): New vector mode.
3427 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
3428 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
3429 (MMXMODE248): Ditto.
3430 (MMXMODE): Add V1DI mode.
3431 (mmxvecsize): Change DI mode to V1DI mode.
3432 ("mov<mode>): Use MMXMODEI8 mode iterator.
3433 ("*mov<mode>_internal_rex64"): Ditto.
3434 ("*mov<mode>_internal"): Ditto.
3435 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
3436 ("mmx_sub<mode>3"): Ditto.
3437 ("mmx_adddi3"): Remove insn pattern.
3438 ("mmx_subdi3"): Ditto.
3439 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
3440 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
3441 ("mmx_ashl<mode>3"): Ditto.
3442 ("mmx_lshrdi3"): Remove insn pattern.
3443 ("mmx_ashldi3"): Ditto.
3444 * config/i386/i386.c (classify_argument): Handle V1DImode.
3445 (function_arg_advance_32): Ditto.
3446 (function_arg_32): Ditto.
3447 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
3448 mmx_addv1di3 insn pattern.
3449 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
3450 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
3451 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
3452 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
3453 Remove definitions of built-in functions.
3454 (V1DI_type_node): New node.
3455 (v1di_ftype_v1di_int): Ditto.
3456 (v1di_ftype_v1di_v1di): Ditto.
3457 (v2si_ftype_v2si_si): Ditto.
3458 (v4hi_ftype_v4hi_di): Remove node.
3459 (v2si_ftype_v2si_di): Ditto.
3460 (ix86_init_mmx_sse_builtins): Handle V1DImode.
3461 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
3462 Redefine builtins using def_builtin_const with *_ftype_*_int node.
3463 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
3464 Add new builtins using def_builtin_const.
3465 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
3466 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
3467 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
3468 * config/i386/mmintrin.h (__v1di): New typedef.
3469 (_mm_add_si64): Cast arguments to __v1di type.
3470 (_mm_sub_si64): Ditto.
3471 (_mm_sll_pi16): Cast __count to __v4hi type.
3472 (_mm_sll_pi32): Cast __count to __v2si type.
3473 (_mm_sll_si64): Cast arguments to __v1di type.
3474 (_mm_srl_pi16): Cast __count to __v4hi type.
3475 (_mm_srl_pi32): Cast __count to __v2si type.
3476 (_mm_srl_si64): Cast arguments to __v1di type.
3477 (_mm_sra_pi16): Cast __count to __v4hi type.
3478 (_mm_sra_pi32): Cast __count to __v2si type.
3479 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
3480 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
3481 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
3482 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
3483 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
3484 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
3485 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
3486 (_mm_srai_pi32): Use __builtin_ia32_psradi.
3487 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
3488 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
3489 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
3490 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
3492 2008-03-07 Joseph Myers <joseph@codesourcery.com>
3494 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
3496 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
3499 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
3500 reg+const addressing for Altivec modes. Don't generate reg+reg
3501 addressing for TFmode or TDmode quantities.
3503 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
3505 * c-common.c (vector_types_convertible_p): Call langhook
3506 instead of comptypes.
3508 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
3511 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
3512 integral and scalar float variables which have a
3515 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
3517 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
3518 dwarf_register_span hook when emitting unwind information for
3519 register-to-memory saves.
3520 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
3521 (rs6000_frame_related): Remove call to spe_synthesize_frame.
3523 2008-03-06 Jakub Jelinek <jakub@redhat.com>
3525 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
3526 for the same VAR_DECL.
3528 2008-03-06 Tom Tromey <tromey@redhat.com>
3531 * doc/standards.texi (Standards): Don't mention treelang.
3532 * doc/invoke.texi (Overall Options): Don't mention treelang.
3533 * doc/install.texi (Prerequisites): Don't mention bison or
3535 (Configuration): Don't mention treelang.
3536 (Building): Likewise.
3537 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
3539 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
3541 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
3542 word-extractions out of a multi-word object.
3544 2008-03-06 Richard Guenther <rguenther@suse.de>
3546 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
3547 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
3548 result type and precision.
3549 * expr.c (get_inner_reference): Set unsignedp based on the result
3550 type of BIT_FIELD_REF.
3551 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
3552 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
3553 (try_instantiate_multiple_fields): Likewise. Use the correct type
3555 (sra_build_assignment): Likewise.
3556 (sra_build_elt_assignment): Likewise.
3557 (sra_explode_bitfield_assignment): Likewise.
3558 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
3559 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
3560 set BIT_FIELD_REF_UNSIGNED.
3561 (vectorizable_load): Likewise.
3563 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
3565 * cse.c (cse_extended_basic_block): Invalidate artificial defs
3568 2008-03-06 Richard Guenther <rguenther@suse.de>
3570 * alias.c (struct alias_set_entry): Move has_zero_child field
3571 to pack with alias_set.
3573 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
3575 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
3578 2008-03-05 Ian Lance Taylor <iant@google.com>
3580 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
3582 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
3584 * fwprop.c (update_df): Support width and offset parameters of
3586 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
3587 global_conflicts): Change DF_REF_EXTRACT to either
3588 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
3589 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
3590 * df-scan.c (df_ref_record, df_defs_record,
3591 df_ref_create_structure, df_def_record_1, df_uses_record,
3592 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
3593 df_bb_refs_collect, df_entry_block_defs_collect,
3594 df_exit_block_uses_collect): Support new width and offset fields.
3595 (ref_extract_pool): New storage pool.
3596 (df_free_ref): New function.
3597 (df_reg_chain_unlink, df_free_collection_rec,
3598 df_sort_and_compress_refs): Call df_free_ref.
3599 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
3601 (df_ref_create_structure): Allocate df_ref_extract if offset and
3602 width fields are used.
3603 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
3604 (df_uses_record): Get offset and width from ZERO_EXTRACT
3606 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
3607 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
3608 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
3609 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
3610 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
3611 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
3612 (df_ref_extract): New structure.
3613 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
3614 (df_ref_create): Add width and offset parameters.
3616 2008-03-05 Richard Guenther <rguenther@suse.de>
3618 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3619 Use ranges_overlap_p.
3620 (offset_overlaps_with_access): Rename
3621 to ranges_overlap_p and move ...
3622 * tree-flow-inline.h (ranges_overlap_p): ... here.
3624 * tree.h (get_inner_reference, handled_component_p): Update
3627 * tree.h (record_component_aliases, get_alias_set,
3628 alias_sets_conflict_p, alias_sets_must_conflict_p,
3629 objects_must_conflict_p): Move declarations ...
3630 * alias.h (record_component_aliases, get_alias_set,
3631 alias_sets_conflict_p, alias_sets_must_conflict_p,
3632 objects_must_conflict_p): ... here.
3633 Include coretypes.h.
3634 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
3636 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
3638 * cfg.c: Include tree-flow.h.
3639 (remove_edge_raw): Call redirect_edge_var_map_clear.
3640 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
3641 * tree-flow-inline.h (redirect_edge_var_map_def): New.
3642 (redirect_edge_var_map_result): New.
3643 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
3644 PENDING_STMT use with redirect_edge_var_map_*.
3645 * tree-ssa.c (edge_var_maps): New definition.
3646 (redirect_edge_var_map_add): New.
3647 (redirect_edge_var_map_clear): New.
3648 (redirect_edge_var_map_dup): New.
3649 (redirect_edge_var_map_vector): New.
3650 (redirect_edge_var_map_destroy): New.
3651 (ssa_redirect_edge): Replace PENDING_STMT use with
3652 redirect_edge_var_map_*.
3653 (flush_pending_stmts): Same.
3654 (delete_tree_ssa): Destroy edge var map.
3655 * tree-flow.h (struct _edge_var_map): New.
3656 Define edge_var_map vector type.
3657 Declare redirect_edge_var_map_* prototypes.
3658 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
3659 * tree-cfg.c (reinstall_phi_args): Replace
3660 PENDING_STMT use with redirect_edge_var_map_*.
3662 2008-03-05 Richard Guenther <rguenther@suse.de>
3664 PR tree-optimization/35472
3665 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
3666 whose single use_stmt has a overlapping set of loaded and
3667 stored symbols as that use_stmt might be a noop assignment then.
3669 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
3671 * gthr-rtems.h: Implement __gthread_mutex_destroy.
3673 2008-03-05 Richard Guenther <rguenther@suse.de>
3676 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
3677 should be constants.
3678 * tree-cfg.c (verify_expr): Verify it.
3679 * fold-const.c (fold_truthop): Remove code generating
3680 BIT_FIELD_REFs of structure bases.
3681 (fold_binary): Likewise.
3682 (fold_ternary): Position and size of BIT_FIELD_REFs are
3683 always host integers.
3684 (make_bit_field_ref): Remove.
3685 (optimize_bit_field_compare): Remove.
3686 (all_ones_mask_p): Remove.
3688 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
3691 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
3692 (split_block_and_df_analyze): New. Split basic block and rebuild
3694 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
3696 (split_pattern_seq): Likewise.
3697 (erase_matching_seqs): Likewise.
3698 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
3700 2008-03-04 Geoff Keating <geoffk@apple.com>
3702 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
3703 declaration and code.
3704 (tree_invalid_nonnegative_warnv_p): Likewise.
3706 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
3708 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
3709 examples. Truncate option-names then causing overfull hbox.
3711 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3714 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
3716 * configure: Rebuilt.
3718 2008-03-04 Rafael Espindola <espindola@google.com>
3720 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
3721 (tree_unary_nonnegative_warnv_p): New.
3722 (tree_binary_nonnegative_warnv_p): New.
3723 (tree_single_nonnegative_warnv_p): New.
3724 (tree_invalid_nonnegative_warnv_p): New.
3725 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
3727 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3730 * opts.c (handle_option): Postpone 'unknown option' errors only for
3733 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
3736 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
3739 2008-03-04 Rafael Espindola <espindola@google.com>
3741 * fold-const.c (tree_unary_nonzero_warnv_p): New.
3742 (tree_binary_nonzero_warnv_p): New.
3743 (tree_single_nonzero_warnv_p): New.
3744 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
3746 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
3749 * fold-const.c (fold_cond_expr_with_comparison): Prevent
3750 transformations for modes that have signed zeros.
3751 * ifcvt.c (noce_try_abs): Ditto.
3753 2008-03-04 Joseph Myers <joseph@codesourcery.com>
3755 * config/i386/i386.c (override_options): Force
3756 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
3758 2008-03-04 Jan Hubicka <jh@suse.cz>
3761 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
3764 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
3766 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
3767 label to probe the stack.
3769 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
3771 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
3772 (__gthr_win32_mutex_destroy): Declare.
3773 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
3774 __gthr_win32_mutex_destroy.
3775 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
3777 2008-03-03 Jan Hubicka <jh@suse.cz>
3780 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
3781 aggressive on inlining cold calls.
3783 2008-03-03 Richard Guenther <rguenther@suse.de>
3785 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
3786 struct copies into the expression table.
3787 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
3788 (try_to_simplify): Likewise.
3789 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
3790 integral and pointer arguments which do not change the
3791 precision to NOP_EXPRs.
3792 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
3793 VIEW_CONVERT_EXPR case.
3795 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
3797 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
3798 defined in a loop at depth 0 is invariant.
3799 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
3800 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
3801 be called at loop depth 0.
3803 2008-03-02 Jakub Jelinek <jakub@redhat.com>
3806 * gcc.c (process_command): Update copyright notice dates.
3807 * gcov.c (print_version): Likewise.
3808 * gcov-dump.c (print_version): Likewise.
3809 * mips-tfile.c (main): Likewise.
3810 * mips-tdump.c (main): Likewise.
3812 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3815 * c-common.c (flag_permissive): Delete.
3816 (constant_expression_warnings): Check flags first.
3817 (constant_expression_error): New.
3818 * c-common.h (flag_permissive): Delete.
3819 (constant_expression_error): Declare.
3820 * flags.h (flag_permissive): Declare. Update description.
3821 * diagnostic.c (pedwarn): Update.
3823 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
3824 (permissive_error_kind): New.
3825 * toplev.c (flag_permissive): Define. Update description.
3826 * toplev.h (permissive_error_kind): Declare.
3827 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
3828 (pedwarn_c90): Use pedantic_warning_kind.
3829 * c-opts.c (c_common_post_options): flag_permissive does not affect
3830 flag_pedantic_errors.
3832 2008-03-02 Joseph Myers <joseph@codesourcery.com>
3834 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
3835 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
3836 __absvsi2, __absvDI2): Use unsigned arithmetic.
3838 2008-03-02 Andi Kleen <ak@suse.de>
3839 Richard Guenther <rguenther@suse.de>
3841 * struct-equiv.c: Remove file.
3842 * cfg_cleanup.c (condjump_equiv_p): Remove.
3843 * Makefile.in (OBJS-common): Remove struct-equiv.o.
3844 (struct-equiv.o): Remove rule.
3845 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
3846 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
3847 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
3849 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
3851 * ifcvt.c (noce_process_if_block): Try to handle only the then
3852 block if the else block exists but isn't suitable.
3854 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
3857 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
3858 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
3859 regression from previous patch.
3861 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
3864 * gthr.h: Add __gthread_mutex_destroy as a function that must be
3866 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
3867 * gthr-single.h (__gthread_mutex_destroy): Likewise.
3868 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
3869 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
3870 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
3871 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
3872 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
3873 (__gthread_mutex_destroy_function): Rename to
3874 __gthread_mutex_destroy.
3875 * gthr-dce.h (__gthread_mutex_destroy): Call
3876 pthread_mutex_destroy.
3877 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
3878 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
3879 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
3881 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
3883 * df-scan.c (df_ref_chain_change_bb): Simplify.
3884 (df_insn_change_bb): Add new_bb argument. Simplify. Call
3885 set_block_for_insn if there's any change.
3886 * df.h ((df_insn_change_bb): Fix prototype.
3887 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
3888 df_insn_change_bb, don't call set_block_for_insn.
3889 * emit-rtl.c (reorder_insns): Likewise.
3890 * haifa-sched.c (move_insn): Likewise.
3892 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
3894 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
3896 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
3898 * tree-flow-inline.h (next_readonly_imm_use): Return
3899 NULL_USE_OPERAND_P after the end.
3901 2008-03-01 Richard Guenther <rguenther@suse.de>
3903 PR tree-optimization/35411
3904 * tree-sra.c (sra_build_assignment): Split conversion to
3905 final type to a separate statement if we are not assigning
3908 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3910 * fold-const.c (fold_convertible_p): Correct the logic to follow
3911 that in fold_convert().
3913 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
3916 * tree-inline.c (build_duplicate_type): When we make a
3917 duplicate type, make it unique in the canonical types system.
3919 2008-02-29 Tom Tromey <tromey@redhat.com>
3921 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
3922 input_file_stack_history, input_file_stack_restored): Remove.
3923 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
3924 * input.h (struct file_stack): Remove.
3925 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
3926 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
3928 * diagnostic.h (struct diagnostic_context) <last_module>: Change
3930 (diagnostic_last_module_changed): Add 'map' argument.
3931 (diagnostic_set_last_function): Likewise.
3932 * diagnostic.c (undiagnostic_report_current_module): Iterate using
3933 line map, not input_file_stack.
3934 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
3936 2008-02-29 Paul Brook <paul@codesourcery.com>
3938 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
3940 2008-02-29 Paul Brook <paul@codesourcery.com>
3942 * config/arm/ieee754-df.S (muldf3): Use RET macros.
3944 2008-02-29 Richard Guenther <rguenther@suse.de>
3946 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
3948 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
3949 value for comparing for a store match.
3950 (simplify_unary_expression): Do nothing for SSA_NAMEs.
3951 (try_to_simplify): Do not do a full-blown reference lookup.
3953 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
3955 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
3956 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
3958 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
3960 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
3962 * tree-loop-linear.c (try_interchange_loops): Compare memory access
3963 strides against cache sizes.
3965 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
3967 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
3970 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
3972 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
3973 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
3974 is smaller than the original promoted value.
3975 (simplify_subreg): If OP is a SUBREG, try to preserve its
3976 SUBREG_PROMOTED_VAR_P information.
3978 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
3980 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
3981 (VN_INFO_GET): Allocate new objects on the obstack.
3982 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
3983 for rpo_numbers_temp, for consistency.
3984 (free_scc_vn): Free the obstack.
3986 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
3988 * doc/invoke.texi: Document -ftree-loop-distribution.
3989 * tree-loop-distribution.c: New.
3990 * tree-pass.h (pass_loop_distribution): New.
3991 * graphds.h (struct graph): Add htab_t indices.
3992 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
3993 * tree-vectorizer.c (rename_variables_in_loop): Extern.
3994 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
3995 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
3996 * tree-data-ref.c (debug_data_dependence_relations): New.
3997 (dump_data_dependence_relation): Also print data references.
3998 (free_data_ref): Extern.
3999 (same_access_functions): Moved...
4000 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
4001 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
4002 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
4003 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
4004 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
4005 (stmts_from_loop): Skip LABEL_EXPR.
4006 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
4008 (build_rdg): Initialize rdg->indices htab.
4009 (free_rdg, stores_from_loop, ref_base_address,
4010 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
4011 have_similar_memory_accesses_1, ref_base_address_1,
4012 remove_similar_memory_refs): New.
4013 * tree-data-ref.h: Depend on tree-chrec.h.
4014 (debug_data_dependence_relations, free_data_ref): Declared.
4015 (same_access_functions): ... here.
4016 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
4018 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
4019 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
4020 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
4021 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
4022 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
4023 rdg_vertex_for_stmt): Declared.
4024 (struct rdg_edge): Add level.
4026 (free_rdg, stores_from_loop, remove_similar_memory_refs,
4027 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
4029 (rdg_has_similar_memory_accesses): New.
4030 * tree-vect-analyze.c: Remove unused static decls.
4031 * lambda.h (dependence_level): New.
4032 * common.opt (ftree-loop-distribution): New.
4033 * tree-flow.h (mark_virtual_ops_in_bb,
4034 slpeel_tree_duplicate_loop_to_edge_cfg,
4035 rename_variables_in_loop): Declared.
4036 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
4037 (OBJS-common): Add tree-loop-distribution.o.
4038 (tree-loop-distribution.o): New rule.
4039 * tree-cfg.c (mark_virtual_ops_in_bb): New.
4040 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
4041 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
4043 2008-02-28 Joseph Myers <joseph@codesourcery.com>
4046 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
4047 other than structures and unions.
4049 2008-02-28 Richard Guenther <rguenther@suse.de>
4052 2008-02-26 Richard Guenther <rguenther@suse.de>
4054 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4055 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4056 (lookup_decl_from_uid): Declare.
4057 (remove_decl_from_map): Likewise.
4058 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4059 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4060 (decl_for_uid_map): New global hashtable mapping DECL_UID
4062 (init_ttree): Allocate it.
4063 (insert_decl_to_uid_decl_map): New helper function.
4064 (make_node_stat): Insert new decls into the map.
4065 (copy_node_stat): Likewise.
4066 (lookup_decl_from_uid): New function.
4067 (remove_decl_from_map): Likewise.
4068 (print_decl_for_uid_map_statistics): New helper.
4069 (dump_tree_statistics): Call it.
4071 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4072 (referenced_var_iterator): Adjust.
4073 (FOR_EACH_REFERENCED_VAR): Adjust.
4074 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4075 (num_referenced_vars): Adjust.
4076 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4077 (first_referenced_var): Remove.
4078 (end_referenced_vars_p): Likewise.
4079 (next_referenced_var): Likewise.
4080 (referenced_var_iterator_set): New helper function.
4081 * tree-dfa.c (referenced_var_lookup): Adjust.
4082 (referenced_var_check_and_insert): Likewise.
4083 (remove_referenced_var): Likewise.
4084 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4085 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4086 (verify_call_clobbering): Likewise.
4087 (verify_memory_partitions): Likewise.
4088 (init_tree_ssa): Allocate bitmap instead of hashtable for
4090 (delete_tree_ssa): Adjust.
4091 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4092 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4093 (compute_tag_properties): Likewise.
4094 (set_initial_properties): Likewise.
4095 (find_partition_for): Likewise.
4096 (update_reference_counts): Likewise.
4097 (dump_may_aliases_for): Likewise.
4098 * tree-ssa-operands.c (add_virtual_operand): Likewise.
4099 (add_call_clobber_ops): Likewise.
4100 (add_call_read_ops): Likewise.
4101 (get_asm_expr_operands): Likewise.
4102 * tree-into-ssa.c (dump_decl_set): Likewise.
4103 (update_ssa): Likewise.
4104 * tree-sra.c (scan_function): Likewise.
4105 (decide_instantiations): Likewise.
4106 (scalarize_parms): Likewise.
4107 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4108 (dsa_named_for): Likewise.
4109 * tree-ssa-structalias.c (update_alias_info): Likewise.
4110 (merge_smts_into): Likewise.
4112 2008-02-27 David Daney <ddaney@avtrex.com>
4115 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
4116 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
4117 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
4118 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
4119 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
4121 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
4124 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
4125 (BUILT_IN_NEXTTOWARD): Remove.
4126 (BUILT_IN_NEXTTOWARDF): Ditto.
4127 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
4128 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
4130 2008-02-27 Tom Tromey <tromey@redhat.com>
4132 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
4133 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
4135 2008-02-27 Jan Beulich <jbeulich@novell.com>
4137 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
4138 update the respective field on newdecl.
4140 2008-02-27 Revital Eres <eres@il.ibm.com>
4142 PR rtl-optimization/34999
4143 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
4144 crossing edges that ends with a call insn.
4145 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
4146 call insn and clear the EDGE_CROSSING flag of the crossing edge
4147 when fixing fallthru edges.
4149 2008-02-27 Richard Guenther <rguenther@suse.de>
4152 * fold-const.c (fold_unary): Return the correct argument,
4153 converted to the result type.
4155 2008-02-27 Richard Guenther <rguenther@suse.de>
4158 * expr.c (expand_expr_real_1): Assert on rotates that operate
4160 * fold-const.c (fold_binary): Use the types precision, not the
4161 bitsize of the mode if folding rotate expressions. Build rotates
4162 only for full modes.
4164 2008-02-27 Jakub Jelinek <jakub@redhat.com>
4166 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
4168 * c-pragma.c (pragma_ns_name): New typedef.
4169 (registered_pp_pragmas): New variable.
4170 (c_pp_lookup_pragma): New function.
4171 (c_register_pragma_1): If flag_preprocess_only, do nothing
4172 for non-expanded pragmas, for expanded ones push pragma's
4173 namespace and name into registered_pp_pragmas vector.
4174 (c_invoke_pragma_handler): Register OpenMP pragmas even when
4175 flag_preprocess_only, don't register GCC pch_preprocess
4176 pragma if flag_preprocess_only.
4177 * c-opts.c (c_common_init): Call init_pragma even if
4178 flag_preprocess_only.
4179 * c-pragma.c (c_pp_lookup_pragma): New prototype.
4180 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
4181 cpp_register_pragma if flag_preprocess_only.
4183 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4186 * c-parser.c (c_parser_translation_unit): Warn for empty
4187 translation unit, not empty source file.
4189 2008-02-26 Paul Brook <paul@codesourcery.com>
4191 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
4192 operand for Thumb-2.
4193 * config/arm/arm.h (reg_class): Add CORE_REGS.
4194 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
4195 (BASE_REG_CLASS): Use CORE_REGS.
4196 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
4197 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
4198 (REGNO_OK_FOR_INDEX_P): Exclude SP.
4199 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
4200 ARM_REGNO_OK_FOR_INDEX_P.
4201 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
4202 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
4203 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
4204 (ldm/stm peepholes): Ditto.
4205 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
4206 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
4207 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
4208 * config/arm/constraints.md: Enable "k" constraint on ARM.
4210 2008-02-27 Ben Elliston <bje@au.ibm.com>
4212 * config/rs6000/rs6000.c: Annotate cache line size field in all
4213 instances of struct processor_costs.
4215 2008-02-26 David Edelsohn <edelsohn@gnu.org>
4217 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
4218 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
4219 jump_bypass): New counters.
4220 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
4221 * dce.c (gate_ud_dce): Same.
4222 (gate_fast_dce): Same.
4223 * dse.c (gate_dse1): New function.
4224 (gate_dse2): New function.
4225 (gate_dse): Merge results of new gate functions.
4226 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
4227 (gate_handle_jump_bypass): Add dbg_cnt.
4228 (gate_handle_gcse): Add dbg_cnt.
4229 * ifcvt.c (gate_handle_if_conversion): Same.
4230 (gate_handle_if_after_combine): Same.
4231 (gate_handle_if_after_reload): Same.
4232 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
4234 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
4236 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
4238 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
4240 2008-02-26 Jason Merrill <jason@redhat.com>
4243 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
4244 alone if it's the naming decl for the type's main variant.
4246 2008-02-26 Tom Tromey <tromey@redhat.com>
4248 * system.h (USE_MAPPED_LOCATION): Poison.
4249 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
4250 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
4251 (make_goto_expr_edges): Likewise.
4252 (remove_bb): Likewise.
4253 (execute_warn_function_return): Likewise.
4254 * basic-block.h (struct edge_def) <goto_locus>: Change type to
4256 * c-common.c (fname_decl): Remove old location code.
4257 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
4259 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
4261 (ASM_INPUT_SOURCE_LOCATION): Likewise.
4262 (gen_rtx_ASM_INPUT): Likewise.
4263 (gen_rtx_ASM_INPUT_loc): Likewise.
4264 (get_rtx_asm_OPERANDS): Remove.
4265 * cfglayout.c (insn_locators_alloc): Remove old location code.
4266 (set_curr_insn_source_location): Likewise.
4267 (curr_insn_locator): Likewise.
4268 * print-tree.c (print_node): Remove old location code.
4269 * tree-mudflap.c (mf_varname_tree): Remove old location code.
4270 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
4271 * cfgexpand.c (expand_gimple_cond_expr): Don't use
4272 location_from_locus.
4273 (construct_exit_block): Remove old location code.
4274 * emit-rtl.c (force_next_line_note): Remove old location code.
4275 * profile.c (branch_prob): Remove old location code.
4276 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4277 LOC_LINE): Remove old-location variants.
4278 * langhooks.c (lhd_print_error_function): Remove old location
4280 * configure, config.in: Rebuilt.
4281 * configure.ac (--enable-mapped-location): Remove.
4282 * c-decl.c (c_init_decl_processing): Remove old location code.
4283 (finish_function): Likewise.
4284 * recog.c (decode_asm_operands): Remove old location code.
4285 * c-pch.c (c_common_read_pch): Remove old location code.
4286 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
4288 * gimple-low.c (lower_function_body): Remove old location code.
4289 * toplev.c (unknown_location): Remove.
4290 (push_srcloc): Remove old-location variant.
4291 (process_options): Remove old location code.
4292 (lang_dependent_init): Likewise.
4293 * input.h (UNKNOWN_LOCATION): Move definition.
4294 (location_t): Undeprecate.
4295 (source_locus): Remove.
4296 (location_from_locus): Remove.
4297 (struct location_s): Remove.
4298 Remove all old-location code.
4299 (input_line, input_filename): Remove.
4300 * final.c (final_scan_insn): Remove old location code.
4301 * diagnostic.c (diagnostic_build_prefix): Remove
4302 USE_MAPPED_LOCATION test.
4303 * tree.h (gimple_stmt) <locus>: Now a location_t.
4304 (tree_exp) <locus>: Likewise.
4305 (DECL_IS_BUILTIN): Remove old-location variant.
4306 (annotate_with_file_line, annotate_with_locus): Likewise.
4307 (expr_locus, set_expr_locus): Update.
4308 * tree.c (build1_stat): Remove old location code.
4309 (last_annotated_node): Remove.
4310 (annotate_with_file_line): Remove old-location variant.
4311 (annotate_with_locus): Likewise.
4312 (expr_location): Remove old location code.
4313 (set_expr_location): Likewise.
4314 (expr_has_location): Likewise.
4315 (expr_locus): Likewise.
4316 (set_expr_locus): Likewise.
4317 (expr_filename): Don't use location_from_locus.
4318 (expr_lineno): Likewise.
4319 * rtl-error.c (location_for_asm): Remove old location code.
4320 * c-lex.c (cb_line_change): Remove old location code.
4321 (fe_file_change): Likewise.
4322 (cb_def_pragma): Likewise.
4323 (c_lex_with_flags): Likewise.
4324 * gengtype.c (do_typedef): Don't special-case location types.
4325 (define_location_structures): Remove.
4326 (main): Don't call define_location_structures.
4327 * tree-pretty-print.c (dump_implicit_edges): Remove old location
4330 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4333 * builtins.def (BUILT_IN_STDARG_START): Remove.
4334 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
4335 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4336 * tree-inline.c (inline_forbidden_p_1): Likewise.
4338 2008-02-26 Richard Guenther <rguenther@suse.de>
4340 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4341 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4342 (lookup_decl_from_uid): Declare.
4343 (remove_decl_from_map): Likewise.
4344 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4345 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4346 (decl_for_uid_map): New global hashtable mapping DECL_UID
4348 (init_ttree): Allocate it.
4349 (insert_decl_to_uid_decl_map): New helper function.
4350 (make_node_stat): Insert new decls into the map.
4351 (copy_node_stat): Likewise.
4352 (lookup_decl_from_uid): New function.
4353 (remove_decl_from_map): Likewise.
4354 (print_decl_for_uid_map_statistics): New helper.
4355 (dump_tree_statistics): Call it.
4357 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4358 (referenced_var_iterator): Adjust.
4359 (FOR_EACH_REFERENCED_VAR): Adjust.
4360 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4361 (num_referenced_vars): Adjust.
4362 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4363 (first_referenced_var): Remove.
4364 (end_referenced_vars_p): Likewise.
4365 (next_referenced_var): Likewise.
4366 (referenced_var_iterator_set): New helper function.
4367 * tree-dfa.c (referenced_var_lookup): Adjust.
4368 (referenced_var_check_and_insert): Likewise.
4369 (remove_referenced_var): Likewise.
4370 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4371 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4372 (verify_call_clobbering): Likewise.
4373 (verify_memory_partitions): Likewise.
4374 (init_tree_ssa): Allocate bitmap instead of hashtable for
4376 (delete_tree_ssa): Adjust.
4377 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4378 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4379 (compute_tag_properties): Likewise.
4380 (set_initial_properties): Likewise.
4381 (find_partition_for): Likewise.
4382 (update_reference_counts): Likewise.
4383 (dump_may_aliases_for): Likewise.
4384 * tree-ssa-operands.c (add_virtual_operand): Likewise.
4385 (add_call_clobber_ops): Likewise.
4386 (add_call_read_ops): Likewise.
4387 (get_asm_expr_operands): Likewise.
4388 * tree-into-ssa.c (dump_decl_set): Likewise.
4389 (update_ssa): Likewise.
4390 * tree-sra.c (scan_function): Likewise.
4391 (decide_instantiations): Likewise.
4392 (scalarize_parms): Likewise.
4393 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4394 (dsa_named_for): Likewise.
4395 * tree-ssa-structalias.c (update_alias_info): Likewise.
4396 (merge_smts_into): Likewise.
4398 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4401 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
4402 * c-opts.c (c_common_handle_option): Wall enables
4403 Wvolatile-register-var.
4404 * common.opt: Move Wvolatile-register-var to...
4407 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4409 * common.opt (Wlarger-than=): New.
4410 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
4412 * opts.c (common_handle_option): Handle -Wlarger-than=.
4413 * optc-gen.awk: Likewise.
4414 * opth-gen.awk: Likewise.
4415 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
4416 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4418 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4420 * c-common.c (match_case_to_enum_1): Add appropriate
4421 OPT_W* parameter to warning.
4422 (c_do_switch_warnings): Likewise.
4423 * c-typeck.c (warning_init): Add one more parameter following
4425 (push_init_level): Update call to warning_init.
4426 (pop_init_level): Likewise.
4427 (add_pending_init): Likewise.
4428 (output_init_element: Likewise.
4430 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4433 * toplev.c (toplev_main): If there are warnings or error, print
4434 errors for ignored options.
4435 * opts.c (ignored_options): New static variable.
4436 (postpone_unknown_option_error): New.
4437 (print_ignored_options): New.
4438 (handle_option): Postpone errors for unknown -Wno-* options.
4439 * opts.h (print_ignored_options): Declare.
4441 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
4443 * config/mips/mips.md (loadgp_blockage, blockage): Change type
4446 2008-02-25 Richard Guenther <rguenther@suse.de>
4449 2008-02-25 Richard Guenther <rguenther@suse.de>
4451 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4452 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4453 (lookup_decl_from_uid): Declare.
4454 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4455 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4456 (decl_for_uid_map): New global hashtable mapping DECL_UID
4458 (init_ttree): Allocate it.
4459 (insert_decl_to_uid_decl_map): New helper function.
4460 (make_node_stat): Insert new decls into the map.
4461 (copy_node_stat): Likewise.
4462 (lookup_decl_from_uid): New function.
4463 (print_decl_for_uid_map_statistics): New helper.
4464 (dump_tree_statistics): Call it.
4466 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4467 (referenced_var_iterator): Adjust.
4468 (FOR_EACH_REFERENCED_VAR): Adjust.
4469 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4470 (num_referenced_vars): Adjust.
4471 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4472 (first_referenced_var): Remove.
4473 (end_referenced_vars_p): Likewise.
4474 (next_referenced_var): Likewise.
4475 (referenced_var_iterator_set): New helper function.
4476 * tree-dfa.c (referenced_var_lookup): Adjust.
4477 (referenced_var_check_and_insert): Likewise.
4478 (remove_referenced_var): Likewise.
4479 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4480 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4481 (verify_call_clobbering): Likewise.
4482 (verify_memory_partitions): Likewise.
4483 (init_tree_ssa): Allocate bitmap instead of hashtable for
4485 (delete_tree_ssa): Adjust.
4486 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4487 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4488 (compute_tag_properties): Likewise.
4489 (set_initial_properties): Likewise.
4490 (find_partition_for): Likewise.
4491 (update_reference_counts): Likewise.
4492 (dump_may_aliases_for): Likewise.
4493 * tree-ssa-operands.c (add_virtual_operand): Likewise.
4494 (add_call_clobber_ops): Likewise.
4495 (add_call_read_ops): Likewise.
4496 (get_asm_expr_operands): Likewise.
4497 * tree-into-ssa.c (dump_decl_set): Likewise.
4498 (update_ssa): Likewise.
4499 * tree-sra.c (scan_function): Likewise.
4500 (decide_instantiations): Likewise.
4501 (scalarize_parms): Likewise.
4502 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4503 (dsa_named_for): Likewise.
4504 * tree-ssa-structalias.c (update_alias_info): Likewise.
4505 (merge_smts_into): Likewise.
4507 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
4510 * doc/invoke.texi (-fcx-limited-range): Document new option.
4511 * toplev.c (process_options): Handle -fcx-fortran-rules.
4512 * common.opt: Add documentation for -fcx-fortran-rules.
4514 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
4517 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
4518 actual behaviour and C99.
4520 2008-02-26 Ben Elliston <bje@au.ibm.com>
4522 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
4523 (ASM_CPU_POWER6_SPEC): Likewise.
4524 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
4525 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
4526 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
4528 2008-02-25 Richard Guenther <rguenther@suse.de>
4530 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4531 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4532 (lookup_decl_from_uid): Declare.
4533 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4534 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4535 (decl_for_uid_map): New global hashtable mapping DECL_UID
4537 (init_ttree): Allocate it.
4538 (insert_decl_to_uid_decl_map): New helper function.
4539 (make_node_stat): Insert new decls into the map.
4540 (copy_node_stat): Likewise.
4541 (lookup_decl_from_uid): New function.
4542 (print_decl_for_uid_map_statistics): New helper.
4543 (dump_tree_statistics): Call it.
4545 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4546 (referenced_var_iterator): Adjust.
4547 (FOR_EACH_REFERENCED_VAR): Adjust.
4548 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4549 (num_referenced_vars): Adjust.
4550 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4551 (first_referenced_var): Remove.
4552 (end_referenced_vars_p): Likewise.
4553 (next_referenced_var): Likewise.
4554 (referenced_var_iterator_set): New helper function.
4555 * tree-dfa.c (referenced_var_lookup): Adjust.
4556 (referenced_var_check_and_insert): Likewise.
4557 (remove_referenced_var): Likewise.
4558 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4559 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4560 (verify_call_clobbering): Likewise.
4561 (verify_memory_partitions): Likewise.
4562 (init_tree_ssa): Allocate bitmap instead of hashtable for
4564 (delete_tree_ssa): Adjust.
4565 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4566 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4567 (compute_tag_properties): Likewise.
4568 (set_initial_properties): Likewise.
4569 (find_partition_for): Likewise.
4570 (update_reference_counts): Likewise.
4571 (dump_may_aliases_for): Likewise.
4572 * tree-ssa-operands.c (add_virtual_operand): Likewise.
4573 (add_call_clobber_ops): Likewise.
4574 (add_call_read_ops): Likewise.
4575 (get_asm_expr_operands): Likewise.
4576 * tree-into-ssa.c (dump_decl_set): Likewise.
4577 (update_ssa): Likewise.
4578 * tree-sra.c (scan_function): Likewise.
4579 (decide_instantiations): Likewise.
4580 (scalarize_parms): Likewise.
4581 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4582 (dsa_named_for): Likewise.
4583 * tree-ssa-structalias.c (update_alias_info): Likewise.
4584 (merge_smts_into): Likewise.
4586 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
4589 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
4590 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
4591 * alias.h (nonoverlapping_memrefs_p): Likewise.
4593 2008-02-25 Jan Beulich <jbeulich@novell.com>
4595 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
4596 * config/i386/netware-libgcc.exp: Add __bswap?i2,
4597 __emultls_get_address, __emultls_register_common,
4598 __floatundi?f, and _Unwind_GetIPInfo.
4599 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
4600 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
4601 (gen_regparm_prefix): Likewise.
4602 (i386_nlm_encode_section_info): Sync with
4603 config/i386/winnt.c:i386_pe_encode_section_info().
4604 (i386_nlm_maybe_mangle_decl_assembler_name): New.
4605 i386_nlm_mangle_decl_assembler_name): New.
4606 (netware_override_options): New.
4607 * config/i386/netware.h (netware_override_options): Declare.
4608 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
4609 (i386_nlm_mangle_decl_assembler_name): Declare.
4610 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
4612 2008-02-25 Ben Elliston <bje@au.ibm.com>
4615 * c-decl.c (grokdeclarator): Remove unused local variables
4616 `typedef_type' and `type_as_written'.
4618 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
4619 unused local variable `has_hot_blocks'.
4620 (fix_crossing_conditional_branches): Remove unused local variable
4623 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
4626 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
4627 using DEF_C99_BUILTIN.
4628 (BUILT_IN_NANF): Ditto.
4629 (BUILT_IN_NANL): Ditto.
4631 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
4632 Revital Eres <eres@il.ibm.com>
4634 * modulo-sched.c (calculate_must_precede_follow): Address TODO
4635 regarding the order of two dependent insns in the same row.
4637 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
4639 * stor-layout.c (layout_decl): Do not bump the alignment of a
4640 bit-field to more than byte alignment if it is packed.
4642 2008-02-24 David Edelsohn <edelsohn@gnu.org>
4644 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
4647 2008-02-24 Diego Novillo <dnovillo@google.com>
4649 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
4652 * tree-vrp.c (vrp_evaluate_conditional): With
4653 -Wtype-limits, emit a warning when comparing against a
4654 constant outside the natural range of OP0's type.
4655 * c.opt (Wtype-limits): Move ...
4656 * common.opt (Wtype-limits): ... here.
4658 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
4660 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
4661 * config/rs6000/e300c2c3.md: New file.
4662 * config/rs6000/rs6000.c (processor_costs): Add new costs for
4664 (rs6000_override_options): Add e300c2 and e300c3 cases to
4665 processor_target_table. Do not allow usage of Altivec or Spe
4666 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
4667 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
4668 * config/rs6000/rs6000.h (processor_type): Add
4669 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
4670 (ASM_CPU_SPEC): Add e300c2 and e300c3.
4671 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
4672 and ppce300c3. Include e300c2c3.md.
4674 2008-02-23 David Edelsohn <edelsohn@gnu.org>
4676 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
4677 instead of TARGET_STRICT_ALIGN.
4679 2008-02-23 Joseph Myers <joseph@codesourcery.com>
4681 * explow.c (memory_address): Assert that the generated address is
4684 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4687 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
4688 * config/darwin-ppc-ldouble-patch.def: New file.
4689 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
4690 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
4691 SUBTARGET_INIT_BUILTINS if defined.
4692 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
4695 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
4698 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
4699 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
4701 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
4704 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
4705 file" warning condtional on -Winvalid-PCH.
4707 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
4709 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
4711 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
4715 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
4716 prevent reload from using MMX registers.
4717 (*mov<mode>_internal): Ditto.
4718 (*movv2sf_internal_rex64): Ditto.
4719 (*movv2sf_internal): Ditto.
4721 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4723 PR documentation/31569
4724 * doc/install.texi2html: Use makeinfo --no-number-sections.
4726 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
4728 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
4729 ensure that we can address an entire entity > 8 bytes. Don't
4730 generate reg+reg addressing for such data.
4732 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
4734 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
4735 strings when optimizing for size, unless the target cares about
4738 2008-02-22 Tom Tromey <tromey@redhat.com>
4740 * regclass.c (current_pass): Remove declaration.
4742 2008-02-22 Anatoly Sokolov <aesok@post.ru>
4744 * config/avr/libgcc.S (__RAMPZ__): Define.
4745 (__do_copy_data): Add for devices with 128KB code memory.
4747 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
4749 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4751 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
4753 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
4755 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
4758 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4761 * c-typeck.c (build_binary_op): Warn about floating point
4762 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
4764 2008-02-21 Janis Johnson <janis187@us.ibm.com>
4767 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
4768 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
4770 (rs6000_override_options): Set altivec_abi as default, not override,
4771 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
4772 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
4773 is used; use new member spe_abi.
4774 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
4775 spe_abi and altivec_abi.
4777 2008-02-22 Tomas Bily <tbily@suse.cz>
4779 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
4781 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4784 * config.build (build_file_translate): Set to `CMD //c' only if
4786 * Makefile.in (build_file_translate): Improve comment.
4788 2008-02-21 Jan Hubicka <jh@suse.cz>
4790 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
4791 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
4792 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
4794 2008-02-21 Michael Matz <matz@suse.de>
4797 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
4799 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
4801 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
4802 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
4804 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
4805 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
4806 SSE_VEC_FLOAT_MODE_P as insn constraint.
4807 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
4808 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
4809 sse4a_movntdf using MODEF mode iterator.
4810 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
4811 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
4812 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
4813 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
4814 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
4815 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
4816 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
4818 2008-02-21 Richard Guenther <rguenther@suse.de>
4820 * tree.def (PAREN_EXPR): New tree code.
4821 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
4823 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
4824 * expr.c (expand_expr_real_1): Likewise.
4825 * tree-inline.c (estimate_num_insns_1): Likewise.
4826 * tree-complex.c (expand_complex_move): Likewise.
4827 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
4830 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
4833 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
4835 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
4838 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
4840 * config/sh/sh.c (find_barrier): Don't go past
4841 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
4843 2008-02-20 DJ Delorie <dj@redhat.com>
4845 * config/h8300/h8300.md (insv): Force source operand to be a register.
4847 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
4848 as a jump, not as a plain insn.
4850 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
4852 * doc/invoke.texi (Warning Options): Add new option
4853 -Wframe-larger-than=.
4854 (-Wframe-larger-than): Document.
4856 * flags.h (warn_frame_larger_than, frame_larger_than_size):
4857 Add declarations for new option variables.
4859 * final.c (final_start_function): Check the frame size
4860 before emission and issue a Wframe-larger-than warning.
4862 * opts.c (warn_frame_larger_than, frame_larger_than_size):
4863 Add definitions for new option variables.
4864 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
4866 * common.opt (Wframe-larger-than=): New option.
4868 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
4870 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
4871 (<sse>_div<mode>3): Ditto.
4872 (<sse>_vmdiv<mode>3): Ditto.
4873 (<sse>_vmsqrt<mode>2): Ditto.
4874 (*smax<mode>3): Ditto.
4875 (sse5_frcz<mode>2): Ditto.
4876 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
4879 2008-02-20 Richard Guenther <rguenther@suse.de>
4882 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
4883 be happy with INTEGRAL_TYPE_P.
4885 2008-02-20 Richard Guenther <rguenther@suse.de>
4887 * fold-const.c (split_tree): Associate floatig-point expressions
4888 if flag_associative_math is set.
4890 2008-02-20 Richard Guenther <rguenther@suse.de>
4892 * tree.h (fold_real_zero_addition_p): Declare.
4893 * fold-const.c (fold_real_zero_addition_p): Export.
4894 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
4895 floating-point operations with zero and one.
4897 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
4899 * doc/install.texi: Correct references to CFLAGS, replacing them
4900 with BOOT_CFLAGS. Document flags used during bootstrap for
4903 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
4905 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
4906 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
4907 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
4909 (smin<mode>3): Ditto from similar patterns.
4910 (smax<mode>3): Ditto.
4911 (*ieee_smin<mode>3): Ditto.
4912 (*ieee_smax<mode>3): Ditto.
4913 * config/i386/sse.md (sse): New mode attribute.
4914 (mov<mode>): Macroize expander from movv4sf and movv2df using
4915 SSEMODEF2P mode iterator.
4916 (<sse>_movnt<mode>): Ditto from similar patterns. Use
4917 SSE_VEC_FLOAT_MODE_P as insn constraint.
4918 (storent<mode>): Ditto.
4919 (storent<mode>): Macroize expander from storentsf and storentdf using
4920 MODEF mode iterator.
4921 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
4922 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
4923 (abs<mode>2): Ditto from similar patterns.
4924 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
4925 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
4926 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
4927 (<sse>_vmsqrt<mode>2): Ditto.
4928 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
4929 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
4930 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
4931 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
4932 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
4933 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
4934 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
4936 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
4937 iterator and SSE_FLOAT_MODE_P as insn constraint.
4938 (<sse>_ucomi): Ditto from similar patterns.
4939 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
4940 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
4941 SSE_VEC_FLOAT_MODE_P as insn constraint.
4942 (vcond<mode>): Ditto from similar patterns.
4943 (and<mode>3, *and<mode>3): Ditto.
4944 (<sse>_nand<mode>3): Ditto.
4945 (ior<mode>3, *ior<mode>3): Ditto.
4946 (xor<mode>3, *xor<mode>3): Ditto.
4947 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
4948 iterator and SSE_FLOAT_MODE_P as insn constraint.
4949 (*nand<mode>3): Ditto from similar patterns.
4950 (*ior<mode>3): Ditto.
4951 (*xor<mode>3): Ditto.
4953 2008-02-20 Ira Rosen <irar@il.ibm.com>
4955 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
4956 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
4957 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
4959 2008-02-19 Jan Hubicka <jh@suse.cz>
4961 * predict.c (tree_bb_level_predictions): Remove variable next
4962 mistakely introduced by previous commit.
4964 2008-02-19 Jan Hubicka <jh@suse.cz>
4966 * predict.c (predict_paths_leading_to): Rewrite.
4967 (predict_paths_for_bb): New.
4968 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
4970 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4973 * Makefile.in (build_file_translate): New.
4974 (gcc-vers.texi): Use it for translating $(abs_srcdir).
4975 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
4976 * configure.ac (build_file_translate): Substitute it.
4977 * configure: Regenerate.
4979 2008-02-19 Jan Hubicka <jh@suse.cz>
4981 PR rtl-optimization/34408
4982 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
4985 2008-02-19 Jan Hubicka <jh@suse.cz>
4988 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
4991 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
4994 * config/i386/i386-modes.def: Revert the last DI alignment
4995 change until Ada people can look into it.
4997 2008-02-19 Nick Clifton <nickc@redhat.com>
4999 * opts.c (print_specific_help): Fix typo in --help text.
5001 2008-02-19 Jakub Jelinek <jakub@redhat.com>
5004 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
5005 32-bit inline asm without asm alternatives for host GCC < 3.0.
5007 2008-02-19 Richard Guenther <rguenther@suse.de>
5009 PR tree-optimization/34989
5010 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
5011 Allow propagation to INDIRECT_REF if we can simplify only.
5013 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5015 * c-common.c (warn_for_collisions_1): Use appropriate option when
5018 2008-02-19 Nick Clifton <nickc@redhat.com>
5021 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
5022 (handle_options): Fix indentation.
5023 (print_filtered_help): If no language-specific options were
5024 displayed tell the user how to list all the options supported by
5025 the language's front-end.
5026 (print_specific_help): Fix indentation and remove duplicate line.
5027 (common_handle_option): Handle the -v option.
5028 For --help enable the display of undocumented options if the -v
5029 switch has been included on the command line.
5030 For --help= check for overlaps in the arguments between the option
5031 classes and the language names and issue a warning when they
5032 cannot be disambiguated.
5033 * c.opt (v): Pass on to the common option handler.
5035 2008-02-19 Revital Eres <eres@il.ibm.com>
5037 * modulo-sched.c (sms_schedule): Change dump message when
5038 create_ddg function fails.
5039 (try_scheduling_node_in_cycle): Rename row to cycle.
5040 (print_partial_schedule): Rename CYCLE to ROW.
5042 2008-02-19 Christian Bruel <christian.bruel@st.com>
5043 Zdenek Dvorak <ook@ucw.cz>
5045 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
5047 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
5050 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
5051 (*x86_movdicc_0_m1_se): Ditto.
5053 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
5055 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
5056 (CMPtype): Define as __gcc_CMPtype.
5057 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
5058 (CMPtype): Define as __gcc_CMPtype.
5060 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
5062 Support valgrind 3.3 for --enable-checking=valgrind.
5063 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
5065 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
5066 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
5067 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
5068 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
5069 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
5070 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
5071 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
5073 * ggc-zone.c: Similar.
5074 * ggc-page.c: Similar.
5076 2008-02-19 Paul Brook <paul@codesourcery.com>
5079 * config/arm/ieee754-df.S: Fix do_it typo.
5080 * config/arm/ieee754-sf.S: Fix do_it typo.
5082 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
5085 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
5086 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
5087 (OPTION_MASK_ISA_SSE_SET): Likewise.
5088 (OPTION_MASK_ISA_SSE2_SET): Likewise.
5089 (OPTION_MASK_ISA_SSE3_SET): Likewise.
5090 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
5091 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
5092 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
5093 (OPTION_MASK_ISA_SSE4_SET): Likewise.
5094 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
5095 (OPTION_MASK_ISA_SSE5_SET): Likewise.
5096 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
5097 (OPTION_MASK_ISA_MMX_UNSET): Updated.
5098 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
5099 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
5100 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
5101 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
5102 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
5103 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
5104 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
5105 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
5106 (OPTION_MASK_ISA_SSE4): Removed.
5107 (ix86_handle_option): Turn on bits in ix86_isa_flags and
5108 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
5109 (override_options): Don't turn on implied SSE/MMX bits in
5112 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
5114 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
5117 2008-02-18 Joey Ye <joey.ye@intel.com>
5120 * tree-nested.c (insert_field_into_struct): Set type alignment
5121 to field alignment if the former is less than the latter.
5123 2008-02-18 Jakub Jelinek <jakub@redhat.com>
5125 * BASE-VER: Set to 4.4.0.
5127 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5129 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
5130 * doc/cfg.texi: Likewise.
5131 * doc/extend.texi: Likewise.
5132 * doc/gty.texi: Likewise.
5133 * doc/invoke.texi: Likewise.
5134 * doc/loop.texi: Likewise.
5135 * doc/md.texi: Likewise.
5136 * doc/passes.texi: Likewise.
5137 * doc/rtl.texi: Likewise.
5138 * doc/sourcebuild.texi: Likewise.
5139 * doc/tm.texi: Likewise.
5140 * doc/tree-ssa.texi: Likewise.
5142 2008-02-17 Richard Guenther <rguenther@suse.de>
5145 * tree-complex.c (init_parameter_lattice_values): Handle parameters
5146 without default definition.
5148 2008-02-17 Richard Guenther <rguenther@suse.de>
5150 PR tree-optimization/35231
5151 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
5154 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
5157 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
5158 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
5159 libgcc_cmp_return mode.
5161 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5164 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
5166 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
5168 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
5171 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5173 * doc/c-tree.texi: Use `@.' where appropriate.
5174 * doc/extend.texi: Likewise.
5175 * doc/install.texi: Likewise.
5176 * doc/invoke.texi: Likewise.
5177 * doc/loop.texi: Likewise.
5178 * doc/makefile.texi: Likewise.
5179 * doc/md.texi: Likewise.
5180 * doc/passes.texi: Likewise.
5181 * doc/standards.texi: Likewise.
5182 * doc/tm.texi: Likewise.
5184 2008-02-15 Jakub Jelinek <jakub@redhat.com>
5187 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
5189 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
5190 rather than in entry_bb.
5192 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
5194 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
5195 libgcc_cmp_return mode.
5197 2008-02-15 Jakub Jelinek <jakub@redhat.com>
5200 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
5201 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
5203 2008-02-15 Richard Guenther <rguenther@suse.de>
5204 Zdenek Dvorak <ook@ucw.cz>
5206 PR tree-optimization/35164
5207 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
5208 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
5209 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
5210 Only propagate addresses which do not have abnormal SSA_NAMEs
5213 2008-02-15 Joseph Myers <joseph@codesourcery.com>
5216 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
5218 2008-02-15 Jan Hubicka <jh@suse.cz>
5221 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
5223 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
5226 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
5227 when calculating alignment_pad.
5229 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
5231 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
5232 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
5233 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
5234 and STACK_BOUNDARY define.
5236 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
5238 PR preprocessor/35061
5239 * c-pragma.c (handle_pragma_pop_macro): Check that
5240 pushed_macro_table has been allocated.
5242 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
5245 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
5246 (force_gimple_operand): Likewise.
5247 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
5248 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
5249 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
5250 (find_interesting_uses_address): Check addressability and alignment
5251 of the base expression only after substituting bases of IVs into it.
5253 2008-02-14 Michael Matz <matz@suse.de>
5256 * function.c (instantiate_virtual_regs_in_insn): Reload address
5257 before falling back to reloading the whole operand.
5259 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
5261 * config/s390/s390.c (s390_mainpool_start): Emit the pool
5262 before the first section switch note.
5264 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5266 * doc/bugreport.texi: Update copyright years.
5267 * doc/c-tree.texi: Likewise.
5268 * doc/cfg.texi: Likewise.
5269 * doc/cpp.texi: Likewise.
5270 * doc/cppinternals.texi: Likewise.
5271 * doc/fragments.texi: Likewise.
5272 * doc/frontends.texi: Likewise.
5273 * doc/gcc.texi: Likewise.
5274 * doc/gty.texi: Likewise.
5275 * doc/hostconfig.texi: Likewise.
5276 * doc/implement-c.texi: Likewise.
5277 * doc/libgcc.texi: Likewise.
5278 * doc/loop.texi: Likewise.
5279 * doc/makefile.texi: Likewise.
5280 * doc/options.texi: Likewise.
5281 * doc/passes.texi: Likewise.
5282 * doc/rtl.texi: Likewise.
5283 * doc/sourcebuild.texi: Likewise.
5284 * doc/standards.texi: Likewise.
5285 * doc/tree-ssa.texi: Likewise.
5286 * doc/trouble.texi: Likewise.
5288 * doc/extend.texi: Use @: or add comma where appropriate.
5289 * doc/invoke.texi: Likewise.
5290 * doc/tm.texi: Likewise.
5292 2008-02-14 Alan Modra <amodra@bigpond.net.au>
5295 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
5298 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
5300 * doc/md.texi (clz, ctz): Add reference.
5301 * doc/rtl.texi (clz, ctz): Likewise.
5303 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5306 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
5309 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
5311 * config/s390/s390.c (struct constant_pool): New field
5312 emit_pool_after added.
5313 (s390_mainpool_start): Set the emit_pool_after flag according
5314 to the section switch notes.
5315 (s390_mainpool_finish): Consider emit_pool_after when emitting
5316 the literal pool at the end of the function.
5317 (s390_chunkify_start): Force literal pool splits at section
5320 2008-02-13 Michael Matz <matz@suse.de>
5323 * var-tracking.c (clobber_variable_part): Correctly traverse the
5326 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5329 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
5330 Add -fdump-ipa-inline.
5331 * tree-dump.c (dump_files): Remove tree-inlined dump.
5332 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
5334 2008-02-12 Richard Guenther <rguenther@suse.de>
5336 PR tree-optimization/35171
5337 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
5340 2008-02-12 Richard Guenther <rguenther@suse.de>
5343 * fold-const.c (fold_widened_comparison): Use get_unwidened in
5344 value-preserving mode. Disallow final truncation.
5346 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
5349 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
5350 code from here to...
5351 (force_gimple_operand): ...here.
5353 2008-02-12 Jakub Jelinek <jakub@redhat.com>
5356 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
5357 non-compatible pointers.
5358 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
5359 different FIELD_DECLs, try harder by comparing field offsets, sizes
5363 * function.c (match_asm_constraints_1): Don't replace the same input
5366 2008-02-12 Anatoly Sokolov <aesok@post.ru>
5368 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
5369 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
5370 (expand_epilogue): Restore RAMPZ register.
5371 * config/avr/avr.md (RAMPZ_ADDR): New constant.
5373 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
5375 * config/i386/cygwin.asm: (__alloca): Correct calling
5376 convention and alignment.
5377 (__chkstk): Force 8 byte stack alignment.
5379 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
5380 Richard Guenther <rguenther@suse.de>
5382 PR tree-optimization/33992
5383 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
5384 the zero we compare against.
5386 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
5389 * gthr-win32.h (__gthread_mutex_destroy_function): New function
5390 to CloseHandle after unlocking to prevent accumulation of handle
5393 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5396 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
5397 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
5398 and update LABEL_NUSES during and after reload.
5400 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
5403 * combine.c (simplify_if_then_else): Make sure the comparison is
5404 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
5406 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
5409 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
5410 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
5411 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
5412 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
5413 * tree.h (get_type_static_bounds): Likewise.
5415 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5417 * doc/invoke.texi (Option Summary, C++ Dialect Options)
5418 (Objective-C and Objective-C++ Dialect Options, Warning Options):
5419 Make -Wfoo language annotations match what the compiler outputs.
5421 2008-02-08 Sa Liu <saliu@de.ibm.com>
5423 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
5424 intrinsics spu_convts, spu_convtu, spu_convtf.
5425 * testsuite/gcc.target/spu/intrinsics-3.c: New. Test error messages.
5427 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
5429 * doc/extend.texi (Function Attributes) <noinline>: Mention
5430 asm ("") as method to keep calls.
5432 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5435 * doc/options.texi (Options): Replace references to opts.sh with
5437 * opts-common.c: Likewise.
5438 * optc-gen.awk: Likewise.
5440 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
5442 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
5444 2008-02-07 Richard Henderson <rth@redhat.com>
5447 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
5448 EXPR_LIST for the REG_EQUAL instead of a comparison with a
5451 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
5453 PR tree-optimization/35085
5454 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
5455 for operand entry oe2 in addition to operand entry oe3 in order to
5456 expose more opportunities for vectorizer sum reduction.
5458 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5461 * Makefile.in (LIBS): Remove $(GMPLIBS).
5462 (cc1-dummy, cc1): Add $(GMPLIBS).
5464 2008-02-06 Jan Hubicka <jh@suse.cz>
5467 * i386.md (moddf_integer): Do not produce partial memory stalls for
5468 targets where it hurts.
5470 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
5473 * optabs.c (expand_float): Do not check for decimal modes when
5474 expanding unsigned integer through signed conversion.
5476 2008-02-06 Nick Clifton <nickc@redhat.com>
5478 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
5479 inside the clobber with a match_operand and duplicated operand
5480 number in the constraint.
5481 (ineqbranchsi): Delete redundant comment.
5483 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
5485 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
5486 builtin_define ("__USE_INIT_FINI__").
5487 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
5489 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
5491 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5493 PR documentation/30330
5494 * doc/invoke.texi (C++ Dialect Options)
5495 (Objective-C and Objective-C++ Dialect Options, Warning Options):
5496 For each warning option -Wfoo that allows -Wno-foo, ensure both
5497 -Wfoo and -Wno-foo are listed in the option index. Fix index
5498 entry of -Wswitch-default, index -Wnormalized= including the
5499 `=', and -Wlarger-than-@var{len} including @var{len}.
5501 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
5503 * config/i386/i386.md (floatunssisf2): Use
5504 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
5505 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
5506 Macroize expander using MODEF mode iterator.
5508 2008-02-05 Diego Novillo <dnovillo@google.com>
5510 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
5513 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
5515 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5518 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
5520 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
5523 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
5524 to indicate if a message should be generated.
5525 (init_cumulative_args): Updated.
5526 (function_value_32): Likewise.
5528 2008-02-05 Joseph Myers <joseph@codesourcery.com>
5530 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
5532 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
5535 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
5536 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
5538 2008-02-04 Diego Novillo <dnovillo@google.com>
5540 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
5543 * tree-vrp.c (vrp_evaluate_conditional): With
5544 -Wtype-limits, emit a warning when comparing against a
5545 constant outside the natural range of OP0's type.
5547 2008-02-04 Richard Guenther <rguenther@suse.de>
5550 * expr.c (count_type_elements): Give for unions instead of
5553 2008-02-04 Richard Guenther <rguenther@suse.de>
5556 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
5557 to TYPE_DOMAINs base type instead of using bitsizetype here.
5559 2008-02-03 Jason Merrill <jason@redhat.com>
5561 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
5563 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5566 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
5567 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
5568 (RS/6000 and PowerPC Options): Fix typos and markup.
5569 * doc/passes.texi (Tree-SSA passes): Likewise.
5571 2008-02-02 Michael Matz <matz@suse.de>
5574 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
5575 from record_last_reg_set_info.
5576 (record_last_reg_set_info): Take an RTX argument, iterate over all
5577 constituent hardregs.
5578 (record_last_set_info, record_opr_changes): Change calls to
5579 new signature or to record_last_reg_set_info_regno.
5581 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
5583 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
5585 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
5587 PR rtl-optimization/34773
5588 * reg-notes.def (EQUAL): Mention significance of combination of
5589 REG_EQUAL and REG_RETVAL.
5590 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
5591 insn that has a REG_RETVAL.
5593 2008-02-01 Roger Sayle <roger@eyesopen.com>
5596 * configure.ac (--enable-fixed-point): Disable unless explicitly
5598 * configure: Regenerate.
5600 2008-02-01 Richard Guenther <rguenther@suse.de>
5603 * invoke.texi (-finline-limit): Remove no longer true parts
5604 of the documentation. Note that there is no default value.
5606 2008-02-01 Andrew Pinski <pinskia@gmail.com>
5607 Mark Mitchell <mark@codesourcery.com>
5608 Ben Elliston <bje@au.ibm.com>
5611 * doc/extend.texi (Other Builtins): Document.
5613 2008-01-31 Tom Browder <tom.browder@gmail.com>
5615 * doc/c-tree.texi (Types): Fix grammar.
5616 (Expression trees): Ditto.
5617 * doc/passes.texi (Tree-SSA passes): Ditto.
5619 * doc/configterms.texi (Configure Terms): Fix typo.
5620 * doc/cpp.texi (Common Predefined Macros): Ditto.
5621 * doc/md.texi (Machine Constraints): Ditto.
5623 * doc/makefile.texi (Makefile): Add comma.
5625 2008-01-31 Tom Browder <tom.browder@gmail.com>
5626 Gerald Pfeifer <gerald@pfeifer.com>
5628 * doc/sourcebuild.texi (Front End): Remove references to CVS
5629 and CVSROOT/modules.
5630 (Texinfo Manuals): Replace reference to CVS by one to SVN.
5631 (Back End): Remove reference to CVS.
5633 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
5636 * config/mips/mips.c (gen_load_const_gp): New function, taking a
5638 (mips16_gp_pseudo_reg): ...here.
5639 * config/mips/mips.md (load_const_gp): Replace with...
5640 (load_const_gp_<mode>): ...this :P-based insn.
5642 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5644 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
5645 options. Minor fixes.
5646 (-std): Move reference to standards closer to where language
5647 standards are first mentioned.
5649 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
5651 PR rtl-optimization/34995
5652 * reload.c (alternative_allows_const_pool_ref): Take an rtx
5653 parameter and return a bool. If the rtx parameter is nonnull,
5654 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
5655 (find_reloads): Update call accordingly. Pass the new operand
5656 if it needed no address reloads, otherwise pass null.
5658 2008-01-30 Richard Henderson <rth@redhat.com>
5661 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
5662 for unbounded arrays.
5664 2008-01-30 Silvius Rus <rus@google.com>
5666 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
5668 2008-01-30 Jan Hubicka <jh@suse.cz>
5671 * i386.c (init_cumulative_args): Use real function declaration when
5674 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
5676 PR rtl-optimization/34998
5677 * global.c (build_insn_chain): Treat non-subreg_lowpart
5678 SUBREGs of pseudos as clobbering all the words covered by the
5679 SUBREG, not just all the bytes.
5680 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
5681 original df_ref rather than an extract parameter.
5682 (global_conflicts): Update call accordingly.
5684 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
5686 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
5687 the overflow check to make it easier to read.
5688 (__fixtfdi): Change the type of the ll member in union
5689 long_double to UDItype_x.
5691 2008-01-30 Jakub Jelinek <jakub@redhat.com>
5694 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
5695 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
5696 * tree-inline.c (fold_marked_statements): Call
5697 cgraph_update_edges_for_call_stmt if folding a call statement.
5698 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
5699 debug_generic_stmt calls, reset it back afterwards.
5702 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
5704 * c-typeck.c (build_external_ref): Don't pedwarn about
5705 static vars in current function's scope.
5707 2008-01-29 Joseph Myers <joseph@codesourcery.com>
5709 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
5711 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
5714 * ipa-struct-reorg.c: Fix spelling.
5715 * params.def: Ditto.
5717 2008-01-29 Richard Guenther <rguenther@suse.de>
5720 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
5722 * tree-inline.c (remap_type): Increment remapping_type_depth
5723 around remapping types.
5724 (copy_body_r): Only add referenced variables if they are referenced
5725 from code, not types.
5727 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
5738 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
5739 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
5741 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
5744 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
5745 pointer for tiny stack.
5747 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
5749 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
5751 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
5753 * config/vx-common.h: Fix typo in comment.
5755 2008-01-28 Ian Lance Taylor <iant@google.com>
5759 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
5760 coalesce pointers if they have different DECL_NO_TBAA_P values.
5761 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
5762 between variables with different DECL_NO_TBAA_P values.
5764 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
5767 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
5768 are not legitimate small data references on SPE targets.
5770 2008-01-28 David Daney <ddaney@avtrex.com>
5772 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
5774 2008-01-28 David Daney <ddaney@avtrex.com>
5776 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
5778 2008-01-27 Joseph Myers <joseph@codesourcery.com>
5780 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
5781 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
5782 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
5783 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
5784 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
5785 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
5786 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
5787 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
5789 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
5791 * basic-block.h (condjump_equiv_p): Fix comment.
5793 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
5795 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
5796 print_generic_stmt_indented): Fix comment.
5798 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
5800 * configure.ac (__stack_chk_fail): Add detecion for availability
5801 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
5802 * configure: Regenerate.
5804 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
5807 * final.c (output_addr_const): Handle TRUNCATE.
5809 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
5812 * tree-ssa-loop-ivopts.c (comp_cost): New type.
5813 (zero_cost, infinite_cost): New constants.
5814 (struct cost_pair): Change type of cost to comp_cost.
5815 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
5816 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
5818 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
5819 split_address_cost, ptr_difference_cost, difference_cost,
5820 get_computation_cost_at, get_computation_cost,
5821 determine_use_iv_cost_generic, determine_use_iv_cost_address,
5822 determine_use_iv_cost_condition, determine_use_iv_costs,
5823 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
5824 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
5825 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
5826 Change type of cost to comp_cost.
5827 (determine_iv_cost): Increase cost of non-original ivs, instead
5828 of decreasing the cost of original ones.
5829 (get_address_cost): Indicate the complexity of the addressing mode
5831 (try_add_cand_for): Prefer using ivs not specific to some object.
5832 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
5834 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
5835 Janis Johnson <janis187@us.ibm.com>
5838 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
5839 (TARGET_INSTANTIATE_DECLS): Likewise.
5840 * target.h (expand_to_rtl_hook): New target hook.
5841 (instantiate_decls): Likewise.
5842 * function.c (instantiate_decl): Make non-static. Rename to...
5843 (instantiate_decl_rtl): ... this.
5844 (instantiate_expr): Use instantiate_decl_rtl.
5845 (instantiate_decls_1): Likewise.
5846 (instantiate_decls): Likewise.
5847 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
5848 * function.h (instantiate_decl_rtl): Add prototype.
5849 * cfgexpand.c (target.h): New include.
5850 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
5851 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
5852 (TARGET_INSTANTIATE_DECLS): Likewise.
5853 (TARGET_INITIALIZER): New target hooks added.
5854 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
5856 * config/rs6000/rs6000.c (tree-flow.h): New include.
5857 (machine_function): Add sdmode_stack_slot field.
5858 (rs6000_alloc_sdmode_stack_slot): New function.
5859 (rs6000_instantiate_decls): Likewise.
5860 (rs6000_secondary_memory_needed_rtx): Likewise.
5861 (rs6000_check_sdmode): Likewise.
5862 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
5863 (TARGET_INSTANTIATE_DECLS): Likewise.
5864 (rs6000_hard_regno_mode_ok): Allow SDmode.
5865 (num_insns_constant): Likewise. Handle _Decimal32 constants.
5866 (rs6000_emit_move): Handle SDmode.
5867 (function_arg_advance): Likewise.
5868 (function_arg): Likewise.
5869 (rs6000_gimplify_va_arg): Likewise. Add special handling of
5870 SDmode var args for 32-bit compiles.
5871 (rs6000_secondary_reload_class): Handle SDmode.
5872 (rs6000_output_function_epilogue): Likewise.
5873 (rs6000_function_value): Simplify if statement.
5874 (rs6000_libcall_value): Likewise.
5875 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
5876 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
5877 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
5878 (movsd_hardfloat): New define_insn.
5879 (movsd_softfloat): Likewise.
5880 (movsd_store): Likewise.
5881 (movsd_load): Likewise.
5882 (extendsddd2): Likewise.
5883 (extendsdtd2): Likewise.
5884 (truncddsd2): Likewise.
5885 (movdd_hardfloat64): Fixup comment.
5886 (UNSPEC_MOVSD_LOAD): New constant.
5887 (UNSPEC_MOVSD_STORE): Likewise.
5889 2008-01-26 Jakub Jelinek <jakub@redhat.com>
5892 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
5894 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
5895 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
5896 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
5899 2008-01-26 David Edelsohn <edelsohn@gnu.org>
5902 * config.gcc: Separate AIX 5.3 from AIX 6.1.
5903 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5904 __LONGDOUBLE128 too.
5905 * config/rs6000/aix61.h: New file.
5907 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
5909 PR rtl-optimization/34959
5910 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
5911 popcount and parity rtxes the same mode as their operand.
5912 Truncate or extend the result to the return value's mode
5915 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
5918 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
5919 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
5920 to GOT_VERSION_REGNUM.
5921 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
5922 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
5923 * config/mips/mips.c (mips_emit_call_insn): New function.
5924 (mips_call_tls_get_addr): Call mips_expand_call directly.
5925 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
5927 (mips16_build_call_stub): Likewise. Return the call insn or null.
5928 (mips_expand_call): Update the call to mips16_build_call_stub
5929 accordingly and a remove redundant condition. Assert that MIPS16
5930 stubs do not use lazy binding. Use mips_emit_call_insn and return
5932 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
5934 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
5935 (mips_avoid_hazard): Remove hazard_set handling.
5936 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
5937 (UNSPEC_RESTORE_GP): ...this.
5938 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
5939 (FAKE_CALL_REGNO): Rename to...
5940 (GOT_VERSION_REGNUM): ...this.
5941 (type): Add "ghost" value. Add an associated insn reservation.
5942 (hazard_set): Remove.
5943 (exception_receiver): Rename to...
5944 (restore_gp): ...this and update the unspec identifier accordingly.
5945 (exception_receiver, nonlocal_got_receiver): New expanders.
5946 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
5947 FAKE_CALL_REGNO. Remove hazard_set attribute.
5948 (set_got_version, update_got_version): New patterns.
5950 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
5953 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
5955 2008-01-25 Joseph Myers <joseph@codesourcery.com>
5958 * doc/install.texi2html: Generate gcc-vers.texi.
5960 2008-01-25 DJ Delorie <dj@redhat.com>
5962 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5964 2008-01-25 Joseph Myers <joseph@codesourcery.com>
5966 * config/c4x: Remove directory.
5967 * config.gcc (crx-*, mt-*): Mark obsolete.
5968 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
5969 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
5970 sh-*-rtemscoff*): Remove cases.
5971 * defaults.h (C4X_FLOAT_FORMAT): Remove.
5972 * real.c (encode_c4x_single, decode_c4x_single,
5973 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
5974 c4x_extended_format): Remove.
5975 * real.h (c4x_single_format, c4x_extended_format): Remove.
5976 * doc/extend.texi (interrupt, naked): Remove mention of attributes
5978 (Pragmas): Remove comment about c4x pragmas.
5979 * doc/install.texi (c4x): Remove target-specific instructions.
5980 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
5981 * doc/md.texi (Machine Constraints): Remove C4x documentation.
5982 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
5983 refer to C4x source files as examples.
5984 (C4X_FLOAT_FORMAT): Remove documentation.
5986 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
5988 * config/bfin/bfin.c (override_options): Reorder tests so that
5989 flag_pic gets enabled for -msep-data.
5991 2008-01-25 Richard Guenther <rguenther@suse.de>
5994 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
5995 to its bitfield precision if required.
5997 2008-01-25 Jakub Jelinek <jakub@redhat.com>
6000 * tree-nested.c (walk_omp_for): New function.
6001 (convert_nonlocal_reference, convert_local_reference): Call
6002 walk_omp_for on OMP_FOR.
6003 (convert_call_expr): Call walk_body on OMP_FOR's
6004 OMP_FOR_PRE_INIT_BODY.
6006 2008-01-25 Richard Guenther <rguenther@suse.de>
6008 PR tree-optimization/34966
6009 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
6010 default defs and PHI_NODEs we have to insert after the
6013 2008-01-24 Nick Clifton <nickc@redhat.com>
6015 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
6016 Provide a default definition.
6017 (LIBGCC2_UNITS_PER_WORD): Likewise.
6019 * config/stormy16/stormy16.c: Include df.h for the prototype
6020 for df_regs_ever_live_p.
6021 (xstormy16_expand_builtin_va_start): Convert the stack offset
6022 into a component_ref and then use POINTER_PLUS_EXPR to add it
6023 to the incoming_virtual_args_rtx.
6024 (xstormy16_gimplify_va_arg_expr): Rename to
6025 xstormy16_gimplify_va_arg_expr.
6026 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
6027 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
6028 xstormy16_gimplify_va_arg_expr.
6029 Fix up some formatting issues.
6031 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
6032 Move to predicates.md.
6033 (xs_hi_general_operand): Likewise.
6034 (xs_hi_nonmemory_operand): Likewise.
6035 * config/stormy16/predicates.md:
6036 (xstormy16_carry_plus_operand): New predicate.
6037 (xs_hi_general_operand): New predicate.
6038 (xs_hi_nonmemory_operand): New predicate.
6039 * config/stormy16/stormy16-protos.h:
6040 (xstormy16_carry_plus_operand): Delete prototype.
6041 (xs_hi_general_operand): Likewise.
6042 (xs_hi_nonmemory_operand): Likewise.
6044 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
6045 modifiers as they are no longer needed and they can trigger
6046 reload spill failures.
6048 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
6049 with a match_operand in order to help reload.
6051 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
6052 constraint with 'e' for the 8th alternative as this version of
6053 the mov.w instruction only accepts the lower 8 registers.
6055 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
6058 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
6059 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
6062 2008-01-25 Jakub Jelinek <jakub@redhat.com>
6065 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
6067 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
6069 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
6071 (remove_structure): Update allocations list before removing structure.
6073 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
6075 * ipa-struct-reorg.c (is_safe_cond_expr,
6076 create_new_stmts_for_cond_expr): Use integer_zerop function,
6077 that recognize not only zero-pointer, but zero-integer too.
6079 2008-01-25 Ben Elliston <bje@au.ibm.com>
6082 * fixproto: Escape "." in sed expression that strips leading "./".
6084 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
6087 * gcc.c (SWITCH_OK): Removed.
6088 (SWITCH_LIVE): Changed to bit.
6089 (SWITCH_FALSE): Likewise.
6090 (SWITCH_IGNORE): Likewise.
6091 (switchstr): Change live_cond to unsigned int.
6092 (process_command): Replace SWITCH_OK with 0.
6093 (do_self_spec): Likewise.
6094 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
6095 (give_switch): Likewise.
6096 (used_arg): Likewise.
6097 (do_spec_1): Set the SWITCH_IGNORE bit.
6098 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
6099 bits. Set the SWITCH_LIVE bit.
6101 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
6103 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
6105 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
6107 PR tree-optimization/34472
6108 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
6109 parameter to a "bool *" and set *DATA to false if there is
6110 an unsafe access. Do not delete the structure here.
6111 (check_cond_exprs): Delete it here instead.
6112 (check_cond_exprs, exclude_cold_structs): Do not increase
6113 I when removing a structure.
6115 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
6118 * config/i386/i386.c (ix86_expand_vector_init): Consider only
6119 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
6121 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
6124 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
6125 a fixed vector for stack.
6127 2008-01-24 Ben Elliston <bje@au.ibm.com>
6130 * doc/gcc.texi (Software development): Add a direntry for g++.
6132 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
6134 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
6135 stale and straggling -fforce-addr comments above.
6137 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
6139 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
6140 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
6142 2008-01-23 Michael Matz <matz@suse.de>
6145 * dwarf2out.c (force_type_die): Use modified_type_die instead of
6148 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
6150 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
6153 2008-01-23 Anatoly Sokolov <aesok@post.ru>
6155 * config/avr/avr.c (avr_current_arch): New variable.
6156 (avr_arch_types): Add 'avr31' and 'avr51' entries.
6157 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
6158 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
6159 (avr_override_options): Init 'avr_current_arch'.
6160 (base_arch_s): Move from here...
6161 * config/avr/avr.h (base_arch_s): ... here. Add new members
6162 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
6163 'mega' to 'have_jmp_call'.
6164 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
6165 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
6167 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
6169 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6170 MULTILIB_MATCHES): (Ditto.).
6172 2008-01-23 Richard Guenther <rguenther@suse.de>
6175 * cgraphunit.c (cgraph_reset_node): Always mark the node
6176 not reachable if it is not queued already.
6178 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
6180 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
6181 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
6182 (cputype_selected): New static variable.
6183 (bfin_handle_option): Set it if -mcpu is used.
6184 (override_option): Select default set of workarounds if no cpu type
6185 selected on the command line.
6186 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
6188 From Michael Frysinger <michael.frysinger@analog.com>
6189 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
6190 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
6192 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
6193 for bf547, bf523, bf524, and bf526.
6194 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
6196 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6197 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
6198 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
6199 __ADSPBF547__ and __ADSPBF54x__ for bf547.
6200 * doc/invoke.texi (Blackfin Options): Document that
6201 -mcpu now accept bf547, bf523, bf524, and bf526.
6203 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
6205 PR rtl-optimization/34628
6206 * combine.c (try_combine): Stop and undo after the first combination
6207 if an autoincrement side-effect on the first insn has effectively
6210 2008-01-22 David Edelsohn <edelsohn@gnu.org>
6213 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
6214 Offset addresses are not valid for Altivec or paired float modes.
6216 2008-01-22 Jakub Jelinek <jakub@redhat.com>
6219 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
6220 if DECL_INITIAL (decl) is error_mark_node.
6223 * c-common.c (handle_vector_size_attribute): Only allow
6224 integral, scalar float and fixed point types. Handle OFFSET_TYPE
6225 the same way as pointer, array etc. types.
6226 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
6229 * tree.c (build_type_attribute_qual_variant): Call
6230 build_qualified_type if attributes are equal, but quals are not.
6232 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6235 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
6236 * flags.h (warn_strict_aliasing): Remove.
6237 (warn_strict_overflow): Remove.
6238 * opts.c (warn_strict_aliasing): Remove.
6239 (warn_strict_overflow): Remove.
6240 * c-opts.c (c_common_handle_option): -Wall only sets
6241 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
6242 (c_common_post_options): Give default values to -Wstrict-aliasing
6243 and -Wstrict-overflow if they are uninitialized.
6244 * common.opt (Wstrict-aliasing): Specify Var and Init.
6245 (Wstrict-overflow): Likewise.
6247 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
6249 PR rtl-optimization/26854
6250 PR rtl-optimization/34400
6251 PR rtl-optimization/34884
6252 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
6254 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
6255 (df_rd_bb_info.expanded_lr_out): Deleted
6256 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
6257 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
6258 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
6259 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
6260 Removed code to allocate, initialize or free expanded_lr_out.
6261 (df_rd_bb_local_compute_process_def): Restructured to make more
6263 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
6264 sets if the sets are being trimmed.
6266 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
6269 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
6270 (as_vers): Likewise.
6271 * configure: Regenerated.
6273 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6276 * tree-pass.h (pass_build_alias): New pass.
6277 * tree-ssa-alias.c (gate_build_alias): New.
6278 (pass_build_alias): New.
6279 * passes.c (init_optimization_passes): Add pass_build_alias after
6280 pass_create_structure_vars.
6282 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
6284 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
6285 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
6286 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
6287 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
6288 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
6289 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
6290 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
6291 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
6292 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
6293 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
6294 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
6295 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
6296 * config/s390/s390.md (FP_ALL): New mode iterator.
6297 (_d): New mode attribute.
6298 ("*signbit<mode>2>"): Changed mode of first operand.
6299 ("isinf<mode>2"): Changed mode of first operand.
6300 ("*TDC_insn"): Adaptation for DFP modes.
6302 2008-01-22 Ben Elliston <bje@au.ibm.com>
6304 * tree.c (check_qualified_type): Improve function description.
6306 2008-01-21 Jason Merrill <jason@redhat.com>
6309 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
6310 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
6313 2008-01-21 DJ Delorie <dj@redhat.com>
6315 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
6318 2008-01-21 Richard Guenther <rguenther@suse.de>
6321 * tree-cfg.c (verify_expr): Allow all invariant expressions
6322 instead of just constant class ones as reference argument.
6323 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
6324 like any other constant.
6325 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6327 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
6329 * regmove.c (fixup_match_1): Update call crossed frequencies.
6331 2008-01-21 Richard Guenther <rguenther@suse.de>
6334 * tree-inline.c (setup_one_parameter): Deal with mismatched
6335 types using a VIEW_CONVERT_EXPR.
6337 2008-01-21 Alon Dayan <alond@il.ibm.com>
6338 Olga Golovanevsky <olga@il.ibm.com>
6340 PR tree-optimization/34701
6341 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
6342 when the structure size is not a power of 2.
6344 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
6346 * doc/install.texi: Add doc for --enable-checking=df.
6348 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
6350 PR rtl-optimization/34808
6351 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
6353 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
6355 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
6358 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
6360 PR rtl-optimization/26854
6361 PR rtl-optimization/34400
6362 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
6364 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
6365 (df_rd_bb_info.expanded_lr_out): New.
6366 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
6367 * loop_iv.c (iv_analysis_loop_init): Ditto.
6368 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
6369 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
6370 Added code to allocate, initialize or free expanded_lr_out.
6371 (df_rd_bb_local_compute_process_def): Restructured to make
6372 more understandable.
6373 (df_rd_confluence_n): Add code to do nothing with fake edges and
6374 code to no apply invalidate_by_call sets if the sets are being trimmed.
6375 (df_lr_local_finalize): Renamed to df_lr_finalize.
6376 (df_live_local_finalize): Renamed to df_live_finalize.
6378 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
6381 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
6382 deciding whether to use reciprocal instructions.
6384 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
6386 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
6387 dwarf2out_note_section_used if cold_text_section is NULL.
6389 2008-01-19 Jakub Jelinek <jakub@redhat.com>
6391 PR gcov-profile/34610
6392 * tree-cfg.c (make_edges): Mark both outgoing edges from
6393 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
6394 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
6395 from OMP_FOR and OMP_CONTINUE outgoing edges.
6397 * tree-profile.c (tree_profiling): Return early if
6398 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
6400 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
6401 from cfun to child_cfun.
6402 * function.h (struct function): Add after_tree_profile bit.
6404 2008-01-19 Anatoly Sokolov <aesok@post.ru>
6406 * config/avr/avr.S (_exit): Disable interrupt.
6408 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
6409 Steven Bosscher <stevenb.gcc@gmail.com>
6411 PR rtl-optimization/26854
6412 PR rtl-optimization/34400
6413 * df-problems.c (df_live_scratch): New scratch bitmap.
6414 (df_live_alloc): Allocate df_live_scratch when doing df_live.
6415 (df_live_reset): Clear the proper bitmaps.
6416 (df_live_bb_local_compute): Only process the artificial defs once
6417 since the order is not important.
6418 (df_live_init): Init the df_live sets only with the variables
6419 found live by df_lr.
6420 (df_live_transfer_function): Use the df_lr sets to prune the
6421 df_live sets as they are being computed.
6422 (df_live_free): Free df_live_scratch.
6424 2008-01-18 Ian Lance Taylor <iant@google.com>
6426 * common.opt: Add fmerge-debug-strings.
6427 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
6428 flag_merge_debug_strings rather than flag_merge_constants.
6429 * doc/invoke.texi (Option Summary): Mention
6430 -fmerge-debug-strings.
6431 (Debugging Options): Document -fmerge-debug-strings.
6433 2008-01-18 Ian Lance Taylor <iant@google.com>
6436 * tree.h (DECL_IS_OPERATOR_NEW): Define.
6437 (struct tree_function_decl): Add new field operator_new_flag.
6438 * tree-inline.c (expand_call_inline): When inlining a call to
6439 operator new, force the return value to go into a variable, and
6440 set DECL_NO_TBAA_P on that variable.
6441 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
6443 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
6446 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
6447 DWARF2_DEBUGGING_INFO.
6448 (dwarf2out_note_section_used): Ditto. Add prototype.
6449 (have_multiple_function_sections, text_section_used,
6450 cold_text_section_used, *cold_text_sections): Move declarations
6453 2008-01-17 Bob Wilson <bob.wilson@acm.org>
6455 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
6456 field and add signal_ra.
6457 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
6458 assignments to frame state pc. Move end of stack check after
6459 MD_FALLBACK_FRAME_STATE_FOR.
6460 (uw_update_context_1): Use frame state signal_regs if set, instead
6461 of checking signal_frame flag.
6462 (uw_update_context): Use frame state signal_ra if set.
6463 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
6464 * config/xtensa/linux-unwind.h: New file.
6466 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
6468 * modulo-sched.c (get_sched_window): Fix comment typo.
6470 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
6472 PR tree-optimization/34648
6473 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
6475 2008-01-17 Anatoly Sokolov <aesok@post.ru>
6477 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
6478 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
6480 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
6482 PR rtl-optimization/34400
6483 * df-core.c (df_worklist_dataflow_overeager,
6484 df_worklist_dataflow_doublequeue): New functions.
6485 (df_worklist_dataflow): Two different worklist solvers.
6486 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
6489 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
6492 * doc/invoke.texi: Document the dependence on pthread for fopenmp
6493 and ftree-parallelize-loops.
6495 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
6497 PR rtl-optimization/34826
6498 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
6500 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
6502 * global.c (find_reg): Mark the eh regs as used if necessary.
6503 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
6504 * ra.h (struct allocno): no_eh_reg field added. Changed
6505 no_stack_reg type to bitfield.
6507 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
6509 * tree.c (substitute_in_expr): Add missing 'break'.
6511 2008-01-17 Richard Guenther <rguenther@suse.de>
6513 PR tree-optimization/34825
6514 * tree-ssa-math-opts.c (is_division_by): Do not recognize
6515 x / x as division to handle.
6517 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6519 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
6520 "-pthread" is specified.
6521 * pa-hpux11.h (LIB_SPEC): Likewise.
6523 2008-01-16 Janis Johnson <janis187@us.ibm.com>
6524 Peter Bergner <bergner@vnet.ibm.com>
6526 PR rtl-optimization/33796
6527 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
6529 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6531 PR libgfortran/34699
6532 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
6534 * pa-hpux10.h (LINK_SPEC): Likewise.
6535 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
6537 2008-01-16 Richard Guenther <rguenther@suse.de>
6540 * fold-const.c (fold_convert_const_int_from_int): Do not
6541 set overflow if that occured only because of a sign extension
6542 change when converting from/to a sizetype with the same
6543 precision and signedness.
6545 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
6548 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
6549 location address to the correct place. Update copyright year.
6551 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
6553 * lambda-code.c (lambda_transform_legal_p): Handle the case of
6554 no dependences in the dependence_relations vector.
6556 2008-01-16 Jan Hubicka <jh@suse.cz>
6558 PR rtl-optimization/31396
6559 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
6560 * cfg.c (dump_reg_info): Print it.
6561 * regs.h (struct reg_info_t): add freq_calls_crossed.
6562 (REG_FREQ_CALLS_CROSSED): New macro.
6563 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
6564 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
6565 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
6566 regmove_optimize): Update call crossed frequencies.
6567 * local-alloc.c (struct qty): Add freq_calls_crossed.
6568 (alloc_qty): Copute freq_calls_crossed.
6569 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
6570 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
6571 * ra.h (struct allocno): Add freq_calls_crossed.
6573 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
6575 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
6576 libgomp when compiling with ftree-parallelize-loops.
6577 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
6579 2008-01-16 Richard Guenther <rguenther@suse.de>
6581 PR tree-optimization/34769
6582 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
6583 * tree.c (int_cst_value): Instead make this function more
6584 permissive in what it accepts as valid input. Document this
6585 function always sign-extends the value.
6587 2008-01-16 Jakub Jelinek <jakub@redhat.com>
6588 Richard Guenther <rguenther@suse.de>
6591 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
6592 (gimple_fold_indirect_ref_rhs): ... this.
6593 (gimple_fold_indirect_ref): New function with foldings
6594 that preserve lvalueness.
6595 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
6596 * tree-flow.h (gimple_fold_indirect_ref): Declare.
6597 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
6598 to fold an INDIRECT_REF, fall back to the old use of
6599 fold_indirect_ref_1.
6601 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
6603 * tree-data-ref.c (subscript_dependence_tester_1): Call
6604 free_conflict_function.
6605 (compute_self_dependence): Same.
6607 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
6610 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
6611 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
6613 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
6614 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
6615 for DWARF2_UNWIND_INFO targets.
6617 2008-01-16 Richard Guenther <rguenther@suse.de>
6620 * c-typeck.c (common_pointer_type): Do not merge inconsistent
6621 type qualifiers for function types.
6623 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
6625 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
6626 loop_iterator li from previous commit.
6628 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
6630 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
6632 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
6634 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
6635 (parallelize_loops): Don't parallelize irreducible components.
6637 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6640 * c-opts (c_common_post_options): Do not enable CPP
6641 flag_pedantic_errors by default.
6643 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
6645 PR rtl-optimization/31944
6646 * cse.c (remove_pseudo_from_table): New function.
6647 (merge_equiv_classes): Use above function to remove pseudo-registers.
6648 (invalidate): Likewise.
6650 2008-01-13 Richard Guenther <rguenther@suse.de>
6653 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
6654 instead of TYPE_MODE to deal with calls from expand_one_error_var.
6656 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
6658 * gcse.c (cprop_jump): Call validate_unshare_change instead of
6659 validate_change to unshare the source of the PC set.
6661 2008-01-12 Jan Hubicka <jh@suse.cz>
6664 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
6665 references above array bounds. This might trigger bounds checks for
6668 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
6670 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
6671 new_replaceable_dependencies.
6673 2008-01-12 Doug Kwan <dougkwan@google.com>
6675 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
6676 instead of OPT_Wreturn_type in warning due to ignored return type
6678 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
6679 options included in -Wextra.
6680 * c.opt: New option -Wignored_qualifiers.
6681 * doc/invoke.texi (Warning Options, -Wextra): Add new option
6682 -Wignore_qualifiers.
6683 (-Wignored-qualifiers): Document.
6684 (-Wreturn-type): Remove description of functionality now handled
6685 by -Wignored-qualifiers.
6687 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
6690 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
6691 NOP_EXPR if it is between integral types with the same precision.
6693 2008-01-12 Jan Hubicka <jh@suse.cz>
6696 * invoke.texi (max-inline-recursive-depth): Fix default value.
6698 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
6700 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
6703 2008-01-11 Bob Wilson <bob.wilson@acm.org>
6705 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
6707 2008-01-11 James E. Wilson <wilson@specifix.com>
6710 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
6712 2008-01-11 Anatoly Sokolov <aesok@post.ru>
6714 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
6715 save/restore frame pointer register and don't use 'call-prologues'
6716 optimization in function with "OS_task" attribute.
6718 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
6721 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
6722 when copying to memory.
6724 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
6726 PR rtl-optimization/30905
6727 * cfgcleanup.c: Include dce.h
6728 (crossjumps_occured): New global variable.
6729 (try_crossjump_bb): Exit loop after finding a fallthru edge.
6730 If something changed, set crossjumps_occured to true.
6731 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
6732 Don't add/remove fake edges to exit here...
6733 (cleanup_cfg): ...but do it here, when crossjumping.
6734 Run a fast DCE when successful crossjumps occured in the latest
6735 iteration of try_optimize_cfg.
6737 2008-01-11 Richard Guenther <rguenther@suse.de>
6739 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
6740 (struct vn_unary_op_s): Likewise.
6741 (vn_reference_insert): Free old reference on hash collision.
6743 2008-01-10 Raksit Ashok <raksit@google.com>
6745 PR rtl-optimization/27971
6746 * combine.c (find_split_point): Split PLUS expressions which are
6747 inside a MEM rtx, and whose first operand is complex.
6749 2008-01-10 DJ Delorie <dj@redhat.com>
6751 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
6752 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
6753 (m32c_hard_regno_ok): Call the underlying function.
6755 2008-01-10 Richard Guenther <rguenther@suse.de>
6758 * tree-cfg.c (tree_merge_blocks): Do not go through the
6759 full-blown folding and stmt updating path if we just deal
6760 with virtual operands.
6761 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
6762 test for abnormal SSA_NAMEs.
6764 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
6767 * reload.c (push_reload): Add assertions. All constants from
6768 reg_equiv_constant should have been used for replacing the respective
6770 (find_reloads_address): Invoke find_reloads_address_part for
6771 constant taken from the reg_equiv_constant array.
6773 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
6775 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
6776 field (valnum) the first in the struct. Replace bools with
6779 2008-01-10 Richard Guenther <rguenther@suse.de>
6781 PR tree-optimization/34651
6782 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
6783 types and ordering for masking and converting.
6785 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
6787 PR tree-optimization/34017
6788 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
6789 also for PHI_NODE expressions.
6791 2008-01-09 Jan Hubicka <jh@suse.cz>
6793 PR tree-optimization/34708
6794 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
6795 based on number of case labels.
6796 (init_inline_once): Remove switch_cost.
6797 * tree-inline.h (eni_weights_d): Remove switch_cost.
6799 2008-01-09 Richard Guenther <rguenther@suse.de>
6800 Andrew Pinski <andrew_pinski@playstation.sony.com>
6803 * gimplify.c (gimplify_cond_expr): Do not create an addressable
6804 temporary if an rvalue is ok or an lvalue is not required.
6806 2008-01-09 Richard Guenther <rguenther@suse.de>
6809 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
6812 2008-01-09 Richard Guenther <rguenther@suse.de>
6815 * tree.c (host_integerp): Check for sizetype only if the
6816 type is an integer type.
6818 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
6821 * opts.c (decode_options): Disable inlining of functions called
6822 once if not in unit-at-a-time mode.
6824 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
6826 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
6828 2008-01-08 Richard Guenther <rguenther@suse.de>
6831 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
6832 out early if the result will be unused.
6834 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
6839 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
6840 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
6843 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
6845 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
6846 for vectorization tuned.
6848 2008-01-08 Richard Guenther <rguenther@suse.de>
6850 PR tree-optimization/34683
6851 * tree-ssa-operands.c (operand_build_cmp): Export.
6852 * tree-ssa-operands.h (operand_build_cmp): Declare.
6853 * tree-vn.c (vuses_compare): Remove.
6854 (sort_vuses): Use operand_build_cmp.
6855 (sort_vuses_heap): Likewise.
6856 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
6857 to re-use old VEC if available. Do not sort already sorted VUSEs.
6858 (vdefs_to_vec): Do not sort already sorted VDEFs.
6860 2008-01-08 Jakub Jelinek <jakub@redhat.com>
6863 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
6865 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
6868 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
6869 limitations of reciprocal sequences on x86 targets.
6871 2008-01-08 Richard Guenther <rguenther@suse.de>
6873 PR tree-optimization/34683
6874 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
6876 2008-01-07 Jakub Jelinek <jakub@redhat.com>
6879 * config/darwin.c (darwin_mergeable_string_section): Don't use
6880 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
6882 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
6885 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
6886 negxf2. Macroize expander using X87MODEF mode iterator. Change
6887 predicates of op0 and op1 to register_operand.
6888 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
6889 expander using X87MODEF mode iterator. Change predicates of
6890 op0 and op1 to register_operand.
6891 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
6892 corresponding patterns and macroize using MODEF macro. Change
6893 predicates of op0 and op1 to register_operand and remove
6894 "m" constraint. Disparage "r" alternative with "!".
6895 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
6896 macroize using X87MODEF macro. Change predicates of op0 and op1
6897 to register_operand and remove "m" constraint. Disparage "r"
6898 alternative with "!".
6899 (absneg splitter with memory operands): Remove.
6900 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
6901 patterns and macroize using X87MODEF mode iterator.
6902 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
6903 Change predicate of op1 to register_operand.
6904 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
6905 for memory operands.
6907 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
6909 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
6911 2008-01-07 Richard Guenther <rguenther@suse.de>
6913 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
6916 2008-01-07 Richard Guenther <rguenther@suse.de>
6918 PR tree-optimization/34683
6919 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
6920 VOPs of the needed size to save memory. Use VEC_quick_push
6921 to save compile-time.
6922 (vdefs_to_vec): Likewise.
6924 2008-01-07 Sa Liu <saliu@de.ibm.com>
6926 * config/spu/spu.md (divdf3): Genetate inline code for double
6927 division. The implementation doesn't handle INF or NAN, therefore it
6928 only applies when -ffinite-math-only is given.
6930 2008-01-06 Paolo Carlini <pcarlini@suse.de>
6933 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
6934 * doc/cpp.texi ([Common Predefined Macros]): Document.
6936 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
6938 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
6939 order to use commutative addition instead of subtraction.
6941 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
6942 Mircea Namolaru <namolaru@il.ibm.com>
6943 Vladimir Yanovsky <yanov@il.ibm.com>
6944 Revital Eres <eres@il.ibm.com>
6946 PR tree-optimization/34263
6947 * tree-outof-ssa.c (process_single_block_loop_latch,
6948 contains_tree_r): New functions.
6949 (analyze_edges_for_bb): Call process_single_block_loop_latch
6950 function to empty single-basic-block latch block if possible.
6952 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
6954 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
6956 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
6958 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
6960 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
6962 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
6964 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
6966 2008-01-05 Jakub Jelinek <jakub@redhat.com>
6968 PR tree-optimization/34618
6969 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
6972 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
6975 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
6976 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
6977 Update copyright year.
6979 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
6980 Update copyright year.
6981 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
6984 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
6986 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
6987 edge does not point to current bb before changing need_assert.
6989 2008-01-04 Richard Guenther <rguenther@suse.de>
6992 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
6993 for verifying purposes if they are is_gimple_min_invariant.
6995 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
6997 PR tree-optimization/34448
6998 PR tree-optimization/34465
6999 * gimplify.c (gimplify_init_constructor): Add new parameter
7000 notify_temp_creation. Use it.
7001 (gimplify_modify_expr_rhs): Take volatiles into account when
7002 optimizing constructors.
7003 Do not optimize constructors if gimplify_init_constructor will dump to
7005 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
7006 * gcc.c-torture/compile/pr34448.c: New.
7008 2008-01-04 Jakub Jelinek <jakub@redhat.com>
7010 PR gcov-profile/34609
7011 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
7012 return_slot if result is TREE_ADDRESSABLE.
7014 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
7016 * config/mips/mips.md (sqrt_condition): Tweak comment.
7017 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
7019 2008-01-03 Tom Tromey <tromey@redhat.com>
7022 * c-common.c (c_type_hash): Handle VLAs.
7024 2008-01-03 Jan Hubicka <jh@suse.cz>
7026 PR tree-optimization/31081
7027 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
7028 0 when inlining and not inlining to first basic block.
7029 (remap_decl): When var is initialized to 0, don't set default_def.
7030 (expand_call_inline): Set entry_bb.
7031 * tree-inline.h (copy_body_data): Add entry_bb.
7033 2008-01-03 Jakub Jelinek <jakub@redhat.com>
7036 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
7039 PR tree-optimization/29484
7040 * tree-inline.c (inline_forbidden_p_2): New function.
7041 (inline_forbidden_p): Disallow inlining if some static var
7042 has an address of a local LABEL_DECL in its initializer.
7043 * doc/extend.texi (Labels as Values): Document &&foo behaviour
7046 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
7048 PR tree-optimization/34635
7049 * tree-data-ref.c (add_other_self_distances): Make sure that the
7050 evolution step is constant.
7052 2008-01-03 Jakub Jelinek <jakub@redhat.com>
7055 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
7057 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
7059 * tree-sra.c (scalarize_init): Insert the generate_element_init
7060 statements after the generate_element_zero statements.
7062 2008-01-02 Richard Guenther <rguenther@suse.de>
7066 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
7067 for very large number of operands instead of ICEing.
7069 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
7072 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
7073 while stack probing.
7075 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
7077 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
7080 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
7083 * tree-mudflap.c (mx_register_decls): Guard warning by
7084 !DECL_ARTIFICIAL check.
7086 2008-01-01 Jakub Jelinek <jakub@redhat.com>
7088 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
7089 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
7090 sse5_perm<mode>): Fix constraints.