1 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
3 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
4 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
5 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
6 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
7 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
8 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
9 save_r31, return_r31, save_interrupt, return_interrupt,
10 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
11 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
12 L_save_##START##_r31c, L_callt_save_r31c: Updated as per the
14 save_r6_r9, L_callt_save_r6_r9: Remove.
15 * config/v850/predicates.md (even_reg_operand, disp23_operand,
16 const_float_1_operand const_float_0_operand): New Predicates.
17 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
18 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
19 * config/v850/t-v850: Update multilibs for new target variants.
20 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
21 * config/v850/t-v850e: Likewise.
22 * config/v850/v850.c (v850_issue_rate): New.
23 (v850_strict_argument_naming): New.
24 (function_arg): Modify to generate a different ABI.
25 (print_operand): Update case 'z' to support float modes.
26 (output_move_single): Modify to generate appropriate and better
28 (v850_float_z_comparison_operator, v850_select_cc_mode,
29 v850_float_nz_comparison_operator, v850_gen_float_compare,
30 v850_gen_compare): New functions to support comparison of
32 (ep_memory_offset): Add support for V850E2 targets.
33 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
34 (INTERRUPT_REGPARM_NUM): Remove.
35 (compute_register_save_size): Add extra case to save/restore
37 (use_prolog_function): New function to support prologue.
38 (expand_prologue): Add support for V850E2 targets and modified
39 as per the current ABI requirements.
40 (expand_epilogue): Likewise.
41 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
42 (construct_save_jarl): Likewise.
43 (construct_dispose_instruction): Update as per the current ABI
45 (construct_prepare_instruction): Likewise.
46 * config/v850/v850.h(TARGET_CPU_DEFAULT): Add target predefines.
47 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
48 (CPP_SPEC): Updated to support v850e2 targets.
49 (STRICT_ALIGNMENT): Modified.
50 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
51 (FIXED_REGISTERS): Likewise.
52 (CALL_USED_REGISTERS): Likewise.
53 (CONDITIONAL_REGISTER_USAGE): Updated.
54 (HARD_REGNO_MODE_OK): Updated.
55 (reg_class): Updated to add even registers.
56 (REG_CLASS_NAMES): Likewise.
57 (REG_CLASS_CONTENTS): Likewise.
58 (REGNO_REG_CLASS): Updated for CC registers.
59 (REG_CLASS_FROM_LETTER): Added support for even registers.
60 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
61 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
62 ARG_POINTER_REGNUM): Updated.
63 (FUNCTION_ARG_ADVANCE): Define.
64 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
65 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
66 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
67 (GO_IF_LEGITIMATE_ADDRESS): Updated.
68 (SELECT_CC_MODE): Define.
69 (REGISTER_NAMES): Updated to add psw and fcc registers.
70 (ADDITIONAL_REGISTER_NAMES): Updated.
71 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
72 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
73 * config/v850/v850.md (define_constants): Define new constants.
74 (type): Update store,bit1,macc,div,fpu and single attributes.
76 (cc): Add set_z attribute.
77 (unsign23byte_load, sign23byte_load, unsign23hword_load,
78 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
79 23word_store): New instructions for 23-bit displacement load and
81 (movqi_internal, movhi_internal): Update the attributes.
82 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
83 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
85 (v850_tst1): Modified using CC_REGNUM.
87 (cmpsi): Modified as define_expand from define_insn.
88 (cmpsi_insn, cmpsf, cmpdf): New instructions.
89 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
90 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
91 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
92 one_cmplsi2): Clobber the CC_REGNUM register.
93 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
94 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
95 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes
97 (setf_insn, set_z_insn, set_nz_insn): New instructions for
99 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
100 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
102 (sasf_1, sasf_2): Remove.
103 (sasf): New instruction.
104 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
105 targets. CC_REGNUM register is clobbered and attributes are
107 (branch_z_normal, branch_z_invert, branch_nz_normal,
108 branch_nz_invert): New branch related instructions.
109 (jump): Updated the attributes.
110 (switch): Update to support new targets. CC_REGNUM register is
111 clobbered and attributes are updated.
112 (call_internal_short, call_internal_long, call_value_internal_short,
113 call_value_internal_long): Updated the attributes.
114 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
115 clobbered and attributes are updated.
116 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
117 Update to support new targets. CC_REGNUM register is clobbered.
118 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
120 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
122 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
123 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
124 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
125 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
126 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
127 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
128 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
129 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
130 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
131 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
132 point instructions defined for V850e2v3 target.
133 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
134 Add support for V850E2 targets and CC_REGNUM register is clobbered.
135 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
136 support for new targets.
137 * config/v850/v850-modes.def: New file.
138 * config/v850/v850.opt(mstrict-align): Remove.
139 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
140 mv850e2v3): New command line options for V850.
141 * config.gcc: Update the newly added files.
142 * doc/invoke.texi: Update the newly added command line options for
145 2010-07-26 Richard Guenther <rguenther@suse.de>
147 PR tree-optimization/45052
148 * ipa-pure-const.c (check_stmt): Check volatileness.
150 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
153 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
154 * config/sparc/sparc.c: Include reload.h.
155 (legitimize_tls_address): Rename into...
156 (sparc_legitimize_tls_address): ...this.
157 (legitimize_pic_address): Rename into...
158 (sparc_legitimize_pic_address): ...this.
159 (sparc_expand_move): Adjust to above renaming.
160 (sparc_tls_referenced_p): Likewise.
161 (sparc_legitimize_tls_address): Likewise.
162 (sparc_legitimize_pic_address): Likewise.
163 (sparc_legitimize_address): Likewise.
164 (sparc_output_mi_thunk): Likewise.
165 (sparc_legitimize_reload_address): New global function. Recognize
166 (lo_sum (high ...) ...) patterns generated by earlier passes.
167 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
169 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
172 * config/sparc/predicates.md (memory_reg_operand): Delete.
173 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
174 (*sync_compare_and_swap): Encode the address form in the pattern.
175 (*sync_compare_and_swapdi_v8plus): Likewise.
177 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
179 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent
180 changes. Streamline paragraph on compatibility with the system
183 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
186 * alias.c (true_dependence_1): Fix thinko in merge of old
187 true_dependence and canon_true_dependence.
189 2010-07-23 Jan Hubicka <jh@suse.cz>
191 * lto-streamer-out.c (write_symbol): Fix visibilities of external
194 2010-07-23 Le-Chun Wu <lcwu@google.com>
196 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
197 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
198 and an unnecessary assignment.
199 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
201 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
202 unnecessary self-init.
204 2010-07-23 Richard Guenther <rguenther@suse.de>
207 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
208 for -flto and -fwhopr.
210 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
213 * Makefile.in (USER_H_INC_NEXT_PRE,
214 USER_H_INC_NEXT_POST): New.
215 (stmp-int-hdrs): Prefix/postfix headers by include_next.
216 * config.gcc (user_headers_inc_next_pre): New.
217 (user_headers_inc_next_post): Likewise.
218 (*-w64-mingw*): Use for float.h post-fixing, and for
219 stddef.h/stdarg.h pre-fixing by include_next.
220 * configure.ac (user_headers_inc_next_post): New.
221 (user_headers_inc_next_pre): New.
222 * configure: Regenerated.
224 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
226 * configure.ac: Don't disable TLS on Solaris 8/9 by default
227 Set tga_func for Solaris 2/x86 resp. SPARC.
228 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
229 (LIB_THREAD_LDFLAGS_SPEC): Define.
230 (LIB_TLS_SPEC): Define.
231 Check for required Sun ld version.
232 * configure: Regenerate.
233 * config.in: Regenerate.
234 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
235 -pthread, -threads, LIB_TLS_SPEC with -pthread.
236 * doc/install.texi (Specific, *-*-solaris2*): Document use of
237 alternate thread libraries on Solaris 8.
238 Document TLS patch requirements.
239 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
243 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
246 2010-07-23 Jakub Jelinek <jakub@redhat.com>
248 * tree.h (struct tree_base): Add nameless_flag bitfield.
249 (TYPE_NAMELESS, DECL_NAMELESS): Define.
250 * omp-low.c (create_omp_child_function, scan_omp_parallel,
251 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
252 DECL_ARTIFICIAL where needed.
253 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
254 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
255 has DECL_NAMELESS set.
257 2010-07-23 Martin Jambor <mjambor@suse.cz>
259 PR tree-optimization/44915
260 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
261 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
262 (analyze_function): Likewise.
264 2010-07-23 Martin Jambor <mjambor@suse.cz>
266 PR tree-optimization/44914
267 * tree-sra.c (sra_modify_function_body): Return true if CFG was
268 changed, add purging dead eh edges.
269 (ipa_sra_modify_function_body): Return true if CFG was changed,
270 simplify purging dead eh edges.
271 (modify_function): Return true if CFG was changed.
272 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
274 (ipa_early_sra): Likewise.
276 2010-07-23 Jie Zhang <jie@codesourcery.com>
279 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
281 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
282 false if ! tree_versionable_function_p.
284 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
286 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
287 * ipa-pure-const.c (special_builtlin_state): Remove
288 BUILT_IN_ARGS_INFO case.
289 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
290 * builtins.c (expand_builtin): Likewise.
291 (expand_builtin_args_info): Remove.
292 * doc/tm.texi (__builtin_args_info): Remove.
293 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
294 * doc/tm.text.in: Likewise.
296 2010-07-23 Richard Guenther <rguenther@suse.de>
298 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum
300 (lto_symtab_merge_decls_2): Likewise.
301 * tree-ssa.c (useless_type_conversion_p): Likewise.
302 * lto-streamer-in.c (input_gimple_stmt): Likewise.
303 * gimple.c (gtc_visited2, gtc_ob2): Remove.
304 (struct type_pair_d): Make same_p an array indexed by mode.
306 (lookup_type_pair): Update initialization.
307 (struct sccs): Adjust same_p type.
308 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
310 (print_gimple_types_stats): Likewise.
311 * gimple.h (enum gtc_mode): New.
312 (gimple_types_compatible_p): Adjust prototype.
314 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
316 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
317 again after processing insn.
319 2010-07-23 Jie Zhang <jie@codesourcery.com>
321 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
322 proper words when !tree_versionable_function_p.
324 2010-07-23 Richard Guenther <rguenther@suse.de>
326 PR tree-optimization/45037
327 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
329 2010-07-23 Jie Zhang <jie@codesourcery.com>
331 * doc/extend.texi: Remove IP2K from the description of naked
332 attribute. Add MCORE instead.
334 2010-07-10 Andi Kleen <ak@linux.intel.com>
337 * lto-opts.c (lto_write_options): Add NULL file_data argument to
338 lto_get_section_name.
339 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
340 * lto-streamer-out.c (produce_asm): Likewise.
341 (copy_function): Likewise.
342 (produce_symtab): Likewise.
343 (produce_asm_for_decls): Likewise.
344 * lto-streamer.c (lto_get_section_name): Add file_data argument.
345 Rewrite to add random postfix to LTO sections.
346 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
347 (lto_get_section_name): Add file_data argument to prototype.
349 2010-07-10 Andi Kleen <ak@linux.intel.com>
351 * lto-section-in.c (lto_section_name): Synchronize names
352 with lto_get_section_name.
354 2010-07-10 Andi Kleen <ak@linux.intel.com>
356 * lto-opts.c (lto_read_file_options): Check for missing section.
358 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
360 * ira.c (check_allocation): Correctly handle the case where an allocno
361 with two objects was allocated to a single reg.
363 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
365 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
366 (is_widening_mult_p): Likewise.
367 (convert_to_widen): Use them.
368 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
369 well as integer ones.
371 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
373 * alias.c (true_dependence_1): New function, merged version of
374 true_dependence and canon_true_dependence.
375 (true_dependence): Simplify.
376 (canon_true_dependence): Simplify.
378 2010-07-22 Richard Henderson <rth@redhat.com>
381 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
382 of V4SFmode for the SSE saves; increase stack alignment if needed.
383 (ix86_gimplify_va_arg): Don't increase stack alignment here.
385 2010-07-22 Jakub Jelinek <jakub@redhat.com>
388 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
389 call cprop_find_used_regs again via note_uses.
391 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
393 * alias.c (get_alias_set): Fix formatting issues.
395 2010-07-22 Steve Ellcey <sje@cup.hp.com>
398 * stmt.c (expand_value_return): Call promote_function_mode with
399 a for_return argument of 2 when returning by reference.
401 2010-07-22 Dodji Seketeli <dodji@redhat.com>
404 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
405 unit DIE if we can find the scope DIE.
407 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
409 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
410 changed. Initialize OBJECT_SUBWORD.
411 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
412 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
414 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
415 (finish_allocno): Likewise.
416 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
417 (remove_low_level_allocnos): Likewise.
418 (update_bad_spill_attribute): Likewise.
419 (setup_min_max_allocno_live_range_point): Likewise.
420 (sort_conflict_id_map): Likewise.
421 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
422 (ior_hard_reg_conflicts): New function.
423 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
424 (compress_conflict_vecs): Iterate over objects, not allocnos.
425 (ira_add_live_range_to_object): New function.
426 (object_range_compare_func): Renamed from allocno_range_compare_func.
428 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
429 subobjects, widen the min/max range of the lowest-order object to
430 potentially include all other such low-order objects.
431 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
432 (check_allocation): Likewise. Use more fine-grained tests for register
434 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
436 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
437 choices about which bits to set in each set. Don't use
438 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
439 using the multiple sets we computed.
440 (push_allocno_to_stack): Iterate over allocno subobjects.
441 (all_conflicting_hard_regs_coalesced): New static function.
442 (setup_allocno_available_regs_num): Use it.
443 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
445 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
446 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
447 by ALLOCNO_NUM_OBJECTS.
448 (calculate_spill_cost): Likewise.
449 (color_pass): Express if statement in a more normal way.
450 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
451 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
452 (setup_slot_coalesced_allocno_live_ranges): Likewise.
453 (allocno_reload_assign): Likewise.
454 (ira_reassign_pseudos): Likewise.
455 (fast_allocation): Likewise.
456 * ira-conflicts.c (build_conflict_bit_table): Likewise.
457 (print_allocno_conflicts): Likewise.
458 (ira_build_conflicts): Likewise.
459 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
460 callers changed. Test subword 0 of each allocno for conflicts.
461 (build_object_conflicts): Renamed from build_allocno_conflicts. All
462 callers changed. Iterate over allocno subobjects.
463 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
464 * ira-int.h (struct ira_allocno): New member: num_objects.
465 Rename object to objects and change it into an array.
466 (ALLOCNO_OBJECT): Add new argument N.
467 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
468 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
469 (ior_hard_reg_conflicts): Declare.
470 (ira_add_live_range_to_object): Declare.
471 (ira_allocno_object_iterator): New.
472 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
473 (FOR_EACH_ALLOCNO_OBJECT): New macro.
474 * ira-lives.c (objects_live): Renamed from allocnos_live; all
476 (allocnos_processed): New sparseset.
477 (make_object_born): Renamed from make_allocno_born; take an
478 ira_object_t argument. All callers changed.
479 (make_object_dead): Renamed from make_allocno_dead; take an
480 ira_object_t argument. All callers changed.
481 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
483 (mark_pseudo_regno_live): Iterate over allocno subobjects.
484 (mark_pseudo_regno_dead): Likewise.
485 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
487 (mark_ref_live): Detect subword accesses and call
488 mark_pseudo_regno_subword_live as appropriate.
489 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
490 (process_bb_nodes_live): Deal with object-related updates first; set
491 and test bits in allocnos_processed to avoid computing allocno
492 statistics more than once.
493 (create_start_finish_chains): Iterate over objects, not allocnos.
494 (print_object_live_ranges): New function.
495 (print_allocno_live_ranges): Use it.
496 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
499 2010-07-22 Richard Guenther <rguenther@suse.de>
502 * gimple.c (gtc_next_dfs_num): New global.
503 (struct sccs): Make value a union, add integer same_p member.
504 (gtc_visit): New function.
505 (gimple_types_compatible_p_1): New function, split out from ...
506 (gimple_types_compatible_p): ... here. Start a DFS walk here.
507 (iterative_hash_gimple_type): Adjust for sccs change.
509 2010-07-22 Martin Jambor <mjambor@suse.cz>
511 PR tree-optimization/44891
512 * tree-sra.c: Include gimple-pretty-print.h.
513 (replace_uses_with_default_def_ssa_name): Renamed to
514 get_repl_default_def_ssa_name, return the new SSA name instead of
515 replacing the old one.
516 (sra_modify_assign): Dump a message when removing a load, if the LHS
517 is an SSA_NAME, do not do any propagation, just set the RHS to a
518 default definition SSA NAME, type convert if necessary.
519 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
521 2010-07-22 Richard Guenther <rguenther@suse.de>
523 PR tree-optimization/45017
524 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
525 TYPE_PRECISION of integral types in addition to size.
527 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
529 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
530 when no C library is specified.
532 2010-07-22 Martin Jambor <mjambor@suse.cz>
534 * ipa-prop.h (struct ipa_node_params): Updated comment.
535 (struct ipa_edge_args): Likewise.
536 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
538 2010-07-22 Martin Jambor <mjambor@suse.cz>
540 * cgraphunit.c (verify_edge_count_and_frequency): New function.
541 (verify_cgraph_node): Verify frequencies of indirect edges.
542 * tree-inline.c (tree_function_versioning): Update frequencies of
545 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
548 * config/arm/arm.md: Split arm_rev into *arm_rev
549 and *thumb1_rev. Set *arm_rev to be predicable.
551 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
553 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
554 (LINK_COMMAND_SPEC_A): New.
556 (DSYMUTIL_SPEC): New.
557 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
558 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
560 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
562 * calls.c (load_register_parameters): Move check for zero
563 sized items so that only the call to
564 mem_overlaps_already_clobbered_arg_p () is protected.
566 2010-07-22 Jan Hubicka <jh@suse.cz>
568 * ipa-pure-const.c (varying_state): Break out from ...
569 (get_function_state): ... here; always return varying_state
570 when state would be NULL otherwise.
571 (remove_node_data): Do not free varying state.
573 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
577 * postreload.c: Include "target.h".
578 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
580 (fixup_debug_insns): Don't copy the rtx.
581 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't
582 have uses. Don't copy when replacing. Call fixup_debug_insns
583 in the case where we merged one add with another.
584 (reload_combine_recognize_pattern): Fail if there aren't any
585 uses. Try harder to determine whether we're picking a valid
586 index register. Don't set store_ruid for an insn we're going
587 to scan in the next iteration.
588 (reload_combine): Remove unused code.
589 (reload_combine_note_use): When updating use information for
590 an old insn, ignore a use that occurs after store_ruid.
591 * Makefile.in (postreload.o): Update dependencies.
593 * function.c (record_hard_reg_sets): Restrict the previous change
594 to cases where the incoming nominal mode is the same as the
595 incoming promoted mode and everything happens in MODE_INT.
597 2010-07-21 Jakub Jelinek <jakub@redhat.com>
600 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
601 ASM_OPERANDS_OUTPUT_IDX.
602 (adjust_insn): For inline asm with multiple sets ensure first
603 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
606 2010-07-21 Richard Henderson <rth@redhat.com>
608 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
609 comparison for avoiding xmm register saves. Emit the xmm register
611 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
612 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
613 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
614 Remove patterns and the associated splitters.
616 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
618 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
619 and imagine parts of a complex, so that they can have the same
620 base and fall into the same group.
622 2010-07-21 Richard Guenther <rguenther@suse.de>
625 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
626 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
627 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
629 2010-07-21 Martin Jambor <mjambor@suse.cz>
631 PR tree-optimization/44900
632 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
633 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
635 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
638 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
640 2010-07-21 Richard Guenther <rguenther@suse.de>
643 * tree-ssa.c (useless_type_conversion_p): Dispatch to
644 gimple_types_compatible_p only when in lto.
645 * gimple.c (gimple_types_compatible_p): Use canonical types
646 to speed up comparison.
648 2010-07-21 Richard Guenther <rguenther@suse.de>
650 * tree-flow.h (referenced_var): Move define ...
651 * tree-flow-inline.h (referenced_var): ... here as an inline
652 function. Assert here ...
653 * tree-dfa.c (referenced_var_lookup): ... instead of here.
654 * tree-ssa.c (maybe_optimize_var): Check if the variable
655 is in referenced vars.
656 (execute_update_addresses_taken): Remove old broken check.
657 * gimple-pretty-print.c (pp_points_to_solution): Use
658 referenced_var_lookup.
659 * tree-into-ssa.c (dump_decl_set): Likewise.
661 2010-07-21 Jakub Jelinek <jakub@redhat.com>
664 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of
666 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
669 2010-07-20 Richard Henderson <rth@redhat.com>
671 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
673 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
675 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
676 computing the sum of the stack pointer and a large constant.
677 * config/arm/constraints.md (M): Remove superfluous parentheses.
678 (Pc): New constraint.
680 2010-07-20 Jakub Jelinek <jakub@redhat.com>
683 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
684 operand's type if exp is tcc_unary class tree.
686 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
688 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
689 Reverse sense of if_then_else condition.
691 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
693 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
694 * config/rs6000/rs6000.c (rs6000_override_options): Set
695 rs6000_block_move_inline_limit appropriately.
696 (expand_block_move): Use rs6000_block_move_inline_limit.
697 * doc/invoke.texi (mblock-move-inline-limit): Document.
699 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
701 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
702 FROM and TO. All callers changed. Don't look for tracked uses,
703 just scan the RTL for DEBUG_INSNs and substitute.
704 (reload_combine_recognize_pattern): Call fixup_debug_insns.
705 (reload_combine): Ignore DEBUG_INSNs.
707 2010-07-20 Jakub Jelinek <jakub@redhat.com>
709 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
713 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
714 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
715 instead of the result's type.
717 2010-07-20 Richard Guenther <rguenther@suse.de>
719 PR tree-optimization/44977
720 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
723 2010-07-20 Richard Guenther <rguenther@suse.de>
725 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
726 (lto_symtab_merge_decls_2): Likewise.
727 * gimple.h (gimple_types_compatible_p): Declare.
728 * gimple.c (gimple_queue_type_fixup): Remove.
729 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
730 (gimple_compatible_complete_and_incomplete_type_p): New function.
731 (gimple_types_compatible_p): Adjust.
732 (gimple_register_type): Remove type fixup code.
733 (print_gimple_types_stats): Adjust.
734 (free_gimple_type_tables): Likewise.
735 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
736 * tree-ssa.c (useless_type_conversion_p): Likewise.
738 2010-07-20 Richard Guenther <rguenther@suse.de>
742 * tree-ssa.c (maybe_optimize_var): New function split out from ...
743 (execute_update_addresses_taken): ... here.
744 (non_rewritable_mem_ref_base): Likewise.
745 (execute_update_addresses_taken): Do not iterate over all referenced
746 vars but just all local decls and parms.
747 Properly check call and asm arguments and rewrite call arguments.
749 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
751 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
753 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
755 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
757 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
759 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
761 * gengtype.c (start_root_entry): New function, split out from
762 write_root. Check whether V is null and raise an error if so.
763 (write_field_root): Check for V being null. Don't raise an error here;
764 set V to null instead.
765 (write_root): Update comment above function. Use start_root_entry.
767 2010-07-19 Xinliang David Li <davidxl@google.com>
770 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
772 (find_uninit_use): Add dump.
773 (is_use_properly_guarded): Ditto.
774 (warn_uninitialized_phi): Ditto.
775 (execute_late_warn_uninitialized): Ditto.
777 2010-07-19 Richard Guenther <rguenther@suse.de>
780 * expr.c (emit_block_move_hints): Move zero size check first.
781 Move asserts to more useful places.
782 * calls.c (load_register_parameters): Check for zero size.
784 2010-07-19 Richard Henderson <rth@redhat.com>
786 * tree-optimize.c (execute_all_early_local_passes): New. Change
787 cgraph_state here ...
788 (execute_early_local_optimizations): ... not here. Remove.
789 (pass_early_local_passes, pass_all_early_optimizations): Update.
791 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
793 * postreload.c (reload_combine_closest_single_use): Ignore the
794 number of uses for DEBUG_INSNs.
795 (fixup_debug_insns): New static function.
796 (reload_combine_recognize_const_pattern): Use it. Don't let the
797 main loop be affected by DEBUG_INSNs.
798 Really disallow moving adds past a jump insn.
799 (reload_combine_recognize_pattern): Don't update use_ruid here.
800 (reload_combine_note_use): Do it here.
801 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
803 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
805 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
807 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
809 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
811 * config/i386/darwin.h: Define darwin_emit_branch_islands.
812 (TARGET_MACHO_BRANCH_ISLANDS): New.
813 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
814 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
816 * config/i386/i386.c (output_pic_addr_const): Do not emit
817 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
818 (x86_output_mi_thunk): Adjust symbol creation.
819 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
820 Remove out of date comment.
821 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
822 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
823 (DARWIN_GENERATE_ISLANDS): Ditto.
824 (output_call): Do not emit branch islands unless
825 darwin_emit_branch_islands is set.
826 * config/darwin.c: Declare darwin_emit_branch_islands.
827 (machopic_indirect_data_reference): Do not emit unless
828 darwin_emit_branch_islands is set.
829 (darwin_override_options): Set darwin_emit_branch_islands
831 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
833 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
835 * doc/sourcebuild.texi (Effective-Target Keywords): Document
836 sse_runtime, sse2_runtime.
838 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
840 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
841 low half of a single-register SCmode return value before ORing
842 it with the high half.
843 * config/mips/mips16.S (MERGE_GPRf): Likewise.
845 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
848 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
851 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
854 * postreload.c (reload_cse_move2add): Return bool, true if anything.
855 changed. All callers changed.
856 (move2add_use_add2_insn): Likewise.
857 (move2add_use_add3_insn): Likewise.
858 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
860 (RELOAD_COMBINE_MAX_USES): Bump to 16.
861 (last_jump_ruid): New static variable.
862 (struct reg_use): New members CONTAINING_MEM and RUID.
863 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
864 (reload_combine_split_one_ruid, reload_combine_split_ruids,
865 reload_combine_purge_insn_uses, reload_combine_closest_single_use
866 reload_combine_purge_reg_uses_after_ruid,
867 reload_combine_recognize_const_pattern): New static functions.
868 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
869 is true for our reg and that we have available index regs.
870 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
871 callers changed. Use them to initialize fields in struct reg_use.
872 (reload_combine): Initialize last_jump_ruid. Be careful when to
873 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
874 Call reload_combine_recognize_const_pattern.
875 (reload_combine_note_store): Update REAL_STORE_RUID field.
877 2010-07-16 Jason Merrill <jason@redhat.com>
879 * Makefile.in (opts-common.o): Depend on options.h.
881 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
883 * tree.c (build_common_builtin_nodes): Use build_function_type_list
884 instead of build_function_type.
885 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
886 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
888 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
890 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
892 (rs6000_emit_int_cmove): Use function pointers for insn generation.
893 Don't force values into registers unnecessarily.
894 (output_isel): Assert that we're not given conditions we can't handle.
895 Delete corresponding code.
896 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
897 scc_comparison_operator constraint. Permit 0 for the consequent
898 operand. Permit any GPR for the alternative operand.
899 (isel_unsigned_<mode>): Likewise.
901 2010-07-16 Jakub Jelinek <jakub@redhat.com>
904 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
905 argument to const_tree.
906 * config/i386/i386.c (function_arg_advance): If padding needs to be
907 inserted before argument, increment cum->words by number of padding
909 (contains_aligned_value_p): Change argument to const_tree.
910 (ix86_function_arg_boundary): Change second argument to const_tree.
912 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
915 * function.c (record_hard_reg_sets): New static function.
916 (assign_parm_setup_reg): If an optab for extending exists and the
917 generated code clobbbers no hard regs, emit the insn directly and
918 create a REG_EQUIV note.
920 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
922 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
924 * c-typeck.c (push_init_level): Likewise.
925 (process_init_element): Likewise.
927 2010-07-15 Anatoly Sokolov <aesok@post.ru>
929 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
930 (integer_three_node): Add.
931 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
932 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
933 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
934 of call build_int_cst.
935 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
936 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
937 (find_interesting_uses_address): Ditto.
938 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
939 * tree-eh.c (lower_eh_constructs_2): Ditto.
940 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
941 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
942 * expmed.c (expand_divmod): Ditto.
943 * tree-mudflap.c (mx_register_decls): Ditto.
944 * varasm.c (array_size_for_constructor): Ditto.
945 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
946 * c-parser.c (c_parser_postfix_expression): Ditto.
948 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
950 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
951 New static variables.
952 (reload_combine_recognize_pattern): New static function, broken out
954 (reload_combine): Use it. Only initialize first_index_reg and
957 2010-07-15 Richard Henderson <rth@redhat.com>
959 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
962 2010-07-15 Jan Hubicka <jh@suse.cz>
964 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
965 comdats for broken gold.
966 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
968 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
970 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
972 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
974 * tree.h (DECL_CHAIN): Define.
975 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
976 * c-decl.c: Likewise.
977 * c-parser.c: Likewise.
978 * c-typeck.c: Likewise.
979 * cfgexpand.c: Likewise.
980 * cgraph.c: Likewise.
981 * cgraphunit.c: Likewise.
982 * combine.c: Likewise.
983 * config/alpha/alpha.c: Likewise.
984 * config/arm/arm.c: Likewise.
985 * config/frv/frv.c: Likewise.
986 * config/i386/i386.c: Likewise.
987 * config/i386/winnt-cxx.c: Likewise.
988 * config/ia64/ia64.c: Likewise.
989 * config/iq2000/iq2000.c: Likewise.
990 * config/mep/mep.c: Likewise.
991 * config/mips/mips.c: Likewise.
992 * config/pa/som.h: Likewise.
993 * config/rs6000/rs6000.c: Likewise.
994 * config/s390/s390.c: Likewise.
995 * config/sh/sh.c: Likewise.
996 * config/sh/symbian-cxx.c: Likewise.
997 * config/sparc/sparc.c: Likewise.
998 * config/spu/spu.c: Likewise.
999 * config/stormy16/stormy16.c: Likewise.
1000 * config/vxworks.c: Likewise.
1001 * config/xtensa/xtensa.c: Likewise.
1002 * coverage.c: Likewise.
1003 * dbxout.c: Likewise.
1004 * dwarf2out.c: Likewise.
1005 * emit-rtl.c: Likewise.
1007 * function.c: Likewise.
1008 * gimple-low.c: Likewise.
1009 * gimple-pretty-print.c: Likewise.
1010 * gimplify.c: Likewise.
1011 * integrate.c: Likewise.
1012 * ipa-inline.c: Likewise.
1013 * ipa-prop.c: Likewise.
1014 * ipa-split.c: Likewise.
1015 * ipa-struct-reorg.c: Likewise.
1016 * ipa-type-escape.c: Likewise.
1017 * langhooks.c: Likewise.
1018 * lto-cgraph.c: Likewise.
1019 * omp-low.c: Likewise.
1020 * stor-layout.c: Likewise.
1021 * tree-cfg.c: Likewise.
1022 * tree-complex.c: Likewise.
1023 * tree-dfa.c: Likewise.
1024 * tree-dump.c: Likewise.
1025 * tree-inline.c: Likewise.
1026 * tree-mudflap.c: Likewise.
1027 * tree-nested.c: Likewise.
1028 * tree-object-size.c: Likewise.
1029 * tree-pretty-print.c: Likewise.
1030 * tree-sra.c: Likewise.
1031 * tree-ssa-live.c: Likewise.
1032 * tree-ssa-loop-niter.c: Likewise.
1033 * tree-ssa-math-opts.c: Likewise.
1034 * tree-ssa-reassoc.c: Likewise.
1035 * tree-ssa-sccvn.c: Likewise.
1036 * tree-ssa-structalias.c: Likewise.
1037 * tree-tailcall.c: Likewise.
1038 * tree-vrp.c: Likewise.
1040 * var-tracking.c: Likewise.
1041 * varasm.c: Likewise.
1043 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1046 * config/spu/spu.c (spu_expand_builtin_1): Allow references
1047 (as well as pointers) as argument to mask_for_load builtins.
1049 2010-07-15 Richard Guenther <rguenther@suse.de>
1051 PR tree-optimization/44946
1052 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
1053 with accessing only padding properly.
1055 2010-07-15 Jan Hubicka <jh@suse.cz>
1057 * ipa.c (function_and_variable_visibility): Variables marked as used
1058 should not be localized.
1060 2010-07-15 Jan Hubicka <jh@suse.cz>
1062 * cgraph.c: Include lto-streamer.h
1063 (change_decl_assembler_name): Work when assembler name hash is at place.
1064 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
1065 be sure to rename it to avoid name clash.
1066 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
1067 Localize hidden symbols only when locally defined.
1069 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
1071 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
1073 2010-07-15 Magnus Granberg <zorry@gentoo.org>
1074 Kevin F. Quinn <kevquinn@gentoo.org>
1076 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
1077 * common.opt: Add -Wtrampolines.
1078 * doc/invoke.texi: Add -Wtrampolines.
1080 2010-07-15 Jie Zhang <jie@codesourcery.com>
1082 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
1085 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
1087 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
1088 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
1090 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1092 * config/spu/spu.c (reg_names): Remove prototype.
1093 (call_used_regs): Likewise.
1095 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
1097 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
1098 "unused" with attribute "used".
1099 (__JCR_END__): Likewise.
1100 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
1102 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
1104 2010-07-14 Richard Guenther <rguenther@suse.de>
1106 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
1107 (maybe_fixup_decls): Likewise.
1108 (input_gimple_stmt): Do not fixup anything.
1109 * lto-streamer-out.c (output_gimple_stmt): Make sure all
1110 non-automatic variable uses are wrapped inside a MEM_REF.
1112 2010-07-14 Richard Henderson <rth@redhat.com>
1114 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
1116 * varasm.c (assemble_variable): Remove early exit for functions;
1117 assert that we're given a variable.
1119 2010-07-14 Jie Zhang <jie@codesourcery.com>
1121 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
1122 cortex_a8_default when neon_type is not none.
1124 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
1126 * lower-subreg.c (subreg_context): New static bitmap.
1127 (decompose_multiword_subregs): Allocate and free it.
1128 (find_decomposable_subregs): Set a bit in it for a register that
1129 occurs in a subreg that changes mode but not size.
1130 (can_decompose_p): Test it instead of non_decomposable_context.
1132 2010-07-14 Richard Guenther <rguenther@suse.de>
1134 PR tree-optimization/44824
1135 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
1136 is_gimple_mem_ref_addr.
1137 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
1138 non-decl_address_invariant_p addresses.
1140 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
1142 * reload.c (find_reloads): Revert code to penalize small register
1143 classes that was brought in with the IRA merge.
1145 2010-07-14 Richard Guenther <rguenther@suse.de>
1147 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
1148 as base of ARRAY_REFs.
1150 2010-07-14 Richard Guenther <rguenther@suse.de>
1153 * tree-pretty-print.c (do_niy): Do not print a newline.
1155 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
1157 * ira-int.h (struct ira_object): New.
1158 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
1159 (struct ira_allocno): Remove members min, max,
1160 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
1161 conflict_allocnos_num and conflict_vec_p. Add new member object.
1162 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
1163 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
1164 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
1165 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
1166 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
1167 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
1168 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
1169 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
1170 an ira_object_t rather than ira_allocno_t. All uses changed.
1171 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
1172 contains a vector of ira_object_t; all uses changed.
1173 (ira_objects_num): Declare variable.
1174 (ira_create_allocno_object): Declare function.
1175 (ira_conflict_vector_profitable_p): Adjust prototype.
1176 (ira_allocate_conflict_vec): Renamed from
1177 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
1178 (ira_allocate_object_conflicts): Renamed from
1179 ira_allocate_allocno_conflicts; first arg now ira_object_t.
1180 (struct ira_object_iterator): New.
1181 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
1182 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
1183 to conflict_vec_p. All uses changed.
1184 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
1185 Changed to take into account that conflicts are now tracked for
1187 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
1188 Args changed to accept ira_object_t. All uses changed.
1189 (allocnos_conflict_p): New static function.
1190 (collected_conflict_objects): Renamed from collected_allocno_objects;
1191 now a vector of ira_object_t. All uses changed.
1192 (build_conflict_bit_table): Changed to take into account that
1193 conflicts are now tracked for objects.
1194 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
1195 (print_allocno_conflicts, ira_build_conflicts): Likewise.
1196 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
1197 setup_allocno_left_conflicts_size, allocno_reload_assign,
1198 fast_allocation): Likewise.
1199 * ira-lives.c (make_hard_regno_born, make_allocno_born)
1200 process_single_reg_class_operands, process_bb_node_lives): Likewise.
1201 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
1203 * ira-build.c (ira_objects_num): New variable.
1204 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
1205 contains a vector of ira_object_t; all uses changed.
1206 (ira_object_id_map_vec): Corresponding change.
1207 (object_pool): New static variable.
1208 (initiate_allocnos): Initialize it.
1209 (finish_allocnos): Free it.
1210 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
1212 (ira_create_allocno): Don't set members that were removed.
1213 (ira_set_allocno_cover_class): Don't change conflict hard regs.
1214 (merge_hard_reg_conflicts): Changed to take into account that
1215 conflicts are now tracked for objects.
1216 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
1217 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
1218 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
1219 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
1220 setup_min_max_conflict_allocno_ids, ): Likewise.
1221 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
1222 to ira_object_t; all callers changed.
1223 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
1224 to ira_object_t, all callers changed.
1225 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
1226 to ira_object_t, all callers changed.
1227 (conflict_check, curr_conflict_check_tick): Renamed from
1228 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
1230 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
1231 arg changed to ira_object_t, all callers changed.
1232 (create_cap_allocno): Call ira_create_allocno_object.
1233 (finish_allocno): Free the corresponding object.
1234 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
1235 callers changed. Adjusted for dealing with objects.
1236 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
1237 dealing with objects.
1238 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
1240 * ira-int.h (struct live_range): Rename allocno member to object
1241 and change type to ira_object_t.
1242 (struct ira_object): New member live_ranges.
1243 (struct ira_allocno): Remove member live_ranges.
1244 (ALLOCNO_LIVE_RANGES): Remove.
1245 (OBJECT_LIVE_RANGES): New macro.
1246 (ira_create_live_range, ira_copy_live_range_list,
1247 ira_merge_live_range_list, ira_live_ranges_intersect_p,
1248 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
1249 * ira-build.c (ira_create_object): Initialize live ranges here.
1250 (ira_create_allocno): Not here.
1251 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
1252 changed to ira_object_t, all callers changed.
1253 (copy_live_range): Rename from copy_allocno_live_range, all callers
1255 (ira_copy_live_range_list): Rename from
1256 ira_copy_allocno_live_range_list, all callers changed.
1257 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
1258 all callers changed.
1259 (ira_live_ranges_intersect_p): Rename from
1260 ira_allocno_live_ranges_intersect_p, all callers changed.
1261 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
1263 (ira_finish_live_range_list): Rename from
1264 ira_finish_allocno_live_range_list, all callers changed.
1265 (change_object_in_range_list): Rename from change_allocno_in_range_list,
1266 last arg changed to ira_object_t, all callers changed.
1267 (finish_allocno): Changed to expect live ranges in the allocno's object.
1268 (move_allocno_live_ranges, copy_allocno_live_ranges,
1269 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
1270 ira_flattening, ira_build): Likewise.
1271 * ira-color.c (allocnos_have_intersected_live_ranges_p,
1272 slot_coalesced_allocno_live_ranges_intersect,
1273 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
1274 * ira-conflicts.c (build_conflict_bit_table): Likewise.
1275 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
1276 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
1277 make_allocno_dead, create_start_finish_chains,
1278 remove_some_program_points_and_update_live_ranges,
1279 ira_debug_live_range_list): Likewise.
1281 * ira-int.h (ira_object_conflict_iterator): Rename from
1282 ira_allocno_conflict_iterator.
1283 (ira_object_conflict_iter_init): Rename from
1284 ira_allocno_conflict_iter_init, second arg changed to
1285 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
1286 FOR_EACH_ALLOCNO_CONFLICT.
1287 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
1288 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
1289 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
1290 * ira-conflicts.c (print_allocno_conflicts): Likewise.
1292 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
1295 * tree-dump.c (dump_options): Add enumerate_locals entry.
1296 Add TDF_NOID exclusion to all entry.
1297 * tree-dump.h (dump_enumerated_decls): Declare.
1298 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
1299 Don't display type uid.
1300 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
1301 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
1302 * tree-ssa-live.c: Include gimple.h.
1303 (numbered_tree_d): New struct.
1304 (numbered_tree): New typedef.
1305 (DEF_VEC_O (numbered_tree): New.
1306 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
1307 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
1308 (dump_enumerated_decls): Likewise.
1309 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
1310 debug info and flag_dump_final_insns, call dump_enumerated_decls.
1311 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
1312 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
1314 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
1316 * expmed.h (MAX_BITS_PER_WORD): Move to...
1317 * defaults.h (MAX_BITS_PER_WORD): ...here.
1319 2010-07-13 DJ Delorie <dj@redhat.com>
1321 * config/h8300/h8300.c (h8300_init_once): Default to
1322 -fstrict_volatile_bitfields.
1324 * config/sh/sh.c (sh_override_options): Default to
1325 -fstrict_volatile_bitfields.
1327 * config/rx/rx.c (rx_option_override): New.
1329 * config/m32c/m32c.c (m32c_override_options): Default to
1330 -fstrict_volatile_bitfields.
1332 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
1334 * tree.h (build_function_call_expr): Delete.
1335 (build_call_expr_loc_array): New function.
1336 (build_call_expr_loc_vec): New function.
1337 * tree-flow.h (struct omp_region): Change type of ws_args field
1339 * builtins.c (build_function_call_expr): Delete.
1340 (build_call_expr_loc_array): New function.
1341 (build_call_expr_loc): Call it. Use XALLOCAVEC.
1342 (build_call_expr): Likewise.
1343 (build_call_expr_loc_vec): New function.
1344 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
1345 build_function_call_expr.
1346 * expr.c (emutls_var_address): Likewise.
1347 * varasm.c (emutls_common_1): Likewise.
1348 * omp-low.c (expand_omp_atomic_mutex): Likewise.
1349 (expand_omp_taskreg): Adjust for new type of region->ws_args.
1350 (get_ws_args_for): Return a VEC instead of a tree.
1351 (expand_parallel_call): Call build_call_expr_loc_vec instead of
1352 build_function_call_expr.
1353 * stor-layout.c (self_referential_size): Likewise.
1355 2010-07-13 Jakub Jelinek <jakub@redhat.com>
1358 * recog.c (constrain_operands): Allow side-effects in memory
1359 operands if either < or > constraint is used, rather than if
1360 both < and > is used.
1362 2010-07-13 Richard Guenther <rguenther@suse.de>
1365 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
1366 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
1369 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
1372 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
1374 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
1375 * config/sh/sh.md (symGOT_load): Likewise.
1376 (symDTPOFF2reg): Likewise.
1377 (symTPOFF2reg): Likewise.
1379 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1381 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
1382 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
1384 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1386 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
1388 Find ucontext_t * on Solaris 11.
1389 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
1390 Handle new Solaris 11 __sighndlr patterns.
1392 2010-07-13 Jakub Jelinek <jakub@redhat.com>
1395 * vec.h (VEC_block_remove): Fix comment.
1396 * tree-ssa-live.c (remove_unused_locals): Don't use
1397 VEC_unordered_remove on local_decls, instead replace a single
1398 vector element in each iteration if at least one element had
1399 to be removed and VEC_truncate at the end.
1400 * omp-low.c (expand_omp_taskreg): Likewise.
1402 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1404 * c-decl.c (finish_function): Fix typo in comment.
1406 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
1409 * postreload.c (move2add_use_add3_insn): Silence gcc warning
1412 2010-07-12 Jakub Jelinek <jakub@redhat.com>
1414 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
1415 (simplify_stmt_using_ranges): Use it.
1417 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1419 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
1420 member. Do not mark as GTY(()).
1421 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
1422 (spu_builtin_decls): New static variable.
1423 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
1424 (spu_init_builtins): Likewise.
1425 (spu_builtin_mul_widen_even): Likewise.
1426 (spu_builtin_mul_widen_odd): Likewise.
1427 (spu_builtin_mask_for_load): Likewise.
1428 (spu_builtin_vec_perm): Likewise.
1429 * config/spu/spu-c.c: Include "target.h".
1430 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
1431 of using spu_builtins[].fndecl.
1433 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1435 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
1436 imply -minterlink-mips16.
1438 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1440 * config/mips/mips.h (mips16_globals): Declare.
1441 (SWITCHABLE_TARGET): Define.
1442 * config/mips/mips.c: Include target-globals.h.
1443 (mips16_globals): New variable.
1444 (mips_set_mips16_mode): Use save_target_globals and
1445 restore_target_globals instead of target_reinit.
1447 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1449 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
1450 to say that the function can be called more than once.
1451 * target-globals.c (save_target_globals): Call init_reg_sets.
1453 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1455 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
1456 * bb-reorder.h: New file.
1457 * bb-reorder.c (default_target_bb_reorder): New variable.
1458 (this_target_bb_reorder): New conditional variable.
1459 (uncond_jump_length): Redefine as a macro.
1460 * target-globals.h (this_target_bb_reorder): Declare.
1461 (target_globals): Add a bb_reorder field.
1462 (restore_target_globals): Copy the bb_reorder field to
1463 this_target_bb-reorder.
1464 * target-globals.c: Include bb-reorder.h.
1465 (default_target_globals): Initialize the bb_reorder field.
1466 (save_target_globals): Likewise.
1468 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1470 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
1472 * gcse.c: Include gcse.h.
1473 (default_target_gcse): New variable.
1474 (this_target_gcse): New conditional variable.
1475 (can_copy): Redefine as a macro.
1476 (can_copy_init_p): New macro.
1477 (can_copy_p): Remove can_copy_init_p.
1478 * target-globals.h (this_target_gcse): Declare.
1479 (target_globals): Add a gcse field.
1480 (restore_target_globals): Copy the gcse field to this_target_gcse.
1481 * target-globals.c: Include gcse.h.
1482 (default_target_globals): Initialize the gcse field.
1483 (save_target_globals): Likewise.
1485 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1487 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
1488 and x_ira_prohibited_mode_move_regs_initialized_p.
1489 (ira_prohibited_mode_move_regs): Redefine as a macro.
1490 * ira.c (ira_prohibited_mode_move_regs): Delete.
1491 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
1493 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1495 * reload.h (target_reload): Add x_cached_reg_save_code and
1496 x_cached_reg_restore_code.
1497 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
1500 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1502 * Makefile.in (target-globals.o): Depend on builtins.h.
1503 * builtins.h: New file.
1504 * builtins.c: Include builtins.h.
1505 (default_target_builtins): New variable.
1506 (this_target_builtins): New conditional variable.
1507 (apply_args_mode, apply_result_mode): Redefine as macros.
1508 * target-globals.h (this_target_builtins): Declare.
1509 (target_globals): Add a builtins field.
1510 (restore_target_globals): Copy the builtins field to
1511 this_target_builtins.
1512 * target-globals.c: Include builtins.h.
1513 (default_target_globals): Initialize the builtins field.
1514 (save_target_globals): Likewise.
1516 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1518 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
1519 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
1521 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
1522 (alg_hash, alg_hash_used_p): New macros.
1523 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
1524 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
1525 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
1527 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1529 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
1530 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
1531 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
1532 (this_op_costs, costs_classes): Redefine as macros.
1533 (record_reg_classes): Don't take op_costs as a parameter.
1534 (record_operand_costs): Likewise. Update calls to record_reg_classes.
1535 (scan_one_insn): Update call to record_operand_costs.
1537 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1539 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
1540 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
1541 (target_ira_int): New structure.
1542 (default_target_ira_int): Declare.
1543 (this_target_ira_int): Declare as a variable or define as a macro.
1544 (ira_reg_mode_hard_regset, ira_register_move_cost)
1545 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
1546 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
1547 (prohibited_class_mode_regs, ira_important_classes_num)
1548 (ira_important_classes, ira_reg_class_intersect)
1549 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
1550 (ira_reg_class_union): Redefine as macros.
1551 * ira.h (target_ira): New structure.
1552 (default_target_ira): Declare.
1553 (this_target_ira): Declare as a variable or define as a macro.
1554 (ira_available_class_regs, ira_hard_regno_cover_class)
1555 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
1556 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
1557 (ira_class_hard_regs_num): Redefine as macros.
1558 * ira.c (default_target_ira, default_target_ira_int): New variables.
1559 (this_target_ira, this_target_ira_int): New conditional variables.
1560 (ira_reg_mode_hard_regset, ira_memory_move_cost)
1561 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
1562 (ira_class_subset_p): Delete.
1563 (no_unit_alloc_regs): Redefine as a macro.
1564 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
1565 (ira_class_hard_regs_num, ira_class_hard_reg_index)
1566 (ira_available_class_regs): Delete.
1567 (alloc_reg_class_subclasses): Redefine as a macro.
1568 (ira_reg_class_cover_size, ira_reg_class_cover)
1569 (ira_important_classes_num, ira_important_classes)
1570 (ira_important_class_nums, ira_class_translate): Delete.
1571 (cover_class_order): Document the variable's lifetime.
1572 (reorder_important_classes): Don't set ira_important_class_nums.
1573 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
1574 (ira_reg_class_super_classes, ira_reg_class_union)
1575 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
1577 (setup_reg_class_nregs): Don't set ira_max_regs.
1578 (prohibited_class_mode_regs): Delete.
1579 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
1580 (target_globals): Add ira and ira_int fields.
1581 (restore_target_globals): Copy the ira field to this_target_ira
1582 and the ira_int field to this_target_ira_int.
1583 * target-globals.c: Include ira-int.h.
1584 (default_target_globals): Initialize the ira and ira_int fields.
1585 (save_target_globals): Likewise.
1587 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1589 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
1590 * cfgloop.h (target_cfgloop): New structure.
1591 (default_target_cfgloop): Declare.
1592 (this_target_cfgloop): Declare as a variable or define as a macro.
1593 (target_avail_regs, target_clobbered_regs, target_res_regs)
1594 (target_reg_cost, target_spill_cost): Redefine as macros.
1595 * cfgloopanal.c (default_target_cfgloop): New variable.
1596 (this_target_cfgloop): New conditional variable.
1597 (target_avail_regs, target_clobbered_regs, target_res_regs)
1598 (target_reg_cost, target_spill_cost): Delete.
1599 * target-globals.h (this_target_cfgloop): Declare.
1600 (target_globals): Add a cfgloop field.
1601 (restore_target_globals): Copy the cfgloop field to
1602 this_target_cfgloop.
1603 * target-globals.c: Include cfgloop.h.
1604 (default_target_globals): Initialize the cfgloop field.
1605 (save_target_globals): Likewise.
1607 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1609 * regs.h (target_regs): Add x_direct_load, x_direct_store and
1610 x_float_extend_from_mem.
1611 (direct_load, direct_store, float_extend_from_mem): New macros.
1612 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
1614 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1616 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
1617 (target-globals.o): Depend on $(LIBFUNCS_H).
1618 * libfuncs.h: Include hashtab.h.
1619 (libfunc_entry): Moved from optabs.c.
1620 (target_libfuncs): New structure.
1621 (default_target_libfuncs): Declare.
1622 (this_target_libfuncs): Declare as a variable or define as a macro.
1623 (libfunc_table): Redefine as a macro.
1624 * optabs.c (default_target_libfuncs): New variable.
1625 (this_target_libfuncs): New conditional variable.
1626 (libfunc_table): Delete.
1627 (libfunc_entry): Moved to optabs.h.
1628 (libfunc_hash): Redefine as a macro.
1629 (hash_libfunc, eq_libfunc): Fix comments.
1630 (init_optabs): Use libfunc_hash to detect cases where the function
1631 has already been called. Clear the hash table instead of
1633 * target-globals.h (this_target_libfuncs): Declare.
1634 (target_globals): Add a libfuncs field.
1635 (restore_target_globals): Copy the libfuncs field to
1636 this_target_libfuncs.
1637 * target-globals.c: Include libfuncs.h.
1638 (default_target_globals): Initialize the libfuncs field.
1639 (save_target_globals): Likewise.
1641 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1643 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
1644 in all dependency lists.
1646 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1648 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
1649 * optabs.h (target_optabs): New structure.
1650 (default_target_optabs): Declare.
1651 (this_target_optabs): Declare as a variable or define as a macro.
1652 (optab_table, convert_optab_table, direct_optab_table): Redefine
1654 * optabs.c (default_target_optabs): New variable.
1655 (this_target_optabs): New conditional variable.
1656 (optab_table, convert_optab_table, direct_optab_table): Delete.
1657 * target-globals.h (this_target_optabs): Declare.
1658 (target_globals): Add a optabs field.
1659 (restore_target_globals): Copy the optabs field to
1661 * target-globals.c: Include expr.h and optabs.h.
1662 (default_target_globals): Initialize the optabs field.
1663 (save_target_globals): Likewise.
1665 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1667 * flags.h (target_flagstate): Add x_flag_excess_precision.
1668 (flag_excess_precision): Redefine as a macro.
1669 * toplev.c (flag_excess_precision): Delete.
1671 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1673 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
1674 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
1675 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
1676 (no_caller_save_reg_set): Redefine as a macro.
1677 * reload.h (target_reload): Add x_caller_save_initialized_p and
1679 (caller_save_initialized_p): Redefine as a macro.
1680 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
1681 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
1682 (regno_save_mode): Redefine as a macro.
1684 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1686 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
1687 * expmed.h: New file.
1688 * expmed.c (default_target_costs): New variable.
1689 (this_target_costs): New conditional variable.
1690 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
1691 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
1692 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
1693 * target-globals.h (this_target_expmed): Declare.
1694 (target_globals): Add a expmed field.
1695 (restore_target_globals): Copy the expmed field to
1697 * target-globals.c: Include expmed.h.
1698 (default_target_globals): Initialize the expmed field.
1699 (save_target_globals): Likewise.
1701 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1703 * Makefile.in (target-globals.o): Depend on reload.h.
1704 * reload.h (target_reload): New structure.
1705 (default_target_reload): Declare.
1706 (this_target_reload): Declare as a variable or define as a macro.
1707 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
1708 * reload1.c (default_target_reload): New variable
1709 (this_target_reload): New conditional variable.
1710 (indirect_symref_ok, double_reg_address_ok): Delete.
1711 (spill_indirect_levels): Redefine as a macro.
1712 * target-globals.h (this_target_reload): Declare.
1713 (target_globals): Add a reload field.
1714 (restore_target_globals): Copy the reload field to
1716 * target-globals.c: Include hard-reg-set.h.
1717 (default_target_globals): Initialize the reload field.
1718 (save_target_globals): Likewise.
1720 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1722 * rtl.h (target_rtl): Add x_static_reg_base_value.
1723 * alias.c (static_reg_base_value): Redefine as a macro.
1725 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1727 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
1728 (GTFILES): Remove reginfo.c.
1729 * rtl.h (target_rtl): Add x_top_of_stack.
1730 (top_of_stack): New macro.
1731 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
1732 (top_of_stack): Delete.
1734 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1736 * regs.h (target_regs): Add x_hard_regs_of_mode,
1737 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
1738 x_may_move_out_cost and x_last_mode_for_init_move_cost.
1739 (have_regs_of_mode, contains_reg_of_mode, move_cost)
1740 (may_move_in_cost, may_move_out_cost): Redefine as macros.
1741 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
1742 (may_move_in_cost, may_move_out_cost): Delete.
1743 (last_mode_for_init_move_cost): Redefine as a macro.
1745 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1747 * hard-reg-set.h (target_hard_regs): New structure.
1748 (default_target_hard_regs): Declare.
1749 (this_target_hard_regs): Declare as a variable or define as a macro.
1750 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
1751 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
1752 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
1753 (reg_class_size, reg_class_subclasses, reg_class_subunion)
1754 (reg_class_superunion, reg_names): Redefine as macros.
1755 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
1756 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
1757 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
1758 (reg_class_contents, reg_class_size, reg_class_subclasses)
1759 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
1760 (default_target_hard_regs): New variable
1761 (this_target_hard_regs, initial_call_really_used_regs)
1762 (initial_reg_alloc_order): New conditional variables.
1763 (initial_reg_names): New variable.
1764 (init_reg_sets): Assert that initial_call_really_used_regs,
1765 initial_reg_alloc_order and initial_reg_names
1766 are all the same size as their variable counterparts. Use them to
1767 initialize those counterparts.
1768 * target-globals.h (this_target_hard_regs): Declare.
1769 (target_globals): Add a hard_regs field.
1770 (restore_target_globals): Copy the hard_regs field to
1771 this_target_hard_regs.
1772 * target-globals.c: Include hard-reg-set.h.
1773 (default_target_globals): Initialize the hard_regs field.
1774 (save_target_globals): Likewise.
1776 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1778 * Makefile.in (target-globals.o): Depend on $(RTL_H).
1779 * rtl.h (target_rtl): New structure.
1780 (default_target_rtl): Declare.
1781 (this_target_rtl): Declare as a variable or define as a macro.
1782 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
1784 * emit-rtl.c (default_target_rtl): New variable.
1785 (this_target_rtl): New conditional variable.
1786 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
1787 (return_address_pointer_rtx): Delete.
1788 (initial_regno_reg_rtx): New macro.
1789 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
1790 (init_emit_regs): Likewise.
1791 * target-globals.h (this_target_rtl): Declare.
1792 (target_globals): Add a rtl field.
1793 (restore_target_globals): Copy the rtl field to this_target_rtl.
1794 * target-globals.c: Include rtl.h.
1795 (default_target_globals): Initialize the rtl field.
1796 (save_target_globals): Likewise.
1798 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1800 * Makefile.in (target-globals.o): Depend on $(REGS_H).
1801 * regs.h (target_reg_modes): New structure.
1802 (default_target_reg_modes): Declare.
1803 (this_target_reg_modes): Declare as a variable or define as a macro.
1804 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
1805 * reginfo.c (default_target_reg_modes): New variable.
1806 (this_target_reg_modes): New conditional variable.
1807 (hard_regno_nregs, reg_raw_mode): Delete.
1808 * target-globals.h (this_target_regs): Declare.
1809 (target_globals): Add a regs field.
1810 (restore_target_globals): Copy the regs field to this_target_regs.
1811 * target-globals.c: Include regs.h.
1812 (default_target_globals): Initialize the regs field.
1813 (save_target_globals): Likewise.
1815 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1817 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
1818 * doc/tm.texi: Regenerate.
1819 * Makefile.in (OBJS-common): Add target-globals.o.
1820 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
1821 and target-globals.h.
1822 (target-globals.o): New rule.
1823 (GTFILES): Include $(srcdir)/target-globals.h.
1824 * defaults.h (SWITCHABLE_TARGET): Define.
1825 * gengtype.c (open_base_files): Add target-globals.h to the
1827 * target-globals.h: New file.
1828 * target-globals.c: Likewise.
1830 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
1831 * flags.h (target_flag_state): New structure.
1832 (default_target_flag_state): Declare.
1833 (this_target_flag_state): Declare as a variable or define as a macro.
1834 (align_loops_log): Redefine as a macro.
1835 (align_loops_max_skip, align_jumps_log): Likewise.
1836 (align_jumps_max_skip, align_labels_log): Likewise.
1837 (align_labels_max_skip, align_functions_log): Likewise.
1838 * toplev.c (default_target_flag_state): New variable.
1839 (this_target_flag_state): New conditional variable.
1840 (align_loops_log): Delete.
1841 (align_loops_max_skip, align_jumps_log): Likewise.
1842 (align_jumps_max_skip, align_labels_log): Likewise.
1843 (align_labels_max_skip, align_functions_log): Likewise.
1844 * target-globals.h (this_target_flag_state): Declare.
1845 (target_globals): Add a flag_state field.
1846 (restore_target_globals): Copy the flag_state field to
1847 this_target_flag_state.
1848 * target-globals.c: Include flags.h.
1849 (default_target_globals): Initialize the flag_state field.
1850 (save_target_globals): Likewise.
1852 2010-07-12 Jie Zhang <jie@codesourcery.com>
1854 * postreload.c (reg_symbol_ref[]): New.
1855 (move2add_use_add2_insn): New.
1856 (move2add_use_add3_insn): New.
1857 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
1858 (move2add_note_store): Likewise.
1860 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
1862 PR rtl-optimization/44752
1863 * genautomata.c (main): Don't emit an empty file even if there
1866 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1868 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
1869 ix86_solaris_return_in_memory.
1870 * config/i386-protos.h: Reflect this.
1871 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
1872 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
1874 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
1876 2010-07-12 Jie Zhang <jie@codesourcery.com>
1878 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
1879 align the stack when it's going to be saved.
1881 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1884 * config/host-solaris.c (mmap_fixed): New function.
1885 (sol_gt_pch_get_address): Use it.
1886 (sol_gt_pch_use_address): Likewise.
1888 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1890 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
1891 pentiumpro on Solaris 8 and 9/x86.
1892 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
1893 Document SSE/SSE2 support.
1894 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
1896 2010-07-12 Andi Kleen <ak@linux.intel.com>
1898 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
1899 instead of gcc_assert to print better error message for multiple
1902 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
1904 * config/i386/i386.c (ix86_asm_output_function_label): Change format
1905 string placeholder from 0x%x to %#x.
1906 (ix86_code_end): Use putc to output '\n'.
1907 (ix86_print_operand) <case ';'>: Use putc to output ';'.
1909 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
1911 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
1912 in directive -export.
1914 2010-07-10 Anatoly Sokolov <aesok@post.ru>
1916 * reginfo.h (reg_classes_intersect_p): Change arguments type to
1918 * rtl.h (reg_classes_intersect_p): Adjust prototype.
1920 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
1922 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
1923 rs6000_memory_move_cost): Remove
1924 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
1925 TARGET_MEMORY_MOVE_COST): Define.
1926 (rs6000_register_move_cost): Make static. Change arguments type from
1927 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
1928 (rs6000_memory_move_cost): Make static. Change arguments type from
1929 'enum reg_class' to reg_class_t.
1931 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
1934 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
1935 lookup code into....
1936 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
1938 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
1939 * cfgloopanal.c (target_clobbered_regs): Define.
1940 (init_set_costs): Initialize target_clobbered_regs.
1941 (estimate_reg_pressure_cost): Add call_p argument. When true,
1942 adjust the number of available registers to exclude the
1943 call-clobbered registers.
1944 * cfgloop.h (target_clobbered_regs): Declare.
1945 (estimate_reg_pressure_cost): Adjust declaration.
1946 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
1947 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
1948 (determine_set_costs): Dump target_clobbered_regs.
1949 (loop_body_includes_call): New function.
1950 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
1951 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
1952 call_p flag through.
1953 (best_gain_for_invariant): Likewise.
1954 (find_invariants_to_move): Likewise.
1955 (move_single_loop_invariants): Likewise, using already-computed
1958 2010-07-10 Richard Guenther <rguenther@suse.de>
1959 Joern Rennecke <joern.rennecke@embecosm.com>
1962 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
1963 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
1964 unless they have DECL_IGNORED_P set.
1966 2010-07-10 Richard Guenther <rguenther@suse.de>
1969 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
1971 (gimple_types_compatible_p): Similar to pointed-to
1972 types allow and merge a mix of complete and incomplete aggregate.
1973 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
1974 (iterative_hash_gimple_type): Adjust for that.
1976 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
1978 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
1980 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
1983 * config/darwin.c (output_objc_section_asm_op): Save and restore
1984 section when outputting ObjC section list.
1986 2010-07-09 Jan Hubicka <jh@suse.cz>
1988 * lto-streamer-out.c (produce_symtab): Do not write alias
1989 cgraph/varpool nodes.
1991 2010-07-09 Jan Hubicka <jh@suse.cz>
1993 * tree-inline.c (declare_return_variable): Fix ICE while
1994 inlining DECL_BY_VALUE function not in SSA form
1996 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
1998 PR tree-optimization/44576
1999 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
2000 New. Pull out from is_loop_prefetching_profitable to implement
2001 the trip count to ahead ratio heuristic.
2002 (mem_ref_count_reasonable_p): New. Pull out from
2003 is_loop_prefetching_profitable to implement the instruction to
2004 memory reference ratio heuristic. Also consider not reasonable if
2005 the memory reference count is above a threshold (to avoid
2006 explosive compilation time.
2007 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
2008 is_loop_prefetching_profitable to implement the instruction to
2009 prefetch ratio heuristic.
2010 (is_loop_prefetching_profitable): Removed.
2011 (loop_prefetch_arrays): Distribute the cost analysis across the
2012 function to allow early exit of the prefetch analysis.
2013 is_loop_prefetching_profitable is splitted into three functions,
2014 with each one called as early as possible.
2015 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
2016 number of memory references in a loop is considered too many.
2018 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
2020 * reload.c (find_reloads): Don't clear badop if we have a winreg
2021 alternative, but not win, and the class only has fixed regs.
2022 * hard-reg-set.h (class_only_fixed_regs): Declare.
2023 * reginfo.c (class_only_fixed_regs): New array.
2024 (init_reg_sets_1): Initialize it.
2025 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
2026 discourage alternatives using the stack pointer.
2028 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
2030 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
2032 * config/arm/arm.md (cbranchqi4): Fix array size.
2033 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
2036 2010-07-09 Richard Guenther <rguenther@suse.de>
2038 * gimple.c (struct type_fixup_s): New struct and VEC type.
2039 (gimple_register_type_fixups): New static global.
2040 (gimple_queue_type_fixup): New function.
2041 (gimple_types_compatible_p): Queue type fixups instead of
2043 (gimple_register_type): Apply queued fixups for the
2044 canonical type. Empty the type fixup queue.
2046 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
2048 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
2049 * configure: Regenerate.
2052 2010-07-09 Jakub Jelinek <jakub@redhat.com>
2053 Denys Vlasenko <dvlasenk@redhat.com>
2054 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2056 PR tree-optimization/28632
2057 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
2058 (extract_range_from_binary_expr): Further optimize
2059 BIT_AND_EXPR and BIT_IOR_EXPR.
2061 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
2063 * tree-if-conv.c (fold_or_predicates): New.
2064 (add_to_predicate_list): Call it.
2066 2010-07-09 Richard Guenther <rguenther@suse.de>
2069 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
2070 if base is a pointer.
2071 * tree-cfg.c (verify_expr): Update MEM_REF checking.
2073 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
2076 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
2077 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
2078 builtin mask for load/store builtins.
2080 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
2082 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
2084 * configure: Regenerate.
2085 * config/i386/i386.c (ix86_print_operand) <case ';'>:
2086 Remove TARGET_MACHO.
2088 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
2090 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
2092 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
2094 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
2096 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
2098 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
2100 * config/picochip/picochip.md (commsTestPort): Emit more
2101 efficient sequence for tstport instruction.
2103 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
2105 * config/i386/i386.c (ix86_veclib_handler): Make static.
2107 2010-07-09 Richard Guenther <rguenther@suse.de>
2109 PR tree-optimization/44852
2110 * tree-ssa-alias.c: Include toplev.h for exact_log2.
2111 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
2113 (indirect_refs_may_alias_p): Likewise.
2114 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
2116 2010-07-09 Richard Guenther <rguenther@suse.de>
2118 PR tree-optimization/44882
2119 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
2121 (vectorizable_load): Likewise.
2123 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
2126 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
2127 All callers changed.
2128 Handle the case when we're called for the epilogue.
2129 (thumb_unexpanded_epilogue): Use it.
2130 (thumb1_expand_epilogue): Likewise.
2132 2010-07-09 Jakub Jelinek <jakub@redhat.com>
2134 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
2135 both ranges are range_int_cst_p with non-negative minimum,
2136 try harder to derive smaller range.
2138 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2140 * genrecog.c: Include diagnostic-core.h before toplev.h.
2141 * genoutput.c: Likewise.
2142 * genextract.c: Likewise.
2143 * genautomata.c: Likewise.
2144 * genemit.c: Likewise.
2145 * genpeep.c: Likewise.
2146 * genattrtab.c: Likewise.
2147 * genconditions.c: Likewise.
2148 * genpreds.c: Likewise.
2150 2010-07-08 Andi Kleen <ak@linux.intel.com>
2152 * lto-section-in.c (lto_section_name): Add missing comma.
2154 2010-07-08 Anatoly Sokolov <aesok@post.ru>
2156 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
2157 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
2158 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
2159 (ia64_override_options): Rename to...
2160 (ia64_option_override): ... this one. Make static.
2162 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
2165 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
2166 pointed-to type of the offset in a MEM_REF to compute the alignment.
2168 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
2170 * final.c (final_scan_insn): Replace
2171 TARGET_UNWIND_INFO macro check by unwind_emit
2173 * targhooks.c (default_unwind_emit): Removed.
2174 * targhooks.h (default_unwind_emit): Likewise.
2175 * target.def (unwind_emit): Set default value to NULL.
2177 * config/i386/i386-protos.h (ix86_asm_output_function_label):
2179 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
2180 for NULL fntype argument and allow 64-bit targets.
2181 (ix86_asm_output_function_label): New function.
2182 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
2183 (ix86_handle_fndecl_attribute): Likewise.
2184 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
2185 * doc/doc/tm.texi: Regenerated.
2186 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
2187 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
2188 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
2189 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
2190 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
2191 * config/elfos.h: Likewise.
2192 * config/i386/cygming.h: Likewise.
2193 * config/netbsd-aout.h: Likewise.
2194 * config/openbsd.h: Likewise.
2195 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
2196 by ix86_asm_output_function_label function call.
2197 * varasm.c (assemble_start_function): Use
2198 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
2200 2010-07-08 Jan Hubicka <jh@suse.cz>
2202 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
2204 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
2206 * ipa-cp.c (ipcp_estimate_growth): Use it.
2207 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
2210 2010-07-08 Jan Hubicka <jh@suse.cz>
2212 * tree-inline.c (declare_return_variable): Allocate annotation for new
2215 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
2217 PR tree-optimization/44710
2218 * tree-if-conv.c (parse_predicate): New.
2219 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
2220 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
2222 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
2224 * common.opt (ftree-loop-if-convert): New flag.
2225 * doc/invoke.texi (ftree-loop-if-convert): Documented.
2226 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
2227 when flag_tree_loop_if_convert is set.
2229 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
2231 * config/i386/i386.c: Use short syntax for function calls
2232 through function pointers.
2233 * config/i386/i386.md: Ditto.
2235 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
2237 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
2239 2010-07-08 Richard Guenther <rguenther@suse.de>
2241 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
2242 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
2244 2010-07-08 Jakub Jelinek <jakub@redhat.com>
2246 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
2247 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
2248 (loc_list_from_tree): Likewise.
2249 (output_loc_operands): Handle outputting DW_OP_const[48]u
2250 with loc->dtprel set.
2251 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
2253 2010-07-08 Jan Hubicka <jh@suse.cz>
2255 * ipa.c: Include pointer-set.h
2256 (cgraph_externally_visible_p): New attribute ALIASED;
2257 when in LTO, hidden symbols are local unless they are aliased.
2258 (function_and_variable_visibility): Compute aliased nodes;
2259 handle LTO and hidden symbol on functions and vars.
2260 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
2261 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
2263 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
2265 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2266 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2267 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2268 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2269 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2270 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
2271 (ix86_gen_probe_stack_range): Likewise.
2272 (override_options): Set them.
2273 (ix86_target_stack_probe): New function.
2274 (ix86_compute_frame_layout): Force use of push instructions to
2275 save registers if stack checking with probes is enabled.
2276 (get_scratch_register_on_entry): New function.
2277 (release_scratch_register_on_entry): Likewise.
2278 (ix86_adjust_stack_and_probe): Likewise.
2279 (output_adjust_stack_and_probe): Likewise.
2280 (ix86_emit_probe_stack_range): Likewise.
2281 (output_probe_stack_range): Likewise.
2282 (ix86_expand_prologue): Emit stack checking code if static built-in
2283 stack checking is enabled.
2284 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
2285 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
2286 (output_adjust_stack_and_probe): Likewise.
2287 (output_probe_stack_range): Likewise.
2288 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2289 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
2291 (allocate_stack_worker_64): Likewise.
2292 (allocate_stack): Likewise.
2293 (adjust_stack_and_probe): New insn.
2294 (probe_stack_range): Likewise.
2296 2010-07-08 Richard Guenther <rguenther@suse.de>
2298 PR tree-optimization/44831
2299 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
2300 a MEM_REF preserving TBAA info of the original dereference.
2301 Dereference the original pointer if the address is not invariant.
2302 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
2303 at least one invariant address that we are going to dereference.
2305 2010-07-08 Richard Guenther <rguenther@suse.de>
2307 PR tree-optimization/44861
2308 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
2309 information when building MEM_REFs.
2310 (vectorizable_load): Likewise.
2311 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
2313 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
2315 * config/sol2-c.c: Do not include diagnostic-core.h.
2317 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2320 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
2321 with respect to current_function_decl. Pass decl of the function.
2322 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
2323 * ipa-inline.c (compute_inline_parameters): Pass decl to
2324 estimated_stack_frame_size.
2326 2010-07-08 Richard Guenther <rguenther@suse.de>
2328 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
2330 (valueize_refs): Call it.
2332 2010-07-08 Richard Guenther <rguenther@suse.de>
2334 PR rtl-optimization/44838
2335 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
2336 SSA form do not use pointer equivalence.
2338 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
2340 * dwarf2out.c (AT_linkage_name): Delete.
2341 (add_linkage_attr): New function.
2342 (add_linkage_name): Call it to emit the linkage attribute.
2343 (dwarf2out_finish): Likewise.
2344 (move_linkage_attr): Explicitly accept both attribute variants.
2346 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2348 * toplev.h: Do not include diagnostic-core.h.
2349 Include diagnostic-core.h in every file that includes toplev.h.
2350 * c-tree.h: Do not include toplev.h.
2351 * pretty-print.h: Update comment.
2352 * Makefile.in: Update dependencies.
2353 * alias.c: Include diagnostic-core.h in every file that includes
2355 * attribs.c: Likewise.
2356 * auto-inc-dec.c: Likewise.
2357 * bb-reorder.c: Likewise.
2358 * bt-load.c: Likewise.
2359 * caller-save.c: Likewise.
2360 * calls.c: Likewise.
2362 * cfganal.c: Likewise.
2363 * cfgbuild.c: Likewise.
2364 * cfgcleanup.c: Likewise.
2365 * cfghooks.c: Likewise.
2366 * cfgloop.c: Likewise.
2367 * combine.c: Likewise.
2368 * config/alpha/alpha.c: Likewise.
2369 * config/arc/arc.c: Likewise.
2370 * config/arm/arm.c: Likewise.
2371 * config/arm/pe.c: Likewise.
2372 * config/avr/avr.c: Likewise.
2373 * config/bfin/bfin.c: Likewise.
2374 * config/cris/cris.c: Likewise.
2375 * config/crx/crx.c: Likewise.
2376 * config/darwin-c.c: Likewise.
2377 * config/darwin.c: Likewise.
2378 * config/fr30/fr30.c: Likewise.
2379 * config/frv/frv.c: Likewise.
2380 * config/h8300/h8300.c: Likewise.
2381 * config/host-darwin.c: Likewise.
2382 * config/i386/i386.c: Likewise.
2383 * config/i386/netware.c: Likewise.
2384 * config/i386/nwld.c: Likewise.
2385 * config/i386/winnt-cxx.c: Likewise.
2386 * config/i386/winnt-stubs.c: Likewise.
2387 * config/i386/winnt.c: Likewise.
2388 * config/ia64/ia64-c.c: Likewise.
2389 * config/ia64/ia64.c: Likewise.
2390 * config/iq2000/iq2000.c: Likewise.
2391 * config/lm32/lm32.c: Likewise.
2392 * config/m32c/m32c-pragma.c: Likewise.
2393 * config/m32c/m32c.c: Likewise.
2394 * config/m32r/m32r.c: Likewise.
2395 * config/m68hc11/m68hc11.c: Likewise.
2396 * config/m68k/m68k.c: Likewise.
2397 * config/mcore/mcore.c: Likewise.
2398 * config/mep/mep-pragma.c: Likewise.
2399 * config/mep/mep.c: Likewise.
2400 * config/mmix/mmix.c: Likewise.
2401 * config/mn10300/mn10300.c: Likewise.
2402 * config/moxie/moxie.c: Likewise.
2403 * config/pa/pa.c: Likewise.
2404 * config/pdp11/pdp11.c: Likewise.
2405 * config/picochip/picochip.c: Likewise.
2406 * config/rs6000/rs6000-c.c: Likewise.
2407 * config/rs6000/rs6000.c: Likewise.
2408 * config/rx/rx.c: Likewise.
2409 * config/s390/s390.c: Likewise.
2410 * config/score/score.c: Likewise.
2411 * config/score/score3.c: Likewise.
2412 * config/score/score7.c: Likewise.
2413 * config/sh/sh.c: Likewise.
2414 * config/sh/symbian-base.c: Likewise.
2415 * config/sh/symbian-c.c: Likewise.
2416 * config/sh/symbian-cxx.c: Likewise.
2417 * config/sol2-c.c: Likewise.
2418 * config/sol2.c: Likewise.
2419 * config/sparc/sparc.c: Likewise.
2420 * config/spu/spu.c: Likewise.
2421 * config/stormy16/stormy16.c: Likewise.
2422 * config/v850/v850-c.c: Likewise.
2423 * config/v850/v850.c: Likewise.
2424 * config/vax/vax.c: Likewise.
2425 * config/vxworks.c: Likewise.
2426 * config/xtensa/xtensa.c: Likewise.
2427 * convert.c: Likewise.
2429 * cselib.c: Likewise.
2430 * dbgcnt.c: Likewise.
2431 * dbxout.c: Likewise.
2433 * dominance.c: Likewise.
2434 * emit-rtl.c: Likewise.
2435 * explow.c: Likewise.
2436 * expmed.c: Likewise.
2437 * fixed-value.c: Likewise.
2438 * fold-const.c: Likewise.
2439 * fwprop.c: Likewise.
2441 * ggc-common.c: Likewise.
2442 * ggc-page.c: Likewise.
2443 * ggc-zone.c: Likewise.
2444 * gimple-low.c: Likewise.
2445 * gimplify.c: Likewise.
2446 * graph.c: Likewise.
2447 * haifa-sched.c: Likewise.
2448 * ifcvt.c: Likewise.
2449 * implicit-zee.c: Likewise.
2450 * integrate.c: Likewise.
2451 * ira-build.c: Likewise.
2452 * ira-color.c: Likewise.
2453 * ira-conflicts.c: Likewise.
2454 * ira-costs.c: Likewise.
2455 * ira-lives.c: Likewise.
2457 * lists.c: Likewise.
2458 * loop-doloop.c: Likewise.
2459 * loop-iv.c: Likewise.
2460 * lto-opts.c: Likewise.
2461 * lto-symtab.c: Likewise.
2463 * modulo-sched.c: Likewise.
2464 * optabs.c: Likewise.
2465 * params.c: Likewise.
2466 * plugin.c: Likewise.
2467 * postreload-gcse.c: Likewise.
2468 * postreload.c: Likewise.
2469 * predict.c: Likewise.
2470 * profile.c: Likewise.
2472 * regcprop.c: Likewise.
2473 * reginfo.c: Likewise.
2474 * regmove.c: Likewise.
2475 * reorg.c: Likewise.
2476 * resource.c: Likewise.
2478 * rtlanal.c: Likewise.
2479 * sched-deps.c: Likewise.
2480 * sched-ebb.c: Likewise.
2481 * sched-rgn.c: Likewise.
2482 * sdbout.c: Likewise.
2483 * sel-sched-dump.c: Likewise.
2484 * sel-sched-ir.c: Likewise.
2485 * simplify-rtx.c: Likewise.
2487 * stor-layout.c: Likewise.
2488 * store-motion.c: Likewise.
2489 * targhooks.c: Likewise.
2490 * tree-cfg.c: Likewise.
2491 * tree-cfgcleanup.c: Likewise.
2492 * tree-dump.c: Likewise.
2493 * tree-eh.c: Likewise.
2494 * tree-inline.c: Likewise.
2495 * tree-nomudflap.c: Likewise.
2496 * tree-object-size.c: Likewise.
2497 * tree-optimize.c: Likewise.
2498 * tree-outof-ssa.c: Likewise.
2499 * tree-phinodes.c: Likewise.
2500 * tree-profile.c: Likewise.
2501 * tree-ssa-ccp.c: Likewise.
2502 * tree-ssa-coalesce.c: Likewise.
2503 * tree-ssa-live.c: Likewise.
2504 * tree-ssa-loop-niter.c: Likewise.
2505 * tree-ssa-loop-prefetch.c: Likewise.
2506 * tree-ssa-loop.c: Likewise.
2507 * tree-ssa-structalias.c: Likewise.
2508 * tree-ssa-uninit.c: Likewise.
2509 * tree-ssa.c: Likewise.
2510 * tree-vect-data-refs.c: Likewise.
2511 * tree-vect-loop-manip.c: Likewise.
2512 * tree-vect-loop.c: Likewise.
2513 * tree-vect-patterns.c: Likewise.
2514 * tree-vect-stmts.c: Likewise.
2515 * tree-vrp.c: Likewise.
2516 * varasm.c: Likewise.
2519 * xcoffout.c: Likewise.
2521 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
2523 * gengtype.c (write_field_root): New function.
2524 (write_root): Use it.
2526 2010-07-07 Wei Guozhi <carrot@google.com>
2528 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
2529 of lowest bits to lshift/compare): Add a missing line.
2531 2010-07-07 Wei Guozhi <carrot@google.com>
2533 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
2534 of lowest bits to lshift/compare): New.
2536 2010-07-07 Tom Tromey <tromey@redhat.com>
2538 * doc/tm.texi: Update.
2539 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
2541 * target.def (want_debug_pub_sections): New hook.
2542 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
2543 * dwarf2out.c (add_pubname_string): Check
2544 targetm.want_debug_pub_sections.
2545 (add_pubname): Likewise.
2546 (add_pubtype): Likewise.
2548 2010-07-07 Jie Zhang <jie@codesourcery.com>
2550 * genautomata.c (output_automata_list_min_issue_delay_code):
2551 Correctly decompress min_issue_delay.
2553 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
2555 PR rtl-optimization/44404
2556 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
2557 possible, use reg_overlap_mentioned_p instead.
2559 2010-07-07 Duncan Sands <baldrick@free.fr>
2562 * tree.c (build_function_type_skip_args): Copy the original type using
2563 build_distinct_type_copy rather than copy_node.
2565 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
2568 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
2570 (ix86_expand_prologue): Likewise.
2571 (ix86_handle_fndecl_attribute): Likewise.
2572 (ix86_asm_declare_function_name): Likewise.
2573 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2574 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2575 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
2576 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
2577 * doc/extend.texi: Likewise.
2579 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
2582 * config/i386/i386.md (rdrand<mode>): Changed to expand to
2583 retry if the carry flag isn't valid.
2584 (rdrand<mode>_1): New.
2586 2010-07-07 Richard Guenther <rguenther@suse.de>
2589 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
2590 for expanding the constant offset for MEM_REFs.
2592 2010-07-07 Richard Guenther <rguenther@suse.de>
2594 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
2595 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
2596 * gimple.h (is_gimple_operand): Remove.
2597 * gimple.c (is_gimple_operand): Likewise.
2598 (walk_gimple_op): Fix wi->val_only setting for calls.
2599 * tree-cfg.c (verify_gimple_call): Fix argument validation.
2600 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
2601 invalid gimple calls.
2603 2010-07-06 Jan Hubicka <jh@suse.cz>
2605 * lto-cgraph.c (output_cgraph): Add missing declaration.
2607 2010-07-06 Jan Hubicka <jh@suse.cz>
2609 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
2612 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
2614 * doc/gimple.texi (GIMPLE_DEBUG): Document.
2615 * doc/rtl.texi (Debug Information): New node.
2616 (NOTE_INSN_VAR_LOCATION): Document.
2617 (debug_insn): Likewise.
2618 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
2620 2010-07-07 Jan Hubicka <jh@suse.cz>
2622 With parts by Richard Guenther.
2625 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
2626 for functions passed by reference.
2627 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
2628 in memory when passed by reference.
2629 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
2631 * ipa-split.c (split_function): Cleanup way return value is passed;
2632 handle SSA DECL_BY_REFERENCE retvals.
2633 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
2634 DECL_BY_REFERENCE is set.
2635 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
2636 find_what_p_points_to): Handle RESULT_DECL.
2637 * tree-inline.c (declare_return_variable): Get new entry_block argument;
2638 when passing by reference ensure that RESULT_DECL is gimple_val.
2639 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
2640 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
2642 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
2644 PR rtl-optimization/44787
2645 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
2646 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
2648 2010-07-06 Jan Hubicka <jh@suse.cz>
2650 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
2651 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
2652 with body can prevail.
2653 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
2654 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
2655 * cgraph.c (cgraph_get_node_or_alias): New function.
2656 * cgraph.h (cgraph_get_node_or_alias): Declare.
2658 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
2660 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
2662 (ix86_expand_prologue): Likewise.
2663 (ix86_handle_fndecl_attribute): Likewise.
2664 (ix86_asm_declare_function_name): New function for
2665 ASM_DECLARE_FUNCTION_NAME.
2666 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
2667 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
2668 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
2669 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
2670 * doc/extend.texi: Adjust documentation about ms_hook_prologue
2673 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
2675 * config/i386/i386.md (immediate_operand): New mode attribute.
2677 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
2678 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
2679 using P mode iterator.
2680 (pro_epilogue_adjust_stack_di_2): Rename from
2681 pro_epilogue_adjust_stack_rex64_2.
2683 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
2685 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
2687 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
2688 through gen_mov_insv_1 function pointer.
2689 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
2690 gen_truncxf<mode>2 through gen_truncxf function pointer.
2691 (remainder<mode>3): Ditto.
2692 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
2693 (allocate_stack): Call gen_allocate_stack_worker_64 or
2694 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
2696 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
2699 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
2701 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
2702 operand constraint instead of <r><i>m.
2704 2010-07-06 Richard Guenther <rguenther@suse.de>
2707 * convert.c (convert_to_integer): Watch out for overflowing
2710 2010-07-05 Jan Hubicka <jh@suse.cz>
2712 * lto-streamer.c (write_symbol_vec): Rename to ...
2713 (write_symbol) ... this one; write only symbol given and when
2714 present in cache. Sanity check that what is defined is present
2715 in cgraph/varpool with body/finalized decl.
2716 (write_symbols_of_kind): Remove.
2717 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
2718 pairs to produce symtab.
2719 (produce_asm_for_decls): Update call of produce_symtab; don't do so
2720 when doing WPA streaming.
2722 2010-07-05 Jan Hubicka <jh@suse.cz>
2724 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
2725 function is still available to fold into.
2727 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
2729 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
2730 * function.h (struct_function): Change type of local_decls field
2732 (add_local_decl): New function.
2733 (FOR_EACH_LOCAL_DECL): New macro.
2734 * cfgexpand.c (init_vars_expansion): Adjust for new type of
2736 (estimated_stack_frame_size): Likewise.
2737 (expand_used_vars): Likewise.
2738 * cgraphbuild.c (build_cgraph_edges): Likewise.
2739 * function.c (instantiate_decls_1): Likewise.
2740 * ipa-struct-reorg.c (build_data_structure): Likewise.
2741 * ipa-type-escape.c (analyze_function): Likewise.
2742 * lto-streamer-in.c (input_function): Likewise.
2743 * lto-streamer-out.c (output_function): Likewise.
2744 * tree-ssa-live.c (remove_unused_locals): Likewise.
2745 * tree.c (free_lang_data_in_decl): Likewise.
2746 (find_decls_types_in_node): Likewise.
2747 * omp-low.c (remove_exit_barrier): Likewise.
2748 (expand_omp_taskreg): Likewise.
2749 (list2chain): Rename to...
2750 (vec2chain): ...this. Adjust.
2751 * cgraphunit.c (assemble_thunk): Call add_local_decl.
2752 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
2753 * gimple-low.c (record_vars_into): Likewise.
2754 * tree-inline.c (remap_decls): Likewise.
2755 (declare_return_variable): Likewise.
2756 (declare_inline_vars): Likewise.
2757 (copy_forbidden): Adjust for new type of cfun->local_decls.
2758 (add_local_variables): New function.
2759 (expand_call_inline): Call it.
2760 (tree_function_versioning): Likewise.
2762 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
2764 AVX Programming Reference (June, 2010)
2765 * config/i386/cpuid.h (bit_F16C): New.
2766 (bit_RDRND): Likewise.
2767 (bit_FSGSBASE): Likewise.
2769 * config/i386/i386-builtin-types.def: Add
2770 "DEF_FUNCTION_TYPE (UINT16)", function types for
2771 float16 <-> float conversions and
2772 "DEF_FUNCTION_TYPE (VOID, UINT64)".
2774 * config/i386/i386-c.c (ix86_target_macros_internal): Support
2775 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
2776 OPTION_MASK_ISA_F16C.
2778 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
2779 (OPTION_MASK_ISA_RDRND_SET): Likewise.
2780 (OPTION_MASK_ISA_F16C_SET): Likewise.
2781 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
2782 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
2783 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
2784 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
2785 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
2786 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
2787 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
2788 (override_options): Handle them.
2789 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
2790 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
2791 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
2792 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
2793 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
2794 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
2795 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
2796 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
2797 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
2798 (bdesc_args): Likewise.
2799 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
2800 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
2801 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
2802 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
2803 Handle non-memory store.
2805 * config/i386/i386.h (TARGET_FSGSBASE): New.
2806 (TARGET_RDRND): Likewise.
2807 (TARGET_F12C): Likewise.
2809 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
2810 (UNSPEC_VCVTPS2PH): Likewise.
2811 (UNSPECV_RDFSBASE): Likewise.
2812 (UNSPECV_RDGSBASE): Likewise.
2813 (UNSPECV_WRFSBASE): Likewise.
2814 (UNSPECV_WRGSBASE): Likewise.
2815 (UNSPECV_RDRAND): Likewise.
2816 (rdfsbase<mode>): Likewise.
2817 (rdgsbase<mode>): Likewise.
2818 (wrfsbase<mode>): Likewise.
2819 (wrgsbase<mode>): Likewise.
2820 (rdrand<mode>): Likewise.
2822 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
2824 * config/i386/immintrin.h (_rdrand_u16): New.
2825 (_rdrand_u32): Likewise.
2826 (_readfsbase_u32): Likewise.
2827 (_readfsbase_u64): Likewise.
2828 (_readgsbase_u32): Likewise.
2829 (_readgsbase_u64): Likewise.
2830 (_writefsbase_u32): Likewise.
2831 (_writefsbase_u64): Likewise.
2832 (_writegsbase_u32): Likewise.
2833 (_writegsbase_u64): Likewise.
2834 (_rdrand_u64): Likewise.
2835 (_cvtsh_ss): Likewise.
2836 (_mm_cvtph_ps): Likewise.
2837 (_mm256_cvtph_ps): Likewise.
2838 (_cvtss_sh): Likewise.
2839 (_mm_cvtps_ph): Likewise.
2840 (_mm256_cvtps_ph): Likewise.
2842 * config/i386/sse.md (vcvtph2ps): New.
2843 (*vcvtph2ps_load): Likewise.
2844 (vcvtph2ps256): Likewise.
2845 (vcvtps2ph): Likewise.
2846 (*vcvtps2ph): Likewise.
2847 (*vcvtps2ph_store): Likewise.
2848 (vcvtps2ph256): Likewise.
2850 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
2852 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
2854 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
2857 * genenums.c (main): Output include of insn-constants.h
2858 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
2860 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
2862 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
2863 (override_options): Initialize it.
2864 (ix86_expand_prologue): Use it.
2866 2010-07-05 Jakub Jelinek <jakub@redhat.com>
2868 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
2870 2010-07-05 Anatoly Sokolov <aesok@post.ru>
2872 * double-int.h (fit_double_type): Remove declaration.
2873 * double-int.c (fit_double_type): Remove function.
2874 * tree.h (int_fits_type_p): Adjust prototype.
2875 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
2876 instead of fit_double_type.
2877 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
2878 instead of fit_double_type and build_int_cst_wide.
2879 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
2880 instead of fit_double_type and build_int_cst_wide.
2881 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
2884 2010-07-05 Jan Hubicka <jh@suse.cz>
2886 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
2888 * lto-cgraph.c (referenced_from_other_partition_p,
2889 reachable_from_other_partition_p): Use in_other_partition flags.
2890 (output_node, output_varpool_node): COMDAT nodes always have private
2891 copies and thus are never used from other partition.
2893 2010-07-05 Anatoly Sokolov <aesok@post.ru>
2895 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
2896 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
2897 * config/ia64/ia64.c Include reload.h.
2898 (ia64_memory_move_cost): New function.
2899 (TARGET_MEMORY_MOVE_COST): Define.
2900 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
2903 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
2906 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
2907 comments about cost model.
2908 (try_add_cand_for): Add second strategy for choosing initial set
2909 based on original IVs, controlled by ORIGINALP argument.
2910 (get_initial_solution): Add ORIGINALP argument.
2911 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
2912 (find_optimal_iv_set): Try two different strategies for choosing
2913 the IV set, and return the one with lower cost.
2915 2010-07-05 Richard Guenther <rguenther@suse.de>
2917 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
2919 2010-07-05 Richard Guenther <rguenther@suse.de>
2921 * tree.c (reference_alias_ptr_type): New function.
2922 * tree.h (reference_alias_ptr_type): Declare.
2923 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
2924 allow non-TARGET_MEM_REF new refs.
2925 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
2926 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
2927 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
2928 (create_mem_ref): Get alias pointer type. Adjust calls to
2930 (maybe_fold_tmr): Likewise.
2931 * tree-flow.h (create_mem_ref): Adjust prototype.
2933 2010-07-05 Jakub Jelinek <jakub@redhat.com>
2936 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
2937 *from_p is VAR_DECL.
2939 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
2941 * tree.h (build_call_list): Remove.
2942 * tree.c (build_call_list): Remove.
2944 2010-07-05 Richard Guenther <rguenther@suse.de>
2946 * double-int.h (double_int_sub): Declare.
2947 * double-int.c (double_int_sub): New function.
2948 * dwarf2out.c (field_byte_offset): Use it.
2949 * fixed-value.c (do_fixed_add): Likewise.
2950 (do_fixed_multiply): Likewise.
2951 (do_fixed_divide): Likewise.
2952 * tree-predcom.c (add_ref_to_chain): Likewise.
2953 (determine_roots_comp): Likewise.
2954 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
2956 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
2958 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
2961 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
2963 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
2964 * arm-modes.def (CC_NOTB): Don't define.
2965 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
2966 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
2967 (LTUGEU): New code_iterator.
2968 (cnb, optab): New corresponding code_attrs.
2969 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
2970 to canonical form. Operands 1 and 2 are commutative. Parametrize
2972 (addsi3_carryin_shift_<optab>): Likewise.
2973 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
2974 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
2975 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
2976 (subsi3_compare): Renamed from subsi3_compare0_c.
2977 Change CC_NOTB to CC.
2978 (arm_subsi3_insn): Allow constants for operand 0.
2979 (compare_scc peephole for eq case): New.
2980 (compare_scc splitters): Change CC_NOTB to CC.
2982 2010-07-05 Richard Guenther <rguenther@suse.de>
2984 * tree-ssa-loop-im.c (for_each_index): Do not handle
2986 (gen_lsm_tmp_name): Likewise.
2987 * tree-dump.c (dequeue_and_dump): Likewise.
2988 * tree-pretty-print.c (dump_generic_node): Likewise.
2989 (op_code_prio): Likewise.
2990 (op_symbol_code): Likewise.
2991 * tree.c (staticp): Likewise.
2992 (build1_stat): Likewise.
2993 * tree.h (INDIRECT_REF_P): Likewise.
2994 * fold-const.c (maybe_lvalue_p): Likewise.
2995 (operand_equal_p): Likewise.
2996 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2997 (ao_ref_init_from_vn_reference): Likewise.
2998 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
2999 (find_interesting_uses_address): Likewise.
3000 * dwarf2out.c (loc_list_from_tree): Likewise.
3001 * gimplify.c (gimplify_expr): Likewise.
3002 * tree-eh.c (tree_could_trap_p): Likewise.
3003 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3004 * cfgexpand.c (expand_debug_expr): Likewise.
3005 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3006 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
3007 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
3008 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
3009 * tree-ssa-operands.c (get_expr_operands): Likewise.
3010 * expr.c (safe_from_p): Likewise.
3011 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
3012 * tree-vect-data-refs.c (vect_setup_realignment): Build
3013 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
3014 * tree-vect-stmts.c (vectorizable_load): Likewise.
3015 * tree.def (ALIGN_INDIRECT_REF): Remove.
3017 2010-07-05 Richard Guenther <rguenther@suse.de>
3019 PR tree-optimization/44784
3020 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
3022 (find_or_generate_expression): Fix SCCVN insertion check.
3024 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
3026 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
3027 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
3028 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
3031 2010-07-05 Ira Rosen <irar@il.ibm.com>
3033 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
3034 statements that are not vectorized.
3035 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
3038 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
3041 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
3043 2010-07-05 Richard Guenther <rguenther@suse.de>
3045 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
3046 RESULT_DECLs properly.
3048 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
3050 PR rtl-optimization/44695
3051 * config/i386/i386.md (extract_code): Removed.
3052 (<u>divmodqi4): Likewise.
3054 (udivmodqi4): Likewise.
3055 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
3056 (udivmodhiqi3): Likewise.
3058 2010-07-04 Jan Hubicka <jh@suse.cz>
3060 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
3062 2010-07-04 Jan Hubicka <jh@suse.cz>
3064 * cgraphunit.c (init_cgraph): Only initialize dump file if it
3065 is not already initialized.
3067 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
3069 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
3070 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
3071 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
3072 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
3073 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
3074 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
3075 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
3076 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
3077 (sync_new_nand_optab): Redefine as macros.
3078 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
3080 (direct_optab_index): New enum.
3081 (direct_optab_d): New structure.
3082 (direct_optab): New typedef.
3083 (direct_optab_table): Declare.
3084 (direct_optab_handler, set_direct_optab_handler): New functions.
3085 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
3086 (sync_lock_release_optab): New macros.
3087 * optabs.c (direct_optab_table): New variable.
3088 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
3089 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
3090 cmpstr_optab and cmpstrn_optab.
3091 (emit_conditional_move): Likewise for movcc_optab.
3092 (can_conditionally_move_p): Likewise for movcc_gen_code.
3093 (init_insn_codes): Clear direct_optab_table.
3094 (init_optabs): Don't initialize the new "direct optabs" here.
3095 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
3097 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
3098 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
3099 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
3100 (expand_sync_operation): Likewise other sync_*_optabs.
3101 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
3102 to sync_compare_and_swap_optab.
3103 (expand_sync_lock_test_and_set): Use direct_optab_handler for
3104 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
3105 to the names of both.
3106 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
3107 cmpstr_optab and cmpstrn_optab.
3108 (expand_builtin_lock_release): Likewise sync_lock_release.
3109 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
3110 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
3111 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
3112 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
3113 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
3114 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
3115 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
3116 (sync_lock_test_and_set, sync_lock_release): Delete.
3117 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
3118 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
3119 * genopinit.c (optabs): Use set_direct_optab_handler for the new
3121 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
3122 the "optab" local variable. Use direct_optab_handler for optab and
3123 sync_compare_and_swap_optab.
3124 * reload1.c (reload_in_optab, reload_out_optab): Delete.
3125 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
3126 reload_in_optab and reload_out_optab.
3127 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
3128 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
3129 * config/pa/pa.c (pa_secondary_reload): Likewise.
3130 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
3131 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
3132 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
3133 (VMSupportsCS8_builtin): Likewise.
3135 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
3137 * optabs.h (optab_handlers): Change type of insn_code to int.
3138 (optab_handler, set_optab_handler, convert_optab_handler)
3139 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
3141 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
3142 (init_insn_codes): Zero both the above arrays.
3143 (init_optabs): Never call init_insn_codes first time around.
3145 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
3147 * optabs.h (optab_handler, convert_optab_handler): Turn into
3148 inline functions that return an insn code.
3149 (set_optab_handler, set_convert_optab_handler): New functions.
3150 * builtins.c: Replace optab_handler(X)->insn_code with
3151 optab_handler or set_optab_handler thoughout. Likewise
3152 convert_optab_handler(X)->insn_code with convert_optab_handler
3153 and set_convert_optab_handler.
3154 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
3155 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
3156 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
3157 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
3158 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
3159 config/spu/spu.c: Likewise.
3161 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
3164 * config.gcc (sh*-*-*): Use regular expressions instead of
3165 the 'i' modifier for sed substitutions.
3167 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
3169 * gimple.c (gimple_body): Comments added.
3171 2010-07-04 Richard Guenther <rguenther@suse.de>
3174 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
3177 2010-07-04 Richard Guenther <rguenther@suse.de>
3179 PR tree-optimization/44479
3180 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
3181 extra SSA name copy statements which preserves points-to
3183 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3184 Copy points-to information for all pointers. Properly handle
3186 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
3188 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
3191 2010-07-04 Richard Guenther <rguenther@suse.de>
3194 * tree-inline.c (initialize_inlined_parameters): Do not
3195 re-use pointer-map slot over remap_type call.
3197 2010-07-04 Richard Guenther <rguenther@suse.de>
3199 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
3201 2010-07-04 Richard Guenther <rguenther@suse.de>
3203 PR tree-optimization/44656
3204 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
3205 again after value-replacing in the defintions lhs.
3207 2010-07-04 Ira Rosen <irar@il.ibm.com>
3208 Revital Eres <eres@il.ibm.com>
3210 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
3211 Document new arguments.
3212 * doc/tm.texi: Regenerate.
3213 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
3214 Handle unaligned store.
3215 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
3216 * target.def (builtin_vectorization_cost): Add new arguments.
3217 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
3218 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
3219 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
3220 (vect_vfa_segment_size): Fix indentation.
3221 * tree-vectorizer.h (struct _vect_peel_info): New.
3222 (struct _vect_peel_extended_info): New.
3223 (struct _loop_vec_info): Add new field for peeling hash table and a
3224 macro for its access.
3225 (VECT_MAX_COST): Define.
3226 (vect_get_load_cost): Declare.
3227 (vect_get_store_cost, vect_get_known_peeling_cost,
3228 vect_get_single_scalar_iteraion_cost): Likewise.
3229 (vect_supportable_dr_alignment): Add new argument.
3230 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
3232 (destroy_loop_vec_info): Free peeling hash table.
3233 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
3234 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
3235 vect_analyze_slp. Fix indentation.
3236 (vect_get_single_scalar_iteraion_cost): New function.
3237 (vect_get_known_peeling_cost): Likewise.
3238 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
3239 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
3240 statement. Move outside cost calculation inside unknown peeling case.
3241 Call vect_get_known_peeling_cost for known amount of peeling.
3242 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
3243 reference to the print message of forced alignment.
3244 (vect_verify_datarefs_alignment): Update call to
3245 vect_supportable_dr_alignment.
3246 (vect_get_data_access_cost): New function.
3247 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
3248 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
3249 vect_peeling_hash_choose_best_peeling): Likewise.
3250 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
3251 to store all the accesses in the loop and find best possible access to
3252 align using peeling for known alignment case. For unknown alignment
3253 check if stores are preferred or if peeling is worthy.
3254 (vect_find_same_alignment_drs): Analyze pairs of loads too.
3255 (vect_supportable_dr_alignment): Add new argument and check aligned
3256 accesses according to it.
3257 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
3258 (cost_for_stmt): Call vect_get_stmt_cost.
3259 (vect_model_simple_cost): Likewise.
3260 (vect_model_store_cost): Call vect_get_stmt_cost. Call
3261 vect_get_store_cost to calculate the cost of the statement.
3262 (vect_get_store_cost): New function.
3263 (vect_model_load_cost): Call vect_get_stmt_cost. Call
3264 vect_get_load_cost to calculate the cost of the statement.
3265 (vect_get_load_cost): New function.
3266 (vectorizable_store): Update call to vect_supportable_dr_alignment.
3267 (vectorizable_load): Likewise.
3268 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
3269 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
3270 arguments. Handle unaligned store.
3271 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
3272 (rs6000_builtin_support_vector_misalignment): Return true for word and
3273 double word alignments for VSX.
3274 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
3275 vect_supportable_dr_alignment and builtin_vectorization_cost.
3277 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3280 * config/pa/predicates.md (prefetch_cc_operand): Remove.
3281 (prefetch_nocc_operand): Likewise.
3282 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
3283 (prefetch_20): New insn.
3284 (prefetch_cc): Remove.
3285 (prefetch_nocc): Likewise.
3287 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3289 * expr.c (vector_mode_valid_p): Move to c-common.c.
3290 * expr.h (vector_mode_valid_p): Do not declare here.
3291 * system.h: Poison GCC_EXPR_H in front-ends.
3292 * Makefile.in: Update dependencies.
3294 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3297 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
3299 2010-07-03 Jan Hubicka <jh@suse.cz>
3301 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
3302 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
3303 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
3304 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
3307 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
3309 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
3310 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
3311 TV_IPA_LTO_DECL_OUT): New.
3312 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
3314 2010-07-03 Jan Hubicka <jh@suse.cz>
3316 * ipa-inline.c (update_edge_key): Break out from ...
3317 update_callers_keys): ... here;
3318 (update_callee_keys): Update only the edges from caller to callee.
3319 (update_all_calle_keys): Do what update_calle_keys did.
3320 (decide_inlining_of_small_functions): Avoid recomputing of all
3321 callees when badness increase.
3323 2010-07-03 Jie Zhang <jie@codesourcery.com>
3325 * config/arm/arm.c (arm_attr_length_move_neon): New.
3326 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
3327 * config/arm/neon.md (define_mode_attr V_slen): Remove.
3328 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
3329 to compute length attribute.
3331 2010-07-03 Jie Zhang <jie@codesourcery.com>
3333 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
3334 as predicate for operand 1 and remove its constraint.
3335 * config/arm/predicates.md (vfp_register_operand): New.
3336 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
3337 (*push_fp_multi): Likewise.
3339 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
3341 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
3343 2010-07-03 Jan Hubicka <jh@suse.cz>
3345 * config/i386/i386.c (override_options): Revert accidental commit.
3347 2010-07-02 Le-Chun Wu <lcwu@google.com>
3350 * doc/invoke.texi: Update documentation of -Wshadow.
3352 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3353 Julian Brown <julian@codesourcery.com>
3354 Sandra Loosemore <sandra@codesourcery.com>
3356 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
3357 comparisons. Adjust to take both operands.
3358 (arm_select_cc_mode): Handle DImode comparisons.
3359 (arm_gen_compare_reg): Generate a scratch register for DImode
3360 comparisons which require one. Use xor for Thumb equality checks.
3361 (arm_const_double_by_immediates): New.
3362 (arm_print_operand): Allow 'Q' and 'R' for constants.
3363 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
3364 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
3365 arm_canonicalize_comparison.
3366 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
3367 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
3369 (arm_const_double_by_immediates): Declare.
3370 * config/arm/constraints.md (Di): New constraint.
3371 * config/arm/predicates.md (arm_immediate_di_operand)
3372 (arm_di_operand, cmpdi_operand): New.
3373 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
3374 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
3375 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
3376 (cstoredi4): Handle non-Cirrus also.
3378 2010-07-02 Julian Brown <julian@codesourcery.com>
3379 Sandra Loosemore <sandra@codesourcery.com>
3382 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
3383 (smax<mode>3): Disable for NEON float modes when
3384 flag_unsafe_math_optimizations is false.
3385 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
3387 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
3388 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
3389 for NEON float modes when flag_unsafe_math_optimizations is false.
3390 (quad_halves_<code>v4sf): Only enable if
3391 flag_unsafe_math_optimizations is true.
3392 * doc/invoke.texi (ARM Options): Add note about floating point
3393 vectorization requiring -funsafe-math-optimizations.
3395 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
3396 Julian Brown <julian@codesourcery.com>
3398 * config/arm/neon.md (UNSPEC_VABA): Delete.
3399 (UNSPEC_VABAL): Delete.
3400 (UNSPEC_VABS): Delete.
3401 (UNSPEC_VMUL_N): Delete.
3404 (mul<mode>3add<mode>_neon): Make the pattern named.
3405 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
3406 (neon_vadd<mode>): Replace with define_expand, and move the remaining
3408 (neon_vadd<mode>_unspec): ...to this.
3409 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
3410 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
3411 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
3412 (neon_vaba<mode>): Rewrite in terms of vabd.
3413 (neon_vabal<mode>): Rewrite in terms of vabdl.
3414 (neon_vabs<mode>): Rewrite without unspec.
3415 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
3416 (*arm_subdi3): Likewise.
3417 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
3418 No_op attribute to disable assembly output checks.
3419 * config/arm/arm_neon.h: Regenerated.
3420 * doc/arm-neon-intrinsics.texi: Regenerated.
3422 2010-07-02 Jan Hubicka <jh@suse.cz>
3424 * ipa-split.c (split_function): For aggregate values, set the return
3425 slot optimization bit. When passing DECL_BY_REFERENCE, produce
3426 *<retval> = fncall.part ().
3427 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
3429 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
3431 * config/arm/neon.md (UNSPEC_VAND): Delete.
3432 (UNSPEC_VBIC): Delete.
3433 (UNSPEC_VCLZ): Delete.
3434 (UNSPEC_VCNT): Delete.
3435 (UNSPEC_VEOR): Delete.
3436 (UNSPEC_VORN): Delete.
3437 (UNSPEC_VORR): Delete.
3438 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
3440 (anddi3_neon): Likewise.
3441 (orndi3_neon): Likewise.
3442 (bicdi3_neon): Likewise.
3443 (xordi3_neon): Likewise.
3444 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
3445 rid of unspec and handle unused operand.
3446 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
3447 * config/arm/predicates.md (imm_for_neon_logic_operand):
3448 Require TARGET_NEON.
3449 (imm_for_neon_inv_logic_operand): Likewise.
3450 * config/arm/arm.md (define_split for logical_binary_operator):
3451 Disable for NEON registers.
3452 (anddi3): Add new define_expand, and rename the insn. Disable
3453 this insn for NEON, where anddi3_neon now applies.
3454 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
3455 (iordi3): As for anddi3.
3457 * config/arm/neon.ml (Vand): Split DImode variants and mark them
3458 as No_op to disable testing for exact instruction match.
3463 * config/arm/arm_neon.h: Regenerated.
3464 * doc/arm-neon-intrinsics.texi: Regenerated.
3466 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
3468 * expr.h (emit_stack_probe): Declare.
3469 * explow.c (emit_stack_probe): Make global.
3470 (anti_adjust_stack_and_probe): Fix comments.
3471 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
3472 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3473 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3474 * config/sparc/sparc.c: Include except.h.
3475 (sparc_emit_probe_stack_range): New function.
3476 (output_probe_stack_range): Likewise.
3477 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
3478 built-in stack checking is enabled.
3479 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
3480 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
3481 (probe_stack_range): New insn.
3483 2010-07-02 Richard Guenther <rguenther@suse.de>
3486 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
3487 for argument alignment.
3489 2010-07-02 Jan Hubicka <jh@suse.cz>
3491 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
3492 walk backwards from entry_bb to check only those basic block of header
3493 that might lead to execution of split part.
3494 (consider_split) ... here.
3495 (find_return_bb): Allow assignment in return BB.
3497 (split_function): Fix name of cloned function; take care of updating
3498 return value in return_bb containing move.
3500 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
3503 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
3506 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
3508 * implicit-zee.c (combine_reaching_defs): Fix long lines.
3509 (is_set_with_extension_DI): Delete.
3510 (struct zero_extend_info): New structure.
3511 (add_removable_zero_extend): New function.
3512 (find_removable_zero_extends): Use note_stores to find SETs.
3513 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
3515 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
3517 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
3518 is_miss_rate_acceptable. Pull total_positions computation
3519 out of the loops. Early return if miss_positions exceeds
3520 the acceptable threshold.
3521 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
3522 is_miss_rate_acceptable after renaming of compute_miss_rate.
3524 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
3527 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
3528 of 1000) for miss rate if the address diference is greater than or
3529 equal to the cache line size (the two reference will never hit the
3532 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
3535 * config/arm/arm-modes.def (CC_NOTB): New mode.
3536 * config/arm/arm.c (get_arm_condition_code): Handle it.
3537 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
3538 * config/arm/arm.md (subsi3_compare0_c): New pattern.
3539 (compare_scc): Now a define_and_split. Add a number of extra
3540 splitters before it.
3543 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
3545 (arm_rtx_costs_1): Likewise.
3546 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
3547 * config/arm/arm.md (is_arch6): New attribute.
3548 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
3549 extendqisi2): Tighten the code somewhat, avoiding invalid
3550 RTL to occur in the expander patterns.
3551 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
3552 (thumb1_zero_extendhisi2_v6): Delete.
3553 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
3554 (thumb1_extendhisi2_v6): Delete.
3555 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
3556 (thumb1_extendqisi2_v6): Delete.
3557 (zero_extendhisi2 for register input splitter): New.
3558 (zero_extendqisi2 for register input splitter): New.
3559 (thumb1_extendhisi2 for register input splitter): New.
3560 (extendhisi2 for register input splitter): New.
3561 (extendqisi2 for register input splitter): New.
3562 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
3563 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
3564 and add support for a register alternative requiring a split.
3565 (thumb1_zero_extendqisi2): Likewise.
3566 (arm_zero_extendqisi2): Likewise.
3567 (arm_extendhisi2): Likewise.
3568 (arm_extendqisi2): Likewise.
3570 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
3572 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
3573 instead of an unspec.
3574 (neon_expand_vector_init): Likewise.
3575 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
3576 (UNSPEC_VDUP_LANE): Delete.
3577 (UNSPEC VDUP_N): Delete.
3578 (UNSPEC_VGET_HIGH): Delete.
3579 (UNSPEC_VGET_LANE): Delete.
3580 (UNSPEC_VGET_LOW): Delete.
3581 (UNSPEC_VMVN): Delete.
3582 (UNSPEC_VSET_LANE): Delete.
3583 (V_double_vector_mode): New.
3584 (vec_set<mode>_internal): Make code emitted match that for the
3585 corresponding intrinsics.
3586 (vec_setv2di_internal): Likewise.
3587 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
3588 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
3589 (neon_vset_lane<mode>): Combine double and quad patterns and
3590 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
3591 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
3592 (neon_vdup_n<mode>): Rewrite RTL without unspec.
3593 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
3594 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
3595 with neon_vdup_lanev2di, adjusting the pattern from the latter
3596 to be predicable for consistency.
3597 (neon_vdup_lane<mode>_internal): New.
3598 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
3599 to avoid using an unspec.
3600 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
3601 (neon_vdup_lanev2di): Turn into a define_expand.
3602 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
3603 (neon_vget_high<mode>): Replace with....
3604 (neon_vget_highv16qi): New pattern using canonical RTL.
3605 (neon_vget_highv8hi): Likewise.
3606 (neon_vget_highv4si): Likewise.
3607 (neon_vget_highv4sf): Likewise.
3608 (neon_vget_highv2di): Likewise.
3609 (neon_vget_low<mode>): Replace with....
3610 (neon_vget_lowv16qi): New pattern using canonical RTL.
3611 (neon_vget_lowv8hi): Likewise.
3612 (neon_vget_lowv4si): Likewise.
3613 (neon_vget_lowv4sf): Likewise.
3614 (neon_vget_lowv2di): Likewise.
3616 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
3617 test for this emitting vmov.
3618 (Vset_lane): Likewise.
3622 * doc/arm-neon-intrinsics.texi: Regenerated.
3624 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
3626 * config/arm/neon.md (vec_extractv2di): Correct error in register
3627 numbering to reconcile with neon_vget_lanev2di.
3629 2010-07-02 Richard Guenther <rguenther@suse.de>
3631 * tree-ssa-structalias.c (pt_solution_set_var): New function.
3632 * tree-ssa-alias.h (pt_solution_set_var): Declare.
3633 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
3634 points-to information.
3636 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
3638 * config/s390/s390.c (override_options): Adopt prefetching
3639 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
3641 2010-07-02 Jan Hubicka <jh@suse.cz>
3643 * df-problems.c (df_kill_notes): Do not collect dead notes.
3644 (df_set_note): Just call add_reg_note.
3645 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
3646 df_create_unused_note): Do not deal with lists of old notes.
3647 (df_note_bb_compute): Likewise.
3649 2010-07-02 Richard Guenther <rguenther@suse.de>
3651 * tree-ssa-structalias.c (find_func_aliases): Handle
3652 pointer alignment via BIT_AND_EXPR.
3653 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
3655 2010-07-02 Richard Guenther <rguenther@suse.de>
3657 * tree-data-ref.c (initialize_data_dependence_relation): Handle
3658 mismatching number of dimensions properly.
3660 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3663 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
3664 (lo_sum (high ...) ...) patterns generated by earlier passes.
3666 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3668 * doc/install.texi (Prerequisites): Document Perl requirement on
3670 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
3672 2010-07-02 Richard Guenther <rguenther@suse.de>
3675 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
3677 2010-07-02 Jan Hubicka <jh@suse.cz>
3680 * predict.c (predict_paths_for_bb): Handle case when control dependence
3681 BB has only abnormal edges.
3683 2010-07-02 Richard Guenther <rguenther@suse.de>
3685 PR tree-optimization/44748
3686 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
3687 the embedded conversion in MEM_REFs.
3689 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
3691 * reload.c: Include toplev.h.
3692 * recog.c: Likewise.
3693 * Makefile.in: Adjust dependencies.
3695 2010-07-01 Jakub Jelinek <jakub@redhat.com>
3698 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
3699 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
3701 2010-07-01 Richard Guenther <rguenther@suse.de>
3703 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
3706 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
3709 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
3712 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
3715 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3716 Make sure operand 0 dies.
3718 2010-07-01 Richard Guenther <rguenther@suse.de>
3722 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
3723 * doc/generic.texi (References to storage): Document MEM_REF.
3724 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
3725 (print_call_name): Likewise.
3726 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
3727 (build_simple_mem_ref_loc): New function.
3728 (mem_ref_offset): Likewise.
3729 * tree.h (build_simple_mem_ref_loc): Declare.
3730 (build_simple_mem_ref): Define.
3731 (mem_ref_offset): Declare.
3732 * fold-const.c: Include tree-flow.h.
3733 (operand_equal_p): Handle MEM_REF.
3734 (build_fold_addr_expr_with_type_loc): Likewise.
3735 (fold_comparison): Likewise.
3736 (fold_unary_loc): Fold
3737 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
3738 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
3739 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
3740 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
3741 (ptr_deref_may_alias_ref_p_1): Likewise.
3742 (ao_ref_base_alias_set): Properly differentiate base object for
3744 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
3745 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
3746 (indirect_refs_may_alias_p): Likewise.
3747 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
3749 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
3750 (call_may_clobber_ref_p_1): Likewise.
3751 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
3752 * expr.c (expand_assignment): Handle MEM_REF.
3753 (store_expr): Handle MEM_REFs from STRING_CSTs.
3754 (store_field): If expanding a MEM_REF of a non-addressable
3755 decl use bitfield operations.
3756 (get_inner_reference): Handle MEM_REF.
3757 (expand_expr_addr_expr_1): Likewise.
3758 (expand_expr_real_1): Likewise.
3759 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
3760 * alias.c (ao_ref_from_mem): Handle MEM_REF.
3761 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
3762 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
3763 (dr_analyze_indices): Likewise.
3764 (dr_analyze_alias): Likewise.
3765 (object_address_invariant_in_loop_p): Likewise.
3766 * gimplify.c (mark_addressable): Handle MEM_REF.
3767 (gimplify_cond_expr): Build MEM_REFs.
3768 (gimplify_modify_expr_to_memcpy): Likewise.
3769 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
3770 (gimple_fold_indirect_ref): Adjust.
3771 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
3772 * tree.def (MEM_REF): New tree code.
3773 * tree-dfa.c: Include toplev.h.
3774 (get_ref_base_and_extent): Handle MEM_REF.
3775 (get_addr_base_and_unit_offset): New function.
3776 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
3777 * gimple-fold.c (may_propagate_address_into_dereference): Handle
3779 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
3780 accesses if the array has just one dimension. Remove always true
3781 parameter. Do not require type compatibility here.
3782 (maybe_fold_offset_to_component_ref): Remove.
3783 (maybe_fold_stmt_indirect): Remove.
3784 (maybe_fold_reference): Remove INDIRECT_REF handling.
3785 Fold back to non-MEM_REF.
3786 (maybe_fold_offset_to_address): Simplify. Deal with type
3788 (maybe_fold_reference): Likewise.
3789 (maybe_fold_stmt_addition): Likewise. Also handle
3790 &ARRAY + I in addition to &ARRAY[0] + I.
3791 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
3792 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
3793 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
3794 * tree-ssa.c (useless_type_conversion_p): Make most pointer
3795 conversions useless.
3796 (warn_uninitialized_var): Handle MEM_REF.
3797 (maybe_rewrite_mem_ref_base): New function.
3798 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
3800 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
3801 INDIRECT_REF handling.
3802 (copy_tree_body_r): Handle MEM_REF.
3803 * gimple.c (is_gimple_addressable): Adjust.
3804 (is_gimple_address): Likewise.
3805 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
3806 invariant base are invariant.
3807 (is_gimple_min_lval): Adjust.
3808 (is_gimple_mem_ref_addr): New function.
3809 (get_base_address): Handle MEM_REF.
3810 (count_ptr_derefs): Likewise.
3811 (get_base_loadstore): Likewise.
3812 * gimple.h (is_gimple_mem_ref_addr): Declare.
3813 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
3814 * tree-cfg.c (verify_address): New function, split out from ...
3815 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
3816 the address operand of MEM_REFs. Verify MEM_REFs. Reject
3818 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
3819 INDIRECT_REF. Allow conversions.
3820 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
3821 a register does not change its size.
3822 (verify_types_in_gimple_reference): Verify MEM_REF.
3823 (verify_gimple_assign_single): Disallow INDIRECT_REF.
3825 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
3827 (mark_address_taken): Handle MEM_REF.
3828 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
3829 (get_asm_expr_operands): Pass opf_not_non_addressable.
3830 (get_expr_operands): Handle opf_[not_]non_addressable.
3831 Handle MEM_REF. Remove INDIRECT_REF handling.
3832 * tree-vrp.c (check_array_ref): Handle MEM_REF.
3833 (search_for_addr_array): Likewise.
3834 (check_array_bounds): Likewise.
3835 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
3836 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
3837 (ref_always_accessed_p): Likewise.
3838 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
3839 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
3841 * cgraphbuild.c (mark_load): Properly check for NULL result
3842 from get_base_address.
3843 (mark_store): Likewise.
3844 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
3845 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
3846 handling for MEM_REF.
3847 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
3848 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
3849 * builtins.c (stabilize_va_list_loc): Use the function ABI
3850 valist type if we couldn't canonicalize the argument type.
3851 Always dereference with the canonical va-list type.
3852 (maybe_emit_free_warning): Handle MEM_REF.
3853 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
3855 * builtins.c (fold_builtin_memory_op): Use ref-all types
3856 for all memcpy foldings.
3857 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
3858 (build_outer_var_ref): Likewise.
3859 (scan_omp_1_op): Likewise.
3860 (lower_rec_input_clauses): Likewise.
3861 (lower_lastprivate_clauses): Likewise.
3862 (lower_reduction_clauses): Likewise.
3863 (lower_copyprivate_clauses): Likewise.
3864 (expand_omp_atomic_pipeline): Likewise.
3865 (expand_omp_atomic_mutex): Likewise.
3866 (create_task_copyfn): Likewise.
3867 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
3868 Remove old union trick. Initialize constant offsets.
3869 (ao_ref_init_from_vn_reference): Likewise. Do not handle
3870 INDIRECT_REF. Init base_alias_set properly.
3871 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
3872 (vn_reference_fold_indirect): Adjust for MEM_REFs.
3873 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
3875 (may_insert): Remove.
3876 (visit_reference_op_load): Do not test may_insert.
3877 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
3878 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
3879 a field to store the constant offset this op applies.
3880 (run_scc_vn): Adjust prototype.
3881 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
3882 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
3883 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
3884 bother about volatile qualifiers on pointers.
3885 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
3886 * tree-ssa-loop-ivopts.c
3887 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
3888 (strip_offset_1): Likewise.
3889 (find_interesting_uses_address): Replace INDIRECT_REF handling with
3891 (get_computation_cost_at): Likewise.
3892 * ipa-pure-const.c (check_op): Handle MEM_REF.
3893 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
3894 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
3896 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
3897 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
3898 (eliminate_local_variables_1): Likewise.
3899 (create_call_for_reduction_1): Likewise.
3900 (create_loads_for_reductions): Likewise.
3901 (create_loads_and_stores_for_name): Likewise.
3902 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
3903 (ssa_accessed_in_tree): Handle MEM_REF.
3904 (ssa_accessed_in_assign_rhs): Likewise.
3905 (update_type_size): Likewise.
3906 (analyze_accesses_for_call_stmt): Likewise.
3907 (analyze_accesses_for_assign_stmt): Likewise.
3908 (transform_access_sites): Likewise.
3909 (transform_allocation_sites): Likewise.
3910 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
3911 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
3912 not handle INDIRECT_REF.
3913 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
3914 (cond_store_replacement): Likewise.
3915 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
3916 MEM_REF, no not handle INDIRECT_REFs.
3917 (insert_into_preds_of_block): Properly initialize avail.
3918 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
3919 for ARRAY_REFs. Properly handle reference lookups that
3920 require a bit re-interpretation.
3921 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
3922 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
3923 (build_ref_for_offset_1): Remove.
3924 (build_ref_for_offset): Build MEM_REFs.
3925 (gate_intra_sra): Disable for now.
3926 (sra_ipa_modify_expr): Handle MEM_REF.
3927 (ipa_early_sra_gate): Disable for now.
3928 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
3930 (disqualify_base_of_expr): Likewise.
3931 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
3933 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
3934 Use mem_ref_offset. Remove bogus folding.
3935 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
3936 (make_fancy_name_1): Add support for MEM_REF.
3937 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
3938 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
3939 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
3940 (compute_complex_ancestor_jump_func): Likewise.
3941 (ipa_analyze_virtual_call_uses): Likewise.
3942 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
3943 INDIRECT_REF folding with more generalized MEM_REF folding.
3944 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
3945 (forward_propagate_addr_into_variable_array_index): Also handle
3946 &ARRAY + I in addition to &ARRAY[0] + I.
3947 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
3948 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
3949 creates assignments with overlap.
3950 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
3951 (get_frame_field): Likewise.
3952 (get_nonlocal_debug_decl): Likewise.
3953 (convert_nonlocal_reference_op): Likewise.
3954 (struct nesting_info): Add mem_refs pointer-set.
3955 (create_nesting_tree): Allocate it.
3956 (convert_local_reference_op): Insert to be folded mem-refs.
3957 (fold_mem_refs): New function.
3958 (finalize_nesting_tree_1): Perform defered folding of mem-refs
3959 (free_nesting_tree): Free the pointer-set.
3960 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
3961 (vectorizable_load): Likewise.
3962 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
3963 (propagate_with_phi): Likewise.
3964 * tree-object-size.c (addr_object_size): Handle MEM_REFs
3965 instead of INDIRECT_REFs.
3966 (compute_object_offset): Handle MEM_REF.
3967 (plus_stmt_object_size): Handle MEM_REF.
3968 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
3970 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
3971 (symbol_marked_for_renaming): Likewise.
3972 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
3973 (fold-const.o): Add $(TREE_FLOW_H).
3974 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
3975 (find_func_clobbers): Likewise.
3976 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
3977 (decompose_access): Likewise.
3978 (replace_field_acc): Likewise.
3979 (replace_field_access_stmt): Likewise.
3980 (insert_new_var_in_stmt): Likewise.
3981 (get_stmt_accesses): Likewise.
3982 (reorg_structs_drive): Disable.
3983 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
3984 (ix86_canonical_va_list_type): Likewise.
3986 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
3989 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
3990 * target.def (struct gcc_target): Replace enum reg_class with
3991 reg_class_t in hook argument / return types.
3992 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
3993 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
3994 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
3995 * targhooks.h (default_branch_target_register_class): Likewise.
3996 (default_ira_cover_classes, default_secondary_reload): Likewise.
3997 (default_memory_move_cost, default_register_move_cost): Likewise.
3998 * targhooks.c (default_branch_target_register_class): Likewise.
3999 (default_ira_cover_classes, default_secondary_reload): Likewise.
4000 (default_memory_move_cost, default_register_move_cost): Likewise.
4001 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
4002 * bt-load.c (branch_target_load_optimize): Likewise.
4003 * ira.c (setup_cover_and_important_classes): Likewise.
4004 * ira-costs.c (copy_cost): Likewise.
4005 * reload1.c (emit_input_reload_insns): Likewise.
4006 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
4007 * config/frv/frv.c (frv_secondary_reload): Likewise.
4008 * config/s390/s390.c (s390_secondary_reload): Likewise.
4009 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
4010 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
4011 (ix86_register_move_cost): Likewise.
4012 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
4013 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
4014 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
4015 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
4016 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
4017 (rs6000_ira_cover_classes): Likewise.
4018 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
4019 * config/picochip/picochip-protos.h (picochip_secondary_reload):
4021 * config/pa/pa.c (pa_secondary_reload): Likewise.
4022 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
4023 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
4024 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
4025 * doc/tm.texi: Regenerate.
4027 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
4030 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
4032 (build_alias_set_optimal_p): Likewise.
4033 (build_base_obj_set_for_drs): Likewise.
4035 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
4037 * target.def: Remove comment about licensing problems of function
4040 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
4041 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
4042 * doc/tm.texi: Regenerate.
4044 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
4045 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
4047 * target.def (enum_va_list_p): Use DEFHOOK.
4048 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
4049 Rename ptype to ptree.
4050 * doc/tm.texi: Regenerate.
4052 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
4053 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
4054 * doc/tm.texi: Regenerate.
4056 * target.def (memory_move_cost): Use DEFHOOK.
4057 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
4058 Rename regclass AKA class to rclass.
4059 * doc/tm.texi: Regenerate.
4061 * target.def (pragma_parse): Use DEFHOOK.
4062 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
4063 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
4064 * doc/tm.texi: Regenerate.
4066 * target.def (pass_by_reference): Use DEFHOOK.
4067 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
4068 * doc/tm.texi: Regenerate.
4070 * target.def (resolve_overloaded_builtin): Rename params to arglist.
4072 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
4073 * doc/tm.texi: Regenerate.
4075 * target.def (return_pops_args): Use DEFHOOK.
4076 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
4077 Rename stack-size to size.
4078 * doc/tm.texi: Regenerate.
4080 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
4081 last-sched_cycle to last_clock, cur_cycle to clock.
4082 * doc/tm.texi.in: Use @hook.
4083 * doc/tm.texi: Regenerate.
4085 * target.def (print_operand, print_operand_address): Update comment.
4086 (print_operand_punct_valid_p): Likewise.
4088 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4090 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
4092 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
4093 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
4095 * regrename.c: Do not include toplev.h. Include rtl-error.h.
4096 * rtl-error.c: Likewise.
4097 * reload.c: Likewise.
4098 * recog.c: Likewise.
4099 * sel-sched.c: Likewise.
4100 * function.c: Likewise.
4101 * reg-stack.c: Likewise.
4102 * cfgrtl.c: Likewise.
4103 * reload1.c: Likewise.
4104 * final.c: Include rtl-error.
4105 * Makefile.in: Adjust dependencies.
4107 2010-06-30 Jan Hubicka <jh@suse.cz>
4109 PR middle-end/PR44706
4110 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
4111 to return the value.
4113 2010-06-30 Michael Matz <matz@suse.de>
4116 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
4117 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
4118 a gimple reg, attach the original VDEF to the last store in the
4121 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
4124 * config/darwin.c (darwin_override_options): Use renamed
4125 targetm.asm_out.emit_unwind_label.
4127 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
4129 PR tree-optimization/39799
4130 * tree-inline.c (remap_ssa_name): Initialize variable only if
4131 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4133 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
4135 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
4137 2010-06-30 Richard Guenther <rguenther@suse.de>
4140 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
4141 against oscillation with reverse peephole2.
4143 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
4146 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
4149 2010-06-30 Nick Clifton <nickc@redhat.com>
4151 * config/rx/rx-modes.def: New file.
4152 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
4153 (CC_REGNUM): Define.
4154 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
4156 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
4157 (SELECT_CC_MODE): Define.
4158 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
4159 (reg:CC CC_REG) instead of (cc0).
4160 (attr "cc"): Delete.
4161 (cbranchsi4): Do not split compare and branch here. Instead move
4163 (cbranchsi4_<code>): ... here. New patterns.
4164 (cmpsi): Call rx-compare_redundant to find out if it is necessary
4165 to emit the compare instruction.
4166 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
4168 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
4169 FIRST_PSEUDO_REGNUM.
4170 (rx_expand_prologue, rx_expand_epilogue): Likewise.
4171 (rx_notice_update_cc): Delete.
4172 (rx_cc_modes_compatible): New function.
4173 (flags_needed_for_conditional): New function.
4174 (flags_from_mode): New function.
4175 (rx_compare_redundant): New function - scans backwards through
4176 insn list to find out if condition flags are already set correctly.
4177 (TARGET_CC_MODES_COMPATIBLE): Define.
4178 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
4180 * config/rx/rx.h (BRANCH_COST): Define.
4181 (REGISTER_MOVE_COST): Define.
4182 * config/rx/predicates (rx_source_operand): Allow all constant types.
4183 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
4184 (tstsi4): New pattern.
4185 * config/rx/rx.c (rx_memory_move_cost): Define.
4186 (TARGET_MEMORY_MOVE_COST): Define.
4188 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4190 * tree.h (block_may_fallthru): Declare here.
4191 * tree-flow.h (block_may_fallthru): Do not declare here.
4192 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
4194 * Makefile.in (c-typeck.o): Update dependencies.
4196 2010-06-30 Jakub Jelinek <jakub@redhat.com>
4199 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
4200 * cselib.c (cfa_base_preserved_regno): New static variable.
4201 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
4202 of REGNO (cfa_base_preserved_val->locs->loc).
4203 (cselib_preserve_cfa_base_value): Add regno argument, set
4204 cfa_base_preserved_regno to it.
4205 (cselib_invalidate_regno): Allow removal of registers other than
4206 cfa_base_preserved_regno from cfa_base_preserved_val.
4207 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
4208 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
4209 of MEM addresses, if not on LHS.
4210 (reverse_op): Don't add reverse ops for cfa_base_rtx.
4211 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
4213 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
4215 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
4217 (peep2_buf_position): New static function.
4218 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
4219 peephole2_optimize): Use it.
4220 (peep2_attempt, peep2_update_life): New static functions, broken out
4221 of peephole2_optimize.
4222 (peep2_fill_buffer): New static function.
4223 (peephole2_optimize): Change the main loop to try to fill the buffer
4224 with the maximum number of insns before matching them against
4225 peepholes. Use a forward scan. Remove special case for targets with
4226 conditional execution.
4227 * genrecog.c (change_state): Delete dead code.
4228 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
4229 Rewrite so as not to expect the second insn to have had a peephole
4232 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
4234 * genhooks.c (emit_findices): Cast field precision to int.
4235 (emit_documentation): Likewise.
4237 2010-06-29 Jakub Jelinek <jakub@redhat.com>
4239 PR tree-optimization/43801
4240 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
4241 if old_decl was DECL_ONE_ONLY.
4244 * dwarf2out.c (add_accessibility_attribute): New function.
4245 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
4246 instead of adding DW_AT_accessibility manually.
4247 (gen_enumeration_type_die, gen_struct_or_union_type_die,
4248 gen_typedef_die): Use it.
4250 2010-06-29 Douglas B Rupp <rupp@gnat.com>
4252 * vmsdbgout.c (full_name): Just output the file name if not native.
4254 2010-06-29 Douglas B Rupp <rupp@gnat.com>
4256 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
4257 (funcnam_table): New static table.
4258 (funcnum_table): New static table.
4259 (write_rtnbeg): Write value saved in funcnum_table.
4260 (write_rtnend): Write value saved in funcnum_table.
4261 (vmsdbgout_begin_function): Save current function info in
4262 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
4263 (vmsdbgout_finish): Iterate over funcnum_table.
4265 2010-06-29 Douglas B Rupp <rupp@gnat.com>
4267 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
4268 (vmsdbgout_type_decl): Declare
4269 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
4270 (FUNC_EPILOGUE_LABEL): New macro
4271 (vmsdbgout_begin_epilogue): New function.
4272 (vmsdbgout_type_decl): New function.
4274 2010-06-29 Douglas B Rupp <rupp@gnat.com>
4276 * vmsdbg.h: Update copyright.
4278 2010-06-29 Douglas B Rupp <rupp@gnat.com>
4280 * vmsdbg.h (DST_K_TBG): New DST constant.
4281 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
4282 (write_modbeg): Cast module_language to avoid warning.
4283 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
4285 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4288 * target.def, doc/tm.texi.in, genhooks.c: New files.
4289 * target.h: Instead of defining individual hook members,
4290 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
4292 * target-def.h: Instead of defining individual hook initializers,
4293 include target-hooks-def.h.
4294 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
4295 targetm.live_on_entry -> targetm.extra_live_on_entry
4296 targetm.sched.md_finish ->targetm.sched.finish
4297 targetm.sched.md_init -> targetm.sched.init
4298 targetm.sched.md_init_global -> targetm.sched.init_global
4299 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
4300 targetm.asm_out.except_table_label ->
4301 targetm.asm_out.emit_except_table_label
4302 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
4303 targetm.target_help -> targetm.help
4304 targetm.vectorize.builtin_support_vector_misalignment ->
4305 targetm.vectorize.support_vector_misalignment
4306 targetm.file_start_app_off -> targetm.asm_file_start_app_off
4307 targetm.file_start_file_directive ->
4308 targetm.asm_file_start_file_directive
4309 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
4310 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
4311 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
4312 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
4313 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
4314 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
4315 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
4316 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
4317 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
4318 * Makefile.in (TARGET_H): Depend on target.def.
4319 (TARGET_DEF_H): Depend on target-hooks-def.h.
4320 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
4321 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
4322 * doc/tm.texi: Regenerate.
4324 * Makefile.in (s-tm-texi): Remove stray tab / rule.
4326 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
4327 (targetm.sched.init): Likewise.
4329 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
4332 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
4333 (function_arg_advance_32): Const-ify TYPE parameter.
4334 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
4335 (ix86_function_arg_advance): Change type of NAMED to bool.
4336 (function_arg_32): Const-ify CUM and TYPE parameters.
4337 (function_arg_64): Likewise. Change type of NAMED to bool.
4338 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
4340 (ix86_function_arg): Change type of NAMED to bool.
4341 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
4342 last argument as a bool.
4344 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4346 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
4347 (OVERRIDE_OPTIONS): Add note of obsolescence.
4348 Replace references with references to TARGET_OPTION_OVERRIDE.
4349 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
4351 * targhooks.c (default_target_option_override): New function.
4352 * targhooks.h (default_target_option_override): Declare.
4353 * target.h (struct gcc_target): Add override member to
4354 target_option member.
4355 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
4356 targetm.target_option.override call.
4357 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
4358 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
4360 2010-06-29 Jan Hubicka <jh@suse.cz>
4362 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
4364 2010-06-29 Jan Hubicka <jh@suse.cz>
4366 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
4368 (rebuild_frequencies): New function.
4369 * predict.h (rebuild_frequencies): Declare.
4370 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
4371 entry block and edge reaching new_entry.
4372 (tree_function_versioning): When doing partial cloning, rebuild
4373 frequencies when done.
4374 * passes.c (execute_function_todo): Use rebild_frequencies.
4376 2010-06-29 Richard Guenther <rguenther@suse.de>
4378 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
4379 * tree-flow.h (enum noalias_state): Remove.
4380 (struct var_ann_d): Remove noalias_state member.
4382 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
4385 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
4386 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
4387 (maddhidi4): Likewise.
4389 Revert parts of the change for PR25130.
4390 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
4393 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
4395 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
4396 targetm.calls.function_incoming_arg, and
4397 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
4398 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
4399 * target.h (struct gcc_target): Add function_arg_advance,
4400 function_arg, and function_incoming_arg fields.
4401 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
4402 (TARGET_FUNCTION_INCOMING_ARG): Define.
4403 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
4404 and TARGET_FUNCTION_INCOMING_ARG.
4405 * targhooks.h (default_function_arg_advance): Declare.
4406 (default_function_arg, default_function_incoming_arg): Declare.
4407 * targhooks.c (default_function_arg_advance): New function.
4408 (default_function_arg, default_function_incoming_arg): New function.
4409 * config/i386/i386.c (function_arg_advance): Rename to...
4410 (ix86_function_arg_advance): ...this. Make static.
4411 (function_arg): Rename to...
4412 (ix86_function_arg): ...this. Make static.
4413 (TARGET_FUNCTION_ARG_ADVANCE): Define.
4414 (TARGET_FUNCTION_ARG): Define.
4415 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
4416 (FUNCTION_ARG): Delete.
4417 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
4418 (function_arg): Delete prototype.
4420 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
4422 * reginfo.c (init_reg_sets_1): Adjust comments.
4423 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
4424 * calls.c (prepare_call_address): Likewise.
4425 (emit_call_1): Use targetm.calls.return_pops_args.
4426 (expand_call): Likewise.
4427 * function.c (assign_parms): Likewise.
4428 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
4429 * target.h (struct gcc_target) [struct calls]: Add
4430 return_pops_args field.
4431 * targhooks.h (default_return_pops_args): Declare.
4432 * targhooks.c (default_return_pops_args): Define.
4433 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
4434 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
4435 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
4436 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
4438 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
4439 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
4440 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
4441 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
4442 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
4443 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
4444 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
4445 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
4446 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
4447 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
4448 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
4449 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
4450 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
4451 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
4452 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
4453 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
4454 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
4455 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
4456 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
4457 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
4458 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
4459 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
4460 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
4461 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
4462 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
4463 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
4464 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
4465 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
4466 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
4467 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
4468 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
4469 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
4470 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
4471 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
4472 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
4473 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
4474 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
4475 * config/i386/i386.c (ix86_return_pops_args): Make static.
4477 (TARGET_RETURN_POPS_ARGS): Define.
4478 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
4479 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
4480 (TARGET_RETURN_POPS_ARGS): Define.
4481 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
4482 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
4483 (TARGET_RETURN_POPS_ARGS): Define.
4485 2010-06-29 Richard Guenther <rguenther@suse.de>
4488 * tree-inline.c (initialize_inlined_parameters): Make sure
4489 to remap the inlined parameter variable substitutions types.
4491 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
4493 PR rtl-optimization/44659
4494 * combine.c (make_compound_operation) <SUBREG>: Do not return the
4495 result of force_to_mode if it partially re-expanded the compound.
4497 2010-06-28 Jan Hubicka <jh@suse.cz>
4500 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
4503 2010-06-28 Anatoly Sokolov <aesok@post.ru>
4505 * double-int.h (force_fit_type_double): Remove declaration.
4506 * double-int.c (force_fit_type_double): Move to tree.c.
4507 * tree.h (force_fit_type_double): Declare.
4508 * tree.h (force_fit_type_double): Moved from double-int.c. Use
4509 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
4510 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
4511 * convert.c (convert_to_pointer): Adjust call to
4512 force_fit_type_double.
4513 * tree-vrp.c (extract_range_from_assert,
4514 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
4515 * fold-const.c: Update comment.
4516 (int_const_binop, fold_convert_const_int_from_int,
4517 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
4518 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
4519 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
4520 round_up_loc): Adjust call to force_fit_type_double.
4522 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4524 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
4526 2010-06-28 Martin Jambor <mjambor@suse.cz>
4528 * tree-sra.c (convert_callers): New parameter, change fndecls of
4530 (modify_function): Pass the old decl to convert_callers.
4532 2010-06-28 Martin Jambor <mjambor@suse.cz>
4534 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
4535 ipa_check_create_node_params and ipa_initialize_node_params with
4536 checking asserts they are not necessary.
4538 2010-06-28 Jan Hubicka <jh@suse.cz>
4540 PR tree-optimization/44687
4541 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
4543 2010-06-28 Martin Jambor <mjambor@suse.cz>
4546 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
4547 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
4548 instead of BINFO_BASE_BINFO.
4550 2010-06-28 Michael Matz <matz@suse.de>
4553 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
4554 proper VDEF chain for intermediate stores in the sequence.
4556 2010-06-28 Jan Hubicka <jh@suse.cz>
4558 PR tree-optimization/44357
4559 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
4560 uninlinable functions.
4562 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4564 * config.gcc (powerpc*-*-*): Handle titan.
4565 * config/rs6000/rs6000.c (titan_cost): New costs.
4566 (rs6000_override_options): Add "titan" to processor_target_table.
4567 Add Titan to branch alignment logic.
4568 Correctly set rs6000_cost for titan.
4569 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
4570 * config/rs6000/titan.md: New file.
4571 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
4573 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
4575 * tree-browser.c (TB_history_stack): Convert to a VEC.
4576 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
4577 (TB_history_prev): Likewise.
4579 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
4581 * vec.h (vec_heap_free): Add parentheses around free.
4583 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4585 * system.h: Poison GCC_EXCEPT_H for front-end files.
4587 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
4589 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
4590 Define to NULL by default.
4591 * except.h: Define GCC_EXCEPT_H.
4592 (doing_eh): Remove prototype.
4593 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
4594 (lang_protect_cleanup_actions): Remove.
4595 * except.c (lang_protect_cleanup_actions): Remove.
4597 (gen_eh_region): Don't check doing_eh here.
4598 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
4599 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
4600 instead of lang_protect_cleanup_actions.
4601 * omp-low.c (maybe_catch_exception): Likewise.
4602 * Makefile.in: Update dependencies.
4604 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
4606 * cgraph.h (struct varpool_node): new used_from_object_file flag.
4607 (struct cgraph_local_info): new used_from_object_file flag.
4608 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
4609 (cgraph_clone_node): initialize used_from_object_file.
4610 (cgraph_create_virtual_clone): initialize used_from_object_file.
4611 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
4612 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
4613 when compiling with -fwhole-program.
4614 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
4616 * ipa.c (function_and_variable_visibility): Set externally_visible
4617 flag of varpool_node if used_from_object_file flag is set.
4618 (cgraph_externally_visible_p): check used_from_object_file flag.
4619 * doc/invoke.texi (-fwhole-program option): Change description of
4620 externally_visible attribute accordingly.
4621 * doc/extend.texi (externally_visible): Ditto.
4623 2010-06-27 Jan Hubicka <jh@suse.cz>
4625 * params.def (max-inline-insns-auto): Default to 40.
4626 * doc/invoke.texi (max-inline-insns-auto): Document the change.
4628 2010-06-27 Jan Hubicka <jh@suse.cz>
4632 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
4634 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
4635 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
4637 2010-06-27 Anatoly Sokolov <aesok@post.ru>
4639 * target.h (struct gcc_target): Add register_move_cost field.
4640 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
4641 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
4642 * targhooks.c (default_register_move_cost): New function.
4643 * targhooks.h (default_register_move_cost): Declare function.
4644 * defaults.h (REGISTER_MOVE_COST): Delete.
4645 * ira-int.h (ira_register_move_cost): Update comment.
4646 * ira.c (ira_register_move_cost): Update comment.
4647 * reload.h (register_move_cost): Declare.
4648 * reginfo.c (register_move_cost): New function.
4649 (move_cost): Update comment.
4650 (init_move_cost, memory_move_secondary_cost): Replace
4651 REGISTER_MOVE_COST with register_move_cost.
4652 * postreload.c (reload_cse_simplify_set): (Ditto.).
4653 * reload.c (find_valid_class, find_reloads): (Ditto.).
4654 * reload1.c (choose_reload_regs): (Ditto.).
4655 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
4656 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
4657 * doc/md.texi (can_create_pseudo_p): Update documentation.
4659 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
4660 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
4661 * config/i386/i386.h (ix86_memory_move_cost): Make static.
4662 (TARGET_MEMORY_MOVE_COST): Define.
4664 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
4665 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
4666 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
4667 (TARGET_MEMORY_MOVE_COST): Define.
4669 2010-06-27 Richard Guenther <rguenther@suse.de>
4671 PR tree-optimization/44683
4672 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
4673 false edge from the inverted condition.
4675 2010-06-27 Richard Guenther <rguenther@suse.de>
4678 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
4679 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
4680 for register LHS. Or non-store assignments.
4682 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
4684 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
4685 (sparc_emit_set_const64): Likewise. Remove disabled code.
4686 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
4687 (sparc_emit_set_const64): Likewise.
4689 2010-06-26 Catherine Moore <clm@codesourcery.com>
4691 * config/mips/mips.md (alu_type): New attribute.
4692 (type): Infer type from alu_type.
4693 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
4694 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
4695 *subsi3_extended, negsi2, negdi2, *low<mode>,
4696 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
4697 xor<mode>3, *nor<mode>3,
4698 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
4699 *zero_extendhi_truncqi): Set alu_type instead of type.
4701 2010-06-26 Douglas B Rupp <rupp@gnat.com>
4703 * config/alpha/alpha.c (alpha_need_linkage): Adjust
4704 splay_tree_new_ggc call.
4705 (alpha_use_linkage): Likewise.
4707 2010-06-26 Joseph Myers <joseph@codesourcery.com>
4709 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
4710 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
4711 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
4712 (static_specs): Remove switches_need_spaces.
4713 (process_command, do_self_spec): Hardcode handling "-o" instead of
4714 checking switches_need_spaces.
4715 * system.h (SWITCHES_NEED_SPACES): Poison.
4717 2010-06-26 Richard Guenther <rguenther@suse.de>
4719 PR tree-optimization/44393
4720 * tree-loop-distribution.c (generate_loops_for_partition): Fix
4721 stmt removal and VOP renaming.
4722 (generate_memset_zero): Remove redundant stmt updating.
4723 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
4724 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
4726 2010-06-26 Jan Hubicka <jh@suse.cz>
4728 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
4729 edges comming from header are equivalent.
4730 (visit_bb): Handle PHIs correctly.
4731 * tree-inline.c (copy_phis_for_bb): Be able to copy
4732 PHI from entry edge.
4733 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
4735 2010-06-26 Richard Guenther <rguenther@suse.de>
4738 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
4739 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
4741 2010-06-26 Joseph Myers <joseph@codesourcery.com>
4743 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
4744 add_infile, alloc_switch): New.
4745 (process_command): Remove variable lang_n_infiles. Process
4746 options in a single pass. Use new functions for allocating
4747 infiles and switches arrays. Properly skip operands of
4748 -Xpreprocessor and -Xassembler.
4750 2010-06-26 Jan Hubicka <jh@suse.cz>
4753 * cgraphunit.c (cgraph_function_versioning): Remove wrong
4754 cgraph_make_decl_local call; fix typo copying RTL data.
4756 2010-06-25 DJ Delorie <dj@redhat.com>
4758 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
4759 (m32c_output_aligned_common): Likewise.
4760 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
4761 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
4762 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
4763 (m32c_register_pragmas): Register it.
4764 * config/m32c/m32c.c (m32c_get_pragma_address): New.
4765 (m32c_insert_attributes): Set #pragma address decls volatile.
4766 (pragma_entry_eq): New.
4767 (pragma_entry_hash): New.
4768 (m32c_note_pragma_address): New.
4769 (m32c_get_pragma_address): New.
4770 (m32c_output_aligned_common): New.
4771 * doc/extend.texi: Document the new pragma.
4773 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
4775 * config/m32c/predicates.md (m32c_any_operand): Check the code
4776 instead of memory_operand so as to allow matching volatile MEMs.
4777 (m32c_nonimmediate_operand): Likewise.
4778 (mra_operand): Allow volatiles.
4780 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
4783 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
4784 address if the offset is unknown.
4786 2010-06-25 Douglas B Rupp <rupp@gnat.com>
4788 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
4789 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
4790 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
4791 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
4792 to ia64_start_function. Invoke it.
4793 * config/ia64/ia64.c (ia64_start_function): Call new function
4794 dwarf2out_vms_debug_main_pointer.
4796 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
4798 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
4799 statements computing the true predicate.
4801 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
4803 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
4804 to boolean_true_node.
4805 (reset_bb_predicate): New.
4806 (predicate_bbs): Call reset_bb_predicate.
4808 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
4810 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
4811 (tree_if_conversion): Returns true when something has been changed.
4812 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
4815 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
4817 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
4818 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
4819 * tree-if-conv.c: Include dbgcnt.h.
4820 (tree_if_conversion): Use if_conversion_tree to count the number of
4821 if-convertible loops.
4823 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
4825 * common.opt (fprefetch-loop-arrays): Re-define
4826 -fprefetch-loop-arrays as a tri-state option with the initial
4828 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
4829 pass only when flag_prefetch_loop_arrays > 0.
4830 * toplev.c (process_options): Note that, with tri-states,
4831 flag_prefetch_loop_arrays>0 means prefetching is enabled.
4832 * config/i386/i386.c (override_options): Enable prefetching at -O3
4833 for a set of CPUs that sw prefetching is helpful.
4834 (software_prefetching_beneficial_p): New. Return TRUE if software
4835 prefetching is beneficial for the given CPU.
4837 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
4839 PR rtl-optimization/44326
4840 * implicit-zee.c (find_removable_zero_extends): Replace
4841 INSN_P with NONDEBUG_INSN_P.
4843 2010-06-25 Martin Jambor <mjambor@suse.cz>
4845 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
4846 (struct ipa_node_params): Removed the modification_analysis_done flag.
4847 (ipa_is_param_modified): Removed.
4848 (ipa_analyze_node): Declare.
4849 (ipa_compute_jump_functions): Remove declaration.
4850 (ipa_count_arguments): Likewise.
4851 (ipa_detect_param_modifications): Likewise.
4852 (ipa_analyze_params_uses): Likewise.
4853 * ipa-prop.c (struct param_analysis_info): New type.
4854 (visit_store_addr_for_mod_analysis): Removed.
4855 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
4856 moved down in the file.
4857 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
4858 (ipa_count_arguments): Made static.
4859 (mark_modified): New function.
4860 (is_parm_modified_before_call): New function.
4861 (compute_pass_through_member_ptrs): New parameter parms_info, call
4862 is_parm_modified_before_call instead of ipa_is_param_modified.
4863 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
4864 it to compute_pass_through_member_ptrs.
4865 (ipa_compute_jump_functions): New parameter parms_info, pass it to
4866 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
4867 on the callee if it is analyzed. Made static.
4868 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
4869 is_parm_modified_before_call instead of ipa_is_param_modified.
4870 (ipa_analyze_call_uses): New parameter parms_info, pass it to
4871 ipa_analyze_indirect_call_uses.
4872 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
4873 ipa_analyze_call_uses.
4874 (ipa_analyze_params_uses): New parameter parms_info, pass it to
4875 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
4876 (ipa_analyze_node): New function.
4877 (ipa_print_node_params): Do not dump the modified flag.
4878 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
4879 it. Do not stream the modified parameter flag.
4880 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
4881 it. Do not stream the modified parameter flag.
4882 * ipa-cp.c (ipcp_analyze_node): Removed.
4883 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
4884 with only a call to ipa_analyze_node.
4885 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
4886 node with only a call to ipa_analyze_node.
4888 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
4890 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
4892 2010-06-25 Jan Hubicka <jh@suse.cz>
4894 * tree-pass.h (pass_split_functions): Declare.
4895 * opts.c (decode_options): Enable function splitting at -O2
4896 * timevar.def (TV_IPA_FNSPLIT): New macro.
4897 * ipa-split.c: New file.
4898 * common.opt (-fpartial-inlining): New flag.
4899 * Makefile.in (ipa-split.o): New object file.
4900 * passes.c (init_optimization_passes): Add ipa-split.
4901 * params.def (partial-inlining-entry-probability): New parameters.
4902 * doc/invoke.texi (-fpartial-inlining): New.
4904 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
4907 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
4908 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
4909 (gimplify_expr): Likewise.
4911 2010-06-25 Martin Jambor <mjambor@suse.cz>
4913 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
4914 statements instead of bailing out on them.
4915 (ipa_analyze_indirect_call_uses): Do not require that loads from the
4916 parameter are in the same BB as the condition. Update comments.
4918 2010-06-25 Jakub Jelinek <jakub@redhat.com>
4921 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
4922 true or always false, return NULL_TREE.
4923 (tree_unswitch_single_loop): Optimize conditions even when reaching
4924 max-unswitch-level parameter. If num > 0, optimize first all conditions
4925 using entry checks, then do still reachable block discovery and consider
4926 only conditions in still reachable basic blocks in the loop.
4928 PR tree-optimization/44539
4929 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
4930 the call doesn't have LHS, but has VDEF.
4932 2010-06-25 Joseph Myers <joseph@codesourcery.com>
4934 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
4935 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
4936 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
4937 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
4938 * system.h (MODIFY_TARGET_NAME): Poison.
4940 2010-06-25 Alan Modra <amodra@gmail.com>
4942 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
4943 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
4944 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
4945 CMODEL_LARGE as default.
4946 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
4947 (offsettable_ok_by_alignment): Delete.
4948 (rs6000_emit_move): Remove mcmodel=medium optimization.
4950 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
4952 With large parts from Jim Wilson:
4954 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
4955 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
4956 * optabs.c (optab_for_tree_code): Likewise.
4957 (expand_widen_pattern_expr): Likewise.
4958 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
4959 out of execute_optimize_widening_mul.
4960 (convert_plusminus_to_widen): New function.
4961 (execute_optimize_widening_mul): Use the two new functions.
4962 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
4963 Remove code to generate widening multiply-accumulate. Add support
4964 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
4965 * gimple-pretty-print.c (dump_ternary_rhs): New function.
4966 (dump_gimple_assign): Call it when appropriate.
4967 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
4968 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
4969 (expand_gimple_stmt_1): Likewise.
4970 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
4971 WIDEN_MULT_MINUS_EXPR.
4972 * tree-ssa-operands.c (get_expr_operands): Likewise.
4973 * tree-inline.c (estimate_operator_cost): Likewise.
4974 * gimple.c (extract_ops_from_tree_1): Renamed from
4975 extract_ops_from_tree. Add new arg for a third operand; fill it.
4976 (gimple_build_assign_stat): Support operations with three operands.
4977 (gimple_build_assign_with_ops_stat): Likewise.
4978 (gimple_assign_set_rhs_from_tree): Likewise.
4979 (gimple_assign_set_rhs_with_ops_1): Renamed from
4980 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
4981 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
4982 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
4983 WIDEN_MULT_MINUS_EXPR.
4984 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
4985 (extract_ops_from_tree_1): Adjust declaration.
4986 (gimple_assign_set_rhs_with_ops_1): Likewise.
4987 (gimple_build_assign_with_ops): Pass NULL for last operand.
4988 (gimple_build_assign_with_ops3): New macro.
4989 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
4990 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
4992 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
4993 (verify_gimple_assign): Call it.
4994 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
4995 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
4996 functions for dealing with three-operand statements.
4997 * tree.c (commutative_ternary_tree_code): New function.
4998 * tree.h (commutative_ternary_tree_code): Declare it.
4999 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
5001 (gimple_assign_nonzero_warnv_p): Likewise.
5002 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
5003 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
5004 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
5005 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
5006 (struct hashtable_expr): New member ternary in the union.
5007 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
5008 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
5009 (iterative_hash_hashable_expr): Likewise.
5010 (print_expr_hash_elt): Handle EXPR_TERNARY.
5011 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
5012 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
5013 statements. Handle GIMPLE_TERNARY_RHS.
5015 2010-06-25 Jan Hubicka <jh@suse.cz>
5017 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
5019 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
5022 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
5023 parameters are not good.
5024 (c_parser_parameter_declaration): Error unknown type name if the type
5025 name can't start declaration specifiers.
5027 2010-06-25 Joseph Myers <joseph@codesourcery.com>
5029 * gcc.c (translate_options): Don't mention +e in comment.
5030 (process_command): Don't handle +e specially.
5032 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
5034 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
5036 * ira-build.c (merge_hard_reg_conflicts): New function.
5037 (create_cap_allocno, copy_info_to_removed_store_destinations,
5038 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
5039 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
5040 (remove_unnecessary_allocnos, remove_low_level_allocnos)
5041 copy_nifo_to_removed_store_destination): Use them.
5042 * ira-lives.c (make_hard_regno_born): New function, split out of
5044 (make_allocno_born): Likewise.
5045 (make_hard_regno_dead): New function, split out of make_regno_dead.
5046 (make_allocno_dead): Likewise.
5047 (inc_register_pressure): New function, split out of set_allocno_live.
5048 (dec_register_pressure): New function, split out of clear_allocno_live.
5049 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
5050 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
5051 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
5052 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
5053 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
5054 mark_pseudo_regno_live.
5055 (process_bb_node_lives): Use mark_pseudo_regno_live,
5056 make_hard_regno_born and make_allocno_dead.
5057 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
5058 set_allocno_live, clear_allocno_live): Delete functions.
5060 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
5061 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
5063 (ira_flattening): Use ira_parent_allocno.
5064 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
5065 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
5067 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
5070 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
5071 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
5072 minmax_set_iter_cond, minmax_set_iter_next,
5073 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
5074 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
5075 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
5076 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
5079 * ira-int.h (struct live_range, live_range_t): Renamed from struct
5080 ira_allocno_live_range and allocno_live_range_t; all uses changed.
5081 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
5084 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
5086 * thumb2.md (thumb2_tlobits_cbranch): Delete.
5087 (peephole2 to convert zero_extract/compare of single bit to
5088 lshift/compare): New.
5090 2010-06-24 Anatoly Sokolov <aesok@post.ru>
5092 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
5093 recursive call and call to 'int_const_binop'.
5094 (build_range_check, fold_cond_expr_with_comparison, unextend,
5095 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
5096 multiple_of_p): Adjust call to const_binop.
5098 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
5100 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
5101 determine size of XFmode operand.
5102 (XFmode extended DFmode push splitter): Ditto.
5103 (XFmode extended SFmode push splitter): Ditto.
5105 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
5108 * config/i386/i386.md (extract_code): New.
5109 (<u>divmodqi4): Likewise.
5110 (divmodhiqi3): Likewise.
5111 (udivmodhiqi3): Likewise.
5112 (<u>divqi3): Remvoved.
5114 2010-06-24 Jakub Jelinek <jakub@redhat.com>
5117 * recog.h (struct recog_data): Add is_asm field.
5118 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
5119 present in constraints of inline-asm operand and memory operand
5120 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
5121 (extract_insn): Initialize recog_data.is_asm.
5122 * doc/md.texi (Constraints): Document operand side-effect rules.
5124 2010-06-24 Andi Kleen <ak@linux.intel.com>
5126 * c-parser.c (c_parser_conditional_expression): Call
5127 warn_for_omitted_condop.
5128 * doc/invoke.texi: Document omitted condop warning.
5130 2010-06-24 Nick Clifton<nickc@redhat.com>
5132 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
5133 insn in the sequence is a jump insn before setting its label.
5135 2010-06-24 Alan Modra <amodra@gmail.com>
5137 * collect2.c (main): Match exactly --version and --help.
5139 2010-06-24 DJ Delorie <dj@redhat.com>
5141 * config/m32c/m32c-pragma.c: Don't include rtl.h.
5143 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
5145 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
5146 using X87MODEF mode iterator.
5147 (pushsf splitter): Macroize splitter using P mode iterator.
5148 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
5151 (*movxf_internal): Rename from *movxf_integer.
5152 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
5153 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
5154 (*movdf_internal): Rename from *movdf_integer.
5155 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
5156 (*movsf_internal): Rename from *movdf_1.
5158 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
5160 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
5161 (const_gimple_seq_node): Removed typedefs.
5163 * gimple.h (gimple_seq_node_d, gimple_seq_node)
5164 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
5166 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
5168 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
5169 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
5170 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
5171 and CODE_FOR_vec_extract_lo_v4df.
5173 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
5174 Changed to define_insn_and_split.
5175 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
5176 (vec_extract_lo_v16hi): Likewise.
5177 (vec_extract_lo_v32qi): Likewise.
5178 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
5179 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
5181 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
5184 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
5185 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
5186 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
5187 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
5188 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
5191 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
5194 * df-core.c (struct df): Rename to df_d.
5195 * df.h (struct df): Likewise.
5196 * dse.h (struct df): Remove forward declaration.
5197 * recog.h (struct insn_data): Rename to:
5198 (struct_insn_data_d). Adjusted all users.
5200 2010-06-23 Arnaud Charlet <charlet@adacore.com
5203 * doc/install.texi: Update requirements to build GNAT.
5205 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
5207 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
5209 (m68k_sched_attr_opx_type): Remove unreachable return.
5210 (m68k_sched_attr_opy_type): Likewise.
5211 (m68k_sched_attr_size): Likewise.
5212 (sched_get_opxy_mem_type): Likewise.
5213 (m68k_sched_attr_op_mem): Likewise.
5215 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
5217 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
5218 new statement and adjust VDEF only if necessary. Remove superfluous
5219 call to maybe_clean_or_replace_eh_stmt.
5220 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
5222 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
5223 * tree-inline.c (copy_bb): ...and not there.
5225 2010-06-22 Cary Coutant <ccoutant@google.com>
5227 * dwarf2out.c (is_nested_in_subprogram): New function.
5228 (should_move_die_to_comdat): Use it.
5229 (copy_ancestor_tree): Don't mark DIEs here.
5230 (copy_decls_walk): Start walk from root of newly-added tree;
5231 mark DIEs here instead.
5233 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
5235 * config/i386/i386.md (unit): Also check sseishft1.
5237 2010-06-22 Jan Hubicka <jh@suse.cz>
5239 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
5242 2010-06-22 Jan Hubicka <jh@suse.cz>
5244 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
5245 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
5246 Return true if something changed.
5247 * df.h (df_confluence_function_n): Return bool.
5248 * df-core.c (df_worklist_propagate_forward,
5249 df_worklist_propagate_backward): Track changes and ages.
5250 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
5252 * dse.c (dse_confluence_n): Return always true.
5254 2010-06-22 Jan Hubicka <jh@suse.cz>
5256 * bitmap.c (bitmap_clear_bit): Micro optimize.
5258 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
5260 * config/i386/i386.md (SWI1248x): New mode iterator.
5265 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
5266 SWI1248x mode iterator.
5267 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
5268 using SWI124 mode iterator.
5269 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
5271 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
5272 *pushdi2_prologue_rex64 using P mode iterator.
5273 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
5274 using SWI48 mode iterator.
5275 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
5276 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
5277 using SWI1248x mode iterator.
5278 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
5279 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
5280 SWI48 mode iterator.
5281 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
5283 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
5284 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
5285 SWI12 mode iterator.
5286 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
5287 SWI12 mode iterator.
5288 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
5289 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
5290 SWI24 mode iterator.
5291 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
5292 SWI48 mode iterator.
5293 (mov<mode>_insn_1): New expander.
5294 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
5295 using SWI48x mode iterator.
5297 (*movoi_internal_avx): Rename from *movoi_internal.
5298 (*movti_internal_rex64): Rename from *movti_rex64.
5299 (*movti_internal_sse): Rename from *movti_sse.
5300 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
5301 (*movdi_internal): Rename from *movdi_2.
5302 (*movsi_internal): Rename from *movsi_1.
5303 (*movhi_internal): Rename from *movhi_1.
5304 (*movqi_internal): Rename from *movqi_1.
5306 (insv): Update the call to gen_movsi_insv_1 for rename.
5307 * config/i386/i386.c (promote_duplicated_reg): Ditto.
5309 2010-06-22 Jan Hubicka <jh@suse.cz>
5311 * passes.c (execute_function_todo): Move call of statistics_fini_pass
5313 (execute_todo) ... this one.
5315 2010-06-22 Alan Modra <amodra@gmail.com>
5318 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
5319 * caller-save.c (insert_restore, insert_save): Use non-validate
5320 form of adjust_address.
5322 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5325 * config/pa/pa.c (override_options): Disable
5326 -freorder-blocks-and-partition.
5328 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
5331 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
5333 * config/i386/i386.md (type): Add sseishft1
5335 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
5336 (ppro_insn_load): Likewise.
5337 (ppro_insn_store): Likewise.
5338 (ppro_insn_both): Likewise.
5340 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
5341 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
5343 (*vec_extractv2di_1_avx): Likewise.
5344 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
5345 type. Remove atom_unit.
5346 (*vec_extractv2di_1_sse2): Likewise.
5348 2010-06-21 DJ Delorie <dj@redhat.com>
5350 * diagnostic.h (diagnostic_classification_change_t): New.
5351 (diagnostic_context): Add history and push/pop list.
5352 (diagnostic_push_diagnostics): Declare.
5353 (diagnostic_pop_diagnostics): Declare.
5354 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
5355 from pragmas in a history chain instead of the global table.
5356 (diagnostic_push_diagnostics): New.
5357 (diagnostic_pop_diagnostics): New.
5358 (diagnostic_report_diagnostic): Scan history chain to find state
5359 of diagnostics as of the diagnostic location.
5360 * opts.c (set_option): Pass UNKNOWN_LOCATION to
5361 diagnostic_classify_diagnostic.
5362 (enable_warning_as_error): Likewise.
5363 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
5364 use in the history chain.
5365 * doc/extend.texi: Document pragma GCC diagnostic changes.
5367 2010-06-21 Jakub Jelinek <jakub@redhat.com>
5369 * dwarf2out.c (add_linkage_name): New function. Don't add
5370 anything to DW_TAG_member DIEs.
5371 (add_name_and_src_coords_attributes): Use it.
5372 (gen_variable_die): Call it for C++ static data members if
5373 specification is DW_TAG_member.
5375 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
5376 C++ char16_t and char32_t.
5378 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
5379 * genattrtab.c: Include vecprim.h.
5380 (cached_attrs, cached_attr_count, attrs_seen_once,
5381 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
5382 attrs_cached_after): New variables.
5383 (find_attrs_to_cache): New function.
5384 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
5385 (write_test_expr): Add attrs_cached argument, return it too,
5386 attempt to cache non-const attributes used more than once in
5387 a single case handling.
5388 (write_attr_get): Use find_attrs_to_cache, for caching candidates
5389 emit cached_* variables. Adjust write_attr_set callers.
5390 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
5391 to find attributes that should be cached in this block. Adjust
5392 write_test_expr callers.
5393 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
5395 (make_automaton_attrs): Adjust write_test_expr caller.
5397 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
5398 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
5399 (make_automaton_attrs): If find_tune_attr returns non-NULL,
5400 write separate internal_dfa_insn_code_* and insn_default_latency_*
5401 functions for each attribute's value and emit init_sched_attrs
5402 function and function pointers.
5403 * genattr.c (const_attrs, reservations): New variables.
5404 (gen_attr): Add const attributes to const_attrs vector.
5405 (check_tune_attr, find_tune_attr): New functions.
5406 (main): Add reservations to reservations vector. If find_tune_attr
5407 returns true, add prototype for init_sched_attrs and make
5408 internal_dfa_insn_code and insn_default_latency function pointers,
5409 otherwise define init_sched_attrs as dummy macro.
5410 * cfgexpand.c: Include insn-attr.h.
5411 (gimple_expand_cfg): Call init_sched_attrs.
5413 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
5416 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
5417 va_arg from a set of register save slots into a temporary,
5418 if the container is bigger than type size, do the copying
5419 using smaller mode or using memcpy.
5422 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
5424 (sel_print_to_dot): Remove macro.
5425 (sel_print): Likewise. New prototype.
5426 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
5427 (sel_print): New function.
5429 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5431 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
5432 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
5434 2010-06-21 Nick Clifton <nickc@redhat.com>
5436 * config/rx/rx.h (PTRDIFF_TYPE): Define.
5437 (SMALL_REGISTER_CLASS): Define (to zero).
5438 (PRINT_OPERAND): Delete.
5439 (PRINT_OPERAND_ADDRESS): Delete.
5440 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
5441 (rx_print_operand_address): Delete prototype.
5442 * config/rx/rx.c (rx_print_operand): Make static.
5443 Allow %H and %L to handle CONST_DOUBLEs.
5444 (rx_print_operand_address): Make static.
5445 (rx_gen_move_template): Rename local variable 'template' to
5447 (rx_function_arg): Do not pass unknown sized objects in registers.
5448 (TARGET_PRINT_OPERAND): Define.
5449 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5451 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5453 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
5455 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
5457 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
5458 stack-alignment for simple leaf-functions.
5460 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
5462 * doc/install.texi: Document bootstrap-lto.
5464 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
5467 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
5468 (input_function): Drop them here, if VTA is disabled.
5470 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
5473 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
5475 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
5476 ix86_swapped_fp_comparsion_operator instead of
5477 ix86_fp_comparison_operator.
5479 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
5480 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
5481 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
5482 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
5483 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
5484 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
5486 2010-06-20 Joseph Myers <joseph@codesourcery.com>
5489 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
5490 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
5491 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
5492 (decode_cmdline_option): Update for this return value. Set
5493 orig_option_with_args_text field. Set arg field for unknown
5494 options. Make static.
5495 (decode_cmdline_options_to_array): New.
5496 (prune_options): Update handling of find_opt return value.
5497 * opts.c (read_cmdline_option): Take decoded option. Return void.
5498 (read_cmdline_options): Take decoded options.
5499 (decode_options): Add parameters for decoded options. Use
5500 decode_cmdline_options_to_array. Use decoded options for -O
5501 scan. Use integral_argument for -O parameters. Update call to
5502 read_cmdline_options.
5503 (enable_warning_as_error): Update handling of find_opt return value.
5504 * opts.h: Update comment on unknown options.
5505 (struct cl_decoded_option): Update comments on opt_index and arg.
5506 Add orig_option_with_args_text.
5507 (decode_cmdline_option): Remove.
5508 (decode_cmdline_options_to_array): Declare.
5509 (decode_options): Update prototype.
5510 * toplev.c (save_argv): Remove.
5511 (save_decoded_options, save_decoded_options_count): New.
5512 (read_integral_parameter): Remove.
5513 (print_switch_values): Use decoded options.
5514 (toplev_main): Don't set save_argv. Update call to decode_options.
5515 * toplev.h (read_integral_parameter): Remove.
5516 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
5518 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
5521 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
5523 * constraints.md (Pw, Px): New constraints.
5524 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
5526 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
5528 * config/i386/sse.md (fma4modesuffixf4): Removed.
5529 (ssemodesuffixf2s): Likewise.
5530 (ssemodesuffixf4): Likewise.
5531 (ssemodesuffixf2c): Likewise.
5532 (ssescalarmodesuffix2s): Likewise.
5533 (avxmodesuffixf2c): Likewise.
5534 (ssemodesuffix): New.
5535 (ssescalarmodesuffix): Likewise.
5536 Update patterns with ssemodesuffix and ssescalarmodesuffix.
5538 2010-06-19 Philip Herron <herron.philip@googlemail.com>
5540 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
5542 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
5544 * stor-layout.c (debug_rli): Remove unused local variables.
5546 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
5548 PR rtl-optimization/40900
5549 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
5550 original expression for later reuse.
5551 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
5552 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
5554 2010-06-18 Anatoly Sokolov <aesok@post.ru>
5556 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
5557 double_int_fits_in_uhwi_p): Implement as static inline.
5558 (double_int_xor): New inline function.
5559 (double_int_lrotate, double_int_rrotate, double_int_max,
5560 double_int_umax, double_int_smax, double_int_min, double_int_umin,
5561 double_int_smin): Declare.
5562 (lrotate_double, rrotate_double): Remove declaration.
5563 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
5564 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
5565 (double_int_lrotate, double_int_rrotate, double_int_max,
5566 double_int_umax, double_int_smax, double_int_min, double_int_umin,
5567 double_int_smin): New function.
5568 * fold-const.c (int_const_binop): Clean up, use double_int_*
5570 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
5571 double_int_* and immed_double_int_const functions.
5573 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5575 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
5576 * function.c (types_used_by_cur_var_decl): Likewise.
5577 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
5579 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5581 * tree.h (record_layout_info): Change type of pending_statics field
5583 * stor-layout.c (start_record_layout): Store NULL into
5585 (debug_rli): Call debug_vec_tree instead of debug_tree.
5586 (place_field): Likewise.
5587 (finish_record_layout): Likewise.
5589 2010-06-18 Alan Modra <amodra@gmail.com>
5591 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
5593 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5596 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
5597 for SET source operand from SET destination operand.
5599 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
5601 PR rtl-optimization/39871
5602 * reload1.c (init_eliminable_invariants): For flag_pic, disable
5603 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
5604 (function_invariant_p): Rule out a plus of frame or arg pointer with
5606 * ira.c (find_reg_equiv_invariant_const): Likewise.
5608 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
5610 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
5611 print_operand_address and puts to output the operand for CONST.
5613 2010-06-17 Jakub Jelinek <jakub@redhat.com>
5616 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
5619 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5621 * v850-protos.h (print_operand): Delete.
5622 (print_operand_address): Delete.
5623 * v850.h (PRINT_OPERAND): Delete.
5624 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5625 (PRINT_OPERAND_ADDRESS): Delete.
5626 * v850.c (print_operand_address): Rename to...
5627 (v850_print_operand_address): ...this. Make static. Call
5629 (print_operand): Rename to...
5630 (v850_print_operand): ...this. Make static. Call
5631 v850_print_operand_address.
5632 (v850_print_operand_punct_valid_p): New function.
5633 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5634 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5636 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5638 * config/sh/sh-protos.h (print_operand): Delete.
5639 (print_operand_address): Delete.
5640 * config/sh/sh.h (PRINT_OPERAND): Delete.
5641 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5642 (PRINT_OPERAND_ADDRESS): Delete.
5643 * config/sh/sh.c (sh_print_operand_address): Make static.
5644 (sh_print_operand): Make static. Call sh_print_operand_address
5645 and sh_print_operand.
5646 (sh_print_operand_punct_valid_p): New function.
5647 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5648 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5650 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5652 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
5653 (mcore_print_operand_address): Delete.
5654 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
5655 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5656 (PRINT_OPERAND_ADDRESS): Delete.
5657 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
5658 (mcore_print_operand): Make static.
5659 (mcore_print_operand_punct_valid_p): New function.
5660 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
5661 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5663 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5665 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
5666 (print_operand_address): Delete.
5667 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
5668 (PRINT_OPERAND_ADDRESS): Delete.
5669 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
5671 (m68hc11_print_operand): Make static.
5672 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5674 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5676 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
5677 (m32r_print_operand_address): Delete.
5678 * config/m32r/m32r.h (m32r_punct_chars): Delete.
5679 (PRINT_OPERAND): Delete.
5680 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5681 (PRINT_OPERAND_ADDRESS): Delete.
5682 * config/m32r/m32r.c (m32r_punct_chars): Make static.
5683 (m32r_print_operand_address): Make static.
5684 (m32r_print_operand): Make static.
5685 (m32r_print_operand_punct_valid_p): New function.
5686 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5687 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5689 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5691 * config/iq2000/iq2000-protos.h (print_operand): Delete.
5692 (print_operand_address): Delete.
5693 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
5694 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5695 (PRINT_OPERAND_ADDRESS): Delete.
5696 (iq2000_print_operand_punct): Delete.
5697 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
5698 (iq2000_print_operand_address): Make static.
5699 (iq2000_print_operand): Make static.
5700 (iq2000_print_operand_punct_valid_p): New function.
5701 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5702 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5704 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5706 * config/frv/frv-protos.h (frv_print_operand): Delete.
5707 (frv_print_operand_address): Delete.
5708 * config/frv/frv.h (PRINT_OPERAND): Delete.
5709 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5710 (PRINT_OPERAND_ADDRESS): Delete.
5711 * config/frv/frv.c (frv_print_operand_address): Make static.
5712 (frv_print_operand): Make static.
5713 (frv_print_operand_punct_valid_p): New function.
5714 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5715 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5717 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5719 * tree.h (vec_member): Declare.
5720 * tree.c (vec_member): Define.
5722 2010-06-17 Richard Guenther <rguenther@suse.de>
5724 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
5725 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
5727 2010-06-17 Richard Guenther <rguenther@suse.de>
5729 * tree-inline.c (declare_return_variable): Remove bogus code.
5731 2010-06-17 Richard Guenther <rguenther@suse.de>
5733 * gimplify.c (gimplify_bind_expr): Always promote complex
5734 and vector variables to registers if possible.
5736 2010-06-17 Richard Guenther <rguenther@suse.de>
5738 * expr.c (get_inner_reference): Use double_int for bit_offset
5741 2010-06-16 DJ Delorie <dj@redhat.com>
5743 * common.opt (-fstrict-volatile-bitfields): new.
5744 * doc/invoke.texi: Document it.
5745 * fold-const.c (optimize_bit_field_compare): For volatile
5746 bitfields, use the field's type to determine the mode, not the
5748 * expr.c (expand_assignment): Likewise.
5749 (get_inner_reference): Likewise.
5750 (expand_expr_real_1): Likewise.
5751 * expmed.c (store_fixed_bit_field): Likewise.
5752 (extract_bit_field_1): Likewise.
5753 (extract_fixed_bit_field): Likewise.
5755 2010-06-16 Richard Guenther <rguenther@suse.de>
5757 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
5759 2010-06-16 Douglas B Rupp <rupp@gnat.com>
5761 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
5762 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
5763 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
5764 * debug.c: Likewise.
5765 * sdbout.c: Likewise.
5766 * vmsdbgout.c: Likewise.
5767 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
5768 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
5769 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
5770 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
5771 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
5772 * dwarf2out.c (dw_fde_struct): New fields
5773 dw_fde_vms_{end,begin}_prologue.
5774 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
5775 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
5776 (dwarf2out_vms_end_prologue): New function.
5777 (dwarf2out_vms_begin_epilogue): New function.
5778 (dw_val_struct): New value dw_val_class_vms_delta.
5779 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
5780 begin_epilogue for VMS.
5781 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
5782 new static functions.
5783 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
5784 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
5786 (print_die): New case dw_val_class_vms_delta.
5787 (attr_checksum): Likewise.
5788 (same_dw_val_p: Likewise.
5789 (size_of_die): Likewise.
5790 (value_format): Likewise.
5791 (output_die): Likewise.
5792 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
5793 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
5794 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
5795 dwarf2out_cfi_begin_epilogue
5796 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
5798 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
5800 * config/cris/cris-protos.h (cris_print_operand): Delete.
5801 (cris_print_operand_address): Delete.
5802 * config/cris/cris.h (PRINT_OPERAND): Delete.
5803 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5804 (PRINT_OPERAND_ADDRESS): Delete.
5805 * config/cris/cris.c (cris_print_operand_address): Make static.
5806 (cris_print_operand): Make static.
5807 (cris_print_operand_punct_valid_p): New function.
5808 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5809 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5811 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
5813 * config/arm/arm-protos.h (arm_print_operand): Delete.
5814 (arm_print_operand_address): Delete.
5815 * config/arm/arm.h (PRINT_OPERAND): Delete.
5816 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5817 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
5818 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
5819 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
5820 (arm_print_operand): Make static.
5821 (arm_print_operand_punct_valid_p): New function.
5822 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5823 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5825 2010-06-16 Nick Clifton <nickc@redhat.com>
5827 * config/rx/constraints.md (NEGint4): New constraint.
5828 * config/rx/rx.md (attr cc): Add set_zsc.
5829 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
5832 (call_internal): Clobber the cc0 register.
5833 (call_value_internal): Likewise.
5834 (cstoresi4): Likewise.
5835 (movsieq): Likewise.
5836 (movsine): Likewise.
5837 (addsi3): Add alternative to handle small negative constants.
5839 (addsi3): Do not set the O bit in the cc0 register.
5843 (andsi3): Reorder alternatives to prefer shorter forms.
5846 (negsi2): Note that the cc0 flags are set.
5847 (rotlsi3): Note that only the Z and S bits are set in cc0.
5848 (lshrsi3): Likewise.
5849 (ashlsi3): Likewise.
5850 (subsf3): Use %Q for the MEM operand.
5851 (fix_truncsfsi2): Likewise.
5852 (floatsisf2): Likewise.
5853 (bitset): Remove early clobber from destination.
5854 (bitset_in_memory): Likewise.
5855 (lrintsf2): Clobber the cc0 register.
5856 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
5857 (rx_print_operand): Handle %N.
5859 2010-06-16 Jan Hubicka <jh@suse.cz>
5861 * df-core.c (df_compact_blocks): Free problem_temps vector.
5863 2010-06-16 Martin Jambor <mjambor@suse.cz>
5865 PR tree-optimization/43905
5866 * tree-sra.c: Include tree-inline.h.
5867 (create_abstract_origin): Removed.
5868 (modify_function): Version the call graph node instead of creating
5869 abstract origins and dealing with same_body aliases.
5870 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
5871 function is versionable.
5872 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
5874 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
5876 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
5877 (CHOOSE_DYNAMIC_LINKER): Update.
5879 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
5881 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
5882 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
5883 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
5884 *prefetch_3dnow_rex.
5886 2010-06-15 Anatoly Sokolov <aesok@post.ru>
5888 * target.h (struct asm_out):Add declare_constant_name field.
5889 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
5890 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
5891 * output.h (default_asm_declare_constant_name): Declare.
5892 (assemble_label): Update prototype.
5893 * varasm.c (assemble_constant_contents): Use
5894 targetm.asm_out.declare_constant_name target hook.
5895 (assemble_label): Add 'file' argument.
5896 (default_asm_declare_constant_name): New function.
5897 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
5898 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
5899 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
5901 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
5902 * config/darwin.c (darwin_asm_declare_constant_name): New function.
5903 (machopic_output_indirection): Update assemble_label argument list.
5904 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
5905 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
5907 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
5910 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
5911 size_one_node for pointer types. Do not call gmp_cst_to_tree.
5913 2010-06-15 Richard Guenther <rguenther@suse.de>
5915 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
5917 2010-06-15 Paul Brook <paul@codesourcery.com>
5919 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
5922 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
5924 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
5925 don't get a vector type for output.
5927 2010-06-15 Jakub Jelinek <jakub@redhat.com>
5930 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
5931 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
5932 (LANG_HOOKS_DECLS): Add it.
5933 * gimplify.c (omp_notice_variable): Call
5934 lang_hooks.decls.omp_report_decl.
5936 2010-06-15 Martin Jambor <mjambor@suse.cz>
5939 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
5940 on the newly dead SSA name.
5942 2010-06-15 Alan Modra <amodra@gmail.com>
5944 * doc/invoke.texi: Add mcmodel to powerpc options.
5945 * configure.ac: Add HAVE_LD_LARGE_TOC test.
5946 * configure: Regenerate.
5947 * config.in: Regenerate.
5948 * config/rs6000/linux64.opt (mcmodel): New.
5949 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
5950 (TARGET_CMODEL, SET_CMODEL): Define.
5951 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
5952 select CMODEL_MEDIUM default.
5953 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
5954 (TARGET_CMODEL): Define default.
5955 * config/rs6000/rs6000.c (cmodel): New variable.
5956 (rs6000_explicit_options): Add cmodel field.
5957 (rs6000_handle_option): Handle -mcmodel.
5958 (create_TOC_reference): Add largetoc_reg param. Generate high,
5959 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
5960 (rs6000_delegitimize_address): Recognise new toc reference rtl
5961 and minimal-toc rtl.
5962 (rs6000_legitimize_reload_address): Handle new toc references.
5963 (print_operand_address): Handle legitimate_constant_pool_address_p
5964 match before lo_sum.
5965 (rs6000_eliminate_indexed_memrefs): Tidy.
5966 (rs6000_emit_move): Tweak threshold for inlining constants.
5967 Keep rs6000_emit_allocate_stack large stack frame offsets
5968 loaded into r0 inline.
5969 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
5970 (tocrel_base, tocrel_offset): New variables.
5971 (toc_relative_expr_p): Set them here.
5972 (print_operand_address): Skip over any offset on constant pool address.
5973 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
5974 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
5975 (offsettable_ok_by_alignment): New function.
5976 (rs6000_emit_move): Address suitably aligned local symbol_refs
5977 relative to the toc pointer for -mcmodel=medium.
5978 (legitimate_constant_pool_address_p): Make param const_rtx. Add
5979 strict param. Allow lo_sum version of addressing. Verify reg
5980 used for -mminimal-toc and -mcmodel != small. Update all callers.
5981 * config/rs6000/constraints.md: Update for above change.
5982 * config/rs6000/predicates.md: Likewise.
5983 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
5985 (tls_gd): Split for -mcmodel=medium/large.
5986 (tls_gd_high, tls_gd_low): New.
5987 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
5988 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
5989 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
5990 (largetoc_high, largetoc_low): New.
5991 (cmptf_internal2): Add clobber.
5992 * config/rs6000/rs6000-protos.h: Update.
5994 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
5996 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
5997 true if no prefetch is going to be generated for a given group.
5998 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
5999 estimate the prefetch_count.
6000 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
6001 prefetch count by considering the unroll_factor and prefetch_mod
6002 for is_loop_prefetching_profitable.
6004 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
6006 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
6007 anything if the argument is not a MEM.
6009 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
6014 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
6016 (canonicalize_loop_ivs): Likewise.
6018 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
6021 * haifa-sched.c (setup_insn_reg_pressure_info,
6022 update_register_pressure): Reject debug insns.
6023 (ready_sort): Don't setup reg pressure for debug insns.
6024 (schedule_insn): Don't update reg pressure for debug insns.
6026 2010-06-14 Richard Guenther <rguenther@suse.de>
6028 * lto-streamer.c (cached_bp): Remove.
6029 (bitpack_delete): Likewise.
6030 (bitpack_create): Likewise.
6031 (bp_get_next_word): Likewise.
6032 (bp_pack_value, bp_unpack_value): Move ...
6033 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
6035 (struct bitpack_d): Likewise.
6036 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
6037 New inline functions.
6038 * lto-streamer-out.c (lto_output_bitpack): Remove.
6039 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
6040 (pack_value_fields): Adjust.
6041 (lto_write_tree): Likewise.
6042 (output_gimple_stmt): Likewise.
6043 (output_function): Likewise.
6044 * lto-streamer-in.c (input_gimple_stmt): Adjust.
6045 (input_function): Likewise.
6046 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
6047 (lto_input_bitpack): Remove.
6048 (lto_materialize_tree): Adjust.
6049 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
6050 * lto-cgraph.c (lto_output_edge): Adjust.
6051 (lto_output_node): Likewise.
6052 (lto_output_varpool_node): Likewise.
6053 (lto_output_ref): Likewise.
6054 (input_node): Likewise.
6055 (input_varpool_node): Likewise.
6056 (input_ref): Likewise.
6057 (input_edge): Likewise.
6058 (output_node_opt_summary): Likewise.
6059 (input_node_opt_summary): Likewise.
6060 * ipa-pure-const.c (pure_const_write_summary): Likewise.
6061 (pure_const_read_summary): Likewise.
6062 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
6063 (ipa_read_indirect_edge_info): Likewise.
6064 (ipa_write_node_info): Likewise.
6065 (ipa_read_node_info): Likewise.
6067 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
6070 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
6071 (vec_extract_lo_v16hi): Likewise.
6072 (vec_extract_lo_v32qi): Likewise.
6074 2010-06-14 Jakub Jelinek <jakub@redhat.com>
6077 * tree.h (build_call_expr): Don't define as vararg macro, instead
6079 * builtins.c (build_call_nofold): Remove.
6080 (expand_builtin_int_roundingfn, expand_builtin_pow,
6081 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
6082 expand_builtin_memset_args, expand_builtin_strcmp,
6083 expand_builtin_strncmp, expand_builtin_memory_chk): Use
6084 build_call_nofold_loc instead of build_call_nofold.
6085 (build_call_expr): New function.
6087 PR tree-optimization/44508
6088 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
6089 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
6090 don't eliminate trivially dead stmts.
6091 * tree-vrp.c (vrp_finalize): Pass false as last argument
6092 to substitute_and_fold.
6093 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
6094 to substitute_and_fold.
6095 * tree-ssa-ccp.c (ccp_finalize): Likewise.
6098 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
6100 2010-06-14 Ira Rosen <irar@il.ibm.com>
6102 PR tree-optimization/44507
6103 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
6104 to build initial vector for BIT_AND_EXPR.
6105 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
6107 2010-06-14 Jakub Jelinek <jakub@redhat.com>
6109 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
6110 adjust z10prop set_attr.
6112 2010-06-13 Jan Hubicka <jh@suse.cz>
6114 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
6115 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
6116 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
6117 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
6118 datastructure checks into checking asserts.
6119 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
6120 * tree-ssa-sccvn.c (VN_INFO): Likewise.
6121 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
6122 df_ref_create_structure): Likewise.
6123 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
6124 pool_free): Use gcc_checking_assert.
6125 * alias.c (get_alias_set): Likewise.
6126 * var-tracking.c (variable_htab_free, shared_hash_copy,
6127 canonicalize_values_mark, variable_merge_over_cur): Likewise.
6128 * lto-streamer.c (bp_unpack_value): Likewise.
6130 2010-06-13 Richard Guenther <rguenther@suse.de>
6132 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
6133 Do not stream but initialize TYPE_CANONICAL to NULL.
6134 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
6135 * gimple.c (gimple_types_compatible_p): Disregard
6136 TYPE_STRUCTURAL_EQUALITY_P.
6137 (gimple_register_type): Use TYPE_CANONICAL as cache.
6138 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
6139 before registering common types.
6140 * config/i386/i386.c (ix86_function_arg_boundary): Do not
6141 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
6142 * tree.h (TYPE_CANONICAL): Clarify documentation.
6144 2010-06-13 Anatoly Sokolov <aesok@post.ru>
6146 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6147 LIBCALL_VALUE): Remove macros.
6148 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
6149 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6150 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6151 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
6152 (ia64_function_value): Make static. Handle receiving the function
6153 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
6155 2010-06-12 Jan Hubicka <jh@suse.cz>
6157 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
6160 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
6162 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
6164 2010-06-12 Jan Hubicka <jh@suse.cz>
6166 * df-core.c (df_clear_bb_info): New function.
6167 (df_set_blocks): bb_info is always allocated.
6168 (df_get_bb_info): Use block_info_elt_size.
6169 (df_set_bb_info): Likewise.
6170 (df_compact_blocks): Update for new block_info.
6171 (grow_bb_info): New function.
6172 * df-problems.c (df_grow_bb_info): Move to df-core.c
6173 (df_rd_set_bb_info): Remove.
6174 (df_rd_free_bb_info): Do not free block pool.
6175 (df_rd_alloc): Do not create pool, use check for
6176 obstack presence instead of NULL pointer for new blocks.
6177 (df_rd_free): DO not free alloc pool; clear block_info.
6178 (problem_RD): Add size of block info structure.
6179 (df_lr_set_bb_info): Remove.
6180 (df_lr_free_bb_info): Do not free block pool.
6181 (df_lr_alloc): Do not create pool, use check for
6182 obstack presence instead of NULL pointer for new blocks.
6183 (df_lr_free): DO not free alloc pool; clear block_info.
6184 (problem_LR): Add size of block info structure.
6185 (df_live_set_bb_info): Remove.
6186 (df_live_free_bb_info): Do not free block pool.
6187 (df_live_alloc): Do not create pool, use check for
6188 obstack presence instead of NULL pointer for new blocks.
6189 (df_live_free): DO not free alloc pool; clear block_info.
6190 (problem_LIVE): Add size of block info structure.
6191 (problem_CHAIN): Add size of block info structure.
6192 (df_byte_lr_set_bb_info): Remove.
6193 (df_byte_lr_free_bb_info): Do not free block pool.
6194 (df_byte_lr_alloc): Do not create pool, use check for
6195 obstack presence instead of NULL pointer for new blocks.
6196 (df_byte_lr_free): DO not free alloc pool; clear block_info.
6197 (problem_BYTE_LR): Add size of block info structure.
6198 (problem_NOTE): Add size of block info structure.
6199 (df_byte_MD_set_bb_info): Remove.
6200 (df_byte_MD_free_bb_info): Do not free block pool.
6201 (df_byte_MD_alloc): Do not create pool, use check for
6202 obstack presence instead of NULL pointer for new blocks.
6203 (df_byte_MD_free): DO not free alloc pool; clear block_info.
6204 (problem_BD): Add size of block info structure.
6205 * df-scan.c (df_scan_free_internal): Free block pool.
6206 (df_scan_set_bb_info): Remove.
6207 (df_scan_free_bb_info): Check for artificial_defs instead
6208 of bb_info being non-NULL.
6209 (df_scan_alloc): DO not create df_scan_block pool.
6210 (problem_SCAN): Set size of block info.
6211 (df_bb_refs_record): Do not allocate bb_info.
6212 * df.h (df_problem): Add block_info_elt_size.
6213 (struct dataflow): Change block_info to void *.
6214 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
6215 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
6218 2010-06-12 Jan Hubicka <jh@suse.cz>
6220 PR tree-optimize/44485
6221 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
6222 containing use of return value of noreturn function.
6224 2010-06-12 Anatoly Sokolov <aesok@post.ru>
6226 * targhooks.c (default_function_value): Don't use
6227 FUNCTION_OUTGOING_VALUE.
6228 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
6229 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
6231 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
6233 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
6234 Add crtfastmath.o to extra_parts.
6235 * config/mips/crtfastmath.c: New.
6236 * config/mips/linux.h (ENDFILE_SPEC): New.
6238 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
6240 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
6241 old_type in parameter.
6242 (gcc_type_for_value): Update call to gcc_type_for_interval.
6243 (compute_type_for_level_1): Renamed compute_type_for_level.
6244 Update call to gcc_type_for_interval.
6246 2010-06-11 Joseph Myers <joseph@codesourcery.com>
6248 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
6249 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
6251 2010-06-11 Joseph Myers <joseph@codesourcery.com>
6253 * opts-common.c: Include options.h.
6254 (integral_argument): Move from opts.c.
6255 (decode_cmdline_option): New. Based on read_cmdline_option.
6256 * opts.c (integral_argument): Move to opts-common.c.
6257 (read_cmdline_option): Move most contents to
6258 decode_cmdline_option. Use %qs in diagnostics.
6259 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
6260 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
6261 decode_cmdline_option): New.
6263 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
6266 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
6267 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
6268 (partiysi2_cmp): Ditto.
6269 (*partiyhi2_cmp): Ditto.
6270 (*parityqi2_cmp): Remove.
6272 2010-06-11 Jan Hubicka <jh@suse.cz>
6274 * bitmap.h (bmp_iter_next_bit): New.
6275 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
6277 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
6278 Eric Botcazou <ebotcazou@adacore.com>
6280 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
6283 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
6285 * config/i386/i386.md (unspec): New define_c_enum.
6288 2010-06-10 Jakub Jelinek <jakub@redhat.com>
6290 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
6292 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
6295 * tree-if-conv.c (bb_predicate_s): New struct.
6296 (bb_predicate_p): New.
6297 (bb_has_predicate): New.
6298 (bb_predicate): New.
6299 (set_bb_predicate): New.
6300 (bb_predicate_gimplified_stmts): New.
6301 (set_bb_predicate_gimplified_stmts): New.
6302 (add_bb_predicate_gimplified_stmts): New.
6303 (init_bb_predicate): New.
6304 (free_bb_predicate): New.
6305 (is_predicated): Use bb_predicate.
6306 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
6307 (predicate_bbs): Same. Gimplify the condition of the basic blocks
6308 before processing their successors.
6309 (clean_predicate_lists): Removed.
6310 (find_phi_replacement_condition): Use bb_predicate.
6311 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
6313 (insert_gimplified_predicates): New.
6314 (combine_blocks): Call insert_gimplified_predicates.
6315 (tree_if_conversion): Call free_bb_predicate instead of
6316 clean_predicate_lists.
6318 2010-10-11 Paul Brook <paul@codesourcery.com>
6320 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
6321 * config/arm/arm.c (all_architectures): Change v7e-m default to
6323 * config/arm/arm-cores.def: Add cortex-m4.
6324 * config/arm/arm-tune.md: Regenerate.
6326 2010-06-11 Jan Hubicka <jh@suse.cz>
6328 * ipa-pure-const.c (special_builtlin_state): New function.
6329 (check_call): Use it instead of special casign BUILT_IN_RETURN.
6330 (propagate_pure_const): Use it.
6332 2010-06-11 Jan Hubicka <jh@suse.cz>
6334 * df-problems.c (df_live_scratch): Convert to bitmap_head.
6335 (df_live_alloc): Initialize df_live_scratch when initializing
6337 (df_live_transfer_function): Update uses of df_live_scratch.
6338 (df_live_free): Free problem_data; clear df_live_scratch before
6339 releasing the obstack.
6340 (df_md_free): Free problem data.
6342 2010-06-11 Jan Hubicka <jh@suse.cz>
6344 * doc/invoke.texi (Wsuggest-attribute): Document.
6345 (Wmissing-noreturn): Remove.
6346 * ipa-pure-const.c (warn_function_noreturn): New function.
6347 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
6348 warn_missing_noreturn.
6349 * common.opt (Wsuggest-attribute=noreturn): New.
6350 * tree-flow.h (warn_function_noreturn): Declare.
6351 * tree-cfg.c (execute_warn_function_noreturn): Use
6352 warn_function_noreturn.
6353 (gate_warn_function_noreturn): New.
6354 (pass_warn_function_noreturn): Update.
6356 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6358 * c-typeck.c (handle_warn_cast_qual): Add loc
6359 parameter. Improve warning message.
6360 (build_c_cast): Pass location to handle_warn_cast_qual.
6362 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
6364 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
6365 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
6367 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
6369 2010-06-10 Dodji Seketeli <dodji@redhat.com>
6371 Fix bootstap on mips
6372 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
6375 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
6377 * system.h (helper_const_non_const_cast): New inline for
6379 (CONST_CAST2): For gcc version <= 4.0 use
6380 new helper to do const/non-const casting.
6382 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6384 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
6385 * Makefile.in (OBJS-common): Include insn-enums.o.
6386 (insn-enums.o): New rule.
6387 (simple_generated_c): Add insn-enums.c.
6388 (build/genenums.o): New rule.
6389 (genprogmd): Add "enums".
6390 * genconstants.c (print_enum_type): Declare a C string array
6392 * genenums.c: New file.
6393 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
6394 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
6395 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
6397 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6399 * doc/md.texi (define_enum_attr): Document.
6400 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
6401 * read-md.h (lookup_enum_type): Declare.
6402 * read-md.c (lookup_enum_type): New function.
6403 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
6404 * genattrtab.c (attr_desc): Add an enum_name field.
6405 (evaluate_eq_attr): Take the associated attribute as argument.
6406 Get the enum prefix from the enum_name field, if defined.
6407 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
6408 (simplify_test_exp): Pass attr to evaluate_eq_attr.
6409 (add_attr_value): New function, split out from...
6410 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
6411 (write_test_expr): Pass attr to evaluate_eq_attr.
6412 (write_attr_get): Use the enum_name as the enum tag, if defined.
6413 (write_attr_valueq): Use the enum_name as a prefix, if defined.
6414 (find_attr): Initialize enum_name.
6415 (main): Handle DEFINE_ENUM_ATTR.
6416 * gensupport.c (process_rtx): Likewise.
6417 * config/mips/mips.h (mips_tune_attr): Delete.
6418 * config/mips/mips.md (cpu): Use define_attr_enum.
6420 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6422 * doc/md.texi (define_c_enum, define_enum): Document.
6423 * read-md.h (md_constant): Add a parent_enum field.
6424 (enum_value, enum_type): New structures.
6425 (upcase_string, traverse_enum_types): Declare.
6426 * read-md.c (enum_types): New variable.
6427 (upcase_string, add_constant): New functions.
6428 (handle_constants): Don't create the hash table here.
6430 (traverse_md_constants): Don't check for a null md_constants.
6431 (decimal_string, handle_enum, traverse_enum_types): New functions.
6432 (read_md_files): Initialize md_constants and md_enums.
6433 * genconstants.c (print_md_constant): Ignore info argument.
6434 Only print constants that belong to no enum.
6435 (print_enum_type): New function.
6436 (main): Don't pass stdout to print_md_constant. Call print_enum_type
6437 for each defined enum type.
6438 * config/mips/mips.md (processor): New define_enum.
6439 (unspec): New define_c_enum.
6440 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
6441 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
6442 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
6443 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
6444 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
6445 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
6446 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
6447 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
6448 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
6449 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
6450 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
6451 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
6452 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
6453 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
6454 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
6455 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
6456 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
6457 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
6458 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
6459 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
6460 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
6461 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
6462 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
6463 (UNSPEC_RDDSP): Move to mips-dsp.md.
6464 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
6465 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
6466 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
6467 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
6468 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
6469 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
6470 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
6471 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
6472 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
6473 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
6474 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
6475 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
6476 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
6477 Moved to mips-dspr2.md.
6478 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
6479 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
6480 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
6481 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
6482 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
6483 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
6484 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
6485 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
6486 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
6487 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
6488 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
6489 UNSPEC_LOONGSON_PSADBH)
6490 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
6491 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
6492 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
6493 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
6494 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
6495 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
6496 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
6497 (cpu): Update comment.
6498 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
6499 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
6500 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
6501 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
6502 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
6503 UNSPEC_LOONGSON_PCMPEQ)
6504 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
6505 UNSPEC_LOONGSON_PINSR_0)
6506 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
6507 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
6508 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
6509 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
6510 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
6511 UNSPEC_LOONGSON_PSADBH)
6512 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
6513 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
6514 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
6515 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
6516 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
6517 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
6518 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
6519 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
6520 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
6521 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
6522 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
6523 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
6524 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
6525 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
6526 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
6527 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
6528 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
6529 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
6530 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
6531 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
6532 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
6533 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
6534 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
6535 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
6536 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
6537 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
6538 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
6539 (UNSPEC_RDDSP): Moved from mips.md.
6540 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
6541 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
6542 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
6543 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
6544 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
6545 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
6546 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
6547 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
6548 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
6549 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
6550 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
6551 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
6552 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
6553 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
6554 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
6555 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
6556 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
6557 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
6558 (UNSPEC_SCC): Moved from mips.md.
6559 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
6560 "processor_type" to "processor".
6561 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
6562 * config/mips/mips.h (processor_type): Delete.
6563 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
6564 "processor_type" to "processor".
6566 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6568 * configure.ac (tm_include_list): Add insn-constants.h.
6569 * configure: Regenerate.
6570 * Makefile.in (GTM_H): Move insn-constants.h here from...
6572 * mkconfig.sh: Remove special handling for insn-constants.h.
6574 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6576 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
6577 (BUILD_MD): ...this new variable.
6578 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
6579 that include the old contents of simple_generated_h and
6581 (simple_generated_h, simple_generated_c): Include them. Add
6583 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
6584 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
6585 Remove these dependencies from the main rule and include
6586 insn-conditions.md in the command line only if it appears
6587 in the dependency list.
6588 (insn-constants.h, s-constants): Delete.
6589 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
6591 (build/genmddeps.o): Likewise.
6592 (genprogrtl): New variable that contains everything from genprogmd
6593 except mddeps and constants.
6594 (genprogmd): Redefine in terms of genprogrtl. Make these programs
6595 depend on $(BUILD_MD)
6596 (genprog): New variable. Make these programs depend on
6598 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
6599 (main): Use read_md_files instead of init_rtx_reader_args.
6600 * genconstants.c: As for genmddeps.c.
6601 * read-md.h (read_skip_construct): Declare.
6602 * read-md.c (read_skip_construct): New function.
6603 (handle_file): Allow a null handle_directive, skipping the
6605 (parse_include): Update the comment accordingly.
6607 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6609 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
6610 * genmddeps.c: Include read-md.h.
6611 (main): Call init_rtx_reader_args instead of init_md_reader_args.
6612 * genattr.c (main): Likewise.
6613 * genattrtab.c (main): Likewise.
6614 * genautomata.c (main): Likewise.
6615 * gencodes.c (main): Likewise.
6616 * genconditions.c (main): Likewise.
6617 * genconfig.c (main): Likewise.
6618 * genconstants.c (main): Likewise.
6619 * genemit.c (main): Likewise.
6620 * genextract.c (main): Likewise.
6621 * genflags.c (main): Likewise.
6622 * genopinit.c (main): Likewise.
6623 * genoutput.c (main): Likewise.
6624 * genpeep.c (main): Likewise.
6625 * genrecog.c (main): Likewise.
6626 * genpreds.c (main): Likewise.
6627 * gensupport.h (in_fname): Move to read-md.h.
6628 (init_md_reader_args_cb): Rename to...
6629 (init_rtx_reader_args_cb): ...this and return a bool.
6630 (init_md_reader_args): Rename to...
6631 (init_rtx_reader_args): ...this and return a bool.
6632 (include_callback): Move to read-md.h.
6633 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
6634 (file_name_list, first_dir_md_include): Move to read-md.c
6635 (first_bracket_include): Delete unused variable.
6636 (last_dir_md_include): Move to read-md.c.
6637 (process_include): Delete, moving code to read-md.c:handle_include.
6638 (process_rtx): Don't handle INCLUDE.
6639 (save_string): Delete.
6640 (rtx_handle_directive): New function.
6641 (init_md_reader_args_cb): Rename to...
6642 (init_rtx_reader_args_cb): ...this and return a boolean success value.
6644 (init_md_reader_args): Rename to...
6645 (init_rtx_reader_args): ...this and return a boolean success value.
6646 * rtl.def (INCLUDE): Delete.
6647 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
6649 * read-rtl.c (read_conditions): Don't gobble ')' here.
6650 (read_mapping): Likewise.
6651 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
6652 Handle top-level non-rtx constructs here rather than in read_rtx_1.
6653 Store the whole queue in *X. Remove call to init_md_reader.
6654 (read_rtx_1): Rename to...
6655 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
6656 Don't handle top-level non-rtx constructs here. Don't handle (nil)
6658 (read_nested_rtx): New function. Handle (nil) here rather than
6660 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
6662 * read-md.h (directive_handler_t): New type.
6663 (in_fname, include_callback): Moved from read-md.h.
6664 (read_constants, init_md_reader): Delete.
6665 (read_md_files): Declare.
6666 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
6667 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
6669 (read_constants): Rename to...
6670 (handle_constants): ...this. Don't gobble ')' here.
6671 (handle_include, handle_file, handle_toplevel_file)
6672 (parse_include): New functions, mostly taken from gensupport.c.
6673 (init_md_reader): Subsume into...
6674 (read_md_files): ...this new function.
6676 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6678 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
6679 (unread_char): Decrement read_md_lineno after putting back '\n'.
6680 * read-md.c (fatal_with_file_and_line): Push back any characters
6681 that we decide not to add to the context.
6682 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
6683 fatal_expected_char in cases where '/' ends a line (for example).
6684 (read_name): Don't increment read_md_lineno here.
6685 (read_escape): Likewise.
6686 (read_quoted_string): Likewise.
6687 (read_braced_string): Likewise.
6689 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6691 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
6692 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
6693 * genconstants.c: Include read-md.h.
6694 * read-rtl.c (md_constants): Move to read-md.c.
6695 (md_name): Move to read-md.h.
6696 (initialize_iterators): Use leading_string_hash instead of def_hash
6697 and leading_string_eq_p instead of def_name_eq_p.
6698 (read_name): Move to read-md.c.
6699 (def_hash, def_name_eq_p): Delete.
6700 (read_constants, traverse_md_constants): Move to read-md.c.
6701 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
6702 * read-md.h: Include hashtab.h.
6703 (md_name): Moved from read-rtl.c.
6704 (md_constant): Moved from read-md.h.
6705 (leading_string_hash, leading_string_eq_p, read_name)
6706 (read_constants, traverse_md_constants): Declare.
6707 * read-md.c (md_constants): Moved from read-rtl.c.
6708 (leading_string_hash, leading_string_eq_p): New functions.
6709 (read_name, read_constants, traverse_md_constants): Moved from
6712 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6714 * read-rtl.c (md_name): New structure.
6715 (read_name): Take an md_name instead of a buffer pointer.
6716 Use the "string" field instead of strcpy when expanding constants.
6717 (read_constants): Remove the tmp_char argument. Update the calls
6718 to read_name, using two local name buffers instead of the tmp_char
6719 argument. Merge the constant-creation code.
6720 (read_conditions): Remove the tmp_char argument. Update the calls
6721 to read_name, using a local name buffer instead of the tmp_char
6723 (read_mapping): Replace tmp_char variable with a local name buffer.
6724 Update the calls to read_name.
6725 (read_rtx_1): Likewise. Update the calls to read_constants and
6728 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6730 * Makefile.in (build/read-md.o): Depend on errors.h.
6731 * read-md.h (error_with_line): Declare.
6732 * read-md.c: Include errors.h.
6733 (message_with_line_1): New function, extracted from...
6734 (message_with_line): ...here.
6735 (error_with_line): New function.
6736 * genattrtab.c: If a call to message_with_line is followed by
6737 "have_error = 1;", replace both statements with a call to
6739 * genoutput.c: Likewise.
6740 * genpreds.c: Likewise.
6741 * genrecog.c: If a call to message_with_line is followed by
6742 "error_count++;", replace both statements with a call to
6744 (errorcount): Delete.
6745 (main): Don't check it.
6746 * gensupport.c: If a call to message_with_line is followed by
6747 "errors = 1;", replace both statements with a call to error_with_line.
6749 (process_define_cond_exec): Check have_error instead of errors.
6750 (init_md_reader_args_cb): Likewise. Don't set errors.
6752 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6754 * read-md.h (read_md_file): Declare.
6755 (read_char, unread_char): New functions.
6756 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
6757 (read_quoted_string, read_string): Remove FILE * argument.
6758 * read-md.c (read_md_file): New variable.
6759 (read_md_filename, read_md_lineno): Update comments and remove
6760 unnecessary initialization.
6761 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
6762 (read_escape, read_quoted_string, read_braced_string, read_string):
6763 Remove FILE * argument. Update calls accordingly, using read_char
6764 and unread_char instead of getc and ungetc.
6765 * rtl.h (read_rtx): Remove FILE * argument.
6766 * read-rtl.c (iterator_group): Remove FILE * argument from
6768 (iterator_traverse_data): Remove "infile" field.
6769 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
6770 (add_mapping, read_name, read_constants, read_conditions)
6771 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
6772 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
6773 Remove file arguments from all calls, using read_char and unread_char
6774 instead of getc and ungetc.
6775 * gensupport.c (process_include): Preserve read_md_file around
6776 the include. Set read_md_file to the handle of the included file.
6777 Update call to read_rtx.
6778 (init_md_reader_args_cb): Set read_md_file to the handle of the file
6779 and remove local FILE *. Update calls to read_rtx.
6781 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6783 * read-md.h (read_rtx_lineno): Rename to...
6784 (read_md_lineno): ...this.
6785 (read_rtx_filename): Rename to...
6786 (read_md_filename): ...this.
6787 (copy_rtx_ptr_loc): Rename to...
6788 (copy_md_ptr_loc): ...this.
6789 (print_rtx_ptr_loc): Rename to...
6790 (print_md_ptr_loc): ...this.
6791 * read-md.c: Likewise. Update references after renaming.
6792 (string_obstack): Replace RTL with MD in comment.
6793 (set_rtx_ptr_loc): Rename to...
6794 (set_md_ptr_loc): ...this.
6795 (get_rtx_ptr_loc): Rename to...
6796 (get_md_ptr_loc): ...this.
6797 * genconditions.c: Update references after renaming.
6798 * genemit.c: Likewise.
6799 * genoutput.c: Likewise.
6800 * genpreds.c: Likewise.
6801 * gensupport.c: Likewise.
6802 * read-rtl.c: Likewise.
6804 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6806 * Makefile.in (READ_MD_H): New variable.
6807 (BUILD_RTL): Add build/read-md.o.
6808 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
6809 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
6810 (build/genattrtab.o, build/genconditions.o build/genemit.o)
6811 (build/genextract.o, build/genflags.o, build/genoutput.o)
6812 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
6813 (build/read-md.o): New rule.
6814 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
6815 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
6816 * coretypes.h: ...here.
6817 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
6818 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
6819 * genattr.c: Include read-md.h.
6820 * genattrtab.c: Likewise.
6821 * genconditions.c: Likewise.
6822 * genemit.c: Likewise.
6823 * genextract.c: Likewise.
6824 * genflags.c: Likewise.
6825 * genoutput.c: Likewise.
6826 * genpreds.c: Likewise.
6827 * genrecog.c: Likewise.
6828 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
6829 (join_c_conditions, print_c_condition, read_rtx_filename)
6830 (read_rtx_lineno): Move to read-md.h.
6831 * read-rtl.c: Include read-md.h.
6832 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
6833 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
6834 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
6835 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
6836 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
6837 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
6838 (read_braced_string, read_string): Move to read-md.c.
6839 (read_rtx): Move some initialization to init_md_reader and call
6840 init_md_reader here.
6841 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
6843 * gensupport.c: Include read-md.h.
6844 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
6845 * read-md.h, read-md.c: New files.
6847 2010-06-10 Anatoly Sokolov <aesok@post.ru>
6849 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6850 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6851 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
6852 * config/moxie/moxie.c (moxie_function_value): Make static.
6853 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
6854 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6856 2010-06-10 Martin Jambor <mjambor@suse.cz>
6858 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
6859 * dbgcnt.def (tree_sra): New counter.
6860 * tree-sra.c: Include dbgcnt.h.
6861 (gate_intra_sra): Check tree_sra debug counter.
6863 2010-06-10 Martin Jambor <mjambor@suse.cz>
6865 PR tree-optimization/44258
6866 * tree-sra.c (build_access_subtree): Return false iff there is a
6868 (build_access_trees): Likewise.
6869 (analyze_all_variable_accesses): Disqualify candidates if
6870 build_access_trees returns true for them.
6872 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
6875 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
6876 tail-recurse into canonical node. Fast-forward over
6877 non-canonical VALUEs.
6879 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
6882 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
6883 (*addsi_1_zext) <TYPE_LEA>: Likewise.
6884 (add lea splitter): Likewise.
6885 (add_zext lea splitter): Likewise.
6887 2010-06-10 Joseph Myers <joseph@codesourcery.com>
6889 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
6891 2010-06-10 Jan Hubicka <jh@suse.cz>
6893 * df-problems.c (df_live_problem_data): Add live_bitmaps.
6894 (df_live_alloc): Initialize problem data and live_osbtacks.
6895 (df_live_finalize): Remove obstack, problem data; do not
6897 (df_live_top_dump, df_live_bottom_dump): Do not dump old
6898 data when not allocated.
6899 (df_live_verify_solution_start): Do not allocate problem data.
6900 (df_live_verify_solution_end): Check if out is allocated.
6901 (struct df_md_problem_data): New structure.
6902 (df_md_alloc): Allocate problem data.
6903 (df_md_free): Free problem data; do not clear bitmaps.
6905 2010-06-10 Jan Beulich <jbeulich@novell.com>
6908 * configure.ac: Replace $() with ${} when intending to expand
6909 variables rather than invoking commands.
6910 * configure: Re-generate.
6912 2010-06-10 Jan Hubicka <jh@suse.cz>
6914 PR rtl-optimization/44460
6915 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6916 TYPE_NEEDS_CONSTRUCTING sanity check.
6918 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
6920 * doc/include/fdl.texi: Move to GFDL version 1.3.
6922 * doc/cpp.texi: Move to GFDL version 1.3.
6923 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
6924 * doc/gccint.texi: Move to GFDL version 1.3.
6925 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
6926 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
6927 * doc/invoke.texi: Move to GFDL version 1.3.
6929 2010-06-09 Jan Hubicka <jh@suse.cz>
6931 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
6933 (propagate) ... here; swap the order.
6935 2010-06-09 Jan Hubicka <jh@suse.cz>
6937 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
6938 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
6939 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
6940 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
6942 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
6944 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
6945 Do not the gather memory reference in the outer loop if the step
6948 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
6950 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
6951 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
6952 8 to 4. Minor change of the related comments.
6954 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
6956 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
6957 the scev analysis when the variable is not used outside the loop
6958 in a close phi node: call compute_overall_effect_of_inner_loop.
6960 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
6962 * graphite-sese-to-poly.c (single_pred_cond): Renamed
6963 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
6964 (build_sese_conditions_before): Renamed call to single_pred_cond.
6965 (build_sese_conditions_after): Same.
6967 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
6969 * graphite-poly.h: Fix comments and indentation.
6970 * graphite-sese-to-poly.c: Same.
6971 (build_sese_conditions_before): Compute stmt and gbb only when needed.
6972 * tree-chrec.c: Fix comments and indentation.
6973 (tree-ssa-loop-niter.c): Same.
6975 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
6977 PR rtl-optimization/42461
6978 * dce.c (deletable_insn_p): Return true for const or pure calls again.
6979 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
6981 2010-06-09 Jan Hubicka <jh@suse.cz>
6983 * bitmap.c (bitmap_and): Walk array forward.
6984 (bitmap_and_compl_into): Likewise.
6985 (bitmap_xor): Likewise.
6986 (bitmap_xor_into): Likewise.
6987 (bitmap_equal_p): Likewise.
6988 (bitmap_intersect_p): Likewise.
6989 (bitmap_intersect_compl_p): Likewise.
6990 (bitmap_ior_and_into): Likewise.
6991 (bitmap_elt_copy): Likewise.
6992 (bitmap_and_compl): Likewise.
6993 (bitmap_elt_ior): Likewise.
6995 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
6997 * opts-common.c (prune_options): Ensure replacement argv array
6998 is correctly terminated by a NULL entry.
7000 2010-06-09 Jan Hubicka <jh@suse.cz>
7002 * cgraph.h (varpool_first_static_initializer,
7003 varpool_next_static_initializer): Make checking only when
7005 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
7006 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
7007 gcc_assert to gcc_checking_assert.
7008 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
7009 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
7010 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
7011 op_iter_init_phiuse, op_iter_init_phidef,
7012 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
7013 gcc_checking_assert.
7014 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
7015 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
7016 partition_is_global, live_on_entry, live_on_exit,
7017 live_merge_and_clear): Likewise.
7018 * system.h (gcc_checking_assert): New macro.
7019 * gimple.h (set_bb_seq): Use gcc_checking_assert.
7021 2010-06-09 Jason Merrill <jason@redhat.com>
7023 * Makefile.in (TAGS): Collect tags info from c-family.
7025 2010-06-09 Jan Hubicka <jh@suse.cz>
7027 * gimple.h (gcc_gimple_checking_assert): New macro.
7028 (gimple_set_def_ops, gimple_set_use_ops,
7029 gimple_set_vuse, gimple_set_vdef,
7030 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
7031 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
7032 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
7033 gimple_asm_output_op, gimple_asm_output_op_ptr,
7034 gimple_asm_set_output_op, gimple_asm_clobber_op,
7035 gimple_asm_set_clobber_op, gimple_asm_label_op,
7036 gimple_asm_set_label_op, gimple_try_set_kind,
7037 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
7038 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
7039 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
7040 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
7041 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
7042 gimple_omp_for_set_initial, gimple_omp_for_final,
7043 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
7044 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
7045 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
7046 conditional with ENABLE_GIMPLE_CHECKING.
7047 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
7049 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
7051 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
7052 (get_computation_cost_at): Use it.
7053 (determine_use_iv_cost_condition): Likewise.
7054 (determine_iv_cost): Likewise.
7056 2010-06-09 Richard Guenther <rguenther@suse.de>
7058 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
7061 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
7063 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
7065 2010-06-09 Martin Jambor <mjambor@suse.cz>
7067 PR tree-optimization/44423
7068 * tree-sra.c (dump_access): Dump also grp_assignment_read.
7069 (analyze_access_subtree): Pass negative allow_replacements to children
7070 if the current type is scalar.
7072 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
7075 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
7076 * doc/plugins.texi (Plugin license check): Update information
7077 on type of plugin_is_GPL_compatible.
7078 * Makefile.in (PLUGINCC): Define as $(COMPILER).
7079 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
7081 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
7083 * config/arm/arm.c (thumb2_reorg): New function.
7084 (arm_reorg): Call it.
7085 * config/arm/thumb2.md (define_peephole2 for flag clobbering
7086 arithmetic operations): Delete.
7088 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
7091 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
7094 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
7097 * gcc-plugin.h: Encapsulate all declarations in extern "C".
7099 2010-06-08 Jan Hubicka <jh@suse.cz>
7101 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
7102 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
7104 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
7106 PR tree-optimization/39874
7108 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
7110 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
7111 same_bool_result_p): New.
7112 (and_var_with_comparison, and_var_with_comparison_1,
7113 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
7114 (or_var_with_comparison, or_var_with_comparison_1,
7115 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
7116 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
7117 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
7118 of combine_comparisons.
7119 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
7121 2010-06-08 Anatoly Sokolov <aesok@post.ru>
7123 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7124 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7125 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
7126 pdp11_function_value_regno_p): New functions.
7127 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7128 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7130 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
7132 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
7133 Thumb-2 in the MINUS case.
7135 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7137 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
7139 * doc/gty.texi (GTY Options): Document typed GC allocation and
7140 variable_size GTY option.
7142 * ggc-internal.h: New.
7144 * ggc.h: Update copyright year.
7145 (digit_string): Move to stringpool.c.
7146 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
7147 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
7148 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
7149 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
7150 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
7151 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
7152 (ggc_force_collect, ggc_get_size, ggc_statistics)
7153 (ggc_print_common_statistics): Move to ggc-internal.h.
7154 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
7155 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
7156 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
7157 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
7158 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
7159 (ggc_alloc_zone_pass_stat): Remove.
7160 (ggc_internal_alloc_stat, ggc_internal_alloc)
7161 (ggc_internal_cleared_alloc_stat): New.
7162 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
7163 (ggc_internal_vec_alloc_stat)
7164 (ggc_internal_cleared_vec_alloc_stat)
7165 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
7166 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
7167 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
7168 (ggc_cleared_alloc_ptr_array_two_args): New.
7169 (htab_create_ggc, splay_tree_new_ggc): Redefine.
7170 (ggc_splay_alloc): Change the type of the first argument to
7172 (ggc_alloc_string): Make macro.
7173 (ggc_alloc_string_stat): New.
7174 (ggc_strdup): Redefine.
7175 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
7176 (ggc_alloc_rtvec_sized): New.
7177 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
7178 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
7179 (ggc_internal_cleared_alloc_zone_stat)
7180 (ggc_internal_zone_alloc_stat)
7181 (ggc_internal_zone_cleared_alloc_stat)
7182 (ggc_internal_zone_vec_alloc_stat)
7183 (ggc_alloc_zone_rtx_def_stat)
7184 (ggc_alloc_zone_tree_node_stat)
7185 (ggc_alloc_zone_cleared_tree_node_stat)
7186 (ggc_alloc_cleared_gimple_statement_d_stat): New.
7188 * ggc-common.c: Include ggc-internal.h.
7189 (ggc_internal_cleared_alloc_stat): Rename from
7190 ggc_alloc_cleared_stat.
7191 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
7192 (ggc_calloc): Remove.
7193 (ggc_cleared_alloc_htab_ignore_args): New.
7194 (ggc_cleared_alloc_ptr_array_two_args): New.
7195 (ggc_splay_alloc): Add obj_type parameter.
7196 (init_ggc_heuristics): Formatting fixes.
7198 * ggc-none.c: Update copyright year.
7199 (ggc_alloc_stat): Rename to ggc_alloc_stat.
7200 (ggc_alloc_cleared_stat): Rename to
7201 ggc_internal_cleared_alloc_stat.
7202 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
7204 * ggc-page.c: Update copyright year. Include ggc-internal.h.
7205 Remove references to ggc_alloc in comments.
7206 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
7207 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
7208 (new_ggc_zone, destroy_ggc_zone): Remove.
7209 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
7211 * ggc-zone.c: Include ggc-internal.h. Remove references to
7212 ggc_alloc in comments.
7213 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
7214 (ggc_internal_alloc_zone_pass_stat): New.
7215 (ggc_internal_cleared_alloc_zone_stat): New.
7216 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
7217 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
7218 (new_ggc_zone, destroy_ggc_zone): Remove.
7220 * stringpool.c: Update copyright year. Include ggc-internal.h
7221 (digit_vector): Make static.
7222 (digit_string): Moved from ggc.h.
7223 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
7224 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
7226 * Makefile.in (GGC_INTERNAL_H): New.
7227 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
7228 $(GGC_INTERNAL_H) to dependencies.
7230 * gentype.c: Update copyright year.
7231 (walk_type): Accept variable_size GTY option.
7232 (USED_BY_TYPED_GC_P): New macro.
7233 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
7234 whitespace at the end of strings.
7235 (get_type_specifier, variable_size_p): New functions.
7236 (alloc_quantity, alloc_zone): New enums.
7237 (write_typed_alloc_def): New function.
7238 (write_typed_struct_alloc_def): Likewise.
7239 (write_typed_typed_typedef_alloc_def): Likewise.
7240 (write_typed_alloc_defns): Likewise.
7241 (output_typename, write_splay_tree_allocator_def): Likewise.
7242 (write_splay_tree_allocators): Likewise.
7243 (main): Call write_typed_alloc_defns and
7244 write_splay_tree_allocators.
7246 * lto-streamer.h (lto_file_decl_data_ptr): New.
7248 * passes.c (order): Define using cgraph_node_ptr.
7250 * strinpool.c (struct string_pool_data): Declare nested_ptr using
7253 * gimple.h (union gimple_statement_d): Likewise.
7255 * rtl.h (struct rtx_def): Likewise.
7256 (struct rtvec_def): Likewise.
7258 * tree.h (union tree_node): Likewise.
7260 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
7262 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
7264 * tree-scalar-evolution.c (scev_initialize): Likewise.
7266 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
7268 * dwarf2asm.c (dw2_force_const_mem): Likewise.
7270 * omp-low.c (lower_omp_critical): Likewise.
7272 * bitmap.h (struct bitmap_head_def): Update comment to not
7273 reference ggc_alloc.
7275 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
7277 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
7279 * ipa-prop.c (duplicate_ggc_array): Rename to
7280 duplicate_ipa_jump_func_array. Use typed GC allocation.
7281 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
7283 * gimple.c (gimple_alloc_stat): Use
7284 ggc_alloc_cleared_gimple_statement_d_stat.
7286 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
7288 * tree.c (make_node_stat): Use
7289 ggc_alloc_zone_cleared_tree_node_stat.
7290 (make_tree_vec_stat): Likewise.
7291 (build_vl_exp_stat): Likewise.
7292 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
7293 (make_tree_binfo_stat): Likewise.
7294 (tree_cons_stat): Likewise.
7296 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
7297 (shallow_copy_rtx_stat): Likewise.
7298 (make_node_stat): Likewise.
7300 * lto-symtab.c: Fix comment.
7302 * tree-cfg.c (create_bb): Update comment to not reference
7304 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
7306 * varpool.c (varpool_node): Use typed GC allocation.
7307 (varpool_extra_name_alias): Likewise.
7309 * varasm.c (emutls_decl): Likewise.
7310 (get_unnamed_section): Likewise.
7311 (get_noswitch_section): Likewise.
7312 (get_section): Likewise.
7313 (get_block_for_section): Likewise.
7314 (build_constant_desc): Likewise.
7315 (create_constant_pool): Likewise.
7316 (force_const_mem): Likewise.
7318 * tree.c (build_vl_exp_stat): Likewise.
7319 (build_real): Likewise.
7320 (build_string): Likewise.
7321 (decl_debug_expr_insert): Likewise.
7322 (decl_value_expr_insert): Likewise.
7323 (type_hash_add): Likewise.
7324 (build_omp_clause): Likewise.
7326 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
7328 * tree-ssa.c (init_tree_ssa): Likewise.
7330 * tree-ssa-structalias.c (heapvar_insert): Likewise.
7332 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
7334 * tree-ssa-loop-niter.c (record_estimate): Likewise.
7336 * tree-ssa-alias.c (get_ptr_info): Likewise.
7338 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
7340 * tree-phinodes.c (allocate_phi_node): Likewise.
7342 * tree-iterator.c (tsi_link_before): Likewise.
7343 (tsi_link_after): Likewise.
7345 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
7347 * tree-dfa.c (create_var_ann): Likewise.
7349 * tree-cfg.c (create_bb): Likewise.
7351 * toplev.c (alloc_for_identifier_to_locale): Likewise.
7352 (general_init): Likewise.
7354 * stringpool.c (stringpool_ggc_alloc): Likewise.
7355 (gt_pch_save_stringpool): Likewise.
7357 * sese.c (if_region_set_false_region): Likewise.
7359 * passes.c (do_per_function_toporder): Likewise.
7361 * optabs.c (set_optab_libfunc): Likewise.
7362 (set_conv_libfunc): Likewise.
7364 * lto-symtab.c (lto_symtab_register_decl): Likewise.
7366 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
7367 (input_eh_region): Likewise.
7368 (input_eh_lp): Likewise.
7369 (make_new_block): Likewise.
7370 (unpack_ts_real_cst_value_fields): Likewise.
7372 * lto-section-in.c (lto_new_in_decl_state): Likewise.
7374 * lto-cgraph.c (input_node_opt_summary): Likewise.
7376 * loop-init.c (loop_optimizer_init): Likewise.
7378 * lambda.h (lambda_vector_new): Likewise.
7380 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
7382 * ira.c (update_equiv_regs): Likewise.
7384 * ipa.c (cgraph_node_set_new): Likewise.
7385 (cgraph_node_set_add): Likewise.
7386 (varpool_node_set_new): Likewise.
7387 (varpool_node_set_add): Likewise.
7389 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
7390 (duplicate_ipa_jump_func_array): Likewise.
7391 (ipa_read_node_info): Likewise.
7393 * ipa-cp.c (ipcp_create_replace_map): Likewise.
7395 * integrate.c (get_hard_reg_initial_val): Likewise.
7397 * gimple.c (gimple_alloc_stat): Likewise.
7398 (gimple_build_omp_for): Likewise.
7399 (gimple_seq_alloc): Likewise.
7400 (gimple_copy): Likewise.
7402 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
7403 (gsi_insert_after_without_update): Likewise.
7405 * function.c (add_frame_space): Likewise.
7406 (insert_temp_slot_address): Likewise.
7407 (assign_stack_temp_for_type): Likewise.
7408 (allocate_struct_function): Likewise.
7409 (types_used_by_var_decl_insert): Likewise.
7411 * except.c (init_eh_for_function): Likewise.
7412 (gen_eh_region): Likewise.
7413 (gen_eh_region_catch): Likewise.
7414 (gen_eh_landing_pad): Likewise.
7415 (add_call_site): Likewise.
7417 * emit-rtl.c (get_mem_attrs): Likewise.
7418 (get_reg_attrs): Likewise.
7419 (start_sequence): Likewise.
7420 (init_emit): Likewise.
7422 * dwarf2out.c (new_cfi): Likewise.
7423 (queue_reg_save): Likewise.
7424 (dwarf2out_frame_init): Likewise.
7425 (new_loc_descr): Likewise.
7426 (find_AT_string): Likewise.
7427 (new_die): Likewise.
7428 (add_var_loc_to_decl): Likewise.
7429 (clone_die): Likewise.
7430 (clone_as_declaration): Likewise.
7431 (break_out_comdat_types): Likewise.
7432 (new_loc_list): Likewise.
7433 (loc_descriptor): Likewise.
7434 (add_loc_descr_to_each): Likewise.
7435 (add_const_value_attribute): Likewise.
7436 (tree_add_const_value_attribute): Likewise.
7437 (add_comp_dir_attribute): Likewise.
7438 (add_name_and_src_coords_attributes): Likewise.
7439 (lookup_filename): Likewise.
7440 (store_vcall_insn): Likewise.
7441 (dwarf2out_init): Likewise.
7443 * dbxout.c (dbxout_init): Likewise.
7445 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
7447 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
7449 * config/score/score7.c (score7_output_external): Likewise.
7451 * config/score/score3.c (score3_output_external): Likewise.
7453 * config/s390/s390.c (s390_init_machine_status): Likewise.
7455 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
7456 (rs6000_init_machine_status): Likewise.
7457 (output_toc): Likewise.
7459 * config/pa/pa.c (pa_init_machine_status): Likewise.
7460 (get_deferred_plabel): Likewise.
7462 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
7464 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
7466 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
7468 * config/mep/mep.c (mep_init_machine_status): Likewise.
7469 (mep_note_pragma_flag): Likewise.
7471 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
7473 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
7475 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
7477 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
7478 (i386_pe_maybe_record_exported_symbol): Likewise.
7480 * config/i386/i386.c (get_dllimport_decl): Likewise.
7481 (ix86_init_machine_status): Likewise.
7482 (assign_386_stack_local): Likewise.
7484 * config/frv/frv.c (frv_init_machine_status): Likewise.
7486 * config/darwin.c (machopic_indirection_name): Likewise.
7488 * config/cris/cris.c (cris_init_machine_status): Likewise.
7490 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
7492 * config/avr/avr.c (avr_init_machine_status): Likewise.
7494 * config/arm/arm.c (arm_init_machine_status): Likewise.
7496 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
7497 (alpha_need_linkage): Likewise.
7498 (alpha_use_linkage): Likewise.
7500 * cgraph.c (cgraph_allocate_node): Likewise.
7501 (cgraph_create_edge_1): Likewise.
7502 (cgraph_create_indirect_edge): Likewise.
7503 (cgraph_add_asm_node): Likewise.
7505 * cfgrtl.c (init_rtl_bb_info): Likewise.
7507 * cfgloop.c (alloc_loop): Likewise.
7508 (rescan_loop_exit): Likewise.
7510 * cfg.c (init_flow): Likewise.
7511 (alloc_block): Likewise.
7512 (unchecked_make_edge): Likewise.
7514 * c-parser.c (c_parse_init): Likewise.
7515 (c_parse_file): Likewise.
7517 * c-decl.c (bind): Likewise.
7518 (record_inline_static): Likewise.
7519 (push_scope): Likewise.
7520 (make_label): Likewise.
7521 (lookup_label_for_goto): Likewise.
7522 (finish_struct): Likewise.
7523 (finish_enum): Likewise.
7524 (c_push_function_context): Likewise.
7526 * bitmap.c (bitmap_element_allocate): Likewise.
7527 (bitmap_gc_alloc_stat): Likewise.
7529 * alias.c (record_alias_subset): Likewise.
7530 (init_alias_analysis): Likewise.
7532 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
7534 * fold-const.c (fold_comparison): Remove redundant parenthesis.
7535 * tree-inline.c (expand_call_inline): Pass translated return value of
7536 cgraph_inline_failed_string to diagnostic function.
7538 2010-06-08 Andrew Pinski <pinskia@gmail.com>
7539 Shujing Zhao <pearly.zhao@oracle.com>
7542 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
7543 implicit bad conversions is initialization.
7544 (error_init): Use gmsgid instead of msgid for argument name and change
7546 (pedwarn_init): Use gmsgid instead of msgid for argument name and
7547 change the call for pedwarn.
7548 (warning_init): Use gmsgid instead of msgid for argument name and
7549 change the call for warning.
7551 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
7553 * config/mips/mips-protos.h (mips_print_operand): Delete.
7554 (mips_print_operand_address): Delete.
7555 * config/mips/mips.h (mips_print_operand_punct): Delete.
7556 (PRINT_OPERAND): Delete.
7557 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7558 (PRINT_OPERAND_ADDRESS): Delete.
7559 * config/mips/mips.c (mips_print_operand_punct): Make static.
7560 (mips_print_operand_address): Make static.
7561 (mips_print_operand): Make static. Call
7562 mips_print_operand_punct_valid_p.
7563 (mips_print_operand_punct_valid_p): New function.
7564 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7565 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7567 2010-06-07 Jan Hubicka <jh@suse.cz>
7570 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
7573 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
7575 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
7578 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7580 * doc/sourcebuild.texi (Effective-Target Keywords, Other
7581 attributes): Document gas.
7583 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
7585 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
7586 <TYPE_LEA>: Split instruction.
7587 <default>: Remove alternative 2 handling.
7588 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
7589 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
7590 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
7592 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
7593 (ashift_zext lea splitter): Use DImode for multiplication.
7595 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
7596 to generate addition.
7598 2010-06-07 Joseph Myers <joseph@codesourcery.com>
7600 * common.opt (fira-verbose): Use Var.
7601 (fpcc-struct-return): Use Init instead of VarExists.
7602 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
7604 * flags.h (flag_signed_char, flag_short_enums,
7605 flag_pcc_struct_return, flag_ira_verbose,
7606 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
7607 * toplev.c (flag_detailed_statistics, flag_signed_char,
7608 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
7609 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
7610 * toplev.h (flag_crossjumping, flag_if_conversion,
7611 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
7612 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
7613 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
7614 flag_cprop_registers, time_report, flag_ira_loop_pressure,
7615 flag_ira_coalesce, flag_ira_move_spills,
7616 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
7618 2010-06-07 Jan Hubicka <jh@suse.cz>
7620 * df-core.c (df_analyze_problem): Do verification after allocation.
7622 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
7623 (df_lr_alloc): Initialize problem data; move bitmaps to
7625 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
7626 (df_lr_verify_solution_start): Do not initialize problem data;
7627 allocate bitmaps in lr_bitmaps.
7628 (df_lr_verify_solution_end): Do not free problem data.
7630 2010-06-07 Jan Hubicka <jh@suse.cz>
7632 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
7633 if caller is noreturn.
7634 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
7635 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
7636 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
7637 * ipa-pure-const.c (check_decl): Add IPA parameter.
7638 (state_from_flags): New function.
7639 (better_state, worse_state): New functions.
7640 (check_call): When in IPA mode, do not care about callees.
7641 (check_load, check_store): Update.
7642 (check_ipa_load, check_ipa_store): New.
7643 (check_stmt): When in IPA mode, use IPA checkers.
7644 (analyze_function): Use state_from_flags.
7645 (propagate): Check indirect edges and references.
7647 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
7649 PR rtl-optimization/44404
7650 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
7651 of count_occurrences to see if it's safe to modify mem_insn.
7653 2010-06-07 Richard Guenther <rguenther@suse.de>
7655 * gimplify.c (gimplify_cleanup_point_expr): For empty body
7656 and EH-only cleanup drop the cleanup instead of inserting it
7659 2010-06-07 Ira Rosen <irar@il.ibm.com>
7661 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
7663 * targhooks.c (default_builtin_vectorization_cost): New function.
7664 * targhooks.h (default_builtin_vectorization_cost): Declare.
7665 * target.h (enum vect_cost_for_stmt): Define.
7666 (builtin_vectorization_cost): Change argument and comment.
7667 * tree-vectorizer.h: Remove cost model macros.
7668 * tree-vect-loop.c: Include target.h.
7669 (vect_get_cost): New function.
7670 (vect_estimate_min_profitable_iters): Replace cost model macros with
7671 calls to vect_get_cost.
7672 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
7673 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
7674 default implementation.
7675 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
7676 calls to target hook builtin_vectorization_cost.
7677 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
7679 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
7680 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
7681 implementation to return costs.
7682 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
7683 * config/spu/spu.h: Remove vectorizer cost model macros.
7684 * config/i386/i386.h: Likewise.
7685 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
7686 a call to target hook builtin_vectorization_cost.
7688 2010-06-06 Sriraman Tallam <tmsriram@google.com>
7691 * config/i386/i386.c (override_options): Turn zee pass on for level 2
7692 and above and defer till target is known.
7693 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
7696 2010-05-25 Jan Hubicka <jh@suse.cz>
7698 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
7699 (df_compact_blocks): Likewise.
7700 * df.h (struct df): Turn hardware_regs_used,
7701 regular_block_artificial_uses, eh_block_artificial_uses,
7702 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
7704 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
7705 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
7706 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
7707 df_scan_blocks, df_insn_delete, df_insn_rescan,
7708 df_insn_rescan_debug_internal, df_insn_rescan_all,
7709 df_process_deferred_rescans, df_process_deferred_rescans,
7710 df_notes_rescan, df_get_call_refs, df_get_call_refs,
7711 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
7712 df_record_entry_block_defs, df_record_exit_block_uses,
7713 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
7714 df_scan_verify): Update.
7716 2010-05-25 Dodji Seketeli <dodji@redhat.com>
7719 * c-common.c (is_typedef_decl): Move this definition ...
7720 * tree.c (is_typedef_decl): ... here.
7721 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
7722 * c-common.h (is_typedef_decl): Move this declaration ...
7723 * tree.h (is_typedef_decl): ... here.
7724 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
7725 * dwarf2out.c (is_naming_typedef_decl): New function.
7726 (gen_tagged_type_die): Split out of ...
7727 (gen_type_die_with_usage): ... this function. When an anonymous
7728 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
7729 is emitted for the typedef.
7730 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
7731 anonymous tagged types.
7733 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
7736 * c-decl.c (grokdeclarator): Delete warning.
7738 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
7740 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
7741 newly built CALL_EXPR.
7742 * tree-profile.c (tree_profiling): Don't profile functions produced
7745 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
7749 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
7750 endianness-independent.
7752 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
7754 * c-common.c: Move to c-family/.
7755 * c-common.def: Likewise.
7756 * c-common.h: Likewise.
7757 * c-cppbuiltin.c: Likewise.
7758 * c-dump.c: Likewise.
7759 * c-format.c: Likewise.
7760 * c-format.h : Likewise.
7761 * c-gimplify.c: Likewise.
7762 * c-lex.c: Likewise.
7763 * c-omp.c: Likewise.
7765 * c-opts.c: Likewise.
7766 * c-pch.c: Likewise.
7767 * c-ppoutput.c: Likewise.
7768 * c-pragma.c: Likewise.
7769 * c-pragma.h: Likewise.
7770 * c-pretty-print.c: Likewise.
7771 * c-pretty-print.h: Likewise.
7772 * c-semantics.c: Likewise.
7773 * stub-objc.c: Likewise.
7775 * gengtype.c (get_file_langdir): Special-case files in c-family/.
7776 (get_output_file_with_visibility): Fix name for c-common.h.
7777 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
7779 * c-tree.h: Update include path for moved files.
7780 * c-lang.c: Likewise.
7781 * c-lang.h: Likewise.
7782 * c-parser.c: Likewise.
7783 * c-convert.c: Likewise.
7784 * c-decl.c: Likewise.
7785 * c-objc-common.c: Likewise.
7786 * configure.ac: Make sure c-family/ exists in the build directory.
7787 * configure: Regenerate.
7788 * Makefile.in: Update paths for moved files. Regroup files per
7789 location and update dependencies. Move generated_files down after
7792 * config/spu/spu-c.c: Update paths for moved files.
7793 * config/mep/mep-pragma.c: Likewise.
7794 * config/darwin-c.c: Likewise.
7795 * config/i386/msformat-c.c: Likewise.
7796 * config/i386/i386-c.c: Likewise.
7797 * config/avr/avr-c.c: Likewise.
7798 * config/sol2-c.c: Likewise.
7799 * config/ia64/ia64-c.c: Likewise.
7800 * config/rs6000/rs6000-c.c: Likewise.
7801 * config/arm/arm.c: Likewise.
7802 * config/arm/arm-c.c: Likewise.
7803 * config/h8300/h8300.c: Likewise.
7804 * config/v850/v850-c.c: Likewise.
7806 * config/t-darwin: Fix dependencies for moved files.
7807 * config/t-sol2: Fix dependencies for moved files.
7808 * config/mep/t-mep: Fix dependencies for moved files.
7809 * config/ia64/t-ia64: Fix dependencies for moved files.
7810 * config/rs6000/t-rs6000: Fix dependencies for moved files.
7811 * config/v850/t-v850: Fix dependencies for moved files.
7812 * config/v850/t-v850e: Fix dependencies for moved files.
7814 * config/m32c/m32c-pragma.c
7816 * po/exgettext: Look in c-family/ also.
7818 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
7820 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
7821 (mark_control_dependent_edges_necessary): Call it instead of marking
7822 the last statement manually.
7823 (propagate_necessity): Likewise.
7825 2010-06-05 Jan Hubicka <jh@suse.cz>
7827 * basic-block.h (compute_dominance_frontiers): Updated.
7828 (compute_idf): Likewise.
7830 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
7831 for dominance frontiers.
7832 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
7833 (insert_updated_phi_nodes_for): Likewise.
7834 (update_ssa): Likewise.
7835 * cfganal.c (compute_dominance_frontiers_1): Likewise.
7836 (compute_dominance_frontiers): Likewise.
7837 (compute_idf): Likewise.
7838 * df-problems.c (df_md_local_compute): Likewise.
7840 2010-06-05 Anatoly Sokolov <aesok@post.ru>
7842 * target.h (struct gcc_target): Add memory_move_cost field.
7843 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
7844 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
7845 * targhooks.c (default_memory_move_cost): New function.
7846 * targhooks.h (default_memory_move_cost): Declare function.
7847 * reload.h (memory_move_cost): Declare.
7848 (memory_move_secondary_cost): Change type of 'in' argument to bool.
7849 * reginfo.c (memory_move_cost): New function.
7850 (memory_move_secondary_cost): Change type of 'in' argument to bool.
7851 * ira.h (ira_memory_move_cost): Update comment.
7852 * ira.c (ira_memory_move_cost): Update comment.
7853 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
7854 with memory_move_cost.
7855 * postreload.c (reload_cse_simplify_set): (Ditto.).
7856 * reload1.c (choose_reload_regs): (Ditto.).
7857 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
7858 (MEMORY_MOVE_COST): Revise documentation.
7860 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
7861 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
7862 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
7863 type of 'in' argument to bool.
7864 (TARGET_MEMORY_MOVE_COST): Define.
7866 2010-06-05 Jan Hubicka <jh@suse.cz>
7868 * ipa-pure-const.c (propagate): Fix typo in handling of functions
7869 that cannot return. Be more careful when merging the results with
7870 previously known ones.
7872 2010-06-05 Matthias Klose <doko@ubuntu.com>
7874 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
7875 function to add the -iplugindir option.
7876 (find_plugindir_spec_function): Add new declaration and function.
7877 (static_spec_func): Use it for "find-plugindir".
7879 2010-06-05 Jakub Jelinek <jakub@redhat.com>
7882 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
7883 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
7884 statement expression.
7886 2010-06-05 Jan Hubicka <jh@suse.cz>
7888 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
7889 (df_rd_problem_data): Convert sparse_invalidated_by_call,
7890 dense_invalidated_by_call to bitmap head.
7891 (df_rd_alloc, df_rd_bb_local_compute_process_def,
7892 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
7893 df_rd_start_dump, df_lr_verify_transfer_functions,
7894 df_live_verify_transfer_functions, df_chain_create_bb,
7895 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
7896 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
7897 df_simulate_one_insn_forwards, df_md_alloc,
7898 df_md_bb_local_compute_process_def,
7899 df_md_bb_local_compute_process_def, df_md_local_compute,
7900 df_md_transfer_function df_md_free): Update.
7902 2010-06-05 Joseph Myers <joseph@codesourcery.com>
7905 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
7906 target type for ADDR_EXPR; require no changes to qualifiers except
7908 * c-tree.h (c_build_type_variant): Remove.
7910 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
7912 * genautomata.c (get_excl_set): Do work per element, not per char.
7913 (check_presence_pattern_sets): Similar.
7914 (check_absence_pattern_sets): Similar.
7916 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
7918 * genautomata.c (curr_state_pass_num): Delete.
7919 (min_issue_delay_pass_states): Delete.
7920 (min_issue_delay): Delete.
7921 (initiate_min_issue_delay_pass_states): Delete.
7922 (output_min_issue_delay_table): Compute min_issue_delay_vect
7923 using a breadth-first search variant.
7924 (output_tables): Don't call initiate_min_issue_delay_pass_states.
7926 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
7929 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
7930 (df_byte_lr_bb_local_compute): Likewise.
7932 2010-06-03 Jason Merrill <jason@redhat.com>
7934 Implement noexcept operator (5.3.7)
7935 * c-common.c (c_common_reswords): Add noexcept.
7936 * c-common.h (enum rid): Add RID_NOEXCEPT.
7938 2010-06-04 Joseph Myers <joseph@codesourcery.com>
7940 * config/darwin-driver.c (darwin_default_min_version): Use
7941 GCC-specific formats in diagnostics.
7942 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
7944 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
7945 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
7946 eval_spec_function, handle_braces, process_brace_body, main,
7947 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
7948 getenv_spec_function, compare_version_strings,
7949 version_compare_spec_function): Use GCC-specific formats in
7952 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
7954 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
7955 that operand 0 and operand 1 are equal.
7956 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
7957 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
7958 and operand 1 are equal.
7959 <default>: Ditto. Remove ??? comment.
7960 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
7961 and operand 1 are equal.
7962 <default>: Ditto. Remove ??? comment.
7963 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
7965 (*add<mode>_4) <default>: Ditto.
7966 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
7968 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
7970 * config/i386/i386-protos.h (ix86_print_operand): Declare.
7971 * config/i386/i386.c (ix86_print_operand): Make non-static.
7972 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
7973 * output.h (output_operand): Declare.
7974 * final.c (output_operand): Make non-static.
7976 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
7978 PR rtl-optimization/44013
7979 * sched-deps.c (add_dependence_list_and_free): Don't free lists
7980 when processing debug insns.
7983 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
7984 recursing. Check that recursion is bounded. Rename inner var
7985 to avoid hiding incoming argument.
7987 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
7989 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
7994 (*addqi_ext_1_rex64): Ditto.
7995 (*addqi_ext_1): Ditto.
7997 (*addqi_4): Check for incdec_operand in QImode.
7999 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
8000 using SWI mode iterator.
8001 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
8002 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
8004 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
8005 using SWI mode iterator.
8007 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
8010 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
8011 * c-format.c (gcc_diag_flag_specs): Add hash.
8012 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
8013 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
8014 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
8015 pp_c_cv_qualifiers. Handle qualifiers spelling here.
8016 (pp_c_type_qualifier_list): Call the function above.
8017 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
8018 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
8019 (WARN_FOR_QUALIFIERS): New macro.
8020 (convert_for_assignment): Use it.
8022 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
8024 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
8026 2010-06-04 Jan Hubicka <jh@suse.cz>
8028 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
8029 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
8030 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
8031 DF_BYTE_LR_OUT): Update for embedded bitmaps.
8032 * fwprop.c (single_def_use_enter_block): Likewise.
8033 * ddg.c (create_ddg_dep_from_intra_loop_link,
8034 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
8035 * loop-iv.c (latch_dominating_def): Likewise.
8036 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
8037 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
8038 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
8039 df_rd_transfer_function, df_rd_top_dump,
8040 df_rd_bottom_dump): Update.
8041 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
8042 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
8043 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
8044 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
8045 df_lr_verify_solution_start, df_lr_verify_solution_end,
8046 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
8047 df_live_free_bb_info, df_live_alloc, df_live_reset,
8048 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
8049 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
8050 df_live_verify_solution_start, df_live_verify_solution_end,
8051 df_live_verify_transfer_functions, df_chain_create_bb,
8052 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
8053 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
8054 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
8055 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
8056 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
8057 df_byte_lr_transfer_function, df_byte_lr_top_dump,
8058 df_byte_lr_bottom_dump, df_create_unused_note,
8059 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
8060 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
8061 df_md_transfer_function, df_md_init, df_md_confluence_0,
8063 df_md_top_dump, df_md_bottom_dump): Update.
8064 (struct df_lr_problem_data): Embedd bitmap headers.
8066 2010-06-04 Jan Hubicka <jh@suse.cz>
8068 * dce.c (dce_process_block): Do not re-scan already marked
8071 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
8073 PR rtl-optimization/39871
8074 PR rtl-optimization/40615
8075 PR rtl-optimization/42500
8076 PR rtl-optimization/42502
8077 * ira.c (init_reg_equiv_memory_loc: New function.
8078 (ira): Call it twice.
8079 * reload.h (calculate_elim_costs_all_insns): Declare.
8080 * ira-costs.c: Include "reload.h".
8081 (regno_equiv_gains): New static variable.
8082 (init_costs): Allocate it.
8083 (finish_costs): Free it.
8084 (ira_costs): Call calculate_elim_costs_all_insns.
8085 (find_costs_and_classes): Take estimated elimination costs
8087 (ira_adjust_equiv_reg_cost): New function.
8088 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
8089 * reload1.c (init_eliminable_invariants, free_reg_equiv,
8090 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
8091 (elim_bb): New static variable.
8092 (reload): Move code out of here into init_eliminable_invariants and
8093 free_reg_equiv. Call them.
8094 (calculate_elim_costs_all_insns): New function.
8095 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
8096 all callers changed. If FOR_COSTS is true, don't call alter_reg,
8097 but call note_reg_elim_costly if we turned a valid memory address
8098 into an invalid one.
8099 * Makefile.in (ira-costs.o): Depend on reload.h.
8101 2010-06-04 Julian Brown <julian@codesourcery.com>
8103 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
8106 2010-06-04 Richard Guenther <rguenther@suse.de>
8109 * cgraph.h (struct varpool_node): Add lto_file_data field.
8110 * lto-cgraph.c (input_varpool_node): Initialize it.
8112 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
8114 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
8115 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
8116 predicate in "type" attribute calculation.
8117 (*addsi_1_zext): Ditto.
8118 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
8119 (*addsi_2_zext): Ditto.
8120 (*add<mode>_3): Ditto.
8121 (*addsi_3_zext): Ditto.
8122 (*add<mode>_5): Ditto.
8124 2010-06-03 Jan Hubicka <jh@suse.cz>
8126 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
8128 * cfganal.c (compute_dominance_frontiers_1): Likewise.
8130 2010-06-03 Jan Hubicka <jh@suse.cz>
8132 * df-problems.c (df_create_unused_note, df_note_bb_compute):
8133 micro-optimize the checks when to add new note.
8135 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
8137 * final.c (output_asm_insn): Call
8138 targetm.asm_out.print_operand_punct_valid_p. Update comments.
8139 (output_operand): Call targetm.asm_out.print_operand. Update comments.
8140 (output_address): Call targetm.asm_out.print_operand_address.
8142 * target.h (struct gcc_target): Add print_operand,
8143 print_operand_address, and print_operand_punct_valid_p fields.
8144 * targhooks.h (default_print_operand): Declare.
8145 (default_print_operand_address): Declare.
8146 (default_print_operand_punct_valid_p): Declare.
8147 * targhooks.c (default_print_operand): Define.
8148 (default_print_operand_address): Define.
8149 (default_print_operand_punct_valid_p): Define.
8150 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
8151 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
8152 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
8153 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
8154 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
8155 * vmsdbgout.c (addr_const_to_string): Update comment.
8156 * config/i386/i386.c (print_operand): Rename to...
8157 (ix86_print_operand): ...this. Make static.
8158 (print_operand_address): Rename to...
8159 (ix86_print_operand_address): ...this. Make static. Call
8160 ix86_print_operand instead of PRINT_OPERAND.
8161 (ix86_print_operand_punct_valid_p): New function.
8162 (TARGET_PRINT_OPERAND): Define.
8163 (TARGET_PRINT_OPERAND_ADDRESS): Define.
8164 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8165 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
8166 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8167 (PRINT_OPERAND): Delete.
8168 (PRINT_OPERAND_ADDRESS): Delete.
8169 * config/i386/i386-protos.h (print_operand): Delete prototype.
8170 (print_operand_address): Delete prototype.
8172 2010-06-03 Richard Guenther <rguenther@suse.de>
8174 PR tree-optimization/44403
8175 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8176 Preserve pointer qualifiers.
8177 (vect_create_data_ref_ptr): Likewise.
8179 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
8182 * defaults.h (MAX_FIXED_MODE_SIZE): New.
8184 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
8186 2010-06-03 Jakub Jelinek <jakub@redhat.com>
8189 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
8190 return false if merging the bbs would lead to goto_locus
8191 location being lost from the IL.
8193 2010-06-03 Jan Hubicka <jh@suse.cz>
8194 Jakub Jelinek <jakub@redhat.com>
8196 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
8197 set->regs[i] is NULL or has just one entry.
8199 2010-06-03 Jan Hubicka <jh@suse.cz>
8201 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
8202 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
8204 2010-06-03 Paul Brook <paul@codesourcery.com>
8206 * config/arm/arm.c (FL_TUNE): Define.
8207 (arm_default_cpu, arm_cpu_select): Remove.
8208 (all_cores): Populate core field.
8209 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
8210 (arm_find_cpu): New function.
8211 (arm_handle_option): Lookup cpu/architecture names.
8212 (arm_override_options): Cleanup mcpu/march/mtune handling.
8213 (arm_file_start): Ditto.
8215 2010-06-03 Alan Modra <amodra@gmail.com>
8218 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
8219 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
8220 rtx to gen_load_toc_v4_PIC_1b. Tidy.
8221 (rs6000_emit_load_toc_table): Likewise.
8223 2010-06-02 Jan Hubicka <jh@suse.cz>
8225 * passes.c (init_optimization_passes): Put ipa reference
8226 after ipa pure-const.
8228 2010-06-02 Jan Hubicka <jh@suse.cz>
8230 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
8231 calls_read_all and calls_write_all.
8232 (get_reference_optimization_summary): Fix formatting.
8233 (is_proper_for_analysis): Check that decl is not readonly.
8234 (propagate_bits): Check CONST/PURE/noreturn flags.
8235 (ipa_init): Move all_module_statics to optimization_summary_obstack.
8236 (analyze_function): Ignore indirect edges.
8237 (copy_global_bitmap): For all module statics, do nothing.
8238 (generate_summary): Do not print calls_read_all/calls_write_all.
8239 (read_write_all_from_decl): Take node as argument; check
8240 cgraph_node_cannot_return.
8241 (propagate): Reorganize read_all/write_all computation;
8242 check indirect edges; check ecf flags; use all_module_statics
8243 in the results; do not free all_module_statics.
8244 (stream_out_bitmap): Handle all_module_statics.
8245 (ipa_reference_write_optimization_summary): Likewise; use
8246 varpool/cgraph encoders to get boundaries.
8247 (ipa_reference_read_optimization_summary): Read in all_module_statics;
8248 use it when possible.
8250 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8253 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
8254 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
8256 * doc/extend.texi (powerpc builtins): Document vec_recip,
8257 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
8259 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
8260 (rs6000_emit_swrsqrt): Ditto.
8261 (rs6000_emit_swdivsf): Delete.
8262 (rs6000_emit_swdivdf): Ditto.
8263 (rs6000_emit_swrsqrtsf): Ditto.
8265 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
8266 describe the reciprocal estimate support for each type.
8267 (recip_options): Map -mrecip=<opt> into option bits.
8268 (gen_2arg_fn_t): New typedef for binary rtx gen function.
8269 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
8270 reciprocal estimate instructions.
8271 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
8272 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
8273 Set up rs6000_recip_bits based on the -mrecip* options. Print the
8274 cost information if -mdebug=cost or -mdebug=reg.
8275 (rs6000_override_options): Set -mrecip-precision for power6, and
8276 power7 machines. If -mvsx or -mdfp, enable various options that
8277 came in previous instruction set ISAs, unless the option was
8278 explicitly disabled by the command line option. Parse
8279 -mrecip=<opt> options.
8280 (rs6000_builtin_vectorized_function): Add support for vectorizing
8281 the reciprocal estimate builtins and expansions.
8282 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
8283 (bdesc_2arg): Add reciprocal estimate builtins.
8284 (bdesc_1arg): Add reciprocal square root estimate builtins.
8285 (rs6000_expand_builtin): Rewrite to use a switch statement,
8286 instead of multiple if/then/elses. Add reciprocal estimate builtins.
8287 (rs6000_init_builtins): Create declarations for reciprocal
8289 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
8290 sized, prefer traditional floating point registers, if integer
8291 vector types, prefer altivec registers. Don't actually look at
8292 the memory address any more.
8293 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
8295 (rs6000_load_constant_and_splat): New helper function to load up
8296 the constant for reciprocal estimate instructions.
8297 (rs6000_emit_madd): New helper function for generating
8298 multiply/add type instructions, based on the current switches.
8299 (rs6000_emit_msub): Ditto.
8300 (rs6000_emit_mnsub): Ditto.
8301 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
8302 replace a divide with a reciprocal estimate and fixup, adding
8303 support for machines with high precision and vectors.
8304 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
8305 low precision machines.
8306 (rs6000_emit_swdiv): New common function to be called to replace a
8307 division with reciprocal estimate and fixup.
8308 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
8309 for double and vector types. Add support for high precision machines.
8311 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
8312 the reciprocal estimate instructions can be generated.
8313 (TARGET_FRE): Ditto.
8314 (TARGET_FRSQRTES): Ditto.
8315 (TARGET_FRSQRTE): Ditto.
8316 (RS6000_RECIP_*): New macros for reciprocal estimate support.
8318 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
8319 square root estimate on vectors.
8320 (re<mode>2): New insn for reciprocal division estimate on vectors.
8322 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
8324 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
8325 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
8326 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
8327 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
8328 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
8329 (RS6000_BUILTIN_RSQRT): Ditto.
8330 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
8331 floating point builtin.
8333 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8334 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
8335 __RECIP_PRECISION__ based on the command line switches.
8336 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
8338 * config/rs6000/rs6000.opt (-mrecip): Document add support for
8339 replacing division instructions with reciprocal estimate and fixup.
8340 (-mrecip=<opt>): New option.
8341 (-mrecip-precision): Ditto.
8343 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
8344 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
8345 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
8348 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
8349 (UNSPEC_VREFP): Ditto.
8350 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
8351 conterparts with regard to support of -mno-fused-madd and -ffast-math.
8352 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
8353 reciprocal estimate instructions to be generated.
8354 (altivec_vrefp): Ditto.
8356 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
8358 (rreg): New mode attribute for reciprocal estimate support.
8359 (recip<mode>3): New insn for division using reciprocal estimate
8361 (divide define_split): New define_split to convert floating point
8362 division to use reciprocal estimate if the user used the
8363 appropriate options and the split is run when we can add new
8364 pseudo registers for the fixup.
8365 (rsqrt<mode>2): New insn for reciprocal square root support.
8366 (recipsf3): Move into recip<mode>3.
8368 (fres): Use TARGET_FRES.
8369 (rsqrtsf2): Move into rsqrt<mode>2.
8370 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
8371 (copysignsf3): Add support for VSX.
8372 (fred): Use TARGET_FRE.
8374 (rsqrtdf_internal1): New function for frsqrte instruciton.
8376 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
8379 2010-06-03 Richard Guenther <rguenther@suse.de>
8382 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
8383 (set_user_assembler_libfunc): Likewise.
8385 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
8387 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
8389 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
8391 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
8392 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
8393 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
8394 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
8395 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
8396 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
8397 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
8398 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
8399 * defaults.h: Updated for above mentioned changes.
8401 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
8403 * c-common.c: Remove header include of tm_p.h.
8404 * Makefile.in (c-common.o): Remove TM_P_H dependency.
8406 2010-06-02 Jakub Jelinek <jakub@redhat.com>
8408 * tree.h (struct tree_decl_map): New type.
8409 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
8410 (tree_decl_map_hash): New prototype.
8411 (debug_expr_for_decl, value_expr_for_decl): Change into
8412 tree_decl_map hashtab from tree_map.
8413 (init_ttree): Adjust initialization.
8414 (tree_decl_map_hash): New function.
8415 (decl_debug_expr_lookup, decl_debug_expr_insert,
8416 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
8418 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8420 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
8422 * configure: Regenerate.
8423 * config.in: Regenerate.
8425 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
8426 (X86_64_EMULATION): Define.
8427 (TARGET_LD_EMULATION): Use them.
8429 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
8430 (SPARC64_EMULATION): Define.
8431 (LINK_ARCH_SPEC): Use them.
8433 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
8435 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
8436 smallest_mode_for_size for computing the precision types of new
8437 graphite IVs. Do not call lang_hooks.types.type_for_size.
8439 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
8441 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
8443 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
8445 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
8448 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
8449 return false instead.
8451 2010-06-02 Jan Hubicka <jh@suse.cz>
8454 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
8455 create new cgraph node to check callee.
8457 2010-06-02 Richard Guenther <rguenther@suse.de>
8459 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
8461 2010-06-02 Richard Guenther <rguenther@suse.de>
8463 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
8464 (lto_wrapper_cleanup): ... this. Do not exit.
8465 (fatal): Adjust. Exit here.
8466 (fatal_perror): Likewise.
8467 (fatal_signal): New function.
8468 (main): Set up signal handlers to cleanup temporary files.
8469 * Makefile.in (lto-wrapper.o): Adjust dependencies.
8471 2010-06-02 Richard Guenther <rguenther@suse.de>
8473 PR tree-optimization/44377
8474 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
8476 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8478 * config/s390/2097.md (z10_fhex): Remove insn reservation.
8479 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
8480 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
8481 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
8483 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
8485 2010-06-02 Jan Hubicka <jh@suse.cz>
8487 * bitmap.c (bitmap_descriptor): Add search_iter.
8488 (bitmap_find_bit): Increment it.
8489 (print_statistics): Print it.
8491 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
8493 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
8494 instead of gimple_build_call_vec. Delete unnecessary local variable.
8496 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
8498 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
8499 change from yesterday.
8501 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
8503 * c-ada-spec.c: Clean up redundant includes.
8505 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
8507 * gimplify.c: Do not include except.h and optabs.h.
8508 (gimplify_body): Do not initialize RTL profiling.
8509 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
8510 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
8511 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
8512 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
8515 * tree-pretty-print.h: Include pretty-print.h.
8516 * gimple-pretty-print.h: Include pretty-print.h.
8518 * tree-pretty-print.c: Do not include diagnostic.h.
8519 * tree-vrp.c: Likewise.
8520 * tree-tailcall.c: Likewise
8521 * tree-scalar-evolution.c: Likewise
8522 * tree-ssa-dse.c: Likewise
8523 * tree-chrec.c: Likewise
8524 * tree-ssa-sccvn.c: Likewise
8525 * tree-ssa-copyrename.c: Likewise
8526 * tree-nomudflap.c: Likewise
8527 * tree-call-cdce.c: Likewise
8528 * tree-stdarg.c: Likewise
8529 * tree-ssa-math-opts.c: Likewise
8530 * tree-nrv.c: Likewise
8531 * tree-ssa-sink.c: Likewise
8532 * tree-browser.c: Likewise
8533 * tree-ssa-loop-ivcanon.c: Likewise
8534 * tree-ssa-loop.c: Likewise
8535 * tree-parloops.c: Likewise
8536 * tree-ssa-address.c: Likewise
8537 * tree-ssa-ifcombine.c: Likewise
8538 * tree-if-conv.c: Likewise
8539 * tree-data-ref.c: Likewise
8540 * tree-affine.c: Likewise
8541 * tree-ssa-phiopt.c: Likewise
8542 * tree-ssa-coalesce.c: Likewise
8543 * tree-ssa-pre.c: Likewise
8544 * tree-ssa-live.c: Likewise
8545 * tree-predcom.c: Likewise
8546 * tree-ssa-forwprop.c: Likewise
8547 * tree-ssa-dce.c: Likewise
8548 * tree-ssa-ter.c: Likewise
8549 * tree-ssa-loop-prefetch.c: Likewise
8550 * tree-optimize.c: Likewise
8551 * tree-ssa-phiprop.c: Likewise
8552 * tree-object-size.c: Likewise
8553 * tree-outof-ssa.c: Likewise
8554 * tree-ssa-structalias.c: Likewise
8555 * tree-switch-conversion.c: Likewise
8556 * tree-ssa-reassoc.c: Likewise
8557 * tree-ssa-operands.c: Likewise
8558 * tree-vectorizer.c: Likewise
8559 * tree-vect-data-refs.c: Likewise
8560 * tree-vect-generic.c: Likewise
8561 * tree-vect-stmts.c: Likewise
8562 * tree-vect-patterns.c: Likewise
8563 * tree-vect-slp.c: Likewise
8564 * tree-vect-loop.c: Likewise
8565 * tree-ssa-loop-ivopts.c: Likewise
8566 * tree-ssa-loop-im.c: Likewise
8567 * tree-ssa-loop-niter.c: Likewise
8568 * tree-ssa-loop-unswitch.c: Likewise
8569 * tree-ssa-loop-manip.c: Likewise
8570 * tree-ssa-loop-ch.c: Likewise
8571 * tree-dump.c: Likewise
8572 * tree-complex.c: Likewise
8574 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
8575 * tree-ssa-uninit.c: Likewise
8576 * tree-ssa-threadupdate.c: Likewise
8577 * tree-ssa-uncprop.c: Likewise
8578 * tree-ssa-ccp.c: Likewise
8579 * tree-ssa-dom.c: Likewise
8580 * tree-ssa-propagate.c: Likewise
8581 * tree-ssa-alias.c: Likewise
8582 * tree-dfa.c: Likewise
8583 * tree-cfgcleanup.c: Likewise
8584 * tree-sra.c: Likewise
8585 * tree-ssa-copy.c: Likewise
8586 * tree-ssa.c: Likewise
8587 * tree-profile.c: Likewise
8588 * tree-cfg.c: Likewise
8589 * tree-ssa-threadedge.c: Likewise
8590 * tree-vect-loop-manip.c: Likewise
8592 * tree-inline.c: Do not include diagnostic.h and expr.h.
8594 (copy_decl_for_dup_finish): Do not use NULL_RTX.
8596 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
8597 * tree-loop-distribution.c: Likewise.
8599 2010-06-01 Jan Hubicka <jh@suse.cz>
8601 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
8603 2010-06-01 Jan Hubicka <jh@suse.cz>
8605 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
8606 remove return value.
8607 (split_bbs_on_noreturn_calls) .... here.
8608 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
8609 * tree-flow.h (fixup_noreturn_call): New.
8611 2010-06-01 Jan Hubicka <jh@suse.cz>
8613 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
8615 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
8617 * tree.h (build_nt_call_list): Delete.
8618 * tree.c (build_nt_call_list): Delete.
8620 2010-06-01 Jan Hubicka <jh@suse.cz>
8622 * fwprop.c: Make emit-rtl.h include last.
8623 * rtlanal.c: Include emit-rtl.h.
8624 * genautomata.c: Output emit-rtl include into insn-automata.c
8625 * df-scan.c: Include emit-rtl.h.
8626 * haifa-sched.c: Indlude emit-rtl.h.
8627 * mode-switching.c: Indlude emit-rtl.h.
8628 * graph.c: Indlude emit-rtl.h.
8629 * sel-sched.c: Include emit-rtl.h.
8630 * sel-sched-ir.c: Include emit-rtl.h.
8631 * ira-build.c: Include emit-rtl.h.
8632 * emit-rtl.c (first_insn, last_insn): Remove defines.
8633 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
8635 (set_new_first_and_last_insn, get_last_insn_anywhere,
8636 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
8637 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
8638 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
8639 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
8640 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
8641 Use accessor functions.
8642 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
8643 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
8644 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
8645 mem_expr_equal_p): Move here from rtl.h.
8646 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
8647 Move here from emit-rtl.c; make inline.
8648 * cfglayout.h: Include emit-rtl.h.
8649 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
8650 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
8651 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
8652 mem_expr_equal_p, get_insns, set_first-insn,
8653 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
8654 * reg-stack.c: Include emit-rtl.h.
8657 2010-06-01 Jan Hubicka <jh@suse.cz>
8659 * cgraph.h (tree_function_versioning): Update prototype.
8660 (cgraph_function_versioning): Update prototype.
8661 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
8663 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
8664 (cgraph_materialize_clone, save_inline_function_body): Update use of
8665 tree_function_versioning.
8666 * tree-inline.c (copy_bb): Look for previous copied block to link
8667 after; fix debug output.
8668 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
8669 (copy_body): Likewise.
8670 (expand_call_inline): Update use of copy_body.
8671 (tree_function_versioning): Update use of copy body; accept
8672 blocks_to_copy and new_entry.
8674 2010-06-01 Jan Hubicka <jh@suse.cz>
8676 * gegenrtl.c: Remove unnecesary prototypes.
8678 (gendef): Produce static inline.
8680 (main): Do not decode parameters; generate header only.
8681 * Makefile.in (genrtl.c): Remove.
8683 2010-06-01 Jan Hubicka <jh@suse.cz>
8685 * tree-switch-conversion.c (build_one_array): Make it readonly.
8687 2010-06-01 Richard Guenther <rguenther@suse.de>
8689 * optabs.c (init_optabs): Guard all accesses to reinit.
8690 * ipa-pure-const.c (propagate): Fix another typo.
8691 * opts.c (common_handle_option): Split assignment to bool.
8692 * c-opts.c (c_common_handle_option): Likewise.
8694 2010-06-01 Arnaud Charlet <charlet@adacore.com>
8695 Matthew Gingell <gingell@adacore.com>
8697 * doc/invoke.texi: Mention -fdump-ada-spec.
8698 * tree-dump.c (dump_files): Add ada-spec.
8699 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
8700 * tree-pass.h (tree_dump_index): Add TDI_ada.
8701 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
8702 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
8703 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
8704 * c-decl.c: Include c-ada-spec.h.
8705 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
8707 (c_write_global_declarations): Add handling of -fdump-ada-spec.
8708 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
8709 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
8710 * c-ada-spec.h, c-ada-spec.c: New files.
8712 2010-06-01 Richard Guenther <rguenther@suse.de>
8715 * ipa-pure-const.c (get_function_state): Hand back varying state
8716 if we do not have one.
8717 (has_function_state): New function.
8718 (duplicate_node_data): Adjust.
8719 (remove_node_data): Likewise.
8720 (pure_const_write_summary): Likewise.
8721 (propagate): Likewise. Fix typo.
8723 2010-06-01 Jan Hubicka <jh@suse.cz>
8725 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
8726 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
8727 (execute_all_ipa_transforms): Do not play with the states.
8729 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
8731 * config/arm/t-linux-androideabi: New.
8732 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
8734 2010-06-01 Jan Hubicka <jh@suse.cz>
8736 * tree-inline.c (estimate_num_insns): For stdarg functions look
8737 into call statement to count cost of argument passing.
8739 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
8741 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
8742 argument for fprintf.
8743 (ix86_output_addr_diff_elt): Likewise.
8744 (x86_function_profiler): Likewise.
8745 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
8746 (LPREFIX): Likewise.
8747 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
8749 2010-05-31 Jakub Jelinek <jakub@redhat.com>
8752 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
8753 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
8754 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
8755 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
8756 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
8757 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
8758 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
8759 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
8762 2010-05-31 Jan Hubicka <jh@suse.cz>
8764 * tree.h (tree_range_check_failed): Declare noreturn.
8766 2010-05-31 Jan Hubicka <jh@suse.cz>
8768 * gimple.c (gimple_call_builtin_p): New function.
8769 * gimple.h (gimple_call_builtin_p): Declare.
8770 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
8772 (execute_warn_function_return): BUILT_IN_RETURN is return.
8773 (split_critical_edges): Return edges are not critical.
8774 (is_ctrl_altering_stmt): Builtin_in_return is altering.
8775 (gimple_verify_flow_info): Handle built_in_return.
8776 (execute_warn_function_return): Handle built_in_return.
8777 * ipa-pure-const.c (check_call): Ignore builtin_return.
8779 2010-05-31 Jakub Jelinek <jakub@redhat.com>
8782 * expr.c (expand_assignment): Don't store anything for out-of-bounds
8783 array accesses with non-MEM.
8785 PR tree-optimization/44182
8786 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
8787 newly needs to end a bb is followed by debug stmts, instead return
8788 true from the function at the end.
8789 (maybe_move_debug_stmts_to_successors): New function.
8790 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
8792 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
8795 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
8797 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
8799 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
8800 for nested functions in non-optimized compilation.
8802 2010-05-31 Richard Guenther <rguenther@suse.de>
8804 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
8806 2010-05-30 Jan Hubicka <jh@suse.cz>
8808 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
8810 2010-05-30 Richard Guenther <rguenther@suse.de>
8813 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
8814 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
8817 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
8819 * config/darwin.c (output_objc_section_asm_op): Add comment.
8820 (name_needs_quotes): Add '_' to list of valid comment chars.
8821 (machopic_output_function_base_name): Remove unneeded quotes.
8822 (darwin_encode_section_info): Adjust asm whitespace.
8823 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
8824 (ASM_OUTPUT_LOCAL): Ditto.
8825 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
8826 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
8827 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
8829 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8831 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
8832 RS6000_OUTPUT_BASENAME unconditionally.
8833 (rs6000_output_function_epilogue): Likewise.
8835 2010-05-30 Jan Hubicka <jh@suse.cz>
8837 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
8840 2010-05-30 Richard Guenther <rguenther@suse.de>
8842 * tree-cfg.c (verify_gimple_assign_single): Implement
8843 verification for COND_EXPR rhs.
8845 2010-05-30 Jan Hubicka <jh@suse.cz>
8847 * cgraph.h (cgraph_dump_file): Declare.
8848 * cgraphunit.c (cgraph_dump_file): Export.
8849 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
8851 2010-05-30 Jan Hubicka <jh@suse.cz>
8853 * dwarf2out.c (reference_to_unused,
8854 premark_types_used_by_global_vars_helper): Avoid creation of new
8857 2010-05-30 Jan Hubicka <jh@suse.cz>
8859 * cgraph.h (cgraph_node_cannot_return,
8860 cgraph_edge_cannot_lead_to_return): New functions.
8861 * cgraph.c (cgraph_node_cannot_return,
8862 cgraph_edge_cannot_lead_to_return): Use them.
8863 * ipa-pure-const.c (pure_const_names): New static var.
8864 (check_call): Handle calls not leading to return.
8865 (pure_const_read_summary): Dump info read.
8866 (propagate): Dump info about propagation process; ignore side effects
8867 of functions not leading to exit; fix handling of pure functions.
8869 2010-05-30 Jan Hubicka <jh@suse.cz>
8871 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
8872 for tail call epilogues.
8874 2010-05-30 Jan Hubicka <jh@suse.cz>
8876 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
8877 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
8880 2010-05-29 Jan Hubicka <jh@suse.cz>
8882 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
8883 node; remove references in node we no longer keep in cgrpah but need
8886 2010-05-29 Jan Hubicka <jh@suse.cz>
8888 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
8890 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8893 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
8895 2010-05-29 Jan Hubicka <jh@suse.cz>
8897 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
8898 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
8899 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
8900 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
8901 debug_names_replaced_by, debug_update_ssa): Likewise.
8902 * sbitmap.c (debug_sbitmap): Likewise.
8903 * genrecog.c (debug_decision, debug_decision_list): Likewise.
8904 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
8905 debug_tree_chain): Likewise.
8906 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
8907 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
8908 * optabs.c (debug_optab_libfuncs): Likewise.
8909 (verify_loop_closed_ssa): Likewise.
8910 * value-prof.c (verify_histograms): Likewise.
8911 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
8912 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
8913 * cfghooks.c (verify_flow_info): Likewise.
8914 * fold-const.c (debug_fold_checksum): Likewise.
8915 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
8916 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
8918 * omega.c (debug_omega_problem): Likewise.
8919 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
8920 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
8921 * dominance.c (verify_dominators, debug_dominance_info,
8922 debug_dominance_tree): Likewise.
8923 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
8924 * df_regno_debug, df_ref_debug,
8925 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
8926 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
8927 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
8928 * sel-sched.c (debug_state): Likewise.
8929 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
8931 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
8932 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
8933 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
8934 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
8936 * c-pretty-print.c (debug_c_tree): Likewise.
8937 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
8938 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
8939 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
8940 * ebitmap.c (debug_ebitmap): Likewise.
8941 * function.c (debug_find_var_in_block_tree): Likewise.
8942 * print-rtl.c (debug_rtx): Likewise.
8943 (debug_rtx_count): Likewise.
8944 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
8945 * stor-layout.c (debug_rli): Likewise.
8946 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
8947 * tree-data-ref.c (debug_data_references,
8948 debug_data_dependence_relations, debug_data_reference,
8949 debug_data_dependence_relation, debug_rdg_vertex,
8950 debug_rdg_component, debug_rdg): Likewise.
8951 * tree-affine.c (debug_aff): Likewise.
8952 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
8954 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
8955 * emit-rtl.c (verify_rtl_sharing): Likewise.
8956 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
8957 debug_value_expressions): Likewise.
8958 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
8959 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
8960 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
8961 * cfglayout.c (verify_insn_chain): Likewise.
8962 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
8963 debug_clast_stmt, debug_generated_program): Likewise.
8964 * ggc-page.c (debug_print_page_list): Likewise.
8965 * tree-ssa-ter.c (debug_ter): Likewise.
8966 * graphite-dependences.c (debug_pddr): Likewise.
8967 * sched-deps.c (debug_ds): Likewise.
8968 * tree-ssa.c (verify_ssa): Likewise.
8969 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
8970 debug_scattering_functions, debug_iteration_domains, debug_pdr,
8971 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
8972 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
8973 * tree-inline.c (debug_find_tree): Likewise.
8974 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
8975 debug_ppl_powerset_matrix): Likewise.
8976 * var-tracking.c (debug_dv): Likewise.
8977 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
8978 * cfgloop.c (verify_loop_structure): Likewise.
8979 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
8980 * c-common.c (verify_sequence_points): Likewise.
8981 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
8982 debug_candidates, debug_rgn_dependencies): Likewise.
8983 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
8984 * debug_constraint_graph, debug_solution_for_var,
8985 debug_sa_points_to_info): Likewise.
8986 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
8988 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
8989 debug_loops, debug_loop, debug_loop_num): Likewise.
8990 * passes.c (debug_pass): Likewise.
8991 (dump_properties): Likewise; add cfglayout property.
8992 (debug_properties): Likewise.
8993 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
8994 * varpool.c (debug_varpool): Likewise.
8995 * regcprop.c (debug_value_data): Likewise.
8996 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
8997 debug_immediate_uses_for): Likewise.
8999 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
9002 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
9003 Filter out insn-flags.h.
9005 2010-05-29 Jan Hubicka <jh@suse.cz>
9007 * cgraph.h (struct varpool_node_set_def,
9008 struct cgraph_node_set_def): Remove unused AUX pointer.
9009 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
9012 2010-05-29 Jan Hubicka <jh@suse.cz>
9015 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
9017 2010-05-29 Richard Guenther <rguenther@suse.de>
9019 * lto-streamer.c (cached_bp): New global variable.
9020 (bitpack_create): Return the cached bitpack, if available.
9021 (bitpack_delete): Clear and cache the bitpack, if appropriate.
9022 (bp_pack_value): Remove redundant asserts.
9024 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
9027 * tree-if-conv.c (is_true_predicate): New.
9028 (is_predicated): Use is_true_predicate.
9029 (add_to_predicate_list): Same. Do not use unshare_expr.
9030 (add_to_dst_predicate_list): Same.
9032 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
9034 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
9036 (predicate_bbs): Same.
9037 (clean_predicate_lists): Same.
9038 (find_phi_replacement_condition): Do not AND the predicate from
9041 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
9044 * Makefile.in (build/gencondmd.o): Add a missing `\'.
9046 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9049 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
9050 (negdf2): Adjust expander pattern and use negdf2_slow.
9053 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
9055 * basic-block.h (struct control_flow_graph): Move last_label_uid field
9057 * df.h (struct df_base_ref): Move regno field up.
9058 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
9059 * expr.h (struct separate_ops): Move location field up.
9060 * optabs.h (struct optab_d): Move libcall_basename field down.
9061 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
9062 * config/i386/i386.h (struct machine_function): Convert call_abi field
9063 into a bitfield. Move cfa field to the end of the structure.
9065 2010-05-29 Jan Hubicka <jh@suse.cz>
9067 * varpool.c (varpool_get_node): Fix lookup.
9069 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
9071 * config/spu/spu-protos.h: Do not include rtl.h. Protect
9072 RTL specific prototypes with #ifdef RTX_CODE.
9073 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
9074 * config/spu/t-spu-elf: Fix dependencies.
9076 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
9078 2010-05-29 Mike Stump <mikestump@comcast.net>
9081 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
9082 TM_H when building to avoid dependency loops.
9084 2010-05-29 Jan Hubicka <jh@suse.cz>
9086 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
9087 refs and body; not the whole node for masters of materialized clones.
9089 2010-05-29 Mike Stump <mikestump@comcast.net>
9091 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
9093 2010-05-29 Jan Hubicka <jh@suse.cz>
9095 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
9096 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
9097 use of clone_function_name.
9098 * cgraph.h (cgraph_create_virtual_clone,
9099 cgraph_function_versioning): update prototypes.
9100 (clone_function_name): Declare.
9101 * ipa-cp.c (ipcp_insert_stage): Update call of
9102 cgraph_create_virtual_clone.
9103 * omp-low.c (create_omp_child_function_name): Use
9104 cgraph_create_virtual_clone.
9105 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
9106 (cgraph_function_versioning): Take SUFFIX argument; produce new name
9107 and make decl local.
9109 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
9111 * vec.h: Include statistics.h
9112 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
9115 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
9117 * c-lex.c: Do not include c-tree.h.
9118 * c-pretty-print.c: Likewise.
9119 * c-opts.c: Likewise.
9120 * c-gimplify.c: Likewise.
9121 * c-common.c: Likewise.
9122 * c-dump.c: Likewise. Include c-common.h.
9124 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
9126 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
9127 before including diagnostic-core.h.
9128 (c_cpp_error): New prototype moved from c-tree.h.
9129 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
9130 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
9131 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
9132 (c_cpp_error): Prototype moved to c-common.h.
9133 * Makefile.in: Update dependency for C_COMMON_H.
9135 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
9137 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
9138 * c-common.c (c_register_addr_space): Remove here.
9139 * c-decl.c (c_register_addr_space): Re-add here.
9141 2010-05-28 Mike Stump <mikestump@comcast.net>
9143 * config/darwin-c.c: Remove c-tree.h include.
9145 2010-05-28 Joseph Myers <joseph@codesourcery.com>
9147 * gcc.c: Include diagnostic.h.
9148 (error_count): Remove. All users changed to use errorcount.
9149 (programname): Remove. All users changed to use progname.
9150 (fancy_abort, internal_error, fatal_error, error, warning, inform,
9152 (execute): Don't include "Internal error" and bug reporting
9153 information in argument of internal_error call.
9154 (process_command): Don't increment error_count after calling
9156 (input_filename): Rename to gcc_input_filename. All users
9158 (main): Call diagnostic_initialize. Register delete_temp_files
9159 with atexit. Use seen_error to test for errors.
9160 * gcc.h: Include diagnostic-core.h.
9161 (fatal_error, error, warning): Remove.
9162 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
9163 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
9164 (gcc.o): Update dependencies.
9166 2010-05-28 Jeff Law <law@redhat.com>
9168 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
9170 * ira.h (ira_bad_reload_regno): Declare
9171 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
9173 * ira-color.c (update_curr_costs): Free updated hard reg costs.
9174 (ira_reassign_conflict_allocnos): Remove bogus asserts.
9175 (allocno_reload_assign): Likewise.
9177 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
9179 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
9182 2010-05-28 Richard Guenther <rguenther@suse.de>
9185 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
9186 Stream fixed-point constants mode.
9187 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
9189 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
9190 Stream fixed-point constants mode.
9191 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
9194 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
9196 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
9197 only place it was called from.
9198 (number_of_latch_executions): Do not return chrec_dont_know when the
9199 may_be_zero is a runtime condition: instead, return a COND_EXPR
9200 including the may_be_zero condition.
9201 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
9203 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
9206 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
9208 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
9209 generate COND_EXPRs for degenerate_phi_result.
9211 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
9214 * tree-if-conv.c (if_convertible_loop_p): Check the
9215 if-convertibility of phi nodes in non predicated BBs.
9217 2010-05-28 Joseph Myers <joseph@codesourcery.com>
9219 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
9221 2010-05-28 Joseph Myers <joseph@codesourcery.com>
9224 * gcc.c (inform, warning, inform): New functions.
9225 (fatal_ice): Rename to internal_error; change cmsgid parameter to
9226 gmsgid. All callers changed.
9227 (notice): Rename to fnotice; add parameter fp. All callers changed.
9228 (fatal_error): Rename to fatal_signal. All users changed.
9229 (fatal): Rename to fatal_error; change cmsgid parameter to
9230 gmsgid. All callers changed.
9231 (process_command): Use warning instead of error for warnings.
9232 (end_going_arg): Don't use _() around argument of error.
9233 (do_spec_1): Use inform for message from %n specs. Use warning
9234 instead of error for warnings.
9235 (main): Use inform for comparison messages. Use warning for
9236 message about unused linker input.
9237 (error): Increment error_count. Print "error: ".
9238 * gcc.h (fatal): Change to fatal_error.
9240 * config/darwin-driver.c (darwin_default_min_version): Use warning
9241 instead of fprintf for warnings.
9242 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
9244 2010-05-28 Julian Brown <julian@codesourcery.com>
9246 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
9247 (*thumb2_addsi3_compare0_scratch): New.
9248 * config/arm/constraints.md (Pv): New.
9249 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
9251 (*addsi3_compare0_scratch): Likewise.
9253 2010-05-28 Jan Hubicka <jh@suse.cz>
9255 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
9257 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
9258 only on local statics.
9260 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
9262 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
9264 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
9267 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
9268 (OPTION_GLIBC): Define.
9270 2010-05-28 Jakub Jelinek <jakub@redhat.com>
9273 * dwarf2out.c (double_int_type_size_in_bits): New function.
9274 (round_up_to_align): Change first argument and return value to
9276 (field_byte_offset): Work internally on double_ints.
9279 * builtins.c (expand_movstr): Use a temporary pseudo instead
9280 of target even when target is not NULL and not const0_rtx, but
9281 fails movstr predicate.
9282 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
9284 2010-05-28 Joseph Myers <joseph@codesourcery.com>
9286 * final.c (rest_of_clean_state): Use %m in errors instead of
9288 * gengtype.c (read_input_list, close_output_files): Use xstrerror
9289 instead of strerror.
9290 * toplev.c (process_options): Use %m in errors instead of strerror
9292 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
9295 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
9297 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
9298 (ix86_canonical_va_list_type): Make static. Add declaration.
9299 (ix86_enum_va_list): Make static. Reindent.
9300 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
9301 (ix86_canonical_va_list_type): Ditto.
9302 (ix86_enum_va_list): Ditto.
9304 2010-05-28 Richard Guenther <rguenther@suse.de>
9306 * lto-wrapper.c (run_gcc): With -save-temps generate a
9307 user-visible ltrans filename. Fixup ltrans unit numbering.
9309 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
9311 * c-common.c (c_common_nodes_and_builtins): Replace use
9312 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
9313 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
9314 to ix86_enum_va_list.
9315 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
9316 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
9317 (TARGET_ENUM_VA_LIST_P): Add hook description.
9318 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
9319 * target.h (gcc_target): Add enum_va_list hook.
9322 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
9323 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
9324 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
9326 2010-05-28 Alan Modra <amodra@gmail.com>
9329 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
9330 emit_library_call machinery to set up __tls_get_addr calls.
9332 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9334 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
9336 2010-05-28 Dodji Seketeli <dodji@redhat.com>
9338 Revert fix for PR c++/44188
9339 * c-common.c (is_typedef_decl): Revert the moving of this
9341 * tree.c (is_typedef_decl): ... here.
9342 (typdef_variant_p): Revert the moving of this definition
9343 here from gcc/cp/tree.c.
9344 * c-common.h (is_typedef_decl): Revert the moving of this
9346 * tree.h (is_typedef_decl): ... here.
9347 (typedef_variant_p): Revert the moving of this declaration here
9348 from gcc/cp/cp-tree.h
9349 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
9350 (gen_tagged_type_die): Revert the splitting out of ...
9351 (gen_type_die_with_usage): ... this function. Revert the anonymous
9352 tagged type handling.
9353 (gen_typedef_die): Revert emitting DW_TAG_typedef for
9354 typedefs naming anonymous tagged types.
9356 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
9358 * config/rs6000/rs6000-modes.def (PSImode): Delete.
9360 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
9362 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
9363 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
9365 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
9367 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
9368 XER_REGS to CA_REGS throughout.
9369 * config/rs6000/rs6000.h: Same.
9370 (ADDITIONAL_REGISTER_NAMES): Add "xer".
9371 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
9372 that mode_iterator "P" is the size for arithmetic carries as well.
9373 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
9375 2010-05-28 Jakub Jelinek <jakub@redhat.com>
9378 * combine.c (struct rtx_subst_pair): Define unconditionally.
9379 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
9380 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
9381 Call make_compound_operation on pair->to.
9382 (propagate_for_debug): Don't call make_compound_operation here.
9383 Always use simplify_replace_fn_rtx.
9385 2010-05-27 Sterling Augustine <sterling@tensilica.com>
9387 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
9388 * config/xtensa/xtensa.c (override_options): Check
9389 TARGET_FORCE_NO_PIC and set flag_pic.
9390 * config/xtensa/xtensa.opt: Document -mforce-no-pic
9392 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
9395 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
9396 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
9398 2010-05-27 Joseph Myers <joseph@codesourcery.com>
9400 * diagnostic-core.h: New. Contents moved from diagnostic.h and
9402 * diagnostic.c: Don't include toplev.h.
9403 (progname): Define. Moved from toplev.c.
9404 (seen_error): New function.
9405 * diagnostic.h: Include diagnostic-core.h.
9406 (diagnostic_t, emit_diagnostic): Don't declare here.
9407 * toplev.c (progname): Move to toplev.c.
9408 (emit_debug_global_declarations, compile_file, finalize,
9409 do_compile, toplev_main): Use seen_error.
9410 * toplev.h: Include diagnostic-core.h.
9411 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
9412 internal_error, warning, warning_at, error, error_n, error_at,
9413 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
9414 verbatim, fnotice, progname): Move to diagnostic-core.h.
9415 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
9416 (expand_builtin_expect): Use seen_error.
9417 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
9418 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
9419 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
9420 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
9421 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
9422 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
9423 errorcount for errors.
9424 * c-opts.c (c_common_finish): Use seen_error.
9425 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
9426 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
9427 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
9428 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
9429 (get_coverage_counts): Use seen_error.
9430 * dwarf2out.c (dwarf2out_finish): Use seen_error.
9431 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
9432 gimplify_body): Use seen_error.
9433 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
9434 * ipa-pure-const.c (gate_pure_const): Use seen_error.
9435 * ipa-reference.c (gate_reference): Use seen_error.
9436 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
9437 * lambda-code.c: Include diagnostic-core.h instead of
9439 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
9440 * lto-compress.c: Include diagnostic-core.h instead of
9442 * lto-section-in.c: Include diagnostic-core.h instead of
9444 * lto-streamer-out.c: Include diagnostic-core.h instead of
9446 * lto-streamer.c: Include diagnostic-core.h instead of
9448 (gate_lto_out): Use seen_error.
9449 * matrix-reorg.c: Include diagnostic-core.h instead of
9451 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
9452 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
9453 (gate_expand_omp, lower_omp_1): Use seen_error.
9454 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
9455 (rest_of_decl_compilation, rest_of_type_compilation,
9456 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
9457 * tree-cfg.c (label_to_block_fn): Use seen_error.
9458 * tree-inline.c (optimize_inline_calls): Use seen_error.
9459 * tree-mudflap.c (mudflap_finish_file): Use
9461 * tree-optimize.c (gate_all_optimizations,
9462 gate_all_early_local_passes, gate_all_early_optimizations): Use
9464 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
9465 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
9466 (varpool_remove_unreferenced_decls,
9467 varpool_assemble_pending_decls): Use seen_error.
9468 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
9469 (TOPLEV_H, DIAGNOSTIC_H): Update.
9470 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
9471 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
9472 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
9473 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
9474 coverage.o, lambda-code.o): Update dependencies.
9476 2010-05-25 Dodji Seketeli <dodji@redhat.com>
9479 * c-common.c (is_typedef_decl): Move this definition ...
9480 * tree.c (is_typedef_decl): ... here.
9481 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
9482 * c-common.h (is_typedef_decl): Move this declaration ...
9483 * tree.h (is_typedef_decl): ... here.
9484 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
9485 * dwarf2out.c (is_naming_typedef_decl): New function.
9486 (gen_tagged_type_die): Split out of ...
9487 (gen_type_die_with_usage): ... this function. When an anonymous
9488 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
9489 is emitted for the typedef.
9490 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
9491 anonymous tagged types.
9493 2010-05-27 Jason Merrill <jason@redhat.com>
9495 * print-tree.c (debug_vec_tree): New fn.
9496 (print_vec_tree): New fn.
9497 * tree.h: Declare them.
9498 * gdbinit.in (pvt): New command.
9500 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
9502 * gdbinit.in (pdd): New command.
9504 2010-05-27 Jan Hubicka <jh@suse.cz>
9506 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
9507 (update_caller_keys): Return early if there are no callers;
9508 only update fibheap when decresing the key.
9509 (update_callee_keys): Avoid recursion.
9510 (decide_inlining_of_small_functions): When badness does not match;
9511 re-insert into fibheap.
9513 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
9515 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
9516 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
9517 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
9518 (ALL_HOST_OBJS): Now a union of the above two.
9519 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
9520 all files in ALL_HOST_FRONTEND_OBJS.
9521 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
9523 * c-common.c: Pretend to be a backend file by undefining
9524 IN_GCC_FRONTEND (still need rtl.h here).
9526 2010-05-27 Jan Hubicka <jh@suse.cz>
9528 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
9529 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
9531 2010-05-27 Jan Hubicka <jh@suse.cz>
9533 * sched-ebb.c: Rename struct deps to struct deps_desc.
9535 * sel-sched-ir.c: Likewise.
9536 * sched-deps.c: Likewise.
9537 * sched-int.h: Likewise.
9538 * sched-rgn.c: Likewise.
9540 2010-05-27 Jon Beniston <jon@beniston.com>
9543 * config/lm32/lm32.h: Remove definition of
9544 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
9546 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
9549 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
9551 2010-05-27 Richard Guenther <rguenther@suse.de>
9553 PR tree-optimization/44284
9554 * tree-vect-stmts.c (vectorizable_assignment): Handle
9555 sign-changing conversions as simple copy.
9557 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
9559 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
9561 (__gthread_active_p): Check for pthread_create if compiling against
9564 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
9566 Support compilation for Android platform. Reimplement -mandroid.
9568 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
9569 (*android*): Set ANDROID_DEFAULT.
9570 (arm*-*-linux*): Include linux-android.h.
9571 (arm*-*-eabi*): Don't include previous -mandroid implementation.
9572 * config/arm/eabi.h: Remove, move Android-specific parts ...
9573 * config/linux-android.h: ... here. New file.
9574 * config/arm/eabi.opt: Rename to ...
9575 * config/linux-android.opt: ... this.
9576 (mandroid): Allow -mno-android option. Initialize based on
9578 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
9579 Move logic to corresponding LINUX_TARGET_* macros.
9580 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
9581 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
9582 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
9583 Android definitions.
9584 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
9585 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
9588 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
9590 Add support for Bionic C library
9592 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
9594 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
9595 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
9597 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
9598 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
9599 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
9600 to support multiple C libraries. Handle Bionic.
9601 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
9602 (BIONIC_DYNAMIC_LINKER64): Define.
9603 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
9605 (TARGET_HAS_SINCOS): Enable for Bionic.
9607 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
9608 the last option specified on command line take effect.
9609 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
9611 (mglibc, muclibc): Update.
9613 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
9614 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
9617 * doc/invoke.texi (-mglibc, -muclibc): Update.
9618 (-mbionic): Document.
9620 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9622 * c-common.h (c_register_addr_space): Add prototype.
9623 (ADDR_SPACE_KEYWORD): Remove.
9624 * c-common.c (c_register_addr_space): New function.
9625 (c_addr_space_name): Reimplement.
9626 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
9628 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
9629 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
9631 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
9632 Remove TARGET_ADDR_SPACE_KEYWORDS.
9634 2010-05-27 Joseph Myers <joseph@codesourcery.com>
9636 * input.c: New file.
9637 * input.h (main_input_filename): Move declaration to toplev.h.
9638 * toplev.c (input_location, line_table): Move to input.c
9639 * toplev.h (main_input_filename): Move declaration from input.h.
9640 * tree.c (expand_location): Move to input.c.
9641 * Makefile.in (OBJS-common): Add input.o.
9642 (input.o): Add dependencies.
9644 2010-05-27 Richard Guenther <rguenther@suse.de>
9646 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
9647 for non-existant files.
9648 (fork_execute): Mark args_name file as deleted.
9650 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
9653 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
9654 (narrow_signed_type): Likewise.
9656 2010-05-26 Jan Hubicka <jh@suse.cz>
9658 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
9659 edge only when checking is enabled; check using former_clone_of;
9660 check inline clones too.
9661 (cgraph_materialize_clone): Record former_clone_of pointer.
9662 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
9663 combining redirections; dump args_to_skip bitmap
9664 (cgraph_materialize_all_clones): Do no redirection here.
9665 * ipa-inline.c (inline_transform): Do redirection here.
9666 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
9669 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
9671 * config/avr/avr-c.c: Do not include regs.h.
9672 Include cpplib.h for cpp_define and tree.h for c-common.h.
9673 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
9674 * config/avr/t-avr: Fix dependencies for avr-c.o.
9676 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
9678 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
9679 string instead of SYMBOL_REF rtx.
9680 * rtl.h (set_stack_check_libfunc): Move prototype from here...
9681 * libfuncs.h: ...to here. Adjust for explow.c change.
9683 2010-05-26 Joseph Myers <joseph@codesourcery.com>
9685 * pretty-print.c: Don't include ggc.h.
9686 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
9687 (identifier_to_locale): Use them for allocation.
9688 * pretty-print.h (identifier_to_locale_alloc,
9689 identifier_to_locale_free): Declare.
9690 * toplev.c (alloc_for_identifier_to_locale): New.
9691 (general_init): Set identifier_to_locale_alloc and
9692 identifier_to_locale_free.
9693 * Makefile.in (pretty-print.o): Update dependencies.
9695 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
9697 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
9698 pointer types if they have different alignment or mode.
9700 2010-05-26 Anatoly Sokolov <aesok@post.ru>
9702 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9703 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9704 * config/sparc/sparc-protos.h (function_value): Remove declaration.
9705 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
9706 sparc_function_value_regno_p): New functions.
9707 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9708 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9709 (function_value): Rename to...
9710 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
9711 argument to 'outgoing'.
9712 (function_arg_record_value, function_arg_union_value,
9713 function_arg_vector_value): Update comment.
9715 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
9717 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
9718 (fde_needed_for_eh_p): New predicate.
9719 (output_call_frame_info): Use it throughout to decide whether FDEs
9720 are needed for EH purpose.
9721 (dwarf2out_begin_prologue): Reorder assignments.
9723 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9725 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
9726 special case loop->header.
9727 (is_predicated): New.
9728 (if_convertible_loop_p): Call it.
9730 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9732 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
9733 iterator in parameter. Do not generate code during the analysis.
9734 (tree_if_convert_cond_stmt): Removed.
9735 (tree_if_convert_stmt): Removed.
9736 (predicate_bbs): New.
9737 (if_convertible_loop_p): Call predicate_bbs.
9738 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
9739 now contains all the analysis part.
9741 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9743 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
9744 statements in the analysis part.
9745 (tree_if_convert_stmt): Update comment.
9746 (remove_conditions_and_labels): New.
9747 (combine_blocks): Call remove_conditions_and_labels.
9748 (tree_if_conversion): Update comment.
9750 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9752 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
9753 than 2 predecessors or more than 2 successors.
9755 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9757 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
9758 of loops in which the data dependence analysis fails.
9760 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9762 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
9763 CDI_POST_DOMINATORS.
9764 (tree_if_conversion): Same.
9766 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9768 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
9770 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9772 * tree-if-conv.c: Update copyright years. Fix comments.
9775 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
9777 * builtin-types.def (BT_INT128): New primitive type.
9778 (BT_UINT128): Likewise.
9779 * c-common.c (c_common_r): Add __int128 keyword.
9780 (c_common_type_for_size): Handle __int128.
9781 (c_common_type_for_mode): Likewise.
9782 (c_common_signed_or_unsigned_type): Likewise.
9783 (c_common_nodes_and_builtins): Add builtin type
9784 if target supports 128-bit integer scalar.
9785 * c-common.h (enum rid): Add RID_INT128.
9786 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
9787 if target supports 128-bit integer scalar.
9788 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
9789 (finish_declspecs): Likewise.
9790 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
9791 (c_token_starts_declspecs): Likewise.
9792 (c_parser_declspecs): Likewise.
9793 (c_parser_attributes): Likewise.
9794 (c_parser_objc_selector): Likewise.
9795 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
9796 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
9797 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
9798 * tree.c (make_or_reuse_type): Likewise.
9799 (make_unsigned_type): Likewise.
9800 (build_common_tree_nodes_2): Likewise.
9801 * tree.h (enum integer_type_kind): Add itk_int128 and
9802 itk_unsigned_int128.
9803 (int128_integer_type_node): New define.
9804 (int128_unsigned_type_node): New define.
9805 * doc/extend.texi: Add documentation about __int128 type.
9807 2010-05-26 Richard Guenther <rguenther@suse.de>
9809 * tree-ssa-sccvn.c (copy_nary): Adjust.
9810 (copy_phis): Rename to ...
9811 (copy_phi): ... this. Adjust.
9812 (copy_references): Rename to ...
9813 (copy_reference): ... this. Adjust.
9814 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
9815 result into the valid table.
9817 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
9819 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
9820 insn-config.h, insn-codes.h, recog.h, and optabs.h.
9822 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9824 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
9826 2010-05-26 Richard Guenther <rguenther@suse.de>
9828 * opts.c (common_handle_option): Handle OPT_Ofast.
9830 2010-05-26 Joseph Myers <joseph@codesourcery.com>
9832 * diagnostic.c: Don't include opts.h.
9833 (permissive_error_option): Define.
9834 (diagnostic_initialize): Take n_opts parameter. Allocate memory
9835 for classify_diagnostic. Don't use memset for
9836 classify_diagnostic. Initialize new and recently added fields.
9837 (diagnostic_classify_diagnostic): Use context->n_opts instead of
9839 (diagnostic_report_diagnostic): Pass context parameter to
9840 diagnostic_report_warnings_p. Use option_enabled and option_name
9842 (emit_diagnostic): Use permissive_error_option.
9843 (permerror): Likewise.
9844 * diagnostic.h: Don't include options.h.
9845 (struct diagnostic_context): Add n_opts, opt_permissive,
9846 inhibit_warnings, warn_system_headers, option_enabled and
9847 option_name fields. Change classify_diagnostic to a pointer.
9848 * opts-diagnostic.h: New file.
9849 * opts.c: Include opts-diagnostic.h.
9850 (common_handle_option): Set global_dc fields for -Wfatal-errors,
9851 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
9852 (option_name): New function.
9853 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
9854 (c_common_handle_option): Set global_dc->permissive for
9856 * c-common.c (c_cpp_error): Save and restore
9857 global_dc->warn_system_headers, not variable warn_system_headers.
9858 * toplev.c: Include opts-diagnostic.h.
9859 (general_init): Update call to diagnostic_initialize. Set
9860 global_dc->show_column, global_dc->option_enabled and
9861 global_dc->option_name.
9862 (process_options): Don't set global_dc fields here.
9863 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
9864 (diagnostic.o, opts.o, toplev.o): Update dependencies.
9866 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
9868 * config/picochip/picochip.md (movsi): Split a movsi from a
9871 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9873 * ggc-zone.c: Update copyright year.
9874 (poison_region): Mark memory for Valgrind as undefined before
9875 memset () call and inaccessible afterwards.
9876 (ggc_pch_total_size): Change type of i to int.
9878 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9880 * ggc-common.c (ggc_free_overhead): Allow empty slot.
9882 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9884 * ggc-common.c: Update copyright year.
9885 (ggc_rlimit_bound): Remove prototype. Compile only if
9886 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
9887 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
9888 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
9889 (ggc_min_heapsize_heuristic): Likewise.
9891 2010-05-26 Richard Guenther <rguenther@suse.de>
9893 PR rtl-optimization/44164
9894 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
9895 no-common access-path disambiguation.
9896 (indirect_ref_may_alias_decl_p): Adjust.
9897 (indirect_refs_may_alias_p): Likewise.
9898 (refs_may_alias_p_1): Likewise.
9900 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
9902 * c-typeck.c: Do not include expr.h.
9904 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
9906 * rtl.h (decl_default_tls_model): Move prototype from here...
9907 * output.h: ...to here.
9908 * c-decl.c: Do not include rtl.h.
9909 * c-pragma.c: Likewise.
9910 * c-parser.c: Likewise.
9911 * c-gimplify.c: Likewise. And also not hard-reg-set.
9912 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
9913 FIXME note for it. Add a FIXME note for expr.h.
9914 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
9915 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
9918 2010-05-26 Jakub Jelinek <jakub@redhat.com>
9921 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
9922 or total_size is larger than red zone size for non-V4 ABI, emit a
9923 stack_tie resp. frame_tie insn before stack pointer restore.
9924 * config/rs6000/rs6000.md (frame_tie): New insn.
9926 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
9928 * function.h (struct function): Add can_throw_non_call_exceptions bit.
9929 * lto-streamer-in.c (input_function): Stream it in.
9930 * lto-streamer-out.c (output_function): Stream it out.
9931 * function.c (allocate_struct_function): Set it.
9932 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
9933 for flag_non_call_exceptions.
9934 * cfgbuild.c (control_flow_insn_p): Likewise.
9935 (make_edges): Likewise.
9936 * cfgexpand.c (expand_stack_alignment): Likewise.
9937 * combine.c (distribute_notes): Likewise.
9938 * cse.c (cse_extended_basic_block): Likewise.
9939 * except.c (insn_could_throw_p): Likewise.
9940 * gcse.c (simple_mem): Likewise.
9941 * ipa-pure-const.c (check_call): Likewise.
9942 (check_stmt ): Likewise.
9943 * lower-subreg.c (lower-subreg.c): Likewise.
9944 * optabs.c (emit_libcall_block): Likewise.
9945 (prepare_cmp_insn): Likewise.
9946 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
9947 * postreload.c (rest_of_handle_postreload): Likewise.
9948 * reload1.c (reload_as_needed): Likewise.
9949 (emit_input_reload_insns): Likewise.
9950 (emit_output_reload_insns): Likewise.
9951 (fixup_abnormal_edges): Likewise.
9952 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
9953 * store-motion.c (find_moveable_store): Likewise.
9954 * tree-eh.c (stmt_could_throw_p): Likewise.
9955 (tree_could_throw_p): Likewise.
9956 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9957 * config/arm/arm.c (arm_expand_prologue): Likewise.
9958 (thumb1_expand_prologue): Likewise.
9959 * config/rx/rx.md (cbranchsf4): Likewise.
9961 * config/s390/s390.c (s390_emit_prologue): Likewise.
9962 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
9963 (inline_forbidden_into_p): New predicate.
9964 (expand_call_inline): Use it to forbid inlining.
9965 (tree_can_inline_p): Likewise.
9967 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
9969 * config/i386/i386-c.c: Do not include rtl.h.
9970 * config/i386/t-i386: Update dependencies.
9972 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
9974 * attribs.c: Do not include rtl.h.
9975 * Makefile.in: Update dependencies.
9977 2010-05-25 Anatoly Sokolov <aesok@post.ru>
9979 * double-int.h (double_int_and): New.
9980 * combine.c (try_combine): Clean up, use double_int_* and
9981 immed_double_int_const functions.
9983 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9985 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
9986 stderr to /dev/null instead of grep -q.
9987 * configure: Regenerate.
9989 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
9991 * Makefile.in (EXCEPT_H): Fix typo.
9993 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
9995 * ira-build.c (update_conflict_hard_reg_costs): New.
9996 (ira_build): Call update_conflict_hard_reg_costs.
9998 2010-05-25 Jakub Jelinek <jakub@redhat.com>
10001 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
10003 (intersect_loc_chains): Walk the s2var's loc_chain together
10004 with s1node chain as long as the locations are equal, don't
10005 call find_loc_in_1pdv in that case.
10008 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
10009 (copy_bind_expr): ... instead of here.
10010 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
10011 if the block hasn't been remapped.
10012 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
10013 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
10015 2010-05-25 Richard Guenther <rguenther@suse.de>
10017 PR middle-end/44069
10018 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
10019 out-of-bounds array accesses.
10021 2010-05-25 Richard Guenther <rguenther@suse.de>
10023 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
10024 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
10025 (run_gcc): Re-organize to make cleanup easier.
10027 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10029 * config/s390/s390.c (optimization_options): Fix and move the
10030 flag_prefetch_loop_arrays override ...
10031 (override_options): ... here.
10033 2010-05-25 Joseph Myers <joseph@codesourcery.com>
10035 * diagnostic.c: Don't include plugin.h.
10036 (diagnostic_report_diagnostic): Don't handle plugins specially
10037 here. Pass context to internal_error callback.
10038 * diagnostic.h (struct diagnostic_context): Add context parameter
10039 to internal_error callback.
10040 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
10041 * plugin.h (struct diagnostic_context): Declare.
10042 (warn_if_plugins, plugins_internal_error_function): Declare.
10043 * toplev.c (general_init): Set global_dc->internal_error.
10044 * Makefile.in (diagnostic.o): Update dependencies.
10046 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
10048 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
10049 * config/rs6000/t-darwin64: New.
10050 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
10053 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
10056 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
10057 match the original (and intended) behaviour before r159557. This
10058 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
10061 2010-05-25 Richard Guenther <rguenther@suse.de>
10063 * doc/invoke.texi: Document -Ofast.
10064 * target.h (struct gcc_target): Add handle_ofast.
10065 * target-def.h (TARGET_HANDLE_OFAST): Add.
10066 (TARGET_INITIALIZER): Adjust.
10067 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
10068 * common.opt (Ofast): Add.
10070 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
10072 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
10073 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
10075 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
10078 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
10079 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
10080 false_rtx. Use false_rtx to compute the correct *ptest for reversed
10081 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
10083 2010-05-25 Jakub Jelinek <jakub@redhat.com>
10085 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
10086 DW_OP_minus with negated offset instead of DW_OP_plus.
10087 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
10089 2010-05-25 Wei Guozhi <carrot@google.com>
10091 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
10092 tst instruction and a new alternative.
10093 * config/arm/constraints.md (Pu): New constraint.
10095 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
10097 * function.c (assign_stack_local_1): Initialize variable
10098 to avoid warning when bootstrapping at -O3.
10100 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
10102 * configure.ac (all_lang_makefiles): Remove everything related to it.
10103 * configure: Regenerate.
10104 * Makefile.in: Fix reference to ada Make-lang.in.
10105 Remove support for LANG_MAKEFILES.
10107 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
10108 Sandra Loosemore <sandra@codesourcery.com>
10110 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
10111 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
10112 description. Add arm_neon_fp16_ok.
10113 (Add Options): Add arm_neon and arm_neon_fp16.
10115 2010-05-24 Joseph Myers <joseph@codesourcery.com>
10117 * diagnostic.c: Don't include flags.h.
10118 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
10119 context parameters. Check flags in the context passed as a parameter.
10120 (diagnostic_build_prefix): Add context parameter. Check
10121 show_column flag in context.
10122 (diagnostic_action_after_output): Check fatal_errors flag in context.
10123 (diagnostic_report_current_module): Check show_column flag in context.
10124 (default_diagnostic_starter): Update call to
10125 diagnostic_build_prefix.
10126 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
10127 (emit_diagnostic): Pass context to permissive_error_kind.
10128 (permerror): Pass context to permissive_error_kind.
10129 * diagnostic.h (struct diagnostic_context): Add show_column,
10130 pedantic_errors, permissive and fatal_errors fields.
10131 (diagnostic_build_prefix): Update prototype.
10133 * toplev.c (process_options): Set flags in global_dc from
10134 flag_show_column, flag_pedantic_errors, flag_permissive,
10136 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
10137 to diagnostic_build_prefix.
10138 * Makefile.in (diagnostic.o): Update dependencies.
10140 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
10142 * config/i386/ia32intrin.h (__crc32q): Define only if
10143 __SSE4_2__ is defined.
10145 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
10148 PR middle-end/43602
10149 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
10150 DECL_VISIBILITY_SPECIFIED.
10151 (emutls_decl): Set DECL_PRESERVE_P and copy
10152 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
10153 (emutls_finalize_control_var): New callback.
10154 (emutls_finish): Finalize emutls control variables.
10155 * toplev.c (compile_file): Move the call to emutls_finish ()
10156 before varpool_assemble_pending_decls ().
10158 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
10160 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
10161 added to the preprocessor condition.
10163 2010-05-24 Paul Brook <paul@codesourcery.com>
10165 * gengtype-lex.l: Add HARD_REG_SET.
10166 * expr.c (expand_expr_real_1): Record writes to hard registers.
10167 * function.c (rtl_data): Add asm_clobbers.
10168 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
10169 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
10170 Use crtl->asm_clobbers.
10172 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10174 * doc/makefile.texi (Makefile): Mention stages 'profile'
10175 and 'feedback' for profiledbootstrap.
10177 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
10180 * config/i386/i386.c (def_builtin): Properly check
10181 OPTION_MASK_ISA_64BIT.
10183 2010-05-23 Joseph Myers <joseph@codesourcery.com>
10185 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
10186 typedefs with different but compatible types. Allow duplicate
10187 typedefs with the same type except for pedantic non-C1X, but give
10188 warning for variably modified types.
10189 * c-typeck.c (tagged_types_tu_compatible_p,
10190 function_types_compatible_p, type_lists_compatible_p,
10191 comptypes_internal): Add parameter different_types_p; set
10192 *different_types_p for different but compatible types. All
10194 (comptypes_check_different_types): New.
10195 * c-tree.h (comptypes_check_different_types): Declare.
10197 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
10199 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
10200 * jump.c: Include basic-block.h.
10201 * profile.c: Likewise.
10202 * tree-profile.c: Likewise.
10203 * coverage.c: Likewise.
10204 * basic-block.h (optimize_function_for_size_p): Move to function.h.
10205 (optimize_function_for_speed_p): Likewise.
10206 * function.h (optimize_function_for_size_p,
10207 optimize_function_for_speed_p): Moved here from basic-block.h.
10208 * Makefile.in: Update dependencies.
10210 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10212 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
10213 before calling make; allow override through $MAKE.
10214 * doc/invoke.texi (Optimize Options): Document override.
10216 2010-05-23 Anatoly Sokolov <aesok@post.ru>
10218 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
10219 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10220 (rs6000_mode_dependent_address_ptr): Make static.
10221 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10222 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
10225 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
10228 * config/i386/i386.c: Make sure that the correct regparm is passed.
10230 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
10232 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
10233 * sbitmap.c: ...to here to internalize sbitmap element access.
10234 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
10235 Explain why basic-block.h is included.
10236 * function.h: Include tm.h for CUMULATIVE_ARGS.
10237 * Makefile.in: Update dependencies.
10239 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
10241 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
10243 * sbitmap.h (struct sbitmap_def): Do not typedef here.
10244 * sbitmap.c: Include sbitmap.h.
10245 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
10246 hard-reg-set.h. Split everything related to regsets out from here...
10247 * regset.h: ...to here. New file.
10248 * df.h: Include regset.h and sbitmap.h.
10249 * tree-flow.h: Likewise.
10250 * cfgloop.h: Likewise.
10251 * except.h: Do not include sbitmap.h. Include hashtab.h.
10252 * cgraph.h: Include vec.h and function.h.
10253 * reload.h (struct insn_chain): Change types of live_throughout
10254 and dead_or_set from regset_head to bitmap_head.
10255 (compute_use_by_pseudos): Be defined also if regset.h is not included.
10256 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
10257 spilled_regs from regset_head to bitmap_head to avoid dependency
10259 * sel-sched-ir.h: Include regset.h.
10260 * reload.c: Include df.h before reload.h.
10261 * caller-save.c: Likewise.
10262 * reload1.c: Likewise.
10264 (mark_elimination): Update type of r to bitmap, consistent with
10266 * dominance.c: Include bitmap.h.
10267 * modulo-sched.c: Include df.h.
10268 * cfganal.c: Include bitmap.h and sbitmap.h.
10269 * cfgbuild.c: Include sbitmap.h.
10270 * lcm.c: Include sbitmap.h.
10271 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
10272 * domwalk.c: Include sbitmap.h, exclude ggc.h.
10273 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
10274 * cselib.c: Include bitmap.h.
10275 * tree-optimize.c: Include regset.h.
10276 * stmt.c: Include bitmap.h.
10277 * Makefile.in: Update dependencies.
10279 2010-05-22 Jan Hubicka <jh@suse.cz>
10281 * cgraph.h (struct varpool_node): Add same_comdat_group.
10282 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
10284 (output_varpool): Update call of lto_output_varpool_node.
10285 (input_varpool): Read same_comdat_group pointer.
10286 (input_varpool_1): Fixup same_comdat_group pointer.
10287 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
10288 group is needed, all are.
10289 * varpool.c (varpool_remove_node): Remove node from same comdat group
10291 (varpool_analyze_pending_decls): Walk same comdat groups.
10293 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
10295 * rtl.h (union rtunion_def): Remove rt_bit member.
10296 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
10297 * print-rtl (print_rtx): Do not print the member.
10298 * gengtype.c (adjust_field_rtx_def): Do not handle it.
10299 * gengenrtl.c (type_from_format): Likewise.
10300 (accessor_from_format): Likewise.
10302 2010-05-22 Joseph Myers <joseph@codesourcery.com>
10304 * dbgcnt.c: Include toplev.h instead of errors.h.
10305 * ira-emit.c: Don't include errors.h.
10306 * ira.c: Include toplev.h instead of errors.h.
10307 * lto-compress.c: Include toplev.h instead of errors.h.
10308 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
10309 ira.o, dbgcnt.o): Update dependencies.
10311 2010-05-22 Richard Guenther <rguenther@suse.de>
10313 * gimple.c (gimple_types_compatible_p): Check type qualifications
10314 before merging pointer to complete and pointer to incomplete type.
10315 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
10316 we use our own resolution algorithm. The gold linker plugin
10317 doesn't do the job we want it to do here.
10319 2010-05-22 Anatoly Sokolov <aesok@post.ru>
10321 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10322 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10323 (sparc_mode_dependent_address_p): New function.
10325 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
10327 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
10329 * timevar.c: Do not include any core headers.
10330 (timevar_print): De-i18n-ize.
10331 (print_time): Likewise.
10332 * timevar.h (timevar_push, timevar_pop): Make inline functions.
10334 2010-05-21 Joseph Myers <joseph@codesourcery.com>
10336 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
10338 (diagnostic_initialize): Initialize x_data not last_function.
10339 (diagnostic_report_current_function): Move to tree-diagnostic.c.
10340 (default_diagnostic_starter): Call
10341 diagnostic_report_current_module not
10342 diagnostic_report_current_function.
10343 (diagnostic_report_diagnostic): Initialize x_data not
10345 (verbatim): Likewise.
10346 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
10348 (struct diagnostic_context): Change last_function to x_data.
10349 (diagnostic_auxiliary_data): Replace with
10350 diagnostic_context_auxiliary_data and
10351 diagnostic_info_auxiliary_data.
10352 (diagnostic_last_function_changed, diagnostic_set_last_function,
10353 diagnostic_report_current_function): Move to tree-diagnostic.h.
10354 (print_declaration, dump_generic_node, print_generic_stmt,
10355 print_generic_stmt_indented, print_generic_expr,
10356 print_generic_decl, debug_c_tree, dump_omp_clauses,
10357 print_call_name, debug_generic_expr, debug_generic_stmt,
10358 debug_tree_chain, default_tree_printer): Move to
10359 tree-pretty-print.h.
10360 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
10361 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
10362 gimple-pretty-print.h.
10363 * pretty-print.c: Don't include tree.h
10364 (pp_base_format): Don't handle %K here.
10365 (pp_base_tree_identifier): Move to tree-pretty-print.c.
10366 * pretty-print.h (text_info): Change abstract_origin to x_data.
10367 (pp_tree_identifier, pp_unsupported_tree,
10368 pp_base_tree_identifier): Move to tree-pretty-print.h.
10369 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
10370 tree-pretty-print.h: New files.
10371 * tree-pretty-print.c: Include tree-pretty-print.h.
10372 (percent_K_format): New. Moved from pretty-print.c.
10373 (pp_base_tree_identifier): Move from pretty-print.c.
10374 * c-objc-common.c: Include tree-pretty-print.h.
10375 (c_tree_printer): Handle %K here.
10376 * langhooks.c: Include tree-diagnostic.h.
10377 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
10378 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
10379 (default_tree_printer): Handle %K using percent_K_format.
10380 (general_init): Use default_tree_diagnostic_starter.
10381 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
10382 (free_lang_data): Use default_tree_diagnostic_starter.
10383 * c-pretty-print.c: Include tree-pretty-print.h.
10384 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
10385 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
10386 * dwarf2out.c: Include tree-pretty-print.h.
10387 * except.c: Include tree-pretty-print.h.
10388 * gimple-pretty-print.c: Include tree-pretty-print.h and
10389 gimple-pretty-print.h.
10390 * gimplify.c: Include tree-pretty-print.h.
10391 * graphite-poly.c: Include tree-pretty-print.h and
10392 gimple-pretty-print.h.
10393 * ipa-cp.c: Include tree-pretty-print.h.
10394 * ipa-inline.c: Include gimple-pretty-print.h.
10395 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
10396 * ipa-pure-const.c: Include gimple-pretty-print.h.
10397 * ipa-struct-reorg.c: Include tree-pretty-print.h and
10398 gimple-pretty-print.h.
10399 * ipa-type-escape.c: Include tree-pretty-print.h.
10400 * print-rtl.c: Include tree-pretty-print.h.
10401 * print-tree.c: Include gimple-pretty-print.h.
10402 * sese.c: Include tree-pretty-print.h.
10403 * tree-affine.c: Include tree-pretty-print.h.
10404 * tree-browser.c: Include tree-pretty-print.h.
10405 * tree-call-cdce.c: Include gimple-pretty-print.h.
10406 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
10407 * tree-chrec.c: Include tree-pretty-print.h.
10408 * tree-data-ref.c: Include tree-pretty-print.h and
10409 gimple-pretty-print.h.
10410 * tree-dfa.c: Include tree-pretty-print.h.
10411 * tree-if-conv.c: Include tree-pretty-print.h and
10412 gimple-pretty-print.h.
10413 * tree-inline.c: Include tree-pretty-print.h.
10414 * tree-into-ssa.c: Include tree-pretty-print.h and
10415 gimple-pretty-print.h.
10416 * tree-nrv.c: Include tree-pretty-print.h.
10417 * tree-object-size.c: Include tree-pretty-print.h and
10418 gimple-pretty-print.h.
10419 * tree-outof-ssa.c: Include tree-pretty-print.h and
10420 gimple-pretty-print.h.
10421 * tree-parloops.c: Include tree-pretty-print.h and
10422 gimple-pretty-print.h.
10423 * tree-predcom.c: Include tree-pretty-print.h and
10424 gimple-pretty-print.h.
10425 * tree-scalar-evolution.c: Include tree-pretty-print.h and
10426 gimple-pretty-print.h.
10427 * tree-sra.c: Include tree-pretty-print.h.
10428 * tree-ssa-address.c: Include tree-pretty-print.h.
10429 * tree-ssa-alias.c: Include tree-pretty-print.h.
10430 * tree-ssa-ccp.c: Include tree-pretty-print.h and
10431 gimple-pretty-print.h.
10432 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
10433 * tree-ssa-copy.c: Include tree-pretty-print.h and
10434 gimple-pretty-print.h.
10435 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
10436 * tree-ssa-dce.c: Include tree-pretty-print.h and
10437 gimple-pretty-print.h.
10438 * tree-ssa-dom.c: Include tree-pretty-print.h and
10439 gimple-pretty-print.h.
10440 * tree-ssa-dse.c: Include gimple-pretty-print.h.
10441 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
10442 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
10443 * tree-ssa-live.c: Include tree-pretty-print.h and
10444 gimple-pretty-print.h.
10445 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
10446 gimple-pretty-print.h.
10447 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
10448 gimple-pretty-print.h.
10449 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
10450 gimple-pretty-print.h.
10451 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
10452 gimple-pretty-print.h.
10453 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
10454 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
10455 * tree-ssa-operands.c: Include tree-pretty-print.h and
10456 gimple-pretty-print.h.
10457 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
10458 gimple-pretty-print.h.
10459 * tree-ssa-pre.c: Include tree-pretty-print.h and
10460 gimple-pretty-print.h.
10461 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
10462 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
10463 gimple-pretty-print.h.
10464 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
10465 gimple-pretty-print.h.
10466 * tree-ssa-sink.c: Include gimple-pretty-print.h.
10467 * tree-ssa-ter.c: Include tree-pretty-print.h and
10468 gimple-pretty-print.h.
10469 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
10470 * tree-ssa.c: Include tree-pretty-print.h and
10471 gimple-pretty-print.h.
10472 * tree-stdarg.c: Include gimple-pretty-print.h.
10473 * tree-switch-conversion.c: Include gimple-pretty-print.h.
10474 * tree-tailcall.c: Include tree-pretty-print.h and
10475 gimple-pretty-print.h.
10476 * tree-vect-data-refs.c: Include tree-pretty-print.h and
10477 gimple-pretty-print.h.
10478 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
10479 gimple-pretty-print.h.
10480 * tree-vect-loop.c: Include tree-pretty-print.h and
10481 gimple-pretty-print.h.
10482 * tree-vect-patterns.c: Include gimple-pretty-print.h.
10483 * tree-vect-slp.c: Include tree-pretty-print.h and
10484 gimple-pretty-print.h.
10485 * tree-vect-stmts.c: Include tree-pretty-print.h and
10486 gimple-pretty-print.h.
10487 * tree-vectorizer.c: Include tree-pretty-print.h.
10488 * tree-vrp.c: Include tree-pretty-print.h and
10489 gimple-pretty-print.h.
10490 * value-prof.c: Include tree-pretty-print.h and
10491 gimple-pretty-print.h.
10492 * var-tracking.c: Include tree-pretty-print.h.
10493 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
10494 (tree-diagnostic.o): New dependencies.
10495 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
10496 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
10497 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
10498 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
10499 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
10500 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
10501 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
10502 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
10503 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
10504 tree-ssa-address.o, tree-ssa-loop-niter.o,
10505 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
10506 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
10507 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
10508 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
10509 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
10510 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
10511 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
10512 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
10513 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
10514 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
10515 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
10516 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
10517 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
10518 tree-switch-conversion.o, var-tracking.o, value-prof.o,
10519 cfgexpand.o, pretty-print.o): Update dependencies.
10521 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
10523 * tree-ssa-structalias.c: Remove tm_p.h from include.
10525 2010-05-21 Jeff Law <law@redhat.com>
10527 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
10529 2010-05-21 Jason Merrill <jason@redhat.com>
10531 * tree-eh.c (cleanup_is_dead_in): New.
10532 (lower_try_finally): Don't generate a dead cleanup region.
10533 (lower_cleanup): Likewise.
10535 2010-05-21 Jakub Jelinek <jakub@redhat.com>
10538 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
10539 unchain each use from the cyclic next_regno_use chain first.
10541 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
10543 * real: Do not include gmp.h, mpfr.h, and mpc.h.
10544 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
10545 (real_value_negate, real_value_abs): New prototypes.
10546 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
10547 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
10548 new include file for interface between MPFR and REAL_VALUE_TYPE.
10549 * real.c: Include realmpfr.h.
10550 (real_arithmetic2): Remove legacy function.
10551 (real_value_negate): New.
10552 (real_value_abs): New.
10553 (mfpr_from_real, real_from_mpfr): Move from here...
10554 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
10555 * builtins.c: Include realmpfr.h.
10556 * fold-const.c: Include realmpfr.h.
10557 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
10558 (fold_negate_const): Likewise.
10559 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
10560 * toplev.c: Include realmpfr.h.
10561 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
10562 and real_value_negate.
10563 * fixed-value.c (check_real_for_fixed_mode): Likewise.
10564 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
10565 (vfp3_const_double_index): Likewise.
10566 (arm_print_operand): Likewise.
10567 * Makefile.in: Update dependencies.
10569 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10571 * config/s390/s390.c (override_options): Increase the default
10572 of max-completely-peel-times.
10574 2010-05-21 Julian Brown <julian@codesourcery.com>
10575 Mark Mitchell <mark@codesourcery.com>
10577 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
10578 sibling calls for Thumb-1.
10579 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
10580 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
10582 (*call_insn, *call_value_insn): Don't use for Thumb-2.
10583 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
10585 (return): New expander.
10586 (*arm_return): New name for ARM return insn.
10587 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
10589 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
10591 * config.gcc (sparc64-*-rtems*): New target.
10593 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
10595 * tree.c (build_function_decl_skip_args): Fix grammar.
10596 (build_function_type_list_1): Fix typos, adjust formatting.
10598 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
10600 * tree.h: Include real.h and fixed-value.h as basic datatypes.
10601 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
10602 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
10603 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
10604 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
10605 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
10606 tree-pretty-print.c, tree-loop-distribution.c,
10607 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
10608 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
10609 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
10610 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
10611 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
10612 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
10613 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
10614 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
10615 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
10616 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
10617 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
10618 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
10619 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
10620 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
10621 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
10622 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
10623 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
10624 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
10625 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
10626 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
10627 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
10628 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
10629 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
10630 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
10631 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
10632 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
10633 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
10634 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
10635 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
10636 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
10637 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
10638 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
10639 config/score/score7.c, config/score/score.c, config/arm/arm.c,
10640 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
10641 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
10642 config/bfin/bfin.c: Clean up redundant includes.
10643 * Makefile.in: Update accordingly.
10645 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
10647 PR middle-end/44204
10648 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
10649 statement has no arguments.
10651 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
10654 * varasm.c (emutls_decl): Merge attributes to new decl.
10656 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
10658 PR middle-end/44101
10659 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
10660 around the uniquized constructor if its type requires a conversion.
10662 2010-05-21 Jakub Jelinek <jakub@redhat.com>
10665 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
10666 at -O0 goto_locus of any of the incoming edges differs from
10667 goto_locus of outgoing edge, or gimple_location of any of the
10670 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
10672 * ira.c (ira_non_ordered_class_hard_regs): Define.
10673 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
10674 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
10675 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
10676 cost of unaligned hard regs when allocating multi-reg pseudos.
10678 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
10680 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
10681 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
10682 for TARGET_NO_FLOAT.
10683 * config/mips/mips.c (mips_file_start): Expand conditional expression
10684 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
10685 (mips_override_options): Move -mno-float override -msoft-float and
10687 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
10688 Condition(TARGET_SUPPORTS_NO_FLOAT).
10689 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
10690 __mips_no_float here.
10691 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
10692 (TARGET_SUPPORTS_NO_FLOAT): Define.
10693 * config/mips/sdemtk.opt: Delete.
10695 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
10697 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
10699 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
10702 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
10703 * configure: Regenerate.
10704 * config.in: Regenerate.
10705 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
10706 instead of sahf only for 64bit targets.
10708 2010-05-20 Jakub Jelinek <jakub@redhat.com>
10711 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
10712 setup_ref_regs for DEBUG_INSNs.
10714 2010-05-20 Jan Hubicka <jh@suse.cz>
10716 PR middle-end/44197
10717 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
10719 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
10722 * df-scan.c (df_ref_compare): Stabilize sort.
10724 2010-05-20 Jakub Jelinek <jakub@redhat.com>
10726 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
10727 argument. Don't use DW_OP_piece if offset is non-zero,
10728 put offset into second DW_OP_bit_piece argument.
10729 (dw_sra_loc_expr): Adjust callers. For memory expressions
10732 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
10735 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
10736 settings for 16-bit-constant "addo" alternative.
10738 2010-05-19 James E. Wilson <wilson@codesourcery.com>
10740 * config/mips/mips-dsp.md (add<DSPV:mode>3,
10741 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
10744 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
10745 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
10748 2010-05-19 Joseph Myers <joseph@codesourcery.com>
10750 * diagnostic.c (FLOAT, FFS): Don't undefine.
10751 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
10752 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
10755 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10757 * combine.c (propagate_for_debug): Call make_compound_operation
10758 on the source value.
10759 (try_combine): When implementing a split chosen by find_split_point,
10760 either copy i2src or set it to null. Assert that i2src is not null
10761 before substituting into CALL_INSN_FUNCTION_USAGE.
10763 2010-05-19 Anatoly Sokolov <aesok@post.ru>
10765 * double-int.h (double_int_ior): New function.
10766 * tree.h (build_int_cst_wide_type): Remove.
10767 * tree.c (build_int_cst_wide_type): Remove.
10768 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
10769 of build_int_cst_wide_type.
10770 * stor-layout.c (set_sizetype): (Ditto.).
10771 * dojump.c (do_jump): Use build_int_cstu instead of
10772 build_int_cst_wide_type.
10774 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
10776 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
10777 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
10778 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
10779 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
10780 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
10781 propagate the 'data' argument to copy_tree_r.
10782 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
10783 Propagate 'data' argument to walk_tree.
10784 (copy_if_shared): New function.
10785 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
10786 (unmark_visited): New function.
10787 (unshare_body): Call copy_if_shared instead of doing it manually.
10788 (unvisit_body): Call unmark_visited instead of doing it manually.
10790 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
10792 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
10793 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
10794 * hooks.c: Likewise.
10795 * target-def.h (TARGET_FOLD_BUILTIN): Define to
10796 hook_tree_tree_int_treep_bool_null.
10797 * target.h (struct gcc_target): Update signature of fold_builtin
10799 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
10800 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
10801 instead of the call expression.
10802 (fold_builtin_call_array): Pass n and argarray directly.
10803 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
10805 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
10806 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
10807 `i' and use it in place of `arity'.
10808 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
10809 Dereference `args' directly.
10810 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
10812 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10814 * doc/sourcebuild.texi (Effective-Target Keywords): Document
10816 (Directives): Document optional dg-require-effective-target
10819 2010-05-19 Richard Guenther <rguenther@suse.de>
10822 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
10824 2010-05-19 Richard Guenther <rguenther@suse.de>
10826 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
10827 * common.opt (fwhopr=): New.
10828 * opts.c (common_handle_option): Handle OPT_fwhopr.
10829 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
10830 * collect2.c (main): Match -fwhopr*.
10831 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
10832 Execute ltrans stage in parallel when jobs is bigger than 1.
10834 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10836 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
10837 pentiumpro on Solaris 8/x86 with Sun as.
10838 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
10840 (gcc_cv_as_ix86_quad): Check for .quad directive.
10841 * configure: Regenerate.
10842 * config.in: Regenerate.
10843 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
10845 2010-05-19 Martin Jambor <mjambor@suse.cz>
10847 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
10848 also for indirect edges. Actual printing moved...
10849 (ipa_print_node_jump_functions_for_edge): ...here.
10850 (ipa_compute_jump_functions): Renamed to
10851 ipa_compute_jump_functions_for_edge and made static.
10852 (ipa_compute_jump_functions): New function.
10853 (make_edge_direct_to_target): Check if the number of arguments on
10854 the newly direct edge is the same as the number of parametrs of
10856 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
10857 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
10858 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
10859 analysis functions unconditionally, call the new
10860 ipa_analyze_params_uses on the node instead of every edge.
10862 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
10864 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
10866 (dump_mem_ref): Adopt debug code to handle a tree as step. This
10867 also checks for a constant int vs. non-constant but
10868 loop-invariant steps.
10869 (find_or_create_group): Change the sort algorithm to only consider
10870 steps that are constant ints.
10871 (idx_analyze_ref): Adopt code to handle a tree instead of a
10872 HOST_WIDE_INT for step.
10873 (gather_memory_references_ref): Handle tree instead of int and be
10874 prepared to see a NULL_TREE.
10875 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
10876 prefetches if the step cannot be calculated at compile time.
10877 (issue_prefetch_ref): Issue prefetches for non-constant but
10878 loop-invariant steps.
10880 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
10883 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
10885 * tree.h (build_call_list): Remove.
10886 * tree.c (build_call_list): Remove.
10888 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
10890 * tree.h (build_call_list): Remove.
10891 * tree.c (build_call_list): Remove.
10893 2010-05-18 Jan Hubicka <jh@suse.cz>
10895 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
10897 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
10899 PR rtl-optimization/43332
10900 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
10902 2010-05-18 Anatoly Sokolov <aesok@post.ru>
10904 * tree.h (build_int_cstu): Implement as static inline.
10905 * tree.c (build_int_cstu): Remove function.
10906 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
10909 2010-05-18 Richard Guenther <rguenther@suse.de>
10912 * lto-wrapper.c (verbose): New variable. Initialize from -v.
10913 (debug): Initialize from -save-temps.
10914 (collect_execute): Print command-line when verbose.
10915 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
10916 for ltrans invocation. Produce -dumpbase flag again.
10917 (process_args): Remove.
10919 * collect2.c (maybe_run_lto_and_relink): Only pass object
10920 files to lto-wrapper.
10921 * gcc.c (LINK_COMMAND_SPEC): Likewise.
10923 2010-05-18 Jan Hubicka <jh@suse.cz>
10925 * opts.c (decode_options): Do not disable whopr at ipa_cp.
10926 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
10928 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
10931 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
10933 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
10936 2010-05-18 Jakub Jelinek <jakub@redhat.com>
10939 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
10940 rtx_equal_p inline.
10942 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
10944 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
10945 lto-macho as lto_binary_reader.
10947 * darwin.c (darwin_asm_named_section): Do not add assembler comment
10948 after .section directive; just print it before the directive instead.
10950 2010-05-17 Jan Hubicka <jh@suse.cz>
10952 * cgraph.c (cgraph_create_virtual_clone): Only check
10953 versionable_function_p when not in wpa and checking is enabled.
10954 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
10955 there are no more functions to materialize.
10957 2010-05-17 Jan Hubicka <jh@suse.cz>
10959 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
10960 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
10962 (output_cgraph): Call output_cgraph_opt_summary.
10963 (input_cgrpah): Call input_cgraph_opt_summary.
10964 (output_cgraph_opt_summary_p, output_node_opt_summary,
10965 input_node_opt_summary, input_cgraph_opt_section): New functions.
10966 * lto-section-in.c (lto_section_name): Add cgraphopt.
10967 * tree-inline.c (tree_function_versioning): Handle parm_num.
10968 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
10969 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
10971 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
10973 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
10974 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
10975 the insn to prefetch ratio heuristic to loops with known trip count.
10977 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
10979 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
10980 (schedule_prefetches): Do not generate a prefetch if the unroll factor
10981 is far from what is required by the prefetch.
10983 2010-05-17 Jan Hubicka <jh@suse.cz>
10985 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
10986 (ipcp_estimate_growth): Likewise.
10987 (ipcp_const_param_count): Likewise.
10988 (ipcp_insert_stage): Likewise.
10989 * ipa-prop.c (visit_load_for_mod_analysis): New function.
10990 (visit_store_addr_for_mod_analysis): Set used flag.
10991 (ipa_detect_param_modifications): Set used flag for SSE params;
10992 update use of walk_stmt_load_store_addr_ops.
10993 (ipa_print_node_params): Print used flag.
10994 (ipa_write_node_info): Stream used flag.
10995 (ipa_read_node_info): Likewise.
10996 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
10997 (ipa_is_param_used): New function.
10998 (lto_ipa_fixup_call_notes): Remove unused declaration.
11000 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11003 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
11004 * configure: Regenerate.
11005 * config.in: Regenerate.
11006 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
11007 !HAVE_AS_IX86_REP_LOCK_PREFIX.
11008 Don't emit whitespace.
11009 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
11010 (*rep_movsi): Likewise.
11011 (*rep_movsi_rex64): Likewise.
11012 (*rep_movqi): Likewise.
11013 (*rep_movqi_rex64): Likewise.
11014 (*rep_stosdi_rex64): Likewise.
11015 (*rep_stossi): Likewise.
11016 (*rep_stossi_rex64): Likewise.
11017 (*rep_stosqi): Likewise.
11018 (*rep_stosqi_rex64): Likewise.
11019 (*cmpstrnqi_nz_1): Use {%;} after repz.
11020 (*cmpstrnqi_nz_rex_1): Likewise.
11021 (*cmpstrnqi_1): Likewise.
11022 (*cmpstrnqi_rex_1): Likewise.
11023 (*strlenqi_1): Use {%;} after repnz.
11024 (*strlenqi_rex_1): Likewise.
11025 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
11026 (*sync_compare_and_swap<mode>): Likewise.
11027 (sync_double_compare_and_swap<mode>): Likewise.
11028 (*sync_double_compare_and_swapdi_pic): Likewise.
11029 (sync_old_add<mode>): Likewise.
11030 (sync_add<mode>): Likewise.
11031 (sync_sub<mode>): Likewise.
11032 (sync_<code><mode>): Likewise.
11034 2010-05-17 Martin Jambor <mjambor@suse.cz>
11036 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
11037 otr_token and polymorphic.
11038 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
11039 (cgraph_clone_edge): Copy the above fields.
11040 * tree.c (get_binfo_at_offset): New function.
11041 * tree.h (get_binfo_at_offset): Declare.
11042 * ipa-prop.h (enum jump_func_type): Added known_type jump function
11043 type, reordered items, updated comments.
11044 (union jump_func_value): Added base_type field, reordered fields.
11045 (enum ipa_lattice_type): Moved down in the file.
11046 (struct ipa_param_descriptor): New field polymorphic.
11047 (ipa_is_param_polymorphic): New function.
11048 * ipa-prop.c: Include gimple.h and gimple-fold.h.
11049 (ipa_print_node_jump_functions): Print known type jump functions.
11050 (compute_complex_pass_through): Renamed to...
11051 (compute_complex_assign_jump_func): this.
11052 (compute_complex_ancestor_jump_func): New function.
11053 (compute_known_type_jump_func): Likewise.
11054 (compute_scalar_jump_functions): Create known type and complex ancestor
11056 (ipa_note_param_call): New parameter polymorphic, set the corresponding
11057 flag in the call note accordingly.
11058 (ipa_analyze_call_uses): Renamed to...
11059 (ipa_analyze_indirect_call_uses): this. New parameter target, define
11060 variable var only in the block where it is used.
11061 (ipa_analyze_virtual_call_uses): New function.
11062 (ipa_analyze_call_uses): Likewise.
11063 (combine_known_type_and_ancestor_jfs): Likewise.
11064 (update_jump_functions_after_inlining): Implemented handling of a
11065 number of new jump function types combination.
11066 (print_edge_addition_message): Removed.
11067 (make_edge_direct_to_target): New function.
11068 (try_make_edge_direct_simple_call): Likewise.
11069 (try_make_edge_direct_virtual_call): Likewise.
11070 (update_call_notes_after_inlining): Renamed to...
11071 (update_indirect_edges_after_inlining): this. Moved edge creation for
11072 indirect calls to try_make_edge_direct_simple_call, also calls
11073 try_make_edge_direct_virtual_call for virtual calls.
11074 (ipa_print_node_params): Changed the header message.
11075 (ipa_write_jump_function): Stream also known type jump functions.
11076 (ipa_read_jump_function): Likewise.
11077 (ipa_write_indirect_edge_info): Stream new fields in
11078 cgraph_indirect_call_info.
11079 (ipa_read_indirect_edge_info): Likewise.
11080 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
11083 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11085 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
11087 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
11089 * tree.h (CALL_EXPR_ARGS): Delete.
11090 (call_expr_arglist): Delete.
11091 * tree.c (call_expr_arglist): Delete.
11092 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
11093 targetm.fold_builtin.
11094 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
11095 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
11096 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
11097 arglist parameter. Use CALL_EXPR_ARG.
11098 (picochip_expand_builtin_3op): Likewise.
11099 (picochip_expand_builtin_2opvoid): Likewise.
11100 (picochip_expand_array_get): Likewise.
11101 (picochip_expand_array_put): Likewise.
11102 (picochip_expand_array_testport): Likewise.
11103 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
11104 rather than arglist.
11105 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
11107 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
11108 than TREE_VALUE and TREE_CHAIN.
11109 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
11110 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
11113 2010-05-17 Jakub Jelinek <jakub@redhat.com>
11116 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
11117 to have no fallthru edge.
11119 PR middle-end/44102
11120 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
11121 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
11122 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
11123 add BARRIER after previous bb if needed.
11125 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
11127 * tree.c (build_function_type_list_1): Remove bogus assert condition.
11129 2010-05-17 Alan Modra <amodra@gmail.com>
11131 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
11132 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
11133 with copy_reg rtx param.
11134 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
11135 Correct cases where code for ABI_V4 did not initialise the reg
11136 used to access frame. Also leave frame_reg_rtx as sp for large
11137 frames that save no regs.
11139 2010-05-17 Martin Jambor <mjambor@suse.cz>
11141 PR middle-end/44133
11142 * tree-sra.c (create_access_replacement): New parameter rename, mark
11143 the replaement for renaming only when it is true.
11144 (get_access_replacement): Pass true in the rename parameter of
11145 create_access_replacement.
11146 (get_unrenamed_access_replacement): New function.
11147 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
11148 replacement declaration from it.
11150 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
11152 * function.c (try_fit_stack_local, add_frame_space): New static
11154 (assign_stack_local_1): Use them. Look for opportunities to use
11155 space previously wasted on alignment.
11156 * function.h (struct frame_space): New.
11157 (struct rtl_data): Add FRAME_SPACE_LIST member.
11158 * reload1.c (something_was_spilled): New static variable.
11159 (alter_reg): Set it.
11160 (reload): Test it in addition to testing if the frame size changed.
11162 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
11164 * config/s390/s390.c: Define sane prefetch settings and activate
11165 flag_prefetch_loop_arrays on -O3.
11166 * config/s390/s390.h: Declare that read can use write prefetch.
11168 2010-05-17 Jakub Jelinek <jakub@redhat.com>
11170 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
11173 2010-05-16 Jan Hubicka <jh@suse.cz>
11175 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
11176 function body; do not check stdarg field of struct function.
11178 2010-05-16 Jan Hubicka <jh@suse.cz>
11180 * cgraph.c (dump_cgraph_node): Dump versionable flag.
11181 * cgraph.h (cgraph_local_info): Add versionable flag.
11182 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
11183 (ipcp_versionable_function_p): Use it.
11184 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
11187 2010-05-16 Jan Hubicka <jh@suse.cz>
11189 * cgraph.c (cgraph_clone_node): Take decl argument and insert
11190 clone into hash when it is different from orig.
11191 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
11192 * cgraph.h (cgraph_clone_node): Update prototype.
11193 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
11194 (lto_cgraph_encoder_delete): Delete body map.
11195 (lto_cgraph_encoder_size): Move to header.
11196 (lto_cgraph_encoder_encode_body_p,
11197 lto_set_cgraph_encoder_encode_body): New.
11198 (lto_output_node): Do not take written_decls argument; output clone_of
11200 (add_node_to): Add include_body_argument; call
11201 lto_set_cgraph_encoder_encode_body on master of the clone.
11202 (add_references): Update use of add_node_to.
11203 (compute_ltrans_boundary): Likewise.
11204 (output_cgraph): Do not create written_decls bitmap.
11205 (input_node): Take nodes argument; stream in clone_of correctly.
11206 (input_cgraph_1): Update use of input_node.
11207 * lto-streamer-out.c (lto_output): Use encoder info to decide
11208 what bodies to output.
11209 * ipa-inline.c (cgraph_clone_inlined_nodes,
11210 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
11211 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
11212 (lto_cgraph_encoder_size): Define here.
11213 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
11216 2010-05-16 Richard Guenther <rguenther@suse.de>
11218 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
11220 * ipa-type-escape.c (gate_type_escape_vars): Run when
11221 -fipa-struct-reorg runs.
11222 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
11223 * common.opt (fipa-type-escape): Remove.
11225 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
11227 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
11228 (decode_options): Likewise.
11229 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
11231 2010-05-16 Jan Hubicka <jh@suse.cz>
11233 * ipa.c (function_and_variable_visibility): Also bring local all
11236 2010-05-16 Richard Guenther <rguenther@suse.de>
11238 * alias.c (nonoverlapping_memrefs_p): Remove use of
11239 IPA type-escape information.
11241 2010-05-16 Joseph Myers <joseph@codesourcery.com>
11243 * c-common.c (c_common_reswords): Add _Static_assert for C.
11244 * c-parser.c (c_token_starts_declaration,
11245 c_parser_next_token_starts_declaration,
11246 c_parser_static_assert_declaration_no_semi,
11247 c_parser_static_assert_declaration): New.
11248 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
11249 Handle static assertions if static_assert_ok.
11250 (c_parser_external_declaration, c_parser_declaration_or_fndef,
11251 c_parser_compound_statement_nostart, c_parser_label,
11252 c_parser_for_statement, c_parser_objc_methodprotolist,
11253 c_parser_omp_for_loop): All callers of
11254 c_parser_declaration_or_fndef changed.
11255 (c_parser_struct_declaration): Handle static assertions.
11256 (c_parser_compound_statement_nostart): Use
11257 c_parser_next_token_starts_declaration and
11258 c_token_starts_declaration to detect start of declarations.
11259 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
11262 2010-05-16 Anatoly Sokolov <aesok@post.ru>
11264 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
11265 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11266 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11267 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11268 (mmix_function_outgoing_value): Rename to...
11269 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
11270 (mmix_function_value_regno_p): Make static.
11271 (mmix_libcall_value): New function.
11272 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
11273 mmix_function_value_regno_p): Remove declaration.
11275 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
11277 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
11278 BUILT_IN_ALLOCA if stack checking is enabled.
11280 2010-05-16 Richard Guenther <rguenther@suse.de>
11282 * var-tracking.c (vars_copy_1): Inline ...
11283 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
11284 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
11285 (variable_merge_over_cur): Adjust. Merge asserts.
11286 (variable_merge_over_src): Likewise.
11287 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
11288 (variable_post_merge_new_vals): Merge asserts.
11289 (variable_post_merge_perm_vals): Likewise.
11290 (find_mem_expr_in_1pdv): Likewise.
11291 (dataflow_set_different_value): Remove.
11292 (onepart_variable_different_p): Merge asserts.
11293 (variable_different_p): Likewise.
11294 (dataflow_set_different_1): Inline ...
11295 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
11296 (emit_notes_for_differences_1): Merge asserts.
11298 2010-05-16 Richard Guenther <rguenther@suse.de>
11300 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
11301 * optabs.c (libfunc_decl_hash): Likewise.
11302 * varasm.c (emutls_decl): Likewise.
11304 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
11306 * c-decl.c: Don't include gimple.h.
11307 (merge_decls): Do not copy gimple_body.
11309 2010-05-15 Jason Merrill <jason@redhat.com>
11311 * c.opt: Add -fnothrow-opt.
11313 2010-05-15 Jan Hubicka <jh@suse.cz>
11315 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
11317 * passes.c (ipa_write_summaries): Write all analyzed nodes.
11319 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
11321 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
11322 * Makefile.in: Add it.
11323 Fix all other Makefile dependencies for changes below.
11324 * tree.h: Include it instead of defining VEC primitives here.
11325 * gimple.h: Likewise.
11327 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
11328 * except.h: Include vecir.h, break dependence on tree.h.
11330 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
11332 * tree-iterator.c: ...to here.
11333 * tree-iterator.h: Fix file introduction comment. Add extern markers.
11335 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
11337 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
11338 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
11339 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
11340 tree-mudflap.h, and target.h.
11341 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
11342 predict.h, tree-inline.h, gimple.h, and langhooks.h.
11343 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
11344 Add FIXME for why gimple.h is still included (should be unnecessary
11345 since GCC 4.5 gimplification unit-at-a-time).
11346 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
11347 * c-pragma.c: Add FIXME for why function.h needs to be included just
11348 for cfun, at front-end level.
11349 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
11350 Do not include ggc.h, but include vecprim.h for VEC(char).
11351 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
11352 Explain why target.h is included.
11353 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
11354 Explain why gimple.h is included.
11355 * c-ppoutput.c: Do not include tm.h.
11356 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
11357 * c-parses.c: Explain why rtl.h is included, and that this (and only
11358 this) is also why tm.h must be included.
11359 Do not include except.h.
11360 * c-lang.c: Do not include ggc.h.
11362 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
11364 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
11366 2010-05-15 Joseph Myers <joseph@codesourcery.com>
11368 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
11369 unions by default if those structs and unions have no tags. Do
11370 not condition anonymous struct and unions handling on flag_iso.
11371 Allow anonymous structs and unions for C1X.
11372 (finish_struct): Do not diagnose lack of named fields when
11373 anonymous structs and unions present for C1X. Accept flexible
11374 array members in structure with anonymous structs or unions but no
11375 directly named fields.
11376 * doc/extend.texi (Unnamed Fields): Update.
11378 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
11380 * gimple.h (compare_field_offset): Rename into...
11381 (gimple_compare_field_offset): ...this.
11382 * gimple.c (compare_field_offset): Rename into...
11383 (gimple_compare_field_offset): ...this. Compare the full access if
11384 the offset is self-referential.
11385 (gimple_types_compatible_p): Adjust for above renaming.
11386 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
11387 DECL_NONADDRESSABLE_P flag of fields before merging them.
11389 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
11391 * tree.h (ctor_to_list): Delete.
11392 * tree.c (ctor_to_list): Delete.
11394 2010-05-15 Jan Hubicka <jh@suse.cz>
11396 * ipa-reference.c: Include toplev.h
11397 (is_proper_for_analysis): Only add to all_module_statics
11398 if it is allocated.
11399 (write_node_summary_p, stream_out_bitmap,
11400 ipa_reference_write_optimization_summary,
11401 ipa_reference_read_optimization_summary): New.
11402 (struct ipa_opt_pass_d pass_ipa_reference): Add
11403 optimization summary streaming.
11404 * lto-cgraph.c (referenced_from_this_partition_p,
11405 reachable_from_this_partition_p): New functions.
11406 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11407 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
11408 * opts.c (decode_options): Enable ipa_reference.
11409 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
11410 * lto-streamer.h (referenced_from_this_partition_p,
11411 reachable_from_this_partition_p): Declare.
11413 2010-05-15 Richard Guenther <rguenther@suse.de>
11415 PR tree-optimization/44038
11416 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
11417 taking the address of a V_C_E of a constant.
11419 2010-05-14 Jan Hubicka <jh@suse.cz>
11421 * tree.h (memory_identifier_string): Remove.
11422 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
11423 (ipa_reference_global_vars_info_d): Remove statics_not_read and
11424 statics_not_written.
11425 (ipa_reference_optimization_summary_d): New structure.
11426 (ipa_reference_optimization_summary_t): New type and vector.
11427 (ipa_reference_vars_info_d): Embedd structures instead of using
11429 (reference_vars_to_consider): Remove out of GGC space.
11430 (module_statics_escape): Remove.
11431 (global_info_obstack): Rename to ...
11432 (optimization_summary_obstack): ... this one.
11433 (initialization_status_t): Remove.
11434 (memory_identifier_string): Remove.
11435 (get_reference_vars_info): Fix indenting.
11436 (set_reference_vars_info): Likewise.
11437 (get_reference_optimization_summary): New.
11438 (set_reference_optimization_summary): New.
11439 (get_global_reference_vars_info): Remove.
11440 (ipa_reference_get_read_global): Remove.
11441 (ipa_reference_get_written_global): Remove.
11442 (ipa_reference_get_not_read_global): Update.
11443 (ipa_reference_get_not_written_global): Update.
11444 (is_proper_for_analysis): Outlaw addressable.
11445 (propagate_bits): Update for new datastructures.
11446 (analyze_variable): Remove.
11447 (init_function_info): Update for new datastructures.
11448 (clean_function_local_data): Remove.
11449 (clean_function): Remove.
11450 (copy_global_bitmap): Use optimizations_summary_obstack.
11451 (duplicate_node_data): Duplicate optimization summary only.
11452 (remove_node_data): Remove optimization summary only.
11453 (generate_summary): Do not analyze variables; do not compute
11454 module_statics_escape; do not prune solutions by it.
11455 (read_write_all_from_decl): Fix typos in comments.
11456 (propagate): Doscover readonly and nonaddressable first;
11457 update for new datastructures; share global bitmaps.
11458 * ipa-reference.h (ipa_reference_get_read_global,
11459 ipa_reference_get_written_global): Remove.
11460 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
11461 * Makefile.in: Remove ipa-refereference from GT files.
11463 2010-05-14 Jakub Jelinek <jakub@redhat.com>
11466 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
11467 for all SYMBOL_REF_DECLs.
11469 2010-05-14 Jan Hubicka <jh@suse.cz>
11471 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
11472 (varpool_all_refs_explicit_p): New inline function.
11473 * ipa-reference.c: Update comment.
11474 (module_statics_written): Remove.
11475 (get_static_decl): Remove.
11476 (ipa_init): Do not initialize module_statics_written.
11477 (analyze_function): Likewise.
11478 (generate_summary): Likewise; do not compute module_statics_readonly
11479 and do not update variable flags.
11480 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
11481 * ipa.c: Inlucde flags.h
11482 (cgraph_local_node_p): New.
11483 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
11484 promote functions to local.
11485 (ipa_discover_readonly_nonaddressable_vars): New function.
11486 (function_and_variable_visibility): Use cgraph_local_node_p.
11487 * varpool.c (varpool_finalize_decl): Set force_output for
11488 DECL_PRESERVE_P vars.
11490 2010-05-14 Jan Hubicka <jh@suse.cz>
11492 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
11494 2010-05-14 Richard Guenther <rguenther@suse.de>
11496 PR tree-optimization/44119
11497 * tree-ssa-pre.c (eliminate): Properly mark replacement of
11498 a PHI node necessary.
11500 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
11502 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
11504 2010-05-14 Jason Merrill <jason@redhat.com>
11507 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
11508 (gimple_call_set_nothrow): New.
11509 * gimple.c (gimple_build_call_from_tree): Call it.
11510 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
11513 * gimplify.c (gimplify_seq_add_stmt): No longer static.
11514 * gimple.h: Declare it.
11515 * gimple.c (gimple_build_eh_filter): No ops.
11517 2010-05-14 Jan Hubicka <jh@suse.cz>
11519 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
11520 nodes already in queue.
11521 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
11522 re-enqueueing node.
11524 2010-05-14 Jakub Jelinek <jakub@redhat.com>
11527 * cfgexpand.c (expand_debug_expr): If non-memory op0
11528 has BLKmode, return NULL.
11530 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
11532 * config.gcc: Add support for --with-cpu option for bdver1.
11533 * config/i386/i386.h (TARGET_BDVER1): New macro.
11534 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
11535 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
11536 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
11537 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
11538 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
11539 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
11540 (processor_type): Add PROCESSOR_BDVER1.
11541 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
11542 processor_type in config/i386/i386.h.
11543 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
11544 movaps <reg, reg> instead of movapd <reg, reg> when replacing
11545 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
11546 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
11547 to emit packed xor instead of packed double/packed integer
11548 xor for SSE and AVX when moving a zero value.
11549 * config/i386/sse.md: Add check for
11550 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
11551 movapd/movdqa for SSE and AVX.
11552 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
11553 single logical operations i.e and, or and xor instead of packed double
11554 logical operations for SSE and AVX.
11555 * config/i386/i386-c.c (ix86_target_macros_internal):
11556 Add PROCESSOR_BDVER1.
11557 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
11558 (has_fma4, has_xop): New.
11559 * config/i386/i386.c (bdver1_cost): New variable.
11560 (m_BDVER1): New macro.
11561 (m_AMD_MULTIPLE): Add m_BDVER1.
11562 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
11563 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
11564 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
11565 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
11566 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
11567 x86_tune_sse_partial_reg_dependency,
11568 x86_tune_sse_unaligned_load_optimal,
11569 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
11570 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
11571 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
11572 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
11573 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
11574 Enable/disable for bdver1.
11575 (processor_target_table): Add bdver1_cost.
11576 (cpu_names): Add bdver1.
11577 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
11578 processor_alias_table.
11579 (ix86_expand_vector_move_misalign): Change.
11580 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
11581 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
11582 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
11583 of movupd/movdqu for SSE and AVX.
11584 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
11585 (ix86_tune_adjust_cost): Add code for bdver1.
11586 (standard_sse_constant_opcode): Add check for
11587 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
11588 of packed double xor for SSE and AVX.
11590 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
11592 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
11593 result to unsigned.
11595 2010-05-14 Tristan Gingold <gingold@adacore.com>
11597 * toplev.c (default_debug_hooks): Remove this variable.
11598 (process_options): Remove assignments to default_debug_hooks.
11600 2010-05-14 Martin Jambor <mjambor@suse.cz>
11602 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
11603 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
11604 * langhooks.h (struct lang_hooks_for_decls): Removed field
11606 * tree.c (free_lang_data): Remove assignment to
11607 lang_hooks.fold_obj_type_ref.
11608 * tree.def (OBJ_TYPE_REF): Update comment.
11610 2010-05-14 Richard Guenther <rguenther@suse.de>
11612 PR tree-optimization/44124
11613 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
11615 2010-05-14 Alan Modra <amodra@gmail.com>
11618 * config/rs6000/rs6000.c (struct machine_function): Reorder
11619 fields for better packing. Add lr_save_state.
11620 (rs6000_ra_ever_killed): Return lr_save_state if set.
11621 (rs6000_emit_eh_reg_restore): Set lr_save_state.
11623 2010-05-13 Jan Hubicka <jh@suse.cz>
11625 * varpool.c (decide_is_variable_needed): Drop code checking
11626 TREE_SYMBOL_REFERENCED.
11628 2010-05-13 Jan Hubicka <jh@suse.cz>
11630 * final.c (output_addr_const): Do not call mark_decl_referenced.
11631 * cgraphunit.c (process_function_and_variable_attributes): Use
11632 mark_needed_node dirrectly.
11633 (assemble_thunk): Do not call mark_decl_referenced.
11635 2010-05-13 Anatoly Sokolov <aesok@post.ru>
11637 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
11639 2010-05-13 Jeff Law <law@redhat.com>
11641 * ira-conflicts.c (print_allocno_conflicts): New function broken out
11643 (print_conflicts): Call print_allocno_conflicts.
11645 2010-05-13 Jakub Jelinek <jakub@redhat.com>
11648 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
11651 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
11653 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
11654 t-mingw-w64 or t-mingw-w32 for multilib configuration.
11655 * config/i386/t-mingw-w32: New.
11656 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
11658 2010-05-13 Martin Jambor <mjambor@suse.cz>
11660 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
11662 * gimple-fold.c (get_base_binfo_for_type): New function.
11663 (gimple_get_relevant_ref_binfo): Likewise.
11664 (gimple_fold_obj_type_ref_known_binfo): Likewise.
11665 (gimple_fold_obj_type_ref): Likewise.
11666 (fold_gimple_call): Simplify condition for folding virtual calls
11667 and call gimple_fold_obj_type_ref.
11668 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
11669 (gimple_fold_obj_type_ref_known_binfo): Likewise.
11671 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
11673 * config/rs6000/rs6000-protos.h
11674 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
11675 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
11676 (rs6000_debug_mode_dependent_address)
11677 (rs6000_mode_dependent_address_ptr): Likewise.
11679 2010-05-13 Jakub Jelinek <jakub@redhat.com>
11682 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
11684 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
11685 * tree-sra.c (create_access_replacement): Call unshare_expr before
11686 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
11687 * dwarf2out.c: Include tree-flow.h.
11688 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
11689 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
11690 Handle DW_OP_bit_piece.
11691 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
11692 construct_piece_list, adjust_piece_list): New functions.
11693 (add_var_loc_to_decl): Handle SRA optimized variables.
11694 Adjust for var_loc_note to loc field renaming.
11695 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
11696 in VAR_LOCATION note.
11697 (new_loc_descr_op_bit_piece): New function.
11698 (dw_sra_loc_expr): New function.
11699 (dw_loc_list): Use it. Don't handle the last range after the
11700 loop, handle it inside of the loop. Adjust for var_loc_note
11701 to loc field renaming.
11702 (add_location_or_const_value_attribute): Only special case
11703 single entry loc lists if loc is NOTE_P. Adjust for
11704 var_loc_note to loc field renaming.
11705 (dwarf2out_var_location): Don't set newloc->var_loc_note
11706 and newloc->next here.
11708 2010-05-12 Jan Hubicka <jh@suse.cz>
11710 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
11712 * cgraph.h (cgraph_only_called_directly_p,
11713 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
11714 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
11715 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
11717 * ipa.c (cgraph_remove_unreachable_nodes): Use
11718 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
11720 * tree-inline.c (copy_bb): Check address_taken flag.
11721 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
11722 externally_visible flag.
11724 2010-05-12 Jason Merrill <jason@redhat.com>
11728 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
11729 * sdbout.c (plain_type_1): Likewise.
11730 * dwarf2out.c (is_base_type): Likewise.
11731 (gen_type_die_with_usage): Likewise. Generate
11732 DW_TAG_unspecified_type for any LANG_TYPE.
11734 2010-05-12 Jan Hubicka <jh@suse.cz>
11736 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
11738 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
11739 (cgraph_clone_edge): Update.
11740 (cgraph_node_remove_callees): Remove indirect calls too.
11741 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
11742 (cgraph_create_indirect_edge): Update prototype.
11743 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
11744 is_proper_for_analysis.
11745 (add_new_function, visited_nodes, function_insertion_hook_holder,
11746 get_local_reference_vars_info, mark_address_taken, mark_address,
11747 mark_load, mark_store, check_asm_memory_clobber, check_call,
11748 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
11749 (ipa_init): Do not initialize visited_nodes;
11750 function_insertion_hook_holder.
11751 (analyze_variable): Rewrite.
11752 (analyze_function): Rewrite.
11753 (copy_local_bitmap): Remove.
11754 (duplicate_node_dat): Do not duplicate local info.
11755 (generate_summary): Simplify to only walk cgraph.
11756 (write_node_summary_p, ipa_reference_write_summary,
11757 ipa_reference_read_summary): Remove.
11758 (propagate): Do not remove function insertion;
11760 (pass_ipa_reference): NULLify summary handling fields.
11761 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
11762 (input_edge): Input ecf_flags.
11763 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
11764 (update_indirect_edges_after_inlining): Ignore edges with unknown
11767 2010-05-12 Sriraman Tallam <tmsriram@google.com>
11769 * implicit-zee.c: New file.
11770 * tree-pass.h (pass_implicit_zee): Declare.
11771 * passes.c (init_optimization_passes): Add zee pass.
11772 * common.opt (fzee): New flag.
11773 * timevar.def (TV_ZEE): Define.
11774 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
11776 * Makefile.in (implicit-zee.o): Add new build file.
11778 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
11779 Nathan Froyd <froydnj@codesourcery.com>
11781 * c-common.c (sync_resolve_params): Remove write-only variable.
11783 2010-05-12 Anatoly Sokolov <aesok@post.ru>
11785 * target.h (struct gcc_target): Add mode_dependent_address_p field.
11786 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
11787 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
11788 * targhooks.c (default_mode_dependent_address_p): New function.
11789 * targhooks.h (default_mode_dependent_address_p): Declare function.
11790 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
11791 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
11792 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
11793 target hook. Change return type to bool.
11794 * recog.h (mode_dependent_address_p): Change return type to bool.
11796 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
11797 Nathan Froyd <froydnj@codesourcery.com>
11799 * tree-mudflap.c (build_function_type_0, build_function_type_1,
11800 build_function_type_2, build_function_type_3): Remove.
11801 (mudflap_init): Use build_function_type_list.
11803 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
11804 Nathan Froyd <froydnj@codesourcery.com>
11806 * coverage.c (build_fn_info_value): Call build_constructor instead of
11807 build_constructor_from_list.
11808 (build_ctr_info_value): Likewise.
11809 (build_gcov_info): Likewise.
11811 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
11813 * tree.c (build_constructor): Compute TREE_CONSTANT for the
11814 resultant constructor.
11815 (build_constructor_single): Don't set TREE_CONSTANT.
11816 (build_constructor_from_list): Don't compute TREE_CONSTANT.
11818 2010-05-12 Jan Hubicka <jh@suse.cz>
11820 * cgraph.h (struct varpool_node): Add aux.
11821 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
11822 * varpool.c (varpool_remove_node): Do not remove initializer.
11823 (varpool_reset_queue): Export.
11824 (varpool_finalize_decl): Volatile vars are forced to be output.
11825 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
11827 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
11828 process_references, varpool_can_remove_if_no_refs): New functions.
11829 (cgraph_remove_unreachable_nodes): Handle variables too.
11831 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
11834 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
11836 2010-05-12 Jakub Jelinek <jakub@redhat.com>
11838 PR middle-end/44085
11839 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
11840 change value of ORT_TASK.
11841 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
11842 (omp_notice_threadprivate_variable): New function.
11843 (omp_notice_variable): Call it for threadprivate variables.
11844 If enclosing ctx is a task, print enclosing task rather than
11845 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
11846 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
11847 if task has untied clause.
11850 * dwarf2out.c (base_type_die): Don't add name attribute here.
11851 (modified_type_die): Instead of sizetype use
11852 its underlying original type. If a DW_TAG_base_type doesn't
11853 have name added, add __unknown__.
11854 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
11855 always call force_type_die instead.
11857 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
11859 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
11860 for __stack_chk_guard.
11862 2010-05-11 Jakub Jelinek <jakub@redhat.com>
11864 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
11865 don't call start_source_file debug hook here...
11866 (finish_options): ... but here, after outputting predefined and
11867 command line defines and undefs.
11869 PR middle-end/44071
11870 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
11872 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
11873 optimizing away empty bb with no successors, move over its
11874 footer chain to fallthru predecessor.
11875 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
11876 (rtl_split_edge): For asm goto call patch_jump_insn even if
11877 splitting fallthru edge.
11880 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
11881 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
11882 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
11883 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
11887 * c-parser.c (c_parser_expression): Mark LHS of a comma
11888 expression as read if it is a decl, handled component or
11889 COMPOUND_EXPR with that on the RHS.
11890 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
11891 if it is a decl or handled component.
11893 2010-05-11 Jan Hubicka <jh@suse.cz>
11895 * lto-symtab.c (lto_symtab_free): New function.
11896 * lto-streamer.h (lto_symtab_free): Declare.
11898 2010-05-11 Jan Hubicka <jh@suse.cz>
11900 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
11901 that if function is needed it is reachable.
11902 (lto_output_node): See if it the function is reachable or referenced.
11903 (output_cgraph): Update call of lto_output_node.
11904 * lto-streamer.h (reachable_from_other_partition_p): Declare.
11906 2010-05-11 Jan Hubicka <jh@suse.cz>
11908 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
11911 2010-05-11 Jan Hubicka <jh@suse.cz>
11913 PR tree-optimize/44063
11914 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
11916 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
11918 (estimate_function_body_sizes): Compute sizes even when disregarding.
11920 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
11922 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
11924 2010-05-11 Jan Hubicka <jh@suse.cz>
11926 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
11927 into every boundary.
11929 2010-05-11 Jan Hubicka <jh@suse.cz>
11931 * matrix-reorg.c (matrix_reorg): Rebuild edges.
11933 2010-05-11 Jan Hubicka <jh@suse.cz>
11935 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
11936 lto_streamer_cache_delete): Put nodes into heap.
11937 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
11940 2010-05-11 Jan Hubicka <jh@suse.cz>
11942 * cgraphbuild.c (cgraph_rebuild_references): New.
11943 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
11944 out extern inlines.
11945 * cgraph.h (cgraph_rebuild_references): Declare.
11946 * tree-inline.c (tree_function_versioning): Use it.
11947 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
11949 2010-05-11 Jan Hubicka <jh@suse.cz>
11951 * cgraph.c: Include ipa-utils.h
11952 (cgraph_create_virtual_clone): Update references.
11953 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
11955 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
11957 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
11958 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
11961 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
11963 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
11965 2010-05-11 Jakub Jelinek <jakub@redhat.com>
11967 * gcc.c (execute): For -### don't quote arguments that
11968 contain just alphanumerics and _/-. characters.
11969 * doc/invoke.texi: Document that change for -###.
11972 * df-problems.c (struct dead_debug): Add to_rescan field.
11973 (dead_debug_init): Clear to_rescan field.
11974 (dead_debug_finish): Rescan all debug insns in to_rescan
11975 bitmap and free the bitmap.
11976 (dead_debug_insert_before): Instead of rescanning debug insns
11977 immediately queue their rescanning until dead_debug_finish.
11978 (df_note_bb_compute): After dead_debug_add do continue instead
11981 2010-05-10 Jakub Jelinek <jakub@redhat.com>
11984 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
11985 clear also INSN_REG_USE_LIST.
11987 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11989 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
11991 2010-05-10 Jan Hubicka <jh@suse.cz>
11993 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
11996 2010-05-10 Jan Hubicka <jh@suse.cz>
11998 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
12000 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
12001 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
12002 (lto_streamer_cache_create): Init alloc pool.
12003 (lto_streamer_cache_delete): Free alloc pool.
12004 * lto-streamer.h: Include alloc pool.
12005 (lto_streamer_cache_d): Use alloc pool.
12006 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
12008 2010-05-10 Jan Hubicka <jh@suse.cz>
12010 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
12011 * cgraphbuild.c: Include except.h
12012 (record_type_list, record_eh_tables): New function.
12013 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
12015 2010-05-10 Jan Hubicka <jh@suse.cz>
12017 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
12018 __frame_dummy_init_array_entry, force_to_data): Attribute as used
12019 rather than unused.
12021 2010-05-10 Michael Matz <matz@suse.de>
12023 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
12024 (can_reassociate_p): Use FLOAT_TYPE_P.
12025 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
12026 (vect_force_simple_reduction): ... this.
12027 * tree-parloops.c (gather_scalar_reductions): Use
12028 vect_force_simple_reduction.
12029 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
12030 vect_is_simple_reduction, add modify argument, if true rewrite
12031 "a-b" into "a+(-b)".
12032 (vect_is_simple_reduction, vect_force_simple_reduction): New
12034 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
12036 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
12037 Vladimir Makarov <vmakarov@redhat.com>
12039 PR rtl-optimization/44012
12040 * ira-build.c (remove_unnecessary_allocnos): Nullify
12041 regno_allocno_map of the removed allocno.
12043 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12045 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
12047 * configure: Regenerate.
12049 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12051 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
12053 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
12054 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
12056 * configure: Regenerate.
12058 2010-05-10 Richard Guenther <rguenther@suse.de>
12060 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
12061 marked if the entry identifier is marked.
12063 2010-05-10 Richard Guenther <rguenther@suse.de>
12065 * c-common.c (struct c_common_attributes): Add fnspec attribute.
12066 (handle_fnspec_attribute): New function.
12067 * gimple.h (gimple_call_return_flags): Declare.
12068 (gimple_call_arg_flags): Likewise.
12069 * gimple.c (gimple_call_arg_flags): New function.
12070 (gimple_call_return_flags): Likewise.
12071 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
12072 New argument flags.
12073 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
12074 return value flags.
12075 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
12076 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
12078 (make_heapvar_for): ... this new function.
12079 (handle_rhs_call): Handle fnspec attribute argument specifiers.
12080 (handle_lhs_call): Likewise.
12081 (find_func_aliases): Adjust.
12083 2010-05-10 Richard Guenther <rguenther@suse.de>
12085 PR tree-optimization/44050
12086 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
12088 2010-05-10 Wei Guozhi <carrot@google.com>
12091 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
12093 2010-05-09 Joseph Myers <joseph@codesourcery.com>
12096 * c-typeck.c (lookup_field): Take a type directly. Update
12098 (build_component_ref): Update call to lookup_field.
12099 (set_init_label): Use lookup_field to find initialized field.
12100 Handle returned list of fields like a sequence of designators.
12102 2010-05-09 Richard Guenther <rguenther@suse.de>
12104 PR middle-end/44024
12105 * fold-const.c (tree_single_nonzero_warnv_p): Properly
12106 handle &FUNCTION_DECL.
12108 2010-05-09 Joseph Myers <joseph@codesourcery.com>
12111 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
12112 structures and unions recursively.
12113 (detect_field_duplicates): Move duplicate detection with a hash to
12114 detect_field_duplicates_hash. Always use a hash if anonymous
12115 structures or unions are present.
12116 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
12119 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
12122 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
12123 detect Atom, Core 2 and Core i7.
12125 2010-05-09 Richard Guenther <rguenther@suse.de>
12127 * gcc.c (store_arg): Handle temporary file deletion for
12130 2010-05-09 Richard Guenther <rguenther@suse.de>
12132 PR middle-end/44043
12133 * ipa-inline.c (estimate_function_body_sizes): Return after
12134 disregarding inline limits.
12136 2010-05-09 Richard Guenther <rguenther@suse.de>
12138 * gcc.c (store_arg): Revert last change.
12140 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
12142 PR middle-end/28685
12143 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
12144 (optimize_ops_list): Call it.
12146 2010-05-08 Richard Guenther <rguenther@suse.de>
12148 PR tree-optimization/44030
12149 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
12150 NECESSARY flag if we propagate from a inserted expression.
12152 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
12154 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
12155 domain types as equal if they are both PLACEHOLDER_EXPRs.
12157 2010-05-08 Richard Guenther <rguenther@suse.de>
12159 * lto-wrapper.c (run_gcc): Remove linker output from
12160 command line for LTRANS invocation.
12162 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
12164 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
12165 lto-macho as lto_binary_reader.
12166 * target.h (struct gcc_target): New hooks lto_start and lto_end.
12167 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
12168 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
12169 in lto_start and lto_end calls.
12170 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
12172 (scan_prog_file): Update is_elf_or_coff call.
12173 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
12175 * collect2.c (main): Fix enum comparison.
12177 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
12179 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
12180 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
12181 and TARGET_ASM_LTO_END.
12182 * darwin.c: Include obstack.h and lto-streamer.h.
12183 (lto_section_names_offset, lto_section_names_obstack,
12184 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
12186 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
12187 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
12188 to a temporary file.
12189 (darwin_asm_lto_end): New function. Restore asm_out_file.
12190 (darwin_asm_named_section): For LTO sections, replace the name with
12191 the offset of the section name in a string table, and build this
12193 (darwin_file_start): Initialize global vars for LTO support.
12194 (darwin_file_end): If output to asm_out_file was redirected, append it
12195 to the proper asm_out_file here. Add the section names section.
12197 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
12199 * c-pragma.c (pending_weak_d, pending_weak): New.
12200 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
12201 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
12202 handle_pragma_weak): Update the uses of pending_weaks.
12204 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12206 PR documentation/44016
12207 * doc/standards.texi (Standards): Link to unversioned
12208 cxx0x_status.html page.
12210 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
12213 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
12214 in addition to TREE_USED, to avoid "set but unused" warnings.
12216 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
12218 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
12219 (is_loop_prefetching_profitable): Do not insert prefetches
12220 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
12221 times the prefetch ahead distance.
12223 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
12225 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
12226 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
12227 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
12230 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
12232 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
12233 a diagnostic info when the insn-to-mem ratio is too small.
12235 2010-05-07 Richard Guenther <rguenther@suse.de>
12237 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
12239 (store_arg): Queue temp_filename for deletion instead of
12240 the whole argument.
12242 2010-05-07 Richard Guenther <rguenther@suse.de>
12244 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
12245 (run_gcc): Handle LTRANS phase invocation.
12246 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
12248 2010-05-07 Jakub Jelinek <jakub@redhat.com>
12250 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
12251 this is also meaningful on PARM_DECLs and RESULT_DECLs.
12253 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12255 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
12257 2010-05-07 Richard Guenther <rguenther@suse.de>
12259 PR tree-optimization/44020
12260 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
12261 code when PRE is not yet initialized.
12263 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12265 * config/mips/dbxmdebug.h: Remove.
12266 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
12268 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
12270 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
12271 with null pointer and also warn about ordered comparison of zero with
12272 pointer if -Wextra.
12274 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
12276 * graphite-blocking.c
12277 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
12278 * graphite-clast-to-gimple.c
12279 (clast_to_gcc_expression): Same.
12280 (precision_for_value): Same.
12281 (precision_for_interval): Same.
12282 (gcc_type_for_interval): Same.
12283 (graphite_create_new_guard): Same.
12284 (compute_bounds_for_level): Same.
12285 (graphite_create_new_loop_guard): Same.
12286 * graphite-interchange.c
12287 (build_linearized_memory_access): Same.
12288 (pdr_stride_in_loop): Same.
12289 (memory_strides_in_loop_1): Same.
12290 (memory_strides_in_loop): Same.
12291 (extend_scattering): Same.
12292 (psct_scattering_dim_for_loop_depth): Same.
12293 (pbb_number_of_iterations): Same.
12295 (debug_iteration_domains): Same.
12297 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
12298 (ppl_set_inhomogeneous_gmp): Same.
12299 (ppl_strip_loop): Same.
12300 (ppl_lexico_compare_linear_expressions): Same.
12301 (ppl_read_polyhedron_matrix): Same.
12302 (ppl_max_for_le_pointset): Same.
12304 (ppl_read_polyhedron_matrix): Same.
12305 (tree_int_to_gmp): Same.
12306 (gmp_cst_to_tree): Same.
12307 (ppl_set_inhomogeneous): Same.
12308 (ppl_set_inhomogeneous_tree): Same.
12309 (ppl_set_coef): Same.
12310 (ppl_set_coef_tree): Same.
12311 * graphite-sese-to-poly.c
12312 (build_pbb_scattering_polyhedrons): Same.
12313 (build_scop_scattering): Same.
12314 (scan_tree_for_params_right_scev): Same.
12315 (scan_tree_for_params): Same.
12316 (find_params_in_bb): Same.
12317 (find_scop_parameters): Same.
12318 (add_upper_bounds_from_estimated_nit): Same.
12319 (build_loop_iteration_domains): Same.
12320 (add_condition_to_domain): Same.
12321 (pdr_add_memory_accesses): Same.
12323 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
12325 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
12326 CLooG's value_* macros to their respective mpz_* counterparts.
12327 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
12328 (graphite_create_new_loop_guard): Same.
12329 * graphite-interchange.c (build_linearized_memory_access): Same.
12330 (pdr_stride_in_loop): Same.
12331 (memory_strides_in_loop_1): Same.
12332 (1st_interchange_profitable_p): Same.
12333 * graphite-poly.c (extend_scattering): Same.
12334 (psct_scattering_dim_for_loop_depth): Same.
12335 (pbb_number_of_iterations): Same.
12336 (pbb_number_of_iterations_at_time): Same.
12337 * graphite-poly.h (new_1st_loop): Same.
12338 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
12339 (oppose_constraint): Same.
12340 (insert_constraint_into_matrix): Same.
12341 (ppl_set_inhomogeneous_gmp): Same.
12342 (ppl_set_coef_gmp): Same.
12343 (ppl_strip_loop): Same.
12344 (ppl_lexico_compare_linear_expressions): Same.
12345 (ppl_max_for_le_pointset): Same.
12346 (ppl_min_for_le_pointset): Same.
12347 (ppl_build_realtion): Same.
12348 * graphite-ppl.h (gmp_cst_to_tree): Same.
12349 (ppl_set_inhomogeneous): Same.
12350 (ppl_set_inhomogeneous_tree): Same.
12351 (ppl_set_coef): Same.
12352 (ppl_set_coef_tree): Same.
12353 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
12354 (build_scop_scattering): Same.
12355 (add_value_to_dim): Same.
12356 (scan_tree_for_params_right_scev): Same.
12357 (scan_tree_for_params_int): Same.
12358 (scan_tree_for_params): Same.
12359 (find_params_in_bb): Same.
12360 (find_scop_parameters): Same.
12361 (add_upper_bounds_from_estimated_nit): Same.
12362 (build_loop_iteration_domains): Same.
12363 (create_linear_expr_from_tree): Same.
12364 (add_condition_to_domain): Same.
12365 (pdr_add_memory_accesses): Same.
12367 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
12368 Jason Merrill <jason@redhat.com>
12370 * c-common.c (c_common_reswords): Add nullptr.
12371 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
12372 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
12373 (gen_type_die_with_usage): Likewise.
12374 * dbxout.c (dbxout_type): Likewise.
12375 * sdbout.c (plain_type_1): Likewise.
12377 2010-05-06 Jason Merrill <jason@redhat.com>
12379 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
12380 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
12382 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
12384 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
12385 stripping WITH_SIZE_EXPR.
12386 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
12389 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12391 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
12392 list of obsolete configurations.
12393 Disabled check for obsolete configurations.
12394 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
12395 Removed support for previous versions.
12396 * config/mips/iris.h: Removed.
12397 * config/mips/iris5.h: Removed.
12398 * config/mips/iris6.h: Merged old iris.h contents.
12399 (TARGET_IRIX): Removed.
12400 (DRIVER_SELF_SPECS): Removed mabi=32.
12401 (IDENT_ASM_OP): Removed undef.
12402 (STARTFILE_SPEC): Removed mabi=32.
12403 (ENDFILE_SPEC): Likewise.
12404 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
12405 (MACHINE_TYPE): Update for IRIX 6.5.
12406 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
12407 TARGET_IRIX by TARGET_IRIX6.
12408 (mips_file_start): Likewise.
12409 (mips_output_external): Remove IRIX 5/6 O32 support.
12410 (mips_output_function_prologue): Likewise.
12411 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
12413 (TARGET_CPU_CPP_BUILTINS): Likewise.
12414 (TARGET_IRIX): Removed.
12415 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
12416 (MULTILIB_DIRNAMES): Removed 32.
12417 (MULTILIB_OSDIRNAMES): Removed ../lib.
12418 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
12419 (Specific, mips-sgi-irix5): Document removal.
12420 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
12421 Remove references to older IRIX 6 releases and the O32 ABI.
12423 2010-05-06 Jakub Jelinek <jakub@redhat.com>
12426 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
12427 instead of DF_REF_REAL_REG.
12429 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
12432 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
12433 handling to still return true for x64 targets.
12435 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
12437 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
12439 2010-05-06 Jan Hubicka <jh@suse.cz>
12441 PR tree-optimization/43791
12442 * ipa-inline.c (update_caller_keys): Remove bogus
12443 disregard_inline_limits check.
12445 2010-05-06 Michael Matz <matz@suse.de>
12447 PR tree-optimization/43984
12448 * tree-ssa-pre.c (inserted_phi_names): Remove.
12449 (inserted_exprs): Change to bitmap.
12450 (create_expression_by_pieces): Set bits, don't append to vector.
12451 (insert_into_preds_of_block): Don't handle inserted_phi_names.
12452 (eliminate): Don't look at inserted_phi_names, remove deleted
12453 insns from inserted_exprs.
12454 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
12455 (init_pre, fini_pre): Allocate and free bitmaps.
12456 (execute_pre): Insert insns on edges before elimination.
12458 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
12460 * tree.c (initializer_zerop): Handle STRING_CST.
12462 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
12465 * doc/invoke.texi (Wimplicit): Document as C only.
12466 * opts.c (common_handle_option): Add argument kind.
12467 (handle_option): Rename as read_cmdline_option. Factor out code to...
12468 (handle_option): ... here. New.
12469 (handle_options): Rename as read_cmdline_options.
12470 (decode_options): Update call.
12471 (set_option): Use option index instead of option pointer. Classify
12472 diagnostics correctly.
12473 (enable_warning_as_error): Call handle_option.
12474 * opts.h (set_option): Update declaration.
12475 (handle_option): Declare.
12476 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
12477 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
12478 * c-opts.c (set_Wimplicit): Delete.
12479 (c_family_lang_mask): New static constant.
12480 (c_common_handle_option): Add argument kind. Use handle_option
12481 instead of set_Wimplicit.
12482 (c_common_post_options): warn_implicit and warn_implicit_int
12483 are disabled by default.
12484 * c-common.c (warn_implicit): Do not define here.
12485 * c-common.h (warn_implicit): Do not declare here.
12486 (c_common_handle_option): Update declaration.
12487 * lto-opts.c (lto_reissue_options): Update call to set_option.
12489 2010-05-06 Richard Guenther <rguenther@suse.de>
12491 PR tree-optimization/43571
12492 * domwalk.c (walk_dominator_tree): Walk the dominator
12493 sons in more optimal order.
12495 2010-05-06 Richard Guenther <rguenther@suse.de>
12497 PR tree-optimization/43934
12498 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
12499 (stmt_cost): Likewise.
12500 (extract_true_false_args_from_phi): New helper.
12501 (determine_max_movement): For PHI nodes verify we can hoist them
12502 and compute their cost.
12503 (determine_invariantness_stmt): Handle PHI nodes.
12504 (move_computations_stmt): Likewise. Hoist PHI nodes in
12505 if-converted form using COND_EXPRs.
12506 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
12507 (tree_ssa_lim): Likewise.
12508 * tree-flow.h (tree_ssa_lim): Adjust prototype.
12509 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
12511 2010-05-06 Richard Guenther <rguenther@suse.de>
12513 PR tree-optimization/43987
12514 * tree-ssa-structalias.c (could_have_pointers): For possibly
12515 address-taken variables force pointers to be recorded.
12516 (create_variable_info_for_1): Likewise.
12517 (push_fields_onto_fieldstack): Pass in wheter all fields
12518 must have pointers.
12519 (find_func_aliases): Query types instead of vars whether
12520 they contain pointers where appropriate.
12522 2010-05-06 Jan Hubicka <jh@suse.cz>
12524 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
12525 (record_reference, mark_address, mark_load, mark_store): Record
12527 (record_references_in_initializer): Update call of record_references.
12528 (rebuild_cgraph_edges): Remove all references before rebuiding.
12529 * cgraph.c (cgraph_create_node): Clear ref list.
12530 (cgraph_remove_node): Remove references.
12531 (dump_cgraph_node): Dump references.
12532 (cgraph_clone_node): Clone references.
12533 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
12534 (struct cgraph_node, varpool_node): Add ref_lst.
12535 * ipa-ref.c: New file.
12536 * ipa-ref.h: New file.
12537 * ipa-ref-inline.h: New file.
12538 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
12539 (referenced_from_other_partition_p): New function.
12540 (lto_output_varpool_node): Take set arugment; call
12541 referenced_from_other_partition.
12542 (lto_output_ref): New.
12543 (add_references): New.
12544 (output_refs): New.
12545 (output_cgraph): Compute boundary based on references; output refs.
12546 (output_varpool): Accept cgraph_node_set argument.
12549 (input_cgraph): Call input_refs.
12550 * lto-section-in.c (lto_section_name): Add refs.
12551 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
12552 (ipa-ref.o): New file.
12553 * varpool.c (varpool_node): Clear ipa ref list.
12554 (varpool_remove_node): Remove references.
12555 (dump_varpool_node): Dump references.
12556 (varpool_assemble_decl): Only compile finalized ones.
12557 (varpool_extra_name_alias): Initialize ref list.
12558 * lto-streamer.c (lto-get_section_name): Add .refs section.
12559 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
12560 (referenced_from_other_partition_p): Declared.
12562 2010-05-06 Ira Rosen <irar@il.ibm.com>
12564 PR tree-optimization/43901
12565 * tree-vect-stmts.c (vectorizable_call): Assert that vector
12566 type is not NULL if it's transformation phase, and return
12567 FALSE if it's analysis.
12568 (vectorizable_conversion, vectorizable_operation,
12569 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
12571 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
12573 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
12575 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
12577 * config/mips/mips-protos.h
12578 (mips_small_register_classes_for_mode_p): Delete prototype.
12580 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
12582 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
12583 * config/arm/arm.c (multiple_operation_profitable_p,
12584 compute_offset_order): New static functions.
12585 (load_multiple_sequence, store_multiple_sequence): Use them.
12586 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
12587 memory offsets, not register numbers.
12588 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
12590 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
12592 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
12593 (get_pending_sizes, put_pending_size, put_pending_sizes):
12594 Update the uses of pending_sizes.
12595 * c-decl.c (store_parm_decls): Likewise.
12596 * c-tree.h (struct c_arg_info): Likewise.
12597 * tree.h: Update the prototype for get_pending_sizes and
12600 2010-05-05 Jason Merrill <jason@redhat.com>
12603 * c-common.c (handle_aligned_attribute): Respect
12604 ATTR_FLAG_TYPE_IN_PLACE.
12607 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
12608 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
12609 (TARGET_INITIALIZER): Use it.
12610 * c-common.c (attribute_takes_identifier_p): Call it.
12611 * c-common.h: Update prototype.
12612 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
12613 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
12615 2010-05-05 Jakub Jelinek <jakub@redhat.com>
12618 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
12619 DW_ID_down_case for Fortran compilation units.
12621 2010-05-05 Jan Hubicka <jh@suse.cz>
12623 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
12626 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
12628 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
12629 a variable-sized RESULT_DECL.
12631 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
12633 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
12635 2010-05-05 Jason Merrill <jason@redhat.com>
12638 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
12640 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
12642 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
12643 Jakub Jelinek <jakub@redhat.com>
12646 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
12647 (dead_debug_init, dead_debug_finish): New functions.
12648 (dead_debug_add, dead_debug_insert_before): Likewise.
12649 (df_note_bb_compute): Initialize a dead_debug object, add dead
12650 debug uses to it, insert debug bind insns before death insns,
12651 reset debug insns that refer to pending uses at the end.
12652 * rtl.h (make_debug_expr_from_rtl): New prototype.
12653 * varasm.c (make_debug_expr_from_rtl): New function.
12655 2010-05-05 Jan Hubicka <jh@suse.cz>
12657 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
12658 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
12659 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
12660 lto_varpool_encoder_deref, lto_varpool_encoder_size,
12661 lto_varpool_encoder_encode_initializer_p,
12662 lto_set_varpool_encoder_encode_initializer): New functions.
12663 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
12664 call output_varpool.
12665 (input_varpool_node): Do not always set analyzed.
12666 (input_cgraph_1): Return vector of cgraph nodes.
12667 (input_varpool_1): Return vector of varpools.
12668 (input_cgraph): Free the vectors.
12669 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12670 output only initializers needed.
12671 (lto_output): Only call output_cgraph.
12672 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
12673 * lto-section-out.c (lto_new_out_decl_state): Initialize
12674 state->varpool_node_encoder.
12675 * lto-streamer.h (lto_varpool_encoder_d): New.
12676 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
12677 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
12678 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
12679 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
12680 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
12682 (output_varpool, input_varpool): Remove declarations.
12684 2010-05-05 Jan Hubicka <jh@suse.cz>
12686 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
12687 with body can prevail.
12689 2010-05-05 Jan Hubicka <jh@suse.cz>
12691 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
12694 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12696 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
12698 * gengtype.h (erro_at_line): Constify pos argument.
12700 * gengtype.c: Include hashtab.h.
12701 (enum gc_used): Document GC_MAYBE_POINTED_TO.
12702 (error_at_line): Constify pos argument.
12703 (do_typedef): Initialize p->opt field.
12704 (get_file_gtfilename): Fix comment typo.
12705 (struct walk_type_data): Constify line field.
12706 (get_output_file_for_structure): New function.
12707 (write_local_func_for_structure): Constify orig_s argument.
12708 Use get_output_file_for_structure.
12709 (write_func_for_structure): Use get_output_file_for_structure.
12710 (INDENT): New define.
12711 (dump_pair, dump_type, dump_type_list, dump_typekind)
12712 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
12713 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
12715 (seen_types): New variable.
12716 (main): New variable do_dump. Process "-d" command line option.
12717 Call dump_everything if dump requested.
12719 2010-05-05 Jakub Jelinek <jakub@redhat.com>
12721 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
12722 in a temporary instead of invoking the macro multiple times.
12723 (track_expr_p): Likewise.
12725 2010-05-04 Neil Vachharajani <nvachhar@google.com>
12727 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
12729 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
12730 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
12731 conditions for printing notes.
12732 * common.opt (-Wcoverage-mismatch): Allow negative, default to
12733 true, update documentation.
12734 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
12736 2010-05-04 Jakub Jelinek <jakub@redhat.com>
12739 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
12742 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
12745 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
12746 (*sse_prologue_save_insn1): Likewise.
12747 (SSE prologue save splitter): Likewise.
12749 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
12751 * tree.c (free_lang_data_in_one_sizepos): New inline function.
12752 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
12753 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
12754 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
12755 all decls. Call it on DECL_FIELD_OFFSET of fields.
12756 (find_decls_types_r): Follow DECL_VALUE_EXPR.
12757 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
12759 2010-05-04 Martin Jambor <mjambor@suse.cz>
12761 * tree-sra.c (build_access_from_expr_1): The first parameter type
12762 changed to simple tree.
12763 (build_access_from_expr): Likewise, gsi parameter was eliminated.
12764 (scan_assign_result): Renamed to assignment_mod_result, enum elements
12766 (build_accesses_from_assign): Removed all parameters except for a
12767 simple gimple statement. Now returns a simple bool.
12768 (scan_function): All non-analysis parts moved to separate functions
12769 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
12770 parameters and updated both callers.
12771 (sra_modify_expr): Removed parameter data.
12772 (sra_modify_function_body): New function.
12773 (perform_intra_sra): Call sra_modify_function_body to modify the
12775 (replace_removed_params_ssa_names): Parameter data changed into
12776 adjustments vector.
12777 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
12778 changed the parameter dont_convert to convert with the opposite
12780 (sra_ipa_modify_assign): Parameter data changed into adjustments
12781 vector, return value changed to bool.
12782 (ipa_sra_modify_function_body): New function.
12783 (sra_ipa_reset_debug_stmts): Updated a comment.
12784 (modify_function): Use ipa_sra_modify_function_body to modify function
12787 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
12789 PR middle-end/43671
12790 * alias.c (true_dependence): Handle the same VALUE in x and mem.
12791 (canon_true_dependence): Likewise.
12792 (write_dependence_p): Likewise.
12794 2010-05-04 Jan Hubicka <jh@suse.cz>
12796 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
12797 * cgraphbuild.c: Include ipa-utils.h
12798 (record_reference_ctx): New struct.
12799 (record_reference): Simplify to work on initializers; not statements.
12800 (mark_address, mark_load, mark_store): New.
12801 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
12802 walk PHI nodes too.
12803 (record_references_in_initializer): Update use of record_reference.
12804 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
12805 walk PHI nodes too.
12807 2010-05-04 Jan Hubicka <jh@suse.cz>
12809 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
12810 node will be removed anyway.
12811 (lto_varpool_replace_node): Allow also unanalyzed nodes;
12812 relink aliases of node into prevailing node.
12813 * varpool.c (varpool_remove_node): Remove aliases properly;
12814 when removing node, remove all its aliases too; remove DECL_INITIAL
12815 of removed node; ggc_free the varpool node.
12817 2010-05-04 Richard Guenther <rguenther@suse.de>
12819 PR tree-optimization/43879
12820 * tree-ssa-structalias.c (alias_get_name): Use
12821 DECL_ASSEMBLER_NAME if available.
12822 (create_function_info_for): Return the varinfo node.
12823 (ipa_pta_execute): Associate same-body aliases and extra names
12824 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
12826 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
12828 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
12830 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
12833 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
12834 only if HONOR_REG_ALLOC_ORDER is not defined.
12836 2010-05-04 Richard Guenther <rguenther@suse.de>
12838 PR tree-optimization/43949
12839 * tree-vrp.c (extract_range_from_binary_expr): Only handle
12842 2010-04-26 Jason Merrill <jason@redhat.com>
12844 * c.opt (-fstrict-enums): New.
12845 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
12847 2010-05-03 David Ung <davidu@mips.com>
12848 James E. Wilson <wilson@codesourcery.com>
12850 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
12851 emit the trap instruction before the divide for TUNE_74K.
12853 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
12855 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
12856 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
12857 based on the above, for new target hook.
12859 * hooks.c (hook_bool_mode_true): New generic hook.
12860 * hooks.h (hook_bool_mode_true): Add prototype.
12862 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
12864 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
12865 target hook, set to hook_bool_mode_false.
12866 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
12867 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
12868 with targetm.small_register_classes_for_mode_p.
12869 (find_reusable_reload): Likewise.
12870 (combine_reloads): Likewise.
12871 * reload1.c (reload_as_needed): Likewise.
12872 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
12873 * ifcvt.c (noce_process_if_block, check_cond_move_block,
12874 dead_or_predicable): Likewise.
12875 * regmove.c (optimize_reg_copy_1): Likewise.
12876 * calls.c (prepare_call_address): Likewise.
12877 (precompute_register_parameters): Likewise.
12879 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
12881 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
12882 implementation of the hook that considers all register classes
12883 small except for SH64.
12884 (sh_override_options): Use the new hook.
12885 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
12888 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
12890 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
12891 implementation of the hook that considers all register classes
12893 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
12896 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
12898 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
12899 implementation of the hook that considers all register classes
12901 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
12904 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
12906 * config/m32c/m32c.h: Likewise.
12907 * config/pdp11/pdp11.h: Likewise.
12908 * config/avr/avr.h: Likewise.
12909 * config/xtensa/xtensa.h: Likewise.
12910 * config/m68hc11/m68hc11.h: Likewise.
12911 * config/mn10300/mn10300.h: Likewise.
12912 * config/mcore/mcore.h: Likewise.
12913 * config/h8300/h8300.h: Likewise.
12914 * config/bfin/bfin.h: Likewise.
12916 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
12917 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
12919 2010-05-03 Anatoly Sokolov <aesok@post.ru>
12921 * double-int.h (tree_to_double_int): Remove macro.
12922 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
12923 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
12924 (tree_to_double_int): New function.
12925 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
12927 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
12929 2010-05-03 Richard Guenther <rguenther@suse.de>
12931 PR tree-optimization/43971
12932 * tree-ssa-structalias.c (get_constraint_for_1): Fix
12933 constraints in the !flag_delete_null_pointer_checks case.
12935 2010-05-03 Jakub Jelinek <jakub@redhat.com>
12938 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
12939 result mode matches original rtl mode.
12941 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
12944 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
12946 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
12948 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
12949 when processing flag options.
12951 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
12953 * gcov-iov.c (main): Change format string placeholder
12954 from %#08x to 0x%08x.
12955 * genchecksum.c (dosum): Change format string placeholder
12956 from %#02x to 0x%02x.
12958 2010-05-02 Richard Guenther <rguenther@suse.de>
12960 PR tree-optimization/43879
12961 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
12963 2010-05-02 Bruno Haible <bruno@clisp.org>
12965 * doc/extend.texi (Function Attributes): Fix a typo.
12967 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
12970 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
12971 placeholder from 0x%x to %#x.
12972 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
12973 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
12974 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
12975 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
12976 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
12977 * config/i386/i386.c (ix86_target_string): Ditto.
12978 * config/i386/i386.c (output_pic_addr_const): Ditto.
12979 (print_operand): Ditto.
12981 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
12983 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
12984 placeholder from 0x%x to %#x.
12985 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
12986 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
12987 (ASM_OUTPUT_DEBUG_DATA): Ditto.
12988 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
12989 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
12990 * optc-gen.awk: Ditto.
12991 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
12992 (HOST_WIDE_INT_PRINT_HEX): Ditto.
12993 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
12994 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
12996 2010-05-01 Anatoly Sokolov <aesok@post.ru>
12998 * target.h (struct calls): Add function_value_regno_p field.
12999 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
13000 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
13001 * targhooks.c (default_function_value_regno_p): New function.
13002 * targhooks.h (default_function_value_regno_p): Declare function.
13003 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
13004 * builtins.c. (apply_result_size): (Ditto.).
13005 * combine.c. (likely_spilled_retval_p): (Ditto.).
13006 * mode-switching.c. Include 'target.h'.
13007 (create_pre_exit): Use function_value_regno_p hook.
13008 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
13009 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
13010 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
13012 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
13013 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
13014 (ix86_function_value_regno_p): Declare as static, change argument
13015 type to const unsigned int.
13016 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
13018 2010-05-01 Richard Guenther <rguenther@suse.de>
13020 PR tree-optimization/43949
13021 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
13023 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
13025 2010-05-01 Anatoly Sokolov <aesok@post.ru>
13027 * rtl.h (CONST_DOUBLE_P): Define.
13028 (rtx_to_double_int): Declare.
13029 * emit-rtl.c (rtx_to_double_int): New function.
13030 * dwarf2out.c (insert_double): New function.
13031 (loc_descriptor, add_const_value_attribute): Clean up, use
13032 rtx_to_double_int and insert_double functions.
13034 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
13036 * doc/extend.texi (Inline): Add missing return keyword to examples.
13037 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
13040 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
13042 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
13043 the variable part of the offset as well. Use highest_pow2_factor for
13044 all alignment checks.
13046 2010-04-30 Richard Guenther <rguenther@suse.de>
13048 PR tree-optimization/43879
13049 * tree-ssa-structalias.c (type_could_have_pointers): Functions
13052 2010-04-30 Jan Hubicka <jh@suse.cz>
13054 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
13056 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
13058 2010-04-30 Jan Hubicka <jh@suse.cz>
13060 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
13062 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
13063 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
13064 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
13065 cgraph_node_set_needs_ltrans_p): Remove.
13067 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
13069 * sdbout.c: Include vec.h, do not include varray.h.
13070 (deferred_global_decls, sdbout_global_decl,
13071 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
13072 * toplev.c: Do not include varray.h.
13073 (dump_memory_report): Do not dump VARRAY statistics.
13074 * gengtype.c (open_base_file): Ignore varray.h.
13075 * Makefile.in: Update for abovementioned changes.
13076 Remove all traces of varray.c and varray.h.
13077 * varray.c: Remove file.
13078 * varray.h: Remove file.
13080 2010-04-30 Jan Hubicka <jh@suse.cz>
13082 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
13085 2010-04-30 Jan Hubicka <jh@suse.cz>
13087 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
13090 2010-04-30 Richard Guenther <rguenther@suse.de>
13092 * tree-ssa-structalias.c (get_constraint_for_1): Generate
13093 constraints for CONSTRUCTOR.
13095 2010-04-30 Richard Guenther <rguenther@suse.de>
13098 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
13099 first after all lowering passes.
13101 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
13103 * toplev.c: Include varray.h for statistics dumping.
13104 * tree.h: Do not declare varray_head_tag.
13105 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
13106 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
13107 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
13108 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
13109 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
13110 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
13111 c-common.c, c-common.h, reg-stack.c, basic-block.h,
13112 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
13114 * Makefile.in: Update for abovementioned changes.
13116 2010-04-30 Jakub Jelinek <jakub@redhat.com>
13119 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
13121 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
13123 * config/picochip/picochip.c (picochip_legitimize_address): Define.
13124 Use this function to do machine-specific conversion.
13125 (picochip_legitimize_reload_address): Likewise.
13126 (picochip_legitimate_address_p): Check valid base register only if
13128 (picochip_check_conditional_copy): Check for modw only if opnd is
13130 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
13131 to call the function in c.
13132 * config/picochip/picochip-protos.h
13133 (picochip_legitimize_reload_address): Define.
13134 * config/picochip/picochip.md (supported_compare1): Define.
13136 2010-04-30 Jan Hubicka <jh@suse.cz>
13138 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
13139 (cgraph_global_info): Remove inlined.
13140 (LTO_cgraph_tag_names): Remove.
13141 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
13142 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
13143 simplify cgraph tags and document.
13144 (lto_output_node): Use only LTO_cgraph_unavail_node and
13145 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
13146 for_functions_valid, global info, process and output flags.
13147 (input_overwrite_node): Initialize estimated stack size and
13148 estimated growth. Do not read flags we no longer store.
13149 (input_node): Likewise do not read info no longer stored.
13150 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
13153 2010-04-30 Richard Guenther <rguenther@suse.de>
13155 PR tree-optimization/43879
13156 * tree-ssa-structalias.c (get_constraint_for_1): Properly
13157 handle non-zero initializers.
13159 2010-04-30 Richard Guenther <rguenther@suse.de>
13161 * builtins.c (fold_builtin_1): Delete free (0).
13163 2010-04-29 Jan Hubicka <jh@suse.cz>
13165 * gengtype.c (open_base_files): Add lto-streamer.h
13166 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
13167 (pass_ipa_cp): GGC collect.
13168 * toplev. (compile_file): Do not output symbols.
13169 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
13170 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
13171 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
13172 * lto-section-in.c: Include ggc.h
13173 (lto_new_in_decl_state): Alloc in GGC.
13174 (lto_delete_in_decl_state): Likewise.
13175 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
13178 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
13181 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
13182 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
13183 (HONOR_REG_ALLOC_ORDER): Describe new macro.
13184 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
13185 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
13186 account only if HONOR_REG_ALLOC_ORDER is not defined.
13187 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
13188 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
13190 2010-04-29 Jon Grant <04@jguk.org>
13192 * collect2.c (vflag): Change type from int to bool.
13194 (helpflag): New global bool.
13195 (main): Set vflag and debug with boolean, not integer truth values.
13196 Accept new "--help" option and output usage text if found.
13197 * collect2.h (vflag): Update prototype.
13200 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
13203 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
13205 2010-04-29 Richard Guenther <rguenther@suse.de>
13208 * plugin.h (invoke_plugin_callbacks): Annotate arguments
13209 with ATTRIBUTE_UNUSED.
13211 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
13214 * config/i386/i386.c (get_some_local_dynamic_name): Replace
13215 INSN_P with NONDEBUG_INSN_P.
13216 (distance_non_agu_define): Likewise.
13217 (distance_agu_use): Likewise.
13219 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
13221 From Dominique d'Humieres <dominiq@lps.ens.fr>
13223 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
13226 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
13228 * plugin.h (invoke_plugin_callbacks): New inline function.
13229 * plugin.c (flag_plugin_added): New global flag.
13230 (add_new_plugin): Initialize above flag.
13231 (invoke_plugin_callbacks): Rename to ...
13232 (invoke_plugin_callbacks_full): ... this.
13234 2010-04-28 Jan Hubicka <jh@suse.cz>
13236 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
13237 (lto_varpool_replace_node): New.
13238 (lto_symtab_resolve_symbols): Resolve varpool nodes.
13239 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
13240 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
13241 * cgraph.h (varpool_node_ptr): New type.
13242 (varpool_node_ptr): New vector.
13243 (varpool_node_set_def): New structure.
13244 (varpool_node_set): New type.
13245 (varpool_node_set): New vector.
13246 (varpool_node_set_element_def): New structure.
13247 (varpool_node_set_element, const_varpool_node_set_element): New types.
13248 (varpool_node_set_iterator): New type.
13249 (varpool_node): Add prev pointers, add used_from_other_partition,
13250 in_other_partition.
13251 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
13252 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
13253 varpool_get_node, varpool_remove_node): Declare.
13254 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
13255 varpool_node_set_size): New inlines.
13256 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
13257 * tree-pass.h (varpool_node_set_def): Forward declare.
13258 (ipa_opt_pass_d): Summary writting takes vnode sets too.
13259 (ipa_write_optimization_summaries): Update prototype.
13260 * ipa-cp.c (ipcp_write_summary): Update.
13261 * ipa-reference.c (ipa_reference_write_summary): Update.
13262 * lto-cgraph.c (lto_output_varpool_node): New static function.
13263 (output_varpool): New function.
13264 (input_varpool_node): New static function.
13265 (input_varpool_1): New function.
13266 (input_cgraph): Input varpool.
13267 * ipa-pure-const.c (pure_const_write_summary): Update.
13268 * lto-streamer-out.c (lto_output): Update, output varpool too.
13269 (write_global_stream): Kill WPA hack.
13270 (produce_asm_for_decls): Update.
13271 (output_alias_pair_p): Handle variables.
13272 (output_unreferenced_globals): Output only needed partition of varpool.
13273 * ipa-inline.c (inline_write_summary): Update.
13274 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
13276 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
13277 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
13278 varpool_node_set_new, varpool_node_set_add,
13279 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
13280 debug_varpool_node_set): New functions.
13281 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
13282 (execute_one_pass): Process new decls too.
13283 (ipa_write_summaries_2): Pass around vsets.
13284 (ipa_write_summaries_1): Likewise.
13285 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
13287 (ipa_write_optimization_summaries_1): Pass around vsets.
13288 (ipa_write_optimization_summaries): Likewise.
13289 * varpool.c (varpool_get_node): New.
13290 (varpool_node): Update doubly linked lists.
13291 (varpool_remove_node): New.
13292 (dump_varpool_node): More dumping.
13293 (varpool_enqueue_needed_node): Update doubly linked lists.
13294 (decide_is_variable_needed): Kill ltrans hack.
13295 (varpool_finalize_decl): Kill lto hack.
13296 (varpool_assemble_decl): Skip decls in other partitions.
13297 (varpool_assemble_pending_decls): Update doubly linkes lists.
13298 (varpool_empty_needed_queue): Likewise.
13299 (varpool_extra_name_alias): Likewise.
13300 * lto-streamer.c (lto_get_section_name): Add vars section.
13301 * lto-streamer.h (lto_section_type): Update.
13302 (output_varpool, input_varpool): Declare.
13304 2010-04-28 Mike Stump <mikestump@comcast.net>
13306 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
13308 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
13310 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
13311 record or union type with RECORD_OR_UNION_TYPE_P predicate.
13312 (lto_input_ts_type_tree_pointers): Likewise.
13313 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
13314 (lto_output_ts_type_tree_pointers): Likewise.
13316 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
13318 Uniquization of constants at the Tree level
13319 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
13320 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
13322 (tree_output_constant_def): Declare.
13323 * gimplify.c (gimplify_init_constructor): When using block copy, first
13324 uniquize the constant constructor on the RHS.
13325 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
13326 DECL_IN_CONSTANT_POOL flag.
13327 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
13328 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
13330 (assemble_variable): Deal with symbols belonging to the tree constant
13332 (get_constant_section): Add ALIGN parameter and simplify.
13333 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
13334 (assemble_constant_contents): Use the expression of the VAR_DECL.
13335 (output_constant_def_contents): Use the alignment of the VAR_DECL.
13336 (tree_output_constant_def): New global function.
13337 (mark_constant): Use the expression of the VAR_DECL.
13338 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
13340 (output_object_block): Likewise and assemble the expression.
13342 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
13344 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
13345 hash_tree, eq_tree): New tree hash table.
13346 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
13347 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
13348 lto_orig_address_remove): Reimplement.
13350 2010-04-28 Xinliang David Li <davidxl@google.com>
13353 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
13354 (compute_uninit_opnds_pos): New function.
13355 (is_non_loop_exit_postdominating): New function.
13356 (compute_control_dep_chain): New function.
13357 (find_pdom): New function.
13358 (convert_control_dep_chain_into_preds): New function.
13359 (find_predicates): New function.
13360 (find_control_equiv_block): New function.
13361 (collect_phi_def_edges): New function.
13362 (find_def_preds): New function.
13363 (find_dom): New function.
13364 (dump_predicates): New function.
13365 (get_cmp_code): New function.
13366 (is_value_included_in): New function.
13367 (find_matching_predicate_in_rest_chains): New function.
13368 (use_pred_not_overlap_with_undef_path_pred): New function.
13369 (is_use_properly_guarded): New function.
13370 (normalize_cond_1): New function.
13371 (is_and_or_or): New function.
13372 (normalize_cond): New function.
13373 (is_gcond_subset_of): New function.
13374 (is_subset_of_any): New function.
13375 (is_or_set_subset_of): New function.
13376 (is_and_set_subset_of): New function.
13377 (is_norm_cond_subset_of): New function.
13378 (is_pred_expr_subset_of): New function.
13379 (is_pred_chain_subset_of): New function.
13380 (is_included_in): New function.
13381 (is_superset_of): New function.
13382 (find_uninit_use): New function.
13383 (warn_uninitialized_phi): New function.
13384 (compute_possibly_undefined_names): New function.
13385 (ssa_undefined_value_p): New function.
13386 (execute_late_warn_uninitialized): New function.
13387 * tree-ssa.c (ssa_undefined_value_p): Removed.
13388 (warn_uninit): Changed to extern.
13389 (warn_uninitialized_phi): Removed.
13390 (warn_uninitialized_vars): Changed to extern.
13391 (execute_late_warn_uninitialized): Removed
13392 * tree-flow.h: Add new prototypes.
13393 * timevar.def: Add new time variable.
13394 * Makefile.in: Add new build file.
13396 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
13398 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
13401 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13404 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
13406 2010-04-28 Martin Jambor <mjambor@suse.cz>
13408 * cgraph.h (struct cgraph_node): New field indirect_calls.
13409 (struct cgraph_indirect_call_info): New type.
13410 (struct cgraph_edge): Removed field indirect_call. New fields
13411 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
13412 (cgraph_create_indirect_edge): Declare.
13413 (cgraph_make_edge_direct): Likewise.
13414 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
13415 * ipa-prop.h (struct ipa_param_call_note): Removed.
13416 (struct ipa_node_params): Removed field param_calls.
13417 (ipa_create_all_structures_for_iinln): Declare.
13418 * cgraph.c: Described indirect edges and uids in initial comment.
13419 (cgraph_add_edge_to_call_site_hash): New function.
13420 (cgraph_edge): Search also among the indirect edges, use
13421 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
13422 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
13423 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
13425 (initialize_inline_failed): Assign a reason to indirect edges.
13426 (cgraph_create_edge_1): New function.
13427 (cgraph_create_edge): Moved some functionality to
13428 cgraph_create_edge_1.
13429 (cgraph_create_indirect_edge): New function.
13430 (cgraph_edge_remove_callee): Add an assert checking for
13432 (cgraph_edge_remove_caller): Special-case indirect edges.
13433 (cgraph_remove_edge): Likewise.
13434 (cgraph_set_edge_callee): New function.
13435 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
13436 (cgraph_make_edge_direct): New function.
13437 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
13438 the declaration of the call statement matches.
13439 (cgraph_node_remove_callees): Special-case indirect edges.
13440 (cgraph_clone_edge): Likewise.
13441 (cgraph_clone_node): Clone also the indirect edges.
13442 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
13443 indirect_call, dump count of indirect_calls edges.
13444 * ipa-prop.c (iinlining_processed_edges): New variable.
13445 (ipa_note_param_call): Create indirect edges instead of
13446 creating notes. New parameter node.
13447 (ipa_analyze_call_uses): New parameter node, pass it on to
13448 ipa_note_param_call.
13449 (ipa_analyze_stmt_uses): Likewise.
13450 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
13451 (print_edge_addition_message): Work on edges rather than on notes.
13452 (update_call_notes_after_inlining): Likewise, renamed to
13453 update_indirect_edges_after_inlining.
13454 (ipa_create_all_structures_for_iinln): New function.
13455 (ipa_free_node_params_substructures): Do not free notes.
13456 (ipa_edge_duplication_hook): Propagate bits within
13457 iinlining_processed_edges bitmap.
13458 (ipa_node_duplication_hook): Do not duplicate notes.
13459 (free_all_ipa_structures_after_ipa_cp): Renamed to
13460 ipa_free_all_structures_after_ipa_cp.
13461 (free_all_ipa_structures_after_iinln): Renamed to
13462 ipa_free_all_structures_after_iinln.
13463 (ipa_write_param_call_note): Removed.
13464 (ipa_read_param_call_note): Removed.
13465 (ipa_write_indirect_edge_info): New function.
13466 (ipa_read_indirect_edge_info): Likewise.
13467 (ipa_write_node_info): Do not stream notes, do stream information
13469 (ipa_read_node_info): Likewise.
13470 (lto_ipa_fixup_call_notes): Removed.
13471 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
13472 * ipa-inline.c (pass_ipa_inline): Likewise.
13473 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
13474 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
13475 * tree-inline.c (copy_bb): Removed an unnecessary double check for
13477 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
13479 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
13480 (output_cgraph): Stream also indirect edges.
13481 (lto_output_edge): Added capability to stream indirect edges.
13482 (input_edge): Likewise.
13483 (input_cgraph_1): Likewise.
13484 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
13487 2010-04-28 Richard Guenther <rguenther@suse.de>
13489 PR tree-optimization/43879
13490 PR tree-optimization/43909
13491 * tree-ssa-structalias.c (struct variable_info): Add
13492 only_restrict_pointers flag.
13493 (new_var_info): Initialize it. Increment stats.total_vars here.
13494 (create_function_info_for): Do not increment stats.total_vars here.
13495 (get_function_part_constraint): Fix build with C++.
13496 (insert_into_field_list): Remove.
13497 (push_fields_onto_fieldstack): Properly merge fields.
13498 (create_variable_info_for): Split and simplify.
13499 (create_variable_info_for_1): New piece.
13500 (intra_create_variable_infos): Properly make restrict constraints
13503 2010-04-28 Richard Guenther <rguenther@suse.de>
13506 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
13508 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
13509 Jan Hubicka <hubicka@ucw.cz>
13511 * doc/invoke.texi (-Wsuggest-attribute=const,
13512 -Wsuggest-attribute=pure): Document.
13513 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
13514 (function_always_visible_to_compiler_p,
13515 suggest_attribute, warn_function_pure, warn_function_const):
13517 (check_call): Improve debug info.
13518 (analyze_function): Do not check availability.
13519 (add_new_function): Check availability.
13520 (propagate): Output warnings.
13521 (skip_function_for_local_pure_const): New function.
13522 (local_pure_const): Use it; output warnings.
13523 * common.opt (Wsuggest-attribute=const,
13524 Wsuggest-attribute=pure): New.
13526 2010-04-27 Jakub Jelinek <jakub@redhat.com>
13528 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
13529 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
13530 or DW_CFA_def_cfa_offset{,_sf}.
13532 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
13534 * tree.h: Fix truncated long macros.
13536 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
13538 * collect2.c (TARGET_64BIT): Redefine to target's default.
13539 * tlink.c: Likewise.
13540 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
13541 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
13542 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
13543 for underscoring __USER_LABEL_PREFIX__.
13544 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
13545 (SUB_LINK_ENTRY32): New.
13546 (SUB_LINK_ENTRY64): New.
13547 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
13548 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
13549 (SUB_LINK_ENTRY64): New.
13550 (SUB_LINK_ENTRY): New.
13551 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
13552 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
13553 x64 target is choosen.
13554 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
13555 * configure: Regenerated.
13556 * configure.ac (leading-mingw64-underscores): Option added.
13558 2010-04-27 Jan Hubicka <jh@suse.cz>
13560 * doc/invoke.texi (-fipa-profile): Document.
13561 * opts.c (decode_options): Enable ipa-profile at -O1.
13562 * timevar.def (TV_IPA_PROFILE): Define.
13563 * common.opt (fipa-profile): Add.
13564 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
13566 (cgraph_propagate_frequency): Handle only local ones.
13567 * tree-pass.h (pass_ipa_profile): Declare.
13568 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
13569 (pass_ipa_profile): Use TV_IPA_PROFILE.
13570 * ipa.c (ipa_profile): New function.
13571 (gate_ipa_profile): Likewise.
13572 (pass_ipa_profile): New global variable.
13573 * passes.c (pass_ipa_profile): New.
13575 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
13577 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
13579 2010-04-27 Martin Jambor <mjambor@suse.cz>
13581 PR middle-end/43812
13582 * ipa.c (dissolve_same_comdat_group_list): New function.
13583 (function_and_variable_visibility): Call
13584 dissolve_same_comdat_group_list when comdat group contains external or
13586 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
13587 lists are circular and that they contain only DECL_ONE_ONLY nodes.
13589 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
13591 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
13592 (const_hash_1) <VECTOR_CST>: New case.
13593 (compare_constant) <VECTOR_CST>: Likewise.
13594 <ADDR_EXPR>: Deal with LABEL_REFs.
13595 (copy_constant) <VECTOR_CST>: New case.
13597 2010-04-27 Jan Hubicka <jh@suse.cz>
13599 * cgraph.c (cgraph_propagate_frequency): New function.
13600 * cgraph.h (cgraph_propagate_frequency): Declare.
13601 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
13602 cgraph_propagate_frequency.
13604 2010-04-27 Jakub Jelinek <jakub@redhat.com>
13606 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
13608 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
13611 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
13612 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
13613 here to determine which regs to push and how much stack to reserve.
13615 2010-04-27 Jie Zhang <jie@codesourcery.com>
13617 * doc/gimple.texi (gimple_statement_with_ops): Remove
13618 addresses_taken field.
13619 (gimple_statement_with_memory_ops): Likewise.
13621 2010-04-27 Jan Hubicka <jh@suse.cz>
13623 * tree-inline.c (eni_inlining_weights): Remove.
13624 (estimate_num_insns): Special case more builtins.
13626 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
13629 * c-typeck.c (build_binary_op): Move forward check for comparison
13630 pointer with null pointer constant and adjust the diagnostic message.
13632 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
13635 * configure.ac (gcc_cv_as_section_has_align): Set if installed
13636 binutils supports extended .section directive needed by LTO, or
13637 warn if older binutils found.
13638 (LTO_BINARY_READER): New AC_SUBST'd variable.
13639 (LTO_USE_LIBELF): Likewise.
13640 * gcc/config.gcc (lto_binary_reader): New target-specific configure
13642 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
13643 (LTO_USE_LIBELF): Likewise.
13644 * configure: Regenerate.
13646 * collect2.c (is_elf): Rename from this ...
13647 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
13648 object files in addition to ELF-formatted ones.
13649 (scan_prog_file): Caller updated. Also allow for LTO info marker
13650 symbol to be prefixed or not by an extra underscore.
13652 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
13653 * config/i386/winnt.c: Also #include lto-streamer.h
13654 (i386_pe_asm_named_section): Specify 1-byte section alignment for
13655 LTO named sections.
13656 (i386_pe_asm_output_aligned_decl_common): Add comment.
13657 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
13659 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
13662 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
13663 Add missing earlyclobber for second alternative.
13665 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
13667 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
13668 bits for artificial defs at the top of the block.
13669 * fwprop.c (single_def_use_enter_block): Don't call it.
13671 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
13674 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
13675 instead of "$gcc_cv_objdump -T".
13676 Use "-undefined dynamic_lookup" on darwin.
13677 * gcc/configure: Regenerate.
13679 2010-04-26 Jakub Jelinek <jakub@redhat.com>
13682 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
13684 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
13686 * c-parser.c (struct c_token): Move location field up.
13687 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
13688 (struct c_declspecs): Convert typespec_word, storage_class, and
13689 default_int_p into bitfields.
13690 (struct c_declarator): Move loc field up.
13692 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
13694 * cfgloop.h (struct loop): Move can_be_parallel field up.
13695 * ipa-prop.h (struct ip_node_params): Move bitfields up.
13696 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
13698 (struct iv_cand): Convert pos field into a bitfield.
13699 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
13701 (struct _stmt_vec_info): Shuffle fields for better packing.
13703 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
13705 * varasm.c (IN_NAMED_SECTION): Remove guard.
13706 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
13707 (IN_NAMED_SECTION_P): ...this.
13708 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
13709 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
13711 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
13713 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
13714 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
13715 of shadowing it. Fix comments.
13717 2010-04-26 Jan Hubicka <jh@suse.cz>
13719 * cgraph.c (cgraph_create_node): Set node frequency to normal.
13720 (cgraph_clone_node): Copy function frequency.
13721 * cgraph.h (node_frequency): New enum
13722 (struct cgraph_node): Add.
13723 * final.c (rest_of_clean_state): Update.
13724 * lto-cgraph.c (lto_output_node): Output node frequency.
13725 (input_overwrite_node): Input node frequency.
13726 * tre-ssa-loop-ivopts (computation_cost): Update.
13727 * lto-streamer-out.c (output_function): Do not output function
13729 * predict.c (maybe_hot_frequency_p): Update and handle functions
13731 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
13733 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
13734 (compute_function_frequency): Set noreturn functions to be executed
13736 (choose_function_section): Update.
13737 * lto-streamer-in.c (input_function): Do not input function frequency.
13738 * function.c (allocate_struct_function): Do not initialize function
13740 * function.h (function_frequency): Remove.
13741 (struct function): Remove function frequency.
13742 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
13743 (try_update): Update.
13744 * tree-inline.c (initialize_cfun): Do not update function frequency.
13745 * passes.c (pass_init_dump_file): Update.
13746 * i386.c (ix86_compute_frame_layout): Update.
13747 (ix86_pad_returns): Update.
13749 2010-04-26 Jie Zhang <jie@codesourcery.com>
13751 PR tree-optimization/43833
13752 * tree-vrp.c (range_int_cst_p): New.
13753 (range_int_cst_singleton_p): New.
13754 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
13755 when both operands are constants. Use range_int_cst_p in
13758 2010-04-26 Jan Hubicka <jh@suse.cz>
13760 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
13762 2010-04-26 Richard Guenther <rguenther@suse.de>
13765 * gimple.c (gimple_decl_printable_name): Deal gracefully
13766 with a NULL DECL_NAME.
13768 2010-04-26 Richard Guenther <rguenther@suse.de>
13771 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
13772 if emitting debug information and it is either a function
13773 or a namespace decl.
13775 2010-04-26 Ira Rosen <irar@il.ibm.com>
13777 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
13778 determine if the statement is vectorizable, and a macro to access it.
13779 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13780 Skip statements that can't be vectorized. If the analysis fails,
13781 mark the statement as unvectorizable if vectorizing basic block.
13782 (vect_compute_data_refs_alignment): Likewise.
13783 (vect_verify_datarefs_alignment): Skip statements marked as
13784 unvectorizable. Add print.
13785 (vect_analyze_group_access): Skip statements that can't be
13786 vectorized. If the analysis fails, mark the statement as
13787 unvectorizable if vectorizing basic block.
13788 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
13789 * tree-vect-stmts.c (vectorizable_store): Fix the number of
13790 generated stmts for SLP.
13791 (new_stmt_vec_info): Initialize the new field.
13792 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
13793 statements marked as unvectorizable.
13795 2010-04-25 Joseph Myers <joseph@codesourcery.com>
13797 * c-common.c (flag_isoc1x): New.
13798 (flag_isoc99): Update comment.
13799 * c-common.h (flag_isoc1x): New.
13800 (flag_isoc99): Update comment.
13801 * c-cppbuiltin.c (builtin_define_float_constants): Also define
13802 __<type>_DECIMAL_DIG__.
13803 * c-opts.c (set_std_c1x): New.
13804 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
13805 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
13806 * c.opt (-std=c1x, -std=gnu1x): New options.
13807 * doc/cpp.texi: Mention -std=c1x.
13808 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
13809 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
13810 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
13811 * doc/standards.texi: Mention C1X.
13812 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
13813 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
13814 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
13817 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
13819 * config/i386/gmon-sol2.c (_mcleanup): Change format string
13820 placeholder from 0x%x to %#x.
13821 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
13822 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
13823 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
13824 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
13825 * config/i386/i386.c (ix86_target_string): Ditto.
13826 (output_pic_addr_const): Ditto.
13827 (print_operand): Ditto.
13829 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
13831 * combine.c (find_split_point): Add third argument. Use it
13832 to find nested multiply-accumulate instructions. Adjust calls.
13833 (try_combine): Adjust call to find_split_point.
13835 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
13837 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
13839 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
13841 PR tree-optimization/41442
13842 * fold-const.c (merge_truthop_with_opposite_arm): New function.
13843 (fold_binary_loc): Call it.
13845 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
13847 * toplev.c (general_init): Set default for fdiagnostics-show-option.
13848 * opts.c (common_handle_option): Allow disabling it.
13849 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
13851 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
13853 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
13854 between modes if both types are integral.
13856 2010-04-23 Richard Guenther <rguenther@suse.de>
13858 PR tree-optimization/43572
13859 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
13861 2010-04-23 Richard Guenther <rguenther@suse.de>
13864 * tree-inline.c (tree_can_inline_p): Also check compatibility
13867 2010-04-23 Martin Jambor <mjambor@suse.cz>
13869 PR tree-optimization/43846
13870 * tree-sra.c (struct access): New flag grp_assignment_read.
13871 (build_accesses_from_assign): Set grp_assignment_read.
13872 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
13873 (enum mark_read_status): New type.
13874 (analyze_access_subtree): Propagate grp_assignment_read, create
13875 accesses also if both direct_read and root->grp_assignment_read.
13877 2010-04-23 Martin Jambor <mjambor@suse.cz>
13879 PR middle-end/43835
13880 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
13881 function does not have type attributes.
13883 2010-04-23 Richard Guenther <rguenther@suse.de>
13886 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
13889 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13891 * sese.h (create_if_region_on_edge): Remove.
13893 * sese.c (create_if_region_on_edge): Make static.
13895 * tree-inline.c: Do not include ggc.h.
13897 * expr.c: Do not include ggc.h.
13899 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
13902 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
13905 * config/sh/sh.c (find_barrier): Don't emit a constant pool
13906 in the middle of insns for casesi_worker_2.
13908 2010-04-22 David Edelsohn <edelsohn@gnu.org>
13910 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
13912 2010-04-22 Ira Rosen <irar@il.ibm.com>
13914 PR tree-optimization/43842
13915 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
13916 loop unrolling in update of exit phis. Fix comment.
13917 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
13918 least two reduction statements in the loop before starting SLP
13921 2010-04-22 Nick Clifton <nickc@redhat.com>
13923 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
13925 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
13927 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
13928 to simplify a + ~a.
13930 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13932 * tree-parloops.c (loop_parallel_p): New argument
13933 parloop_obstack. Pass it down.
13934 (parallelize_loops): New variable parloop_obstack. Initialize it,
13935 pass it down, free it.
13937 * tree-loop-linear.c (linear_transform_loops): Pass down
13940 * tree-data-ref.h (lambda_compute_access_matrices): New argument
13941 of type struct obstack *.
13943 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
13944 scratch_obstack. Initialize it, pass down, free it.
13946 * lambda.h (lambda_loop_new): Remove.
13947 (lambda_matrix_new, lambda_matrix_inverse)
13948 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
13949 argument of type struct obstack *.
13951 * lambda-trans.c (lambda_trans_matrix_new): New argument
13952 lambda_obstack. Pass it down, use obstack allocation for ret.
13953 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
13956 * lambda-mat.c (lambda_matrix_get_column)
13957 (lambda_matrix_project_to_null): Remove.
13958 (lambda_matrix_new): New argument lambda_obstack. Use obstack
13959 allocation for mat.
13960 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
13963 * lambda-code.c (lambda_loop_new): New function.
13964 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
13965 (lambda_compute_auxillary_space, lambda_compute_target_space)
13966 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
13967 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
13968 (build_access_matrix): New argument lambda_obstack. Use obstack
13970 (lambda_compute_step_signs, lambda_compute_access_matrices): New
13971 argument lambda_obstack. Pass it down.
13973 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
13975 * optabs.h (expand_widening_mult): Declare.
13977 2010-04-22 Richard Guenther <rguenther@suse.de>
13979 PR tree-optimization/43845
13980 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
13981 lookup the CALL_EXPR function and arguments.
13983 2010-04-22 Nick Clifton <nickc@redhat.com>
13985 * config/stormy16/stormy16.c
13986 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
13987 * config/stormy16/stormy16.h: Tidy up formatting.
13988 (DONT_USE_BUILTIN_SETJMP): Remove definition.
13989 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
13990 (ineqbranchsi): Delete pattern.
13991 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
13992 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
13993 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
13994 stormy16-lib2-ucmpsi2.c.
13996 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
13998 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
13999 df_simulate_find_noclobber_defs as appropriate. Keep track of an
14000 extra set merge_set_noclobber, and use it to relax the final test
14002 * df.h (df_simulate_find_noclobber_defs): Declare.
14003 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
14005 (df_simulate_find_noclobber_defs): New function.
14007 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
14009 * config/i386/i386.md: Use {} around multi-line preparation statements.
14011 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
14013 * c-tree.h (push_init_level, pop_init_level, set_init_index)
14014 (process_init_element): New argument of type struct obstack *.
14016 * c-typeck.c (push_init_level, pop_init_level, set_designator)
14017 (set_init_index, set_init_label, set_nonincremental_init)
14018 (set_nonincremental_init_from_string, find_init_member)
14019 (output_init_element, output_pending_init_elements)
14020 (process_init_element): New argument braced_init_obstack. Pass it
14022 (push_range_stack, add_pending_init): New argument
14023 braced_init_obstack. Use obstack allocation.
14025 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
14026 braced_init_obstack. Pass it down.
14027 (c_parser_braced_init): New variables ret, braced_init_obstack.
14028 Initialize obstack, pass it down and finally free it.
14030 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
14032 PR middle-end/29274
14033 * tree-pass.h (pass_optimize_widening_mul): Declare.
14034 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
14035 gate_optimize_widening_mul): New static functions.
14036 (pass_optimize_widening_mul): New.
14037 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
14038 <case MULT_EXPR>: Remove support for widening multiplies.
14039 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
14040 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
14041 simplify_gen_unary rather than directly building extensions.
14042 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
14044 * expmed.c (expand_widening_mult): New function.
14045 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
14047 2010-04-21 Jan Hubicka <jh@suse.cz>
14049 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
14050 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
14051 * lto-wpa-fixup.c: Remove.
14052 * Makefile.in (lto-wpa-fixup.o): Remove.
14053 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
14054 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
14055 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
14057 2010-04-21 Jan Hubicka <jh@suse.cz>
14059 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
14060 add write_optimization_summary, read_optimization_summary.
14061 (ipa_write_summaries_of_cgraph_node_set): Remove.
14062 (ipa_write_optimization_summaries): Declare.
14063 (ipa_read_optimization_summaries): Declare.
14064 * ipa-cp.c (pass_ipa_cp): Update.
14065 * ipa-reference.c (pass_ipa_reference): Update.
14066 * ipa-pure-const.c (pass_ipa_pure_const): Update.
14067 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
14069 * ipa-inline.c (pass_ipa_inline): Update.
14070 * ipa.c (pass_ipa_whole_program): Update.
14071 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
14072 * passes.c (ipa_write_summaries_1): Do not test wpa.
14073 (ipa_write_optimization_summaries_1): New.
14074 (ipa_write_optimization_summaries): New.
14075 (ipa_read_summaries): Do not test ltrans.
14076 (ipa_read_optimization_summaries_1): New.
14077 (ipa_read_optimization_summaries): New.
14079 2010-04-21 Jan Hubicka <jh@suse.cz>
14081 * lto-cgraph.c (lto_output_node): Do not output comdat groups
14082 for boundary nodes.
14083 (output_cgraph): Do not arrange comdat groups for boundary nodes.
14085 2010-04-21 Jakub Jelinek <jakub@redhat.com>
14088 * dwarf2out.c (add_name_and_src_coords_attributes): Add
14089 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
14091 2010-04-21 Jan Hubicka <jh@suse.cz>
14093 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
14095 2010-04-21 Jan Hubicka <jh@suse.cz>
14097 * varpool.c (decide_is_variable_needed): Variable is always needed
14100 2010-04-21 Jan Hubicka <jh@suse.cz>
14102 * opts.c (decode_options): Enable pure-const pass for whopr.
14104 2010-04-21 Jan Hubicka <jh@suse.cz>
14106 * cgraph.c (dump_cgraph_node): Dump also assembler name.
14107 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
14109 (cgraph_decide_inlining): Do not expect callee to be removed in all
14112 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
14114 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
14116 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
14118 * config/i386/i386.md (x86_shrd): Add athlon_decode and
14119 amdfam10_decode attributes.
14121 2010-04-21 Jakub Jelinek <jakub@redhat.com>
14123 PR middle-end/43570
14124 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
14125 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
14126 (lower_copyprivate_clauses): Use private var in outer
14127 context instead of original var. Make sure the types
14128 are correct for VLAs.
14130 2010-04-21 Richard Guenther <rguenther@suse.de>
14132 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
14133 to non-pointer objects.
14135 2010-04-21 Jakub Jelinek <jakub@redhat.com>
14137 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
14138 last chain entry if it starts with the still current label.
14139 (add_location_or_const_value_attribute): Check that
14140 loc_list->first->next is NULL instead of comparing ->first with ->last.
14141 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
14142 to add_var_loc_to_decl.
14144 * dwarf2out.c (output_call_frame_info): For dw_cie_version
14145 >= 4 add also address size and segment size fields into CIE header.
14147 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
14148 long as address size is the same as sizeof (void *) and
14150 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
14151 address size or segment size is unexpected, return DW_EH_PE_omit.
14152 (classify_object_over_fdes): If get_cie_encoding returned
14153 DW_EH_PE_omit, return -1.
14154 (init_object): If classify_object_over_fdes returned -1,
14155 pretend there were no FDEs at all.
14157 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
14159 * config/i386/i386.md (bswap<mode>2): Macroize expander from
14160 bswap{si,di}2 using SWI48 mode iterator.
14161 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
14162 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
14163 set modrm attribute of bswap insn to 0 and remove length attribute.
14164 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
14165 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
14166 set mode attribute to <MODE> and remove length attribute.
14168 2010-04-20 James E. Wilson <wilson@codesourcery.com>
14170 PR rtl-optimization/43520
14171 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
14172 zero available registers.
14174 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14176 * builtins.c (fold_builtin_cproj): Fold more cases.
14178 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14180 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
14181 (fold_builtin_1): Fold builtin cproj.
14182 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
14183 Use ATTR_CONST_NOTHROW_LIST.
14185 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
14187 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
14188 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
14189 ffsi2_no_cmove for !TARGET_CMOVE.
14190 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
14191 (ffssi2): Remove expander.
14192 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
14194 (ctz<mode>2): Ditto from ctz{si,di}2.
14195 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
14197 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
14200 2010-04-20 Jakub Jelinek <jakub@redhat.com>
14202 * dwarf2out.c (AT_linkage_name): Define.
14203 (clone_as_declaration): Handle DW_AT_linkage_name.
14204 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
14205 of DW_AT_MIPS_linkage_name.
14206 (move_linkage_attr): Likewise.
14207 (dwarf2out_finish): Likewise.
14209 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
14211 PR middle-end/41952
14212 * fold-const.c (fold_comparison): New folding rule.
14214 2010-04-20 Anatoly Sokolov <aesok@post.ru>
14216 * double-int.h (double_int_setbit): Declare.
14217 * double-int.c (double_int_setbit): New function.
14218 * rtl.h (immed_double_int_const): Declare.
14219 * emit-rtl.c (immed_double_int_const): New function.
14220 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
14221 and immed_double_int_const functions.
14222 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
14223 expand_copysign_bit): (Ditto.).
14224 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
14225 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
14226 * dojump.c (prefer_and_bit_test): (Ditto.).
14227 * expr.c (convert_modes, reduce_to_bit_field_precision,
14228 const_vector_from_tree): (Ditto.).
14229 * expmed.c (mask_rtx, lshift_value): (Ditto.).
14231 2010-04-20 Jan Hubicka <jh@suse.cz>
14233 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
14234 (dump_cgraph_node): Dump new flags.
14235 * cgraph.h (struct cgraph_node): Add flags
14236 reachable_from_other_partition and in_other_partition.
14237 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
14238 other partition can not be removed.
14239 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
14240 the other partition must be output; silence sanity checking on
14241 leaking functions bodies from other paritition.
14242 * lto-cgraph.c (reachable_from_other_partition_p): New function.
14243 (lto_output_node): Output new flags; do not sanity check that inline
14244 clones are output; drop lto_forced_extern_inline_p code; do not mock
14245 visibility flags at partition boundaries.
14246 (add_node_to): New function.
14247 (output_cgraph): Use it to sort functions so masters appear before
14249 (input_overwrite_node): Input new flags.
14250 * passes.c (ipa_write_summaries): Do not call
14251 lto_new_extern_inline_states.
14252 * lto-section-out.c (forced_extern_inline,
14253 lto_new_extern_inline_states lto_delete_extern_inline_states,
14254 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
14255 * lto-streamer.h (lto_new_extern_inline_states,
14256 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
14257 lto_forced_extern_inline_p): Kill.
14259 2010-04-20 Richard Guenther <rguenther@suse.de>
14261 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
14262 from vars that can have pointers.
14263 (process_constraint): Dump useless constraints.
14265 2010-04-20 Richard Guenther <rguenther@suse.de>
14267 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
14268 (dump_sa_points_to_info): Remove asserts.
14269 (init_base_vars): nothing_id isn't an escape point nor does it
14272 2010-04-20 Jakub Jelinek <jakub@redhat.com>
14274 * tree.h (TYPE_REF_IS_RVALUE): Define.
14275 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
14276 should_move_die_to_comdat, prune_unused_types_walk): Handle
14277 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
14278 (modified_type_die, gen_reference_type_die): Emit
14279 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
14280 if TYPE_REF_IS_RVALUE and -gdwarf-4.
14282 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14285 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
14286 calls for -fpic -m31 if they have been sibcall optimized.
14288 2010-04-19 James E. Wilson <wilson@codesourcery.com>
14290 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
14291 ar.lc fixed and call-used.
14293 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
14295 2010-04-19 Jan Hubicka <jh@suse.cz>
14297 * opts.c (decode_options): Disable whpr incompatible passes.
14298 * lto/lto.c (lto_1_to_1_map): Skip clones.
14299 (read_cgraph_and_symbols): Do not mark everything as needed.
14300 (do_whole_program_analysis): Do map only after optimizing;
14301 set proper cgraph_state; use passmanager.
14303 2010-04-19 DJ Delorie <dj@redhat.com>
14305 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
14306 POINTER_PLUS_EXPR and fix them.
14308 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
14310 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
14311 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
14312 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
14313 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
14314 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
14315 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
14316 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
14317 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
14318 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
14319 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
14320 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
14322 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
14324 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
14325 (check_cond_move_block): Likewise.
14326 (cond_move_process_if_block): Likewise.
14327 (noce_find_if_block): Improve formatting.
14328 (find_if_header): Pass 0 to memset and tweak conditions.
14329 (cond_exec_find_if_block): Fix long lines and tweak conditions.
14331 2010-04-19 Jakub Jelinek <jakub@redhat.com>
14333 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
14336 PR middle-end/43337
14337 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
14338 with non-local decl doesn't need chain.
14340 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
14342 * ira-color.c (allocno_reload_assign): Avoid accumulating
14343 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
14345 2010-04-19 Martin Jambor <mjambor@suse.cz>
14347 * gimple.h (create_tmp_reg): Declare.
14348 * gimplify.c (create_tmp_reg): New function.
14349 (gimplify_return_expr): Use create_tmp_reg.
14350 (gimplify_omp_atomic): Likewise.
14351 (gimple_regimplify_operands): Likewise.
14352 * tree-dfa.c (make_rename_temp): Likewise.
14353 * tree-predcom.c (predcom_tmp_var): Likewise.
14354 (reassociate_to_the_same_stmt): Likewise.
14355 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
14356 (get_replaced_param_substitute): Likewise.
14357 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
14358 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
14359 * tree-ssa-pre.c (get_representative_for): Likewise.
14360 (create_expression_by_pieces): Likewise.
14361 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
14362 (create_tailcall_accumulator): Likewise.
14364 2010-04-19 Martin Jambor <mjambor@suse.cz>
14366 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
14368 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
14370 2010-04-19 Richard Guenther <rguenther@suse.de>
14372 PR tree-optimization/43796
14373 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
14374 from SCEV in the lattice.
14375 (vrp_visit_phi_node): Dump change.
14377 2010-04-19 Richard Guenther <rguenther@suse.de>
14379 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
14380 * configure: Re-generated.
14382 2010-04-19 Richard Guenther <rguenther@suse.de>
14384 PR tree-optimization/43783
14385 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
14386 constant ARRAY_REF operands two and three if possible.
14388 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
14391 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
14393 2010-04-19 Jie Zhang <jie@codesourcery.com>
14396 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
14398 2010-04-19 Ira Rosen <irar@il.ibm.com>
14400 PR tree-optimization/37027
14401 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
14402 and macro to access it.
14403 (vectorizable_reduction): Add argument.
14404 (vect_get_slp_defs): Likewise.
14405 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
14406 statements for possible use in SLP.
14407 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
14408 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
14409 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
14411 (vectorizable_reduction): Likewise.
14412 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
14414 (vectorizable_type_demotion, vectorizable_type_promotion,
14415 vectorizable_store): Likewise.
14416 (vect_analyze_stmt): Update call to vectorizable_reduction.
14417 (vect_transform_stmt): Likewise.
14418 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
14419 (vect_build_slp_tree): Fix indentation. Check that there are no loads
14420 from different interleaving chains in same node.
14421 (vect_slp_rearrange_stmts): New function.
14422 (vect_supported_load_permutation_p): Allow load permutations for
14423 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
14424 inside SLP nodes if necessary.
14425 (vect_analyze_slp_instance): Handle reductions.
14426 (vect_analyze_slp): Try to build SLP instances originating from groups
14428 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
14429 (vect_get_constant_vectors): Create initial vectors for reductions
14430 according to reduction code. Add new argument.
14431 (vect_get_slp_defs): Add new argument, pass it to
14432 vect_get_constant_vectors.
14433 (vect_schedule_slp_instance): Remove SLP tree root statements.
14435 2010-04-19 Jakub Jelinek <jakub@redhat.com>
14437 * tree.h (ENUM_IS_SCOPED): Define.
14438 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
14439 for ENUM_IS_SCOPED enums.
14441 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
14443 * fold-const.c (fold_comparison): Use ssizetype.
14444 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
14445 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
14446 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
14447 * tree-object-size.c (compute_object_sizes): Use size_type_node.
14449 * tree.h (initialize_sizetypes): Remove parameter.
14450 (build_common_tree_nodes): Remove second parameter.
14451 * stor-layout.c (initialize_sizetypes): Remove parameter.
14452 Always create an unsigned type.
14453 (set_sizetype): Assert that the passed type is unsigned and simplify.
14454 * tree.c (build_common_tree_nodes): Remove second parameter.
14455 Adjust call to initialize_sizetypes.
14456 * c-decl.c (c_init_decl_processing): Remove second argument in call to
14457 build_common_tree_nodes.
14459 2010-04-18 Matthias Klose <doko@ubuntu.com>
14461 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
14463 2010-04-18 Ira Rosen <irar@il.ibm.com>
14465 PR tree-optimization/43771
14466 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
14467 load permutation doesn't have gaps.
14469 2010-04-18 Jan Hubicka <jh@suse.cz>
14471 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
14472 (sse_prologue_save_insn expander): Use new pattern.
14473 (sse_prologue_save_insn1): New pattern and splitter.
14474 (sse_prologue_save_insn): Update to deal also with 64bit aligned
14476 * i386.c (setup_incoming_varargs_64): Do not compute jump
14478 (ix86_gimplify_va_arg): Update alignment needed.
14479 (ix86_local_alignment): Do not align all local arrays to 128bit.
14481 2010-04-17 Jan Hubicka <jh@suse.cz>
14483 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
14485 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
14487 * arm.md (negdi2): Remove redundant code to force values into a
14490 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
14492 * arm/bpabi.S: Add EABI alignment attributes to objects.
14493 * arm/bpabi-v6m.S: Likewise.
14494 * arm/crti.asm: Likewise.
14495 * arm/crtn.asm: Likewise.
14496 * arm/lib1funcs.asm: Likewise.
14497 * arm/libunwind.S: Likewise.
14499 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
14501 * arm-protos.h (tune_params): New structure.
14502 * arm.c (current_tune): New variable.
14503 (arm_constant_limit): Delete.
14504 (struct processors): Add pointer to the tune parameters.
14505 (arm_slowmul_tune): New tuning option.
14506 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
14507 (all_cores): Adjust to pick up the tuning model.
14508 (arm_constant_limit): New function.
14509 (arm_override_options): Select the appropriate tuning model. Delete
14510 initialization of arm_const_limit.
14511 (arm_split_constant): Use the new constant-limit model.
14512 (arm_rtx_costs): Pick up the current tuning model.
14513 * arm.md (is_strongarm, is_xscale): Delete.
14514 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
14515 for Xscale variant architectures.
14516 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
14518 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14520 * config/arm/arm.c (arm_gen_constant): Remove unused variable
14522 (arm_rtx_costs_1): Remove unused variable extra_cost.
14523 (arm_unwind_emit_set): Use variable offset.
14524 (thumb1_output_casesi): Remove unused variable flags.
14526 2010-04-16 Jeff Law <law@redhat.com>
14528 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
14529 needing assignment rather than doing a two-phase assignment. Remove
14530 unused variable 'm'.
14532 2010-04-16 Jakub Jelinek <jakub@redhat.com>
14535 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
14537 2010-04-16 Doug Kwan <dougkwan@google.com>
14539 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
14540 (next_operand_entry_id): New static variable.
14541 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
14542 (add_to_ops_vec): Assigned unique ID to operand entry.
14543 (struct oecount_s): New field ID.
14544 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
14545 (undistribute_ops_list): Assign unique IDs to oecounts.
14546 (init_reassoc): reset next_operand_entry_id.
14548 2010-04-16 Doug Kwan <dougkwan@google.com>
14550 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
14551 missing left parenthesis.
14553 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
14555 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
14556 *btdi_rex64 using SWI48 mode iterator.
14557 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
14558 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
14559 *jcc_btdi_mask_rex64.
14561 2010-04-16 Anatoly Sokolov <aesok@post.ru>
14563 * double-int.h (tree_to_double_int): Convert to macro.
14564 * double-int.c (tree_to_double_int): Remove.
14566 2010-04-16 Jakub Jelinek <jakub@redhat.com>
14569 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
14570 with want_address 2 and in case a single element list might be
14571 possible, call it again with want_address 0.
14573 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14575 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
14576 case 'W' print operands for HI mode.
14577 * config/h8300/h8300.h (Y0, Y2) : New constraints.
14578 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
14579 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
14580 * config/h8300/predicate.md (bit_register_indirect_operand): New.
14582 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
14584 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
14585 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
14586 #xx:3 and #xx:4 mode.
14588 * config/h8300/h8300.md (inverted load with HImode dest): Add
14589 support for H8300SX.
14591 * config/h8300/predicate.md (bit_operand): Allow immediate values that
14592 satisfy 'U' constraint.
14594 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14596 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
14597 * configure: Regenerate.
14598 * config.in: Regenerate.
14599 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
14602 2010-04-16 Richard Guenther <rguenther@suse.de>
14604 * tree.h (struct tree_decl_minimal): Move pt_uid ...
14605 (struct tree_decl_common): ... here.
14606 (DECL_PT_UID): Adjust.
14607 (SET_DECL_PT_UID): Likewise.
14608 (DECL_PT_UID_SET_P): Likewise.
14610 2010-04-16 Richard Guenther <rguenther@suse.de>
14612 PR tree-optimization/43572
14613 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
14614 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
14615 * tree-flow.h (is_call_clobbered): Remove.
14616 * tree-flow-inline.h (is_call_clobbered): Likewise.
14617 * tree-dfa.c (dump_variable): Do not dump call clobber state.
14618 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
14619 (execute_return_slot_opt): Adjust.
14620 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
14621 check for call clobbered vars here.
14622 (find_tail_calls): Move tailcall verification to the
14625 2010-04-16 Diego Novillo <dnovillo@google.com>
14627 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
14629 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
14632 * config/arm/arm.md (cbranchqi4): New pattern.
14633 * config/arm/predicates.md (const0_operand,
14634 cbranchqi4_comparison_operator): New predicates.
14636 2010-04-16 Richard Guenther <rguenther@suse.de>
14638 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
14639 (dump_gimple_stmt): Likewise.
14641 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
14643 * recog.h (struct recog_data): New field is_operator.
14644 (struct insn_operand_data): New field is_operator.
14645 * recog.c (extract_insn): Set recog_data.is_operator.
14646 * genoutput.c (output_operand_data): Emit code to set the
14648 * reload.c (find_reloads): Use it rather than testing for an
14649 empty constraint string.
14652 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
14653 If the previous insn is a cbranchsi4_insn with the same arguments,
14654 omit the compare instruction.
14656 * config/arm/arm.md (addsi3_cbranch): If destination is a high
14657 register, inputs must be low registers and we need a low register
14658 scratch. Handle alternative 2 like alternative 3.
14660 2010-04-16 Jakub Jelinek <jakub@redhat.com>
14662 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
14663 don't call get_addr on both. If one expression is a VALUE and
14664 the other a REG, check VALUE's locs if the REG isn't among them.
14666 2010-04-16 Christian Bruel <christian.bruel@st.com>
14668 * config/sh/sh.h (sh_frame_pointer_required): New function.
14669 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
14670 (flag_omit_frame_pointer) Set.
14671 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
14672 (rounded_frame_size): Adjust size with outgoing_args_size.
14673 (sh_set_return_address): Must return from stack pointer.
14674 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
14675 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
14676 (ACCUMULATE_OUTGOING_ARGS): Define.
14677 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
14678 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
14680 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
14683 * config/sh/sh.c (sh_legitimize_reload_address): Use
14684 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
14685 Remove a unneeded check for offset_base.
14687 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
14689 * configure: Regenerated.
14691 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14693 * config/s390/s390.c (s390_call_save_register_used): Switch back
14694 to HARD_REGNO_NREGS.
14696 2010-04-15 Richard Guenther <rguenther@suse.de>
14698 * alias.c (alias_set_subset_of): Handle alias-set zero
14701 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
14702 Julian Brown <julian@codesourcery.com>
14704 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
14705 alternatives according to use of high and low regs.
14706 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
14707 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
14708 optimizing for size on Thumb-2.
14710 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
14712 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
14714 2010-04-15 Richard Guenther <rguenther@suse.de>
14716 * tree-ssa-structalias.c (struct variable_info): Add
14718 (new_var_info): Initialize it.
14719 (dump_constraints): Support printing last added constraints.
14720 (debug_constraints): Adjust.
14721 (dump_constraint_graph): Likewise.
14722 (make_heapvar_for): Check for NULL cfun.
14723 (get_function_part_constraint): New function.
14724 (get_fi_for_callee): Likewise.
14725 (find_func_aliases): Properly implement IPA PTA constraints.
14726 (process_ipa_clobber): New function.
14727 (find_func_clobbers): Likewise.
14728 (insert_into_field_list_sorted): Remove.
14729 (create_function_info_for): Properly allocate vars for IPA mode.
14730 Do not use insert_into_field_list_sorted.
14731 (create_variable_info_for): Properly generate constraints for
14732 global vars in IPA mode.
14733 (dump_solution_for_var): Always dump the solution.
14734 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
14735 (find_what_var_points_to): Adjust.
14736 (pt_solution_set): Change.
14737 (pt_solution_ior_into): New function.
14738 (pt_solution_empty_p): Export.
14739 (pt_solution_includes_global): Adjust.
14740 (pt_solution_includes_1): Likewise.
14741 (pt_solutions_intersect_1): Likewise.
14742 (dump_sa_points_to_info): Check some invariants.
14743 (solve_constraints): Move constraint dumping ...
14744 (compute_points_to_sets): ... here.
14745 (ipa_pta_execute): ... and here.
14746 (compute_may_aliases): Do not re-compute points-to info
14747 locally if IPA info is available.
14748 (ipa_escaped_pt): New global var.
14749 (ipa_pta_execute): Properly implement IPA PTA.
14750 * tree-into-ssa.c (dump_decl_set): Support dumping
14751 decls not in referenced-vars.
14752 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
14753 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
14754 (dump_points_to_solution): Likewise.
14755 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
14756 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
14757 (remap_gimple_stmt): Reset call clobber/use information if necessary.
14758 (copy_decl_to_var): Copy DECL_PT_UID.
14759 (copy_result_decl_to_var): Likewise.
14760 * tree.c (make_node_stat): Initialize DECL_PT_UID.
14761 (copy_node_stat): Copy it.
14762 * tree.h (DECL_PT_UID): New macro.
14763 (SET_DECL_PT_UID): Likewise.
14764 (DECL_PT_UID_SET_P): Likewise.
14765 (struct tree_decl_minimal): Add pt_uid member.
14766 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
14767 (pt_solution_empty_p): Declare.
14768 (pt_solution_set): Adjust.
14769 (ipa_escaped_pt): Declare.
14770 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
14771 * gimple-pretty-print.c (pp_points_to_solution): New function.
14772 (dump_gimple_call): Dump call clobber/use information.
14773 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
14774 * tree-pass.h (TDF_ALIAS): New dump option.
14775 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
14776 * doc/invoke.texi (-fipa-pta): Update documentation.
14778 2010-04-15 Richard Guenther <rguenther@suse.de>
14780 * Makefile.in (OBJS-common): Add gimple-fold.o.
14781 (gimple-fold.o): New rule.
14782 * tree.h (maybe_fold_offset_to_reference,
14783 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
14785 * gimple.h: ... here.
14786 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
14787 may_propagate_address_into_dereference): Move prototypes ...
14788 * gimple.h: ... here.
14789 * tree-ssa-ccp.c (get_symbol_constant_value,
14790 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
14791 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
14792 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
14793 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
14794 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
14795 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
14796 gimplify_and_update_call_from_tree): Move ...
14797 * gimple-fold.c: ... here. New file.
14798 (ccp_fold_builtin): Rename to ...
14799 (gimple_fold_builtin): ... this.
14800 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
14802 2010-04-15 Richard Guenther <rguenther@suse.de>
14804 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
14805 fit_double_type, force_fit_type_double, add_double_with_sign,
14806 neg_double, mul_double_with_sign, lshift_double, rshift_double,
14807 lrotate_double, rrotate_double, div_and_round_double): Move ...
14808 * double-int.c: ... here.
14809 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
14810 add_double, neg_double, mul_double_with_sign, mul_double,
14811 lshift_double, rshift_double, lrotate_double, rrotate_double,
14812 div_and_round_double): Move prototypes ...
14813 * double-int.h: ... here.
14815 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
14818 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
14819 matching constraints to ensure inputs match the output.
14821 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
14824 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
14825 in an input-only operand.
14827 2010-04-15 Anatoly Sokolov <aesok@post.ru>
14829 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
14830 (double_int_not, double_int_lshift, double_int_rshift): Declare.
14831 (double_int_negative_p): Convert to static inline function.
14832 * double-int.c (double_int_lshift, double_int_lshift): New functions.
14833 (double_int_negative_p): Remove.
14834 * tree.h (lshift_double, rshift_double):
14835 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
14836 * fold-const.c (fold_convert_const_int_from_real,
14837 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
14838 (lshift_double): Change type of arith argument to bool.
14839 (rshift_double): Change type of arith argument to bool. Correct
14841 * expmed.c (mask_rtx, lshift_value): (Ditto.).
14843 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
14846 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
14847 at the start and end of the then/else blocks, and omit them from the
14849 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
14850 argument; all callers changed. Pass zero to old_insns_match_p instead.
14851 (flow_find_head_matching_sequence): New function.
14852 (old_insns_match_p): Check REG_EH_REGION notes for calls.
14853 * basic-block.h (flow_find_cross_jump,
14854 flow_find_head_matching_sequence): Declare functions.
14856 2010-04-14 Jason Merrill <jason@redhat.com>
14859 * c-common.c (attribute_takes_identifier_p): New fn.
14860 * c-common.h: Declare it.
14862 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14864 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
14865 splitter condition.
14866 (*udivmod<mode>4): Ditto.
14868 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14870 * config/i386/i386.md (maxmin_int): Rename code attribute from
14871 maxminiprefix and update all users.
14872 (maxmin_float): Ditto from maxminfprefix.
14873 (logic): Ditto from logicprefix.
14874 (absneg_mnemonic): Ditto from absnegprefix.
14875 * config/i386/mmx.md: Update all users of maxminiprefix,
14876 maxminfprefix and logicprefix for rename.
14877 * config/i386/sse.md: Ditto.
14878 * config/i386/sync.md (sync_<code><mode>): Update for
14879 logicprefix rename.
14881 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
14884 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
14885 warnings converted to errors.
14887 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14889 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
14890 used insn_type variable.
14891 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
14892 to avoid set-but-not-used warning.
14894 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14896 * df-core.c (df_ref_debug): Change format string placeholder
14898 * dwarf2asm.c (dw2_asm_output_data_raw,
14899 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
14900 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
14901 * dwarf2out.c (output_cfi, output_cfi_directive,
14902 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
14903 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
14905 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
14906 * print-rtl.c (print_rtx): Ditto.
14908 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14910 PR middle-end/42694
14911 * builtins.c (expand_builtin_pow_root): New function to expand pow
14912 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
14913 series of sqrt and cbrt calls under -ffast-math.
14914 (expand_builtin_pow): Call it.
14916 2010-04-14 Michael Matz <matz@suse.de>
14918 PR tree-optimization/42963
14919 * tree-cfg.c (touched_switch_bbs): New static variable.
14920 (group_case_labels_stmt): New function broken out from ...
14921 (group_case_labels): ... here, use the above.
14922 (start_recording_case_labels): Allocate touched_switch_bbs.
14923 (end_recording_case_labels): Deallocate it, call
14924 group_case_labels_stmt.
14925 (gimple_redirect_edge_and_branch): Remember index of affected BB.
14927 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14929 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
14930 from insn template.
14932 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
14934 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
14936 2010-04-13 Jan Hubicka <jh@suse.cz>
14938 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
14939 of optimized out static functions.
14940 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
14941 cost computation. Also sanity check for overflows.
14942 (update_caller_keys): Update cgraph_edge_badness call; properly
14943 update fibheap and sanity check that it is up to date.
14944 (add_new_edges_to_heap): Update cgraph_edge_badness.
14945 (cgraph_decide_inlining_of_small_function): Likewise;
14946 add sanity checking that badness in heap is up to date;
14947 improve dumping of reason; Update badness of calls to the
14948 offline copy of function currently inlined; dump badness
14949 of functions not inlined because of unit growth limits.
14951 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
14953 PR middle-end/32628
14954 * c-common.c (pointer_int_sum): Disregard overflow that occured only
14955 because of sign-extension change when converting to sizetype here...
14956 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
14958 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
14959 the folding to constants. Remove redundant final conversion.
14960 (fold_binary) <associate>: Do not associate if the re-association of
14961 constants alone overflows.
14962 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
14963 to the end of the list.
14964 (multiple_of_p) <COND_EXPR>: New case.
14966 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
14968 * opt-functions.awk (opt_sanitized_name): New.
14970 * optc-gen.awk: Use it
14971 * opth-gen.awk: Use it.
14973 2010-04-13 Martin Jambor <mjambor@suse.cz>
14975 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
14976 (sra_modify_assign): Delete stmts loading dead data even if racc has no
14977 children. Call replace_uses_with_default_def_ssa_name to handle
14980 2010-04-13 Michael Matz <matz@suse.de>
14982 PR middle-end/43730
14983 * builtins.c (expand_builtin_interclass_mathfn): Also create
14984 a register if the predicate doesn't match.
14986 2010-04-13 Diego Novillo <dnovillo@google.com>
14988 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
14989 * c-pch.c: Include timevar.h.
14990 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
14991 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
14992 * ggc-common.c: Include timevar.h.
14993 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
14994 * timevar.def (TV_PCH_SAVE): Define.
14995 (TV_PCH_CPP_SAVE): Define.
14996 (TV_PCH_PTR_REALLOC): Define.
14997 (TV_PCH_PTR_SORT): Define.
14998 (TV_PCH_RESTORE): Define.
14999 (TV_PCH_CPP_RESTORE): Define.
15001 2010-04-13 Michael Matz <matz@suse.de>
15003 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
15005 (can_reassociate_p): New function.
15006 (break_up_subtract_bb, reassociate_bb): Use it.
15008 2010-04-13 Richard Guenther <rguenther@suse.de>
15011 * builtins.c (c_readstr): Fix assert.
15013 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
15015 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
15016 when generating cltd insn.
15018 (*ashl<mode>3_1): Remove special handling for register operand 2.
15019 (*ashlsi3_1_zext): Ditto.
15020 (*ashlhi3_1): Ditto.
15021 (*ashlhi3_1_lea): Ditto.
15022 (*ashlqi3_1): Ditto.
15023 (*ashlqi3_1_lea): Ditto.
15024 (*<shiftrt_insn><mode>3_1): Ditto.
15025 (*<shiftrt_insn>si3_1_zext): Ditto.
15026 (*<shiftrt_insn>qi3_1_slp): Ditto.
15027 (*<rotate_insn><mode>3_1): Ditto.
15028 (*<rotate_insn>si3_1_zext): Ditto.
15029 (*<rotate_insn>qi3_1_slp): Ditto.
15031 2010-04-13 Richard Guenther <rguenther@suse.de>
15033 * tree-ssa-structalias.c (callused_id): Remove.
15034 (call_stmt_vars): New.
15035 (get_call_vi): Likewise.
15036 (lookup_call_use_vi): Likewise.
15037 (lookup_call_clobber_vi): Likewise.
15038 (get_call_use_vi): Likewise.
15039 (get_call_clobber_vi): Likewise.
15040 (make_transitive_closure_constraints): Likewise.
15041 (handle_const_call): Adjust to do per-call call-used handling.
15042 (handle_pure_call): Likewise.
15043 (find_what_var_points_to): Remove general callused handling.
15044 (init_base_vars): Likewise.
15045 (init_alias_vars): Initialize call_stmt_vars.
15046 (compute_points_to_sets): Process call-used and call-clobbered
15047 vars for call statements.
15048 (delete_points_to_sets): Free call_stmt_vars.
15050 2010-04-13 Richard Guenther <rguenther@suse.de>
15052 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15053 Only add RW dependence for dependence distance zero.
15054 Adjust maximal vectorization factor according to dependences.
15055 Move alignment handling ...
15056 (vect_find_same_alignment_drs): ... here. New function.
15057 (vect_analyze_data_ref_dependences): Adjust.
15058 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
15059 (vect_analyze_data_refs): Adjust minimal vectorization factor
15060 according to data references.
15061 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
15062 dependences before determining the vectorization factor.
15063 Analyze alignment after determining the vectorization factor.
15064 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
15065 dependences before alignment.
15066 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
15068 (vect_analyze_data_refs): Likewise.
15069 (MAX_VECTORIZATION_FACTOR): New define.
15071 2010-04-13 Duncan Sands <baldrick@free.fr>
15073 * except.h (lang_eh_type_covers): Remove.
15074 * except.c (lang_eh_type_covers): Likewise.
15076 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15077 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15079 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
15080 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
15081 UNITS_PER_LONG where it is ABI relevant.
15082 (s390_return_addr_rtx): Likewise.
15083 (s390_back_chain_rtx): Likewise.
15084 (s390_frame_area): Likewise.
15085 (s390_frame_info): Likewise.
15086 (s390_initial_elimination_offset): Likewise.
15087 (save_gprs): Likewise.
15088 (s390_emit_prologue): Likewise.
15089 (s390_emit_epilogue): Likewise.
15090 (s390_function_arg_advance): Likewise.
15091 (s390_function_arg): Likewise.
15092 (s390_va_start): Likewise.
15093 (s390_gimplify_va_arg): Likewise.
15094 (s390_function_profiler): Likewise.
15095 (s390_optimize_prologue): Likewise.
15096 (s390_rtx_costs): Likewise.
15097 (s390_secondary_reload): Likewise.
15098 (s390_promote_function_mode): Likewise.
15099 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
15100 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
15101 registers available.
15102 (s390_unwind_word_mode): New function.
15103 (s390_function_value): Split 64 bit values into register pair if
15104 used as return value.
15105 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
15106 function call parameters. Handle parallels.
15107 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
15108 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
15109 (DWARF_CIE_DATA_ALIGNMENT): New macro.
15110 (s390_expand_setmem): Remove unused variable src_addr.
15111 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
15112 deal with 64 bit registers.
15113 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
15114 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
15115 (UNITS_PER_LONG): New macro.
15116 * libjava/include/s390-signal.h: Define extended ucontext
15117 structure containing the upper halfs of the 64 bit registers.
15119 2010-04-13 Simon Baldwin <simonb@google.com>
15121 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
15123 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
15125 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
15126 rvalue on the RHS if the LHS is of a non-renamable type.
15127 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
15129 2010-04-13 Matthias Klose <doko@ubuntu.com>
15131 * gcc.c (cc1_options): Handle -iplugindir before processing
15132 the cc1 spec. Only add -iplugindir once.
15133 (cpp_unique_options): Add -iplugindir option if -fplugin* options
15135 * common.opt (iplugindir): Remove `Separate' property, initialize.
15136 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
15138 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
15139 (distclean): Remove plugin dir.
15140 * doc/invoke.texi: Document -iplugindir.
15142 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
15144 * doc/plugins.texi (Loading Plugins): Document short
15145 -fplugin=foo option.
15146 (Plugin API): Mention default_plugin_dir_name function.
15148 * gcc.c (find_file_spec_function): Add new declaration.
15149 (static_spec_func): Use it for "find-file".
15150 (find_file_spec_function): Add new function.
15151 (cc1_options): Add -iplugindir option if -fplugin* options found.
15153 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
15155 * plugin.c (add_new_plugin): Updated comment, and handle short
15157 (default_plugin_dir_name): Added new function.
15159 * common.opt (iplugindir): New option to set the plugin directory.
15161 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
15163 * config/i386/i386.md (any_rotate): New code iterator.
15164 (rotate_insn): New code attribute.
15166 (SWIM124): New mode iterator.
15167 (<rotate_insn>ti3): New expander.
15168 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
15169 any_rotate code iterator.
15170 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
15171 using any_rotate code iterator and SWIM124 mode iterator.
15172 (ix86_rotlti3): New insn_and_split pattern.
15173 (ix86_rotrti3): Ditto.
15174 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
15175 ix86_rotl{di,ti}3 patterns.
15176 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
15177 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
15178 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
15179 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
15180 code iterator and SWI mode iterator.
15181 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
15182 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
15184 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
15185 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
15186 (bswap rotatert splitter): Add splitter.
15187 (bswap splitter): Macroize splitter using any_rotate code iterator.
15188 Add insn predicate to split only for TARGET_USE_XCHGB or when
15189 optimizing function for size.
15191 2010-04-12 Steve Ellcey <sje@cup.hp.com>
15193 * config/pa/pa.c (emit_move_sequence): Remove use of
15194 deleted variable flag_argument_noalias.
15196 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15198 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
15200 Add to unsupported targets list.
15201 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
15202 sparc*-sun-solaris2.[567]* from target lists.
15203 * configure: Regenerate.
15204 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
15206 Remove Solaris 7 patch references.
15207 (Specific, sparc-sun-solaris2.7): Removed.
15208 (sparc-sun-solaris2*): Update Solaris 7 example.
15209 (sparc64-*-solaris2*): Likewise.
15211 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15213 * config.build (alpha*-dec-osf4*): Remove.
15214 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
15215 of obsolete configurations.
15216 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
15218 * config/alpha/t-osf4: Renamed to ...
15219 * config/alpha/t-osf5: ... this.
15220 * config/alpha/osf.h: Renamed to ...
15221 * config/alpha/osf5.h: ... this.
15222 Merged old osf5.h contents.
15224 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
15225 (EXTRA_SPECS): Removed.
15226 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
15227 reflect removal of Tru64 UNIX V4.0/V5.0 support.
15230 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15232 * doc/contrib.texi (Contributors, Rainer Orth): Update.
15234 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
15237 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
15238 __thiscall convention.
15240 2010-04-12 Steve Ellcey <sje@cup.hp.com>
15242 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
15244 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
15246 2010-04-12 Steve Ellcey <sje@cup.hp.com>
15248 * function.c (assign_parms_initialize_all): Add unused attribute
15251 2010-04-12 Richard Guenther <rguenther@suse.de>
15253 * gsstruct.def (GSS_CALL): New.
15254 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
15255 * gimple.h: Include tree-ssa-alias.h.
15256 (struct gimple_statement_call): New.
15257 (union gimple_statement_struct_d): Add gimple_call member.
15258 (gimple_call_reset_alias_info): Declare.
15259 (gimple_call_use_set): New function.
15260 (gimple_call_clobber_set): Likewise.
15261 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
15262 * gimple.c (gimple_call_reset_alias_info): New function.
15263 (gimple_build_call_1): Call it.
15264 * lto-streamer-in.c (input_gimple_stmt): Likewise.
15265 * tree-inline.c (remap_gimple_stmt): Likewise.
15266 (expand_call_inline): Remove callused handling.
15267 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
15268 * tree-dfa.c (dump_variable): Likewise.
15269 * tree-parloops.c (parallelize_loops): Likewise.
15270 * tree-ssa.c (init_tree_ssa): Likewise.
15271 (delete_tree_ssa): Likewise.
15272 * tree-flow-inline.h (is_call_used): Remove.
15273 * tree-flow.h (struct gimple_df): Remove callused member.
15274 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
15275 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
15276 (ref_maybe_used_by_call_p_1): Simplify.
15277 (call_may_clobber_ref_p_1): Likewise.
15278 * tree-ssa-structalias.c (compute_points_to_sets): Set
15279 the call stmt used and clobbered sets.
15280 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
15281 (find_tail_calls): Verify the tail call.
15283 2010-04-12 Richard Guenther <rguenther@suse.de>
15285 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
15286 single-iteration always-inline inlining.
15287 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
15288 (cgraph_decide_inlining): Do not handle always-inline specially.
15289 (try_inline): Remove always-inline cycle detection special case.
15290 Do not recurse on always-inlines.
15291 (cgraph_early_inlining): Do not iterate if not optimizing.
15292 (cgraph_gate_early_inlining): remove.
15293 (pass_early_inline): Run unconditionally.
15294 (gate_cgraph_decide_inlining): New function.
15295 (pass_ipa_inline): Use it. Do not run the IPA inliner if
15296 not inlining or optimizing.
15297 (cgraph_decide_inlining_of_small_functions): Also consider
15298 always-inline functions.
15299 (cgraph_default_inline_p): Return true for nodes which should
15300 disregard inline limits.
15301 (estimate_function_body_sizes): Assume zero size and time for
15302 nodes which are marked as disregarding inline limits.
15303 (cgraph_decide_recursive_inlining): Do not perform recursive
15304 inlining on always-inline nodes.
15306 2010-04-12 Jakub Jelinek <jakub@redhat.com>
15309 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
15310 for exprs satisfying handled_component_p.
15312 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
15314 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
15315 non-constant aggregate elements.
15317 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
15318 is a real initialization.
15320 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
15323 * c-decl.c (start_function): Move forward check for nested function.
15325 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
15327 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
15328 * config/sh/sh.c: Include reload.h.
15329 (sh_legitimize_reload_address): New.
15330 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
15331 sh_legitimize_reload_address.
15333 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
15335 * config/sh/sh.md (*movqi_pop): New insn pattern.
15336 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
15338 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
15340 * config/i386/i386.md (any_shiftrt): New code iterator.
15341 (shiftrt_insn): New code attribute.
15343 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
15344 using any_shiftrt code iterator.
15345 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
15346 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
15347 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
15348 pattern from corresponding peephole2 patterns.
15349 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
15350 using any_shiftrt code iterator.
15351 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
15352 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
15353 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
15354 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
15355 *{ashr,lshr}<mode>3_cmp_zext.
15356 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
15358 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
15360 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
15362 (*lshr<mode>3_cconly): Ditto.
15364 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
15366 * config/i386/i386.md (lshr<mode>3): Macroize expander from
15367 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
15368 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
15369 pattern from *lshr{di,ti}3_1 and corresponding splitters using
15371 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
15372 from corresponding peephole2 patterns.
15373 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
15374 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
15375 and *lshrdi3_1_rex64 using SWI mode iterator.
15376 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
15377 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
15378 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
15379 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
15380 and *lshrdi3_cmp_rex64 using SWI mode iterator.
15381 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
15382 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
15383 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
15384 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
15387 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
15389 * config/i386/i386.md (ashr<mode>3): Macroize expander from
15390 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
15391 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
15392 pattern from *ashr{di,ti}3_1 and corresponding splitters using
15394 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
15395 from corresponding peephole2 patterns.
15396 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
15397 (ashrsi3_cvt): Rename from ashrsi3_31.
15398 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
15399 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
15400 and x86_64_shift_adj_3 using SWI48 mode iterator.
15401 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
15402 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
15403 and *ashrdi3_1_rex64 using SWI mode iterator.
15404 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
15405 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
15406 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
15407 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
15408 and *ashrdi3_cmp_rex64 using SWI mode iterator.
15409 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
15410 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
15411 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
15412 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
15414 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
15415 * config/i386/i386.c (ix86_split_ashr): Update for renamed
15416 x86_shift<mode>_adj_3 expanders.
15418 2010-04-10 Wei Guozhi <carrot@google.com>
15421 * config/arm/arm.c (arm_pic_static_addr): New function.
15422 (legitimize_pic_address): Call arm_pic_static_addr when it detects
15424 (arm_output_addr_const_extra): Output expression for new pattern.
15425 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
15427 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
15429 * ira-costs.c (record_reg_classes): Ignore alternatives that are
15432 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
15433 * web.c: Include "insn-config.h" and "recog.h".
15434 (union_match_dups): New function.
15435 (web_main): Call it.
15436 (union_defs): Don't try to recognize match_dups.
15438 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
15439 if doing so would replace the entire pattern.
15441 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
15445 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
15446 and splitter pattern. Change splitter operand 1 predicate to
15449 2010-04-09 Martin Jambor <mjambor@suse.cz>
15451 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
15452 lattices are addresses of CONST_DECLs with the same initial value.
15453 (ipcp_print_all_lattices): Print values of CONST_DECLs.
15454 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
15456 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
15457 Bernd Schmidt <bernds@codesourcery.com>
15459 * loop-invariant.c (replace_uses): New static function.
15460 (move_invariant_reg): Use it to ensure we can replace the uses.
15462 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
15464 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
15466 (picochip_override_options): Enable section anchors only above -O1.
15467 (picochip_reorg): Fixed a couple of build warnings.
15469 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15471 * configure.ac (plugin -rdynamic test): Log result.
15472 * configure: Regenerate.
15473 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
15474 (RDYNAMIC_SPEC): Define.
15475 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
15477 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15479 * configure.ac: Determine Sun ld version numbers.
15480 (comdat_group): Restrict GNU ld version checks to gld.
15481 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
15482 (enable_comdat): Support --enable-comdat.
15483 * configure: Regenerate.
15484 * doc/install.texi (Configuration): Document --enable-comdat.
15486 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15488 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
15489 * config/sol2-gld.h: ... here.
15490 * config.gcc (sparc*-*-solaris2*): Reflect this.
15491 (i[34567]86-*-solaris2*): Use it.
15493 2010-04-09 Steve Ellcey <sje@cup.hp.com>
15495 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
15497 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
15499 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
15502 * diagnostic.c (diagnostic_initialize): Initialize
15503 some_warnings_are_errors.
15504 (diagnostic_finish): New.
15505 (diagnostic_action_after_output): Call it before exiting.
15506 (diagnostic_report_diagnostic): Do not print message here. Set
15507 some_warnings_are_errors.
15508 * diagnostic.h (diagnostic_context): Delete
15509 issue_warnings_are_errors_message. Add some_warnings_are_errors.
15510 (diagnostic_finish): Declare.
15511 * toplev.c (toplev_main): Call it before exit.
15513 2010-04-09 Jason Merrill <jason@redhat.com>
15516 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
15517 for incomplete type.
15520 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
15521 based on a warning flag.
15523 2010-04-09 Richard Guenther <rguenther@suse.de>
15525 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
15527 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
15530 * varasm.c (default_assemble_visibility): Wrap vars that are
15531 set, but unused, by targets without GAS.
15532 * config/rs6000/rs6000.c (paired_emit_vector_compare):
15533 Remove set, but unused, vars.
15534 (rs6000_legitimize_tls_address): Likewise.
15535 (altivec_expand_dst_builtin): Likewise.
15536 * config/darwin.c (machopic_classify_symbol): Likewise.
15537 (machopic_indirection_name): Likewise.
15539 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
15541 * config/i386/i386.md (DWI): New mode iterator.
15542 (S): New mode attribute.
15543 (shift_operand): Ditto.
15544 (shift_immediate_operand): Ditto.
15545 (ashl_input_operand): Ditto.
15546 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
15547 using SDWIM mode iterator.
15548 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
15549 pattern from *ashl{di,ti}3_1 and corresponding splitters using
15551 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
15552 from corresponding peephole2 patterns.
15553 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
15554 and x86_64_shift_adj_1 using SWI48 mode iterator.
15555 (x86_shift<mode>_adj_2): Ditto.
15556 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
15557 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
15558 using SWI48 mode iterator.
15559 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
15560 *ashldi3_cmp_rex64 using SWI mode iterator.
15561 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
15562 *ashldi3_cconly_rex64 using SWI mode iterator.
15563 * config/i386/i386.c (ix86_split_ashl): Update for renamed
15564 x86_shift<mode>_adj_{1,2}.
15565 (ix86_split_ashr): Ditto.
15566 (ix86_split_lshr): Ditto.
15568 2010-04-09 Richard Guenther <rguenther@suse.de>
15570 * target.h (builtin_conversion): Pass in input and output types.
15571 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
15572 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
15573 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
15574 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
15576 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
15578 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
15580 2010-04-09 Richard Guenther <rguenther@suse.de>
15583 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
15585 2010-04-09 Richard Guenther <rguenther@suse.de>
15587 * tree-vectorizer.h (struct _stmt_vec_info): Document
15588 that vectype is the type of the LHS.
15589 (supportable_widening_operation, supportable_narrowing_operation):
15590 Get both input and output vector types as arguments.
15591 (vect_is_simple_use_1): Declare.
15592 (get_same_sized_vectype): Likewise.
15593 * tree-vect-loop.c (vect_determine_vectorization_factor):
15594 Set STMT_VINFO_VECTYPE to the vector type of the def.
15595 (vectorizable_reduction): Adjust.
15596 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
15597 Adjust. Specify the output vector type.
15598 (vect_pattern_recog_1): Adjust.
15599 * tree-vect-stmts.c (get_same_sized_vectype): New function.
15600 (vectorizable_call): Adjust.
15601 (vectorizable_conversion): Likewise.
15602 (vectorizable_operation): Likewise.
15603 (vectorizable_type_demotion): Likewise.
15604 (vectorizable_type_promotion): Likewise.
15605 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
15607 (vect_is_simple_use_1): New function.
15608 (supportable_widening_operation): Get both input and output
15610 (supportable_narrowing_operation): Likewise.
15611 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
15613 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
15615 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
15616 __thiscall and _thiscall as predefined macros.
15617 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
15618 thiscall attribute handling.
15619 (ix86_comp_type_attributes): Likewise.
15620 (ix86_function_regparm): Likewise.
15621 (ix86_return_pops_args): Likewise.
15622 (init_cumulative_args): Likewise.
15623 (find_drap_reg): Likewise.
15624 (ix86_static_chain): Likewise.
15625 (x86_this_parameter): Likewise.
15626 (x86_output_mi_thunk): Likewise.
15627 (ix86_attribute_table): Add description for thiscall attribute.
15628 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
15629 * doc/extend.texi: Add documentation for thiscall.
15631 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
15634 * c.opt (Wint-to-pointer-cast): Available in C++.
15635 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
15637 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
15639 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
15640 * calls.c (expand_call): Pass the function type to aggregate_value_p.
15641 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
15642 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
15643 function type instead. Reorder and simplify checks.
15645 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
15647 2010-04-08 Jing Yu <jingyu@google.com>
15648 Zdenek Dvorak <ook@ucw.cz>
15650 PR tree-optimization/42720
15651 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
15652 loop unswitch conditions here from ...
15653 (tree_unswitch_single_loop): ... here.
15655 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
15657 * tree-if-conv.c: Fix comments and simplify logic.
15659 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
15661 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
15662 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
15663 (main_tree_if_conversion): Update call to tree_if_conversion.
15665 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
15668 * doc/invoke.texi (-b,-V): Delete.
15669 * doc/tm.texi: Do not mention -b.
15670 * gcc.c (display_help): Delete -b and -V.
15671 (process_command): Delete -b and -V.
15672 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
15674 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
15675 Wolfgang Gellerich <gellerich@de.ibm.com>
15677 Implement target hook for loop unrolling
15678 * target.h (loop_unroll_adjust): Add a new target hook function.
15679 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
15680 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
15681 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
15682 (s390_loop_unroll_adjust): Implement the new target hook for s390.
15683 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
15685 (decide_unroll_stupid): Likewise.
15687 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15690 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
15692 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15694 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
15695 (Specific, *-*-solaris2*): Likewise.
15696 Don't prefer Sun as over GNU as.
15698 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
15700 * config/s390/s390.c (override_options): Adjust the z10 defaults
15701 for max-unroll-times, max-completely-peeled-insns
15702 and max-completely-peel-times.
15704 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15706 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
15707 instructions for z10.
15708 (s390_expand_setmem): Likewise.
15709 (s390_expand_cmpmem): Likewise.
15711 2010-04-08 Richard Guenther <rguenther@suse.de>
15713 PR tree-optimization/43679
15714 * tree-ssa-pre.c (eliminate): Only propagate copies.
15716 2010-04-08 Jakub Jelinek <jakub@redhat.com>
15719 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
15720 set but not used variable warning.
15722 2010-04-08 Wei Guozhi <carrot@google.com>
15725 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
15726 (arm_size_rtx_costs): Call the new function when optimized for size.
15728 2010-04-08 Jakub Jelinek <jakub@redhat.com>
15731 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
15732 op0 is not a MEM, just return NULL instead of assertion
15734 (discover_nonconstant_array_refs): Don't walk debug stmts.
15736 2010-04-08 Doug Kwan <dougkwan@google.com>
15738 * configure.ac: Recognize gold and do not use its version number
15739 to test ld features.
15740 * configure: Regenerate.
15742 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
15744 PR middle-end/40815
15745 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
15746 (negate_value): Move code to push elements to broken_up_substracts ...
15747 (eliminate_plus_minus_pair): ... here. Push operands that have no
15748 negative pair to plus_negates.
15749 (repropagate_negates, init_reassoc, fini_reassoc): Update.
15751 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15753 * doc/install.texi (Configuration): Move description of
15754 --enable-lto, --with-libelf*, --enable-gold from Java section to
15757 * doc/generic.texi (Working with declarations)
15758 (Function Properties, C and C++ Trees): Fix typos.
15759 * doc/sourcebuild.texi (Top Level): Likewise.
15761 2010-04-07 Jakub Jelinek <jakub@redhat.com>
15764 * tree.h (DECL_READ_P): Define.
15765 (struct tree_decl_common): Add decl_read_flag.
15766 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
15767 a set but not used warning.
15768 (merge_decls): Merge DECL_READ_P flag.
15769 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
15770 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
15771 * c-common.c (handle_used_attribute, handle_unused_attribute):
15773 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
15775 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
15777 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
15778 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
15779 c_parser_binary_expression, c_parser_cast_expression,
15780 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
15781 Call default_function_array_read_conversion instead of
15782 default_function_array_conversion where needed.
15783 (c_parser_unary_expression, c_parser_conditional_expression,
15784 c_parser_postfix_expression_after_primary, c_parser_initelt):
15785 Likewise. Call mark_exp_read where needed.
15786 (c_parser_statement_after_labels, c_parser_asm_operands,
15787 c_parser_typeof_specifier, c_parser_sizeof_expression,
15788 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
15790 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
15792 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
15793 (warn_unused_but_set_parameter): Default to warn_unused
15795 * doc/invoke.texi: Document -Wunused-but-set-variable and
15796 -Wunused-but-set-parameter.
15798 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
15799 used count variable.
15800 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
15801 when operandN variables aren't used in the body of the expander
15803 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
15804 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
15805 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
15806 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
15807 FOR_EACH_IMM_USE_ON_STMT): Likewise.
15808 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
15809 * tree.c (PROCESS_ARG): Likewise.
15811 2010-04-07 Simon Baldwin <simonb@google.com>
15813 * diagnostic.h (diagnostic_override_option_index): New macro to
15814 set a diagnostic's option_index.
15815 * c-tree.h (c_cpp_error): Add warning reason argument.
15816 * opts.c (_warning_as_error_callback): New.
15817 (register_warning_as_error_callback): Store callback for
15818 warnings enabled via enable_warning_as_error.
15819 (enable_warning_as_error): Call callback, minor code tidy.
15820 * opts.h (register_warning_as_error_callback): Declare.
15821 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
15822 response to -Werror=.
15823 (c_common_init_options): Register warning_as_error_callback in opts.c.
15824 * common.opt: Add -Wno-cpp option.
15825 * c-common.c (struct reason_option_codes_t): Map cpp warning
15826 reason codes to gcc option indexes.
15827 * (c_option_controlling_cpp_error): New function, lookup the gcc
15828 option index for a cpp warning reason code.
15829 * (c_cpp_error): Add warning reason argument, call
15830 c_option_controlling_cpp_error for diagnostic_override_option_index.
15831 * doc/invoke.texi: Document -Wno-cpp.
15833 2010-04-07 Richard Guenther <rguenther@suse.de>
15835 * ipa-reference.c (mark_load): Use get_base_address.
15836 (mark_store): Likewise.
15838 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
15839 inserting GIMPLE_NOPs into the IL.
15840 * tree-ssa-structalias.c (get_constraint_for_component_ref):
15841 Explicitly strip handled components and indirect references.
15843 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
15844 folding address expressions.
15845 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
15846 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
15847 operand_equal_p to compare decls.
15848 (ptr_deref_may_alias_decl_p): Likewise.
15849 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
15850 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
15851 Handle reversed comparison ops.
15852 * tree-sra.c (asm_visit_addr): Use get_base_address.
15853 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
15854 * ipa-reference.c (mark_address): Use get_base_address.
15856 2010-04-07 Richard Guenther <rguenther@suse.de>
15858 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
15859 Propagate constants everywhere.
15861 2010-04-07 Jakub Jelinek <jakub@redhat.com>
15864 * tree.c (MAX_INT_CACHED_PREC): Define.
15865 (nonstandard_integer_type_cache): New array.
15866 (build_nonstandard_integer_type): Cache results for precision
15867 <= MAX_INT_CACHED_PREC.
15869 2010-04-07 Richard Guenther <rguenther@suse.de>
15871 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
15872 -fargument-noalias-global, -fargument-noalias-anything): Remove.
15873 * common.opt: Likewise.
15874 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
15875 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
15876 (nonoverlapping_memrefs_p): Likewise.
15877 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
15878 * opts.c (common_handle_option): Handle OPT_fargument_alias,
15879 OPT_fargument_noalias, OPT_fargument_noalias_anything and
15880 OPT_fargument_noalias_global for backward compatibility.
15882 2010-04-07 Richard Guenther <rguenther@suse.de>
15884 PR tree-optimization/43270
15885 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
15886 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
15887 * tree-ssa-pre.c (phi_translate_1): Adjust.
15888 (fully_constant_expression): Split out vn_reference handling to ...
15889 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
15890 Fold reads from constant strings.
15891 (vn_reference_lookup): Handle fully constant references.
15892 (vn_reference_lookup_pieces): Likewise.
15893 * Makefile.in (expmed.o-warn): Add -Wno-error.
15895 2010-04-07 Martin Jambor <mjambor@suse.cz>
15897 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
15899 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
15902 * gcc.c: Add -static-libstdc++ to list of recognized options.
15904 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15906 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
15908 2010-04-07 Richard Guenther <rguenther@suse.de>
15910 PR middle-end/42617
15911 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
15912 bases build simple mem attributes to retain points-to information.
15914 2010-04-07 Richard Guenther <rguenther@suse.de>
15916 PR middle-end/42617
15917 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
15918 preserve points-to related information.
15920 2010-04-07 Richard Guenther <rguenther@suse.de>
15922 PR middle-end/42617
15923 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
15924 discard plain indirect references.
15925 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
15926 * tree.c (tree_nop_conversion): Likewise.
15928 2010-04-07 Dodji Seketeli <dodji@redhat.com>
15931 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
15933 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
15935 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
15936 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
15938 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
15940 * tree-if-conv.c: Fix indentation and comments.
15942 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
15944 * tree-if-conv.c: Sort static functions in topological order.
15946 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
15948 * tree-if-conv.c: Fix indentation and comments.
15950 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15952 PR middle-end/43519
15953 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
15954 lang_hooks.types.type_for_size instead of
15955 build_nonstandard_integer_type.
15956 When converting an unsigned type to signed, double its precision.
15957 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
15958 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
15959 (graphite_create_new_loop_guard): When ub + 1 wraps around,
15962 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15964 PR middle-end/43519
15965 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
15966 POINTER_PLUS_EXPR for pointer types.
15968 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
15970 PR middle-end/43519
15971 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
15972 * graphite-clast-to-gimple.c: Include langhooks.h.
15973 (max_signed_precision_type): New.
15974 (max_precision_type): Takes two types as arguments.
15975 (precision_for_value): New.
15976 (precision_for_interval): New.
15977 (gcc_type_for_interval): New.
15978 (gcc_type_for_value): New.
15979 (gcc_type_for_clast_term): New.
15980 (gcc_type_for_clast_red): New.
15981 (gcc_type_for_clast_bin): New.
15982 (gcc_type_for_clast_expr): Split up into several functions.
15983 (gcc_type_for_clast_eq): Rewritten.
15984 (compute_bounds_for_level): New.
15985 (compute_type_for_level_1): New.
15986 (compute_type_for_level): New.
15987 (gcc_type_for_cloog_iv): Removed.
15988 (gcc_type_for_iv_of_clast_loop): Rewritten.
15989 (graphite_create_new_loop): Compute the lower and upper bound types
15990 with gcc_type_for_clast_expr.
15991 (graphite_create_new_loop_guard): Same.
15992 (find_cloog_iv_in_expr): Removed.
15993 (compute_cloog_iv_types_1): Removed.
15994 (compute_cloog_iv_types): Removed.
15995 (gloog): Do not call compute_cloog_iv_types.
15996 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
15997 GBB_CLOOG_IV_TYPES.
15998 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
15999 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
16000 (GBB_CLOOG_IV_TYPES): Removed.
16002 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
16004 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
16005 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
16006 (detect_commutative_reduction): Same.
16008 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
16010 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
16011 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
16013 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
16014 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
16015 (rewrite_commutative_reductions_out_of_ssa): Same.
16016 * passes.c (execute_function_todo): Call verify_ssa for every pass
16017 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
16018 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
16019 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
16020 with an extra argument.
16021 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
16022 verify_ssa only when the extra argument is true.
16023 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
16024 with an extra argument.
16025 (tree_transform_and_unroll_loop): Same.
16027 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
16029 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
16030 for all the passes of the LNO having LOOP_CLOSED_SSA.
16031 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
16032 * tree-loop-distribution.c (pass_loop_distribution): Same.
16033 * tree-pass.h (TODO_verify_loops): Removed.
16034 * tree-ssa-loop.c (pass_tree_loop_init): Same.
16036 (pass_tree_unswitch): Same.
16037 (pass_predcom): Same.
16038 (pass_vectorize): Same.
16039 (pass_linear_transform): Same.
16040 (pass_graphite_transforms): Same.
16041 (pass_iv_canon): Same.
16042 (pass_complete_unroll): Same.
16043 (pass_complete_unrolli): Same.
16044 (pass_parallelize_loops): Same.
16045 (pass_loop_prefetch): Same.
16046 (pass_iv_optimize): Same.
16048 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
16050 PR middle-end/32824
16051 * passes.c (init_optimization_passes): Move pass_lim before
16052 pass_copy_prop and pass_dce_loop.
16054 2010-04-06 Jakub Jelinek <jakub@redhat.com>
16057 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
16058 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
16059 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
16060 MULTI_* defines for 4 argument vpermil2p* builtins.
16062 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
16064 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
16065 * config/i386/i386.c (x86_maybe_negate_const_int): New.
16066 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
16067 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
16068 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
16069 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
16070 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
16071 Use x86_maybe_negate_const_int to output insn mnemonic.
16072 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
16073 check from instruction predicate. Update comments.
16074 * config/i386/sync.md (sync_add<mode>): Use
16075 x86_maybe_negate_const_int to output insn mnemonic.
16077 2010-04-06 Jan Hubicka <jh@suse.cz>
16079 PR tree-optimization/42906
16080 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
16081 IGNORE_SELF argument. Set visited_control_parents for fully
16083 (find_obviously_necessary_stmts): Update call of
16084 mark_control_dependent_edges_necessary.
16085 (propagate_necessity): Likewise. Handle PHI edges more curefully.
16087 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
16089 * config/i386/i386.md: Remove comment about 'e' and 'E'
16092 2010-04-06 Richard Guenther <rguenther@suse.de>
16094 PR tree-optimization/43627
16095 * tree-vrp.c (extract_range_from_unary_expr): Widenings
16096 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
16099 2010-04-06 Jakub Jelinek <jakub@redhat.com>
16101 * BASE-VER: Change to 4.6.0.
16104 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
16107 2010-04-06 Richard Guenther <rguenther@suse.de>
16109 PR middle-end/43661
16110 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
16112 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16114 * doc/invoke.texi (Optimize Options): Document that LTO
16115 won't remove object access purely due to incompatible
16118 2010-04-04 Matthias Klose <doko@ubuntu.com>
16120 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
16121 Initialize variable.
16123 2010-04-03 Richard Guenther <rguenther@suse.de>
16125 PR middle-end/42509
16126 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
16127 require a non-NULL MEM_OFFSET.
16129 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
16131 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
16132 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
16133 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
16134 config/alpha/predicates.md, config/arm/arm.md,
16135 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
16136 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
16137 config/darwin9.h, config/darwin.c, config/darwin.h,
16138 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
16139 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
16140 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
16141 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
16142 config/mips/mips.md, config/mn10300/mn10300.c,
16143 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
16144 config/rs6000/aix.h, config/rs6000/dfp.md,
16145 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
16146 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
16147 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
16148 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
16149 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
16150 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
16151 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
16152 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
16153 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
16154 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
16155 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
16156 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
16157 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
16158 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
16159 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
16160 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
16161 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
16162 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
16163 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
16164 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
16165 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
16166 opt-functions.awk, opth-gen.awk, params.def, passes.c,
16167 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
16168 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
16169 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
16170 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
16171 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
16172 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
16173 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
16174 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
16175 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
16176 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
16177 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
16178 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
16179 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
16180 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
16182 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16185 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
16186 * aclocal.m4: Regenerate.
16188 2010-04-02 Richard Guenther <rguenther@suse.de>
16190 PR tree-optimization/43629
16191 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
16192 if we have seen a constant value.
16194 2010-04-02 Joseph Myers <joseph@codesourcery.com>
16196 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
16198 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
16201 * arm.c (legitimize_tls_address): Adjust call to
16202 gen_tls_load_dot_plus_four.
16203 (arm_note_pic_base): New function.
16204 (arm_cannot_copy_insn_p): Use it.
16205 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
16208 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16213 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16215 * Makefile.in ($(out_object_file)): Depend on
16216 gt-$(basename $(notdir $(out_file))).h.
16218 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
16220 * config.gcc (lm32-*-rtems*): Add t-lm32.
16222 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
16224 * config.gcc: Add lm32-*-rtems*.
16225 * config/lm32/rtems.h: New file.
16227 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
16230 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
16232 2010-04-01 Jakub Jelinek <jakub@redhat.com>
16234 * dwarf2out.c (output_compilation_unit_header): For
16235 -gdwarf-4 use version 4 instead of version 3.
16236 (output_line_info): For version 4 and above emit additional
16237 maximum ops per insn header field.
16238 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
16240 * dwarf2out.c (is_c_family, is_java): Remove.
16241 (lower_bound_default): New function.
16242 (add_bound_info, gen_descr_array_type_die): Use it.
16244 2010-04-01 Dodji Seketeli <dodji@redhat.com>
16247 * dwarf2out.c (gen_variable_die): Allow debug info for variable
16248 re-declaration when it happens in a function.
16250 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
16252 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
16253 (cgraph_remove_function_insertion_hook): Same.
16254 (cgraph_call_function_insertion_hooks): Same.
16256 2010-04-01 Richard Guenther <rguenther@suse.de>
16258 PR middle-end/43614
16259 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
16260 and TREE_THIS_VOLATILE.
16261 (copy_ref_info): Likewise.
16262 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
16263 * tree.c (build6_stat): Ignore side-effects of all but arg5
16264 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
16267 2010-04-01 Richard Guenther <rguenther@suse.de>
16269 PR tree-optimization/43607
16270 * ipa-type-escape.c (check_call): Do not access non-existing
16273 2010-04-01 Richard Guenther <rguenther@suse.de>
16275 PR middle-end/43602
16277 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
16278 Jack Howarth <howarth@bromo.med.uc.edu>
16280 * tree-profile.c (tree_init_ic_make_global_vars): Make static
16283 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16285 * doc/install.texi (Prerequisites): Document libelf usability on
16286 IRIX 5/6 and Solaris 2.
16287 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
16288 Update GNU as, GNU ld requirements.
16289 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
16290 Document Sun Studio compiler download.
16291 Update and simplify as, ld recommendations.
16292 (Specific, *-*-solaris2.7): Note obsoletion, removal.
16294 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16296 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
16297 with_tune_32 to pentium4.
16299 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
16301 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
16303 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16305 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
16306 obsoletion, removal.
16308 Document GNU as requirement.
16309 Update configure requirements.
16310 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
16311 Recomment IRIX 6.5.18+.
16312 Document IDF/IDL requirement.
16313 Document GNU as requirement.
16314 Document GNU ld bootstrap failure.
16315 Remove freeware.sgi.com reference.
16317 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16319 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
16320 UNIX V4.0, V5.0 obsoletion, removal.
16321 Remove --with-gc=simple reference.
16322 Update VM requirements during bootstrap.
16323 Remove -oldas bootstrap description.
16324 Update binutils reference.
16325 Remove comparison failure note.
16327 2010-03-31 Richard Guenther <rguenther@suse.de>
16328 Zdenek Dvorak <ook@ucw.cz>
16329 Sebastian Pop <sebastian.pop@amd.com>
16331 PR middle-end/43464
16332 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
16333 with multiple arguments.
16334 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
16336 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
16338 * graphite-dependences.c (print_pddr): Call print_pdr with an
16340 * graphite-poly.c (debug_pdr): Add an extra argument for the
16343 (print_pbb_domain): Same.
16345 (print_scop_context): Same.
16346 (print_scop): Same.
16347 (print_cloog): Same.
16348 (debug_pbb_domain): Same.
16350 (print_pdrs): Same.
16351 (debug_pdrs): Same.
16352 (debug_scop_context): Same.
16353 (debug_scop): Same.
16354 (debug_cloog): Same.
16355 (print_scop_params): Same.
16356 (debug_scop_params): Same.
16357 (print_iteration_domain): Same.
16358 (print_iteration_domains): Same.
16359 (debug_iteration_domain): Same.
16360 (debug_iteration_domains): Same.
16361 (print_scattering_function): Same.
16362 (print_scattering_functions): Same.
16363 (debug_scattering_function): Same.
16364 (debug_scattering_functions): Same.
16365 * graphite-poly.h (debug_pdr): Update declaration.
16367 (print_pbb_domain): Same.
16369 (print_scop_context): Same.
16370 (print_scop): Same.
16371 (print_cloog): Same.
16372 (debug_pbb_domain): Same.
16374 (print_pdrs): Same.
16375 (debug_pdrs): Same.
16376 (debug_scop_context): Same.
16377 (debug_scop): Same.
16378 (debug_cloog): Same.
16379 (print_scop_params): Same.
16380 (debug_scop_params): Same.
16381 (print_iteration_domain): Same.
16382 (print_iteration_domains): Same.
16383 (debug_iteration_domain): Same.
16384 (debug_iteration_domains): Same.
16385 (print_scattering_function): Same.
16386 (print_scattering_functions): Same.
16387 (debug_scattering_function): Same.
16388 (debug_scattering_functions): Same.
16390 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
16392 * graphite-poly.c (print_scattering_function_1): New.
16393 (print_scattering_function): Call it.
16394 (print_scop_params): Remove spaces at the end of lines.
16395 (print_cloog): New.
16396 (debug_cloog): New.
16397 * graphite-poly.h (print_cloog): Declared.
16398 (debug_cloog): Declared.
16400 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
16402 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
16404 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
16405 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
16406 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
16407 to switch between adding the IV bump in loop->latch or in loop->header.
16409 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
16411 * graphite-poly.c (print_scattering_function): Pretty print following
16412 the scoplib format.
16414 (print_pbb_domain): Same.
16415 (dump_gbb_cases): Same.
16416 (dump_gbb_conditions): Same.
16417 (print_pdrs): Same.
16419 (print_scop_params): Same.
16420 (print_scop_context): Same.
16421 (print_scop): Same.
16422 (print_pbb_body): New.
16423 (lst_indent_to): New.
16424 (print_lst): Start new lines with a #.
16425 * graphite-poly.h (pbb_bb): New.
16426 (pbb_index): Use pbb_bb.
16427 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
16429 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
16431 2010-03-31 Jakub Jelinek <jakub@redhat.com>
16433 * dwarf2out.c (size_of_die): For -gdwarf-4 use
16434 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
16435 and 0 instead of 1 for dw_val_class_flag.
16436 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
16437 dw_val_class_range_list, dw_val_class_loc_list,
16438 dw_val_class_lineptr and dw_val_class_macptr, use
16439 DW_FORM_flag_present for dw_val_class_flag and
16440 DW_FORM_exprloc for dw_val_class_loc.
16441 (output_die): For -gdwarf-4 print dw_val_class_loc
16442 size as uleb128 instead of 1 or 2 bytes and don't print
16443 anything for dw_val_class_flag.
16445 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
16446 instead of cselib_lookup following by tweaking locs->setting_insn.
16449 * cselib.c (cselib_process_insn): Clear cselib_current_insn
16450 even before returning from label, setjmp call or volatile asm
16453 2010-03-31 Richard Guenther <rguenther@suse.de>
16455 PR middle-end/43600
16456 * cgraphunit.c (cgraph_output_in_order): Do not allocate
16457 temporary data on stack.
16459 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16461 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
16462 (PUSHSECTION_ASM_OP): Remove.
16463 (POPSECTION_ASM_OP): Remove.
16464 (PUSHSECTION_FORMAT): Remove.
16465 * config/sol2.h (PUSHSECTION_FORMAT): Define.
16466 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
16467 * config/sol2.c (solaris_output_init_fini): Use it.
16469 2010-03-31 Jie Zhang <jie@codesourcery.com>
16472 * opt-functions.awk (var_type_struct): Use signed char type
16473 for simple variables.
16475 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16477 * config/sol2.c: Include output.h.
16478 (solaris_assemble_visibility): New function.
16479 * config/t-sol2 (sol2.o): Add output.h dependency.
16480 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
16481 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
16484 2010-03-31 Jakub Jelinek <jakub@redhat.com>
16487 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
16488 V2SImode or XFmode on PRE_DEC.
16491 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
16494 2010-03-31 Jie Zhang <jie@codesourcery.com>
16497 * reload.h (caller_save_initialized_p): Declare.
16498 * toplev.c (backend_init_target): Don't call
16499 init_caller_save but set caller_save_initialized_p to false.
16500 * caller-save.c (caller_save_initialized_p): Define.
16501 (init_caller_save): Check caller_save_initialized_p.
16502 * ira.c (ira): Call init_caller_save if flag_caller_saves.
16504 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16507 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
16508 and soft-fp/t-softfp to tmake_file.
16509 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
16510 (LIBGCC2_TF_CEXT): Define.
16513 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
16516 * cselib.c (n_useless_values): Document handling of debug locs.
16517 (n_useless_debug_values, n_debug_values): New variables.
16518 (new_elt_loc_list): Don't add to debug values, keep count.
16519 (promote_debug_loc): New.
16520 (cselib_reset_table): Zero new variables.
16521 (entry_and_rtx_equal_p): Promote debug locs.
16522 (discard_useless_locs): Increment n_useless_debug_values for
16524 (remove_useless_values): Adjust n_useless_values and n_debug_values
16525 with n_useless_debug_values.
16526 (add_mem_for_addr): Promote debug locs.
16527 (cselib_lookup_mem): Likewise.
16528 (cselib_lookup_addr): Renamed to...
16529 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
16530 (cselib_log_lookup): ... this. Turn into...
16531 (cselib_lookup_addr): ... new wrapper.
16532 (cselib_lookup_from_insn): New.
16533 (cselib_invalidate_regno): Increment n_useless_debug_values for
16535 (cselib_invalidate_mem): Likewise.
16536 (cselib_process_insn): Take n_deleted and n_debug_values into
16537 account to guard remove_useless_value call.
16538 (cselib_finish): Zero n_useless_debug_values.
16539 * cselib.h (cselib_lookup_from_insn): Declare.
16540 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
16541 (sched_analyze_2): Likewise.
16543 2010-03-30 Jakub Jelinek <jakub@redhat.com>
16545 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
16547 (adjust_mems): Replace narrowing SUBREG of expression containing
16548 just PLUS, MINUS, MULT and ASHIFT of registers and constants
16549 with operations in the narrower mode.
16552 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
16553 regs_invalidated_by_call instead all call_used_reg_set registers.
16555 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
16557 PR middle-end/43430
16558 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
16559 pointer comparisons with types_compatible_p.
16560 * tree-vect-stmts.c (vectorizable_call): Same.
16561 (vectorizable_condition): Same.
16563 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16565 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
16566 stack check if the mask would be zero.
16568 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
16569 Jack Howarth <howarth@bromo.med.uc.edu>
16571 * tree-profile.c (tree_init_ic_make_global_vars): Make static
16574 2010-03-30 Joseph Myers <joseph@codesourcery.com>
16577 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
16579 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
16580 Include ___unordxf2 and ___unordtf2.
16581 * config/i386/libgcc-glibc.ver: Do not define inheritance from
16584 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
16586 * config/lm32/t-lm32: New file.
16587 * config.gcc: Use the above file when targetting lm32.
16589 2010-03-28 Duncan Sands <baldrick@free.fr>
16591 * Makefile.in (PLUGIN_HEADERS): Add except.h.
16593 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
16595 PR middle-end/43431
16596 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
16597 Improve vectorization cost model diagnostic.
16599 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
16601 PR middle-end/43436
16602 * tree-vect-data-refs.c (vect_analyze_data_refs): When
16603 compute_data_dependences_for_loop returns false, early exit
16604 and output an extra diagnostic for the failed data reference
16607 2010-03-29 Richard Guenther <rguenther@suse.de>
16609 PR tree-optimization/43560
16610 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
16611 (can_sm_ref_p): Treat stores to readonly locations as trapping.
16613 2010-03-29 Jie Zhang <jie@codesourcery.com>
16616 * toplev.c (process_options): Set optimization_default_node
16617 and optimization_current_node.
16618 * opts.c (decode_options): Don't set optimization_default_node
16619 and optimization_current_node.
16621 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
16623 * config/rtems.h: Abandon -qrtems_debug.
16625 2010-03-28 Jan Hubicka <jh@suse.cz>
16627 PR tree-optimization/43505
16628 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
16629 map should not be copied.
16631 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16633 PR middle-end/41674
16634 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
16635 cdtors, set DECL_PRESERVE_P.
16636 * ipa.c (cgraph_externally_visible_p): Return true if declaration
16637 should be preseved.
16639 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
16641 PR tree-optimization/43528
16642 * stor-layout.c (place_field): Check that constant fits into
16643 unsigned HWI when skipping calculation of MS bitfield layout.
16645 2010-03-27 Jan Hubicka <jh@suse.cz>
16647 PR middle-end/43391
16648 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
16649 notice_global_symbol work.
16651 2010-03-27 Jakub Jelinek <jakub@redhat.com>
16653 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
16654 instead of dwarf2out_decl.
16655 (struct var_loc_node): Remove section_label field.
16656 (dwarf2out_function_decl): New function.
16657 (dwarf2out_var_location): Don't set section_label field.
16658 (dwarf2out_begin_function): Don't empty decl_loc_table here.
16660 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16662 PR tree-optimization/43544
16663 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
16664 First argument for builtin vectorized function hook is now a
16665 tree to be able to distinguish between machine specific and
16667 * targhooks.c (default_builtin_vectorized_function): Ditto.
16668 * targhooks.h (default_builtin_vectorized_function): Ditto.
16669 * target.h (struct gcc_target): Ditto.
16670 * tree-vect-stmts.c (vectorizable_function): Ditto.
16671 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
16672 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
16675 2010-03-26 Joseph Myers <joseph@codesourcery.com>
16678 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
16679 nested binding iff it is a FUNCTION_DECL.
16680 (store_parm_decls_newstyle): Pass nested=true to bind for
16681 FUNCTION_DECLs amongst parameters.
16683 2010-03-26 Jakub Jelinek <jakub@redhat.com>
16685 * var-tracking.c (vt_expand_loc_callback): Don't run
16686 cselib_expand_value_rtx_cb in dummy mode if
16687 cselib_dummy_expand_value_rtx_cb returned false.
16689 * var-tracking.c (emit_note_insn_var_location): For one part
16690 notes with offset 0, don't add EXPR_LIST around the location.
16691 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
16692 add_location_or_const_value_attribute): Adjust for that change.
16695 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
16696 into first operand and location into second.
16697 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
16698 dw_cfi_oprnd_loc for DW_CFA_expression.
16699 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
16700 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
16701 assume first argument is regnum and second argument is location.
16703 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
16706 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
16707 of scratch register to DImode. Split to DImode comparison operator.
16708 Use SImode subreg of scratch register in the multiplication.
16709 (*cmp_sadd_sidi): Ditto.
16710 (*cmp_ssub_si): Ditto.
16711 (*cmp_ssub_sidi): Ditto.
16713 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
16716 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
16717 Remove invalid assert and wrong comment.
16719 2010-03-26 Jakub Jelinek <jakub@redhat.com>
16722 * flags.h (final_insns_dump_p): New extern.
16723 * final.c (final_insns_dump_p): New variable.
16724 (rest_of_clean_state): Set it before -fdump-final-insns=
16725 dumping, clear afterwards.
16726 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
16727 MEM_ALIAS_SET on MEMs.
16729 2010-03-26 David S. Miller <davem@davemloft.net>
16731 * configure.ac: Fix sparc GOTDATA_OP bug check.
16732 * configure: Rebuild.
16734 2010-03-26 Alan Modra <amodra@gmail.com>
16736 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
16738 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16740 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
16741 TLS_SECTION_ASM_FLAG.
16743 2010-03-25 Jakub Jelinek <jakub@redhat.com>
16746 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
16747 Clear first_function_block_is_cold.
16750 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
16751 argument if the argument is truth_value_p.
16753 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16755 * config/rs6000/constraints.md: Update copyright year for my changes.
16758 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
16759 used in reg+reg addressing, swap registers.
16761 2010-03-24 Jakub Jelinek <jakub@redhat.com>
16764 * target.h (struct gcc_target): Add code_end hook.
16765 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
16766 if not yet defined.
16767 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
16768 * toplev.c (compile_file): Call targetm.asm_out.code_end
16769 hook before unwind info/debug info output.
16770 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
16771 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
16772 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
16773 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
16774 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
16775 * config/i386/i386.c (ix86_file_end): Renamed to...
16776 (ix86_code_end): ... this. Make static. Don't call
16777 file_end_indicate_exec_stack. Emit unwind info using
16778 final_start_function/final_end_function.
16779 (darwin_x86_file_end): Remove.
16780 (TARGET_ASM_CODE_END): Define.
16781 * config/i386/i386.h (TARGET_ASM_FILE_END,
16782 NEED_INDICATE_EXEC_STACK): Don't define.
16783 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
16784 (TARGET_ASM_FILE_END): Define to darwin_file_end.
16785 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
16786 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
16789 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
16790 at the beginning and final_end_function at the end.
16791 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
16793 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16795 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
16796 and Sun as TLS syntax.
16797 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
16798 * configure: Regenerate.
16799 * config.in: Regenerate.
16800 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
16801 (default_elf_asm_named_section): Use it.
16802 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
16803 (i386_output_dwarf_dtprel): Likewise.
16804 (output_addr_const_extra): Likewise.
16805 (output_pic_addr_const): Lowercase @GOTTPOFF.
16806 (output_addr_const_extra): Likewise.
16807 (output_pic_addr_const): Lowercase @GOTNTPOFF.
16808 (output_addr_const_extra): Likewise.
16809 (output_pic_addr_const): Lowercase @INDNTPOFF.
16810 (output_addr_const_extra): Likewise.
16811 (output_pic_addr_const): Lowercase @NTPOFF.
16812 (output_addr_const_extra): Likewise.
16813 (output_pic_addr_const): Lowercase @TPOFF.
16814 (output_addr_const_extra): Likewise.
16815 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
16816 (*tls_global_dynamic_64): Likewise.
16817 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
16818 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
16820 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
16821 (ASM_OUTPUT_TLS_COMMON): Use it.
16822 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
16825 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
16826 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
16827 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
16828 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
16829 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
16830 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
16832 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16834 * config/i386/i386.c (override_options): Don't accept
16835 -mtls-dialect=sun any longer.
16836 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
16837 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
16838 (*tls_local_dynamic_base_32_sun): Likewise.
16839 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
16841 2010-03-24 Jakub Jelinek <jakub@redhat.com>
16844 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
16845 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
16848 * ira.c (adjust_cleared_regs): New function.
16849 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
16853 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
16855 * expr.c (expand_expr_real): Restore previous
16856 curr_insn_source_location and curr_insn_block after
16857 expand_expr_real_1 call.
16858 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
16859 instead of expand_expr_real_1.
16861 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
16863 PR rtl-optimization/43413
16864 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
16867 2010-03-22 James E. Wilson <wilson@codesourcery.com>
16870 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
16871 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
16873 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
16875 * config/i386/i386.c (ix86_target_string): Add -mfma.
16876 Fix a typo in comment.
16878 2010-03-22 Mike Stump <mikestump@comcast.net>
16881 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
16882 Don't overly align based upon packed packed fields.
16884 2010-03-22 Jason Merrill <jason@redhat.com>
16886 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
16887 Use () rather than [], and move before the element type.
16889 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16891 * doc/configfiles.texi (Configuration Files): Removed
16892 fixinc/Makefile*, intl/Makefile.*.
16893 * doc/makefile.texi: Fixed markup. Abstract from version
16894 control system used.
16895 (Makefile): Removed obsolete gcc/java/parse.y example.
16896 * doc/sourcebuild.texi: Likewise.
16897 (Top Level): Added config, gnattools, libdecnumber, libgcc,
16898 libgomp, libssp. Removed fastjar.
16899 (Miscellaneous Docs): Clarify location.
16900 Added COPYING3, COPYING3.LIB.
16901 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
16903 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16906 * config/i386/i386.c (x86_function_profiler)
16907 [!NO_PROFILE_COUNTERS]: Fix typo.
16908 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
16911 2010-03-22 Janis Johnson <janis187@us.ibm.com>
16912 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16914 * doc/sourcebuild.texi (Test Directives): Split into six
16915 subsections, with most of the current text in new subsections
16916 Directives, Selectors, and Final Actions.
16917 (Directives): Split list of test directives into multiple
16919 (Selectors): Describe use and syntax of selectors.
16920 (Effective-Target Keywords): Describe all existing keywords.
16921 (Add Options): Describe features for dg-add-options.
16922 (Require Support): Describe variants of dg-require-support.
16923 (Final Actions): Describe commands to use in dg-final.
16925 2010-03-22 Michael Matz <matz@suse.de>
16927 PR middle-end/43475
16928 * recog.c (validate_replace_rtx_group): Replace also in
16929 REG_EQUAL and REG_EQUIV notes.
16931 2010-03-22 Richard Guenther <rguenther@suse.de>
16933 PR tree-optimization/43390
16934 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
16935 sure vector extracts are type correct.
16937 2010-03-22 Richard Guenther <rguenther@suse.de>
16939 PR middle-end/40106
16940 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
16941 x * sqrt (x) even when optimizing for size if the target
16942 has native support for sqrt.
16944 2010-03-22 Jakub Jelinek <jakub@redhat.com>
16946 * varasm.c (make_decl_rtl_for_debug): Also clear
16947 flag_mudflap for the duration of make_decl_rtl call.
16950 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
16951 locs from preserved VALUEs.
16953 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16955 PR middle-end/42718
16956 * pa.md (movmemsi): Set align to one if zero.
16957 (movmemdi): Likewise.
16959 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
16962 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
16963 with their corresponding prologue pushes.
16965 2010-03-20 Andrew Pinski <pinskia@gmail.com>
16968 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
16969 at the begining or end.
16970 (spu_expand_epilogue): Likewise.
16972 2010-03-20 Richard Guenther <rguenther@suse.de>
16974 PR rtl-optimization/43438
16975 * combine.c (make_extraction): Properly zero-/sign-extend an
16976 extraction of the low part of a CONST_INT. Also handle
16979 2010-03-19 Mike Stump <mikestump@comcast.net>
16981 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
16982 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
16983 (override_options): Use SUBTARGET32_DEFAULT_CPU.
16985 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
16988 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
16991 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
16993 PR rtl-optimization/42258
16994 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
16995 use that may match DEF.
16998 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
16999 the cost of loading the constant rather than assuming
17001 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
17002 outer code is AND, do the same tests as the andsi3 expander and
17003 return COSTS_N_INSNS (1) if and is cheap.
17005 * optabs.c (avoid_expensive_constant): Fix formatting.
17007 2010-03-19 Michael Matz <matz@suse.de>
17010 * attribs.c (decl_attributes): When rebuilding a function pointer
17011 type use the same qualifiers as the original pointer type.
17013 2010-03-19 Martin Jambor <mjambor@suse.cz>
17015 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
17016 and is_gimple_ip_invariant_address.
17018 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17021 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17023 * config/arm/arm.c (arm_override_options): Turn off
17024 flag_dwarf2_cfi_asm for AAPCS variants.
17026 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17029 * config/arm/arm.c (emit_multi_reg_push): Update comments.
17030 Use PRE_MODIFY instead of PRE_DEC.
17031 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
17032 (vfp_emit_fstmd): Likewise.
17034 2010-03-19 Michael Matz <matz@suse.de>
17037 * builtins.c (expand_builtin_interclass_mathfn,
17038 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
17041 2010-03-19 Richard Guenther <rguenther@suse.de>
17043 PR tree-optimization/43415
17044 * tree-ssa-pre.c (phi_translate): Split out worker to ...
17045 (phi_translate_1): ... this.
17046 (phi_translate): Move all caching here. Cache all NARY
17047 and REFERENCE translations.
17049 2010-03-19 David S. Miller <davem@davemloft.net>
17051 With help from Eric Botcazou.
17052 * config/sparc/sparc.c: Include dwarf2out.h.
17053 (emit_pic_helper): Delete.
17054 (pic_helper_symbol_name): Delete.
17055 (pic_helper_emitted_p): Delete.
17056 (pic_helper_needed): New.
17057 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
17058 (get_pc_thunk_name): New.
17059 (load_pic_register): Remove 'delay_pic_helper' arg. Use
17060 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
17061 Set pic_helper_needed to true. Don't call emit_pic_helper.
17062 (sparc_expand_prologue): Update load_pic_register call.
17063 (sparc_output_mi_thunk): Likewise.
17064 (sparc_file_end): Emit a hidden comdat symbol for the PIC
17065 thunk if possible. Output CFI information as needed.
17067 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17068 Jack Howarth <howarth@bromo.med.uc.edu>
17071 * config/i386/i386.h: Fix ABI on darwin x86-32.
17073 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
17075 * tree.h: Declare make_decl_rtl_for_debug.
17076 * varasm.c (make_decl_rtl_for_debug): New.
17077 * dwarf2out.c (rtl_for_decl_location): Call it.
17078 * cfgexpand.c (expand_debug_expr): Call it.
17080 2010-03-18 Jakub Jelinek <jakub@redhat.com>
17083 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
17087 * var-tracking.c (vt_init_cfa_base): Do nothing if
17088 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
17090 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
17093 * var-tracking.c (canonicalize_vars_star): New.
17094 (dataflow_post_merge_adjust): Use it.
17096 2010-03-18 Jakub Jelinek <jakub@redhat.com>
17099 * var-tracking.c (non_suitable_const): New function.
17100 (add_uses): For DEBUG_INSNs with constants, don't record any
17101 value, instead just the constant value itself.
17102 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
17103 is not VAR_LOC_UNKNOWN_P, set var to the constant.
17104 (emit_notes_in_bb): Likewise.
17105 (emit_note_insn_var_location): For onepart variables if
17106 cur_loc is a VOIDmode constant, use DECL_MODE.
17108 2010-03-18 Martin Jambor <mjambor@suse.cz>
17110 PR middle-end/42450
17111 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
17112 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
17113 all non-clones. Moved call redirection...
17114 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
17115 (cgraph_materialize_all_clones): Dispose of all
17116 combined_args_to_skip bitmaps.
17117 (verify_cgraph_node): Do not check for edges pointing to wrong
17118 nodes in inline clones.
17119 * tree-inline.c (copy_bb): Call
17120 cgraph_redirect_edge_call_stmt_to_callee.
17121 * ipa.c (cgraph_remove_unreachable_nodes): Call
17122 cgraph_node_remove_callees even when there are used clones.
17124 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
17126 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
17128 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
17131 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
17134 2010-03-18 Michael Matz <matz@suse.de>
17136 PR middle-end/43419
17137 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
17138 into sqrt(x) if we need to preserve signed zeros.
17140 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
17141 Eric Botcazou <ebotcazou@adacore.com>
17143 PR rtl-optimization/43360
17144 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
17145 note if we don't know its invariant status.
17147 2010-03-18 Michael Matz <matz@suse.de>
17149 PR tree-optimization/43402
17150 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
17151 PHI chains of ssa names registered for update.
17153 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
17156 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
17157 non-offsettable and pre_modify update addressing.
17158 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
17159 and "2" alternatives "#".
17160 (*movdd_softfloat32): Make all alternatives "#";
17161 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
17162 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
17163 (*movdf_softfloat32): Make all alternatives "#";
17164 (movdi): Use the new DIFD mode iterator to create a common splitter
17165 for movdi, movdf and movdd patterns.
17167 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
17169 * common.opt (dumpdir): Remove redundant tab.
17171 2010-03-17 Martin Jambor <mjambor@suse.cz>
17173 PR tree-optimization/43347
17174 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
17175 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
17177 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
17179 PR rtl-optimization/42216
17180 * regrename.c (create_new_chain): New function, broken out from...
17181 (scan_rtx_reg): ... here. Call it. Handle the case where we are
17182 appending a use to an empty chain.
17183 (build_def_use): Remove previous changes that convert OP_INOUT to
17184 OP_OUT operands; instead detect the case where an OP_INOUT operand
17185 uses a previously untracked register and create an empty chain for it.
17187 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17189 * doc/extend.texi (Function Attributes): Rewrite unfinished
17190 sentence in ms_abi documentation.
17192 2010-03-17 Alan Modra <amodra@gmail.com>
17194 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
17195 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
17196 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
17197 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
17199 2010-03-16 Richard Henderson <rth@redhat.com>
17201 PR middle-end/43365
17202 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
17203 (lower_try_finally): Save and restore eh_seq around the expansion
17204 of the try-finally.
17206 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
17208 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
17209 statements before splitting block.
17211 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17213 * doc/sourcebuild.texi (Testsuites): Fix markup.
17214 Use pathnames relative to gcc/testsuite.
17215 (Test Directives): Move description of how timeout is determined.
17216 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
17217 (C Tests): Correct gcc.misc-tests directory.
17218 Framework tests now live in gcc.test-framework.
17220 2010-03-16 Richard Guenther <rguenther@suse.de>
17222 PR middle-end/43379
17223 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
17224 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
17226 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
17227 Alexandre Oliva <aoliva@redhat.com>
17229 PR tree-optimization/42917
17230 * lambda-code.c (remove_iv): Skip debug statements.
17231 (lambda_loopnest_to_gcc_loopnest): Likewise.
17232 (not_interesting_stmt): Debug statements are not interesting.
17234 2010-03-16 Jakub Jelinek <jakub@redhat.com>
17238 * cselib.c (cselib_preserve_constants,
17239 cfa_base_preserved_val): New static variables.
17240 (preserve_only_constants): New function.
17241 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
17242 clear its REG_VALUES. If cselib_preserve_constants, don't
17243 empty the whole hash table, but preserve there VALUEs with constants,
17244 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
17245 (cselib_preserve_cfa_base_value): New function.
17246 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
17247 (cselib_init): Change argument to int bitfield. Set
17248 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
17250 (cselib_finish): Clear cselib_preserve_constants and
17251 cfa_base_preserved_val.
17252 * cselib.h (enum cselib_record_what): New enum.
17253 (cselib_init): Change argument to int.
17254 (cselib_preserve_cfa_base_value): New prototype.
17255 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
17256 * dse.c (dse_step1): Likewise.
17257 * cfgcleanup.c (thread_jump): Likewise.
17258 * sched-deps.c (sched_analyze): Likewise.
17259 * gcse.c (local_cprop_pass): Likewise.
17260 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
17261 If FN is non-NULL, call the callback always and whenever it returns
17262 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
17263 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
17264 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
17265 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
17266 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
17267 * var-tracking.c: Include recog.h.
17268 (bb_stack_adjust_offset): Remove.
17269 (vt_stack_adjustments): Don't call it, instead just gather the
17270 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
17271 (adjust_stack_reference): Remove.
17272 (compute_cfa_pointer): New function.
17273 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
17274 (struct adjust_mem_data): New type.
17275 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
17277 (get_address_mode): New function.
17278 (replace_expr_with_values): Use it.
17279 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
17280 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
17281 (adjust_sets): Remove.
17282 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
17283 Use get_address_mode.
17284 (get_adjusted_src): Remove.
17285 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
17286 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
17287 (add_with_sets): Don't call adjust_sets.
17288 (fp_setter, vt_init_cfa_base): New functions.
17289 (vt_initialize): Change return type to bool. Move most of pool etc.
17290 initialization to the beginning of the function from end. Pass
17291 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
17292 If !frame_pointer_needed, call vt_stack_adjustment before mos
17293 vector is filled, call vt_init_cfa_base if argp/framep has been
17294 eliminated to sp. If frame_pointer_needed and argp/framep has
17295 been eliminated to hard frame pointer, set
17296 hard_frame_pointer_adjustment and call vt_init_cfa_base after
17297 encountering fp setter in the prologue. For MO_ADJUST, call
17298 log_op_type before pusing the op into mos vector, not afterwards.
17299 Call adjust_insn before cselib_process_insn/add_with_sets,
17300 call cancel_changes (0) afterwards.
17301 (variable_tracking_main_1): Adjust for vt_initialize calling
17302 vt_stack_adjustments and returning whether it succeeded or not.
17304 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
17306 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
17309 2010-03-15 Jakub Jelinek <jakub@redhat.com>
17311 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
17313 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
17314 drap_reg has not been set.
17316 2010-03-15 Michael Matz <matz@suse.de>
17318 PR middle-end/43300
17319 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
17320 use it to expand block copies.
17321 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
17322 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
17323 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
17325 2010-03-15 Richard Guenther <rguenther@suse.de>
17327 PR tree-optimization/43367
17328 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
17331 2010-03-15 Richard Guenther <rguenther@suse.de>
17333 PR tree-optimization/43317
17334 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
17336 2010-03-15 Martin Jambor <mjambor@suse.cz>
17338 PR tree-optimization/43141
17339 * tree-sra.c (create_abstract_origin): New function.
17340 (modify_function): Call create_abstract_origin.
17342 2010-03-15 Chris Demetriou <cgd@google.com>
17344 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
17347 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
17349 PR middle-end/43354
17350 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
17351 call insert_out_of_ssa_copy for default definitions.
17353 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
17355 * graphite-clast-to-gimple.c (my_long_long): Defined.
17356 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
17357 * graphite-sese-to-poly.c (my_long_long): Defined.
17358 (scop_ivs_can_be_represented): Use it.
17360 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
17362 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
17363 graphite-max-bbs-per-function, and loop-block-tile-size.
17364 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
17366 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
17368 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
17370 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
17371 forward declaration.
17372 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
17373 (add_upper_bounds_from_estimated_nit): New.
17374 (build_loop_iteration_domains): Use it.
17376 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
17378 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
17380 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
17382 PR middle-end/43306
17383 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
17384 should be an INTEGER_CST. Also handle CASE_CONVERT.
17386 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
17388 * graphite.c (graphite_initialize): To bound the number of bbs per
17389 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
17390 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
17391 * doc/invoke.texi: Document it.
17393 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
17395 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
17396 * graphite-sese-to-poly.h (build_poly_scop): Same.
17398 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
17400 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
17401 the number of parameters in the scop. Use as an upper bound
17402 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
17403 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
17404 * doc/invoke.texi: Document it.
17406 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
17408 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
17409 * doc/c-tree.texi: Remove.
17410 * doc/generic.texi: Merge c-tree.texi here.
17411 * doc/gccint.texi (Trees): Remove menu entry.
17412 (c-tree.texi): Remove @include.
17413 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
17414 * doc/languages.texi (Reading RTL): Ditto.
17416 2010-03-12 Steve Ellcey <sje@cup.hp.com>
17419 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
17421 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17423 PR middle-end/42431
17424 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
17425 code added to work around reload clobbering CONST insns.
17427 2010-03-12 Jakub Jelinek <jakub@redhat.com>
17429 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
17430 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
17431 (cselib_preserve_only_values): Remove retain argument, don't
17432 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
17433 * cselib.h (cselib_preserve_only_values): Remove retain argument.
17434 * var-tracking.c (micro_operation): Move insn field before union.
17435 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
17436 (struct variable_tracking_info_def): Remove n_mos field, change
17437 mos into a vector of micro_operations.
17438 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
17439 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
17440 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
17441 changing into a vector.
17442 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
17443 come before all other uops generated by add_stores.
17444 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
17446 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
17447 a vector. Run just one pass over the bbs instead of separate counting
17448 and computation phase.
17449 (vt_finalize): Free VTI (bb)->mos vector instead of array.
17452 * tree-inline.c (remap_decls): Put old_var rather than origin_var
17453 into *nonlocalized_list vector.
17454 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
17455 even if origin is non-NULL.
17456 (gen_variable_die): Likewise.
17457 (process_scope_var): Don't change origin.
17458 (gen_decl_die): Likewise.
17459 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
17460 before adding new edges instead of after it, fix moving over
17463 2010-03-11 David S. Miller <davem@davemloft.net>
17465 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
17467 * configure: Rebuild.
17469 2010-03-11 Martin Jambor <mjambor@suse.cz>
17471 PR tree-optimization/43257
17472 * tree.c (assign_assembler_name_if_neeeded): New function.
17473 (free_lang_data_in_cgraph): Assembler name assignment moved to the
17474 above new function.
17475 * tree.h (assign_assembler_name_if_neeeded): Declare.
17476 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
17477 the function if needed.
17479 2010-03-11 Chris Demetriou <cgd@google.com>
17481 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
17482 include/stdint-gcc.h, and include/stdint.h world-readable.
17484 2010-03-11 Richard Guenther <rguenther@suse.de>
17486 PR tree-optimization/43255
17487 * tree-vrp.c (process_assert_insertions_for): Do not insert
17488 asserts for trivial conditions.
17490 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17492 PR tree-optimization/43280
17493 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
17494 generation. Move calculation of size out of the if branch.
17495 (find_bswap): Modify compare number generation.
17497 2010-03-11 Richard Guenther <rguenther@suse.de>
17500 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
17501 (input_gimple_stmt): Fixup handled component types during
17502 operand read. Also fix up decls in ADDR_EXPRs.
17504 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
17506 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
17507 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
17509 2010-03-10 Jan Hubicka <jh@suse.cz>
17512 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
17513 * varasm.c (get_variable_section): Don't do that here...
17514 (make_decl_rtl): ... and here.
17515 (do_assemble_alias): Produce decl RTL.
17516 (assemble_alias): Likewise.
17518 2010-03-10 Jakub Jelinek <jakub@redhat.com>
17521 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
17522 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
17524 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
17525 (based_loc_descr): Only express drap or vdrap regno based expressions
17526 using DW_OP_fbreg when not optimizing.
17527 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
17528 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
17529 REG_CFA_SET_VDRAP note.
17531 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
17533 PR tree-optimization/43236
17534 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
17535 error in calculation of base address in reverse iteration case.
17536 (generate_builtin): Take number of latch executions if the statement
17539 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
17541 PR middle-end/42859
17542 * tree-eh.c: Include pointer-set.h.
17543 (lower_eh_dispatch): Filter out duplicate case labels and
17544 remove the unneeded edge when the label is unused. Return
17545 true when some edges are removed.
17546 (execute_lower_eh_dispatch): When any lowering resulted in
17547 removing an edge, also delete unreachable blocks.
17549 2010-03-10 Jakub Jelinek <jakub@redhat.com>
17552 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
17553 UNSPEC_MACHOPIC_OFFSET.
17555 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
17558 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
17559 (m68k_delegitimize_address): New function.
17561 2010-03-09 Jakub Jelinek <jakub@redhat.com>
17564 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
17567 * var-tracking.c (adjust_sets): New function.
17568 (count_with_sets, add_with_sets): Use it.
17569 (get_adjusted_src): New inline function.
17570 (add_stores): Use it.
17573 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
17574 call cselib_dummy_expand_value_rtx_cb instead of
17575 cselib_expand_value_rtx_cb.
17578 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
17579 * config/i386/i386.c: Include debug.h and dwarf2out.h.
17580 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
17581 and .cfi_endproc around the pic thunks.
17582 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
17583 all queued unwind info register saves are saved before the call.
17584 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
17585 considered as sp-=4 for unwind info and the pop as sp+=4 which
17586 also clobbers dest, but doesn't actually restore it.
17589 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
17590 RTX_FRAME_RELATED_P.
17592 2010-03-09 Jie Zhang <jie@codesourcery.com>
17594 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
17595 whitespaces in output template.
17597 2010-03-09 Jie Zhang <jie@codesourcery.com>
17599 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
17600 out array boundary.
17602 2010-03-08 Jakub Jelinek <jakub@redhat.com>
17604 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
17605 builtins.exp in a separate job.
17607 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17609 * graphite-sese-to-poly.c (add_param_constraints): Use
17610 lower_bound_in_type and upper_bound_in_type.
17612 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17614 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
17615 instead of unsigned_type_node.
17617 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17618 Reza Yazdani <reza.yazdani@amd.com>
17620 PR middle-end/43065
17621 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
17622 on pointer type parameters.
17624 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
17626 PR middle-end/42644
17627 PR middle-end/42130
17628 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
17629 handle conversions from pointer to integers.
17630 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
17631 induction variable, to be able to work with code generated by CLooG.
17632 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
17633 (build_poly_scop): Bail out if we cannot codegen a loop.
17635 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
17637 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
17638 code generation with gloog_error.
17640 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17642 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
17643 Call fold_convert on all the returned values.
17644 (expand_scalar_variables_expr): Pass to
17645 expand_scalar_variables_ssa_name the type of the resulting expression.
17647 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17649 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
17650 ppl_min_for_le_pointset.
17651 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
17652 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
17654 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17656 * graphite-dependences.c (map_into_dep_poly): Removed.
17657 (dependence_polyhedron_1): Use combine_context_id_scat.
17659 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17661 * graphite-poly.h (struct poly_scattering): Add layout documentation.
17662 (struct poly_bb): Same.
17663 (combine_context_id_scat): New.
17665 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17667 PR middle-end/42326
17668 * sese.c (name_defined_in_loop_p): Return false for default
17671 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17673 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
17674 and clean up the logic.
17676 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17678 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
17681 2010-03-08 Jakub Jelinek <jakub@redhat.com>
17683 * var-tracking.c (remove_cselib_value_chains): Define only for
17685 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
17686 delete_slot_part, emit_notes_for_differences_1): Don't call
17687 remove_cselib_value_chains here.
17688 (set_slot_part, emit_notes_for_differences_2): Don't call
17689 add_cselib_value_chains here.
17690 (preserved_values): New vector.
17691 (preserve_value): New function.
17692 (add_uses, add_stores, vt_add_function_parameters): Use it
17693 instead of cselib_preserve_value.
17694 (changed_values_stack): New vector.
17695 (check_changed_vars_0): New function.
17696 (check_changed_vars_1, check_changed_vars_2): Use it.
17697 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
17698 changed_values_stack VALUEs.
17699 (vt_emit_notes): For all preserved_values call
17700 add_cselib_value_chains. If ENABLE_CHECKING call
17701 remove_cselib_value_chains before verifying value_chains is empty.
17702 Initialize and free changed_values_stack.
17703 (vt_initialize): Initialize preserved_values.
17704 (vt_finalize): Free preserved_values.
17706 2010-03-08 Richard Guenther <rguenther@suse.de>
17708 PR tree-optimization/43269
17709 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
17712 2010-03-08 Martin Jambor <mjambor@suse.cz>
17714 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
17715 (ipa_is_param_called): Removed.
17716 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
17717 (ipa_print_node_params): Do not print the called flag.
17718 (ipa_write_node_info): Do not stream the called flag.
17719 (ipa_read_node_info): Likewise.
17721 2010-03-07 Jakub Jelinek <jakub@redhat.com>
17724 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
17725 * cselib.c (struct expand_value_data): Add dummy field.
17726 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
17728 (cselib_dummy_expand_value_rtx_cb): New function.
17729 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
17731 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
17732 * var-tracking.c: Include pointer-set.h.
17733 (variable): Change n_var_parts to char from int. Add
17734 cur_loc_changed and in_changed_variables fields.
17735 (variable_canonicalize): Remove.
17736 (shared_var_p): New inline function.
17737 (unshare_variable): Maintain cur_loc_changed and
17738 in_changed_variables fields. If var was in changed_variables,
17739 replace it there with new_var. Just copy cur_loc instead of
17740 resetting it to something else.
17741 (variable_union): Don't recompute cur_loc. Use shared_var_p.
17742 (dataflow_set_union): Don't call variable_canonicalize.
17743 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
17744 of their DEBUG_EXPR_TREE_DECLs.
17745 (canonicalize_loc_order_check): Verify that cur_loc is NULL
17746 and in_changed_variables and cur_loc_changed is false.
17747 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
17748 and cur_loc_changed. Don't update cur_loc here.
17749 (variable_merge_over_src): Don't call variable_canonicalize.
17750 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
17751 removing loc that is equal to cur_loc, clear cur_loc,
17752 set cur_loc_changed and ensure variable_was_changed is called.
17753 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
17754 compare pointers in cur_loc check, if it is equal to loc,
17755 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
17756 (variable_different_p): Remove compare_current_location argument,
17757 don't compare cur_loc.
17758 (dataflow_set_different_1): Adjust variable_different_p caller.
17759 (variable_was_changed): If dv had some var in changed_variables
17760 already, reset in_changed_variables flag for it and propagate
17761 cur_loc_changed over to the new variable. On empty var
17762 always set cur_loc_changed. Set in_changed_variables on whatever
17763 var is added to changed_variables.
17764 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
17765 Use shared_var_p. When removing loc that is equal to cur_loc,
17766 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
17767 end, don't set it to something else, just call variable_was_changed.
17768 (delete_slot_part): Use shared_var_p. When cur_loc equals to
17769 loc being removed, clear cur_loc and set cur_loc_changed.
17770 Set cur_loc_changed if all locations have been removed.
17771 (struct expand_loc_callback_data): New type.
17772 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
17773 allocated. Always create SUBREGs if simplify_subreg failed.
17774 Prefer to use cur_loc, when that fails and still in
17775 changed_variables (and seen first time) recompute it. Set
17776 cur_loc_changed of variables which had to change cur_loc and
17777 compute elcd->cur_loc_changed if any of the subexpressions used
17778 had to change cur_loc.
17779 (vt_expand_loc): Adjust to pass arguments in
17780 expand_loc_callback_data structure.
17781 (vt_expand_loc_dummy): New function.
17782 (emitted_notes): New variable.
17783 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
17784 that weren't used for any other decl in current
17785 emit_notes_for_changes call call vt_expand_loc_dummy to update
17786 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
17787 first loc_chain location if NULL before. Always use just
17788 cur_loc instead of first loc_chain location. When cur_loc_changed
17789 is false, when not --enable-checking=rtl just don't emit any note.
17790 When rtl checking, compute the note and assert it is the same
17791 as previous note. Clear cur_loc_changed and in_changed_variables
17792 at the end before removing from changed_variables.
17793 (check_changed_vars_3): New function.
17794 (emit_notes_for_changes): Traverse changed_vars to call
17795 check_changed_vars_3 on each changed var.
17796 (emit_notes_for_differences_1): Clear cur_loc_changed and
17797 in_changed_variables. Recompute cur_loc of new_var.
17798 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
17799 (vt_emit_notes): Initialize and destroy emitted_notes.
17801 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
17803 PR rtl-optimization/42220
17804 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
17805 Use verify_reg_tracked to determine if we should use OP_OUT rather
17807 (build_def_use): If we see an in-out operand for a register that we
17808 know nothing about, treat is an output if possible, fail the block if
17811 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
17814 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
17817 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
17820 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
17821 uses of relevant DEFs that are dead outside the loop too.
17823 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
17825 * var-tracking.c (dataflow_set_merge): Swap src and src2.
17827 2010-01-13 Jakub Jelinek <jakub@redhat.com>
17829 * var-tracking.c (values_to_unmark): New variable.
17830 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
17831 values_to_unmark vector. Moved body to...
17832 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
17833 instead queue it into values_to_unmark vector.
17834 (vt_find_locations): Free values_to_unmark vector.
17836 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
17838 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
17839 (site.exp): Export them when plugins are enabled.
17841 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
17843 PR middle-end/42326
17844 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
17845 that contain scevs.
17846 (chrec_fold_multiply): Same.
17848 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
17851 * c-decl.c (build_compound_literal): Return early if init is
17852 an error_mark_node.
17854 2010-03-04 Martin Jambor <mjambor@suse.cz>
17856 PR tree-optimization/43164
17857 PR tree-optimization/43191
17858 * tree-sra.c (type_consists_of_records_p): Reject records with
17859 zero-size bit-fields at the end.
17861 2010-03-04 Mike Stump <mikestump@comcast.net>
17863 * Makefile.in (TAGS): Remove *.y.
17865 2010-03-04 Richard Guenther <rguenther@suse.de>
17867 PR tree-optimization/40761
17868 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
17870 (my_rev_post_order_compute): New function.
17871 (init_pre): Call it.
17873 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
17875 PR middle-end/43209
17876 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
17877 decrease the cost of an IV candidate when the cost is infinite.
17879 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17881 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
17882 Use '3DNow!' for the extension of that name, ensure normal space
17884 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
17886 2010-03-03 Jeff Law <law@redhat.com>
17888 * PR middle-end/32693
17889 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
17890 than gen_rtx_SUBREG.
17891 (extract_bit_field_1): Likewise.
17893 2010-03-03 Janis Johnson <janis187@us.ibm.com>
17895 * doc/sourcebuild.texi (Test directives): Document that arguments
17896 include-opts and exclude-opts are now optional for dg-skip-if,
17897 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
17899 2010-03-03 Jason Merrill <jason@redhat.com>
17902 * cgraph.h (varpool_node): Add extra_name field.
17903 * varpool.c (varpool_extra_name_alias): New.
17904 (varpool_assemble_decl): Emit extra name aliases.
17905 (varpool_mark_needed_node): Look past an extra name alias.
17906 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
17907 * lto-streamer-in.c (lto_input_tree): Read it.
17908 * lto-streamer-out.c (output_unreferenced_globals): Write it.
17910 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
17912 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
17913 (sparc*-*-solaris2*): ...this.
17915 2010-03-03 Jakub Jelinek <jakub@redhat.com>
17918 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
17919 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
17920 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
17921 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
17924 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
17925 fallthrough to default handling, just with want_address 0 instead of 2.
17926 For single element lists, add_AT_loc directly, otherwise create an
17927 artificial variable DIE and stick location list to it.
17930 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
17931 (VAL_EXPR_HAS_REVERSE): Define.
17932 (reverse_op): New function.
17933 (add_stores): For reversible operations add an extra MO_VAL_USE.
17935 2010-03-02 Jason Merrill <jason@redhat.com>
17937 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
17939 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
17941 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
17942 (sparc64-*-linux*): Likewise.
17943 (sparc64-*-solaris2*): Include assembler files before linker ones.
17944 (sparc-*-solaris2*): Simplify and reorder to match previous case.
17945 * config/sparc/gas.h: Delete.
17946 * config/sparc/sol2-64.h: Add copyright notice.
17947 * config/sparc/sol2-gas-bi.h: Likewise.
17948 * config/sparc/sol2-gld.h: Likewise.
17949 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
17950 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
17951 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
17952 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
17953 (sparc_elf_asm_named_section): Rename into...
17954 (sparc_solaris_elf_asm_named_section): ...this. Always define.
17956 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
17958 * config/alpha/alpha.c (override_options): Fix -mtune error message.
17960 2010-03-02 Jeff Law <law@redhat.com>
17962 PR middle-end/42431
17963 * reload1.c (rtx_p, substitute_stack): Declare.
17964 (substitute): Record addresses of changed rtxs.
17965 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
17966 Restore the original rtx when complete.
17967 (reload): Free subsitute_stack when complete.
17969 2010-03-02 Janis Johnson <janis187@us.ibm.com>
17971 * doc/gccint.texi (menu): Add Testsuites as a chapter.
17972 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
17974 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
17975 LTO Testing, gcov Testing, profopt Testing, compat Testing,
17976 Torture Tests): Change from subsection to section.
17978 2010-03-02 Jakub Jelinek <jakub@redhat.com>
17979 Steven Bosscher <steven@gcc.gnu.org>
17981 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
17984 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
17986 PR middle-end/42640
17987 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
17988 the assignment from the new induction variable to the assignment
17989 of the value from the original loop PHI function.
17991 2010-03-01 Janis Johnson <janis187@us.ibm.com>
17992 Daniel Jacobowitz <dan@codesourcery.com>
17994 * doc/sourcebuild.texi (Test directives): Clarify options to
17997 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17999 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
18000 Disable cfi directives unless GCC and gas agree on using read-only
18001 .eh_frame sections for 64-bit.
18002 * configure: Regenerate.
18004 2010-03-01 Richard Guenther <rguenther@suse.de>
18006 PR tree-optimization/43220
18007 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
18008 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
18010 2010-03-01 Richard Guenther <rguenther@suse.de>
18011 Martin Jambor <mjambor@suse.cz>
18013 PR middle-end/41250
18014 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
18015 gimplified parameters.
18017 2010-03-01 Christian Bruel <christian.bruel@st.com>
18019 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
18021 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18023 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
18025 2010-03-01 Richard Guenther <rguenther@suse.de>
18027 PR middle-end/43213
18028 * expr.c (expand_assignment): Use the alias-oracle to tell
18029 if the rhs aliases the result decl.
18031 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18034 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
18035 to sol_gt_pch_get_address.
18036 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
18037 64-bit, SPARC and x86.
18038 (sol_gt_pch_get_address): New function.
18040 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
18042 * toplev.h (inform_n, error_n): Declare.
18043 * diagnostic.c (inform_n, error_n): New function.
18045 2010-03-01 Jakub Jelinek <jakub@redhat.com>
18047 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
18048 has no rtl yet when processing local_decls, queue it and recheck
18049 if deferred stack allocation hasn't assigned it rtl.
18051 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
18053 * config/sh/sh.c (unspec_bbr_uid): New.
18054 (gen_block_redirect): Use it instead of INSN_UID.
18055 (gen_far_branch): Likewise.
18057 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
18059 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
18060 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
18062 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18064 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
18065 (Warning Options): -Wno-conversion-null is valid for
18066 Objective-C++ as well.
18067 * doc/tm.texi (Named Address Spaces): Likewise.
18068 * doc/plugins.texi (Plugins): Replace TABs with spaces.
18069 * doc/tree-ssa.texi (Tree SSA): Likewise.
18071 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
18074 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
18075 by default. Don't set the default arch for
18076 i[34567]86-*-darwin*|x86_64-*-darwin*.
18078 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
18081 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
18082 default. Set the default 32bit/64bit archs with $with_arch
18083 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
18085 2010-02-27 Richard Guenther <rguenther@suse.de>
18087 PR tree-optimization/43186
18088 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
18089 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
18090 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
18091 unroller iterations.
18093 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
18095 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
18096 required and i[34567]86-*-* targets don't support 64bit ISA.
18098 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
18101 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
18102 the same alias set.
18104 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
18106 * config.gcc: Set the default arch at least to Prescott for
18107 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
18108 if SSE math is enabled.
18110 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
18112 * diagnostic.c (diagnostic_initialize): Update.
18113 (diagnostic_report_diagnostic): Test inhibit_notes_p for
18115 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
18116 (diagnostic_inhibit_notes): New.
18117 * toplev.c (process_options): inhibit notes with -fcompare-debug.
18119 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
18122 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
18123 * doc/standards.texi: Likewise.
18124 * doc/extend.texi: Likewise.
18125 * doc/trouble.texi: Likewise.
18126 * doc/cppopts.texi: Likewise.
18127 * doc/install.texi: Likewise.
18128 * c.opt (std=c90,std=gnu90): New options.
18129 * c-opts.c (c_common_handle_option): Handle them.
18131 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
18134 * c-decl.c (undeclared_variable): Use an informative note.
18136 2010-02-26 Richard Guenther <rguenther@suse.de>
18138 PR tree-optimization/43186
18139 * gimple.h (gimple_fold): Remove.
18140 * gimple.c (gimple_fold): Remove. Inline into single user ...
18141 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
18142 Try harder for conditions.
18144 2010-02-26 Jakub Jelinek <jakub@redhat.com>
18147 * function.c (used_types_insert): Don't skip through named pointer
18148 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
18149 and it is different from the main variant's type.
18151 2010-02-26 Nick Clifton <nickc@redhat.com>
18153 * config/rx/rx.md (sminsi3): Remove bogus alternative.
18155 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
18157 * config.gcc: Support --with-fpmath=sse for x86.
18159 * config/i386/ssemath.h: New.
18161 * doc/install.texi (--with-fpmath=sse): Documented.
18163 2010-02-26 Richard Guenther <rguenther@suse.de>
18165 PR tree-optimization/43188
18166 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
18167 vector types of over-aligned element type.
18169 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
18172 * config/i386/i386.c (expand_vec_perm_blend): Use correct
18173 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
18175 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
18177 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
18179 2010-02-26 Jakub Jelinek <jakub@redhat.com>
18181 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
18182 * var-tracking.c: Include diagnostic.h.
18183 (debug_dv): New function.
18184 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
18187 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
18188 (add_value_chain, add_value_chains, remove_value_chain,
18189 remove_value_chains): Handle DEBUG_EXPRs.
18190 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
18193 * regcprop.c (struct queued_debug_insn_change): New type.
18194 (struct value_data_entry): Add debug_insn_changes field.
18195 (struct value_data): Add n_debug_insn_changes field.
18196 (debug_insn_changes_pool): New variable.
18197 (free_debug_insn_changes, apply_debug_insn_changes,
18198 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
18199 (kill_value_one_regno): Call free_debug_insn_changes if needed.
18200 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
18202 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
18204 (copyprop_hardreg_forward_1): Don't call apply_change_group for
18205 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
18206 changes, call cprop_find_used_regs via note_stores.
18207 (copyprop_hardreg_forward): When copying vd from predecessor
18208 which has any queued DEBUG_INSN changes, make sure the pointers are
18209 cleared. At the end call df_analyze and then if there are any
18210 DEBUG_INSN changes queued at the end of some basic block for still
18211 live registers, apply them.
18212 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
18214 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
18216 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
18219 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
18221 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
18222 targets. Set the default with_cpu/with_arch from arch/cpu.
18223 Allow x86-64 and native for with_cpu/with_arch.
18225 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
18227 * ebitmap.c: Change calls to verify_popcount with calls to
18228 sbitmap_verify_popcount.
18229 (ebitmap_clear_bit): Fixed map->cacheindex test and
18230 map>cache update when bit clearing results in an empty
18233 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
18236 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
18237 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
18238 and support both V2DF and V2DI modes.
18239 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
18240 support both V2DF and V2DI modes.
18241 (general): Delete trailing whitespace from a few patterns.
18243 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18244 V2DF/V2DI interleave high/low builtins.
18246 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
18249 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
18250 interleave high/low functions.
18252 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
18254 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
18255 #pragma extern_prefix.
18257 2010-02-25 Jakub Jelinek <jakub@redhat.com>
18260 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
18261 BLKmode, assert op0 is a MEM and just adjust its mode.
18264 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
18265 if bitpos isn't multiple of mode's bitsize.
18267 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
18269 * c.opt (-ftemplate-depth=): New.
18270 (-ftemplate-depth-): Deprecate.
18271 * optc-gen.awk: Handle -ftemplate-depth=.
18272 * opth-gen.awk: Likewise.
18273 * c-opts.c (c_common_handle_option): Likewise.
18274 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
18276 2010-02-24 Jason Merrill <jason@redhat.com>
18278 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
18280 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18282 * cfg.c (alloc_aux_for_block): Remove inline.
18283 (alloc_aux_for_edge): Likewise.
18285 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18287 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
18289 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18291 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
18292 * config/i386/sol2-gas.h: New file.
18293 * config.gcc (i[34567]86-*-solaris2*): Use it.
18295 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
18298 * c-typeck.c (ep_convert_and_check): New.
18299 (build_conditional_expr): Use it.
18300 (build_binary_op): Likewise.
18302 2010-02-24 Jakub Jelinek <jakub@redhat.com>
18304 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
18307 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
18308 bounds even for -O+.
18309 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
18310 expr needs to have DECL_NAME set.
18312 2010-02-24 Nick Clifton <nickc@redhat.com>
18314 * config/mep/mep.c: Include gimple.h.
18315 (mep_function_uses_sp): Delete unused function.
18316 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
18317 parameters. Use unsigned integers to count args. Return a
18318 NULL_RTX instead of an error_mark_node. Toidy up formatting.
18320 2010-02-23 Jakub Jelinek <jakub@redhat.com>
18323 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
18324 greater or equal to nelt instead of 2 * nelt.
18325 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
18328 2010-02-23 Jason Merrill <jason@redhat.com>
18331 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
18332 in cfun->local_decls even if they have register types.
18335 * stor-layout.c (place_field): Don't warn about unnecessary
18336 DECL_PACKED if the type is packed.
18338 2010-02-23 Jakub Jelinek <jakub@redhat.com>
18341 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
18342 GOTOFF relocs, even when the base reg isn't pic pointer.
18344 2010-02-23 Michael Matz <matz@suse.de>
18347 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
18348 (expand_gimple_basic_block): Generate and use debug temps if there
18349 are debug uses left after the last real use of TERed ssa names.
18350 Unlink debug immediate uses when they are expanded.
18352 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
18355 * config/i386/i386.c (override_options): Reorganise to provide
18356 better error messages.
18358 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
18360 PR middle-end/43083
18361 * graphite-scop-detection.c (create_single_exit_edge): Move
18362 the call to find_single_exit_edge to....
18363 (create_sese_edges): ...here. Don't handle multiple edges
18364 exiting the function.
18365 (build_graphite_scops): Don't handle multiple edges
18366 exiting the function.
18368 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
18370 PR middle-end/43097
18371 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
18372 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
18374 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
18376 PR middle-end/43026
18377 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
18379 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
18382 * c-typeck.c (convert_arguments): Print declaration location.
18383 * c-common.c (validate_nargs): Rename as
18384 builtin_function_validate_nargs.
18385 (check_builtin_function_arguments): Update.
18387 2010-02-22 Richard Guenther <rguenther@suse.de>
18390 * tree-inline.c (declare_return_variable): Use the type of
18391 the call stmt lhs if available.
18393 2010-02-22 Duncan Sands <baldrick@free.fr>
18395 * passes.c (register_pass): Always consider all pass lists when
18396 ref_pass_instance_number is zero.
18398 2010-02-22 Richard Guenther <rguenther@suse.de>
18400 PR tree-optimization/42749
18401 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
18402 parameter. Do arithmetic in the original type.
18403 (update_accumulator_with_ops): Likewise.
18404 (adjust_accumulator_values): Adjust.
18406 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18408 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
18409 (QI to BLKmode splitter): New splitter.
18411 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
18413 * config/i386/i386.c (initial_ix86_tune_features): Turn on
18414 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
18416 2010-02-22 Richard Guenther <rguenther@suse.de>
18418 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
18420 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
18422 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
18423 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
18424 ($(T)crti.o, $(T)crtn.o): Remove rules.
18426 2010-02-21 Tobias Burnus <burnus@net-b.de>
18429 * doc/invoke.texi (-fassociative-math): Document that this
18430 option is automatically enabled for Fortran.
18432 2010-02-20 David S. Miller <davem@davemloft.net>
18434 * configure.ac: Test if linker and assembler properly support
18435 GOTDATA_OP relocations.
18436 * configure: Rebuild.
18437 * config.in: Likewise.
18438 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
18439 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
18440 (movsi_high_pic): Likewise.
18441 (movdi_lo_sum_pic): Likewise.
18442 (movdi_high_pic): Likewise.
18443 (movsi_pic_gotdata_op): New pattern.
18444 (movdi_pic_gotdata_op): Likewise.
18445 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
18446 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
18448 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
18451 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
18452 attribute to ssemul.
18453 (xop_mulv2div2di3_high): Ditto.
18455 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
18458 * c.opt (Wconversion-null): New option.
18459 * doc/invoke.texi (Wconversion-null): Document.
18461 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
18463 * common.opt (Wlarger-than-): Add Undocumented.
18465 2010-02-19 Mike Stump <mikestump@comcast.net>
18467 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
18469 2010-02-19 Jason Merrill <jason@redhat.com>
18472 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
18473 * configure: Likewise.
18475 2010-02-20 Alan Modra <amodra@gmail.com>
18477 PR middle-end/42344
18478 * cgraph.h (cgraph_make_decl_local): Declare.
18479 * cgraph.c (cgraph_make_decl_local): New function.
18480 (cgraph_make_node_local): Use it.
18481 * cgraphunit.c (cgraph_function_versioning): Likewise.
18482 * ipa.c (function_and_variable_visibility): Likewise.
18484 2010-02-19 Jakub Jelinek <jakub@redhat.com>
18487 * except.c (sjlj_emit_function_enter): Don't call
18488 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
18490 * rtl.h (add_reg_br_prob_note): Remove prototype.
18492 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
18495 * c-common.c (conversion_warning): Remove widening conversions
18496 before checking the conversion of integers to reals.
18498 2010-02-19 Mike Stump <mikestump@comcast.net>
18500 PR middle-end/43125
18501 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
18504 * cgraphunit.c (process_function_and_variable_attributes): Check
18505 DECL_PRESERVE_P instead of looking up attribute "used".
18506 * ipa-pure-const.c (check_decl): Likewise.
18507 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
18508 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
18509 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
18510 instead of attribute "used".
18511 * config/sol2-c.c (solaris_pragma_init): Likewise.
18512 (solaris_pragma_fini): Likewise.
18514 2010-02-19 Jakub Jelinek <jakub@redhat.com>
18516 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
18517 Use XCNEW instead of xcalloc.
18518 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
18519 XNEW instead of xmalloc.
18520 (get_fields): Use XNEWVEC instead of xmalloc.
18523 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
18524 populate vars array.
18525 (create_new_general_access): For debug stmts just reset value.
18526 (get_stmt_accesses): For accesses within debug stmts just record them
18527 using add_access_to_acc_sites instead of preventing the peeling or
18528 counting them as accesses.
18530 PR middle-end/42233
18531 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
18533 2010-02-19 Richard Guenther <rguenther@suse.de>
18535 PR tree-optimization/42916
18536 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
18539 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
18541 * configure.ac: Replace all uses of changequote in macro arguments
18542 with proper quoting.
18544 2010-02-19 Jakub Jelinek <jakub@redhat.com>
18546 PR middle-end/42233
18547 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
18549 2010-02-19 Richard Guenther <rguenther@suse.de>
18551 PR tree-optimization/42944
18552 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
18553 test for aliasing with errno.
18555 2010-02-19 Jakub Jelinek <jakub@redhat.com>
18557 PR middle-end/42233
18558 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
18559 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
18560 * dojump.c: Include output.h.
18561 (inv): New inline function.
18562 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
18563 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
18564 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
18565 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
18566 argument, pass it down to other calls.
18567 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
18568 add REG_BR_PROB note to the conditional jump.
18569 * cfgexpand.c (add_reg_br_prob_note): Removed.
18570 (expand_gimple_cond): Don't call it, add the probability
18571 as last argument to jumpif_1/jumpifnot_1.
18572 * Makefile.in (dojump.o): Depend on output.h.
18573 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
18575 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
18576 * stmt.c (do_jump_if_equal): Likewise.
18577 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
18578 * loop-unswitch.c (compare_and_jump_seq): Likewise.
18579 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
18581 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
18582 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
18583 jumpifnot_1 callers.
18584 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
18586 (store_expr): Adjust jumpifnot caller.
18587 (store_constructor): Adjust jumpif caller.
18589 PR middle-end/42233
18590 * gimplify.c (gimple_boolify): For __builtin_expect call
18591 gimple_boolify also on its first argument.
18593 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
18595 * configure.ac (gnu-unique-object): Wrap regexps using [] in
18597 (__stack_chk_fail): Ditto. Remove quadrigraphs.
18598 * configure: Regenerated.
18600 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18602 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
18603 lang_hooks.types_compatible_p instead of comptypes.
18605 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
18607 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
18608 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
18609 if __prefer_thumb__ is defined.
18611 2010-02-18 Martin Jambor <mjambor@suse.cz>
18613 PR tree-optimization/43066
18614 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
18615 array with zero-sized element type.
18617 2010-02-18 Jakub Jelinek <jakub@redhat.com>
18619 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
18620 rtx, allocate struct var_loc_node here and return it to the
18621 caller, and only if it is actually needed.
18622 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
18623 move it earlier and return immediately if it returns NULL.
18625 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
18627 * config/sparc/gas.h: New file. Restore
18628 TARGET_ASM_NAMED_SECTION to its ELF default.
18629 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
18630 check !HAVE_GNU_AS.
18631 * config/sparc/sparc.c (sparc_elf_asm_named_section):
18632 Likewise. Add ATTRIBUTE_UNUSED to prototype.
18633 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
18634 after sparc/sysv4.h.
18636 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
18638 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
18640 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
18642 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
18643 patterns from predicated pattern.
18645 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
18648 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
18649 for insn mnemonic suffix.
18651 2010-02-17 Richard Guenther <rguenther@suse.de>
18653 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
18656 2010-02-17 Jakub Jelinek <jakub@redhat.com>
18659 * caller-save.c (save_call_clobbered_regs): If BB ends with
18660 a DEBUG_INSN, move any notes in between last real insn and the last
18661 DEBUG_INSN after the last DEBUG_INSN.
18663 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
18665 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
18666 Fix return type. Fix argument type. Explain meaning of return value.
18668 2010-02-16 Richard Guenther <rguenther@suse.de>
18670 PR tree-optimization/41043
18671 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
18672 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
18674 (vrp_visit_phi_node): ... but only for loop PHI nodes.
18676 2010-02-16 Ira Rosen <irar@il.ibm.com>
18678 PR tree-optimization/43074
18679 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
18680 * tree-vect-loop.c (vect_analyze_loop_operations): Add
18681 vectorizable cycles in hybrid SLP check.
18682 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
18684 2010-02-16 Richard Guenther <rguenther@suse.de>
18686 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
18687 (true_dependence): If memrefs_conflict_p computes must-alias
18688 trust it. Move TBAA check after offset-based disambiguation.
18689 (canon_true_dependence): Likewise.
18691 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
18693 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
18694 * doc/invoke.texi: Document it.
18695 * var-tracking.c: Include toplev.h and params.h.
18696 (vt_find_locations): Return bool indicating success. Compute
18697 hash sizes unconditionally. Check new parameter, report.
18698 (variable_tracking_main_1): Check vt_find_locations results and
18699 retry. Renamed from...
18700 (variable_tracking_main): ... this. New wrapper to preserve
18701 flag_var_tracking_assignments.
18702 * Makefile.in (var-tracking.o): Adjust dependencies.
18704 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
18705 Jakub Jelinek <jakub@redhat.com>
18708 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
18709 if weak_import attribute is present.
18710 * config/darwin.c (machopic_select_section): Likewise.
18712 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
18714 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
18715 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
18716 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
18717 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
18719 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
18722 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
18723 Fix argument types.
18725 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
18726 Rewrite text to refer to the names.
18728 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
18730 * config/i386/i386-builtin-types.def
18731 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
18732 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
18733 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
18734 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
18735 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
18736 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
18737 IX86_BUILTIN_VPERMIL2PS256.
18738 (MULTI_ARG_4_DF2_DI_I): Defined.
18739 (MULTI_ARG_4_DF2_DI_I1): Defined.
18740 (MULTI_ARG_4_SF2_SI_I): Defined.
18741 (MULTI_ARG_4_SF2_SI_I1): Defined.
18742 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
18743 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
18744 __builtin_ia32_vpermil2ps256.
18745 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
18746 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
18747 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
18748 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
18749 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
18750 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
18751 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
18752 CODE_FOR_xop_vpermil2v8sf3.
18753 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
18754 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
18755 * config/i386/xopintrin.h (_mm_permute2_pd): New.
18756 (_mm256_permute2_pd): New.
18757 (_mm_permute2_ps): New.
18758 (_mm256_permute2_ps): New.
18760 2010-02-15 Nick Clifton <nickc@redhat.com>
18762 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
18763 boolean parameters. Use emit_jump_insn when emitting a pop
18764 instruction containing a return insn.
18765 (push): Use 'true' rather than '1' as second parameter to F.
18766 (h8300_expand_prologue): Likewise.
18767 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
18768 (h8300_expand_epilogue): Likewise.
18770 2010-02-15 Richard Guenther <rguenther@suse.de>
18772 PR middle-end/43068
18773 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
18776 2010-02-15 Nick Clifton <nickc@redhat.com>
18778 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
18781 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
18783 * intl.c (fake_ngettext): New function.
18784 * intl.h (fake_ngettext): Declare.
18785 (ngettext): Define macro.
18786 * collect2.c (notice_translated): New function.
18787 (main): Use notice_translated and ngettext.
18788 * collect2.h (notice_translated): Declare.
18790 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
18792 * reorg.c (delete_computation): Comment fixes.
18793 * caller-save.c (setup_save_areas): Idem.
18794 * sel-sched-dump.c (dump_lv_set): Idem.
18797 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18799 * config/s390/s390.c (s390_sched_init): New function.
18800 (TARGET_SCHED_INIT): Target hook defined.
18802 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
18803 Jack Howarth <howarth@bromo.med.uc.edu>
18804 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18807 Partial revert of unintended change in fix for PR41605.
18808 * config/darwin.h: Fix typo.
18809 * config/darwin9.h: Same.
18811 2010-02-11 Jakub Jelinek <jakub@redhat.com>
18813 * c-pch.c (pch_init): Clear v.
18815 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
18817 PR middle-end/42930
18818 * graphite-scop-detection.c (graphite_can_represent_scev): Call
18819 graphite_can_represent_init for MULT_EXPR.
18821 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
18823 PR middle-end/42914
18824 PR middle-end/42530
18825 * graphite-sese-to-poly.c (remove_phi): New.
18826 (translate_scalar_reduction_to_array): Call remove_phi.
18828 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
18830 PR middle-end/42771
18831 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
18832 * graphite-clast-to-gimple.h (gloog): Update declaration.
18833 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
18834 * graphite-poly.h (struct poly_bb): Add missing comments.
18835 (struct scop): Add poly_scop_p field.
18836 (POLY_SCOP_P): New.
18837 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
18838 * graphite.c (graphite_transform_loops): Build the polyhedral
18839 representation for each scop before code generation.
18840 * sese.c (rename_variables_in_operand): Removed.
18841 (rename_variables_in_expr): Return the renamed expression.
18842 (rename_sese_parameters): New.
18843 * sese.h (rename_sese_parameters): Declared.
18845 2010-02-11 Richard Guenther <rguenther@suse.de>
18847 PR tree-optimization/42998
18848 * tree-ssa-pre.c (create_expression_by_pieces): Treat
18849 POINTER_PLUS_EXPR properly.
18851 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
18852 Changpeng Fang <changpeng.fang@amd.com>
18854 PR middle-end/40886
18855 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
18856 the cost of an IV candidate when the IV is used in a test against zero.
18858 * gcc.dg/tree-ssa/ivopts-3.c: New.
18860 2010-02-11 Richard Guenther <rguenther@suse.de>
18863 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
18864 pointer-vs-decl case by swapping refs. Handle some cases
18865 of pointer-vs-decl disambiguations more conservatively.
18866 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
18867 to false after expanding.
18869 2010-02-11 Richard Guenther <rguenther@suse.de>
18872 * gcc.c (process_command): Handle LTO file@offset case more
18875 2010-02-11 Jakub Jelinek <jakub@redhat.com>
18877 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
18878 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
18880 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
18882 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
18883 if MEM's mode size isn't DWARF2_ADDR_SIZE.
18884 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
18885 Optimize eq/ne comparisons when both arguments are known to be
18887 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
18888 Don't mask operands unnecessarily if they are known to be already
18891 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
18893 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
18896 2010-02-10 Richard Guenther <rguenther@suse.de>
18898 PR tree-optimization/43017
18899 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
18900 for wrapping signed arithmetic.
18902 2010-02-10 Jakub Jelinek <jakub@redhat.com>
18905 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
18906 if no debug info should be emitted for it.
18908 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
18910 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
18911 note when flag_exceptions is set.
18913 2010-02-10 Duncan Sands <baldrick@free.fr>
18915 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
18917 2010-02-10 Richard Guenther <rguenther@suse.de>
18920 * tree.c (get_unwidened): Handle constants.
18921 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
18923 2010-02-10 Martin Jambor <mjambor@suse.cz>
18926 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
18927 check for variable argument counts independently.
18929 2010-02-10 Christian Bruel <christian.bruel@st.com>
18932 * config/sh/sh.c (find_barrier): Increase length for non delayed
18933 conditional branches.
18935 2010-02-10 Christian Bruel <christian.bruel@st.com>
18937 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
18939 2010-02-10 Jakub Jelinek <jakub@redhat.com>
18941 * builtins.c (set_builtin_user_assembler_name): Also handle
18942 ffs if int is smaller than word.
18944 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
18946 PR middle-end/42973
18947 * ira-conflicts.c (get_dup): Remove.
18948 (process_reg_shuffles): Add new parameter. Use it as an
18949 additional guard for copy generation.
18950 (add_insn_allocno_copies): Rewrite.
18952 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
18954 * common.opt (fsched2-use-traces): Preserved for backward
18956 * doc/invoke.texi: Remove the documentation about option
18957 -fsched2-use-traces.
18958 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
18959 flag_sched2_use_traces.
18960 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
18961 the backward compatibility flag section.
18963 2010-02-09 Richard Guenther <rguenther@suse.de>
18965 PR tree-optimization/43008
18966 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
18967 make HEAP variables initialized from global memory if they
18968 are not known builtin functions.
18969 (find_func_aliases): Adjust.
18971 2010-02-09 Richard Guenther <rguenther@suse.de>
18973 PR tree-optimization/43000
18974 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
18975 arithmetic manually.
18977 2010-02-08 Jakub Jelinek <jakub@redhat.com>
18979 PR tree-optimization/42931
18980 * tree-loop-linear.c (try_interchange_loops): Don't call
18981 double_int_mul if estimated_loop_iterations failed.
18983 2010-02-08 Martin Jambor <mjambor@suse.cz>
18985 PR middle-end/42898
18986 * tree-sra.c (build_accesses_from_assign): Do not mark in
18987 should_scalarize_away_bitmap if stmt has volatile ops.
18988 (sra_modify_assign): Do not process assigns piecemeal if if stmt
18991 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
18993 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
18995 2010-02-07 Adam Nemet <adambnmet@gmail.com>
18997 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
18998 before the pattern.
19000 2010-02-07 Andrew Pinski <pinskia@gmail.com>
19002 PR middle-end/42946
19003 * df-core.c (df_finish_pass): Change type of saved_flags to int.
19005 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
19007 PR middle-end/42988
19008 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
19009 to unknown_dependence.
19010 (graphite_legal_transform_dr): Handle the unknown_dependence.
19011 (graphite_carried_dependence_level_k): Same.
19013 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
19015 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
19017 2010-02-07 Richard Guenther <rguenther@suse.de>
19019 PR middle-end/42991
19020 * expr.c (get_inner_reference): Always initialize *pbitsize.
19022 2010-02-07 Richard Guenther <rguenther@suse.de>
19024 PR middle-end/42956
19025 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
19026 new ARRAY_REFs on variable size element or minimal index arrays.
19028 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
19029 gimple_fold_indirect_ref.
19031 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
19034 * arm.c (arm_override_options): Just return if the user has specified
19035 an invalid fpu name.
19037 2010-02-03 Jason Merrill <jason@redhat.com>
19040 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
19041 i386_pe_maybe_record_exported_symbol.
19043 2010-02-05 Steve Ellcey <sje@cup.hp.com>
19046 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
19047 (pa_delegitimize_address): New function.
19049 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
19051 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
19052 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
19054 2010-02-05 Richard Guenther <rguenther@suse.de>
19057 * lto-streamer-in.c (get_resolution): Deal with references
19058 to undefined functions.
19060 2010-02-05 Richard Guenther <rguenther@suse.de>
19062 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
19063 (fold_const_aggregate_ref): Likewise.
19064 (ccp_fold_stmt): Substitute loads.
19065 (maybe_fold_reference): Verify types before substituting.
19067 (fold_gimple_assign): Unshare properly.
19068 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
19070 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
19072 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
19073 for rs6000_gen_cell_microcode.
19075 2010-02-04 Richard Guenther <rguenther@suse.de>
19077 PR rtl-optimization/42952
19078 * dse.c (const_or_frame_p): Remove MEM handling.
19080 2010-02-04 Nick Clifton <nickc@redhat.com>
19082 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
19083 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
19084 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
19085 (mn10300_asm_output_mi_thunk): New function.
19086 (mn10300_can_output_mu_thunk): New function.
19087 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
19088 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
19089 (FUNCTION_ARG): Delete incorrect comment.
19091 2010-02-03 Jason Merrill <jason@redhat.com>
19094 * fold-const.c (operand_equal_p): Handle erroneous types.
19096 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
19098 * config/h8300/h8300.md (can_delay): Fix attibute condition.
19100 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
19102 PR rtl-optimization/42941
19103 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
19106 2010-02-03 Jason Merrill <jason@redhat.com>
19109 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
19111 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
19114 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
19115 (cselib_reset_table): Renamed from...
19116 (cselib_reset_table_with_next_value): ... this.
19117 (cselib_get_next_uid): Renamed from...
19118 (cselib_get_next_unknown_value): ... this.
19119 * cselib.c (next_uid): Renamed from...
19120 (next_unknown_value): ... this.
19121 (cselib_clear_table): Adjust.
19122 (cselib_reset_table): Adjust. Renamed from...
19123 (cselib_reset_table_with_next_value): ... this.
19124 (cselib_get_next_uid): Adjust. Renamed from...
19125 (cselib_get_next_unknown_value): ... this.
19126 (get_value_hash): Use hash.
19127 (cselib_hash_rtx): Likewise.
19128 (new_cselib_val): Adjust. Set and dump uid.
19129 (cselib_lookup_mem): Pass next_uid as hash.
19130 (cselib_subst_to_values): Likewise.
19131 (cselib_log_lookup): Dump uid.
19132 (cselib_lookup): Pass next_uid as hash. Adjust.
19133 (cselib_process_insn): Adjust.
19134 (cselib_init): Initialize next_uid.
19135 (cselib_finish): Adjust.
19136 (dump_cselib_table): Likewise.
19137 * dse.c (canon_address): Dump value uid.
19138 * print-rtl.c (print_rtx): Print value uid.
19139 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
19141 (dv_uid): New function, sort of renamed from...
19142 (dv_htab_hash): ... this, reimplemented in terms of it and...
19143 (dv_uid2hash): ... this. New.
19144 (variable_htab_eq): Drop excess assertions.
19145 (tie_break_pointers): Removed.
19146 (canon_value_cmp): Compare uids.
19147 (variable_post_merge_New_vals): Print uids.
19148 (vt_add_function_parameters): Adjust.
19149 (vt_initialize): Reset table. Adjust.
19151 2010-02-03 Richard Guenther <rguenther@suse.de>
19153 PR tree-optimization/42944
19154 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
19155 (call_may_clobber_ref_p_1): Likewise. Properly handle
19156 malloc and calloc clobbering errno.
19158 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
19160 * doc/invoke.texi: Fix name of sched1 dump.
19162 * opts.c (decode_options): Set flag_tree_switch_conversion
19163 only conditionally on optimize >= 2.
19165 * gcse.c: Assorted comment fixes in pass description.
19167 2010-02-03 Anthony Green <green@moxielogic.com>
19169 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
19170 nop padding in order to maintain alignment of storage location of
19171 target function address.
19172 (moxie_trampoline_init): Store target function address at newly
19174 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
19176 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
19178 2010-02-03 Richard Guenther <rguenther@suse.de>
19180 PR middle-end/42927
19181 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
19183 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19185 * config.gcc: Reenable check for obsolete targets.
19186 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
19187 mips-sgi-irix6.[0-4]*.
19189 2010-02-02 Nick Clifton <nickc@redhat.com>
19191 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
19192 constant size of 4 as being the same as 0.
19193 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
19194 can take values in the range 0..4.
19196 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
19199 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
19200 as _darwin10_Unwind_FindEnclosingFunction().
19201 * libgcc-libsystem.ver: New.
19203 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
19206 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
19207 implicitly set registers.
19209 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
19211 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
19212 (arm_override_options): Allow automatic selection of the thread
19213 pointer register if thumb2.
19214 (legitimize_pic_address): Improve code sequences for Thumb2.
19215 (arm_call_tls_get_addr): Likewise.
19216 (legitimize_tls_address): Likewise.
19217 * arm.md (pic_load_addr_arm): Delete. Replace with ...
19218 (pic_load_addr_32bit): ... this. New named pattern.
19219 * thumb2.md (pic_load_addr_thumb2): Delete.
19220 (pic_load_dot_plus_four): Delete.
19221 (tls_load_dot_plus_four): New named pattern.
19223 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19226 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
19227 Document fix for TLS bug.
19229 2010-01-31 Richard Guenther <rguenther@suse.de>
19231 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
19232 conservatively correct.
19234 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19238 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19240 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
19242 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19244 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
19246 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
19248 * config.gcc: Adjust order of makefile fragments for mingw targets.
19250 2010-01-31 Richard Guenther <rguenther@suse.de>
19252 PR middle-end/42898
19253 * gimplify.c (gimplify_init_constructor): For volatile LHS
19254 initialize a temporary.
19256 2010-01-31 Matthias Klose <doko@ubuntu.com>
19258 * configure.ac: Fix __stack_chk_fail check for cross builds configured
19260 * configure: Regenerate.
19262 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
19264 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
19265 the same alias set and their sizes different constantness.
19266 (aliasing_component_refs_p): Revert 2009-10-24 change.
19268 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19270 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
19273 2010-01-29 Richard Guenther <rguenther@suse.de>
19275 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
19276 Assert we successfully updated the call.
19278 2010-01-29 Jakub Jelinek <jakub@redhat.com>
19280 PR rtl-optimization/42889
19281 * df.h (df_set_bb_dirty_nonlr): New prototype.
19282 * df-core.c (df_set_bb_dirty_nonlr): New function.
19283 * df-scan.c (df_insn_rescan): Call it instead of
19284 df_set_bb_dirty for DEBUG_INSNs.
19286 2010-01-29 Richard Guenther <rguenther@suse.de>
19288 PR middle-end/37448
19289 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
19290 quadratic behavior in most cases.
19292 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
19295 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
19296 in the call to gen_x86_movsicc_0_m1.
19298 2010-01-28 Richard Guenther <rguenther@suse.de>
19300 PR tree-optimization/42871
19301 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
19303 2010-01-28 Richard Guenther <rguenther@suse.de>
19305 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
19306 into call arguments.
19308 2010-01-28 Richard Guenther <rguenther@suse.de>
19310 PR middle-end/42883
19311 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
19312 the forwarder if the destination is an EH landing pad.
19314 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
19316 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
19317 block list passed to gimple_duplicate_sese_tail.
19318 (parallelize_loops): Avoid parallelization when the function
19319 has_nonlocal_label.
19320 Avoid parallelization when the preheader is IRREDUCIBLE.
19321 Try to optimize when estimated_loop_iterations_int is unresolved.
19322 Add the loop's location to the dump file.
19323 * tree-cfg.c (add_phi_args_after_redirect): Remove.
19324 (gimple_duplicate_sese_tail): Remove the check for the latch.
19325 Redirect nexits to the exit block.
19326 Remove handling of the incoming edges to the latch.
19327 Redirect the backedge from the copied latch to the exit bb.
19329 2010-01-28 Michael Matz <matz@suse.de>
19332 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
19333 Wrap force_reg into a sequence, emit it before user.
19335 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
19337 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
19339 (arm_legacy_rev): Likewise.
19340 (thumb_legacy_rev): Likewise.
19342 2010-01-27 Jakub Jelinek <jakub@redhat.com>
19344 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
19345 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
19346 on MEM's address failed, try avoid_constant_pool_reference and
19347 recurse if it returned something different.
19348 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
19349 address, try avoid_constant_pool_reference and recurse if it
19350 returned something different.
19351 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
19352 address and avoid_constant_pool_reference returned something
19353 different, don't set have_address.
19355 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
19358 * var-tracking.c (val_store): Add modified argument, obey it.
19360 (count_uses): Move down logging of main.
19361 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
19362 don't need resolution.
19363 (emit_notes_in_bb): Likewise.
19365 2010-01-27 Richard Guenther <rguenther@suse.de>
19367 PR middle-end/42878
19368 * tree-inline.c (remap_decl): Delay remapping of SSA name
19369 default definitions until we need them.
19371 2010-01-27 Jakub Jelinek <jakub@redhat.com>
19373 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
19374 (rs6000_delegitimize_address): New function.
19376 * config/s390/s390.c (s390_delegitimize_address): Call
19377 delegitimize_mem_from_attrs.
19379 PR middle-end/42874
19380 * tree-inline.c (cannot_copy_type_1): Removed.
19381 (copy_forbidden): Don't forbid copying of functions containing
19382 records/unions with variable length fields.
19384 2010-01-27 Christian Bruel <christian.bruel@st.com>
19388 * config/sh/sh.c (find_barrier): Increase length for non delayed
19389 conditional branches.
19391 2010-01-27 Matthias Klose <doko@ubuntu.com>
19393 * configure.ac (gnu-unique-object): Fix ldd version check.
19394 * configure: Regenerate.
19396 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19398 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
19400 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
19401 Test for HAVE_GNU_AS value.
19403 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19405 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
19406 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
19407 INT64_TYPE): Define.
19408 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
19409 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
19410 INT_LEAST64_TYPE): Define.
19411 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
19412 UINT_LEAST64_TYPE): Define.
19413 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
19414 INT_FAST64_TYPE): Define.
19415 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
19416 UINT_FAST64_TYPE): Define.
19417 (INTMAX_TYPE, UINTMAX_TYPE): Define.
19418 (INTPTR_TYPE, UINTPTR_TYPE): Define.
19419 (SIG_ATOMIC_TYPE): Define.
19421 2010-01-26 Richard Guenther <rguenther@suse.de>
19423 * df-scan.c (df_scan_set_bb_info): Remove assert.
19424 (df_insn_rescan_debug_internal): Merge asserts.
19425 (df_install_ref): Likewise.
19426 (df_mark_reg): Use bitmap_set_range.
19427 (df_hard_reg_used_p): Remove assert.
19428 (df_hard_reg_used_count): Likewise.
19430 2010-01-26 Richard Guenther <rguenther@suse.de>
19432 PR rtl-optimization/42685
19433 * web.c (web_main): Ignore DEBUG_INSNs.
19435 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
19437 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
19439 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
19440 Fix types of fndecl and arglist parameters.
19442 2010-01-26 Richard Guenther <rguenther@suse.de>
19444 PR middle-end/42806
19445 * tree-eh.c (unsplit_eh): Skip debug insns.
19447 2010-01-26 Richard Guenther <rguenther@suse.de>
19449 PR tree-optimization/42250
19450 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
19452 2010-01-26 Jakub Jelinek <jakub@redhat.com>
19455 * omp-low.c (expand_omp_sections): Only use single_pred if
19456 l2_bb is single_pred_p.
19458 2010-01-25 Christian Bruel <christian.bruel@st.com>
19461 * config/sh/sh.c (find_barrier): Increase length for non delayed
19462 conditional branches.
19463 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
19465 2010-01-24 David S. Miller <davem@davemloft.net>
19467 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
19468 define if not using GAS.
19469 * config/sparc/sparc.c (sparc_elf_asm_named_section):
19470 Likewise. Delete SECTION_MERGE code, which is only applicable
19473 2010-01-24 Mark Mitchell <mark@codesourcery.com>
19476 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
19477 mangling of va_list in system headers.
19479 2010-01-23 Toon Moene <toon@moene.org>
19481 * tree-predcom.c (combine_chains): Return NULL, not false.
19483 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
19485 * tree-loop-distribution.c (distribute_loop): Fix declaration and
19486 initialization of variable res to agree with return type.
19488 2010-01-22 Steve Ellcey <sje@cup.hp.com>
19490 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
19491 * tree-sra.c: Add include of expr.h.
19493 2010-01-22 Jakub Jelinek <jakub@redhat.com>
19495 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
19496 insert the debug stmt on the single non-EH edge from the stmt.
19498 2010-01-22 Richard Henderson <rth@redhat.com>
19501 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
19502 the RHS until after generate_subtree_copies has insertted its
19503 code before the current statement.
19505 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
19507 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
19509 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
19511 2010-01-21 Martin Jambor <mjambor@suse.cz>
19513 PR tree-optimization/42585
19514 * tree-sra.c (struct access): New field grp_total_scalarization.
19515 (dump_access): Dump the new field.
19516 (should_scalarize_away_bitmap): New variable.
19517 (cannot_scalarize_away_bitmap): Likewise.
19518 (sra_initialize): Allocate new bitmaps.
19519 (sra_deinitialize): Free new bitmaps.
19520 (create_access_1): New function.
19521 (create_access): Parts moved to create_access_1.
19522 (type_consists_of_records_p): New function.
19523 (completely_scalarize_record): Likewise.
19524 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
19525 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
19526 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
19528 (analyze_all_variable_accesses): Completely scalarize small eligible
19531 2010-01-21 Martin Jambor <mjambor@suse.cz>
19533 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
19535 2010-01-21 Andrew Haley <aph@redhat.com>
19537 * gcc.c (process_command): Move lang_specific_driver before
19538 setting cc_libexec_prefix.
19540 2010-01-21 Richard Guenther <rguenther@suse.de>
19542 PR middle-end/19988
19543 * fold-const.c (negate_expr_p): Pretend only negative
19544 real constants are easily negatable.
19546 2010-01-20 Janis Johnson <janis187@us.ibm.com>
19547 Jason Merrill <jason@redhat.com>
19549 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
19550 (TYPE_TRANSPARENT_AGGR): this, for union and record.
19551 * calls.c (initialize argument_information): Handle it.
19552 * c-common.c (handle_transparent_union_attribute): Use new name.
19553 * c-decl.c (finish_struct): Ditto.
19554 * c-typeck.c (type_lists_compatible_p): Ditto.
19555 (convert_for_assignment): Use new name and also handle record.
19556 * function.c (aggregate_value_p): Handle it.
19557 (pass_by_reference): Ditto.
19558 (assign_parm_data_types): Ditto.
19559 * print-tree.c (print_node): Ditto.
19560 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
19561 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
19562 * tree.c (first_field): New fn.
19564 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
19567 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
19568 even when linking statically, for now.
19570 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
19573 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
19574 without a cselib val.
19575 (count_uses): Accept MO_VAL_SET with no val on stores.
19576 (add_stores): Likewise.
19578 2010-01-20 Jakub Jelinek <jakub@redhat.com>
19580 * var-tracking.c (check_value_val): Add a compile time assertion.
19581 (dv_is_decl_p): Simplify.
19582 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
19583 gcc_assert if ENABLE_CHECKING.
19585 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
19588 * var-tracking.c: Include tree-flow.h.
19589 (mem_dies_at_call): New.
19590 (dataflow_set_preserve_mem_locs): Use it.
19591 (dataflow_set_remove_mem_locs): Likewise.
19592 (dump_var): Renamed from dump_variable. Adjust all callers.
19593 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
19594 * Makefile.in (var-tracking.o): Adjust deps.
19596 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
19598 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
19600 2010-01-20 Richard Guenther <rguenther@suse.de>
19602 PR tree-optimization/42717
19603 * tree-ssa-dce.c (get_live_post_dom): Remove.
19604 (forward_edge_to_pdom): Take an arbitrary edge to copy
19605 degenerate PHI args from.
19606 (remove_dead_stmt): Use the first post-dominator even if it
19607 does not contain live statements as redirection destination.
19609 2010-01-20 Richard Guenther <rguenther@suse.de>
19611 * tree-inline.c (estimate_num_insns): Handle EH builtins.
19613 2010-01-20 Jakub Jelinek <jakub@redhat.com>
19615 * sel-sched.c (create_speculation_check): Remove set but not used
19617 (try_transformation_cache): Remove set but not used variable ds.
19618 (calculate_privileged_insns): Remove set but not used variables
19619 cur_insn and min_spec_insn.
19620 (find_best_expr): Remove set but not used variable avail_n.
19621 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
19623 * cgraphunit.c (assemble_thunk): Remove set but not used variable
19625 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
19626 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
19627 new_scop_exit_edge.
19629 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
19632 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
19633 cpu types. Add support for *-sse3 cpu types.
19634 (x86_64-*-*): Ditto.
19636 2010-01-20 Jakub Jelinek <jakub@redhat.com>
19638 PR middle-end/42803
19639 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
19640 argument, call initializer_constant_valid_p_1 instead of
19641 initializer_constant_valid_p, pass CACHE to it, return NULL
19642 immediately if first call returns NULL.
19643 (initializer_constant_valid_p_1): New function.
19644 (initializer_constant_valid_p): Use it.
19646 2010-01-20 Thomas Quinot <quinot@adacore.com>
19648 * tree.def (PLACEHOLDER_EXPR): Fix comment.
19650 2010-01-20 Jakub Jelinek <jakub@redhat.com>
19652 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
19653 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
19654 (loc_list_from_tree): Don't handle unsigned division. Handle
19655 signed modulo using DW_OP_{over,over,div,mul,minus}.
19656 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
19657 modulo instead of signed.
19659 2010-01-20 DJ Delorie <dj@redhat.com>
19661 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
19663 (h8300_emit_stack_adjustment): Propogate it.
19665 (h8300_expand_prologue): Likewise.
19666 (h8300_expand_epilogue): Likewise.
19668 2010-01-19 Michael Matz <matz@suse.de>
19670 PR tree-optimization/41783
19671 * tree-data-ref.c (toplevel): Include flags.h.
19672 (dump_data_dependence_relation): Also dump the inputs if the
19673 result will be unknown.
19674 (split_constant_offset_1): Look through some conversions.
19675 * tree-predcom.c (determine_roots_comp): Restart a new chain if
19676 the offset from last element is too large.
19677 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
19678 (reassociate_to_the_same_stmt): Handle vector registers.
19679 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
19680 (e.g. conversions).
19681 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
19682 wide_prolog_niters argument, emit widening instructions.
19683 (vect_do_peeling_for_alignment): Adjust caller, use widened
19684 variant of the iteration cound.
19685 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
19687 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19690 * config/arm/neon-testgen.m (emit_automatics): New parameter
19691 features. Adjust for Fixed_return_reg feature.
19692 (test_intrinsic): Call emit_automatics with new feature.
19693 * config/arm/neon.ml: Update copyright years.
19694 (features): New Fixed_return_reg feature.
19695 (ops): Update feature for Vget_low.
19697 2010-01-19 Jakub Jelinek <jakub@redhat.com>
19699 PR tree-optimization/42719
19700 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
19704 * fwprop.c (all_uses_available_at): Return false if def_set dest
19705 is a REG that is used in def_insn.
19707 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
19709 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
19711 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
19712 Add argument names.
19714 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
19716 * target.h (struct gcc_target) <secondary_reload>: Change type
19717 of last argument to secondary_reload_info *.
19719 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
19722 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
19723 memory references with unaligned offsets. Remove CQImode handling.
19724 (unaligned_memory_operand): Return 1 for memory references with
19725 unaligned offsets. Remove CQImode handling.
19727 2010-01-18 Richard Guenther <rguenther@suse.de>
19729 PR middle-end/39954
19730 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
19733 2010-01-18 Richard Guenther <rguenther@suse.de>
19735 PR tree-optimization/42781
19736 * tree-ssa-structalias.c (find_what_var_points_to): Skip
19737 restrict processing only if the original variable was artificial.
19739 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
19741 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
19742 find number of popped argument bytes.
19744 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
19745 Fix the text that describes the return value for invalid insns.
19747 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
19749 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
19750 Clarify what 'cost of the -dependence' is. Fix quoting.
19752 * toplev.c (default_get_pch_validity): Rename argument to "sz".
19753 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
19755 2010-01-17 Jakub Jelinek <jakub@redhat.com>
19757 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
19758 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
19760 2010-01-17 Richard Guenther <rguenther@suse.de>
19762 PR middle-end/42248
19763 * function.c (split_complex_args): Take a VEC to modify.
19764 (assign_parms_augmented_arg_list): Build a VEC instead of
19765 a chain of PARM_DECLs.
19766 (assign_parms_unsplit_complex): Take a VEC of arguments.
19767 Do not fixup unmodified parms.
19768 (assign_parms): Deal with the VEC.
19769 (gimplify_parameters): Likewise.
19771 2010-01-17 Richard Guenther <rguenther@suse.de>
19773 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
19774 node existence check.
19775 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
19776 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
19777 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
19778 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
19779 (gimple_execute_on_growing_pred): Likewise.
19781 2010-01-17 Richard Guenther <rguenther@suse.de>
19783 PR tree-optimization/42773
19784 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
19785 (compute_antic_aux): Likewise.
19786 (compute_partial_antic_aux): Likewise.
19788 2010-01-17 Jie Zhang <jie.zhang@analog.com>
19791 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
19794 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
19796 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
19799 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
19800 Fix markup for strict argument.
19802 (TARGET_SCHED_REORDER2): Fix argument types.
19804 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
19805 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
19807 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
19808 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
19810 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
19813 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
19814 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
19815 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
19816 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
19817 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
19819 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
19821 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
19823 (TARGET_ASM_RELOC_RW_MASK): Add return type.
19824 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
19826 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
19828 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
19831 (TARGET_ASM_NAMED_SECTION): Fix argument list.
19833 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
19834 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
19836 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
19838 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
19840 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
19841 referring to it. Fix language.
19843 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
19845 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
19847 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
19849 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
19851 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
19852 '@var{stream}. Remove stray 'and'.
19854 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
19856 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
19858 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
19860 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
19861 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
19863 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
19864 Fix description of return value.
19865 Rename argument "sz" to "len."
19867 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
19868 Clarify meaning of 'true' return value.
19870 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
19872 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
19873 rep_mode versus mode_rep.
19875 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
19877 (TARGET_BUILTIN_DECL): Fix name.
19879 (TARGET_COMMUTATIVE_P): Fix type of first argument.
19881 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
19883 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
19885 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
19887 (TARGET_RELAXED_ORDERING): Use @deftypevr.
19889 (TARGET_GET_DRAP_RTX): Note that this is a hook.
19892 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
19893 Rename argument tm_fn to md_fn.
19895 (TARGET_OPTION_PRINT): Fix argument list.
19897 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
19900 * config/i386/i386.c (ix86_fixup_binary_operands):
19901 Revert FMA4 fixup of operands.
19903 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19906 * Makefile.in (write_entries_to_file, install-plugin):
19907 Use \012 instead of \n with tr.
19909 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
19911 * configure.ac (HAVE_AS_REF): New C macro.
19912 * configure: Regenerate.
19913 * config.in: Likewise.
19914 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
19916 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
19919 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
19921 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
19923 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
19925 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
19927 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
19929 (TARGET_IN_SMALL_DATA_P): Fix argument type.
19931 (TARGET_BINDS_LOCAL_P): Fix argument type.
19933 (TARGET_ASM_FILE_END): Use prototype.
19935 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
19937 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
19939 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
19941 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
19943 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
19944 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
19946 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
19947 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
19949 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
19950 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
19951 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
19952 (TARGET_ADDR_SPACE_CONVERT): Likewise.
19954 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
19956 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
19958 (TARGET_INIT_BUILTINS): Use prototype.
19960 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
19961 Put 'const char *' in braces. Fix parameter types.
19962 (TARGET_INVALID_CONVERSION): Fix parameter types.
19963 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
19964 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
19966 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
19969 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
19971 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
19973 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
19975 * doc/tm.texi (TARGET_HELP): Fix return type.
19977 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
19978 in braces. Fix argument types.
19980 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
19982 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
19984 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
19986 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
19987 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
19989 (TARGET_MANGLE_TYPE): Fix argument types.
19991 (TARGET_IRA_COVER_CLASSES): Use prototype.
19993 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
19995 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
19997 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
19999 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
20001 (TARGET_CALLEE_COPIES): Fix argument types.
20003 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
20005 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
20007 (TARGET_FUNCTION_VALUE): Fix argument types.
20009 (TARGET_RETURN_IN_MSB): Fix argument type.
20011 (TARGET_RETURN_IN_MEMORY): Fix argument types.
20013 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
20015 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
20017 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
20018 agree with return type.
20020 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
20022 2010-01-15 Jing Yu <jingyu@google.com>
20024 PR rtl-optimization/42691
20025 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
20026 a pseudo to a constant and are merged, and adjust comments.
20028 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
20030 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
20032 2010-01-15 Richard Guenther <rguenther@suse.de>
20034 PR middle-end/42739
20035 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
20036 labels of computed or non-local gotos to the destination.
20037 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
20038 landing pad label is the first label.
20040 2010-01-15 Richard Guenther <rguenther@suse.de>
20042 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
20044 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
20047 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
20048 to allow generation of the xssqrtdp instruction on power7.
20049 (sqrtdf2_fpr): Ditto.
20051 2010-01-14 Jakub Jelinek <jakub@redhat.com>
20053 PR middle-end/42674
20054 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
20055 functions with noreturn attribute.
20058 * varasm.c (declare_weak): Add weak attribute to decl if it
20059 doesn't have one already.
20060 (assemble_external): Only add decls to weak_decls if they also
20061 have weak attribute.
20063 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
20065 * var-tracking.c (var_reg_delete): Don't delete the association
20066 between REGs and values or one-part variables if the register
20069 2010-01-14 Jakub Jelinek <jakub@redhat.com>
20072 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
20073 because its first operand is a non-localized variable.
20075 2010-01-14 Martin Jambor <mjambor@suse.cz>
20077 PR tree-optimization/42706
20078 * tree-sra.c (encountered_recursive_call): New variable.
20079 (encountered_unchangable_recursive_call): Likewise.
20080 (sra_initialize): Initialize both new variables.
20081 (callsite_has_enough_arguments_p): New function.
20082 (scan_function): Call decl and flags check only for IPA-SRA, check
20083 whether there is a recursive call and whether it has enough arguments.
20084 (all_callers_have_enough_arguments_p): New function.
20085 (convert_callers): Look for recursive calls only when
20086 encountered_recursive_call is set.
20087 (ipa_early_sra): Bail out either if
20088 !all_callers_have_enough_arguments_p or
20089 encountered_unchangable_recursive_call.
20091 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
20093 * sel-sched.c: Add 2010 to copyright years.
20094 * sel-sched-ir.c: Likewise.
20095 * sel-sched-ir.h: Likewise.
20097 2010-01-14 Martin Jambor <mjambor@suse.cz>
20099 PR tree-optimization/42714
20100 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
20101 constructors specially.
20103 2010-01-14 Andi Kleen <ak@linux.intel.com>
20105 * config/i386/drivers-i386.c (detect_caches_intel):
20106 Add l2sizekb parameter and fill in.
20107 (host_detect_local_cpu): Add l2sizekb, fill in.
20108 Add Atom small cache heuristic.
20110 2010-01-14 Andi Kleen <ak@linux.intel.com>
20112 * config/i386/drivers-i386.c (detect_caches_cpuid4):
20113 Add level3 parameter and fill in.
20114 (detect_caches_intel): Handle level3 cache.
20116 2010-01-14 Andi Kleen <ak@linux.intel.com>
20118 * config/i386/drivers-i386.c (host_detect_local_cpu):
20119 Fix core duo detection.
20121 2010-01-14 Andi Kleen <ak@linux.intel.com>
20123 * config/i386/drivers-i386.c (host_detect_local_cpu):
20124 Fix Atom detection.
20126 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
20128 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
20129 (rs6000_variable_issue_1): this. Use...
20130 (rs6000_variable_issue): here. Reimplement. Print debug info.
20132 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
20134 * sel-sched-ir.c (sel_restore_other_notes): Rename to
20135 sel_restore_notes. Update all callers. Call reemit_notes
20138 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
20140 PR rtl-optimization/42246
20141 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
20144 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
20146 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
20147 all successors is the same as number of successors in current region.
20149 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
20151 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
20152 to rename is not separable. Otherwise check that its LHS is not NULL.
20154 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
20156 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
20158 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
20160 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
20161 available registers when failed to discover LHS register class.
20162 Fix indentation. Update comment.
20164 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
20165 Alexander Monakov <amonakov@ispras.ru>
20167 PR rtl-optimization/42389
20168 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
20170 (advance_state_on_fence): Likewise.
20171 (sel_target_adjust_priority): Print debug output only when
20172 sched_verbose >= 4, not 2.
20173 (get_expr_cost): Do not issue all unique insns on the next cycle.
20174 (fill_insns): Initialize can_issue_more from the value saved
20176 * sel-sched-ir.c (flist_add): New parameter issue_more.
20177 Init FENCE_ISSUE_MORE with it.
20178 (merge_fences): Likewise.
20179 (init_fences): Update call to flist_add.
20180 (add_to_fences, add_clean_fence_to_fences)
20181 (add_dirty_fence_to_fences): Likewise.
20182 (move_fence_to_fences): Update call to merge_fences.
20183 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
20185 * sel-sched-ir.h (struct _fence): New field issue_more.
20186 (FENCE_ISSUE_MORE): New accessor macro.
20188 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
20190 PR rtl-optimization/42388
20191 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
20192 that have no predecessors nor successors. Do not call move_bb_info
20193 for empty blocks outside of current region.
20195 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
20197 PR rtl-optimization/42294
20198 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
20199 * sel-sched.c (move_exprs_to_boundary): Transitively add all
20200 originators' originators.
20202 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
20204 PR rtl-optimization/39453
20205 PR rtl-optimization/42246
20206 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
20208 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
20210 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
20211 Alexander Monakov <amonakov@ispras.ru>
20213 PR middle-end/42245
20214 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
20215 (maybe_tidy_empty_bb): ... here. Make static. Add new
20216 argument. Update all callers.
20217 (tidy_control_flow): ... and here. Recompute topological order
20218 of basic blocks in region if necessary.
20219 (sel_redirect_edge_and_branch): Change return type. Return true
20220 if topological order might have been invalidated.
20221 (purge_empty_blocks): Export and move from...
20222 * sel-sched.c (purge_empty_blocks): ... here.
20223 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
20224 (maybe_tidy_empty_bb): Delete prototype.
20225 (purge_empty_blocks): Declare.
20227 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
20229 PR rtl-optimization/42249
20230 * sel-sched.c (try_replace_dest_reg): When chosen register
20231 and original register is the same, do not bail out early, but
20232 still check all original insns for validity of replacing destination
20233 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
20236 2010-01-14 Jakub Jelinek <jakub@redhat.com>
20239 Port from no-undefined-overflow branch:
20240 2009-03-09 Richard Guenther <rguenther@suse.de>
20242 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
20244 2010-01-14 Richard Guenther <rguenther@suse.de>
20247 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
20249 2010-01-14 Ira Rosen <irar@il.ibm.com>
20251 PR tree-optimization/42709
20252 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
20253 as scalar type in creation of constant vector operand.
20255 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20258 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
20259 (check-parallel-%): Match `testsuite' directory component only
20262 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
20264 PR translation/39521
20265 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
20268 2010-01-13 Richard Guenther <rguenther@suse.de>
20270 PR tree-optimization/42730
20271 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
20274 2010-01-13 Steve Ellcey <sje@cup.hp.com>
20277 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
20278 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
20281 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
20283 * config/bfin/libgcc-bfin.ver: Regenerate based on current
20284 libgcc-std.ver. Add entries for ___smulsi3_highpart and
20285 ___umulsi3_highpart.
20287 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
20288 rather than schedule_insns if the pass is enabled.
20290 2010-01-13 Martin Jambor <mjambor@suse.cz>
20292 PR tree-optimization/42704
20293 * tree-sra.c (sra_modify_assign): Do not delete assignments to
20296 2010-01-13 Martin Jambor <mjambor@suse.cz>
20298 PR tree-optimization/42703
20299 * tree-sra.c (analyze_access_subtree): Check that we can build a
20300 reference to the original data within the aggregate.
20302 2010-01-13 Richard Guenther <rguenther@suse.de>
20304 PR tree-optimization/42705
20305 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
20307 2010-01-13 Richard Guenther <rguenther@suse.de>
20309 PR middle-end/42716
20310 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
20312 2010-01-13 Jakub Jelinek <jakub@redhat.com>
20315 * var-tracking.c (values_to_unmark): New variable.
20316 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
20317 values_to_unmark vector. Moved body to...
20318 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
20319 instead queue it into values_to_unmark vector.
20320 (vt_find_locations): Free values_to_unmark vector.
20322 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
20324 * config/s390/s390.c (override_options): Set
20325 default of max-pending-list-length to 256
20327 2010-01-13 Richard Guenther <rguenther@suse.de>
20330 * tree-pass.h (PROP_gimple_lcx): New.
20331 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
20332 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
20333 before the final cleanup_eh.
20334 (dump_properties): Dump PROP_gimple_lcx.
20335 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
20336 (tree_lower_complex_O0): Remove.
20337 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
20338 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
20339 tree_lower_complex, schedule TODO_update_ssa.
20340 * lto-streamer-out.c (output_function): Stream the functions
20342 * lto-streamer-in.c (input_function): Likewise.
20343 (lto_read_body): Do not override them here.
20345 2010-01-12 Joseph Myers <joseph@codesourcery.com>
20348 * c-typeck.c (build_c_cast): Fold value cast to union type before
20349 wrapping it in a CONSTRUCTOR.
20351 2010-01-12 Jakub Jelinek <jakub@redhat.com>
20353 PR rtl-optimization/42699
20354 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
20357 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20359 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
20360 SUBTARGET_WARN_UNUSED_SPEC): Move ...
20361 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
20362 SUBTARGET_WARN_UNUSED_SPEC): ... here
20363 * config/mips/iris5.h (LIBGCC_SPEC): Define.
20365 2010-01-12 Julian Brown <julian@codesourcery.com>
20367 * config/arm/neon-schedgen.ml (Utils): Don't try to
20368 open missing module.
20369 (find_with_result): New.
20371 2010-01-12 Jakub Jelinek <jakub@redhat.com>
20374 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
20375 sharing when canonicalizing ({lt,ge}u (plus a b) b).
20377 PR tree-optimization/42645
20378 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
20379 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
20380 decl_map, set processing_debug_stmt to -1 and return name without
20383 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
20385 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
20386 binutils version, and reword target configuration description.
20388 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
20390 * config/avr/avr.h (LINKER_NAME): Remove.
20392 2010-01-11 Janis Johnson <janis187@us.ibm.com>
20395 * config/rs6000/rs6000.c (rs6000_override_options): On targets
20396 that support VSX, warn for -mno-altivec if vsx is not disabled,
20399 2010-01-11 Joseph Myers <joseph@codesourcery.com>
20400 Shujing Zhao <pearly.zhao@oracle.com>
20402 PR translation/42469
20403 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
20404 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
20405 character between option name and help text.
20406 * c.opt (imultilib): Likewise.
20408 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
20410 * lto-streamer-out.c (output_unreferenced_globals): Output static
20413 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
20415 PR rtl-optimization/42621
20416 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
20417 optimizing for size.
20418 (duplicate_computed_gotos): Remove now-redundant check.
20420 2010-01-10 Steve Ellcey <sje@cup.hp.com>
20423 * configure.ac: Save and restore LDFLAGS and LIBS
20424 * configure: Regenerate.
20426 2010-01-10 Richard Guenther <rguenther@suse.de>
20428 PR middle-end/42667
20429 * builtins.c (fold_builtin_strlen): Add type argument and
20430 convert the resulting length to it.
20431 (fold_builtin_1): Adjust.
20433 2010-01-09 Jakub Jelinek <jakub@redhat.com>
20435 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
20436 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
20438 (num_insns_constant_wide): Adjust for that change.
20440 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
20443 * web.c (union_defs): Add used argument, to combine uses of
20444 uninitialized regs.
20445 (entry_register): Adjust type and tests of used argument.
20446 (web_main): Widen used for new use. Pass it to union_defs.
20447 * df.h (union_defs): Adjust prototype.
20449 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
20452 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
20453 uses in new incoming argument. Free body.
20454 (reset_debug_uses_in_loop): New.
20455 (analyze_insn_to_expand_var): Call the latter if the former found
20456 anything. Fix whitespace. Reject invalid dest overlaps before
20457 going through all insns in the loop.
20459 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
20462 * haifa-sched.c (dying_use_p): Debug insns don't count.
20464 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
20466 PR middle-end/42363
20467 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
20468 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
20469 (verify_gimple_call): Reject LHS in noreturn calls.
20471 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
20475 * tree-vect-loop-manip.c (adjust_info): New type.
20476 (adjust_vec): New pointer to vector.
20477 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
20478 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
20479 (slpeel_update_phis_for_duplicate_loop): Use them.
20480 (slpeel_update_phi_nodes_for_guard1): Likewise.
20481 (slpeel_update_phi_nodes_for_guard2): Likewise.
20482 (slpeel_tree_peel_loop_to_edge): Likewise.
20483 (vect_update_ivs_after_vectorizer): Likewise.
20485 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
20487 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
20488 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
20490 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
20492 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
20493 bogus uninitialized warning.
20495 2010-01-09 Richard Guenther <rguenther@suse.de>
20497 PR middle-end/42512
20498 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
20499 the evolution is compatible with the initial condition.
20501 2010-01-09 Jakub Jelinek <jakub@redhat.com>
20503 * gcc.c (process_command): Update copyright notice dates.
20504 * gcov.c (print_version): Likewise.
20505 * gcov-dump.c (print_version): Likewise.
20506 * mips-tfile.c (main): Likewise.
20507 * mips-tdump.c (main): Likewise.
20509 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
20512 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
20514 (rotlhi3_8): Delete.
20516 (rotlsi3_8): Delete.
20517 (rotlsi3_16): Delete.
20518 (rotlsi3_24): Delete.
20519 (rotl<mode>3): New.
20520 (*rotw<mode>3): New.
20521 (*rotb<mode>3): New.
20522 * config/avr/avr.c (avr_rotate_bytes): New function.
20523 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
20525 2010-01-08 Steve Ellcey <sje@cup.hp.com>
20528 * configure.ac: Modify -rdynamic check.
20529 * configure: Regenerate.
20531 2010-01-08 DJ Delorie <dj@redhat.com>
20533 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
20534 register popping order.
20536 2010-01-08 Richard Guenther <rguenther@suse.de>
20539 * c.opt (fsigned-char): Also let LTO handle this option.
20540 (funsigned-char): Likewise.
20542 2010-01-07 Richard Guenther <rguenther@suse.de>
20544 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
20545 (gimple_op): Likewise.
20546 (gimple_op_ptr): Likewise.
20547 (gimple_assign_set_lhs): Remove gcc_assert.
20548 (gimple_assign_set_rhs1): Likewise.
20549 (gimple_assign_set_rhs2): Likewise.
20550 (gimple_call_set_lhs): Likewise.
20551 (gimple_call_set_fn): Likewise.
20552 (gimple_call_set_fndecl): Likewise.
20553 (gimple_call_fndecl): Likewise.
20554 (gimple_call_return_type): Likewise.
20555 (gimple_call_set_chain): Likewise.
20556 (gimple_call_num_args): Likewise.
20557 (gimple_call_set_arg): Likewise.
20558 (gimple_cond_set_code): Likewise.
20559 (gimple_cond_set_lhs): Likewise.
20560 (gimple_cond_set_rhs): Likewise.
20561 (gimple_cond_set_true_label): Likewise.
20562 (gimple_cond_set_false_label): Likewise.
20563 (gimple_label_set_label): Likewise.
20564 (gimple_goto_set_dest): Likewise.
20565 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
20566 (gimple_debug_bind_get_value): Likewise.
20567 (gimple_debug_bind_get_value_ptr): Likewise.
20568 (gimple_debug_bind_set_var): Likewise.
20569 (gimple_debug_bind_set_value): Likewise.
20570 (gimple_debug_bind_reset_value): Likewise.
20571 (gimple_debug_bind_has_value_p): Likewise.
20572 (gimple_return_retval_ptr): Remove gcc_assert.
20573 (gimple_return_retval): Likewise.
20574 (gimple_return_set_retval): Likewise.
20575 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
20576 (safe_referenced_var_iterator): Remove.
20577 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
20578 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
20579 (fill_referenced_var_vec): Remove.
20580 (first_readonly_imm_use): Remove redundant gcc_assert.
20581 (phi_arg_index_from_use): Combine gcc_asserts.
20582 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
20583 (first_imm_use_stmt): Remove redundant gcc_assert.
20584 * tree-cfg.c (verify_gimple_call): Verify function and chain
20585 operands. Verify arguments.
20586 (verify_types_in_gimple_stmt): Verify condition code and labels.
20588 2010-01-07 Richard Guenther <rguenther@suse.de>
20590 PR tree-optimization/42641
20591 * sese.c (rename_map_elt_info): Use the SSA name version, do
20594 2010-01-07 Jakub Jelinek <jakub@redhat.com>
20596 PR tree-optimization/42625
20597 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
20598 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
20600 2010-01-07 Duncan Sands <baldrick@free.fr>
20602 * Makefile.in (PLUGIN_HEADERS): Add version.h.
20604 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
20607 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
20608 note itself is not function_invariant_p.
20610 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
20612 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
20613 Do not add the DF_NOTE problem.
20614 * store-motion.c (execute_rtl_store_motion): Likewise.
20616 2010-01-07 Martin Jambor <mjambor@suse.cz>
20618 PR tree-optimization/42157
20619 * tree-sra.c (compare_access_positions): Stabilize sort if both
20620 accesses have integer types, return zero immediately if they are the
20623 2010-01-06 Richard Henderson <rth@redhat.com>
20625 PR middle-end/41883
20626 * haifa-sched.c (add_to_note_list): Merge into ...
20627 (concat_note_lists): ... here, and ...
20628 (unlink_other_notes, rm_other_notes): Merge into...
20629 (remove_notes): ... here. Create REG_SAVE_NOTEs for
20630 NOTE_INSN_EPILOGUE_BEG.
20632 2010-01-06 Richard Guenther <rguenther@suse.de>
20634 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
20635 not inline regular functions into always-inline functions.
20637 2010-01-06 Nick Clifton <nickc@redhat.com>
20639 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
20640 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
20642 (OVERRIDE_OPTIONS): Delete.
20643 (OPTIMIZATION_OPTIONS): Define.
20644 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
20645 * config/rx/rx.c (rx_handle_option): Issue an error message if
20646 -mcpu=rx200 and -fpu are used together.
20647 (rx_set_optimization_options): New function. Issue an error
20648 message if an optimization attribute attempts to reset the FPU/
20649 math optimization pairing.
20650 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
20651 * config/rx/rx.opt: Set the default to 32-bit doubles.
20652 * config/rx/t-rx: Add multilibs for -nofpu option.
20653 * doc/invoke.texi: Update documentation of RX options.
20655 2010-01-06 Richard Guenther <rguenther@suse.de>
20657 * tree-ssa-pre.c (name_to_id): New global.
20658 (alloc_expression_id): Simplify SSA name handling.
20659 (lookup_expression_id): Likewise.
20660 (init_pre): Zero name_to_id.
20661 (fini_pre): Free it.
20663 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
20665 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
20667 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
20670 * config/i386/sse.md (smaxv2di3): New.
20671 (umaxv2di3): Likewise.
20672 (sminv2di3): Likewise.
20673 (uminv2di3): Likewise.
20675 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
20678 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
20679 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
20680 (legitimize_tls_address): Likewise.
20681 (sparc_tls_referenced_p): Likewise.
20682 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
20683 and adjust calls to legitimize_pic_address.
20684 (legitimate_constant_p) Use sparc_tls_referenced_p.
20685 (legitimate_pic_operand_p): Likewise.
20686 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
20687 (sparc_tls_symbol_ref_1): Delete.
20688 (sparc_tls_referenced_p): Make static, recognize specific patterns.
20689 (legitimize_tls_address): Make static, handle CONST patterns.
20690 (legitimize_pic_address): Make static, remove unused parameter and
20691 adjust recursive calls.
20692 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
20693 and adjust call to legitimize_pic_address.
20694 (sparc_output_mi_thunk): Likewise.
20696 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
20697 H.J. Lu <hongjiu.lu@intel.com>
20700 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
20701 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
20702 operands to make them signed.
20705 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
20708 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
20709 GTU to GT for V4SI and V2DI.
20711 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
20712 (umin<mode>3): Removed.
20714 (uminv4si3): Likewise.
20716 2010-01-05 Martin Jambor <mjambor@suse.cz>
20718 PR tree-optimization/42462
20719 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
20720 current_function_decl to helper functions and macros.
20722 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20725 * flags.h: Don't include real.h.
20726 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
20727 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
20728 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
20729 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
20730 * dominance.c: Update copyright.
20731 * gimple.c (walk_gimple_op): Remove inline.
20732 * tree-ssa-reassoc.c: Include real.h.
20733 * Makefile.in (FLAGS_H): Remove $(REAL_H).
20734 (tree-ssa-reassoc.o): Depend on $(REAL_H).
20736 2010-01-05 Nick Clifton <nickc@redhat.com>
20738 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
20739 register to push into the stack frame when the accumulator has to
20740 be saved during interrupts.
20742 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
20744 * doc/invoke.texi: Remove the documentation about option
20745 -Wunreachable-code.
20746 * common.opt (Wunreachable-code): Preserved for backward
20748 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
20749 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
20750 the backward compatibility flag section.
20752 2010-01-05 Richard Guenther <rguenther@suse.de>
20754 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
20756 2010-01-05 Jakub Jelinek <jakub@redhat.com>
20759 * cfgexpand.c (expand_one_var): Diagnose too large variables.
20761 PR tree-optimization/42508
20762 * tree-sra.c (convert_callers): Check for recursive call
20763 by comparing cgraph nodes instead of decls.
20764 (modify_function): Call ipa_modify_formal_parameters also
20765 on all same_body aliases.
20767 * cgraphunit.c (cgraph_materialize_all_clones): Compare
20768 cgraph nodes when checking for same_body aliases.
20770 2010-01-05 Richard Guenther <rguenther@suse.de>
20772 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
20773 allocation and lookup.
20774 (get_or_alloc_expr_for_constant): Likewise.
20775 (phi_translate): Sink allocation.
20777 2010-01-04 Richard Guenther <rguenther@suse.de>
20779 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
20780 a new entry only if needed.
20781 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
20782 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
20784 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
20786 (phi_translate): Handle CONSTANTs early.
20788 2010-01-04 Martin Jambor <mjambor@suse.cz>
20790 PR tree-optimization/42398
20791 * tree-sra.c (struct access): Removed flag grp_different_types.
20792 (dump_access): Do not dump the removed flag.
20793 (sort_and_splice_var_accesses): Do not set the removed flag.
20794 (sra_modify_expr): Check for type compatibility directly.
20796 2010-01-04 Martin Jambor <mjambor@suse.cz>
20798 PR tree-optimization/42366
20799 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
20800 edges with variable number of parameters.
20801 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
20802 flag instead of asserting it.
20803 (ipa_read_node_info): Read uses_analysis_done flag.
20805 2010-01-04 Richard Guenther <rguenther@suse.de>
20807 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
20808 iterative_hash_* as intended.
20809 (vn_reference_compute_hash): Likewise. Simplify hashing
20811 (vn_reference_lookup_2): Likewise.
20812 (vn_nary_op_compute_hash): Likewise.
20813 (vn_phi_compute_hash): Likewise.
20814 (expressions_equal_p): Remove strange code.
20815 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
20816 (pre_expr_hash): Likewise. Simplify hashing SSA names.
20817 (bitmap_insert_into_set_1): Take value-id as parameter.
20818 (add_to_value): Pass it.
20819 (bitmap_insert_into_set): Likewise.
20820 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
20822 2010-01-04 Jakub Jelinek <jakub@redhat.com>
20825 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
20826 (do_self_spec): For switches with SWITCH_IGNORE set set also
20827 SWITCH_IGNORE_PERMANENTLY.
20828 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
20831 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
20833 * lto-streamer-out.c (output_unreferenced_globals): Output the full
20834 tree of an unreferenced global var.
20836 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
20839 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
20840 GTU to GT for V4SI and V2DI.
20842 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
20843 (umin<mode>3): Removed.
20845 (uminv4si3): Likewise.
20847 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
20850 * collect2.c (main): Turn on trace in collect2 if -v is passed
20853 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
20855 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
20856 description of expression operand.
20858 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
20860 * configure.ac: Add install-html to target_list for Make-hooks.
20861 * configure: Regenerate.
20862 * fortran/Make-lang.in (F95_HTMLFILES): New.
20863 (fortran.html): Use it.
20864 (fortran.install-html): New.
20865 * Makefile.in (install-html): Add lang.install-html.
20866 * java/Make-lang.in (JAVA_HTMLFILES): New.
20867 (java.html): Use it.
20868 (java.install-html): New.
20869 * objc/Make-lang.in (objc.install-html): New.
20870 * objcp/Make-lang.in (obj-c++.install-html): New.
20871 * cp/Make-lang.in (c++.install-html): New.
20872 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
20873 * lto/Make-lang.in (lto.install-html): New.
20875 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
20878 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
20880 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
20882 PR rtl-optimization/41862
20883 * store-motion.c (store_killed_in_insn, compute_store_table,
20884 remove_reachable_equiv_notes, replace_store_insn,
20885 build_store_vectors): Ignore all DEBUG_INSNs.
20887 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
20890 * common.opt: Add dumpdir.
20892 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
20894 (option_map): Add --dumpdir.
20896 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
20898 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
20900 * opts.c (decode_options): Try dump_dir_name first if
20901 dump_base_name isn't an absolute path.
20902 (common_handle_option): Handle OPT_dumpdir.
20904 * toplev.c (dump_dir_name): New.
20905 (print_switch_values): Also ignore -dumpdir.
20907 * toplev.h (dump_dir_name): New.
20909 2010-01-03 Richard Guenther <rguenther@suse.de>
20911 PR tree-optimization/42589
20912 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
20913 double-word expansion of bswap32.
20915 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
20917 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
20918 with BLOCK_FOR_INSN.
20919 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
20920 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
20921 noce_process_if_block): Likewise.
20922 * gcse.c (compute_local_properties, insert_expr_in_table,
20923 insert_set_in_table, canon_list_insert, find_avail_set,
20924 pre_insert_copy_insn): Likewise.
20926 * basic-block.h (BLOCK_NUM): Move from here...
20927 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
20929 2010-01-03 Richard Guenther <rguenther@suse.de>
20931 PR tree-optimization/42438
20932 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
20933 contains_may_not_return_call flag.
20934 (BB_MAY_NOTRETURN): New.
20935 (valid_in_sets): Trapping nary operations are not valid
20936 in blocks that may not return.
20937 (insert_into_preds_of_block): Remove check for trapping expressions.
20938 (compute_avail): Compute also BB_MAY_NOTRETURN.
20940 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
20942 * doc/invoke.texi: Add 2010 to copyright years.
20944 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
20946 * config/sparc/sparc.c: Fix formatting nits.
20948 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
20949 Alexander Monakov <amonakov@ispras.ru>
20951 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
20953 2010-01-02 Richard Guenther <rguenther@suse.de>
20955 PR middle-end/42577
20956 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
20957 (simplify_switch_using_ranges): Mark to be removed edges
20960 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20962 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
20964 * collect2.c (scan_libraries): Add missing argument in call to
20967 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
20970 * config/alpha/predicates.md (aligned_memory_operand): Return false
20972 (unaligned_memory_operand): Return true for CQImode.
20973 * config/alpha/alpha.c (get_aligned_mem): Assert that location
20974 doesn not cross aligned SImode word boundary.
20976 2010-01-02 Anatoly Sokolov <aesok@post.ru>
20978 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
20980 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
20981 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
20983 2010-01-02 Richard Guenther <rguenther@suse.de>
20986 * toplev.c (compile_file): Emit LTO marker properly. Change
20987 it to __gnu_lto_v1.
20988 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
20990 2010-01-01 Richard Guenther <rguenther@suse.de>
20993 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
20995 2010-01-01 Richard Guenther <rguenther@suse.de>
20998 * c-decl.c (grokdeclarator): For zero-size arrays force
20999 structural equality checks as layout_type does.
21001 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
21003 * builtins.c: Update copyright to 2010.
21005 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
21008 * lto-streamer-out.c (produce_asm): Revert the last change.
21009 (copy_function): Likewise.
21011 * lto-streamer.c (lto_get_section_name): Skip any leading
21014 2010-01-01 Richard Guenther <rguenther@suse.de>
21016 PR middle-end/42559
21017 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
21021 Copyright (C) 2010 Free Software Foundation, Inc.
21023 Copying and distribution of this file, with or without modification,
21024 are permitted in any medium without royalty provided the copyright
21025 notice and this notice are preserved.