1 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
4 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
5 * target.def (struct gcc_target): Replace enum reg_class with
6 reg_class_t in hook argument / return types.
7 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
8 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
9 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
10 * targhooks.h (default_branch_target_register_class): Likewise.
11 (default_ira_cover_classes, default_secondary_reload): Likewise.
12 (default_memory_move_cost, default_register_move_cost): Likewise.
13 * targhooks.c (default_branch_target_register_class): Likewise.
14 (default_ira_cover_classes, default_secondary_reload): Likewise.
15 (default_memory_move_cost, default_register_move_cost): Likewise.
16 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
17 * bt-load.c (branch_target_load_optimize): Likewise.
18 * ira.c (setup_cover_and_important_classes): Likewise.
19 * ira-costs.c (copy_cost): Likewise.
20 * reload1.c (emit_input_reload_insns): Likewise.
21 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
22 * config/frv/frv.c (frv_secondary_reload): Likewise.
23 * config/s390/s390.c (s390_secondary_reload): Likewise.
24 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
25 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
26 (ix86_register_move_cost): Likewise.
27 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
28 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
29 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
30 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
31 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
32 (rs6000_ira_cover_classes): Likewise.
33 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
34 * config/picochip/picochip-protos.h (picochip_secondary_reload):
36 * config/pa/pa.c (pa_secondary_reload): Likewise.
37 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
38 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
39 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
40 * doc/tm.texi: Regenerate.
42 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
45 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
47 (build_alias_set_optimal_p): Likewise.
48 (build_base_obj_set_for_drs): Likewise.
50 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
52 * target.def: Remove comment about licensing problems of function
55 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
56 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
57 * doc/tm.texi: Regenerate.
59 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
60 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
62 * target.def (enum_va_list_p): Use DEFHOOK.
63 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
64 Rename ptype to ptree.
65 * doc/tm.texi: Regenerate.
67 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
68 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
69 * doc/tm.texi: Regenerate.
71 * target.def (memory_move_cost): Use DEFHOOK.
72 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
73 Rename regclass AKA class to rclass.
74 * doc/tm.texi: Regenerate.
76 * target.def (pragma_parse): Use DEFHOOK.
77 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
78 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
79 * doc/tm.texi: Regenerate.
81 * target.def (pass_by_reference): Use DEFHOOK.
82 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
83 * doc/tm.texi: Regenerate.
85 * target.def (resolve_overloaded_builtin): Rename params to arglist.
87 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
88 * doc/tm.texi: Regenerate.
90 * target.def (return_pops_args): Use DEFHOOK.
91 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
92 Rename stack-size to size.
93 * doc/tm.texi: Regenerate.
95 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
96 last-sched_cycle to last_clock, cur_cycle to clock.
97 * doc/tm.texi.in: Use @hook.
98 * doc/tm.texi: Regenerate.
100 * target.def (print_operand, print_operand_address): Update comment.
101 (print_operand_punct_valid_p): Likewise.
103 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
105 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
107 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
108 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations
111 * regrename.c: Do not include toplev.h. Include rtl-error.h.
112 * rtl-error.c: Likewise.
113 * reload.c: Likewise.
115 * sel-sched.c: Likewise.
116 * function.c: Likewise.
117 * reg-stack.c: Likewise.
118 * cfgrtl.c: Likewise.
119 * reload1.c: Likewise.
120 * final.c: Include rtl-error.
121 * Makefile.in: Adjust dependencies.
123 2010-06-30 Jan Hubicka <jh@suse.cz>
125 PR middle-end/PR44706
126 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
129 2010-06-30 Michael Matz <matz@suse.de>
132 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
133 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
134 a gimple reg, attach the original VDEF to the last store in the
137 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
140 * config/darwin.c (darwin_override_options): Use renamed
141 targetm.asm_out.emit_unwind_label.
143 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
145 PR tree-optimization/39799
146 * tree-inline.c (remap_ssa_name): Initialize variable only if
147 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
149 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
151 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
153 2010-06-30 Richard Guenther <rguenther@suse.de>
156 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
157 against oscillation with reverse peephole2.
159 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
162 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
165 2010-06-30 Nick Clifton <nickc@redhat.com>
167 * config/rx/rx-modes.def: New file.
168 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
170 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
172 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
173 (SELECT_CC_MODE): Define.
174 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
175 (reg:CC CC_REG) instead of (cc0).
177 (cbranchsi4): Do not split compare and branch here. Instead move
179 (cbranchsi4_<code>): ... here. New patterns.
180 (cmpsi): Call rx-compare_redundant to find out if it is necessary
181 to emit the compare instruction.
182 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
184 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
186 (rx_expand_prologue, rx_expand_epilogue): Likewise.
187 (rx_notice_update_cc): Delete.
188 (rx_cc_modes_compatible): New function.
189 (flags_needed_for_conditional): New function.
190 (flags_from_mode): New function.
191 (rx_compare_redundant): New function - scans backwards through
192 insn list to find out if condition flags are already set
194 (TARGET_CC_MODES_COMPATIBLE): Define.
195 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
197 * config/rx/rx.h (BRANCH_COST): Define.
198 (REGISTER_MOVE_COST): Define.
199 * config/rx/predicates (rx_source_operand): Allow all constant
201 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
202 (tstsi4): New pattern.
203 * config/rx/rx.c (rx_memory_move_cost): Define.
204 (TARGET_MEMORY_MOVE_COST): Define.
206 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
208 * tree.h (block_may_fallthru): Declare here.
209 * tree-flow.h (block_may_fallthru): Do not declare here.
210 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
212 * Makefile.in (c-typeck.o): Update dependencies.
214 2010-06-30 Jakub Jelinek <jakub@redhat.com>
217 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
218 * cselib.c (cfa_base_preserved_regno): New static variable.
219 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
220 of REGNO (cfa_base_preserved_val->locs->loc).
221 (cselib_preserve_cfa_base_value): Add regno argument, set
222 cfa_base_preserved_regno to it.
223 (cselib_invalidate_regno): Allow removal of registers other than
224 cfa_base_preserved_regno from cfa_base_preserved_val.
225 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
226 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
227 of MEM addresses, if not on LHS.
228 (reverse_op): Don't add reverse ops for cfa_base_rtx.
229 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
231 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
233 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
235 (peep2_buf_position): New static function.
236 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
237 peephole2_optimize): Use it.
238 (peep2_attempt, peep2_update_life): New static functions, broken out
239 of peephole2_optimize.
240 (peep2_fill_buffer): New static function.
241 (peephole2_optimize): Change the main loop to try to fill the buffer
242 with the maximum number of insns before matching them against
243 peepholes. Use a forward scan. Remove special case for targets with
244 conditional execution.
245 * genrecog.c (change_state): Delete dead code.
246 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
247 Rewrite so as not to expect the second insn to have had a peephole
250 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
252 * genhooks.c (emit_findices): Cast field precision to int.
253 (emit_documentation): Likewise.
255 2010-06-29 Jakub Jelinek <jakub@redhat.com>
257 PR tree-optimization/43801
258 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
259 if old_decl was DECL_ONE_ONLY.
262 * dwarf2out.c (add_accessibility_attribute): New function.
263 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
264 instead of adding DW_AT_accessibility manually.
265 (gen_enumeration_type_die, gen_struct_or_union_type_die,
266 gen_typedef_die): Use it.
268 2010-06-29 Douglas B Rupp <rupp@gnat.com>
270 * vmsdbgout.c (full_name): Just output the file name if not native.
272 2010-06-29 Douglas B Rupp <rupp@gnat.com>
274 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
275 (funcnam_table): New static table.
276 (funcnum_table): New static table.
277 (write_rtnbeg): Write value saved in funcnum_table.
278 (write_rtnend): Write value saved in funcnum_table.
279 (vmsdbgout_begin_function): Save current function info in
280 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
281 (vmsdbgout_finish): Iterate over funcnum_table.
283 2010-06-29 Douglas B Rupp <rupp@gnat.com>
285 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
286 (vmsdbgout_type_decl): Declare
287 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
288 (FUNC_EPILOGUE_LABEL): New macro
289 (vmsdbgout_begin_epilogue): New function.
290 (vmsdbgout_type_decl): New function.
292 2010-06-29 Douglas B Rupp <rupp@gnat.com>
294 * vmsdbg.h: Update copyright.
296 2010-06-29 Douglas B Rupp <rupp@gnat.com>
298 * vmsdbg.h (DST_K_TBG): New DST constant.
299 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
300 (write_modbeg): Cast module_language to avoid warning.
301 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
303 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
306 * target.def, doc/tm.texi.in, genhooks.c: New files.
307 * target.h: Instead of defining individual hook members,
308 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
310 * target-def.h: Instead of defining individual hook initializers,
311 include target-hooks-def.h.
312 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
313 targetm.live_on_entry -> targetm.extra_live_on_entry
314 targetm.sched.md_finish ->targetm.sched.finish
315 targetm.sched.md_init -> targetm.sched.init
316 targetm.sched.md_init_global -> targetm.sched.init_global
317 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
318 targetm.asm_out.except_table_label ->
319 targetm.asm_out.emit_except_table_label
320 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
321 targetm.target_help -> targetm.help
322 targetm.vectorize.builtin_support_vector_misalignment ->
323 targetm.vectorize.support_vector_misalignment
324 targetm.file_start_app_off -> targetm.asm_file_start_app_off
325 targetm.file_start_file_directive ->
326 targetm.asm_file_start_file_directive
327 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
328 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
329 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
330 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
331 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
332 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
333 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
334 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
335 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
336 * Makefile.in (TARGET_H): Depend on target.def.
337 (TARGET_DEF_H): Depend on target-hooks-def.h.
338 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
339 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
340 * doc/tm.texi: Regenerate.
342 * Makefile.in (s-tm-texi): Remove stray tab / rule.
344 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
345 (targetm.sched.init): Likewise.
347 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
350 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
351 (function_arg_advance_32): Const-ify TYPE parameter.
352 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
353 (ix86_function_arg_advance): Change type of NAMED to bool.
354 (function_arg_32): Const-ify CUM and TYPE parameters.
355 (function_arg_64): Likewise. Change type of NAMED to bool.
356 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
358 (ix86_function_arg): Change type of NAMED to bool.
359 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
360 last argument as a bool.
362 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
364 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
365 (OVERRIDE_OPTIONS): Add note of obsolescence.
366 Replace references with references to TARGET_OPTION_OVERRIDE.
367 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
369 * targhooks.c (default_target_option_override): New function.
370 * targhooks.h (default_target_option_override): Declare.
371 * target.h (struct gcc_target): Add override member to
372 target_option member.
373 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
374 targetm.target_option.override call.
375 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
376 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
378 2010-06-29 Jan Hubicka <jh@suse.cz>
380 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
382 2010-06-29 Jan Hubicka <jh@suse.cz>
384 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
386 (rebuild_frequencies): New function.
387 * predict.h (rebuild_frequencies): Declare.
388 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
389 entry block and edge reaching new_entry.
390 (tree_function_versioning): When doing partial cloning, rebuild frequencies
392 * passes.c (execute_function_todo): Use rebild_frequencies.
394 2010-06-29 Richard Guenther <rguenther@suse.de>
396 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
397 * tree-flow.h (enum noalias_state): Remove.
398 (struct var_ann_d): Remove noalias_state member.
400 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
403 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
404 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
405 (maddhidi4): Likewise.
407 Revert parts of the change for PR25130.
408 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
411 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
413 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
414 targetm.calls.function_incoming_arg, and
415 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
416 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
417 * target.h (struct gcc_target): Add function_arg_advance,
418 function_arg, and function_incoming_arg fields.
419 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
420 (TARGET_FUNCTION_INCOMING_ARG): Define.
421 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
422 and TARGET_FUNCTION_INCOMING_ARG.
423 * targhooks.h (default_function_arg_advance): Declare.
424 (default_function_arg, default_function_incoming_arg): Declare.
425 * targhooks.c (default_function_arg_advance): New function.
426 (default_function_arg, default_function_incoming_arg): New function.
427 * config/i386/i386.c (function_arg_advance): Rename to...
428 (ix86_function_arg_advance): ...this. Make static.
429 (function_arg): Rename to...
430 (ix86_function_arg): ...this. Make static.
431 (TARGET_FUNCTION_ARG_ADVANCE): Define.
432 (TARGET_FUNCTION_ARG): Define.
433 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
434 (FUNCTION_ARG): Delete.
435 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
436 (function_arg): Delete prototype.
438 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
440 * reginfo.c (init_reg_sets_1): Adjust comments.
441 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
442 * calls.c (prepare_call_address): Likewise.
443 (emit_call_1): Use targetm.calls.return_pops_args.
444 (expand_call): Likewise.
445 * function.c (assign_parms): Likewise.
446 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
447 * target.h (struct gcc_target) [struct calls]: Add
448 return_pops_args field.
449 * targhooks.h (default_return_pops_args): Declare.
450 * targhooks.c (default_return_pops_args): Define.
451 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
452 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
453 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
454 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
456 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
457 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
458 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
459 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
460 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
461 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
462 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
463 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
464 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
465 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
466 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
467 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
468 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
469 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
470 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
471 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
472 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
473 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
474 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
475 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
476 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
477 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
478 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
479 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
480 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
481 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
482 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
483 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
484 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
485 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
486 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
487 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
488 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
489 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
490 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
491 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
492 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
493 * config/i386/i386.c (ix86_return_pops_args): Make static.
495 (TARGET_RETURN_POPS_ARGS): Define.
496 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
497 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
498 (TARGET_RETURN_POPS_ARGS): Define.
499 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
500 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
501 (TARGET_RETURN_POPS_ARGS): Define.
503 2010-06-29 Richard Guenther <rguenther@suse.de>
506 * tree-inline.c (initialize_inlined_parameters): Make sure
507 to remap the inlined parameter variable substitutions types.
509 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
511 PR rtl-optimization/44659
512 * combine.c (make_compound_operation) <SUBREG>: Do not return the
513 result of force_to_mode if it partially re-expanded the compound.
515 2010-06-28 Jan Hubicka <jh@suse.cz>
518 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
521 2010-06-28 Anatoly Sokolov <aesok@post.ru>
523 * double-int.h (force_fit_type_double): Remove declaration.
524 * double-int.c (force_fit_type_double): Move to tree.c.
525 * tree.h (force_fit_type_double): Declare.
526 * tree.h (force_fit_type_double): Moved from double-int.c. Use
527 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
528 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
529 * convert.c (convert_to_pointer): Adjust call to
530 force_fit_type_double.
531 * tree-vrp.c (extract_range_from_assert,
532 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
533 * fold-const.c: Update comment.
534 (int_const_binop, fold_convert_const_int_from_int,
535 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
536 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
537 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
538 round_up_loc): Adjust call to force_fit_type_double.
540 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
542 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
544 2010-06-28 Martin Jambor <mjambor@suse.cz>
546 * tree-sra.c (convert_callers): New parameter, change fndecls of
548 (modify_function): Pass the old decl to convert_callers.
550 2010-06-28 Martin Jambor <mjambor@suse.cz>
552 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
553 ipa_check_create_node_params and ipa_initialize_node_params with
554 checking asserts they are not necessary.
556 2010-06-28 Jan Hubicka <jh@suse.cz>
558 PR tree-optimization/44687
559 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
561 2010-06-28 Martin Jambor <mjambor@suse.cz>
564 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
565 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
566 instead of BINFO_BASE_BINFO.
568 2010-06-28 Michael Matz <matz@suse.de>
571 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
572 proper VDEF chain for intermediate stores in the sequence.
574 2010-06-28 Jan Hubicka <jh@suse.cz>
576 PR tree-optimization/44357
577 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to uninlinable
580 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
582 * config.gcc (powerpc*-*-*): Handle titan.
583 * config/rs6000/rs6000.c (titan_cost): New costs.
584 (rs6000_override_options): Add "titan" to processor_target_table.
585 Add Titan to branch alignment logic.
586 Correctly set rs6000_cost for titan.
587 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
588 * config/rs6000/titan.md: New file.
589 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
591 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
593 * tree-browser.c (TB_history_stack): Convert to a VEC.
594 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
595 (TB_history_prev): Likewise.
597 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
599 * vec.h (vec_heap_free): Add parentheses around free.
601 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
603 * system.h: Poison GCC_EXCEPT_H for front-end files.
605 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
607 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
608 Define to NULL by default.
609 * except.h: Define GCC_EXCEPT_H.
610 (doing_eh): Remove prototype.
611 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
612 (lang_protect_cleanup_actions): Remove.
613 * except.c (lang_protect_cleanup_actions): Remove.
615 (gen_eh_region): Don't check doing_eh here.
616 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
617 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
618 instead of lang_protect_cleanup_actions.
619 * omp-low.c (maybe_catch_exception): Likewise.
620 * Makefile.in: Update dependencies.
622 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
624 * cgraph.h (struct varpool_node): new used_from_object_file flag.
625 (struct cgraph_local_info): new used_from_object_file flag.
626 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
627 (cgraph_clone_node): initialize used_from_object_file.
628 (cgraph_create_virtual_clone): initialize used_from_object_file.
629 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
630 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
631 when compiling with -fwhole-program.
632 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
634 * ipa.c (function_and_variable_visibility): Set externally_visible
635 flag of varpool_node if used_from_object_file flag is set.
636 (cgraph_externally_visible_p): check used_from_object_file flag.
637 * doc/invoke.texi (-fwhole-program option): Change description of
638 externally_visible attribute accordingly.
639 * doc/extend.texi (externally_visible): Ditto.
641 2010-06-27 Jan Hubicka <jh@suse.cz>
643 * params.def (max-inline-insns-auto): Default to 40.
644 * doc/invoke.texi (max-inline-insns-auto): Document the change.
646 2010-06-27 Jan Hubicka <jh@suse.cz>
650 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
652 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
653 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
655 2010-06-27 Anatoly Sokolov <aesok@post.ru>
657 * target.h (struct gcc_target): Add register_move_cost field.
658 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
659 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
660 * targhooks.c (default_register_move_cost): New function.
661 * targhooks.h (default_register_move_cost): Declare function.
662 * defaults.h (REGISTER_MOVE_COST): Delete.
663 * ira-int.h (ira_register_move_cost): Update comment.
664 * ira.c: (ira_register_move_cost): Update comment.
665 * reload.h (register_move_cost): Declare.
666 * reginfo.c (register_move_cost): New function.
667 (move_cost): Update comment.
668 (init_move_cost, memory_move_secondary_cost): Replace
669 REGISTER_MOVE_COST with register_move_cost.
670 * postreload.c (reload_cse_simplify_set): (Ditto.).
671 * reload.c (find_valid_class, find_reloads): (Ditto.).
672 * reload1.c (choose_reload_regs): (Ditto.).
673 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
674 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
675 * doc/md.texi (can_create_pseudo_p): Update documentation.
677 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
678 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
679 * config/i386/i386.h (ix86_memory_move_cost): Make static.
680 (TARGET_MEMORY_MOVE_COST): Define.
682 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
683 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
684 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
685 (TARGET_MEMORY_MOVE_COST): Define.
687 2010-06-27 Richard Guenther <rguenther@suse.de>
689 PR tree-optimization/44683
690 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
691 false edge from the inverted condition.
693 2010-06-27 Richard Guenther <rguenther@suse.de>
696 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
697 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
698 for register LHS. Or non-store assignments.
700 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
702 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
703 (sparc_emit_set_const64): Likewise. Remove disabled code.
704 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
705 (sparc_emit_set_const64): Likewise.
707 2010-06-26 Catherine Moore <clm@codesourcery.com>
709 * config/mips/mips.md (alu_type): New attribute.
710 (type): Infer type from alu_type.
711 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
712 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
713 *subsi3_extended, negsi2, negdi2, *low<mode>,
714 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
715 xor<mode>3, *nor<mode>3,
716 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
717 *zero_extendhi_truncqi): Set alu_type instead of type.
719 2010-06-26 Douglas B Rupp <rupp@gnat.com>
721 * config/alpha/alpha.c (alpha_need_linkage): Adjust
722 splay_tree_new_ggc call.
723 (alpha_use_linkage): Likewise.
725 2010-06-26 Joseph Myers <joseph@codesourcery.com>
727 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
728 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
729 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
730 (static_specs): Remove switches_need_spaces.
731 (process_command, do_self_spec): Hardcode handling "-o" instead of
732 checking switches_need_spaces.
733 * system.h (SWITCHES_NEED_SPACES): Poison.
735 2010-06-26 Richard Guenther <rguenther@suse.de>
737 PR tree-optimization/44393
738 * tree-loop-distribution.c (generate_loops_for_partition): Fix
739 stmt removal and VOP renaming.
740 (generate_memset_zero): Remove redundant stmt updating.
741 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
742 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
744 2010-06-26 Jan Hubicka <jh@suse.cz>
746 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
747 edges comming from header are equivalent.
748 (visit_bb): Handle PHIs correctly.
749 * tree-inline.c (copy_phis_for_bb): Be able to copy
751 (copy_cfg_body): Produce edge from entry BB before copying
754 2010-06-26 Richard Guenther <rguenther@suse.de>
757 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
758 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
760 2010-06-26 Joseph Myers <joseph@codesourcery.com>
762 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
763 add_infile, alloc_switch): New.
764 (process_command): Remove variable lang_n_infiles. Process
765 options in a single pass. Use new functions for allocating
766 infiles and switches arrays. Properly skip operands of
767 -Xpreprocessor and -Xassembler.
769 2010-06-26 Jan Hubicka <jh@suse.cz>
772 * cgraphunit.c (cgraph_function_versioning): Remove wrong
773 cgraph_make_decl_local call; fix typo copying RTL data.
775 2010-06-25 DJ Delorie <dj@redhat.com>
777 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
778 (m32c_output_aligned_common): Likewise.
779 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
780 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
781 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
782 (m32c_register_pragmas): Register it.
783 * config/m32c/m32c.c (m32c_get_pragma_address): New.
784 (m32c_insert_attributes): Set #pragma address decls volatile.
785 (pragma_entry_eq): New.
786 (pragma_entry_hash): New.
787 (m32c_note_pragma_address): New.
788 (m32c_get_pragma_address): New.
789 (m32c_output_aligned_common): New.
790 * doc/extend.texi: Document the new pragma.
792 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
794 * config/m32c/predicates.md (m32c_any_operand): Check the code
795 instead of memory_operand so as to allow matching volatile MEMs.
796 (m32c_nonimmediate_operand): Likewise.
797 (mra_operand): Allow volatiles.
799 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
802 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
803 address if the offset is unknown.
805 2010-06-25 Douglas B Rupp <rupp@gnat.com>
807 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
808 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
809 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
810 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
811 to ia64_start_function. Invoke it.
812 * config/ia64/ia64.c (ia64_start_function): Call new function
813 dwarf2out_vms_debug_main_pointer.
815 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
817 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
818 statements computing the true predicate.
820 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
822 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
823 to boolean_true_node.
824 (reset_bb_predicate): New.
825 (predicate_bbs): Call reset_bb_predicate.
827 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
829 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
830 (tree_if_conversion): Returns true when something has been changed.
831 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
834 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
836 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
837 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
838 * tree-if-conv.c: Include dbgcnt.h.
839 (tree_if_conversion): Use if_conversion_tree to count the number of
840 if-convertible loops.
842 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
844 * common.opt (fprefetch-loop-arrays): Re-define
845 -fprefetch-loop-arrays as a tri-state option with the initial
847 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
848 pass only when flag_prefetch_loop_arrays > 0.
849 * toplev.c (process_options): Note that, with tri-states,
850 flag_prefetch_loop_arrays>0 means prefetching is enabled.
851 * config/i386/i386.c (override_options): Enable prefetching at -O3
852 for a set of CPUs that sw prefetching is helpful.
853 (software_prefetching_beneficial_p): New. Return TRUE if software
854 prefetching is beneficial for the given CPU.
856 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
858 PR rtl-optimization/44326
859 * implicit-zee.c (find_removable_zero_extends): Replace
860 INSN_P with NONDEBUG_INSN_P.
862 2010-06-25 Martin Jambor <mjambor@suse.cz>
864 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
865 (struct ipa_node_params): Removed the modification_analysis_done flag.
866 (ipa_is_param_modified): Removed.
867 (ipa_analyze_node): Declare.
868 (ipa_compute_jump_functions): Remove declaration.
869 (ipa_count_arguments): Likewise.
870 (ipa_detect_param_modifications): Likewise.
871 (ipa_analyze_params_uses): Likewise.
872 * ipa-prop.c (struct param_analysis_info): New type.
873 (visit_store_addr_for_mod_analysis): Removed.
874 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
875 moved down in the file.
876 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
877 (ipa_count_arguments): Made static.
878 (mark_modified): New function.
879 (is_parm_modified_before_call): New function.
880 (compute_pass_through_member_ptrs): New parameter parms_info, call
881 is_parm_modified_before_call instead of ipa_is_param_modified.
882 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
883 it to compute_pass_through_member_ptrs.
884 (ipa_compute_jump_functions): New parameter parms_info, pass it to
885 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
886 on the callee if it is analyzed. Made static.
887 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
888 is_parm_modified_before_call instead of ipa_is_param_modified.
889 (ipa_analyze_call_uses): New parameter parms_info, pass it to
890 ipa_analyze_indirect_call_uses.
891 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
892 ipa_analyze_call_uses.
893 (ipa_analyze_params_uses): New parameter parms_info, pass it to
894 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
895 (ipa_analyze_node): New function.
896 (ipa_print_node_params): Do not dump the modified flag.
897 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
898 it. Do not stream the modified parameter flag.
899 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
900 it. Do not stream the modified parameter flag.
901 * ipa-cp.c (ipcp_analyze_node): Removed.
902 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
903 with only a call to ipa_analyze_node.
904 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
905 node with only a call to ipa_analyze_node.
907 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
909 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
911 2010-06-25 Jan Hubicka <jh@suse.cz>
913 * tree-pass.h (pass_split_functions): Declare.
914 * opts.c (decode_options): Enable function splitting at -O2
915 * timevar.def (TV_IPA_FNSPLIT): New macro.
916 * ipa-split.c: New file.
917 * common.opt (-fpartial-inlining): New flag.
918 * Makefile.in (ipa-split.o): New object file.
919 * passes.c (init_optimization_passes): Add ipa-split.
920 * params.def (partial-inlining-entry-probability): New parameters.
921 * doc/invoke.texi (-fpartial-inlining): New.
923 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
926 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
927 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
928 (gimplify_expr): Likewise.
930 2010-06-25 Martin Jambor <mjambor@suse.cz>
932 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
933 statements instead of bailing out on them.
934 (ipa_analyze_indirect_call_uses): Do not require that loads from the
935 parameter are in the same BB as the condition. Update comments.
937 2010-06-25 Jakub Jelinek <jakub@redhat.com>
940 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
941 true or always false, return NULL_TREE.
942 (tree_unswitch_single_loop): Optimize conditions even when reaching
943 max-unswitch-level parameter. If num > 0, optimize first all conditions
944 using entry checks, then do still reachable block discovery and consider
945 only conditions in still reachable basic blocks in the loop.
947 PR tree-optimization/44539
948 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
949 the call doesn't have LHS, but has VDEF.
951 2010-06-25 Joseph Myers <joseph@codesourcery.com>
953 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
954 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
955 * gcc.c (enum add_del, struct modify_target, modify_target):
957 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
958 * system.h (MODIFY_TARGET_NAME): Poison.
960 2010-06-25 Alan Modra <amodra@gmail.com>
962 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
963 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
964 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
965 CMODEL_LARGE as default.
966 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
967 (offsettable_ok_by_alignment): Delete.
968 (rs6000_emit_move): Remove mcmodel=medium optimization.
970 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
972 With large parts from Jim Wilson:
974 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
975 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
976 * optabs.c (optab_for_tree_code): Likewise.
977 (expand_widen_pattern_expr): Likewise.
978 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
979 out of execute_optimize_widening_mul.
980 (convert_plusminus_to_widen): New function.
981 (execute_optimize_widening_mul): Use the two new functions.
982 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
983 Remove code to generate widening multiply-accumulate. Add support
984 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
985 * gimple-pretty-print.c (dump_ternary_rhs): New function.
986 (dump_gimple_assign): Call it when appropriate.
987 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
988 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
989 (expand_gimple_stmt_1): Likewise.
990 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
991 WIDEN_MULT_MINUS_EXPR.
992 * tree-ssa-operands.c (get_expr_operands): Likewise.
993 * tree-inline.c (estimate_operator_cost): Likewise.
994 * gimple.c (extract_ops_from_tree_1): Renamed from
995 extract_ops_from_tree. Add new arg for a third operand; fill it.
996 (gimple_build_assign_stat): Support operations with three operands.
997 (gimple_build_assign_with_ops_stat): Likewise.
998 (gimple_assign_set_rhs_from_tree): Likewise.
999 (gimple_assign_set_rhs_with_ops_1): Renamed from
1000 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
1001 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
1002 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
1003 WIDEN_MULT_MINUS_EXPR.
1004 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
1005 (extract_ops_from_tree_1): Adjust declaration.
1006 (gimple_assign_set_rhs_with_ops_1): Likewise.
1007 (gimple_build_assign_with_ops): Pass NULL for last operand.
1008 (gimple_build_assign_with_ops3): New macro.
1009 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
1010 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
1012 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
1013 (verify_gimple_assign): Call it.
1014 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
1015 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
1016 functions for dealing with three-operand statements.
1017 * tree.c (commutative_ternary_tree_code): New function.
1018 * tree.h (commutative_ternary_tree_code): Declare it.
1019 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
1021 (gimple_assign_nonzero_warnv_p): Likewise.
1022 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
1023 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
1024 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
1025 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
1026 (struct hashtable_expr): New member ternary in the union.
1027 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
1028 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
1029 (iterative_hash_hashable_expr): Likewise.
1030 (print_expr_hash_elt): Handle EXPR_TERNARY.
1031 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
1032 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
1033 statements. Handle GIMPLE_TERNARY_RHS.
1035 2010-06-25 Jan Hubicka <jh@suse.cz>
1037 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
1039 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
1042 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
1043 parameters are not good.
1044 (c_parser_parameter_declaration): Error unknown type name if the type
1045 name can't start declaration specifiers.
1047 2010-06-25 Joseph Myers <joseph@codesourcery.com>
1049 * gcc.c (translate_options): Don't mention +e in comment.
1050 (process_command): Don't handle +e specially.
1052 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
1054 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
1056 * ira-build.c (merge_hard_reg_conflicts): New function.
1057 (create_cap_allocno, copy_info_to_removed_store_destinations,
1058 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
1059 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
1060 (remove_unnecessary_allocnos, remove_low_level_allocnos)
1061 copy_nifo_to_removed_store_destination): Use them.
1062 * ira-lives.c (make_hard_regno_born): New function, split out of
1064 (make_allocno_born): Likewise.
1065 (make_hard_regno_dead): New function, split out of make_regno_dead.
1066 (make_allocno_dead): Likewise.
1067 (inc_register_pressure): New function, split out of set_allocno_live.
1068 (dec_register_pressure): New function, split out of clear_allocno_live.
1069 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
1070 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
1071 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
1072 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
1073 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
1074 mark_pseudo_regno_live.
1075 (process_bb_node_lives): Use mark_pseudo_regno_live,
1076 make_hard_regno_born and make_allocno_dead.
1077 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
1078 set_allocno_live, clear_allocno_live): Delete functions.
1080 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
1081 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
1083 (ira_flattening): Use ira_parent_allocno.
1084 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
1085 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
1087 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
1090 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
1091 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
1092 minmax_set_iter_cond, minmax_set_iter_next,
1093 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
1094 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
1095 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
1096 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
1099 * ira-int.h (struct live_range, live_range_t): Renamed from struct
1100 ira_allocno_live_range and allocno_live_range_t; all uses changed.
1101 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
1104 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
1106 * thumb2.md (thumb2_tlobits_cbranch): Delete.
1107 (peephole2 to convert zero_extract/compare of single bit to
1108 lshift/compare): New.
1110 2010-06-24 Anatoly Sokolov <aesok@post.ru>
1112 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
1113 recursive call and call to 'int_const_binop'.
1114 (build_range_check, fold_cond_expr_with_comparison, unextend,
1115 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
1116 multiple_of_p): Adjust call to const_binop.
1118 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
1120 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
1121 determine size of XFmode operand.
1122 (XFmode extended DFmode push splitter): Ditto.
1123 (XFmode extended SFmode push splitter): Ditto.
1125 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
1128 * config/i386/i386.md (extract_code): New.
1129 (<u>divmodqi4): Likewise.
1130 (divmodhiqi3): Likewise.
1131 (udivmodhiqi3): Likewise.
1132 (<u>divqi3): Remvoved.
1134 2010-06-24 Jakub Jelinek <jakub@redhat.com>
1137 * recog.h (struct recog_data): Add is_asm field.
1138 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
1139 present in constraints of inline-asm operand and memory operand
1140 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
1141 (extract_insn): Initialize recog_data.is_asm.
1142 * doc/md.texi (Constraints): Document operand side-effect rules.
1144 2010-06-24 Andi Kleen <ak@linux.intel.com>
1146 * c-parser.c (c_parser_conditional_expression): Call
1147 warn_for_omitted_condop.
1148 * doc/invoke.texi: Document omitted condop warning.
1150 2010-06-24 Nick Clifton<nickc@redhat.com>
1152 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
1153 insn in the sequence is a jump insn before setting its label.
1155 2010-06-24 Alan Modra <amodra@gmail.com>
1157 * collect2.c (main): Match exactly --version and --help.
1159 2010-06-24 DJ Delorie <dj@redhat.com>
1161 * config/m32c/m32c-pragma.c: Don't include rtl.h.
1163 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
1165 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
1166 using X87MODEF mode iterator.
1167 (pushsf splitter): Macroize splitter using P mode iterator.
1168 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
1171 (*movxf_internal): Rename from *movxf_integer.
1172 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
1173 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
1174 (*movdf_internal): Rename from *movdf_integer.
1175 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
1176 (*movsf_internal): Rename from *movdf_1.
1178 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
1180 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
1181 (const_gimple_seq_node): Removed typedefs.
1183 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
1184 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
1186 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
1188 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
1189 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
1190 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
1191 and CODE_FOR_vec_extract_lo_v4df.
1193 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
1194 Changed to define_insn_and_split.
1195 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
1196 (vec_extract_lo_v16hi): Likewise.
1197 (vec_extract_lo_v32qi): Likewise.
1198 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
1199 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
1201 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
1204 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
1205 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
1206 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
1207 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
1208 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
1211 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
1214 * df-core.c (struct df): Rename to df_d.
1215 * df.h (struct df): Likewise.
1216 * dse.h (struct df): Remove forward declaration.
1217 * recog.h (struct insn_data): Rename to:
1218 (struct_insn_data_d). Adjusted all users.
1220 2010-06-23 Arnaud Charlet <charlet@adacore.com
1223 * doc/install.texi: Update requirements to build GNAT.
1225 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
1227 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
1229 (m68k_sched_attr_opx_type): Remove unreachable return.
1230 (m68k_sched_attr_opy_type): Likewise.
1231 (m68k_sched_attr_size): Likewise.
1232 (sched_get_opxy_mem_type): Likewise.
1233 (m68k_sched_attr_op_mem): Likewise.
1235 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
1237 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
1238 new statement and adjust VDEF only if necessary. Remove superfluous
1239 call to maybe_clean_or_replace_eh_stmt.
1240 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
1242 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
1243 * tree-inline.c (copy_bb): ...and not there.
1245 2010-06-22 Cary Coutant <ccoutant@google.com>
1247 * dwarf2out.c (is_nested_in_subprogram): New function.
1248 (should_move_die_to_comdat): Use it.
1249 (copy_ancestor_tree): Don't mark DIEs here.
1250 (copy_decls_walk): Start walk from root of newly-added tree;
1251 mark DIEs here instead.
1253 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
1255 * config/i386/i386.md (unit): Also check sseishft1.
1257 2010-06-22 Jan Hubicka <jh@suse.cz>
1259 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
1262 2010-06-22 Jan Hubicka <jh@suse.cz>
1264 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
1265 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
1266 Return true if something changed.
1267 * df.h (df_confluence_function_n): Return bool.
1268 * df-core.c (df_worklist_propagate_forward,
1269 df_worklist_propagate_backward): Track changes and ages.
1270 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
1272 * dse.c (dse_confluence_n): Return always true.
1274 2010-06-22 Jan Hubicka <jh@suse.cz>
1276 * bitmap.c (bitmap_clear_bit): Micro optimize.
1278 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
1280 * config/i386/i386.md (SWI1248x): New mode iterator.
1285 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
1286 SWI1248x mode iterator.
1287 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
1288 using SWI124 mode iterator.
1289 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
1291 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
1292 *pushdi2_prologue_rex64 using P mode iterator.
1293 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
1294 using SWI48 mode iterator.
1295 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
1296 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
1297 using SWI1248x mode iterator.
1298 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
1299 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
1300 SWI48 mode iterator.
1301 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
1303 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
1304 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
1305 SWI12 mode iterator.
1306 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
1307 SWI12 mode iterator.
1308 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
1309 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
1310 SWI24 mode iterator.
1311 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
1312 SWI48 mode iterator.
1313 (mov<mode>_insn_1): New expander.
1314 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
1315 using SWI48x mode iterator.
1317 (*movoi_internal_avx): Rename from *movoi_internal.
1318 (*movti_internal_rex64): Rename from *movti_rex64.
1319 (*movti_internal_sse): Rename from *movti_sse.
1320 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
1321 (*movdi_internal): Rename from *movdi_2.
1322 (*movsi_internal): Rename from *movsi_1.
1323 (*movhi_internal): Rename from *movhi_1.
1324 (*movqi_internal): Rename from *movqi_1.
1326 (insv): Update the call to gen_movsi_insv_1 for rename.
1327 * config/i386/i386.c (promote_duplicated_reg): Ditto.
1329 2010-06-22 Jan Hubicka <jh@suse.cz>
1331 * passes.c (execute_function_todo): Move call of statistics_fini_pass
1333 (execute_todo) ... this one.
1335 2010-06-22 Alan Modra <amodra@gmail.com>
1338 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
1339 * caller-save.c (insert_restore, insert_save): Use non-validate
1340 form of adjust_address.
1342 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1345 * config/pa/pa.c (override_options): Disable
1346 -freorder-blocks-and-partition.
1348 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
1351 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
1353 * config/i386/i386.md (type): Add sseishft1
1355 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
1356 (ppro_insn_load): Likewise.
1357 (ppro_insn_store): Likewise.
1358 (ppro_insn_both): Likewise.
1360 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
1361 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
1363 (*vec_extractv2di_1_avx): Likewise.
1364 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
1365 type. Remove atom_unit.
1366 (*vec_extractv2di_1_sse2): Likewise.
1368 2010-06-21 DJ Delorie <dj@redhat.com>
1370 * diagnostic.h (diagnostic_classification_change_t): New.
1371 (diagnostic_context): Add history and push/pop list.
1372 (diagnostic_push_diagnostics): Declare.
1373 (diagnostic_pop_diagnostics): Declare.
1374 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
1375 from pragmas in a history chain instead of the global table.
1376 (diagnostic_push_diagnostics): New.
1377 (diagnostic_pop_diagnostics): New.
1378 (diagnostic_report_diagnostic): Scan history chain to find state
1379 of diagnostics as of the diagnostic location.
1380 * opts.c (set_option): Pass UNKNOWN_LOCATION to
1381 diagnostic_classify_diagnostic.
1382 (enable_warning_as_error): Likewise.
1383 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
1384 use in the history chain.
1385 * c-family/c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1386 allow these pragmas anywhere.
1387 * doc/extend.texi: Document pragma GCC diagnostic changes.
1389 2010-06-21 Jakub Jelinek <jakub@redhat.com>
1391 * dwarf2out.c (add_linkage_name): New function. Don't add
1392 anything to DW_TAG_member DIEs.
1393 (add_name_and_src_coords_attributes): Use it.
1394 (gen_variable_die): Call it for C++ static data members if
1395 specification is DW_TAG_member.
1397 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
1398 C++ char16_t and char32_t.
1400 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
1401 * genattrtab.c: Include vecprim.h.
1402 (cached_attrs, cached_attr_count, attrs_seen_once,
1403 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
1404 attrs_cached_after): New variables.
1405 (find_attrs_to_cache): New function.
1406 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
1407 (write_test_expr): Add attrs_cached argument, return it too,
1408 attempt to cache non-const attributes used more than once in
1409 a single case handling.
1410 (write_attr_get): Use find_attrs_to_cache, for caching candidates
1411 emit cached_* variables. Adjust write_attr_set callers.
1412 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
1413 to find attributes that should be cached in this block. Adjust
1414 write_test_expr callers.
1415 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
1417 (make_automaton_attrs): Adjust write_test_expr caller.
1419 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
1420 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
1421 (make_automaton_attrs): If find_tune_attr returns non-NULL,
1422 write separate internal_dfa_insn_code_* and insn_default_latency_*
1423 functions for each attribute's value and emit init_sched_attrs
1424 function and function pointers.
1425 * genattr.c (const_attrs, reservations): New variables.
1426 (gen_attr): Add const attributes to const_attrs vector.
1427 (check_tune_attr, find_tune_attr): New functions.
1428 (main): Add reservations to reservations vector. If find_tune_attr
1429 returns true, add prototype for init_sched_attrs and make
1430 internal_dfa_insn_code and insn_default_latency function pointers,
1431 otherwise define init_sched_attrs as dummy macro.
1432 * cfgexpand.c: Include insn-attr.h.
1433 (gimple_expand_cfg): Call init_sched_attrs.
1435 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
1438 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
1439 va_arg from a set of register save slots into a temporary,
1440 if the container is bigger than type size, do the copying
1441 using smaller mode or using memcpy.
1444 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
1446 (sel_print_to_dot): Remove macro.
1447 (sel_print): Likewise. New prototype.
1448 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
1449 (sel_print): New function.
1451 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1453 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
1454 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
1456 2010-06-21 Nick Clifton <nickc@redhat.com>
1458 * config/rx/rx.h (PTRDIFF_TYPE): Define.
1459 (SMALL_REGISTER_CLASS): Define (to zero).
1460 (PRINT_OPERAND): Delete.
1461 (PRINT_OPERAND_ADDRESS): Delete.
1462 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
1463 (rx_print_operand_address): Delete prototype.
1464 * config/rx/rx.c (rx_print_operand): Make static.
1465 Allow %H and %L to handle CONST_DOUBLEs.
1466 (rx_print_operand_address): Make static.
1467 (rx_gen_move_template): Rename local variable 'template' to
1469 (rx_function_arg): Do not pass unknown sized objects in registers.
1470 (TARGET_PRINT_OPERAND): Define.
1471 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1473 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1475 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
1477 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
1479 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
1480 stack-alignment for simple leaf-functions.
1482 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
1484 * doc/install.texi: Document bootstrap-lto.
1486 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
1489 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
1490 (input_function): Drop them here, if VTA is disabled.
1492 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
1495 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
1497 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
1498 ix86_swapped_fp_comparsion_operator instead of
1499 ix86_fp_comparison_operator.
1501 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
1502 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
1503 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
1504 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
1505 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
1506 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
1508 2010-06-20 Joseph Myers <joseph@codesourcery.com>
1511 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
1512 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
1513 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
1514 (decode_cmdline_option): Update for this return value. Set
1515 orig_option_with_args_text field. Set arg field for unknown
1516 options. Make static.
1517 (decode_cmdline_options_to_array): New.
1518 (prune_options): Update handling of find_opt return value.
1519 * opts.c (read_cmdline_option): Take decoded option. Return void.
1520 (read_cmdline_options): Take decoded options.
1521 (decode_options): Add parameters for decoded options. Use
1522 decode_cmdline_options_to_array. Use decoded options for -O
1523 scan. Use integral_argument for -O parameters. Update call to
1524 read_cmdline_options.
1525 (enable_warning_as_error): Update handling of find_opt return value.
1526 * opts.h: Update comment on unknown options.
1527 (struct cl_decoded_option): Update comments on opt_index and arg.
1528 Add orig_option_with_args_text.
1529 (decode_cmdline_option): Remove.
1530 (decode_cmdline_options_to_array): Declare.
1531 (decode_options): Update prototype.
1532 * toplev.c (save_argv): Remove.
1533 (save_decoded_options, save_decoded_options_count): New.
1534 (read_integral_parameter): Remove.
1535 (print_switch_values): Use decoded options.
1536 (toplev_main): Don't set save_argv. Update call to decode_options.
1537 * toplev.h (read_integral_parameter): Remove.
1538 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
1540 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
1543 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
1545 * constraints.md (Pw, Px): New constraints.
1546 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
1548 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
1550 * config/i386/sse.md (fma4modesuffixf4): Removed.
1551 (ssemodesuffixf2s): Likewise.
1552 (ssemodesuffixf4): Likewise.
1553 (ssemodesuffixf2c): Likewise.
1554 (ssescalarmodesuffix2s): Likewise.
1555 (avxmodesuffixf2c): Likewise.
1556 (ssemodesuffix): New.
1557 (ssescalarmodesuffix): Likewise.
1558 Update patterns with ssemodesuffix and ssescalarmodesuffix.
1560 2010-06-19 Philip Herron <herron.philip@googlemail.com>
1562 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
1564 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
1566 * stor-layout.c (debug_rli): Remove unused local variables.
1568 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
1570 PR rtl-optimization/40900
1571 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
1572 original expression for later reuse.
1573 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
1574 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
1576 2010-06-18 Anatoly Sokolov <aesok@post.ru>
1578 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
1579 double_int_fits_in_uhwi_p): Implement as static inline.
1580 (double_int_xor): New inline function.
1581 (double_int_lrotate, double_int_rrotate, double_int_max,
1582 double_int_umax, double_int_smax, double_int_min, double_int_umin,
1583 double_int_smin): Declare.
1584 (lrotate_double, rrotate_double): Remove declaration.
1585 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
1586 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
1587 (double_int_lrotate, double_int_rrotate, double_int_max,
1588 double_int_umax, double_int_smax, double_int_min, double_int_umin,
1589 double_int_smin): New function.
1590 * fold-const.c (int_const_binop): Clean up, use double_int_*
1592 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
1593 double_int_* and immed_double_int_const functions.
1595 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1597 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
1598 * function.c (types_used_by_cur_var_decl): Likewise.
1599 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
1601 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1603 * tree.h (record_layout_info): Change type of pending_statics field
1605 * stor-layout.c (start_record_layout): Store NULL into
1607 (debug_rli): Call debug_vec_tree instead of debug_tree.
1608 (place_field): Likewise.
1609 (finish_record_layout): Likewise.
1611 2010-06-18 Alan Modra <amodra@gmail.com>
1613 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
1615 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1618 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
1619 for SET source operand from SET destination operand.
1621 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
1623 PR rtl-optimization/39871
1624 * reload1.c (init_eliminable_invariants): For flag_pic, disable
1625 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
1626 (function_invariant_p): Rule out a plus of frame or arg pointer with
1628 * ira.c (find_reg_equiv_invariant_const): Likewise.
1630 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
1632 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
1633 print_operand_address and puts to output the operand for CONST.
1635 2010-06-17 Jakub Jelinek <jakub@redhat.com>
1638 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
1641 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1643 * v850-protos.h (print_operand): Delete.
1644 (print_operand_address): Delete.
1645 * v850.h (PRINT_OPERAND): Delete.
1646 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1647 (PRINT_OPERAND_ADDRESS): Delete.
1648 * v850.c (print_operand_address): Rename to...
1649 (v850_print_operand_address): ...this. Make static. Call
1651 (print_operand): Rename to...
1652 (v850_print_operand): ...this. Make static. Call
1653 v850_print_operand_address.
1654 (v850_print_operand_punct_valid_p): New function.
1655 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1656 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1658 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1660 * config/sh/sh-protos.h (print_operand): Delete.
1661 (print_operand_address): Delete.
1662 * config/sh/sh.h (PRINT_OPERAND): Delete.
1663 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1664 (PRINT_OPERAND_ADDRESS): Delete.
1665 * config/sh/sh.c (sh_print_operand_address): Make static.
1666 (sh_print_operand): Make static. Call sh_print_operand_address
1667 and sh_print_operand.
1668 (sh_print_operand_punct_valid_p): New function.
1669 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1670 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1672 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1674 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
1675 (mcore_print_operand_address): Delete.
1676 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
1677 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1678 (PRINT_OPERAND_ADDRESS): Delete.
1679 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
1680 (mcore_print_operand): Make static.
1681 (mcore_print_operand_punct_valid_p): New function.
1682 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
1683 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1685 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1687 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
1688 (print_operand_address): Delete.
1689 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
1690 (PRINT_OPERAND_ADDRESS): Delete.
1691 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
1693 (m68hc11_print_operand): Make static.
1694 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1696 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1698 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
1699 (m32r_print_operand_address): Delete.
1700 * config/m32r/m32r.h (m32r_punct_chars): Delete.
1701 (PRINT_OPERAND): Delete.
1702 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1703 (PRINT_OPERAND_ADDRESS): Delete.
1704 * config/m32r/m32r.c (m32r_punct_chars): Make static.
1705 (m32r_print_operand_address): Make static.
1706 (m32r_print_operand): Make static.
1707 (m32r_print_operand_punct_valid_p): New function.
1708 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1709 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1711 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1713 * config/iq2000/iq2000-protos.h (print_operand): Delete.
1714 (print_operand_address): Delete.
1715 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
1716 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1717 (PRINT_OPERAND_ADDRESS): Delete.
1718 (iq2000_print_operand_punct): Delete.
1719 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
1720 (iq2000_print_operand_address): Make static.
1721 (iq2000_print_operand): Make static.
1722 (iq2000_print_operand_punct_valid_p): New function.
1723 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1724 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1726 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1728 * config/frv/frv-protos.h (frv_print_operand): Delete.
1729 (frv_print_operand_address): Delete.
1730 * config/frv/frv.h (PRINT_OPERAND): Delete.
1731 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1732 (PRINT_OPERAND_ADDRESS): Delete.
1733 * config/frv/frv.c (frv_print_operand_address): Make static.
1734 (frv_print_operand): Make static.
1735 (frv_print_operand_punct_valid_p): New function.
1736 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1737 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1739 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1741 * tree.h (vec_member): Declare.
1742 * tree.c (vec_member): Define.
1744 2010-06-17 Richard Guenther <rguenther@suse.de>
1746 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
1747 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
1749 2010-06-17 Richard Guenther <rguenther@suse.de>
1751 * tree-inline.c (declare_return_variable): Remove bogus code.
1753 2010-06-17 Richard Guenther <rguenther@suse.de>
1755 * gimplify.c (gimplify_bind_expr): Always promote complex
1756 and vector variables to registers if possible.
1758 2010-06-17 Richard Guenther <rguenther@suse.de>
1760 * expr.c (get_inner_reference): Use double_int for bit_offset
1763 2010-06-16 DJ Delorie <dj@redhat.com>
1765 * common.opt (-fstrict-volatile-bitfields): new.
1766 * doc/invoke.texi: Document it.
1767 * fold-const.c (optimize_bit_field_compare): For volatile
1768 bitfields, use the field's type to determine the mode, not the
1770 * expr.c (expand_assignment): Likewise.
1771 (get_inner_reference): Likewise.
1772 (expand_expr_real_1): Likewise.
1773 * expmed.c (store_fixed_bit_field): Likewise.
1774 (extract_bit_field_1): Likewise.
1775 (extract_fixed_bit_field): Likewise.
1777 2010-06-16 Richard Guenther <rguenther@suse.de>
1779 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
1781 2010-06-16 Douglas B Rupp <rupp@gnat.com>
1783 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
1784 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
1785 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
1786 * debug.c: Likewise.
1787 * sdbout.c: Likewise.
1788 * vmsdbgout.c: Likewise.
1789 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
1790 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
1791 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
1792 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
1793 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
1794 * dwarf2out.c (dw_fde_struct): New fields
1795 dw_fde_vms_{end,begin}_prologue.
1796 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
1797 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
1798 (dwarf2out_vms_end_prologue): New function.
1799 (dwarf2out_vms_begin_epilogue): New function.
1800 (dw_val_struct): New value dw_val_class_vms_delta.
1801 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
1802 begin_epilogue for VMS.
1803 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
1804 new static functions.
1805 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
1806 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
1808 (print_die): New case dw_val_class_vms_delta.
1809 (attr_checksum): Likewise.
1810 (same_dw_val_p: Likewise.
1811 (size_of_die): Likewise.
1812 (value_format): Likewise.
1813 (output_die): Likewise.
1814 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
1815 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
1816 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
1817 dwarf2out_cfi_begin_epilogue
1818 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
1820 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
1822 * config/cris/cris-protos.h (cris_print_operand): Delete.
1823 (cris_print_operand_address): Delete.
1824 * config/cris/cris.h (PRINT_OPERAND): Delete.
1825 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1826 (PRINT_OPERAND_ADDRESS): Delete.
1827 * config/cris/cris.c (cris_print_operand_address): Make static.
1828 (cris_print_operand): Make static.
1829 (cris_print_operand_punct_valid_p): New function.
1830 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1831 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1833 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
1835 * config/arm/arm-protos.h (arm_print_operand): Delete.
1836 (arm_print_operand_address): Delete.
1837 * config/arm/arm.h (PRINT_OPERAND): Delete.
1838 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1839 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
1840 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
1841 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
1842 (arm_print_operand): Make static.
1843 (arm_print_operand_punct_valid_p): New function.
1844 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1845 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1847 2010-06-16 Nick Clifton <nickc@redhat.com>
1849 * config/rx/constraints.md (NEGint4): New constraint.
1850 * config/rx/rx.md (attr cc): Add set_zsc.
1851 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
1854 (call_internal): Clobber the cc0 register.
1855 (call_value_internal): Likewise.
1856 (cstoresi4): Likewise.
1857 (movsieq): Likewise.
1858 (movsine): Likewise.
1859 (addsi3): Add alternative to handle small negative constants.
1861 (addsi3): Do not set the O bit in the cc0 register.
1865 (andsi3): Reorder alternatives to prefer shorter forms.
1868 (negsi2): Note that the cc0 flags are set.
1869 (rotlsi3): Note that only the Z and S bits are set in cc0.
1870 (lshrsi3): Likewise.
1871 (ashlsi3): Likewise.
1872 (subsf3): Use %Q for the MEM operand.
1873 (fix_truncsfsi2): Likewise.
1874 (floatsisf2): Likewise.
1875 (bitset): Remove early clobber from destination.
1876 (bitset_in_memory): Likewise.
1877 (lrintsf2): Clobber the cc0 register.
1878 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
1879 (rx_print_operand): Handle %N.
1881 2010-06-16 Jan Hubicka <jh@suse.cz>
1883 * df-core.c (df_compact_blocks): Free problem_temps vector.
1885 2010-06-16 Martin Jambor <mjambor@suse.cz>
1887 PR tree-optimization/43905
1888 * tree-sra.c: Include tree-inline.h.
1889 (create_abstract_origin): Removed.
1890 (modify_function): Version the call graph node instead of creating
1891 abstract origins and dealing with same_body aliases.
1892 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
1893 function is versionable.
1894 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
1896 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
1898 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
1899 (CHOOSE_DYNAMIC_LINKER): Update.
1901 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
1903 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
1904 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
1905 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
1906 *prefetch_3dnow_rex.
1908 2010-06-15 Anatoly Sokolov <aesok@post.ru>
1910 * target.h (struct asm_out):Add declare_constant_name field.
1911 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
1912 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
1913 * output.h (default_asm_declare_constant_name): Declare.
1914 (assemble_label): Update prototype.
1915 * varasm.c (assemble_constant_contents): Use
1916 targetm.asm_out.declare_constant_name target hook.
1917 (assemble_label): Add 'file' argument.
1918 (default_asm_declare_constant_name): New function.
1919 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
1920 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
1921 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
1923 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
1924 * config/darwin.c (darwin_asm_declare_constant_name): New function.
1925 (machopic_output_indirection): Update assemble_label argument list.
1926 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
1927 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
1929 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
1932 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1933 size_one_node for pointer types. Do not call gmp_cst_to_tree.
1935 2010-06-15 Richard Guenther <rguenther@suse.de>
1937 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
1939 2010-06-15 Paul Brook <paul@codesourcery.com>
1941 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
1944 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
1946 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
1947 don't get a vector type for output.
1949 2010-06-15 Jakub Jelinek <jakub@redhat.com>
1952 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
1953 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
1954 (LANG_HOOKS_DECLS): Add it.
1955 * gimplify.c (omp_notice_variable): Call
1956 lang_hooks.decls.omp_report_decl.
1958 2010-06-15 Martin Jambor <mjambor@suse.cz>
1961 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
1962 on the newly dead SSA name.
1964 2010-06-15 Alan Modra <amodra@gmail.com>
1966 * doc/invoke.texi: Add mcmodel to powerpc options.
1967 * configure.ac: Add HAVE_LD_LARGE_TOC test.
1968 * configure: Regenerate.
1969 * config.in: Regenerate.
1970 * config/rs6000/linux64.opt (mcmodel): New.
1971 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
1972 (TARGET_CMODEL, SET_CMODEL): Define.
1973 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
1974 select CMODEL_MEDIUM default.
1975 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
1976 (TARGET_CMODEL): Define default.
1977 * config/rs6000/rs6000.c (cmodel): New variable.
1978 (rs6000_explicit_options): Add cmodel field.
1979 (rs6000_handle_option): Handle -mcmodel.
1980 (create_TOC_reference): Add largetoc_reg param. Generate high,
1981 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
1982 (rs6000_delegitimize_address): Recognise new toc reference rtl
1983 and minimal-toc rtl.
1984 (rs6000_legitimize_reload_address): Handle new toc references.
1985 (print_operand_address): Handle legitimate_constant_pool_address_p
1986 match before lo_sum.
1987 (rs6000_eliminate_indexed_memrefs): Tidy.
1988 (rs6000_emit_move): Tweak threshold for inlining constants.
1989 Keep rs6000_emit_allocate_stack large stack frame offsets
1990 loaded into r0 inline.
1991 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
1992 (tocrel_base, tocrel_offset): New variables.
1993 (toc_relative_expr_p): Set them here.
1994 (print_operand_address): Skip over any offset on constant pool address.
1995 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
1996 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
1997 (offsettable_ok_by_alignment): New function.
1998 (rs6000_emit_move): Address suitably aligned local symbol_refs
1999 relative to the toc pointer for -mcmodel=medium.
2000 (legitimate_constant_pool_address_p): Make param const_rtx. Add
2001 strict param. Allow lo_sum version of addressing. Verify reg
2002 used for -mminimal-toc and -mcmodel != small. Update all callers.
2003 * config/rs6000/constraints.md: Update for above change.
2004 * config/rs6000/predicates.md: Likewise.
2005 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
2007 (tls_gd): Split for -mcmodel=medium/large.
2008 (tls_gd_high, tls_gd_low): New.
2009 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
2010 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
2011 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
2012 (largetoc_high, largetoc_low): New.
2013 (cmptf_internal2): Add clobber.
2014 * config/rs6000/rs6000-protos.h: Update.
2016 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
2018 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
2019 true if no prefetch is going to be generated for a given group.
2020 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
2021 estimate the prefetch_count.
2022 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
2023 prefetch count by considering the unroll_factor and prefetch_mod
2024 for is_loop_prefetching_profitable.
2026 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
2028 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
2029 anything if the argument is not a MEM.
2031 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
2036 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
2038 (canonicalize_loop_ivs): Likewise.
2040 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
2043 * haifa-sched.c (setup_insn_reg_pressure_info,
2044 update_register_pressure): Reject debug insns.
2045 (ready_sort): Don't setup reg pressure for debug insns.
2046 (schedule_insn): Don't update reg pressure for debug insns.
2048 2010-06-14 Richard Guenther <rguenther@suse.de>
2050 * lto-streamer.c (cached_bp): Remove.
2051 (bitpack_delete): Likewise.
2052 (bitpack_create): Likewise.
2053 (bp_get_next_word): Likewise.
2054 (bp_pack_value, bp_unpack_value): Move ...
2055 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
2057 (struct bitpack_d): Likewise.
2058 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
2059 New inline functions.
2060 * lto-streamer-out.c (lto_output_bitpack): Remove.
2061 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
2062 (pack_value_fields): Adjust.
2063 (lto_write_tree): Likewise.
2064 (output_gimple_stmt): Likewise.
2065 (output_function): Likewise.
2066 * lto-streamer-in.c (input_gimple_stmt): Adjust.
2067 (input_function): Likewise.
2068 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
2069 (lto_input_bitpack): Remove.
2070 (lto_materialize_tree): Adjust.
2071 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
2072 * lto-cgraph.c (lto_output_edge): Adjust.
2073 (lto_output_node): Likewise.
2074 (lto_output_varpool_node): Likewise.
2075 (lto_output_ref): Likewise.
2076 (input_node): Likewise.
2077 (input_varpool_node): Likewise.
2078 (input_ref): Likewise.
2079 (input_edge): Likewise.
2080 (output_node_opt_summary): Likewise.
2081 (input_node_opt_summary): Likewise.
2082 * ipa-pure-const.c (pure_const_write_summary): Likewise.
2083 (pure_const_read_summary): Likewise.
2084 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
2085 (ipa_read_indirect_edge_info): Likewise.
2086 (ipa_write_node_info): Likewise.
2087 (ipa_read_node_info): Likewise.
2089 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
2092 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
2093 (vec_extract_lo_v16hi): Likewise.
2094 (vec_extract_lo_v32qi): Likewise.
2096 2010-06-14 Jakub Jelinek <jakub@redhat.com>
2099 * tree.h (build_call_expr): Don't define as vararg macro, instead
2101 * builtins.c (build_call_nofold): Remove.
2102 (expand_builtin_int_roundingfn, expand_builtin_pow,
2103 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
2104 expand_builtin_memset_args, expand_builtin_strcmp,
2105 expand_builtin_strncmp, expand_builtin_memory_chk): Use
2106 build_call_nofold_loc instead of build_call_nofold.
2107 (build_call_expr): New function.
2109 PR tree-optimization/44508
2110 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
2111 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
2112 don't eliminate trivially dead stmts.
2113 * tree-vrp.c (vrp_finalize): Pass false as last argument
2114 to substitute_and_fold.
2115 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
2116 to substitute_and_fold.
2117 * tree-ssa-ccp.c (ccp_finalize): Likewise.
2120 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
2121 * c-family/c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2122 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2123 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2124 ggc_strdup instead of xstrdup.
2126 2010-06-14 Ira Rosen <irar@il.ibm.com>
2128 PR tree-optimization/44507
2129 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
2130 to build initial vector for BIT_AND_EXPR.
2131 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2133 2010-06-14 Jakub Jelinek <jakub@redhat.com>
2135 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
2136 adjust z10prop set_attr.
2138 2010-06-13 Jan Hubicka <jh@suse.cz>
2140 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
2141 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
2142 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
2143 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
2144 datastructure checks into checking asserts.
2145 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
2146 * tree-ssa-sccvn.c (VN_INFO): Likewise.
2147 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
2148 df_ref_create_structure): Likewise.
2149 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
2150 pool_free): Use gcc_checking_assert.
2151 * alias.c (get_alias_set): Likewise.
2152 * var-tracking.c (variable_htab_free, shared_hash_copy,
2153 canonicalize_values_mark, variable_merge_over_cur): Likewise.
2154 * lto-streamer.c (bp_unpack_value): Likewise.
2156 2010-06-13 Richard Guenther <rguenther@suse.de>
2158 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
2159 Do not stream but initialize TYPE_CANONICAL to NULL.
2160 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
2161 * gimple.c (gimple_types_compatible_p): Disregard
2162 TYPE_STRUCTURAL_EQUALITY_P.
2163 (gimple_register_type): Use TYPE_CANONICAL as cache.
2164 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
2165 before registering common types.
2166 * config/i386/i386.c (ix86_function_arg_boundary): Do not
2167 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
2168 * tree.h (TYPE_CANONICAL): Clarify documentation.
2170 2010-06-13 Anatoly Sokolov <aesok@post.ru>
2172 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
2173 LIBCALL_VALUE): Remove macros.
2174 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
2175 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2176 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2177 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
2178 (ia64_function_value): Make static. Handle receiving the function
2179 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
2181 2010-06-12 Jan Hubicka <jh@suse.cz>
2183 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
2186 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
2188 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
2190 2010-06-12 Jan Hubicka <jh@suse.cz>
2192 * df-core.c (df_clear_bb_info): New function.
2193 (df_set_blocks): bb_info is always allocated.
2194 (df_get_bb_info): Use block_info_elt_size.
2195 (df_set_bb_info): Likewise.
2196 (df_compact_blocks): Update for new block_info.
2197 (grow_bb_info): New function.
2198 * df-problems.c (df_grow_bb_info): Move to df-core.c
2199 (df_rd_set_bb_info): Remove.
2200 (df_rd_free_bb_info): Do not free block pool.
2201 (df_rd_alloc): Do not create pool, use check for
2202 obstack presence instead of NULL pointer for new blocks.
2203 (df_rd_free): DO not free alloc pool; clear block_info.
2204 (problem_RD): Add size of block info structure.
2205 (df_lr_set_bb_info): Remove.
2206 (df_lr_free_bb_info): Do not free block pool.
2207 (df_lr_alloc): Do not create pool, use check for
2208 obstack presence instead of NULL pointer for new blocks.
2209 (df_lr_free): DO not free alloc pool; clear block_info.
2210 (problem_LR): Add size of block info structure.
2211 (df_live_set_bb_info): Remove.
2212 (df_live_free_bb_info): Do not free block pool.
2213 (df_live_alloc): Do not create pool, use check for
2214 obstack presence instead of NULL pointer for new blocks.
2215 (df_live_free): DO not free alloc pool; clear block_info.
2216 (problem_LIVE): Add size of block info structure.
2217 (problem_CHAIN): Add size of block info structure.
2218 (df_byte_lr_set_bb_info): Remove.
2219 (df_byte_lr_free_bb_info): Do not free block pool.
2220 (df_byte_lr_alloc): Do not create pool, use check for
2221 obstack presence instead of NULL pointer for new blocks.
2222 (df_byte_lr_free): DO not free alloc pool; clear block_info.
2223 (problem_BYTE_LR): Add size of block info structure.
2224 (problem_NOTE): Add size of block info structure.
2225 (df_byte_MD_set_bb_info): Remove.
2226 (df_byte_MD_free_bb_info): Do not free block pool.
2227 (df_byte_MD_alloc): Do not create pool, use check for
2228 obstack presence instead of NULL pointer for new blocks.
2229 (df_byte_MD_free): DO not free alloc pool; clear block_info.
2230 (problem_BD): Add size of block info structure.
2231 * df-scan.c (df_scan_free_internal): Free block pool.
2232 (df_scan_set_bb_info): Remove.
2233 (df_scan_free_bb_info): Check for artificial_defs instead
2234 of bb_info being non-NULL.
2235 (df_scan_alloc): DO not create df_scan_block pool.
2236 (problem_SCAN): Set size of block info.
2237 (df_bb_refs_record): Do not allocate bb_info.
2238 * df.h (df_problem): Add block_info_elt_size.
2239 (struct dataflow): Change block_info to void *.
2240 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
2241 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
2244 2010-06-12 Jan Hubicka <jh@suse.cz>
2246 PR tree-optimize/44485
2247 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
2248 containing use of return value of noreturn function.
2250 2010-06-12 Anatoly Sokolov <aesok@post.ru>
2252 * targhooks.c (default_function_value): Don't use
2253 FUNCTION_OUTGOING_VALUE.
2254 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
2255 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
2257 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
2259 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
2260 Add crtfastmath.o to extra_parts.
2261 * config/mips/crtfastmath.c: New.
2262 * config/mips/linux.h (ENDFILE_SPEC): New.
2264 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
2266 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
2267 old_type in parameter.
2268 (gcc_type_for_value): Update call to gcc_type_for_interval.
2269 (compute_type_for_level_1): Renamed compute_type_for_level.
2270 Update call to gcc_type_for_interval.
2272 2010-06-11 Joseph Myers <joseph@codesourcery.com>
2274 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
2275 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
2277 2010-06-11 Joseph Myers <joseph@codesourcery.com>
2279 * opts-common.c: Include options.h.
2280 (integral_argument): Move from opts.c.
2281 (decode_cmdline_option): New. Based on read_cmdline_option.
2282 * opts.c (integral_argument): Move to opts-common.c.
2283 (read_cmdline_option): Move most contents to
2284 decode_cmdline_option. Use %qs in diagnostics.
2285 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
2286 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
2287 decode_cmdline_option): New.
2289 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
2292 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
2293 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
2294 (partiysi2_cmp): Ditto.
2295 (*partiyhi2_cmp): Ditto.
2296 (*parityqi2_cmp): Remove.
2298 2010-06-11 Jan Hubicka <jh@suse.cz>
2300 * bitmap.h (bmp_iter_next_bit): New.
2301 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
2303 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
2304 Eric Botcazou <ebotcazou@adacore.com>
2306 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
2309 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
2311 * config/i386/i386.md (unspec): New define_c_enum.
2314 2010-06-10 Jakub Jelinek <jakub@redhat.com>
2316 * c-family/c-cppbuiltin.c: Include cpp-id-data.h.
2317 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2318 (lazy_hex_fp_value): New function.
2319 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2320 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
2322 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
2325 * tree-if-conv.c (bb_predicate_s): New struct.
2326 (bb_predicate_p): New.
2327 (bb_has_predicate): New.
2328 (bb_predicate): New.
2329 (set_bb_predicate): New.
2330 (bb_predicate_gimplified_stmts): New.
2331 (set_bb_predicate_gimplified_stmts): New.
2332 (add_bb_predicate_gimplified_stmts): New.
2333 (init_bb_predicate): New.
2334 (free_bb_predicate): New.
2335 (is_predicated): Use bb_predicate.
2336 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
2337 (predicate_bbs): Same. Gimplify the condition of the basic blocks
2338 before processing their successors.
2339 (clean_predicate_lists): Removed.
2340 (find_phi_replacement_condition): Use bb_predicate.
2341 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
2343 (insert_gimplified_predicates): New.
2344 (combine_blocks): Call insert_gimplified_predicates.
2345 (tree_if_conversion): Call free_bb_predicate instead of
2346 clean_predicate_lists.
2348 2010-10-11 Paul Brook <paul@codesourcery.com>
2350 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
2351 * config/arm/arm.c (all_architectures): Change v7e-m default to
2353 * config/arm/arm-cores.def: Add cortex-m4.
2354 * config/arm/arm-tune.md: Regenerate.
2356 2010-06-11 Jan Hubicka <jh@suse.cz>
2358 * ipa-pure-const.c (special_builtlin_state): New function.
2359 (check_call): Use it instead of special casign BUILT_IN_RETURN.
2360 (propagate_pure_const): Use it.
2362 2010-06-11 Jan Hubicka <jh@suse.cz>
2364 * df-problems.c (df_live_scratch): Convert to bitmap_head.
2365 (df_live_alloc): Initialize df_live_scratch when initializing
2367 (df_live_transfer_function): Update uses of df_live_scratch.
2368 (df_live_free): Free problem_data; clear df_live_scratch before
2369 releasing the obstack.
2370 (df_md_free): Free problem data.
2372 2010-06-11 Jan Hubicka <jh@suse.cz>
2374 * doc/invoke.texi (Wsuggest-attribute): Document.
2375 (Wmissing-noreturn): Remove.
2376 * ipa-pure-const.c (warn_function_noreturn): New function.
2377 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
2378 warn_missing_noreturn.
2379 * common.opt (Wsuggest-attribute=noreturn): New.
2380 * tree-flow.h (warn_function_noreturn): Declare.
2381 * tree-cfg.c (execute_warn_function_noreturn): Use
2382 warn_function_noreturn.
2383 (gate_warn_function_noreturn): New.
2384 (pass_warn_function_noreturn): Update.
2386 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2388 * c-typeck.c (handle_warn_cast_qual): Add loc
2389 parameter. Improve warning message.
2390 (build_c_cast): Pass location to handle_warn_cast_qual.
2392 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
2394 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
2395 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
2397 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
2399 2010-06-10 Dodji Seketeli <dodji@redhat.com>
2401 Fix bootstap on mips
2402 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
2405 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
2407 * system.h (helper_const_non_const_cast): New inline for
2409 (CONST_CAST2): For gcc version <= 4.0 use
2410 new helper to do const/non-const casting.
2412 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2414 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
2415 * Makefile.in (OBJS-common): Include insn-enums.o.
2416 (insn-enums.o): New rule.
2417 (simple_generated_c): Add insn-enums.c.
2418 (build/genenums.o): New rule.
2419 (genprogmd): Add "enums".
2420 * genconstants.c (print_enum_type): Declare a C string array
2422 * genenums.c: New file.
2423 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
2424 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
2425 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
2427 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2429 * doc/md.texi (define_enum_attr): Document.
2430 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
2431 * read-md.h (lookup_enum_type): Declare.
2432 * read-md.c (lookup_enum_type): New function.
2433 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
2434 * genattrtab.c (attr_desc): Add an enum_name field.
2435 (evaluate_eq_attr): Take the associated attribute as argument.
2436 Get the enum prefix from the enum_name field, if defined.
2437 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
2438 (simplify_test_exp): Pass attr to evaluate_eq_attr.
2439 (add_attr_value): New function, split out from...
2440 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
2441 (write_test_expr): Pass attr to evaluate_eq_attr.
2442 (write_attr_get): Use the enum_name as the enum tag, if defined.
2443 (write_attr_valueq): Use the enum_name as a prefix, if defined.
2444 (find_attr): Initialize enum_name.
2445 (main): Handle DEFINE_ENUM_ATTR.
2446 * gensupport.c (process_rtx): Likewise.
2447 * config/mips/mips.h (mips_tune_attr): Delete.
2448 * config/mips/mips.md (cpu): Use define_attr_enum.
2450 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2452 * doc/md.texi (define_c_enum, define_enum): Document.
2453 * read-md.h (md_constant): Add a parent_enum field.
2454 (enum_value, enum_type): New structures.
2455 (upcase_string, traverse_enum_types): Declare.
2456 * read-md.c (enum_types): New variable.
2457 (upcase_string, add_constant): New functions.
2458 (handle_constants): Don't create the hash table here.
2460 (traverse_md_constants): Don't check for a null md_constants.
2461 (decimal_string, handle_enum, traverse_enum_types): New functions.
2462 (read_md_files): Initialize md_constants and md_enums.
2463 * genconstants.c (print_md_constant): Ignore info argument.
2464 Only print constants that belong to no enum.
2465 (print_enum_type): New function.
2466 (main): Don't pass stdout to print_md_constant. Call print_enum_type
2467 for each defined enum type.
2468 * config/mips/mips.md (processor): New define_enum.
2469 (unspec): New define_c_enum.
2470 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
2471 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
2472 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
2473 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
2474 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
2475 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
2476 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
2477 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
2478 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
2479 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
2480 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
2481 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
2482 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
2483 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
2484 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
2485 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
2486 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
2487 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
2488 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
2489 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
2490 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
2491 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
2492 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
2493 (UNSPEC_RDDSP): Move to mips-dsp.md.
2494 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
2495 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
2496 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
2497 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
2498 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
2499 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
2500 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
2501 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
2502 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
2503 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
2504 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
2505 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
2506 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
2507 Moved to mips-dspr2.md.
2508 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
2509 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
2510 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
2511 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
2512 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
2513 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
2514 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
2515 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
2516 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
2517 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
2518 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
2519 UNSPEC_LOONGSON_PSADBH)
2520 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
2521 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
2522 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
2523 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
2524 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
2525 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
2526 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
2527 (cpu): Update comment.
2528 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
2529 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
2530 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
2531 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
2532 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
2533 UNSPEC_LOONGSON_PCMPEQ)
2534 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
2535 UNSPEC_LOONGSON_PINSR_0)
2536 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
2537 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
2538 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
2539 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
2540 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
2541 UNSPEC_LOONGSON_PSADBH)
2542 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
2543 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
2544 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
2545 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
2546 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
2547 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
2548 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
2549 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
2550 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
2551 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
2552 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
2553 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
2554 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
2555 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
2556 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
2557 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
2558 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
2559 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
2560 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
2561 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
2562 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
2563 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
2564 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
2565 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
2566 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
2567 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
2568 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
2569 (UNSPEC_RDDSP): Moved from mips.md.
2570 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
2571 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
2572 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
2573 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
2574 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
2575 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
2576 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
2577 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
2578 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
2579 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
2580 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
2581 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
2582 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
2583 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
2584 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
2585 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
2586 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
2587 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
2588 (UNSPEC_SCC): Moved from mips.md.
2589 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
2590 "processor_type" to "processor".
2591 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
2592 * config/mips/mips.h (processor_type): Delete.
2593 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
2594 "processor_type" to "processor".
2596 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2598 * configure.ac (tm_include_list): Add insn-constants.h.
2599 * configure: Regenerate.
2600 * Makefile.in (GTM_H): Move insn-constants.h here from...
2602 * mkconfig.sh: Remove special handling for insn-constants.h.
2604 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2606 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
2607 (BUILD_MD): ...this new variable.
2608 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
2609 that include the old contents of simple_generated_h and
2611 (simple_generated_h, simple_generated_c): Include them. Add
2613 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
2614 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
2615 Remove these dependencies from the main rule and include
2616 insn-conditions.md in the command line only if it appears
2617 in the dependency list.
2618 (insn-constants.h, s-constants): Delete.
2619 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
2621 (build/genmddeps.o): Likewise.
2622 (genprogrtl): New variable that contains everything from genprogmd
2623 except mddeps and constants.
2624 (genprogmd): Redefine in terms of genprogrtl. Make these programs
2625 depend on $(BUILD_MD)
2626 (genprog): New variable. Make these programs depend on
2628 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
2629 (main): Use read_md_files instead of init_rtx_reader_args.
2630 * genconstants.c: As for genmddeps.c.
2631 * read-md.h (read_skip_construct): Declare.
2632 * read-md.c (read_skip_construct): New function.
2633 (handle_file): Allow a null handle_directive, skipping the
2635 (parse_include): Update the comment accordingly.
2637 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2639 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
2640 * genmddeps.c: Include read-md.h.
2641 (main): Call init_rtx_reader_args instead of init_md_reader_args.
2642 * genattr.c (main): Likewise.
2643 * genattrtab.c (main): Likewise.
2644 * genautomata.c (main): Likewise.
2645 * gencodes.c (main): Likewise.
2646 * genconditions.c (main): Likewise.
2647 * genconfig.c (main): Likewise.
2648 * genconstants.c (main): Likewise.
2649 * genemit.c (main): Likewise.
2650 * genextract.c (main): Likewise.
2651 * genflags.c (main): Likewise.
2652 * genopinit.c (main): Likewise.
2653 * genoutput.c (main): Likewise.
2654 * genpeep.c (main): Likewise.
2655 * genrecog.c (main): Likewise.
2656 * genpreds.c (main): Likewise.
2657 * gensupport.h (in_fname): Move to read-md.h.
2658 (init_md_reader_args_cb): Rename to...
2659 (init_rtx_reader_args_cb): ...this and return a bool.
2660 (init_md_reader_args): Rename to...
2661 (init_rtx_reader_args): ...this and return a bool.
2662 (include_callback): Move to read-md.h.
2663 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
2664 (file_name_list, first_dir_md_include): Move to read-md.c
2665 (first_bracket_include): Delete unused variable.
2666 (last_dir_md_include): Move to read-md.c.
2667 (process_include): Delete, moving code to read-md.c:handle_include.
2668 (process_rtx): Don't handle INCLUDE.
2669 (save_string): Delete.
2670 (rtx_handle_directive): New function.
2671 (init_md_reader_args_cb): Rename to...
2672 (init_rtx_reader_args_cb): ...this and return a boolean success value.
2674 (init_md_reader_args): Rename to...
2675 (init_rtx_reader_args): ...this and return a boolean success value.
2676 * rtl.def (INCLUDE): Delete.
2677 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
2679 * read-rtl.c (read_conditions): Don't gobble ')' here.
2680 (read_mapping): Likewise.
2681 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
2682 Handle top-level non-rtx constructs here rather than in read_rtx_1.
2683 Store the whole queue in *X. Remove call to init_md_reader.
2684 (read_rtx_1): Rename to...
2685 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
2686 Don't handle top-level non-rtx constructs here. Don't handle (nil)
2688 (read_nested_rtx): New function. Handle (nil) here rather than
2690 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
2692 * read-md.h (directive_handler_t): New type.
2693 (in_fname, include_callback): Moved from read-md.h.
2694 (read_constants, init_md_reader): Delete.
2695 (read_md_files): Declare.
2696 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
2697 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
2699 (read_constants): Rename to...
2700 (handle_constants): ...this. Don't gobble ')' here.
2701 (handle_include, handle_file, handle_toplevel_file)
2702 (parse_include): New functions, mostly taken from gensupport.c.
2703 (init_md_reader): Subsume into...
2704 (read_md_files): ...this new function.
2706 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2708 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
2709 (unread_char): Decrement read_md_lineno after putting back '\n'.
2710 * read-md.c (fatal_with_file_and_line): Push back any characters
2711 that we decide not to add to the context.
2712 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
2713 fatal_expected_char in cases where '/' ends a line (for example).
2714 (read_name): Don't increment read_md_lineno here.
2715 (read_escape): Likewise.
2716 (read_quoted_string): Likewise.
2717 (read_braced_string): Likewise.
2719 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2721 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
2722 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
2723 * genconstants.c: Include read-md.h.
2724 * read-rtl.c (md_constants): Move to read-md.c.
2725 (md_name): Move to read-md.h.
2726 (initialize_iterators): Use leading_string_hash instead of def_hash
2727 and leading_string_eq_p instead of def_name_eq_p.
2728 (read_name): Move to read-md.c.
2729 (def_hash, def_name_eq_p): Delete.
2730 (read_constants, traverse_md_constants): Move to read-md.c.
2731 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
2732 * read-md.h: Include hashtab.h.
2733 (md_name): Moved from read-rtl.c.
2734 (md_constant): Moved from read-md.h.
2735 (leading_string_hash, leading_string_eq_p, read_name)
2736 (read_constants, traverse_md_constants): Declare.
2737 * read-md.c (md_constants): Moved from read-rtl.c.
2738 (leading_string_hash, leading_string_eq_p): New functions.
2739 (read_name, read_constants, traverse_md_constants): Moved from
2742 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2744 * read-rtl.c (md_name): New structure.
2745 (read_name): Take an md_name instead of a buffer pointer.
2746 Use the "string" field instead of strcpy when expanding constants.
2747 (read_constants): Remove the tmp_char argument. Update the calls
2748 to read_name, using two local name buffers instead of the tmp_char
2749 argument. Merge the constant-creation code.
2750 (read_conditions): Remove the tmp_char argument. Update the calls
2751 to read_name, using a local name buffer instead of the tmp_char
2753 (read_mapping): Replace tmp_char variable with a local name buffer.
2754 Update the calls to read_name.
2755 (read_rtx_1): Likewise. Update the calls to read_constants and
2758 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2760 * Makefile.in (build/read-md.o): Depend on errors.h.
2761 * read-md.h (error_with_line): Declare.
2762 * read-md.c: Include errors.h.
2763 (message_with_line_1): New function, extracted from...
2764 (message_with_line): ...here.
2765 (error_with_line): New function.
2766 * genattrtab.c: If a call to message_with_line is followed by
2767 "have_error = 1;", replace both statements with a call to
2769 * genoutput.c: Likewise.
2770 * genpreds.c: Likewise.
2771 * genrecog.c: If a call to message_with_line is followed by
2772 "error_count++;", replace both statements with a call to
2774 (errorcount): Delete.
2775 (main): Don't check it.
2776 * gensupport.c: If a call to message_with_line is followed by
2777 "errors = 1;", replace both statements with a call to error_with_line.
2779 (process_define_cond_exec): Check have_error instead of errors.
2780 (init_md_reader_args_cb): Likewise. Don't set errors.
2782 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2784 * read-md.h (read_md_file): Declare.
2785 (read_char, unread_char): New functions.
2786 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
2787 (read_quoted_string, read_string): Remove FILE * argument.
2788 * read-md.c (read_md_file): New variable.
2789 (read_md_filename, read_md_lineno): Update comments and remove
2790 unnecessary initialization.
2791 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
2792 (read_escape, read_quoted_string, read_braced_string, read_string):
2793 Remove FILE * argument. Update calls accordingly, using read_char
2794 and unread_char instead of getc and ungetc.
2795 * rtl.h (read_rtx): Remove FILE * argument.
2796 * read-rtl.c (iterator_group): Remove FILE * argument from
2798 (iterator_traverse_data): Remove "infile" field.
2799 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
2800 (add_mapping, read_name, read_constants, read_conditions)
2801 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
2802 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
2803 Remove file arguments from all calls, using read_char and unread_char
2804 instead of getc and ungetc.
2805 * gensupport.c (process_include): Preserve read_md_file around
2806 the include. Set read_md_file to the handle of the included file.
2807 Update call to read_rtx.
2808 (init_md_reader_args_cb): Set read_md_file to the handle of the file
2809 and remove local FILE *. Update calls to read_rtx.
2811 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2813 * read-md.h (read_rtx_lineno): Rename to...
2814 (read_md_lineno): ...this.
2815 (read_rtx_filename): Rename to...
2816 (read_md_filename): ...this.
2817 (copy_rtx_ptr_loc): Rename to...
2818 (copy_md_ptr_loc): ...this.
2819 (print_rtx_ptr_loc): Rename to...
2820 (print_md_ptr_loc): ...this.
2821 * read-md.c: Likewise. Update references after renaming.
2822 (string_obstack): Replace RTL with MD in comment.
2823 (set_rtx_ptr_loc): Rename to...
2824 (set_md_ptr_loc): ...this.
2825 (get_rtx_ptr_loc): Rename to...
2826 (get_md_ptr_loc): ...this.
2827 * genconditions.c: Update references after renaming.
2828 * genemit.c: Likewise.
2829 * genoutput.c: Likewise.
2830 * genpreds.c: Likewise.
2831 * gensupport.c: Likewise.
2832 * read-rtl.c: Likewise.
2834 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2836 * Makefile.in (READ_MD_H): New variable.
2837 (BUILD_RTL): Add build/read-md.o.
2838 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
2839 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
2840 (build/genattrtab.o, build/genconditions.o build/genemit.o)
2841 (build/genextract.o, build/genflags.o, build/genoutput.o)
2842 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
2843 (build/read-md.o): New rule.
2844 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
2845 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
2846 * coretypes.h: ...here.
2847 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
2848 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
2849 * genattr.c: Include read-md.h.
2850 * genattrtab.c: Likewise.
2851 * genconditions.c: Likewise.
2852 * genemit.c: Likewise.
2853 * genextract.c: Likewise.
2854 * genflags.c: Likewise.
2855 * genoutput.c: Likewise.
2856 * genpreds.c: Likewise.
2857 * genrecog.c: Likewise.
2858 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
2859 (join_c_conditions, print_c_condition, read_rtx_filename)
2860 (read_rtx_lineno): Move to read-md.h.
2861 * read-rtl.c: Include read-md.h.
2862 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
2863 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
2864 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
2865 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
2866 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
2867 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
2868 (read_braced_string, read_string): Move to read-md.c.
2869 (read_rtx): Move some initialization to init_md_reader and call
2870 init_md_reader here.
2871 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
2873 * gensupport.c: Include read-md.h.
2874 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
2875 * read-md.h, read-md.c: New files.
2877 2010-06-10 Anatoly Sokolov <aesok@post.ru>
2879 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2880 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2881 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
2882 * config/moxie/moxie.c (moxie_function_value): Make static.
2883 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
2884 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
2886 2010-06-10 Martin Jambor <mjambor@suse.cz>
2888 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
2889 * dbgcnt.def (tree_sra): New counter.
2890 * tree-sra.c: Include dbgcnt.h.
2891 (gate_intra_sra): Check tree_sra debug counter.
2893 2010-06-10 Martin Jambor <mjambor@suse.cz>
2895 PR tree-optimization/44258
2896 * tree-sra.c (build_access_subtree): Return false iff there is a
2898 (build_access_trees): Likewise.
2899 (analyze_all_variable_accesses): Disqualify candidates if
2900 build_access_trees returns true for them.
2902 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
2905 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
2906 tail-recurse into canonical node. Fast-forward over
2907 non-canonical VALUEs.
2909 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
2912 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
2913 (*addsi_1_zext) <TYPE_LEA>: Likewise.
2914 (add lea splitter): Likewise.
2915 (add_zext lea splitter): Likewise.
2917 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2919 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
2921 2010-06-10 Jan Hubicka <jh@suse.cz>
2923 * df-problems.c (df_live_problem_data): Add live_bitmaps.
2924 (df_live_alloc): Initialize problem data and live_osbtacks.
2925 (df_live_finalize): Remove obstack, problem data; do not
2927 (df_live_top_dump, df_live_bottom_dump): Do not dump old
2928 data when not allocated.
2929 (df_live_verify_solution_start): Do not allocate problem data.
2930 (df_live_verify_solution_end): Check if out is allocated.
2931 (struct df_md_problem_data): New structure.
2932 (df_md_alloc): Allocate problem data.
2933 (df_md_free): Free problem data; do not clear bitmaps.
2935 2010-06-10 Jan Beulich <jbeulich@novell.com>
2938 * configure.ac: Replace $() with ${} when intending to expand
2939 variables rather than invoking commands.
2940 * configure: Re-generate.
2942 2010-06-10 Jan Hubicka <jh@suse.cz>
2944 PR rtl-optimization/44460
2945 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
2946 TYPE_NEEDS_CONSTRUCTING sanity check.
2948 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2950 * doc/include/fdl.texi: Move to GFDL version 1.3.
2952 * doc/cpp.texi: Move to GFDL version 1.3.
2953 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
2954 * doc/gccint.texi: Move to GFDL version 1.3.
2955 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
2956 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
2957 * doc/invoke.texi: Move to GFDL version 1.3.
2959 2010-06-09 Jan Hubicka <jh@suse.cz>
2961 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
2963 (propagate) ... here; swap the order.
2965 2010-06-09 Jan Hubicka <jh@suse.cz>
2967 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
2968 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
2969 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
2970 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
2972 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
2974 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
2975 Do not the gather memory reference in the outer loop if the step
2978 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
2980 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
2981 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
2982 8 to 4. Minor change of the related comments.
2984 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2986 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
2987 the scev analysis when the variable is not used outside the loop
2988 in a close phi node: call compute_overall_effect_of_inner_loop.
2990 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2992 * graphite-sese-to-poly.c (single_pred_cond): Renamed
2993 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
2994 (build_sese_conditions_before): Renamed call to single_pred_cond.
2995 (build_sese_conditions_after): Same.
2997 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2999 * graphite-poly.h: Fix comments and indentation.
3000 * graphite-sese-to-poly.c: Same.
3001 (build_sese_conditions_before): Compute stmt and gbb only when needed.
3002 * tree-chrec.c: Fix comments and indentation.
3003 (tree-ssa-loop-niter.c): Same.
3005 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
3007 PR rtl-optimization/42461
3008 * dce.c (deletable_insn_p): Return true for const or pure calls again.
3009 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
3011 2010-06-09 Jan Hubicka <jh@suse.cz>
3013 * bitmap.c (bitmap_and): Walk array forward.
3014 (bitmap_and_compl_into): Likewise.
3015 (bitmap_xor): Likewise.
3016 (bitmap_xor_into): Likewise.
3017 (bitmap_equal_p): Likewise.
3018 (bitmap_intersect_p): Likewise.
3019 (bitmap_intersect_compl_p): Likewise.
3020 (bitmap_ior_and_into): Likewise.
3021 (bitmap_elt_copy): Likewise.
3022 (bitmap_and_compl): Likewise.
3023 (bitmap_elt_ior): Likewise.
3025 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
3027 * opts-common.c (prune_options): Ensure replacement argv array
3028 is correctly terminated by a NULL entry.
3030 2010-06-09 Jan Hubicka <jh@suse.cz>
3032 * cgraph.h (varpool_first_static_initializer,
3033 varpool_next_static_initializer): Make checking only when
3035 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
3036 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
3037 gcc_assert to gcc_checking_assert.
3038 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
3039 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
3040 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
3041 op_iter_init_phiuse, op_iter_init_phidef,
3042 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
3043 gcc_checking_assert.
3044 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
3045 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
3046 partition_is_global, live_on_entry, live_on_exit,
3047 live_merge_and_clear): Likewise.
3048 * system.h (gcc_checking_assert): New macro.
3049 * gimple.h (set_bb_seq): Use gcc_checking_assert.
3051 2010-06-09 Jason Merrill <jason@redhat.com>
3053 * Makefile.in (TAGS): Collect tags info from c-family.
3055 2010-06-09 Jan Hubicka <jh@suse.cz>
3057 * gimple.h (gcc_gimple_checking_assert): New macro.
3058 (gimple_set_def_ops, gimple_set_use_ops,
3059 gimple_set_vuse, gimple_set_vdef,
3060 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
3061 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
3062 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
3063 gimple_asm_output_op, gimple_asm_output_op_ptr,
3064 gimple_asm_set_output_op, gimple_asm_clobber_op,
3065 gimple_asm_set_clobber_op, gimple_asm_label_op,
3066 gimple_asm_set_label_op, gimple_try_set_kind,
3067 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
3068 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
3069 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
3070 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
3071 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
3072 gimple_omp_for_set_initial, gimple_omp_for_final,
3073 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
3074 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
3075 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
3076 conditional with ENABLE_GIMPLE_CHECKING.
3077 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
3079 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
3081 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
3082 (get_computation_cost_at): Use it.
3083 (determine_use_iv_cost_condition): Likewise.
3084 (determine_iv_cost): Likewise.
3086 2010-06-09 Richard Guenther <rguenther@suse.de>
3088 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
3091 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
3093 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
3095 2010-06-09 Martin Jambor <mjambor@suse.cz>
3097 PR tree-optimization/44423
3098 * tree-sra.c (dump_access): Dump also grp_assignment_read.
3099 (analyze_access_subtree): Pass negative allow_replacements to children
3100 if the current type is scalar.
3102 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
3105 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
3106 * doc/plugins.texi (Plugin license check): Update information
3107 on type of plugin_is_GPL_compatible.
3108 * Makefile.in (PLUGINCC): Define as $(COMPILER).
3109 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
3111 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
3113 * config/arm/arm.c (thumb2_reorg): New function.
3114 (arm_reorg): Call it.
3115 * config/arm/thumb2.md (define_peephole2 for flag clobbering
3116 arithmetic operations): Delete.
3118 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
3121 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
3124 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
3127 * gcc-plugin.h: Encapsulate all declarations in extern "C".
3129 2010-06-08 Jan Hubicka <jh@suse.cz>
3131 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
3132 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
3134 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
3136 PR tree-optimization/39874
3138 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
3140 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
3141 same_bool_result_p): New.
3142 (and_var_with_comparison, and_var_with_comparison_1,
3143 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
3144 (or_var_with_comparison, or_var_with_comparison_1,
3145 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
3146 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
3147 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
3148 of combine_comparisons.
3149 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
3151 2010-06-08 Anatoly Sokolov <aesok@post.ru>
3153 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
3154 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
3155 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
3156 pdp11_function_value_regno_p): New functions.
3157 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3158 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3160 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
3162 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
3163 Thumb-2 in the MINUS case.
3165 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3167 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
3169 * doc/gty.texi (GTY Options): Document typed GC allocation and
3170 variable_size GTY option.
3172 * ggc-internal.h: New.
3174 * ggc.h: Update copyright year.
3175 (digit_string): Move to stringpool.c.
3176 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
3177 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
3178 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
3179 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
3180 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
3181 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
3182 (ggc_force_collect, ggc_get_size, ggc_statistics)
3183 (ggc_print_common_statistics): Move to ggc-internal.h.
3184 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
3185 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
3186 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
3187 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
3188 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
3189 (ggc_alloc_zone_pass_stat): Remove.
3190 (ggc_internal_alloc_stat, ggc_internal_alloc)
3191 (ggc_internal_cleared_alloc_stat): New.
3192 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
3193 (ggc_internal_vec_alloc_stat)
3194 (ggc_internal_cleared_vec_alloc_stat)
3195 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
3196 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
3197 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
3198 (ggc_cleared_alloc_ptr_array_two_args): New.
3199 (htab_create_ggc, splay_tree_new_ggc): Redefine.
3200 (ggc_splay_alloc): Change the type of the first argument to
3202 (ggc_alloc_string): Make macro.
3203 (ggc_alloc_string_stat): New.
3204 (ggc_strdup): Redefine.
3205 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
3206 (ggc_alloc_rtvec_sized): New.
3207 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
3208 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
3209 (ggc_internal_cleared_alloc_zone_stat)
3210 (ggc_internal_zone_alloc_stat)
3211 (ggc_internal_zone_cleared_alloc_stat)
3212 (ggc_internal_zone_vec_alloc_stat)
3213 (ggc_alloc_zone_rtx_def_stat)
3214 (ggc_alloc_zone_tree_node_stat)
3215 (ggc_alloc_zone_cleared_tree_node_stat)
3216 (ggc_alloc_cleared_gimple_statement_d_stat): New.
3218 * ggc-common.c: Include ggc-internal.h.
3219 (ggc_internal_cleared_alloc_stat): Rename from
3220 ggc_alloc_cleared_stat.
3221 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
3222 (ggc_calloc): Remove.
3223 (ggc_cleared_alloc_htab_ignore_args): New.
3224 (ggc_cleared_alloc_ptr_array_two_args): New.
3225 (ggc_splay_alloc): Add obj_type parameter.
3226 (init_ggc_heuristics): Formatting fixes.
3228 * ggc-none.c: Update copyright year.
3229 (ggc_alloc_stat): Rename to ggc_alloc_stat.
3230 (ggc_alloc_cleared_stat): Rename to
3231 ggc_internal_cleared_alloc_stat.
3232 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
3234 * ggc-page.c: Update copyright year. Include ggc-internal.h.
3235 Remove references to ggc_alloc in comments.
3236 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
3237 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
3238 (new_ggc_zone, destroy_ggc_zone): Remove.
3239 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
3241 * ggc-zone.c: Include ggc-internal.h. Remove references to
3242 ggc_alloc in comments.
3243 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
3244 (ggc_internal_alloc_zone_pass_stat): New.
3245 (ggc_internal_cleared_alloc_zone_stat): New.
3246 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
3247 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
3248 (new_ggc_zone, destroy_ggc_zone): Remove.
3250 * stringpool.c: Update copyright year. Include ggc-internal.h
3251 (digit_vector): Make static.
3252 (digit_string): Moved from ggc.h.
3253 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
3254 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
3256 * Makefile.in (GGC_INTERNAL_H): New.
3257 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
3258 $(GGC_INTERNAL_H) to dependencies.
3260 * gentype.c: Update copyright year.
3261 (walk_type): Accept variable_size GTY option.
3262 (USED_BY_TYPED_GC_P): New macro.
3263 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
3264 whitespace at the end of strings.
3265 (get_type_specifier, variable_size_p): New functions.
3266 (alloc_quantity, alloc_zone): New enums.
3267 (write_typed_alloc_def): New function.
3268 (write_typed_struct_alloc_def): Likewise.
3269 (write_typed_typed_typedef_alloc_def): Likewise.
3270 (write_typed_alloc_defns): Likewise.
3271 (output_typename, write_splay_tree_allocator_def): Likewise.
3272 (write_splay_tree_allocators): Likewise.
3273 (main): Call write_typed_alloc_defns and
3274 write_splay_tree_allocators.
3276 * lto-streamer.h (lto_file_decl_data_ptr): New.
3278 * passes.c (order): Define using cgraph_node_ptr.
3280 * strinpool.c (struct string_pool_data): Declare nested_ptr using
3283 * gimple.h (union gimple_statement_d): Likewise.
3285 * rtl.h (struct rtx_def): Likewise.
3286 (struct rtvec_def): Likewise.
3288 * tree.h (union tree_node): Likewise.
3290 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
3292 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
3294 * tree-scalar-evolution.c (scev_initialize): Likewise.
3296 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
3298 * dwarf2asm.c (dw2_force_const_mem): Likewise.
3300 * omp-low.c (lower_omp_critical): Likewise.
3302 * bitmap.h (struct bitmap_head_def): Update comment to not
3303 reference ggc_alloc.
3305 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
3307 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
3309 * ipa-prop.c (duplicate_ggc_array): Rename to
3310 duplicate_ipa_jump_func_array. Use typed GC allocation.
3311 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
3313 * gimple.c (gimple_alloc_stat): Use
3314 ggc_alloc_cleared_gimple_statement_d_stat.
3316 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
3318 * tree.c (make_node_stat): Use
3319 ggc_alloc_zone_cleared_tree_node_stat.
3320 (make_tree_vec_stat): Likewise.
3321 (build_vl_exp_stat): Likewise.
3322 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
3323 (make_tree_binfo_stat): Likewise.
3324 (tree_cons_stat): Likewise.
3326 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
3327 (shallow_copy_rtx_stat): Likewise.
3328 (make_node_stat): Likewise.
3330 * lto-symtab.c: Fix comment.
3332 * tree-cfg.c (create_bb): Update comment to not reference
3334 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
3336 * varpool.c (varpool_node): Use typed GC allocation.
3337 (varpool_extra_name_alias): Likewise.
3339 * varasm.c (emutls_decl): Likewise.
3340 (get_unnamed_section): Likewise.
3341 (get_noswitch_section): Likewise.
3342 (get_section): Likewise.
3343 (get_block_for_section): Likewise.
3344 (build_constant_desc): Likewise.
3345 (create_constant_pool): Likewise.
3346 (force_const_mem): Likewise.
3348 * tree.c (build_vl_exp_stat): Likewise.
3349 (build_real): Likewise.
3350 (build_string): Likewise.
3351 (decl_debug_expr_insert): Likewise.
3352 (decl_value_expr_insert): Likewise.
3353 (type_hash_add): Likewise.
3354 (build_omp_clause): Likewise.
3356 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
3358 * tree-ssa.c (init_tree_ssa): Likewise.
3360 * tree-ssa-structalias.c (heapvar_insert): Likewise.
3362 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
3364 * tree-ssa-loop-niter.c (record_estimate): Likewise.
3366 * tree-ssa-alias.c (get_ptr_info): Likewise.
3368 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
3370 * tree-phinodes.c (allocate_phi_node): Likewise.
3372 * tree-iterator.c (tsi_link_before): Likewise.
3373 (tsi_link_after): Likewise.
3375 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
3377 * tree-dfa.c (create_var_ann): Likewise.
3379 * tree-cfg.c (create_bb): Likewise.
3381 * toplev.c (alloc_for_identifier_to_locale): Likewise.
3382 (general_init): Likewise.
3384 * stringpool.c (stringpool_ggc_alloc): Likewise.
3385 (gt_pch_save_stringpool): Likewise.
3387 * sese.c (if_region_set_false_region): Likewise.
3389 * passes.c (do_per_function_toporder): Likewise.
3391 * optabs.c (set_optab_libfunc): Likewise.
3392 (set_conv_libfunc): Likewise.
3394 * lto-symtab.c (lto_symtab_register_decl): Likewise.
3396 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
3397 (input_eh_region): Likewise.
3398 (input_eh_lp): Likewise.
3399 (make_new_block): Likewise.
3400 (unpack_ts_real_cst_value_fields): Likewise.
3402 * lto-section-in.c (lto_new_in_decl_state): Likewise.
3404 * lto-cgraph.c (input_node_opt_summary): Likewise.
3406 * loop-init.c (loop_optimizer_init): Likewise.
3408 * lambda.h (lambda_vector_new): Likewise.
3410 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
3412 * ira.c (update_equiv_regs): Likewise.
3414 * ipa.c (cgraph_node_set_new): Likewise.
3415 (cgraph_node_set_add): Likewise.
3416 (varpool_node_set_new): Likewise.
3417 (varpool_node_set_add): Likewise.
3419 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
3420 (duplicate_ipa_jump_func_array): Likewise.
3421 (ipa_read_node_info): Likewise.
3423 * ipa-cp.c (ipcp_create_replace_map): Likewise.
3425 * integrate.c (get_hard_reg_initial_val): Likewise.
3427 * gimple.c (gimple_alloc_stat): Likewise.
3428 (gimple_build_omp_for): Likewise.
3429 (gimple_seq_alloc): Likewise.
3430 (gimple_copy): Likewise.
3432 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
3433 (gsi_insert_after_without_update): Likewise.
3435 * function.c (add_frame_space): Likewise.
3436 (insert_temp_slot_address): Likewise.
3437 (assign_stack_temp_for_type): Likewise.
3438 (allocate_struct_function): Likewise.
3439 (types_used_by_var_decl_insert): Likewise.
3441 * except.c (init_eh_for_function): Likewise.
3442 (gen_eh_region): Likewise.
3443 (gen_eh_region_catch): Likewise.
3444 (gen_eh_landing_pad): Likewise.
3445 (add_call_site): Likewise.
3447 * emit-rtl.c (get_mem_attrs): Likewise.
3448 (get_reg_attrs): Likewise.
3449 (start_sequence): Likewise.
3450 (init_emit): Likewise.
3452 * dwarf2out.c (new_cfi): Likewise.
3453 (queue_reg_save): Likewise.
3454 (dwarf2out_frame_init): Likewise.
3455 (new_loc_descr): Likewise.
3456 (find_AT_string): Likewise.
3457 (new_die): Likewise.
3458 (add_var_loc_to_decl): Likewise.
3459 (clone_die): Likewise.
3460 (clone_as_declaration): Likewise.
3461 (break_out_comdat_types): Likewise.
3462 (new_loc_list): Likewise.
3463 (loc_descriptor): Likewise.
3464 (add_loc_descr_to_each): Likewise.
3465 (add_const_value_attribute): Likewise.
3466 (tree_add_const_value_attribute): Likewise.
3467 (add_comp_dir_attribute): Likewise.
3468 (add_name_and_src_coords_attributes): Likewise.
3469 (lookup_filename): Likewise.
3470 (store_vcall_insn): Likewise.
3471 (dwarf2out_init): Likewise.
3473 * dbxout.c (dbxout_init): Likewise.
3475 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3477 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
3479 * config/score/score7.c (score7_output_external): Likewise.
3481 * config/score/score3.c (score3_output_external): Likewise.
3483 * config/s390/s390.c (s390_init_machine_status): Likewise.
3485 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
3486 (rs6000_init_machine_status): Likewise.
3487 (output_toc): Likewise.
3489 * config/pa/pa.c (pa_init_machine_status): Likewise.
3490 (get_deferred_plabel): Likewise.
3492 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
3494 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
3496 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
3498 * config/mep/mep.c (mep_init_machine_status): Likewise.
3499 (mep_note_pragma_flag): Likewise.
3501 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
3503 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
3505 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
3507 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
3508 (i386_pe_maybe_record_exported_symbol): Likewise.
3510 * config/i386/i386.c (get_dllimport_decl): Likewise.
3511 (ix86_init_machine_status): Likewise.
3512 (assign_386_stack_local): Likewise.
3514 * config/frv/frv.c (frv_init_machine_status): Likewise.
3516 * config/darwin.c (machopic_indirection_name): Likewise.
3518 * config/cris/cris.c (cris_init_machine_status): Likewise.
3520 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
3522 * config/avr/avr.c (avr_init_machine_status): Likewise.
3524 * config/arm/arm.c (arm_init_machine_status): Likewise.
3526 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
3527 (alpha_need_linkage): Likewise.
3528 (alpha_use_linkage): Likewise.
3530 * cgraph.c (cgraph_allocate_node): Likewise.
3531 (cgraph_create_edge_1): Likewise.
3532 (cgraph_create_indirect_edge): Likewise.
3533 (cgraph_add_asm_node): Likewise.
3535 * cfgrtl.c (init_rtl_bb_info): Likewise.
3537 * cfgloop.c (alloc_loop): Likewise.
3538 (rescan_loop_exit): Likewise.
3540 * cfg.c (init_flow): Likewise.
3541 (alloc_block): Likewise.
3542 (unchecked_make_edge): Likewise.
3544 * c-parser.c (c_parse_init): Likewise.
3545 (c_parse_file): Likewise.
3547 * c-decl.c (bind): Likewise.
3548 (record_inline_static): Likewise.
3549 (push_scope): Likewise.
3550 (make_label): Likewise.
3551 (lookup_label_for_goto): Likewise.
3552 (finish_struct): Likewise.
3553 (finish_enum): Likewise.
3554 (c_push_function_context): Likewise.
3556 * bitmap.c (bitmap_element_allocate): Likewise.
3557 (bitmap_gc_alloc_stat): Likewise.
3559 * alias.c (record_alias_subset): Likewise.
3560 (init_alias_analysis): Likewise.
3562 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
3564 * fold-const.c (fold_comparison): Remove redundant parenthesis.
3565 * tree-inline.c (expand_call_inline): Pass translated return value of
3566 cgraph_inline_failed_string to diagnostic function.
3568 2010-06-08 Andrew Pinski <pinskia@gmail.com>
3569 Shujing Zhao <pearly.zhao@oracle.com>
3572 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
3573 implicit bad conversions is initialization.
3574 (error_init): Use gmsgid instead of msgid for argument name and change
3576 (pedwarn_init): Use gmsgid instead of msgid for argument name and
3577 change the call for pedwarn.
3578 (warning_init): Use gmsgid instead of msgid for argument name and
3579 change the call for warning.
3581 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
3583 * config/mips/mips-protos.h (mips_print_operand): Delete.
3584 (mips_print_operand_address): Delete.
3585 * config/mips/mips.h (mips_print_operand_punct): Delete.
3586 (PRINT_OPERAND): Delete.
3587 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3588 (PRINT_OPERAND_ADDRESS): Delete.
3589 * config/mips/mips.c (mips_print_operand_punct): Make static.
3590 (mips_print_operand_address): Make static.
3591 (mips_print_operand): Make static. Call
3592 mips_print_operand_punct_valid_p.
3593 (mips_print_operand_punct_valid_p): New function.
3594 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3595 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3597 2010-06-07 Jan Hubicka <jh@suse.cz>
3600 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
3603 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
3605 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
3608 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3610 * doc/sourcebuild.texi (Effective-Target Keywords, Other
3611 attributes): Document gas.
3613 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
3615 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
3616 <TYPE_LEA>: Split instruction.
3617 <default>: Remove alternative 2 handling.
3618 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
3619 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
3620 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
3622 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
3623 (ashift_zext lea splitter): Use DImode for multiplication.
3625 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
3626 to generate addition.
3628 2010-06-07 Joseph Myers <joseph@codesourcery.com>
3630 * common.opt (fira-verbose): Use Var.
3631 (fpcc-struct-return): Use Init instead of VarExists.
3632 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
3634 * flags.h (flag_signed_char, flag_short_enums,
3635 flag_pcc_struct_return, flag_ira_verbose,
3636 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
3637 * toplev.c (flag_detailed_statistics, flag_signed_char,
3638 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
3639 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
3640 * toplev.h (flag_crossjumping, flag_if_conversion,
3641 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
3642 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
3643 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
3644 flag_cprop_registers, time_report, flag_ira_loop_pressure,
3645 flag_ira_coalesce, flag_ira_move_spills,
3646 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
3648 2010-06-07 Jan Hubicka <jh@suse.cz>
3650 * df-core.c (df_analyze_problem): Do verification after allocation.
3652 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
3653 (df_lr_alloc): Initialize problem data; move bitmaps to
3655 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
3656 (df_lr_verify_solution_start): Do not initialize problem data;
3657 allocate bitmaps in lr_bitmaps.
3658 (df_lr_verify_solution_end): Do not free problem data.
3660 2010-06-07 Jan Hubicka <jh@suse.cz>
3662 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
3663 if caller is noreturn.
3664 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
3665 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
3666 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
3667 * ipa-pure-const.c (check_decl): Add IPA parameter.
3668 (state_from_flags): New function.
3669 (better_state, worse_state): New functions.
3670 (check_call): When in IPA mode, do not care about callees.
3671 (check_load, check_store): Update.
3672 (check_ipa_load, check_ipa_store): New.
3673 (check_stmt): When in IPA mode, use IPA checkers.
3674 (analyze_function): Use state_from_flags.
3675 (propagate): Check indirect edges and references.
3677 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
3679 PR rtl-optimization/44404
3680 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
3681 of count_occurrences to see if it's safe to modify mem_insn.
3683 2010-06-07 Richard Guenther <rguenther@suse.de>
3685 * gimplify.c (gimplify_cleanup_point_expr): For empty body
3686 and EH-only cleanup drop the cleanup instead of inserting it
3689 2010-06-07 Ira Rosen <irar@il.ibm.com>
3691 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
3693 * targhooks.c (default_builtin_vectorization_cost): New function.
3694 * targhooks.h (default_builtin_vectorization_cost): Declare.
3695 * target.h (enum vect_cost_for_stmt): Define.
3696 (builtin_vectorization_cost): Change argument and comment.
3697 * tree-vectorizer.h: Remove cost model macros.
3698 * tree-vect-loop.c: Include target.h.
3699 (vect_get_cost): New function.
3700 (vect_estimate_min_profitable_iters): Replace cost model macros with
3701 calls to vect_get_cost.
3702 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
3703 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
3704 default implementation.
3705 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
3706 calls to target hook builtin_vectorization_cost.
3707 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
3709 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
3710 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
3711 implementation to return costs.
3712 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
3713 * config/spu/spu.h: Remove vectorizer cost model macros.
3714 * config/i386/i386.h: Likewise.
3715 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
3716 a call to target hook builtin_vectorization_cost.
3718 2010-06-06 Sriraman Tallam <tmsriram@google.com>
3721 * config/i386/i386.c (override_options): Turn zee pass on for level 2
3722 and above and defer till target is known.
3723 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
3726 2010-05-25 Jan Hubicka <jh@suse.cz>
3728 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
3729 (df_compact_blocks): Likewise.
3730 * df.h (struct df): Turn hardware_regs_used,
3731 regular_block_artificial_uses, eh_block_artificial_uses,
3732 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
3734 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
3735 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
3736 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
3737 df_scan_blocks, df_insn_delete, df_insn_rescan,
3738 df_insn_rescan_debug_internal, df_insn_rescan_all,
3739 df_process_deferred_rescans, df_process_deferred_rescans,
3740 df_notes_rescan, df_get_call_refs, df_get_call_refs,
3741 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
3742 df_record_entry_block_defs, df_record_exit_block_uses,
3743 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
3744 df_scan_verify): Update.
3746 2010-05-25 Dodji Seketeli <dodji@redhat.com>
3749 * c-common.c (is_typedef_decl): Move this definition ...
3750 * tree.c (is_typedef_decl): ... here.
3751 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
3752 * c-common.h (is_typedef_decl): Move this declaration ...
3753 * tree.h (is_typedef_decl): ... here.
3754 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
3755 * dwarf2out.c (is_naming_typedef_decl): New function.
3756 (gen_tagged_type_die): Split out of ...
3757 (gen_type_die_with_usage): ... this function. When an anonymous
3758 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
3759 is emitted for the typedef.
3760 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
3761 anonymous tagged types.
3763 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
3766 * c-decl.c (grokdeclarator): Delete warning.
3768 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
3770 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
3771 newly built CALL_EXPR.
3772 * tree-profile.c (tree_profiling): Don't profile functions produced
3775 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
3779 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
3780 endianness-independent.
3782 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3784 * c-common.c: Move to c-family/.
3785 * c-common.def: Likewise.
3786 * c-common.h: Likewise.
3787 * c-cppbuiltin.c: Likewise.
3788 * c-dump.c: Likewise.
3789 * c-format.c: Likewise.
3790 * c-format.h : Likewise.
3791 * c-gimplify.c: Likewise.
3792 * c-lex.c: Likewise.
3793 * c-omp.c: Likewise.
3795 * c-opts.c: Likewise.
3796 * c-pch.c: Likewise.
3797 * c-ppoutput.c: Likewise.
3798 * c-pragma.c: Likewise.
3799 * c-pragma.h: Likewise.
3800 * c-pretty-print.c: Likewise.
3801 * c-pretty-print.h: Likewise.
3802 * c-semantics.c: Likewise.
3803 * stub-objc.c: Likewise.
3805 * gengtype.c (get_file_langdir): Special-case files in c-family/.
3806 (get_output_file_with_visibility): Fix name for c-common.h.
3807 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
3809 * c-tree.h: Update include path for moved files.
3810 * c-lang.c: Likewise.
3811 * c-lang.h: Likewise.
3812 * c-parser.c: Likewise.
3813 * c-convert.c: Likewise.
3814 * c-decl.c: Likewise.
3815 * c-objc-common.c: Likewise.
3816 * configure.ac: Make sure c-family/ exists in the build directory.
3817 * configure: Regenerate.
3818 * Makefile.in: Update paths for moved files. Regroup files per
3819 location and update dependencies. Move generated_files down after
3822 * config/spu/spu-c.c: Update paths for moved files.
3823 * config/mep/mep-pragma.c: Likewise.
3824 * config/darwin-c.c: Likewise.
3825 * config/i386/msformat-c.c: Likewise.
3826 * config/i386/i386-c.c: Likewise.
3827 * config/avr/avr-c.c: Likewise.
3828 * config/sol2-c.c: Likewise.
3829 * config/ia64/ia64-c.c: Likewise.
3830 * config/rs6000/rs6000-c.c: Likewise.
3831 * config/arm/arm.c: Likewise.
3832 * config/arm/arm-c.c: Likewise.
3833 * config/h8300/h8300.c: Likewise.
3834 * config/v850/v850-c.c: Likewise.
3836 * config/t-darwin: Fix dependencies for moved files.
3837 * config/t-sol2: Fix dependencies for moved files.
3838 * config/mep/t-mep: Fix dependencies for moved files.
3839 * config/ia64/t-ia64: Fix dependencies for moved files.
3840 * config/rs6000/t-rs6000: Fix dependencies for moved files.
3841 * config/v850/t-v850: Fix dependencies for moved files.
3842 * config/v850/t-v850e: Fix dependencies for moved files.
3844 * config/m32c/m32c-pragma.c
3846 * po/exgettext: Look in c-family/ also.
3848 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
3850 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
3851 (mark_control_dependent_edges_necessary): Call it instead of marking
3852 the last statement manually.
3853 (propagate_necessity): Likewise.
3855 2010-06-05 Jan Hubicka <jh@suse.cz>
3857 * basic-block.h (compute_dominance_frontiers): Updated.
3858 (compute_idf): Likewise.
3860 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
3861 for dominance frontiers.
3862 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
3863 (insert_updated_phi_nodes_for): Likewise.
3864 (update_ssa): Likewise.
3865 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3866 (compute_dominance_frontiers): Likewise.
3867 (compute_idf): Likewise.
3868 * df-problems.c (df_md_local_compute): Likewise.
3870 2010-06-05 Anatoly Sokolov <aesok@post.ru>
3872 * target.h (struct gcc_target): Add memory_move_cost field.
3873 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
3874 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
3875 * targhooks.c (default_memory_move_cost): New function.
3876 * targhooks.h (default_memory_move_cost): Declare function.
3877 * reload.h (memory_move_cost): Declare.
3878 (memory_move_secondary_cost): Change type of 'in' argument to bool.
3879 * reginfo.c (memory_move_cost): New function.
3880 (memory_move_secondary_cost): Change type of 'in' argument to bool.
3881 * ira.h (ira_memory_move_cost): Update comment.
3882 * ira.c: (ira_memory_move_cost): Update comment.
3883 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
3884 with memory_move_cost.
3885 * postreload.c (reload_cse_simplify_set): (Ditto.).
3886 * reload1.c (choose_reload_regs): (Ditto.).
3887 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
3888 (MEMORY_MOVE_COST): Revise documentation.
3890 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
3891 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
3892 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
3893 type of 'in' argument to bool.
3894 (TARGET_MEMORY_MOVE_COST): Define.
3896 2010-06-05 Jan Hubicka <jh@suse.cz>
3898 * ipa-pure-const.c (propagate): Fix typo in handling of functions
3899 that cannot return. Be more careful when merging the results with
3900 previously known ones.
3902 2010-06-05 Matthias Klose <doko@ubuntu.com>
3904 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
3905 function to add the -iplugindir option.
3906 (find_plugindir_spec_function): Add new declaration and function.
3907 (static_spec_func): Use it for "find-plugindir".
3909 2010-06-05 Jakub Jelinek <jakub@redhat.com>
3912 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
3913 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
3914 statement expression.
3916 2010-06-05 Jan Hubicka <jh@suse.cz>
3918 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
3919 (df_rd_problem_data): Convert sparse_invalidated_by_call,
3920 dense_invalidated_by_call to bitmap head.
3921 (df_rd_alloc, df_rd_bb_local_compute_process_def,
3922 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
3923 df_rd_start_dump, df_lr_verify_transfer_functions,
3924 df_live_verify_transfer_functions, df_chain_create_bb,
3925 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
3926 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
3927 df_simulate_one_insn_forwards, df_md_alloc,
3928 df_md_bb_local_compute_process_def,
3929 df_md_bb_local_compute_process_def, df_md_local_compute,
3930 df_md_transfer_function df_md_free): Update.
3932 2010-06-05 Joseph Myers <joseph@codesourcery.com>
3935 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
3936 target type for ADDR_EXPR; require no changes to qualifiers except
3938 * c-tree.h (c_build_type_variant): Remove.
3940 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
3942 * genautomata.c (get_excl_set): Do work per element, not per char.
3943 (check_presence_pattern_sets): Similar.
3944 (check_absence_pattern_sets): Similar.
3946 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
3948 * genautomata.c (curr_state_pass_num): Delete.
3949 (min_issue_delay_pass_states): Delete.
3950 (min_issue_delay): Delete.
3951 (initiate_min_issue_delay_pass_states): Delete.
3952 (output_min_issue_delay_table): Compute min_issue_delay_vect
3953 using a breadth-first search variant.
3954 (output_tables): Don't call initiate_min_issue_delay_pass_states.
3956 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
3959 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
3960 (df_byte_lr_bb_local_compute): Likewise.
3962 2010-06-03 Jason Merrill <jason@redhat.com>
3964 Implement noexcept operator (5.3.7)
3965 * c-common.c (c_common_reswords): Add noexcept.
3966 * c-common.h (enum rid): Add RID_NOEXCEPT.
3968 2010-06-04 Joseph Myers <joseph@codesourcery.com>
3970 * config/darwin-driver.c (darwin_default_min_version): Use
3971 GCC-specific formats in diagnostics.
3972 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
3974 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
3975 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
3976 eval_spec_function, handle_braces, process_brace_body, main,
3977 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
3978 getenv_spec_function, compare_version_strings,
3979 version_compare_spec_function): Use GCC-specific formats in
3982 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3984 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
3985 that operand 0 and operand 1 are equal.
3986 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
3987 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
3988 and operand 1 are equal.
3989 <default>: Ditto. Remove ??? comment.
3990 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
3991 and operand 1 are equal.
3992 <default>: Ditto. Remove ??? comment.
3993 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
3995 (*add<mode>_4) <default>: Ditto.
3996 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
3998 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
4000 * config/i386/i386-protos.h (ix86_print_operand): Declare.
4001 * config/i386/i386.c (ix86_print_operand): Make non-static.
4002 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
4003 * output.h (output_operand): Declare.
4004 * final.c (output_operand): Make non-static.
4006 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
4008 PR rtl-optimization/44013
4009 * sched-deps.c (add_dependence_list_and_free): Don't free lists
4010 when processing debug insns.
4013 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
4014 recursing. Check that recursion is bounded. Rename inner var
4015 to avoid hiding incoming argument.
4017 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
4019 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
4024 (*addqi_ext_1_rex64): Ditto.
4025 (*addqi_ext_1): Ditto.
4027 (*addqi_4): Check for incdec_operand in QImode.
4029 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
4030 using SWI mode iterator.
4031 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
4032 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
4034 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
4035 using SWI mode iterator.
4037 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4040 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
4041 * c-format.c (gcc_diag_flag_specs): Add hash.
4042 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
4043 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
4044 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
4045 pp_c_cv_qualifiers. Handle qualifiers spelling here.
4046 (pp_c_type_qualifier_list): Call the function above.
4047 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
4048 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
4049 (WARN_FOR_QUALIFIERS): New macro.
4050 (convert_for_assignment): Use it.
4052 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
4054 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
4056 2010-06-04 Jan Hubicka <jh@suse.cz>
4058 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
4059 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
4060 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
4061 DF_BYTE_LR_OUT): Update for embedded bitmaps.
4062 * fwprop.c (single_def_use_enter_block): Likewise.
4063 * ddg.c (create_ddg_dep_from_intra_loop_link,
4064 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
4065 * loop-iv.c (latch_dominating_def): Likewise.
4066 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
4067 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
4068 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
4069 df_rd_transfer_function, df_rd_top_dump,
4070 df_rd_bottom_dump): Update.
4071 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
4072 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
4073 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
4074 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
4075 df_lr_verify_solution_start, df_lr_verify_solution_end,
4076 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
4077 df_live_free_bb_info, df_live_alloc, df_live_reset,
4078 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
4079 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
4080 df_live_verify_solution_start, df_live_verify_solution_end,
4081 df_live_verify_transfer_functions, df_chain_create_bb,
4082 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
4083 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
4084 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
4085 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
4086 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
4087 df_byte_lr_transfer_function, df_byte_lr_top_dump,
4088 df_byte_lr_bottom_dump, df_create_unused_note,
4089 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
4090 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
4091 df_md_transfer_function, df_md_init, df_md_confluence_0,
4093 df_md_top_dump, df_md_bottom_dump): Update.
4094 (struct df_lr_problem_data): Embedd bitmap headers.
4096 2010-06-04 Jan Hubicka <jh@suse.cz>
4098 * dce.c (dce_process_block): Do not re-scan already marked
4101 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
4103 PR rtl-optimization/39871
4104 PR rtl-optimization/40615
4105 PR rtl-optimization/42500
4106 PR rtl-optimization/42502
4107 * ira.c (init_reg_equiv_memory_loc: New function.
4108 (ira): Call it twice.
4109 * reload.h (calculate_elim_costs_all_insns): Declare.
4110 * ira-costs.c: Include "reload.h".
4111 (regno_equiv_gains): New static variable.
4112 (init_costs): Allocate it.
4113 (finish_costs): Free it.
4114 (ira_costs): Call calculate_elim_costs_all_insns.
4115 (find_costs_and_classes): Take estimated elimination costs
4117 (ira_adjust_equiv_reg_cost): New function.
4118 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
4119 * reload1.c (init_eliminable_invariants, free_reg_equiv,
4120 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
4121 (elim_bb): New static variable.
4122 (reload): Move code out of here into init_eliminable_invariants and
4123 free_reg_equiv. Call them.
4124 (calculate_elim_costs_all_insns): New function.
4125 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
4126 all callers changed. If FOR_COSTS is true, don't call alter_reg,
4127 but call note_reg_elim_costly if we turned a valid memory address
4128 into an invalid one.
4129 * Makefile.in (ira-costs.o): Depend on reload.h.
4131 2010-06-04 Julian Brown <julian@codesourcery.com>
4133 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
4136 2010-06-04 Richard Guenther <rguenther@suse.de>
4139 * cgraph.h (struct varpool_node): Add lto_file_data field.
4140 * lto-cgraph.c (input_varpool_node): Initialize it.
4142 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
4144 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
4145 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
4146 predicate in "type" attribute calculation.
4147 (*addsi_1_zext): Ditto.
4148 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
4149 (*addsi_2_zext): Ditto.
4150 (*add<mode>_3): Ditto.
4151 (*addsi_3_zext): Ditto.
4152 (*add<mode>_5): Ditto.
4154 2010-06-03 Jan Hubicka <jh@suse.cz>
4156 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
4158 * cfganal.c (compute_dominance_frontiers_1): Likewise.
4160 2010-06-03 Jan Hubicka <jh@suse.cz>
4162 * df-problems.c (df_create_unused_note, df_note_bb_compute):
4163 micro-optimize the checks when to add new note.
4165 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
4167 * final.c (output_asm_insn): Call
4168 targetm.asm_out.print_operand_punct_valid_p. Update comments.
4169 (output_operand): Call targetm.asm_out.print_operand. Update comments.
4170 (output_address): Call targetm.asm_out.print_operand_address.
4172 * target.h (struct gcc_target): Add print_operand,
4173 print_operand_address, and print_operand_punct_valid_p fields.
4174 * targhooks.h (default_print_operand): Declare.
4175 (default_print_operand_address): Declare.
4176 (default_print_operand_punct_valid_p): Declare.
4177 * targhooks.c (default_print_operand): Define.
4178 (default_print_operand_address): Define.
4179 (default_print_operand_punct_valid_p): Define.
4180 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
4181 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
4182 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
4183 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
4184 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
4185 * vmsdbgout.c (addr_const_to_string): Update comment.
4186 * config/i386/i386.c (print_operand): Rename to...
4187 (ix86_print_operand): ...this. Make static.
4188 (print_operand_address): Rename to...
4189 (ix86_print_operand_address): ...this. Make static. Call
4190 ix86_print_operand instead of PRINT_OPERAND.
4191 (ix86_print_operand_punct_valid_p): New function.
4192 (TARGET_PRINT_OPERAND): Define.
4193 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4194 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4195 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
4196 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4197 (PRINT_OPERAND): Delete.
4198 (PRINT_OPERAND_ADDRESS): Delete.
4199 * config/i386/i386-protos.h (print_operand): Delete prototype.
4200 (print_operand_address): Delete prototype.
4202 2010-06-03 Richard Guenther <rguenther@suse.de>
4204 PR tree-optimization/44403
4205 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4206 Preserve pointer qualifiers.
4207 (vect_create_data_ref_ptr): Likewise.
4209 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
4212 * defaults.h (MAX_FIXED_MODE_SIZE): New.
4214 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
4216 2010-06-03 Jakub Jelinek <jakub@redhat.com>
4219 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
4220 return false if merging the bbs would lead to goto_locus
4221 location being lost from the IL.
4223 2010-06-03 Jan Hubicka <jh@suse.cz>
4224 Jakub Jelinek <jakub@redhat.com>
4226 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
4227 set->regs[i] is NULL or has just one entry.
4229 2010-06-03 Jan Hubicka <jh@suse.cz>
4231 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
4232 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
4234 2010-06-03 Paul Brook <paul@codesourcery.com>
4236 * config/arm/arm.c (FL_TUNE): Define.
4237 (arm_default_cpu, arm_cpu_select): Remove.
4238 (all_cores): Populate core field.
4239 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
4240 (arm_find_cpu): New function.
4241 (arm_handle_option): Lookup cpu/architecture names.
4242 (arm_override_options): Cleanup mcpu/march/mtune handling.
4243 (arm_file_start): Ditto.
4245 2010-06-03 Alan Modra <amodra@gmail.com>
4248 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
4249 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
4250 rtx to gen_load_toc_v4_PIC_1b. Tidy.
4251 (rs6000_emit_load_toc_table): Likewise.
4253 2010-06-02 Jan Hubicka <jh@suse.cz>
4255 * passes.c (init_optimization_passes): Put ipa reference
4256 after ipa pure-const.
4258 2010-06-02 Jan Hubicka <jh@suse.cz>
4260 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
4261 calls_read_all and calls_write_all.
4262 (get_reference_optimization_summary): Fix formatting.
4263 (is_proper_for_analysis): Check that decl is not readonly.
4264 (propagate_bits): Check CONST/PURE/noreturn flags.
4265 (ipa_init): Move all_module_statics to optimization_summary_obstack.
4266 (analyze_function): Ignore indirect edges.
4267 (copy_global_bitmap): For all module statics, do nothing.
4268 (generate_summary): Do not print calls_read_all/calls_write_all.
4269 (read_write_all_from_decl): Take node as argument; check
4270 cgraph_node_cannot_return.
4271 (propagate): Reorganize read_all/write_all computation;
4272 check indirect edges; check ecf flags; use all_module_statics
4273 in the results; do not free all_module_statics.
4274 (stream_out_bitmap): Handle all_module_statics.
4275 (ipa_reference_write_optimization_summary): Likewise; use
4276 varpool/cgraph encoders to get boundaries.
4277 (ipa_reference_read_optimization_summary): Read in all_module_statics;
4278 use it when possible.
4280 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
4283 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
4284 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
4286 * doc/extend.texi (powerpc builtins): Document vec_recip,
4287 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
4289 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
4290 (rs6000_emit_swrsqrt): Ditto.
4291 (rs6000_emit_swdivsf): Delete.
4292 (rs6000_emit_swdivdf): Ditto.
4293 (rs6000_emit_swrsqrtsf): Ditto.
4295 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
4296 describe the reciprocal estimate support for each type.
4297 (recip_options): Map -mrecip=<opt> into option bits.
4298 (gen_2arg_fn_t): New typedef for binary rtx gen function.
4299 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
4300 reciprocal estimate instructions.
4301 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
4302 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
4303 Set up rs6000_recip_bits based on the -mrecip* options. Print the
4304 cost information if -mdebug=cost or -mdebug=reg.
4305 (rs6000_override_options): Set -mrecip-precision for power6, and
4306 power7 machines. If -mvsx or -mdfp, enable various options that
4307 came in previous instruction set ISAs, unless the option was
4308 explicitly disabled by the command line option. Parse
4309 -mrecip=<opt> options.
4310 (rs6000_builtin_vectorized_function): Add support for vectorizing
4311 the reciprocal estimate builtins and expansions.
4312 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
4313 (bdesc_2arg): Add reciprocal estimate builtins.
4314 (bdesc_1arg): Add reciprocal square root estimate builtins.
4315 (rs6000_expand_builtin): Rewrite to use a switch statement,
4316 instead of multiple if/then/elses. Add reciprocal estimate builtins.
4317 (rs6000_init_builtins): Create declarations for reciprocal
4319 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
4320 sized, prefer traditional floating point registers, if integer
4321 vector types, prefer altivec registers. Don't actually look at
4322 the memory address any more.
4323 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
4325 (rs6000_load_constant_and_splat): New helper function to load up
4326 the constant for reciprocal estimate instructions.
4327 (rs6000_emit_madd): New helper function for generating
4328 multiply/add type instructions, based on the current switches.
4329 (rs6000_emit_msub): Ditto.
4330 (rs6000_emit_mnsub): Ditto.
4331 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
4332 replace a divide with a reciprocal estimate and fixup, adding
4333 support for machines with high precision and vectors.
4334 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
4335 low precision machines.
4336 (rs6000_emit_swdiv): New common function to be called to replace a
4337 division with reciprocal estimate and fixup.
4338 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
4339 for double and vector types. Add support for high precision machines.
4341 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
4342 the reciprocal estimate instructions can be generated.
4343 (TARGET_FRE): Ditto.
4344 (TARGET_FRSQRTES): Ditto.
4345 (TARGET_FRSQRTE): Ditto.
4346 (RS6000_RECIP_*): New macros for reciprocal estimate support.
4348 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
4349 square root estimate on vectors.
4350 (re<mode>2): New insn for reciprocal division estimate on vectors.
4352 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
4354 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
4355 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
4356 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
4357 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
4358 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
4359 (RS6000_BUILTIN_RSQRT): Ditto.
4360 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
4361 floating point builtin.
4363 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4364 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
4365 __RECIP_PRECISION__ based on the command line switches.
4366 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
4368 * config/rs6000/rs6000.opt (-mrecip): Document add support for
4369 replacing division instructions with reciprocal estimate and fixup.
4370 (-mrecip=<opt>): New option.
4371 (-mrecip-precision): Ditto.
4373 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
4374 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
4375 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
4378 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
4379 (UNSPEC_VREFP): Ditto.
4380 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
4381 conterparts with regard to support of -mno-fused-madd and -ffast-math.
4382 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
4383 reciprocal estimate instructions to be generated.
4384 (altivec_vrefp): Ditto.
4386 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
4388 (rreg): New mode attribute for reciprocal estimate support.
4389 (recip<mode>3): New insn for division using reciprocal estimate
4391 (divide define_split): New define_split to convert floating point
4392 division to use reciprocal estimate if the user used the
4393 appropriate options and the split is run when we can add new
4394 pseudo registers for the fixup.
4395 (rsqrt<mode>2): New insn for reciprocal square root support.
4396 (recipsf3): Move into recip<mode>3.
4398 (fres): Use TARGET_FRES.
4399 (rsqrtsf2): Move into rsqrt<mode>2.
4400 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
4401 (copysignsf3): Add support for VSX.
4402 (fred): Use TARGET_FRE.
4404 (rsqrtdf_internal1): New function for frsqrte instruciton.
4406 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
4409 2010-06-03 Richard Guenther <rguenther@suse.de>
4412 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
4413 (set_user_assembler_libfunc): Likewise.
4415 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
4417 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
4419 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
4421 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
4422 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
4423 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
4424 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
4425 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
4426 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
4427 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
4428 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
4429 * defaults.h: Updated for above mentioned changes.
4431 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
4433 * c-common.c: Remove header include of tm_p.h.
4434 * Makefile.in (c-common.o): Remove TM_P_H dependency.
4436 2010-06-02 Jakub Jelinek <jakub@redhat.com>
4438 * tree.h (struct tree_decl_map): New type.
4439 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
4440 (tree_decl_map_hash): New prototype.
4441 (debug_expr_for_decl, value_expr_for_decl): Change into
4442 tree_decl_map hashtab from tree_map.
4443 (init_ttree): Adjust initialization.
4444 (tree_decl_map_hash): New function.
4445 (decl_debug_expr_lookup, decl_debug_expr_insert,
4446 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
4448 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4450 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
4452 * configure: Regenerate.
4453 * config.in: Regenerate.
4455 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
4456 (X86_64_EMULATION): Define.
4457 (TARGET_LD_EMULATION): Use them.
4459 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
4460 (SPARC64_EMULATION): Define.
4461 (LINK_ARCH_SPEC): Use them.
4463 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
4465 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
4466 smallest_mode_for_size for computing the precision types of new
4467 graphite IVs. Do not call lang_hooks.types.type_for_size.
4469 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
4471 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
4473 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
4475 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
4478 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
4479 return false instead.
4481 2010-06-02 Jan Hubicka <jh@suse.cz>
4484 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
4485 create new cgraph node to check callee.
4487 2010-06-02 Richard Guenther <rguenther@suse.de>
4489 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
4491 2010-06-02 Richard Guenther <rguenther@suse.de>
4493 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
4494 (lto_wrapper_cleanup): ... this. Do not exit.
4495 (fatal): Adjust. Exit here.
4496 (fatal_perror): Likewise.
4497 (fatal_signal): New function.
4498 (main): Set up signal handlers to cleanup temporary files.
4499 * Makefile.in (lto-wrapper.o): Adjust dependencies.
4501 2010-06-02 Richard Guenther <rguenther@suse.de>
4503 PR tree-optimization/44377
4504 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
4506 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4508 * config/s390/2097.md (z10_fhex): Remove insn reservation.
4509 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
4510 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
4511 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
4513 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
4515 2010-06-02 Jan Hubicka <jh@suse.cz>
4517 * bitmap.c (bitmap_descriptor): Add search_iter.
4518 (bitmap_find_bit): Increment it.
4519 (print_statistics): Print it.
4521 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
4523 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
4524 instead of gimple_build_call_vec. Delete unnecessary local variable.
4526 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
4528 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
4529 change from yesterday.
4531 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
4533 * c-ada-spec.c: Clean up redundant includes.
4535 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
4537 * gimplify.c: Do not include except.h and optabs.h.
4538 (gimplify_body): Do not initialize RTL profiling.
4539 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
4540 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
4541 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
4542 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
4545 * tree-pretty-print.h: Include pretty-print.h.
4546 * gimple-pretty-print.h: Include pretty-print.h.
4548 * tree-pretty-print.c: Do not include diagnostic.h.
4549 * tree-vrp.c: Likewise.
4550 * tree-tailcall.c: Likewise
4551 * tree-scalar-evolution.c: Likewise
4552 * tree-ssa-dse.c: Likewise
4553 * tree-chrec.c: Likewise
4554 * tree-ssa-sccvn.c: Likewise
4555 * tree-ssa-copyrename.c: Likewise
4556 * tree-nomudflap.c: Likewise
4557 * tree-call-cdce.c: Likewise
4558 * tree-stdarg.c: Likewise
4559 * tree-ssa-math-opts.c: Likewise
4560 * tree-nrv.c: Likewise
4561 * tree-ssa-sink.c: Likewise
4562 * tree-browser.c: Likewise
4563 * tree-ssa-loop-ivcanon.c: Likewise
4564 * tree-ssa-loop.c: Likewise
4565 * tree-parloops.c: Likewise
4566 * tree-ssa-address.c: Likewise
4567 * tree-ssa-ifcombine.c: Likewise
4568 * tree-if-conv.c: Likewise
4569 * tree-data-ref.c: Likewise
4570 * tree-affine.c: Likewise
4571 * tree-ssa-phiopt.c: Likewise
4572 * tree-ssa-coalesce.c: Likewise
4573 * tree-ssa-pre.c: Likewise
4574 * tree-ssa-live.c: Likewise
4575 * tree-predcom.c: Likewise
4576 * tree-ssa-forwprop.c: Likewise
4577 * tree-ssa-dce.c: Likewise
4578 * tree-ssa-ter.c: Likewise
4579 * tree-ssa-loop-prefetch.c: Likewise
4580 * tree-optimize.c: Likewise
4581 * tree-ssa-phiprop.c: Likewise
4582 * tree-object-size.c: Likewise
4583 * tree-outof-ssa.c: Likewise
4584 * tree-ssa-structalias.c: Likewise
4585 * tree-switch-conversion.c: Likewise
4586 * tree-ssa-reassoc.c: Likewise
4587 * tree-ssa-operands.c: Likewise
4588 * tree-vectorizer.c: Likewise
4589 * tree-vect-data-refs.c: Likewise
4590 * tree-vect-generic.c: Likewise
4591 * tree-vect-stmts.c: Likewise
4592 * tree-vect-patterns.c: Likewise
4593 * tree-vect-slp.c: Likewise
4594 * tree-vect-loop.c: Likewise
4595 * tree-ssa-loop-ivopts.c: Likewise
4596 * tree-ssa-loop-im.c: Likewise
4597 * tree-ssa-loop-niter.c: Likewise
4598 * tree-ssa-loop-unswitch.c: Likewise
4599 * tree-ssa-loop-manip.c: Likewise
4600 * tree-ssa-loop-ch.c: Likewise
4601 * tree-dump.c: Likewise
4602 * tree-complex.c: Likewise
4604 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
4605 * tree-ssa-uninit.c: Likewise
4606 * tree-ssa-threadupdate.c: Likewise
4607 * tree-ssa-uncprop.c: Likewise
4608 * tree-ssa-ccp.c: Likewise
4609 * tree-ssa-dom.c: Likewise
4610 * tree-ssa-propagate.c: Likewise
4611 * tree-ssa-alias.c: Likewise
4612 * tree-dfa.c: Likewise
4613 * tree-cfgcleanup.c: Likewise
4614 * tree-sra.c: Likewise
4615 * tree-ssa-copy.c: Likewise
4616 * tree-ssa.c: Likewise
4617 * tree-profile.c: Likewise
4618 * tree-cfg.c: Likewise
4619 * tree-ssa-threadedge.c: Likewise
4620 * tree-vect-loop-manip.c: Likewise
4622 * tree-inline.c: Do not include diagnostic.h and expr.h.
4624 (copy_decl_for_dup_finish): Do not use NULL_RTX.
4626 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
4627 * tree-loop-distribution.c: Likewise.
4629 2010-06-01 Jan Hubicka <jh@suse.cz>
4631 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
4633 2010-06-01 Jan Hubicka <jh@suse.cz>
4635 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
4636 remove return value.
4637 (split_bbs_on_noreturn_calls) .... here.
4638 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
4639 * tree-flow.h (fixup_noreturn_call): New.
4641 2010-06-01 Jan Hubicka <jh@suse.cz>
4643 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
4645 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
4647 * tree.h (build_nt_call_list): Delete.
4648 * tree.c (build_nt_call_list): Delete.
4650 2010-06-01 Jan Hubicka <jh@suse.cz>
4652 * fwprop.c: Make emit-rtl.h include last.
4653 * rtlanal.c: Include emit-rtl.h.
4654 * genautomata.c: Output emit-rtl include into insn-automata.c
4655 * df-scan.c: Include emit-rtl.h.
4656 * haifa-sched.c: Indlude emit-rtl.h.
4657 * mode-switching.c: Indlude emit-rtl.h.
4658 * graph.c: Indlude emit-rtl.h.
4659 * sel-sched.c: Include emit-rtl.h.
4660 * sel-sched-ir.c: Include emit-rtl.h.
4661 * ira-build.c: Include emit-rtl.h.
4662 * emit-rtl.c: (first_insn, last_insn): Remove defines.
4663 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
4665 (set_new_first_and_last_insn, get_last_insn_anywhere,
4666 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
4667 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
4668 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
4669 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
4670 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
4671 Use accessor functions.
4672 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
4673 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
4674 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
4675 mem_expr_equal_p): Move here from rtl.h.
4676 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
4677 Move here from emit-rtl.c; make inline.
4678 * cfglayout.h: Include emit-rtl.h.
4679 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
4680 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
4681 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
4682 mem_expr_equal_p, get_insns, set_first-insn,
4683 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
4684 * reg-stack.c: Include emit-rtl.h.
4687 2010-06-01 Jan Hubicka <jh@suse.cz>
4689 * cgraph.h (tree_function_versioning): Update prototype.
4690 (cgraph_function_versioning): Update prototype.
4691 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
4693 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
4694 (cgraph_materialize_clone, save_inline_function_body): Update use of
4695 tree_function_versioning.
4696 * tree-inline.c (copy_bb): Look for previous copied block to link
4697 after; fix debug output.
4698 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
4699 (copy_body): Likewise.
4700 (expand_call_inline): Update use of copy_body.
4701 (tree_function_versioning): Update use of copy body; accept
4702 blocks_to_copy and new_entry.
4704 2010-06-01 Jan Hubicka <jh@suse.cz>
4706 * gegenrtl.c: Remove unnecesary prototypes.
4708 (gendef): Produce static inline.
4710 (main): Do not decode parameters; generate header only.
4711 * Makefile.in (genrtl.c): Remove.
4713 2010-06-01 Jan Hubicka <jh@suse.cz>
4715 * tree-switch-conversion.c (build_one_array): Make it readonly.
4717 2010-06-01 Richard Guenther <rguenther@suse.de>
4719 * optabs.c (init_optabs): Guard all accesses to reinit.
4720 * ipa-pure-const.c (propagate): Fix another typo.
4721 * opts.c (common_handle_option): Split assignment to bool.
4722 * c-opts.c (c_common_handle_option): Likewise.
4724 2010-06-01 Arnaud Charlet <charlet@adacore.com>
4725 Matthew Gingell <gingell@adacore.com>
4727 * doc/invoke.texi: Mention -fdump-ada-spec.
4728 * tree-dump.c (dump_files): Add ada-spec.
4729 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
4730 * tree-pass.h (tree_dump_index): Add TDI_ada.
4731 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
4732 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
4733 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
4734 * c-decl.c: Include c-ada-spec.h.
4735 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
4737 (c_write_global_declarations): Add handling of -fdump-ada-spec.
4738 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
4739 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
4740 * c-ada-spec.h, c-ada-spec.c: New files.
4742 2010-06-01 Richard Guenther <rguenther@suse.de>
4745 * ipa-pure-const.c (get_function_state): Hand back varying state
4746 if we do not have one.
4747 (has_function_state): New function.
4748 (duplicate_node_data): Adjust.
4749 (remove_node_data): Likewise.
4750 (pure_const_write_summary): Likewise.
4751 (propagate): Likewise. Fix typo.
4753 2010-06-01 Jan Hubicka <jh@suse.cz>
4755 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
4756 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
4757 (execute_all_ipa_transforms): Do not play with the states.
4759 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
4761 * config/arm/t-linux-androideabi: New.
4762 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
4764 2010-06-01 Jan Hubicka <jh@suse.cz>
4766 * tree-inline.c (estimate_num_insns): For stdarg functions look
4767 into call statement to count cost of argument passing.
4769 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
4771 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
4772 argument for fprintf.
4773 (ix86_output_addr_diff_elt): Likewise.
4774 (x86_function_profiler): Likewise.
4775 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
4776 (LPREFIX): Likewise.
4777 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4779 2010-05-31 Jakub Jelinek <jakub@redhat.com>
4782 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
4783 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
4784 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
4785 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
4786 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
4787 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
4788 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
4789 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
4792 2010-05-31 Jan Hubicka <jh@suse.cz>
4794 * tree.h (tree_range_check_failed): Declare noreturn.
4796 2010-05-31 Jan Hubicka <jh@suse.cz>
4798 * gimple.c (gimple_call_builtin_p): New function.
4799 * gimple.h (gimple_call_builtin_p): Declare.
4800 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
4802 (execute_warn_function_return): BUILT_IN_RETURN is return.
4803 (split_critical_edges): Return edges are not critical.
4804 (is_ctrl_altering_stmt): Builtin_in_return is altering.
4805 (gimple_verify_flow_info): Handle built_in_return.
4806 (execute_warn_function_return): Handle built_in_return.
4807 * ipa-pure-const.c (check_call): Ignore builtin_return.
4809 2010-05-31 Jakub Jelinek <jakub@redhat.com>
4812 * expr.c (expand_assignment): Don't store anything for out-of-bounds
4813 array accesses with non-MEM.
4815 PR tree-optimization/44182
4816 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
4817 newly needs to end a bb is followed by debug stmts, instead return
4818 true from the function at the end.
4819 (maybe_move_debug_stmts_to_successors): New function.
4820 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
4822 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
4825 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
4827 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
4829 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
4830 for nested functions in non-optimized compilation.
4832 2010-05-31 Richard Guenther <rguenther@suse.de>
4834 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
4836 2010-05-30 Jan Hubicka <jh@suse.cz>
4838 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
4840 2010-05-30 Richard Guenther <rguenther@suse.de>
4843 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
4844 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
4847 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
4849 * config/darwin.c (output_objc_section_asm_op): Add comment.
4850 (name_needs_quotes): Add '_' to list of valid comment chars.
4851 (machopic_output_function_base_name): Remove unneeded quotes.
4852 (darwin_encode_section_info): Adjust asm whitespace.
4853 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
4854 (ASM_OUTPUT_LOCAL): Ditto.
4855 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
4856 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
4857 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
4859 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
4861 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
4862 RS6000_OUTPUT_BASENAME unconditionally.
4863 (rs6000_output_function_epilogue): Likewise.
4865 2010-05-30 Jan Hubicka <jh@suse.cz>
4867 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
4870 2010-05-30 Richard Guenther <rguenther@suse.de>
4872 * tree-cfg.c (verify_gimple_assign_single): Implement
4873 verification for COND_EXPR rhs.
4875 2010-05-30 Jan Hubicka <jh@suse.cz>
4877 * cgraph.h (cgraph_dump_file): Declare.
4878 * cgraphunit.c (cgraph_dump_file): Export.
4879 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
4881 2010-05-30 Jan Hubicka <jh@suse.cz>
4883 * dwarf2out.c (reference_to_unused,
4884 premark_types_used_by_global_vars_helper): Avoid creation of new
4887 2010-05-30 Jan Hubicka <jh@suse.cz>
4889 * cgraph.h (cgraph_node_cannot_return,
4890 cgraph_edge_cannot_lead_to_return): New functions.
4891 * cgraph.c (cgraph_node_cannot_return,
4892 cgraph_edge_cannot_lead_to_return): Use them.
4893 * ipa-pure-const.c (pure_const_names): New static var.
4894 (check_call): Handle calls not leading to return.
4895 (pure_const_read_summary): Dump info read.
4896 (propagate): Dump info about propagation process; ignore side effects
4897 of functions not leading to exit; fix handling of pure functions.
4899 2010-05-30 Jan Hubicka <jh@suse.cz>
4901 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
4902 for tail call epilogues.
4904 2010-05-30 Jan Hubicka <jh@suse.cz>
4906 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
4907 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
4910 2010-05-29 Jan Hubicka <jh@suse.cz>
4912 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
4913 node; remove references in node we no longer keep in cgrpah but need
4916 2010-05-29 Jan Hubicka <jh@suse.cz>
4918 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
4920 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4923 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
4925 2010-05-29 Jan Hubicka <jh@suse.cz>
4927 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
4928 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
4929 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
4930 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
4931 debug_names_replaced_by, debug_update_ssa): Likewise.
4932 * sbitmap.c (debug_sbitmap): Likewise.
4933 * genrecog.c (debug_decision, debug_decision_list): Likewise.
4934 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
4935 debug_tree_chain): Likewise.
4936 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
4937 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
4938 * optabs.c (debug_optab_libfuncs): Likewise.
4939 (verify_loop_closed_ssa): Likewise.
4940 * value-prof.c (verify_histograms): Likewise.
4941 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
4942 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
4943 * cfghooks.c (verify_flow_info): Likewise.
4944 * fold-const.c (debug_fold_checksum): Likewise.
4945 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
4946 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
4948 * omega.c (debug_omega_problem): Likewise.
4949 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
4950 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
4951 * dominance.c (verify_dominators, debug_dominance_info,
4952 debug_dominance_tree): Likewise.
4953 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
4954 * df_regno_debug, df_ref_debug,
4955 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
4956 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
4957 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
4958 * sel-sched.c (debug_state): Likewise.
4959 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
4961 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
4962 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
4963 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
4964 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
4966 * c-pretty-print.c (debug_c_tree): Likewise.
4967 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
4968 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
4969 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
4970 * ebitmap.c (debug_ebitmap): Likewise.
4971 * function.c (debug_find_var_in_block_tree): Likewise.
4972 * print-rtl.c (debug_rtx): Likewise.
4973 (debug_rtx_count): Likewise.
4974 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
4975 * stor-layout.c (debug_rli): Likewise.
4976 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
4977 * tree-data-ref.c (debug_data_references,
4978 debug_data_dependence_relations, debug_data_reference,
4979 debug_data_dependence_relation, debug_rdg_vertex,
4980 debug_rdg_component, debug_rdg): Likewise.
4981 * tree-affine.c (debug_aff): Likewise.
4982 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
4984 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
4985 * emit-rtl.c (verify_rtl_sharing): Likewise.
4986 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
4987 debug_value_expressions): Likewise.
4988 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
4989 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
4990 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
4991 * cfglayout.c (verify_insn_chain): Likewise.
4992 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
4993 debug_clast_stmt, debug_generated_program): Likewise.
4994 * ggc-page.c (debug_print_page_list): Likewise.
4995 * tree-ssa-ter.c (debug_ter): Likewise.
4996 * graphite-dependences.c (debug_pddr): Likewise.
4997 * sched-deps.c (debug_ds): Likewise.
4998 * tree-ssa.c (verify_ssa): Likewise.
4999 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
5000 debug_scattering_functions, debug_iteration_domains, debug_pdr,
5001 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
5002 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
5003 * tree-inline.c (debug_find_tree): Likewise.
5004 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
5005 debug_ppl_powerset_matrix): Likewise.
5006 * var-tracking.c (debug_dv): Likewise.
5007 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
5008 * cfgloop.c (verify_loop_structure): Likewise.
5009 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
5010 * c-common.c (verify_sequence_points): Likewise.
5011 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
5012 debug_candidates, debug_rgn_dependencies): Likewise.
5013 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
5014 * debug_constraint_graph, debug_solution_for_var,
5015 debug_sa_points_to_info): Likewise.
5016 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
5018 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
5019 debug_loops, debug_loop, debug_loop_num): Likewise.
5020 * passes.c (debug_pass): Likewise.
5021 (dump_properties): Likewise; add cfglayout property.
5022 (debug_properties): Likewise.
5023 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
5024 * varpool.c (debug_varpool): Likewise.
5025 * regcprop.c (debug_value_data): Likewise.
5026 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
5027 debug_immediate_uses_for): Likewise.
5029 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
5032 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
5033 Filter out insn-flags.h.
5035 2010-05-29 Jan Hubicka <jh@suse.cz>
5037 * cgraph.h (struct varpool_node_set_def,
5038 struct cgraph_node_set_def): Remove unused AUX pointer.
5039 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
5042 2010-05-29 Jan Hubicka <jh@suse.cz>
5045 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
5047 2010-05-29 Richard Guenther <rguenther@suse.de>
5049 * lto-streamer.c (cached_bp): New global variable.
5050 (bitpack_create): Return the cached bitpack, if available.
5051 (bitpack_delete): Clear and cache the bitpack, if appropriate.
5052 (bp_pack_value): Remove redundant asserts.
5054 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
5057 * tree-if-conv.c (is_true_predicate): New.
5058 (is_predicated): Use is_true_predicate.
5059 (add_to_predicate_list): Same. Do not use unshare_expr.
5060 (add_to_dst_predicate_list): Same.
5062 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
5064 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
5066 (predicate_bbs): Same.
5067 (clean_predicate_lists): Same.
5068 (find_phi_replacement_condition): Do not AND the predicate from
5071 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
5074 * Makefile.in (build/gencondmd.o): Add a missing `\'.
5076 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5079 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
5080 (negdf2): Adjust expander pattern and use negdf2_slow.
5083 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
5085 * basic-block.h (struct control_flow_graph): Move last_label_uid field
5087 * df.h (struct df_base_ref): Move regno field up.
5088 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
5089 * expr.h (struct separate_ops): Move location field up.
5090 * optabs.h (struct optab_d): Move libcall_basename field down.
5091 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
5092 * config/i386/i386.h (struct machine_function): Convert call_abi field
5093 into a bitfield. Move cfa field to the end of the structure.
5095 2010-05-29 Jan Hubicka <jh@suse.cz>
5097 * varpool.c (varpool_get_node): Fix lookup.
5099 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
5101 * config/spu/spu-protos.h: Do not include rtl.h. Protect
5102 RTL specific prototypes with #ifdef RTX_CODE.
5103 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
5104 * config/spu/t-spu-elf: Fix dependencies.
5106 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
5108 2010-05-29 Mike Stump <mikestump@comcast.net>
5111 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
5112 TM_H when building to avoid dependency loops.
5114 2010-05-29 Jan Hubicka <jh@suse.cz>
5116 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
5117 refs and body; not the whole node for masters of materialized clones.
5119 2010-05-29 Mike Stump <mikestump@comcast.net>
5121 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
5123 2010-05-29 Jan Hubicka <jh@suse.cz>
5125 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
5126 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
5127 use of clone_function_name.
5128 * cgraph.h (cgraph_create_virtual_clone,
5129 cgraph_function_versioning): update prototypes.
5130 (clone_function_name): Declare.
5131 * ipa-cp.c (ipcp_insert_stage): Update call of
5132 cgraph_create_virtual_clone.
5133 * omp-low.c (create_omp_child_function_name): Use
5134 cgraph_create_virtual_clone.
5135 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
5136 (cgraph_function_versioning): Take SUFFIX argument; produce new name
5137 and make decl local.
5139 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
5141 * vec.h: Include statistics.h
5142 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
5145 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
5147 * c-lex.c: Do not include c-tree.h.
5148 * c-pretty-print.c: Likewise.
5149 * c-opts.c: Likewise.
5150 * c-gimplify.c: Likewise.
5151 * c-common.c: Likewise.
5152 * c-dump.c: Likewise. Include c-common.h.
5154 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
5156 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
5157 before including diagnostic-core.h.
5158 (c_cpp_error): New prototype moved from c-tree.h.
5159 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
5160 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
5161 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
5162 (c_cpp_error): Prototype moved to c-common.h.
5163 * Makefile.in: Update dependency for C_COMMON_H.
5165 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
5167 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
5168 * c-common.c (c_register_addr_space): Remove here.
5169 * c-decl.c (c_register_addr_space): Re-add here.
5171 2010-05-28 Mike Stump <mikestump@comcast.net>
5173 * config/darwin-c.c: Remove c-tree.h include.
5175 2010-05-28 Joseph Myers <joseph@codesourcery.com>
5177 * gcc.c: Include diagnostic.h.
5178 (error_count): Remove. All users changed to use errorcount.
5179 (programname): Remove. All users changed to use progname.
5180 (fancy_abort, internal_error, fatal_error, error, warning, inform,
5182 (execute): Don't include "Internal error" and bug reporting
5183 information in argument of internal_error call.
5184 (process_command): Don't increment error_count after calling
5186 (input_filename): Rename to gcc_input_filename. All users
5188 (main): Call diagnostic_initialize. Register delete_temp_files
5189 with atexit. Use seen_error to test for errors.
5190 * gcc.h: Include diagnostic-core.h.
5191 (fatal_error, error, warning): Remove.
5192 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
5193 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
5194 (gcc.o): Update dependencies.
5196 2010-05-28 Jeff Law <law@redhat.com>
5198 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
5200 * ira.h (ira_bad_reload_regno): Declare
5201 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
5203 * ira-color.c (update_curr_costs): Free updated hard reg costs.
5204 (ira_reassign_conflict_allocnos): Remove bogus asserts.
5205 (allocno_reload_assign): Likewise.
5207 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
5209 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
5212 2010-05-28 Richard Guenther <rguenther@suse.de>
5215 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
5216 Stream fixed-point constants mode.
5217 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
5219 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
5220 Stream fixed-point constants mode.
5221 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
5224 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
5226 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
5227 only place it was called from.
5228 (number_of_latch_executions): Do not return chrec_dont_know when the
5229 may_be_zero is a runtime condition: instead, return a COND_EXPR
5230 including the may_be_zero condition.
5231 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
5233 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
5236 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
5238 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
5239 generate COND_EXPRs for degenerate_phi_result.
5241 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
5244 * tree-if-conv.c (if_convertible_loop_p): Check the
5245 if-convertibility of phi nodes in non predicated BBs.
5247 2010-05-28 Joseph Myers <joseph@codesourcery.com>
5249 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
5251 2010-05-28 Joseph Myers <joseph@codesourcery.com>
5254 * gcc.c (inform, warning, inform): New functions.
5255 (fatal_ice): Rename to internal_error; change cmsgid parameter to
5256 gmsgid. All callers changed.
5257 (notice): Rename to fnotice; add parameter fp. All callers changed.
5258 (fatal_error): Rename to fatal_signal. All users changed.
5259 (fatal): Rename to fatal_error; change cmsgid parameter to
5260 gmsgid. All callers changed.
5261 (process_command): Use warning instead of error for warnings.
5262 (end_going_arg): Don't use _() around argument of error.
5263 (do_spec_1): Use inform for message from %n specs. Use warning
5264 instead of error for warnings.
5265 (main): Use inform for comparison messages. Use warning for
5266 message about unused linker input.
5267 (error): Increment error_count. Print "error: ".
5268 * gcc.h (fatal): Change to fatal_error.
5270 * config/darwin-driver.c (darwin_default_min_version): Use warning
5271 instead of fprintf for warnings.
5272 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
5274 2010-05-28 Julian Brown <julian@codesourcery.com>
5276 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
5277 (*thumb2_addsi3_compare0_scratch): New.
5278 * config/arm/constraints.md (Pv): New.
5279 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
5281 (*addsi3_compare0_scratch): Likewise.
5283 2010-05-28 Jan Hubicka <jh@suse.cz>
5285 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
5287 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
5288 only on local statics.
5290 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
5292 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
5294 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
5297 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
5298 (OPTION_GLIBC): Define.
5300 2010-05-28 Jakub Jelinek <jakub@redhat.com>
5303 * dwarf2out.c (double_int_type_size_in_bits): New function.
5304 (round_up_to_align): Change first argument and return value to
5306 (field_byte_offset): Work internally on double_ints.
5309 * builtins.c (expand_movstr): Use a temporary pseudo instead
5310 of target even when target is not NULL and not const0_rtx, but
5311 fails movstr predicate.
5312 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
5314 2010-05-28 Joseph Myers <joseph@codesourcery.com>
5316 * final.c (rest_of_clean_state): Use %m in errors instead of
5318 * gengtype.c (read_input_list, close_output_files): Use xstrerror
5319 instead of strerror.
5320 * toplev.c (process_options): Use %m in errors instead of strerror
5322 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
5325 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
5327 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
5328 (ix86_canonical_va_list_type): Make static. Add declaration.
5329 (ix86_enum_va_list): Make static. Reindent.
5330 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
5331 (ix86_canonical_va_list_type): Ditto.
5332 (ix86_enum_va_list): Ditto.
5334 2010-05-28 Richard Guenther <rguenther@suse.de>
5336 * lto-wrapper.c (run_gcc): With -save-temps generate a
5337 user-visible ltrans filename. Fixup ltrans unit numbering.
5339 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
5341 * c-common.c (c_common_nodes_and_builtins): Replace use
5342 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
5343 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
5344 to ix86_enum_va_list.
5345 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
5346 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
5347 (TARGET_ENUM_VA_LIST_P): Add hook description.
5348 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
5349 * target.h (gcc_target): Add enum_va_list hook.
5352 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
5353 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
5354 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
5356 2010-05-28 Alan Modra <amodra@gmail.com>
5359 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
5360 emit_library_call machinery to set up __tls_get_addr calls.
5362 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5364 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
5366 2010-05-28 Dodji Seketeli <dodji@redhat.com>
5368 Revert fix for PR c++/44188
5369 * c-common.c (is_typedef_decl): Revert the moving of this
5371 * tree.c (is_typedef_decl): ... here.
5372 (typdef_variant_p): Revert the moving of this definition
5373 here from gcc/cp/tree.c.
5374 * c-common.h (is_typedef_decl): Revert the moving of this
5376 * tree.h (is_typedef_decl): ... here.
5377 (typedef_variant_p): Revert the moving of this declaration here
5378 from gcc/cp/cp-tree.h
5379 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
5380 (gen_tagged_type_die): Revert the splitting out of ...
5381 (gen_type_die_with_usage): ... this function. Revert the anonymous
5382 tagged type handling.
5383 (gen_typedef_die): Revert emitting DW_TAG_typedef for
5384 typedefs naming anonymous tagged types.
5386 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
5388 * config/rs6000/rs6000-modes.def (PSImode): Delete.
5390 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
5392 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
5393 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
5395 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
5397 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
5398 XER_REGS to CA_REGS throughout.
5399 * config/rs6000/rs6000.h: Same.
5400 (ADDITIONAL_REGISTER_NAMES): Add "xer".
5401 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
5402 that mode_iterator "P" is the size for arithmetic carries as well.
5403 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
5405 2010-05-28 Jakub Jelinek <jakub@redhat.com>
5408 * combine.c (struct rtx_subst_pair): Define unconditionally.
5409 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
5410 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
5411 Call make_compound_operation on pair->to.
5412 (propagate_for_debug): Don't call make_compound_operation here.
5413 Always use simplify_replace_fn_rtx.
5415 2010-05-27 Sterling Augustine <sterling@tensilica.com>
5417 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
5418 * config/xtensa/xtensa.c (override_options): Check
5419 TARGET_FORCE_NO_PIC and set flag_pic.
5420 * config/xtensa/xtensa.opt: Document -mforce-no-pic
5422 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
5425 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
5426 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
5428 2010-05-27 Joseph Myers <joseph@codesourcery.com>
5430 * diagnostic-core.h: New. Contents moved from diagnostic.h and
5432 * diagnostic.c: Don't include toplev.h.
5433 (progname): Define. Moved from toplev.c.
5434 (seen_error): New function.
5435 * diagnostic.h: Include diagnostic-core.h.
5436 (diagnostic_t, emit_diagnostic): Don't declare here.
5437 * toplev.c (progname): Move to toplev.c.
5438 (emit_debug_global_declarations, compile_file, finalize,
5439 do_compile, toplev_main): Use seen_error.
5440 * toplev.h: Include diagnostic-core.h.
5441 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
5442 internal_error, warning, warning_at, error, error_n, error_at,
5443 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
5444 verbatim, fnotice, progname): Move to diagnostic-core.h.
5445 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
5446 (expand_builtin_expect): Use seen_error.
5447 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
5448 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
5449 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
5450 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
5451 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
5452 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
5453 errorcount for errors.
5454 * c-opts.c (c_common_finish): Use seen_error.
5455 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
5456 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
5457 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
5458 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
5459 (get_coverage_counts): Use seen_error.
5460 * dwarf2out.c (dwarf2out_finish): Use seen_error.
5461 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
5462 gimplify_body): Use seen_error.
5463 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
5464 * ipa-pure-const.c (gate_pure_const): Use seen_error.
5465 * ipa-reference.c (gate_reference): Use seen_error.
5466 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
5467 * lambda-code.c: Include diagnostic-core.h instead of
5469 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
5470 * lto-compress.c: Include diagnostic-core.h instead of
5472 * lto-section-in.c: Include diagnostic-core.h instead of
5474 * lto-streamer-out.c: Include diagnostic-core.h instead of
5476 * lto-streamer.c: Include diagnostic-core.h instead of
5478 (gate_lto_out): Use seen_error.
5479 * matrix-reorg.c: Include diagnostic-core.h instead of
5481 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
5482 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
5483 (gate_expand_omp, lower_omp_1): Use seen_error.
5484 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
5485 (rest_of_decl_compilation, rest_of_type_compilation,
5486 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
5487 * tree-cfg.c (label_to_block_fn): Use seen_error.
5488 * tree-inline.c (optimize_inline_calls): Use seen_error.
5489 * tree-mudflap.c (mudflap_finish_file): Use
5491 * tree-optimize.c (gate_all_optimizations,
5492 gate_all_early_local_passes, gate_all_early_optimizations): Use
5494 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
5495 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
5496 (varpool_remove_unreferenced_decls,
5497 varpool_assemble_pending_decls): Use seen_error.
5498 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
5499 (TOPLEV_H, DIAGNOSTIC_H): Update.
5500 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
5501 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
5502 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
5503 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
5504 coverage.o, lambda-code.o): Update dependencies.
5506 2010-05-25 Dodji Seketeli <dodji@redhat.com>
5509 * c-common.c (is_typedef_decl): Move this definition ...
5510 * tree.c (is_typedef_decl): ... here.
5511 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
5512 * c-common.h (is_typedef_decl): Move this declaration ...
5513 * tree.h (is_typedef_decl): ... here.
5514 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
5515 * dwarf2out.c (is_naming_typedef_decl): New function.
5516 (gen_tagged_type_die): Split out of ...
5517 (gen_type_die_with_usage): ... this function. When an anonymous
5518 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
5519 is emitted for the typedef.
5520 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
5521 anonymous tagged types.
5523 2010-05-27 Jason Merrill <jason@redhat.com>
5525 * print-tree.c (debug_vec_tree): New fn.
5526 (print_vec_tree): New fn.
5527 * tree.h: Declare them.
5528 * gdbinit.in (pvt): New command.
5530 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
5532 * gdbinit.in (pdd): New command.
5534 2010-05-27 Jan Hubicka <jh@suse.cz>
5536 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
5537 (update_caller_keys): Return early if there are no callers;
5538 only update fibheap when decresing the key.
5539 (update_callee_keys): Avoid recursion.
5540 (decide_inlining_of_small_functions): When badness does not match;
5541 re-insert into fibheap.
5543 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
5545 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
5546 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
5547 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
5548 (ALL_HOST_OBJS): Now a union of the above two.
5549 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
5550 all files in ALL_HOST_FRONTEND_OBJS.
5551 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
5553 * c-common.c: Pretend to be a backend file by undefining
5554 IN_GCC_FRONTEND (still need rtl.h here).
5556 2010-05-27 Jan Hubicka <jh@suse.cz>
5558 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
5559 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
5561 2010-05-27 Jan Hubicka <jh@suse.cz>
5563 * sched-ebb.c: Rename struct deps to struct deps_desc.
5565 * sel-sched-ir.c: Likewise.
5566 * sched-deps.c: Likewise.
5567 * sched-int.h: Likewise.
5568 * sched-rgn.c: Likewise.
5570 2010-05-27 Jon Beniston <jon@beniston.com>
5573 * config/lm32/lm32.h: Remove definition of
5574 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
5576 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
5579 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
5581 2010-05-27 Richard Guenther <rguenther@suse.de>
5583 PR tree-optimization/44284
5584 * tree-vect-stmts.c (vectorizable_assignment): Handle
5585 sign-changing conversions as simple copy.
5587 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
5589 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
5591 (__gthread_active_p): Check for pthread_create if compiling against
5594 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
5596 Support compilation for Android platform. Reimplement -mandroid.
5598 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
5599 (*android*): Set ANDROID_DEFAULT.
5600 (arm*-*-linux*): Include linux-android.h.
5601 (arm*-*-eabi*): Don't include previous -mandroid implementation.
5602 * config/arm/eabi.h: Remove, move Android-specific parts ...
5603 * config/linux-android.h: ... here. New file.
5604 * config/arm/eabi.opt: Rename to ...
5605 * config/linux-android.opt: ... this.
5606 (mandroid): Allow -mno-android option. Initialize based on
5608 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
5609 Move logic to corresponding LINUX_TARGET_* macros.
5610 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
5611 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
5612 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
5613 Android definitions.
5614 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
5615 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
5618 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
5620 Add support for Bionic C library
5622 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
5624 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
5625 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
5627 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
5628 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
5629 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
5630 to support multiple C libraries. Handle Bionic.
5631 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
5632 (BIONIC_DYNAMIC_LINKER64): Define.
5633 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
5635 (TARGET_HAS_SINCOS): Enable for Bionic.
5637 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
5638 the last option specified on command line take effect.
5639 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
5641 (mglibc, muclibc): Update.
5643 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
5644 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
5647 * doc/invoke.texi (-mglibc, -muclibc): Update.
5648 (-mbionic): Document.
5650 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5652 * c-common.h (c_register_addr_space): Add prototype.
5653 (ADDR_SPACE_KEYWORD): Remove.
5654 * c-common.c (c_register_addr_space): New function.
5655 (c_addr_space_name): Reimplement.
5656 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
5658 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
5659 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
5661 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
5662 Remove TARGET_ADDR_SPACE_KEYWORDS.
5664 2010-05-27 Joseph Myers <joseph@codesourcery.com>
5666 * input.c: New file.
5667 * input.h (main_input_filename): Move declaration to toplev.h.
5668 * toplev.c (input_location, line_table): Move to input.c
5669 * toplev.h (main_input_filename): Move declaration from input.h.
5670 * tree.c (expand_location): Move to input.c.
5671 * Makefile.in (OBJS-common): Add input.o.
5672 (input.o): Add dependencies.
5674 2010-05-27 Richard Guenther <rguenther@suse.de>
5676 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
5677 for non-existant files.
5678 (fork_execute): Mark args_name file as deleted.
5680 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
5683 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
5684 (narrow_signed_type): Likewise.
5686 2010-05-26 Jan Hubicka <jh@suse.cz>
5688 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
5689 edge only when checking is enabled; check using former_clone_of;
5690 check inline clones too.
5691 (cgraph_materialize_clone): Record former_clone_of pointer.
5692 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
5693 combining redirections; dump args_to_skip bitmap
5694 (cgraph_materialize_all_clones): Do no redirection here.
5695 * ipa-inline.c (inline_transform): Do redirection here.
5696 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
5699 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5701 * config/avr/avr-c.c: Do not include regs.h.
5702 Include cpplib.h for cpp_define and tree.h for c-common.h.
5703 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
5704 * config/avr/t-avr: Fix dependencies for avr-c.o.
5706 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5708 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
5709 string instead of SYMBOL_REF rtx.
5710 * rtl.h (set_stack_check_libfunc): Move prototype from here...
5711 * libfuncs.h: ...to here. Adjust for explow.c change.
5713 2010-05-26 Joseph Myers <joseph@codesourcery.com>
5715 * pretty-print.c: Don't include ggc.h.
5716 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
5717 (identifier_to_locale): Use them for allocation.
5718 * pretty-print.h (identifier_to_locale_alloc,
5719 identifier_to_locale_free): Declare.
5720 * toplev.c (alloc_for_identifier_to_locale): New.
5721 (general_init): Set identifier_to_locale_alloc and
5722 identifier_to_locale_free.
5723 * Makefile.in (pretty-print.o): Update dependencies.
5725 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
5727 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
5728 pointer types if they have different alignment or mode.
5730 2010-05-26 Anatoly Sokolov <aesok@post.ru>
5732 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5733 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5734 * config/sparc/sparc-protos.h (function_value): Remove declaration.
5735 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
5736 sparc_function_value_regno_p): New functions.
5737 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5738 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5739 (function_value): Rename to...
5740 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
5741 argument to 'outgoing'.
5742 (function_arg_record_value, function_arg_union_value,
5743 function_arg_vector_value): Update comment.
5745 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
5747 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
5748 (fde_needed_for_eh_p): New predicate.
5749 (output_call_frame_info): Use it throughout to decide whether FDEs
5750 are needed for EH purpose.
5751 (dwarf2out_begin_prologue): Reorder assignments.
5753 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5755 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
5756 special case loop->header.
5757 (is_predicated): New.
5758 (if_convertible_loop_p): Call it.
5760 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5762 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
5763 iterator in parameter. Do not generate code during the analysis.
5764 (tree_if_convert_cond_stmt): Removed.
5765 (tree_if_convert_stmt): Removed.
5766 (predicate_bbs): New.
5767 (if_convertible_loop_p): Call predicate_bbs.
5768 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
5769 now contains all the analysis part.
5771 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5773 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
5774 statements in the analysis part.
5775 (tree_if_convert_stmt): Update comment.
5776 (remove_conditions_and_labels): New.
5777 (combine_blocks): Call remove_conditions_and_labels.
5778 (tree_if_conversion): Update comment.
5780 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5782 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
5783 than 2 predecessors or more than 2 successors.
5785 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5787 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
5788 of loops in which the data dependence analysis fails.
5790 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5792 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
5793 CDI_POST_DOMINATORS.
5794 (tree_if_conversion): Same.
5796 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5798 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
5800 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5802 * tree-if-conv.c: Update copyright years. Fix comments.
5805 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
5807 * builtin-types.def (BT_INT128): New primitive type.
5808 (BT_UINT128): Likewise.
5809 * c-common.c (c_common_r): Add __int128 keyword.
5810 (c_common_type_for_size): Handle __int128.
5811 (c_common_type_for_mode): Likewise.
5812 (c_common_signed_or_unsigned_type): Likewise.
5813 (c_common_nodes_and_builtins): Add builtin type
5814 if target supports 128-bit integer scalar.
5815 * c-common.h (enum rid): Add RID_INT128.
5816 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
5817 if target supports 128-bit integer scalar.
5818 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
5819 (finish_declspecs): Likewise.
5820 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
5821 (c_token_starts_declspecs): Likewise.
5822 (c_parser_declspecs): Likewise.
5823 (c_parser_attributes): Likewise.
5824 (c_parser_objc_selector): Likewise.
5825 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
5826 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
5827 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
5828 * tree.c (make_or_reuse_type): Likewise.
5829 (make_unsigned_type): Likewise.
5830 (build_common_tree_nodes_2): Likewise.
5831 * tree.h (enum integer_type_kind): Add itk_int128 and
5832 itk_unsigned_int128.
5833 (int128_integer_type_node): New define.
5834 (int128_unsigned_type_node): New define.
5835 * doc/extend.texi: Add documentation about __int128 type.
5837 2010-05-26 Richard Guenther <rguenther@suse.de>
5839 * tree-ssa-sccvn.c (copy_nary): Adjust.
5840 (copy_phis): Rename to ...
5841 (copy_phi): ... this. Adjust.
5842 (copy_references): Rename to ...
5843 (copy_reference): ... this. Adjust.
5844 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
5845 result into the valid table.
5847 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5849 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
5850 insn-config.h, insn-codes.h, recog.h, and optabs.h.
5852 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5854 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
5856 2010-05-26 Richard Guenther <rguenther@suse.de>
5858 * opts.c (common_handle_option): Handle OPT_Ofast.
5860 2010-05-26 Joseph Myers <joseph@codesourcery.com>
5862 * diagnostic.c: Don't include opts.h.
5863 (permissive_error_option): Define.
5864 (diagnostic_initialize): Take n_opts parameter. Allocate memory
5865 for classify_diagnostic. Don't use memset for
5866 classify_diagnostic. Initialize new and recently added fields.
5867 (diagnostic_classify_diagnostic): Use context->n_opts instead of
5869 (diagnostic_report_diagnostic): Pass context parameter to
5870 diagnostic_report_warnings_p. Use option_enabled and option_name
5872 (emit_diagnostic): Use permissive_error_option.
5873 (permerror): Likewise.
5874 * diagnostic.h: Don't include options.h.
5875 (struct diagnostic_context): Add n_opts, opt_permissive,
5876 inhibit_warnings, warn_system_headers, option_enabled and
5877 option_name fields. Change classify_diagnostic to a pointer.
5878 * opts-diagnostic.h: New file.
5879 * opts.c: Include opts-diagnostic.h.
5880 (common_handle_option): Set global_dc fields for -Wfatal-errors,
5881 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
5882 (option_name): New function.
5883 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
5884 (c_common_handle_option): Set global_dc->permissive for
5886 * c-common.c (c_cpp_error): Save and restore
5887 global_dc->warn_system_headers, not variable warn_system_headers.
5888 * toplev.c: Include opts-diagnostic.h.
5889 (general_init): Update call to diagnostic_initialize. Set
5890 global_dc->show_column, global_dc->option_enabled and
5891 global_dc->option_name.
5892 (process_options): Don't set global_dc fields here.
5893 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
5894 (diagnostic.o, opts.o, toplev.o): Update dependencies.
5896 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
5898 * config/picochip/picochip.md (movsi): Split a movsi from a
5901 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5903 * ggc-zone.c: Update copyright year.
5904 (poison_region): Mark memory for Valgrind as undefined before
5905 memset () call and inaccessible afterwards.
5906 (ggc_pch_total_size): Change type of i to int.
5908 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5910 * ggc-common.c (ggc_free_overhead): Allow empty slot.
5912 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5914 * ggc-common.c: Update copyright year.
5915 (ggc_rlimit_bound): Remove prototype. Compile only if
5916 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
5917 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
5918 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
5919 (ggc_min_heapsize_heuristic): Likewise.
5921 2010-05-26 Richard Guenther <rguenther@suse.de>
5923 PR rtl-optimization/44164
5924 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
5925 no-common access-path disambiguation.
5926 (indirect_ref_may_alias_decl_p): Adjust.
5927 (indirect_refs_may_alias_p): Likewise.
5928 (refs_may_alias_p_1): Likewise.
5930 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5932 * c-typeck.c: Do not include expr.h.
5934 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5936 * rtl.h (decl_default_tls_model): Move prototype from here...
5937 * output.h: ...to here.
5938 * c-decl.c: Do not include rtl.h.
5939 * c-pragma.c: Likewise.
5940 * c-parser.c: Likewise.
5941 * c-gimplify.c: Likewise. And also not hard-reg-set.
5942 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
5943 FIXME note for it. Add a FIXME note for expr.h.
5944 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
5945 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
5948 2010-05-26 Jakub Jelinek <jakub@redhat.com>
5951 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
5952 or total_size is larger than red zone size for non-V4 ABI, emit a
5953 stack_tie resp. frame_tie insn before stack pointer restore.
5954 * config/rs6000/rs6000.md (frame_tie): New insn.
5956 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
5958 * function.h (struct function): Add can_throw_non_call_exceptions bit.
5959 * lto-streamer-in.c (input_function): Stream it in.
5960 * lto-streamer-out.c (output_function): Stream it out.
5961 * function.c (allocate_struct_function): Set it.
5962 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
5963 for flag_non_call_exceptions.
5964 * cfgbuild.c (control_flow_insn_p): Likewise.
5965 (make_edges): Likewise.
5966 * cfgexpand.c (expand_stack_alignment): Likewise.
5967 * combine.c (distribute_notes): Likewise.
5968 * cse.c (cse_extended_basic_block): Likewise.
5969 * except.c (insn_could_throw_p): Likewise.
5970 * gcse.c (simple_mem): Likewise.
5971 * ipa-pure-const.c (check_call): Likewise.
5972 (check_stmt ): Likewise.
5973 * lower-subreg.c (lower-subreg.c): Likewise.
5974 * optabs.c (emit_libcall_block): Likewise.
5975 (prepare_cmp_insn): Likewise.
5976 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
5977 * postreload.c (rest_of_handle_postreload): Likewise.
5978 * reload1.c (reload_as_needed): Likewise.
5979 (emit_input_reload_insns): Likewise.
5980 (emit_output_reload_insns): Likewise.
5981 (fixup_abnormal_edges): Likewise.
5982 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
5983 * store-motion.c (find_moveable_store): Likewise.
5984 * tree-eh.c (stmt_could_throw_p): Likewise.
5985 (tree_could_throw_p): Likewise.
5986 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5987 * config/arm/arm.c (arm_expand_prologue): Likewise.
5988 (thumb1_expand_prologue): Likewise.
5989 * config/rx/rx.md (cbranchsf4): Likewise.
5991 * config/s390/s390.c (s390_emit_prologue): Likewise.
5992 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
5993 (inline_forbidden_into_p): New predicate.
5994 (expand_call_inline): Use it to forbid inlining.
5995 (tree_can_inline_p): Likewise.
5997 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5999 * config/i386/i386-c.c: Do not include rtl.h.
6000 * config/i386/t-i386: Update dependencies.
6002 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
6004 * attribs.c: Do not include rtl.h.
6005 * Makefile.in: Update dependencies.
6007 2010-05-25 Anatoly Sokolov <aesok@post.ru>
6009 * double-int.h (double_int_and): New.
6010 * combine.c (try_combine): Clean up, use double_int_* and
6011 immed_double_int_const functions.
6013 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6015 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
6016 stderr to /dev/null instead of grep -q.
6017 * configure: Regenerate.
6019 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
6021 * Makefile.in (EXCEPT_H): Fix typo.
6023 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
6025 * ira-build.c (update_conflict_hard_reg_costs): New.
6026 (ira_build): Call update_conflict_hard_reg_costs.
6028 2010-05-25 Jakub Jelinek <jakub@redhat.com>
6031 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
6033 (intersect_loc_chains): Walk the s2var's loc_chain together
6034 with s1node chain as long as the locations are equal, don't
6035 call find_loc_in_1pdv in that case.
6038 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
6039 (copy_bind_expr): ... instead of here.
6040 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
6041 if the block hasn't been remapped.
6042 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
6043 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
6045 2010-05-25 Richard Guenther <rguenther@suse.de>
6048 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
6049 out-of-bounds array accesses.
6051 2010-05-25 Richard Guenther <rguenther@suse.de>
6053 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
6054 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
6055 (run_gcc): Re-organize to make cleanup easier.
6057 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6059 * config/s390/s390.c (optimization_options): Fix and move the
6060 flag_prefetch_loop_arrays override ...
6061 (override_options): ... here.
6063 2010-05-25 Joseph Myers <joseph@codesourcery.com>
6065 * diagnostic.c: Don't include plugin.h.
6066 (diagnostic_report_diagnostic): Don't handle plugins specially
6067 here. Pass context to internal_error callback.
6068 * diagnostic.h (struct diagnostic_context): Add context parameter
6069 to internal_error callback.
6070 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
6071 * plugin.h (struct diagnostic_context): Declare.
6072 (warn_if_plugins, plugins_internal_error_function): Declare.
6073 * toplev.c (general_init): Set global_dc->internal_error.
6074 * Makefile.in (diagnostic.o): Update dependencies.
6076 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
6078 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
6079 * config/rs6000/t-darwin64: New.
6080 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
6083 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
6086 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
6087 match the original (and intended) behaviour before r159557. This
6088 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
6091 2010-05-25 Richard Guenther <rguenther@suse.de>
6093 * doc/invoke.texi: Document -Ofast.
6094 * target.h (struct gcc_target): Add handle_ofast.
6095 * target-def.h (TARGET_HANDLE_OFAST): Add.
6096 (TARGET_INITIALIZER): Adjust.
6097 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
6098 * common.opt (Ofast): Add.
6100 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
6102 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
6103 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
6105 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
6108 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
6109 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
6110 false_rtx. Use false_rtx to compute the correct *ptest for reversed
6111 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
6113 2010-05-25 Jakub Jelinek <jakub@redhat.com>
6115 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
6116 DW_OP_minus with negated offset instead of DW_OP_plus.
6117 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
6119 2010-05-25 Wei Guozhi <carrot@google.com>
6121 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
6122 tst instruction and a new alternative.
6123 * config/arm/constraints.md (Pu): New constraint.
6125 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
6127 * function.c (assign_stack_local_1): Initialize variable
6128 to avoid warning when bootstrapping at -O3.
6130 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
6132 * configure.ac (all_lang_makefiles): Remove everything related to it.
6133 * configure: Regenerate.
6134 * Makefile.in: Fix reference to ada Make-lang.in.
6135 Remove support for LANG_MAKEFILES.
6137 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
6138 Sandra Loosemore <sandra@codesourcery.com>
6140 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
6141 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
6142 description. Add arm_neon_fp16_ok.
6143 (Add Options): Add arm_neon and arm_neon_fp16.
6145 2010-05-24 Joseph Myers <joseph@codesourcery.com>
6147 * diagnostic.c: Don't include flags.h.
6148 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
6149 context parameters. Check flags in the context passed as a parameter.
6150 (diagnostic_build_prefix): Add context parameter. Check
6151 show_column flag in context.
6152 (diagnostic_action_after_output): Check fatal_errors flag in context.
6153 (diagnostic_report_current_module): Check show_column flag in context.
6154 (default_diagnostic_starter): Update call to
6155 diagnostic_build_prefix.
6156 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
6157 (emit_diagnostic): Pass context to permissive_error_kind.
6158 (permerror): Pass context to permissive_error_kind.
6159 * diagnostic.h (struct diagnostic_context): Add show_column,
6160 pedantic_errors, permissive and fatal_errors fields.
6161 (diagnostic_build_prefix): Update prototype.
6163 * toplev.c (process_options): Set flags in global_dc from
6164 flag_show_column, flag_pedantic_errors, flag_permissive,
6166 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
6167 to diagnostic_build_prefix.
6168 * Makefile.in (diagnostic.o): Update dependencies.
6170 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
6172 * config/i386/ia32intrin.h (__crc32q): Define only if
6173 __SSE4_2__ is defined.
6175 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
6179 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
6180 DECL_VISIBILITY_SPECIFIED.
6181 (emutls_decl): Set DECL_PRESERVE_P and copy
6182 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
6183 (emutls_finalize_control_var): New callback.
6184 (emutls_finish): Finalize emutls control variables.
6185 * toplev.c (compile_file): Move the call to emutls_finish ()
6186 before varpool_assemble_pending_decls ().
6188 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
6190 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
6191 added to the preprocessor condition.
6193 2010-05-24 Paul Brook <paul@codesourcery.com>
6195 * gengtype-lex.l: Add HARD_REG_SET.
6196 * expr.c (expand_expr_real_1): Record writes to hard registers.
6197 * function.c (rtl_data): Add asm_clobbers.
6198 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
6199 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
6200 Use crtl->asm_clobbers.
6202 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6204 * doc/makefile.texi (Makefile): Mention stages 'profile'
6205 and 'feedback' for profiledbootstrap.
6207 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
6210 * config/i386/i386.c (def_builtin): Properly check
6211 OPTION_MASK_ISA_64BIT.
6213 2010-05-23 Joseph Myers <joseph@codesourcery.com>
6215 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
6216 typedefs with different but compatible types. Allow duplicate
6217 typedefs with the same type except for pedantic non-C1X, but give
6218 warning for variably modified types.
6219 * c-typeck.c (tagged_types_tu_compatible_p,
6220 function_types_compatible_p, type_lists_compatible_p,
6221 comptypes_internal): Add parameter different_types_p; set
6222 *different_types_p for different but compatible types. All
6224 (comptypes_check_different_types): New.
6225 * c-tree.h (comptypes_check_different_types): Declare.
6227 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
6229 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
6230 * jump.c: Include basic-block.h.
6231 * profile.c: Likewise.
6232 * tree-profile.c: Likewise.
6233 * coverage.c: Likewise.
6234 * basic-block.h (optimize_function_for_size_p): Move to function.h.
6235 (optimize_function_for_speed_p): Likewise.
6236 * function.h (optimize_function_for_size_p,
6237 optimize_function_for_speed_p): Moved here from basic-block.h.
6238 * Makefile.in: Update dependencies.
6240 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6242 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
6243 before calling make; allow override through $MAKE.
6244 * doc/invoke.texi (Optimize Options): Document override.
6246 2010-05-23 Anatoly Sokolov <aesok@post.ru>
6248 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
6249 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6250 (rs6000_mode_dependent_address_ptr): Make static.
6251 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6252 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
6255 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
6258 * config/i386/i386.c: Make sure that the correct regparm is passed.
6260 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
6262 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
6263 * sbitmap.c: ...to here to internalize sbitmap element access.
6264 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
6265 Explain why basic-block.h is included.
6266 * function.h: Include tm.h for CUMULATIVE_ARGS.
6267 * Makefile.in: Update dependencies.
6269 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
6271 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
6273 * sbitmap.h (struct sbitmap_def): Do not typedef here.
6274 * sbitmap.c: Include sbitmap.h.
6275 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
6276 hard-reg-set.h. Split everything related to regsets out from here...
6277 * regset.h: ...to here. New file.
6278 * df.h: Include regset.h and sbitmap.h.
6279 * tree-flow.h: Likewise.
6280 * cfgloop.h: Likewise.
6281 * except.h: Do not include sbitmap.h. Include hashtab.h.
6282 * cgraph.h: Include vec.h and function.h.
6283 * reload.h (struct insn_chain): Change types of live_throughout
6284 and dead_or_set from regset_head to bitmap_head.
6285 (compute_use_by_pseudos): Be defined also if regset.h is not included.
6286 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
6287 spilled_regs from regset_head to bitmap_head to avoid dependency
6289 * sel-sched-ir.h: Include regset.h.
6290 * reload.c: Include df.h before reload.h.
6291 * caller-save.c: Likewise.
6292 * reload1.c: Likewise.
6294 (mark_elimination): Update type of r to bitmap, consistent with
6296 * dominance.c: Include bitmap.h.
6297 * modulo-sched.c: Include df.h.
6298 * cfganal.c: Include bitmap.h and sbitmap.h.
6299 * cfgbuild.c: Include sbitmap.h.
6300 * lcm.c: Include sbitmap.h.
6301 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
6302 * domwalk.c: Include sbitmap.h, exclude ggc.h.
6303 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
6304 * cselib.c: Include bitmap.h.
6305 * tree-optimize.c: Include regset.h.
6306 * stmt.c: Include bitmap.h.
6307 * Makefile.in: Update dependencies.
6309 2010-05-22 Jan Hubicka <jh@suse.cz>
6311 * cgraph.h (struct varpool_node): Add same_comdat_group.
6312 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
6314 (output_varpool): Update call of lto_output_varpool_node.
6315 (input_varpool): Read same_comdat_group pointer.
6316 (input_varpool_1): Fixup same_comdat_group pointer.
6317 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
6318 group is needed, all are.
6319 * varpool.c (varpool_remove_node): Remove node from same comdat group
6321 (varpool_analyze_pending_decls): Walk same comdat groups.
6323 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
6325 * rtl.h (union rtunion_def): Remove rt_bit member.
6326 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
6327 * print-rtl (print_rtx): Do not print the member.
6328 * gengtype.c (adjust_field_rtx_def): Do not handle it.
6329 * gengenrtl.c (type_from_format): Likewise.
6330 (accessor_from_format): Likewise.
6332 2010-05-22 Joseph Myers <joseph@codesourcery.com>
6334 * dbgcnt.c: Include toplev.h instead of errors.h.
6335 * ira-emit.c: Don't include errors.h.
6336 * ira.c: Include toplev.h instead of errors.h.
6337 * lto-compress.c: Include toplev.h instead of errors.h.
6338 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
6339 ira.o, dbgcnt.o): Update dependencies.
6341 2010-05-22 Richard Guenther <rguenther@suse.de>
6343 * gimple.c (gimple_types_compatible_p): Check type qualifications
6344 before merging pointer to complete and pointer to incomplete type.
6345 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
6346 we use our own resolution algorithm. The gold linker plugin
6347 doesn't do the job we want it to do here.
6349 2010-05-22 Anatoly Sokolov <aesok@post.ru>
6351 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6352 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6353 (sparc_mode_dependent_address_p): New function.
6355 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
6357 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
6359 * timevar.c: Do not include any core headers.
6360 (timevar_print): De-i18n-ize.
6361 (print_time): Likewise.
6362 * timevar.h (timevar_push, timevar_pop): Make inline functions.
6364 2010-05-21 Joseph Myers <joseph@codesourcery.com>
6366 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
6368 (diagnostic_initialize): Initialize x_data not last_function.
6369 (diagnostic_report_current_function): Move to tree-diagnostic.c.
6370 (default_diagnostic_starter): Call
6371 diagnostic_report_current_module not
6372 diagnostic_report_current_function.
6373 (diagnostic_report_diagnostic): Initialize x_data not
6375 (verbatim): Likewise.
6376 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
6378 (struct diagnostic_context): Change last_function to x_data.
6379 (diagnostic_auxiliary_data): Replace with
6380 diagnostic_context_auxiliary_data and
6381 diagnostic_info_auxiliary_data.
6382 (diagnostic_last_function_changed, diagnostic_set_last_function,
6383 diagnostic_report_current_function): Move to tree-diagnostic.h.
6384 (print_declaration, dump_generic_node, print_generic_stmt,
6385 print_generic_stmt_indented, print_generic_expr,
6386 print_generic_decl, debug_c_tree, dump_omp_clauses,
6387 print_call_name, debug_generic_expr, debug_generic_stmt,
6388 debug_tree_chain, default_tree_printer): Move to
6389 tree-pretty-print.h.
6390 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
6391 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
6392 gimple-pretty-print.h.
6393 * pretty-print.c: Don't include tree.h
6394 (pp_base_format): Don't handle %K here.
6395 (pp_base_tree_identifier): Move to tree-pretty-print.c.
6396 * pretty-print.h (text_info): Change abstract_origin to x_data.
6397 (pp_tree_identifier, pp_unsupported_tree,
6398 pp_base_tree_identifier): Move to tree-pretty-print.h.
6399 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
6400 tree-pretty-print.h: New files.
6401 * tree-pretty-print.c: Include tree-pretty-print.h.
6402 (percent_K_format): New. Moved from pretty-print.c.
6403 (pp_base_tree_identifier): Move from pretty-print.c.
6404 * c-objc-common.c: Include tree-pretty-print.h.
6405 (c_tree_printer): Handle %K here.
6406 * langhooks.c: Include tree-diagnostic.h.
6407 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
6408 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
6409 (default_tree_printer): Handle %K using percent_K_format.
6410 (general_init): Use default_tree_diagnostic_starter.
6411 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
6412 (free_lang_data): Use default_tree_diagnostic_starter.
6413 * c-pretty-print.c: Include tree-pretty-print.h.
6414 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
6415 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
6416 * dwarf2out.c: Include tree-pretty-print.h.
6417 * except.c: Include tree-pretty-print.h.
6418 * gimple-pretty-print.c: Include tree-pretty-print.h and
6419 gimple-pretty-print.h.
6420 * gimplify.c: Include tree-pretty-print.h.
6421 * graphite-poly.c: Include tree-pretty-print.h and
6422 gimple-pretty-print.h.
6423 * ipa-cp.c: Include tree-pretty-print.h.
6424 * ipa-inline.c: Include gimple-pretty-print.h.
6425 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
6426 * ipa-pure-const.c: Include gimple-pretty-print.h.
6427 * ipa-struct-reorg.c: Include tree-pretty-print.h and
6428 gimple-pretty-print.h.
6429 * ipa-type-escape.c: Include tree-pretty-print.h.
6430 * print-rtl.c: Include tree-pretty-print.h.
6431 * print-tree.c: Include gimple-pretty-print.h.
6432 * sese.c: Include tree-pretty-print.h.
6433 * tree-affine.c: Include tree-pretty-print.h.
6434 * tree-browser.c: Include tree-pretty-print.h.
6435 * tree-call-cdce.c: Include gimple-pretty-print.h.
6436 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
6437 * tree-chrec.c: Include tree-pretty-print.h.
6438 * tree-data-ref.c: Include tree-pretty-print.h and
6439 gimple-pretty-print.h.
6440 * tree-dfa.c: Include tree-pretty-print.h.
6441 * tree-if-conv.c: Include tree-pretty-print.h and
6442 gimple-pretty-print.h.
6443 * tree-inline.c: Include tree-pretty-print.h.
6444 * tree-into-ssa.c: Include tree-pretty-print.h and
6445 gimple-pretty-print.h.
6446 * tree-nrv.c: Include tree-pretty-print.h.
6447 * tree-object-size.c: Include tree-pretty-print.h and
6448 gimple-pretty-print.h.
6449 * tree-outof-ssa.c: Include tree-pretty-print.h and
6450 gimple-pretty-print.h.
6451 * tree-parloops.c: Include tree-pretty-print.h and
6452 gimple-pretty-print.h.
6453 * tree-predcom.c: Include tree-pretty-print.h and
6454 gimple-pretty-print.h.
6455 * tree-scalar-evolution.c: Include tree-pretty-print.h and
6456 gimple-pretty-print.h.
6457 * tree-sra.c: Include tree-pretty-print.h.
6458 * tree-ssa-address.c: Include tree-pretty-print.h.
6459 * tree-ssa-alias.c: Include tree-pretty-print.h.
6460 * tree-ssa-ccp.c: Include tree-pretty-print.h and
6461 gimple-pretty-print.h.
6462 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
6463 * tree-ssa-copy.c: Include tree-pretty-print.h and
6464 gimple-pretty-print.h.
6465 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
6466 * tree-ssa-dce.c: Include tree-pretty-print.h and
6467 gimple-pretty-print.h.
6468 * tree-ssa-dom.c: Include tree-pretty-print.h and
6469 gimple-pretty-print.h.
6470 * tree-ssa-dse.c: Include gimple-pretty-print.h.
6471 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
6472 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
6473 * tree-ssa-live.c: Include tree-pretty-print.h and
6474 gimple-pretty-print.h.
6475 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
6476 gimple-pretty-print.h.
6477 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
6478 gimple-pretty-print.h.
6479 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
6480 gimple-pretty-print.h.
6481 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
6482 gimple-pretty-print.h.
6483 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
6484 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
6485 * tree-ssa-operands.c: Include tree-pretty-print.h and
6486 gimple-pretty-print.h.
6487 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
6488 gimple-pretty-print.h.
6489 * tree-ssa-pre.c: Include tree-pretty-print.h and
6490 gimple-pretty-print.h.
6491 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
6492 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
6493 gimple-pretty-print.h.
6494 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
6495 gimple-pretty-print.h.
6496 * tree-ssa-sink.c: Include gimple-pretty-print.h.
6497 * tree-ssa-ter.c: Include tree-pretty-print.h and
6498 gimple-pretty-print.h.
6499 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
6500 * tree-ssa.c: Include tree-pretty-print.h and
6501 gimple-pretty-print.h.
6502 * tree-stdarg.c: Include gimple-pretty-print.h.
6503 * tree-switch-conversion.c: Include gimple-pretty-print.h.
6504 * tree-tailcall.c: Include tree-pretty-print.h and
6505 gimple-pretty-print.h.
6506 * tree-vect-data-refs.c: Include tree-pretty-print.h and
6507 gimple-pretty-print.h.
6508 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
6509 gimple-pretty-print.h.
6510 * tree-vect-loop.c: Include tree-pretty-print.h and
6511 gimple-pretty-print.h.
6512 * tree-vect-patterns.c: Include gimple-pretty-print.h.
6513 * tree-vect-slp.c: Include tree-pretty-print.h and
6514 gimple-pretty-print.h.
6515 * tree-vect-stmts.c: Include tree-pretty-print.h and
6516 gimple-pretty-print.h.
6517 * tree-vectorizer.c: Include tree-pretty-print.h.
6518 * tree-vrp.c: Include tree-pretty-print.h and
6519 gimple-pretty-print.h.
6520 * value-prof.c: Include tree-pretty-print.h and
6521 gimple-pretty-print.h.
6522 * var-tracking.c: Include tree-pretty-print.h.
6523 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
6524 (tree-diagnostic.o): New dependencies.
6525 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
6526 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
6527 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
6528 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
6529 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
6530 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
6531 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
6532 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
6533 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
6534 tree-ssa-address.o, tree-ssa-loop-niter.o,
6535 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
6536 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
6537 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
6538 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
6539 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
6540 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
6541 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
6542 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
6543 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
6544 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
6545 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
6546 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
6547 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
6548 tree-switch-conversion.o, var-tracking.o, value-prof.o,
6549 cfgexpand.o, pretty-print.o): Update dependencies.
6551 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
6553 * tree-ssa-structalias.c: Remove tm_p.h from include.
6555 2010-05-21 Jeff Law <law@redhat.com>
6557 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
6559 2010-05-21 Jason Merrill <jason@redhat.com>
6561 * tree-eh.c (cleanup_is_dead_in): New.
6562 (lower_try_finally): Don't generate a dead cleanup region.
6563 (lower_cleanup): Likewise.
6565 2010-05-21 Jakub Jelinek <jakub@redhat.com>
6568 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
6569 unchain each use from the cyclic next_regno_use chain first.
6571 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
6573 * real: Do not include gmp.h, mpfr.h, and mpc.h.
6574 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
6575 (real_value_negate, real_value_abs): New prototypes.
6576 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
6577 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
6578 new include file for interface between MPFR and REAL_VALUE_TYPE.
6579 * real.c: Include realmpfr.h.
6580 (real_arithmetic2): Remove legacy function.
6581 (real_value_negate): New.
6582 (real_value_abs): New.
6583 (mfpr_from_real, real_from_mpfr): Move from here...
6584 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
6585 * builtins.c: Include realmpfr.h.
6586 * fold-const.c: Include realmpfr.h.
6587 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
6588 (fold_negate_const): Likewise.
6589 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
6590 * toplev.c: Include realmpfr.h.
6591 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
6592 and real_value_negate.
6593 * fixed-value.c (check_real_for_fixed_mode): Likewise.
6594 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
6595 (vfp3_const_double_index): Likewise.
6596 (arm_print_operand): Likewise.
6597 * Makefile.in: Update dependencies.
6599 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6601 * config/s390/s390.c (override_options): Increase the default
6602 of max-completely-peel-times.
6604 2010-05-21 Julian Brown <julian@codesourcery.com>
6605 Mark Mitchell <mark@codesourcery.com>
6607 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
6608 sibling calls for Thumb-1.
6609 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
6610 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
6612 (*call_insn, *call_value_insn): Don't use for Thumb-2.
6613 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
6615 (return): New expander.
6616 (*arm_return): New name for ARM return insn.
6617 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
6619 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
6621 * config.gcc (sparc64-*-rtems*): New target.
6623 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
6625 * tree.c (build_function_decl_skip_args): Fix grammar.
6626 (build_function_type_list_1): Fix typos, adjust formatting.
6628 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
6630 * tree.h: Include real.h and fixed-value.h as basic datatypes.
6631 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
6632 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
6633 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
6634 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
6635 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
6636 tree-pretty-print.c, tree-loop-distribution.c,
6637 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
6638 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
6639 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
6640 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
6641 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
6642 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
6643 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
6644 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
6645 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
6646 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
6647 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
6648 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
6649 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
6650 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
6651 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
6652 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
6653 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
6654 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
6655 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
6656 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
6657 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
6658 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
6659 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
6660 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
6661 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
6662 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
6663 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
6664 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
6665 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
6666 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
6667 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
6668 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
6669 config/score/score7.c, config/score/score.c, config/arm/arm.c,
6670 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
6671 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
6672 config/bfin/bfin.c: Clean up redundant includes.
6673 * Makefile.in: Update accordingly.
6675 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
6678 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
6679 statement has no arguments.
6681 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
6684 * varasm.c (emutls_decl): Merge attributes to new decl.
6686 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
6689 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
6690 around the uniquized constructor if its type requires a conversion.
6692 2010-05-21 Jakub Jelinek <jakub@redhat.com>
6695 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
6696 at -O0 goto_locus of any of the incoming edges differs from
6697 goto_locus of outgoing edge, or gimple_location of any of the
6700 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
6702 * ira.c (ira_non_ordered_class_hard_regs): Define.
6703 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
6704 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
6705 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
6706 cost of unaligned hard regs when allocating multi-reg pseudos.
6708 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
6710 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
6711 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
6712 for TARGET_NO_FLOAT.
6713 * config/mips/mips.c (mips_file_start): Expand conditional expression
6714 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
6715 (mips_override_options): Move -mno-float override -msoft-float and
6717 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
6718 Condition(TARGET_SUPPORTS_NO_FLOAT).
6719 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
6720 __mips_no_float here.
6721 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
6722 (TARGET_SUPPORTS_NO_FLOAT): Define.
6723 * config/mips/sdemtk.opt: Delete.
6725 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
6727 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
6729 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
6732 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
6733 * configure: Regenerate.
6734 * config.in: Regenerate.
6735 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
6736 instead of sahf only for 64bit targets.
6738 2010-05-20 Jakub Jelinek <jakub@redhat.com>
6741 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
6742 setup_ref_regs for DEBUG_INSNs.
6744 2010-05-20 Jan Hubicka <jh@suse.cz>
6747 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
6749 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
6752 * df-scan.c (df_ref_compare): Stabilize sort.
6754 2010-05-20 Jakub Jelinek <jakub@redhat.com>
6756 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
6757 argument. Don't use DW_OP_piece if offset is non-zero,
6758 put offset into second DW_OP_bit_piece argument.
6759 (dw_sra_loc_expr): Adjust callers. For memory expressions
6762 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
6765 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
6766 settings for 16-bit-constant "addo" alternative.
6768 2010-05-19 James E. Wilson <wilson@codesourcery.com>
6770 * config/mips/mips-dsp.md (add<DSPV:mode>3,
6771 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
6774 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
6775 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
6778 2010-05-19 Joseph Myers <joseph@codesourcery.com>
6780 * diagnostic.c (FLOAT, FFS): Don't undefine.
6781 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
6782 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
6785 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
6787 * combine.c (propagate_for_debug): Call make_compound_operation
6788 on the source value.
6789 (try_combine): When implementing a split chosen by find_split_point,
6790 either copy i2src or set it to null. Assert that i2src is not null
6791 before substituting into CALL_INSN_FUNCTION_USAGE.
6793 2010-05-19 Anatoly Sokolov <aesok@post.ru>
6795 * double-int.h (double_int_ior): New function.
6796 * tree.h (build_int_cst_wide_type): Remove.
6797 * tree.c (build_int_cst_wide_type): Remove.
6798 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
6799 of build_int_cst_wide_type.
6800 * stor-layout.c (set_sizetype): (Ditto.).
6801 * dojump.c (do_jump): Use build_int_cstu instead of
6802 build_int_cst_wide_type.
6804 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
6806 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
6807 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
6808 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
6809 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
6810 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
6811 propagate the 'data' argument to copy_tree_r.
6812 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
6813 Propagate 'data' argument to walk_tree.
6814 (copy_if_shared): New function.
6815 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
6816 (unmark_visited): New function.
6817 (unshare_body): Call copy_if_shared instead of doing it manually.
6818 (unvisit_body): Call unmark_visited instead of doing it manually.
6820 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
6822 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
6823 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
6824 * hooks.c: Likewise.
6825 * target-def.h (TARGET_FOLD_BUILTIN): Define to
6826 hook_tree_tree_int_treep_bool_null.
6827 * target.h (struct gcc_target): Update signature of fold_builtin
6829 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
6830 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
6831 instead of the call expression.
6832 (fold_builtin_call_array): Pass n and argarray directly.
6833 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
6835 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
6836 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
6837 `i' and use it in place of `arity'.
6838 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
6839 Dereference `args' directly.
6840 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
6842 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6844 * doc/sourcebuild.texi (Effective-Target Keywords): Document
6846 (Directives): Document optional dg-require-effective-target
6849 2010-05-19 Richard Guenther <rguenther@suse.de>
6852 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
6854 2010-05-19 Richard Guenther <rguenther@suse.de>
6856 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
6857 * common.opt (fwhopr=): New.
6858 * opts.c (common_handle_option): Handle OPT_fwhopr.
6859 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
6860 * collect2.c (main): Match -fwhopr*.
6861 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
6862 Execute ltrans stage in parallel when jobs is bigger than 1.
6864 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6866 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
6867 pentiumpro on Solaris 8/x86 with Sun as.
6868 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
6870 (gcc_cv_as_ix86_quad): Check for .quad directive.
6871 * configure: Regenerate.
6872 * config.in: Regenerate.
6873 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
6875 2010-05-19 Martin Jambor <mjambor@suse.cz>
6877 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
6878 also for indirect edges. Actual printing moved...
6879 (ipa_print_node_jump_functions_for_edge): ...here.
6880 (ipa_compute_jump_functions): Renamed to
6881 ipa_compute_jump_functions_for_edge and made static.
6882 (ipa_compute_jump_functions): New function.
6883 (make_edge_direct_to_target): Check if the number of arguments on
6884 the newly direct edge is the same as the number of parametrs of
6886 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
6887 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
6888 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6889 analysis functions unconditionally, call the new
6890 ipa_analyze_params_uses on the node instead of every edge.
6892 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
6894 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
6896 (dump_mem_ref): Adopt debug code to handle a tree as step. This
6897 also checks for a constant int vs. non-constant but
6898 loop-invariant steps.
6899 (find_or_create_group): Change the sort algorithm to only consider
6900 steps that are constant ints.
6901 (idx_analyze_ref): Adopt code to handle a tree instead of a
6902 HOST_WIDE_INT for step.
6903 (gather_memory_references_ref): Handle tree instead of int and be
6904 prepared to see a NULL_TREE.
6905 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
6906 prefetches if the step cannot be calculated at compile time.
6907 (issue_prefetch_ref): Issue prefetches for non-constant but
6908 loop-invariant steps.
6910 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6913 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6915 * tree.h (build_call_list): Remove.
6916 * tree.c (build_call_list): Remove.
6918 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6920 * tree.h (build_call_list): Remove.
6921 * tree.c (build_call_list): Remove.
6923 2010-05-18 Jan Hubicka <jh@suse.cz>
6925 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
6927 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
6929 PR rtl-optimization/43332
6930 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
6932 2010-05-18 Anatoly Sokolov <aesok@post.ru>
6934 * tree.h (build_int_cstu): Implement as static inline.
6935 * tree.c (build_int_cstu): Remove function.
6936 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
6939 2010-05-18 Richard Guenther <rguenther@suse.de>
6942 * lto-wrapper.c (verbose): New variable. Initialize from -v.
6943 (debug): Initialize from -save-temps.
6944 (collect_execute): Print command-line when verbose.
6945 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
6946 for ltrans invocation. Produce -dumpbase flag again.
6947 (process_args): Remove.
6949 * collect2.c (maybe_run_lto_and_relink): Only pass object
6950 files to lto-wrapper.
6951 * gcc.c (LINK_COMMAND_SPEC): Likewise.
6953 2010-05-18 Jan Hubicka <jh@suse.cz>
6955 * opts.c (decode_options): Do not disable whopr at ipa_cp.
6956 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
6958 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
6961 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
6963 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
6966 2010-05-18 Jakub Jelinek <jakub@redhat.com>
6969 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
6972 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
6974 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
6975 lto-macho as lto_binary_reader.
6977 * darwin.c (darwin_asm_named_section): Do not add assembler comment
6978 after .section directive; just print it before the directive instead.
6980 2010-05-17 Jan Hubicka <jh@suse.cz>
6982 * cgraph.c (cgraph_create_virtual_clone): Only check
6983 versionable_function_p when not in wpa and checking is enabled.
6984 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
6985 there are no more functions to materialize.
6987 2010-05-17 Jan Hubicka <jh@suse.cz>
6989 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
6990 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
6992 (output_cgraph): Call output_cgraph_opt_summary.
6993 (input_cgrpah): Call input_cgraph_opt_summary.
6994 (output_cgraph_opt_summary_p, output_node_opt_summary,
6995 input_node_opt_summary, input_cgraph_opt_section): New functions.
6996 * lto-section-in.c (lto_section_name): Add cgraphopt.
6997 * tree-inline.c (tree_function_versioning): Handle parm_num.
6998 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
6999 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
7001 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
7003 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
7004 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
7005 the insn to prefetch ratio heuristic to loops with known trip count.
7007 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
7009 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
7010 (schedule_prefetches): Do not generate a prefetch if the unroll factor
7011 is far from what is required by the prefetch.
7013 2010-05-17 Jan Hubicka <jh@suse.cz>
7015 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
7016 (ipcp_estimate_growth): Likewise.
7017 (ipcp_const_param_count): Likewise.
7018 (ipcp_insert_stage): Likewise.
7019 * ipa-prop.c (visit_load_for_mod_analysis): New function.
7020 (visit_store_addr_for_mod_analysis): Set used flag.
7021 (ipa_detect_param_modifications): Set used flag for SSE params;
7022 update use of walk_stmt_load_store_addr_ops.
7023 (ipa_print_node_params): Print used flag.
7024 (ipa_write_node_info): Stream used flag.
7025 (ipa_read_node_info): Likewise.
7026 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
7027 (ipa_is_param_used): New function.
7028 (lto_ipa_fixup_call_notes): Remove unused declaration.
7030 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7033 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
7034 * configure: Regenerate.
7035 * config.in: Regenerate.
7036 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
7037 !HAVE_AS_IX86_REP_LOCK_PREFIX.
7038 Don't emit whitespace.
7039 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
7040 (*rep_movsi): Likewise.
7041 (*rep_movsi_rex64): Likewise.
7042 (*rep_movqi): Likewise.
7043 (*rep_movqi_rex64): Likewise.
7044 (*rep_stosdi_rex64): Likewise.
7045 (*rep_stossi): Likewise.
7046 (*rep_stossi_rex64): Likewise.
7047 (*rep_stosqi): Likewise.
7048 (*rep_stosqi_rex64): Likewise.
7049 (*cmpstrnqi_nz_1): Use {%;} after repz.
7050 (*cmpstrnqi_nz_rex_1): Likewise.
7051 (*cmpstrnqi_1): Likewise.
7052 (*cmpstrnqi_rex_1): Likewise.
7053 (*strlenqi_1): Use {%;} after repnz.
7054 (*strlenqi_rex_1): Likewise.
7055 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
7056 (*sync_compare_and_swap<mode>): Likewise.
7057 (sync_double_compare_and_swap<mode>): Likewise.
7058 (*sync_double_compare_and_swapdi_pic): Likewise.
7059 (sync_old_add<mode>): Likewise.
7060 (sync_add<mode>): Likewise.
7061 (sync_sub<mode>): Likewise.
7062 (sync_<code><mode>): Likewise.
7064 2010-05-17 Martin Jambor <mjambor@suse.cz>
7066 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
7067 otr_token and polymorphic.
7068 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
7069 (cgraph_clone_edge): Copy the above fields.
7070 * tree.c (get_binfo_at_offset): New function.
7071 * tree.h (get_binfo_at_offset): Declare.
7072 * ipa-prop.h (enum jump_func_type): Added known_type jump function
7073 type, reordered items, updated comments.
7074 (union jump_func_value): Added base_type field, reordered fields.
7075 (enum ipa_lattice_type): Moved down in the file.
7076 (struct ipa_param_descriptor): New field polymorphic.
7077 (ipa_is_param_polymorphic): New function.
7078 * ipa-prop.c: Include gimple.h and gimple-fold.h.
7079 (ipa_print_node_jump_functions): Print known type jump functions.
7080 (compute_complex_pass_through): Renamed to...
7081 (compute_complex_assign_jump_func): this.
7082 (compute_complex_ancestor_jump_func): New function.
7083 (compute_known_type_jump_func): Likewise.
7084 (compute_scalar_jump_functions): Create known type and complex ancestor
7086 (ipa_note_param_call): New parameter polymorphic, set the corresponding
7087 flag in the call note accordingly.
7088 (ipa_analyze_call_uses): Renamed to...
7089 (ipa_analyze_indirect_call_uses): this. New parameter target, define
7090 variable var only in the block where it is used.
7091 (ipa_analyze_virtual_call_uses): New function.
7092 (ipa_analyze_call_uses): Likewise.
7093 (combine_known_type_and_ancestor_jfs): Likewise.
7094 (update_jump_functions_after_inlining): Implemented handling of a
7095 number of new jump function types combination.
7096 (print_edge_addition_message): Removed.
7097 (make_edge_direct_to_target): New function.
7098 (try_make_edge_direct_simple_call): Likewise.
7099 (try_make_edge_direct_virtual_call): Likewise.
7100 (update_call_notes_after_inlining): Renamed to...
7101 (update_indirect_edges_after_inlining): this. Moved edge creation for
7102 indirect calls to try_make_edge_direct_simple_call, also calls
7103 try_make_edge_direct_virtual_call for virtual calls.
7104 (ipa_print_node_params): Changed the header message.
7105 (ipa_write_jump_function): Stream also known type jump functions.
7106 (ipa_read_jump_function): Likewise.
7107 (ipa_write_indirect_edge_info): Stream new fields in
7108 cgraph_indirect_call_info.
7109 (ipa_read_indirect_edge_info): Likewise.
7110 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
7113 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7115 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
7117 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
7119 * tree.h (CALL_EXPR_ARGS): Delete.
7120 (call_expr_arglist): Delete.
7121 * tree.c (call_expr_arglist): Delete.
7122 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
7123 targetm.fold_builtin.
7124 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
7125 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
7126 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
7127 arglist parameter. Use CALL_EXPR_ARG.
7128 (picochip_expand_builtin_3op): Likewise.
7129 (picochip_expand_builtin_2opvoid): Likewise.
7130 (picochip_expand_array_get): Likewise.
7131 (picochip_expand_array_put): Likewise.
7132 (picochip_expand_array_testport): Likewise.
7133 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
7134 rather than arglist.
7135 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
7137 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
7138 than TREE_VALUE and TREE_CHAIN.
7139 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
7140 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
7143 2010-05-17 Jakub Jelinek <jakub@redhat.com>
7146 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
7147 to have no fallthru edge.
7150 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
7151 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
7152 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
7153 add BARRIER after previous bb if needed.
7155 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
7157 * tree.c (build_function_type_list_1): Remove bogus assert condition.
7159 2010-05-17 Alan Modra <amodra@gmail.com>
7161 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
7162 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
7163 with copy_reg rtx param.
7164 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
7165 Correct cases where code for ABI_V4 did not initialise the reg
7166 used to access frame. Also leave frame_reg_rtx as sp for large
7167 frames that save no regs.
7169 2010-05-17 Martin Jambor <mjambor@suse.cz>
7172 * tree-sra.c (create_access_replacement): New parameter rename, mark
7173 the replaement for renaming only when it is true.
7174 (get_access_replacement): Pass true in the rename parameter of
7175 create_access_replacement.
7176 (get_unrenamed_access_replacement): New function.
7177 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
7178 replacement declaration from it.
7180 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
7182 * function.c (try_fit_stack_local, add_frame_space): New static
7184 (assign_stack_local_1): Use them. Look for opportunities to use
7185 space previously wasted on alignment.
7186 * function.h (struct frame_space): New.
7187 (struct rtl_data): Add FRAME_SPACE_LIST member.
7188 * reload1.c (something_was_spilled): New static variable.
7189 (alter_reg): Set it.
7190 (reload): Test it in addition to testing if the frame size changed.
7192 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
7194 * config/s390/s390.c: Define sane prefetch settings and activate
7195 flag_prefetch_loop_arrays on -O3.
7196 * config/s390/s390.h: Declare that read can use write prefetch.
7198 2010-05-17 Jakub Jelinek <jakub@redhat.com>
7200 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
7203 2010-05-16 Jan Hubicka <jh@suse.cz>
7205 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
7206 function body; do not check stdarg field of struct function.
7208 2010-05-16 Jan Hubicka <jh@suse.cz>
7210 * cgraph.c (dump_cgraph_node): Dump versionable flag.
7211 * cgraph.h (cgraph_local_info): Add versionable flag.
7212 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
7213 (ipcp_versionable_function_p): Use it.
7214 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
7217 2010-05-16 Jan Hubicka <jh@suse.cz>
7219 * cgraph.c (cgraph_clone_node): Take decl argument and insert
7220 clone into hash when it is different from orig.
7221 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
7222 * cgraph.h (cgraph_clone_node): Update prototype.
7223 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
7224 (lto_cgraph_encoder_delete): Delete body map.
7225 (lto_cgraph_encoder_size): Move to header.
7226 (lto_cgraph_encoder_encode_body_p,
7227 lto_set_cgraph_encoder_encode_body): New.
7228 (lto_output_node): Do not take written_decls argument; output clone_of
7230 (add_node_to): Add include_body_argument; call
7231 lto_set_cgraph_encoder_encode_body on master of the clone.
7232 (add_references): Update use of add_node_to.
7233 (compute_ltrans_boundary): Likewise.
7234 (output_cgraph): Do not create written_decls bitmap.
7235 (input_node): Take nodes argument; stream in clone_of correctly.
7236 (input_cgraph_1): Update use of input_node.
7237 * lto-streamer-out.c (lto_output): Use encoder info to decide
7238 what bodies to output.
7239 * ipa-inline.c (cgraph_clone_inlined_nodes,
7240 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
7241 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
7242 (lto_cgraph_encoder_size): Define here.
7243 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
7246 2010-05-16 Richard Guenther <rguenther@suse.de>
7248 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
7250 * ipa-type-escape.c (gate_type_escape_vars): Run when
7251 -fipa-struct-reorg runs.
7252 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
7253 * common.opt (fipa-type-escape): Remove.
7255 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
7257 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
7258 (decode_options): Likewise.
7259 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
7261 2010-05-16 Jan Hubicka <jh@suse.cz>
7263 * ipa.c (function_and_variable_visibility): Also bring local all
7266 2010-05-16 Richard Guenther <rguenther@suse.de>
7268 * alias.c (nonoverlapping_memrefs_p): Remove use of
7269 IPA type-escape information.
7271 2010-05-16 Joseph Myers <joseph@codesourcery.com>
7273 * c-common.c (c_common_reswords): Add _Static_assert for C.
7274 * c-parser.c (c_token_starts_declaration,
7275 c_parser_next_token_starts_declaration,
7276 c_parser_static_assert_declaration_no_semi,
7277 c_parser_static_assert_declaration): New.
7278 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
7279 Handle static assertions if static_assert_ok.
7280 (c_parser_external_declaration, c_parser_declaration_or_fndef,
7281 c_parser_compound_statement_nostart, c_parser_label,
7282 c_parser_for_statement, c_parser_objc_methodprotolist,
7283 c_parser_omp_for_loop): All callers of
7284 c_parser_declaration_or_fndef changed.
7285 (c_parser_struct_declaration): Handle static assertions.
7286 (c_parser_compound_statement_nostart): Use
7287 c_parser_next_token_starts_declaration and
7288 c_token_starts_declaration to detect start of declarations.
7289 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
7292 2010-05-16 Anatoly Sokolov <aesok@post.ru>
7294 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7295 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7296 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7297 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7298 (mmix_function_outgoing_value): Rename to...
7299 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
7300 (mmix_function_value_regno_p): Make static.
7301 (mmix_libcall_value): New function.
7302 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
7303 mmix_function_value_regno_p): Remove declaration.
7305 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
7307 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
7308 BUILT_IN_ALLOCA if stack checking is enabled.
7310 2010-05-16 Richard Guenther <rguenther@suse.de>
7312 * var-tracking.c (vars_copy_1): Inline ...
7313 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
7314 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
7315 (variable_merge_over_cur): Adjust. Merge asserts.
7316 (variable_merge_over_src): Likewise.
7317 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
7318 (variable_post_merge_new_vals): Merge asserts.
7319 (variable_post_merge_perm_vals): Likewise.
7320 (find_mem_expr_in_1pdv): Likewise.
7321 (dataflow_set_different_value): Remove.
7322 (onepart_variable_different_p): Merge asserts.
7323 (variable_different_p): Likewise.
7324 (dataflow_set_different_1): Inline ...
7325 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
7326 (emit_notes_for_differences_1): Merge asserts.
7328 2010-05-16 Richard Guenther <rguenther@suse.de>
7330 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
7331 * optabs.c (libfunc_decl_hash): Likewise.
7332 * varasm.c (emutls_decl): Likewise.
7334 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
7336 * c-decl.c: Don't include gimple.h.
7337 (merge_decls): Do not copy gimple_body.
7339 2010-05-15 Jason Merrill <jason@redhat.com>
7341 * c.opt: Add -fnothrow-opt.
7343 2010-05-15 Jan Hubicka <jh@suse.cz>
7345 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
7347 * passes.c (ipa_write_summaries): Write all analyzed nodes.
7349 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
7351 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
7352 * Makefile.in: Add it.
7353 Fix all other Makefile dependencies for changes below.
7354 * tree.h: Include it instead of defining VEC primitives here.
7355 * gimple.h: Likewise.
7357 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
7358 * except.h: Include vecir.h, break dependence on tree.h.
7360 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
7362 * tree-iterator.c: ...to here.
7363 * tree-iterator.h: Fix file introduction comment. Add extern markers.
7365 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
7367 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
7368 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
7369 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
7370 tree-mudflap.h, and target.h.
7371 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
7372 predict.h, tree-inline.h, gimple.h, and langhooks.h.
7373 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
7374 Add FIXME for why gimple.h is still included (should be unnecessary
7375 since GCC 4.5 gimplification unit-at-a-time).
7376 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
7377 * c-pragma.c: Add FIXME for why function.h needs to be included just
7378 for cfun, at front-end level.
7379 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
7380 Do not include ggc.h, but include vecprim.h for VEC(char).
7381 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
7382 Explain why target.h is included.
7383 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
7384 Explain why gimple.h is included.
7385 * c-ppoutput.c: Do not include tm.h.
7386 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
7387 * c-parses.c: Explain why rtl.h is included, and that this (and only
7388 this) is also why tm.h must be included.
7389 Do not include except.h.
7390 * c-lang.c: Do not include ggc.h.
7392 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
7394 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
7396 2010-05-15 Joseph Myers <joseph@codesourcery.com>
7398 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
7399 unions by default if those structs and unions have no tags. Do
7400 not condition anonymous struct and unions handling on flag_iso.
7401 Allow anonymous structs and unions for C1X.
7402 (finish_struct): Do not diagnose lack of named fields when
7403 anonymous structs and unions present for C1X. Accept flexible
7404 array members in structure with anonymous structs or unions but no
7405 directly named fields.
7406 * doc/extend.texi (Unnamed Fields): Update.
7408 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
7410 * gimple.h (compare_field_offset): Rename into...
7411 (gimple_compare_field_offset): ...this.
7412 * gimple.c (compare_field_offset): Rename into...
7413 (gimple_compare_field_offset): ...this. Compare the full access if
7414 the offset is self-referential.
7415 (gimple_types_compatible_p): Adjust for above renaming.
7416 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
7417 DECL_NONADDRESSABLE_P flag of fields before merging them.
7419 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
7421 * tree.h (ctor_to_list): Delete.
7422 * tree.c (ctor_to_list): Delete.
7424 2010-05-15 Jan Hubicka <jh@suse.cz>
7426 * ipa-reference.c: Include toplev.h
7427 (is_proper_for_analysis): Only add to all_module_statics
7429 (write_node_summary_p, stream_out_bitmap,
7430 ipa_reference_write_optimization_summary,
7431 ipa_reference_read_optimization_summary): New.
7432 (struct ipa_opt_pass_d pass_ipa_reference): Add
7433 optimization summary streaming.
7434 * lto-cgraph.c (referenced_from_this_partition_p,
7435 reachable_from_this_partition_p): New functions.
7436 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
7437 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
7438 * opts.c (decode_options): Enable ipa_reference.
7439 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
7440 * lto-streamer.h (referenced_from_this_partition_p,
7441 reachable_from_this_partition_p): Declare.
7443 2010-05-15 Richard Guenther <rguenther@suse.de>
7445 PR tree-optimization/44038
7446 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
7447 taking the address of a V_C_E of a constant.
7449 2010-05-14 Jan Hubicka <jh@suse.cz>
7451 * tree.h (memory_identifier_string): Remove.
7452 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
7453 (ipa_reference_global_vars_info_d): Remove statics_not_read and
7454 statics_not_written.
7455 (ipa_reference_optimization_summary_d): New structure.
7456 (ipa_reference_optimization_summary_t): New type and vector.
7457 (ipa_reference_vars_info_d): Embedd structures instead of using
7459 (reference_vars_to_consider): Remove out of GGC space.
7460 (module_statics_escape): Remove.
7461 (global_info_obstack): Rename to ...
7462 (optimization_summary_obstack): ... this one.
7463 (initialization_status_t): Remove.
7464 (memory_identifier_string): Remove.
7465 (get_reference_vars_info): Fix indenting.
7466 (set_reference_vars_info): Likewise.
7467 (get_reference_optimization_summary): New.
7468 (set_reference_optimization_summary): New.
7469 (get_global_reference_vars_info): Remove.
7470 (ipa_reference_get_read_global): Remove.
7471 (ipa_reference_get_written_global): Remove.
7472 (ipa_reference_get_not_read_global): Update.
7473 (ipa_reference_get_not_written_global): Update.
7474 (is_proper_for_analysis): Outlaw addressable.
7475 (propagate_bits): Update for new datastructures.
7476 (analyze_variable): Remove.
7477 (init_function_info): Update for new datastructures.
7478 (clean_function_local_data): Remove.
7479 (clean_function): Remove.
7480 (copy_global_bitmap): Use optimizations_summary_obstack.
7481 (duplicate_node_data): Duplicate optimization summary only.
7482 (remove_node_data): Remove optimization summary only.
7483 (generate_summary): Do not analyze variables; do not compute
7484 module_statics_escape; do not prune solutions by it.
7485 (read_write_all_from_decl): Fix typos in comments.
7486 (propagate): Doscover readonly and nonaddressable first;
7487 update for new datastructures; share global bitmaps.
7488 * ipa-reference.h (ipa_reference_get_read_global,
7489 ipa_reference_get_written_global): Remove.
7490 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
7491 * Makefile.in: Remove ipa-refereference from GT files.
7493 2010-05-14 Jakub Jelinek <jakub@redhat.com>
7496 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
7497 for all SYMBOL_REF_DECLs.
7499 2010-05-14 Jan Hubicka <jh@suse.cz>
7501 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
7502 (varpool_all_refs_explicit_p): New inline function.
7503 * ipa-reference.c: Update comment.
7504 (module_statics_written): Remove.
7505 (get_static_decl): Remove.
7506 (ipa_init): Do not initialize module_statics_written.
7507 (analyze_function): Likewise.
7508 (generate_summary): Likewise; do not compute module_statics_readonly
7509 and do not update variable flags.
7510 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
7511 * ipa.c: Inlucde flags.h
7512 (cgraph_local_node_p): New.
7513 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
7514 promote functions to local.
7515 (ipa_discover_readonly_nonaddressable_vars): New function.
7516 (function_and_variable_visibility): Use cgraph_local_node_p.
7517 * varpool.c (varpool_finalize_decl): Set force_output for
7518 DECL_PRESERVE_P vars.
7520 2010-05-14 Jan Hubicka <jh@suse.cz>
7522 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
7524 2010-05-14 Richard Guenther <rguenther@suse.de>
7526 PR tree-optimization/44119
7527 * tree-ssa-pre.c (eliminate): Properly mark replacement of
7528 a PHI node necessary.
7530 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
7532 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
7534 2010-05-14 Jason Merrill <jason@redhat.com>
7537 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
7538 (gimple_call_set_nothrow): New.
7539 * gimple.c (gimple_build_call_from_tree): Call it.
7540 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
7543 * gimplify.c (gimplify_seq_add_stmt): No longer static.
7544 * gimple.h: Declare it.
7545 * gimple.c (gimple_build_eh_filter): No ops.
7547 2010-05-14 Jan Hubicka <jh@suse.cz>
7549 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
7550 nodes already in queue.
7551 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
7554 2010-05-14 Jakub Jelinek <jakub@redhat.com>
7557 * cfgexpand.c (expand_debug_expr): If non-memory op0
7558 has BLKmode, return NULL.
7560 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
7562 * config.gcc: Add support for --with-cpu option for bdver1.
7563 * config/i386/i386.h (TARGET_BDVER1): New macro.
7564 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
7565 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
7566 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
7567 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
7568 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
7569 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
7570 (processor_type): Add PROCESSOR_BDVER1.
7571 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
7572 processor_type in config/i386/i386.h.
7573 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
7574 movaps <reg, reg> instead of movapd <reg, reg> when replacing
7575 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
7576 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
7577 to emit packed xor instead of packed double/packed integer
7578 xor for SSE and AVX when moving a zero value.
7579 * config/i386/sse.md: Add check for
7580 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
7581 movapd/movdqa for SSE and AVX.
7582 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
7583 single logical operations i.e and, or and xor instead of packed double
7584 logical operations for SSE and AVX.
7585 * config/i386/i386-c.c (ix86_target_macros_internal):
7586 Add PROCESSOR_BDVER1.
7587 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
7588 (has_fma4, has_xop): New.
7589 * config/i386/i386.c (bdver1_cost): New variable.
7590 (m_BDVER1): New macro.
7591 (m_AMD_MULTIPLE): Add m_BDVER1.
7592 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
7593 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
7594 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
7595 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
7596 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
7597 x86_tune_sse_partial_reg_dependency,
7598 x86_tune_sse_unaligned_load_optimal,
7599 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
7600 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
7601 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
7602 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
7603 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
7604 Enable/disable for bdver1.
7605 (processor_target_table): Add bdver1_cost.
7606 (cpu_names): Add bdver1.
7607 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
7608 processor_alias_table.
7609 (ix86_expand_vector_move_misalign): Change.
7610 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
7611 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
7612 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
7613 of movupd/movdqu for SSE and AVX.
7614 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
7615 (ix86_tune_adjust_cost): Add code for bdver1.
7616 (standard_sse_constant_opcode): Add check for
7617 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
7618 of packed double xor for SSE and AVX.
7620 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
7622 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
7625 2010-05-14 Tristan Gingold <gingold@adacore.com>
7627 * toplev.c (default_debug_hooks): Remove this variable.
7628 (process_options): Remove assignments to default_debug_hooks.
7630 2010-05-14 Martin Jambor <mjambor@suse.cz>
7632 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
7633 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
7634 * langhooks.h (struct lang_hooks_for_decls): Removed field
7636 * tree.c (free_lang_data): Remove assignment to
7637 lang_hooks.fold_obj_type_ref.
7638 * tree.def (OBJ_TYPE_REF): Update comment.
7640 2010-05-14 Richard Guenther <rguenther@suse.de>
7642 PR tree-optimization/44124
7643 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
7645 2010-05-14 Alan Modra <amodra@gmail.com>
7648 * config/rs6000/rs6000.c (struct machine_function): Reorder
7649 fields for better packing. Add lr_save_state.
7650 (rs6000_ra_ever_killed): Return lr_save_state if set.
7651 (rs6000_emit_eh_reg_restore): Set lr_save_state.
7653 2010-05-13 Jan Hubicka <jh@suse.cz>
7655 * varpool.c (decide_is_variable_needed): Drop code checking
7656 TREE_SYMBOL_REFERENCED.
7658 2010-05-13 Jan Hubicka <jh@suse.cz>
7660 * final.c (output_addr_const): Do not call mark_decl_referenced.
7661 * cgraphunit.c (process_function_and_variable_attributes): Use
7662 mark_needed_node dirrectly.
7663 (assemble_thunk): Do not call mark_decl_referenced.
7665 2010-05-13 Anatoly Sokolov <aesok@post.ru>
7667 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
7669 2010-05-13 Jeff Law <law@redhat.com>
7671 * ira-conflicts.c (print_allocno_conflicts): New function broken out
7673 (print_conflicts): Call print_allocno_conflicts.
7675 2010-05-13 Jakub Jelinek <jakub@redhat.com>
7678 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
7681 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
7683 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
7684 t-mingw-w64 or t-mingw-w32 for multilib configuration.
7685 * config/i386/t-mingw-w32: New.
7686 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
7688 2010-05-13 Martin Jambor <mjambor@suse.cz>
7690 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
7692 * gimple-fold.c (get_base_binfo_for_type): New function.
7693 (gimple_get_relevant_ref_binfo): Likewise.
7694 (gimple_fold_obj_type_ref_known_binfo): Likewise.
7695 (gimple_fold_obj_type_ref): Likewise.
7696 (fold_gimple_call): Simplify condition for folding virtual calls
7697 and call gimple_fold_obj_type_ref.
7698 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
7699 (gimple_fold_obj_type_ref_known_binfo): Likewise.
7701 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
7703 * config/rs6000/rs6000-protos.h
7704 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
7705 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
7706 (rs6000_debug_mode_dependent_address)
7707 (rs6000_mode_dependent_address_ptr): Likewise.
7709 2010-05-13 Jakub Jelinek <jakub@redhat.com>
7712 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
7714 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
7715 * tree-sra.c (create_access_replacement): Call unshare_expr before
7716 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
7717 * dwarf2out.c: Include tree-flow.h.
7718 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
7719 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
7720 Handle DW_OP_bit_piece.
7721 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
7722 construct_piece_list, adjust_piece_list): New functions.
7723 (add_var_loc_to_decl): Handle SRA optimized variables.
7724 Adjust for var_loc_note to loc field renaming.
7725 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
7726 in VAR_LOCATION note.
7727 (new_loc_descr_op_bit_piece): New function.
7728 (dw_sra_loc_expr): New function.
7729 (dw_loc_list): Use it. Don't handle the last range after the
7730 loop, handle it inside of the loop. Adjust for var_loc_note
7731 to loc field renaming.
7732 (add_location_or_const_value_attribute): Only special case
7733 single entry loc lists if loc is NOTE_P. Adjust for
7734 var_loc_note to loc field renaming.
7735 (dwarf2out_var_location): Don't set newloc->var_loc_note
7736 and newloc->next here.
7738 2010-05-12 Jan Hubicka <jh@suse.cz>
7740 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
7742 * cgraph.h (cgraph_only_called_directly_p,
7743 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
7744 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
7745 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
7747 * ipa.c (cgraph_remove_unreachable_nodes): Use
7748 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
7750 * tree-inline.c (copy_bb): Check address_taken flag.
7751 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
7752 externally_visible flag.
7754 2010-05-12 Jason Merrill <jason@redhat.com>
7758 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
7759 * sdbout.c (plain_type_1): Likewise.
7760 * dwarf2out.c (is_base_type): Likewise.
7761 (gen_type_die_with_usage): Likewise. Generate
7762 DW_TAG_unspecified_type for any LANG_TYPE.
7764 2010-05-12 Jan Hubicka <jh@suse.cz>
7766 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
7768 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
7769 (cgraph_clone_edge): Update.
7770 (cgraph_node_remove_callees): Remove indirect calls too.
7771 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
7772 (cgraph_create_indirect_edge): Update prototype.
7773 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
7774 is_proper_for_analysis.
7775 (add_new_function, visited_nodes, function_insertion_hook_holder,
7776 get_local_reference_vars_info, mark_address_taken, mark_address,
7777 mark_load, mark_store, check_asm_memory_clobber, check_call,
7778 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
7779 (ipa_init): Do not initialize visited_nodes;
7780 function_insertion_hook_holder.
7781 (analyze_variable): Rewrite.
7782 (analyze_function): Rewrite.
7783 (copy_local_bitmap): Remove.
7784 (duplicate_node_dat): Do not duplicate local info.
7785 (generate_summary): Simplify to only walk cgraph.
7786 (write_node_summary_p, ipa_reference_write_summary,
7787 ipa_reference_read_summary): Remove.
7788 (propagate): Do not remove function insertion;
7790 (pass_ipa_reference): NULLify summary handling fields.
7791 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
7792 (input_edge): Input ecf_flags.
7793 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
7794 (update_indirect_edges_after_inlining): Ignore edges with unknown
7797 2010-05-12 Sriraman Tallam <tmsriram@google.com>
7799 * implicit-zee.c: New file.
7800 * tree-pass.h (pass_implicit_zee): Declare.
7801 * passes.c (init_optimization_passes): Add zee pass.
7802 * common.opt (fzee): New flag.
7803 * timevar.def (TV_ZEE): Define.
7804 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
7806 * Makefile.in (implicit-zee.o): Add new build file.
7808 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
7809 Nathan Froyd <froydnj@codesourcery.com>
7811 * c-common.c (sync_resolve_params): Remove write-only variable.
7813 2010-05-12 Anatoly Sokolov <aesok@post.ru>
7815 * target.h (struct gcc_target): Add mode_dependent_address_p field.
7816 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
7817 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
7818 * targhooks.c (default_mode_dependent_address_p): New function.
7819 * targhooks.h (default_mode_dependent_address_p): Declare function.
7820 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
7821 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
7822 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
7823 target hook. Change return type to bool.
7824 * recog.h (mode_dependent_address_p): Change return type to bool.
7826 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
7827 Nathan Froyd <froydnj@codesourcery.com>
7829 * tree-mudflap.c (build_function_type_0, build_function_type_1,
7830 build_function_type_2, build_function_type_3): Remove.
7831 (mudflap_init): Use build_function_type_list.
7833 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
7834 Nathan Froyd <froydnj@codesourcery.com>
7836 * coverage.c (build_fn_info_value): Call build_constructor instead of
7837 build_constructor_from_list.
7838 (build_ctr_info_value): Likewise.
7839 (build_gcov_info): Likewise.
7841 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
7843 * tree.c (build_constructor): Compute TREE_CONSTANT for the
7844 resultant constructor.
7845 (build_constructor_single): Don't set TREE_CONSTANT.
7846 (build_constructor_from_list): Don't compute TREE_CONSTANT.
7848 2010-05-12 Jan Hubicka <jh@suse.cz>
7850 * cgraph.h (struct varpool_node): Add aux.
7851 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
7852 * varpool.c (varpool_remove_node): Do not remove initializer.
7853 (varpool_reset_queue): Export.
7854 (varpool_finalize_decl): Volatile vars are forced to be output.
7855 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
7857 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
7858 process_references, varpool_can_remove_if_no_refs): New functions.
7859 (cgraph_remove_unreachable_nodes): Handle variables too.
7861 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
7864 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
7866 2010-05-12 Jakub Jelinek <jakub@redhat.com>
7869 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
7870 change value of ORT_TASK.
7871 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
7872 (omp_notice_threadprivate_variable): New function.
7873 (omp_notice_variable): Call it for threadprivate variables.
7874 If enclosing ctx is a task, print enclosing task rather than
7875 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
7876 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
7877 if task has untied clause.
7880 * dwarf2out.c (base_type_die): Don't add name attribute here.
7881 (modified_type_die): Instead of sizetype use
7882 its underlying original type. If a DW_TAG_base_type doesn't
7883 have name added, add __unknown__.
7884 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
7885 always call force_type_die instead.
7887 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
7889 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
7890 for __stack_chk_guard.
7892 2010-05-11 Jakub Jelinek <jakub@redhat.com>
7894 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
7895 don't call start_source_file debug hook here...
7896 (finish_options): ... but here, after outputting predefined and
7897 command line defines and undefs.
7900 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
7902 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
7903 optimizing away empty bb with no successors, move over its
7904 footer chain to fallthru predecessor.
7905 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
7906 (rtl_split_edge): For asm goto call patch_jump_insn even if
7907 splitting fallthru edge.
7910 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
7911 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
7912 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
7913 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
7917 * c-parser.c (c_parser_expression): Mark LHS of a comma
7918 expression as read if it is a decl, handled component or
7919 COMPOUND_EXPR with that on the RHS.
7920 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
7921 if it is a decl or handled component.
7923 2010-05-11 Jan Hubicka <jh@suse.cz>
7925 * lto-symtab.c (lto_symtab_free): New function.
7926 * lto-streamer.h (lto_symtab_free): Declare.
7928 2010-05-11 Jan Hubicka <jh@suse.cz>
7930 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
7931 that if function is needed it is reachable.
7932 (lto_output_node): See if it the function is reachable or referenced.
7933 (output_cgraph): Update call of lto_output_node.
7934 * lto-streamer.h (reachable_from_other_partition_p): Declare.
7936 2010-05-11 Jan Hubicka <jh@suse.cz>
7938 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
7941 2010-05-11 Jan Hubicka <jh@suse.cz>
7943 PR tree-optimize/44063
7944 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
7946 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
7948 (estimate_function_body_sizes): Compute sizes even when disregarding.
7950 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
7952 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
7954 2010-05-11 Jan Hubicka <jh@suse.cz>
7956 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
7957 into every boundary.
7959 2010-05-11 Jan Hubicka <jh@suse.cz>
7961 * matrix-reorg.c (matrix_reorg): Rebuild edges.
7963 2010-05-11 Jan Hubicka <jh@suse.cz>
7965 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
7966 lto_streamer_cache_delete): Put nodes into heap.
7967 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
7970 2010-05-11 Jan Hubicka <jh@suse.cz>
7972 * cgraphbuild.c (cgraph_rebuild_references): New.
7973 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
7975 * cgraph.h (cgraph_rebuild_references): Declare.
7976 * tree-inline.c (tree_function_versioning): Use it.
7977 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
7979 2010-05-11 Jan Hubicka <jh@suse.cz>
7981 * cgraph.c: Include ipa-utils.h
7982 (cgraph_create_virtual_clone): Update references.
7983 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
7985 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
7987 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
7988 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
7991 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
7993 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
7995 2010-05-11 Jakub Jelinek <jakub@redhat.com>
7997 * gcc.c (execute): For -### don't quote arguments that
7998 contain just alphanumerics and _/-. characters.
7999 * doc/invoke.texi: Document that change for -###.
8002 * df-problems.c (struct dead_debug): Add to_rescan field.
8003 (dead_debug_init): Clear to_rescan field.
8004 (dead_debug_finish): Rescan all debug insns in to_rescan
8005 bitmap and free the bitmap.
8006 (dead_debug_insert_before): Instead of rescanning debug insns
8007 immediately queue their rescanning until dead_debug_finish.
8008 (df_note_bb_compute): After dead_debug_add do continue instead
8011 2010-05-10 Jakub Jelinek <jakub@redhat.com>
8014 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
8015 clear also INSN_REG_USE_LIST.
8017 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8019 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
8021 2010-05-10 Jan Hubicka <jh@suse.cz>
8023 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
8026 2010-05-10 Jan Hubicka <jh@suse.cz>
8028 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
8030 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
8031 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
8032 (lto_streamer_cache_create): Init alloc pool.
8033 (lto_streamer_cache_delete): Free alloc pool.
8034 * lto-streamer.h: Include alloc pool.
8035 (lto_streamer_cache_d): Use alloc pool.
8036 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
8038 2010-05-10 Jan Hubicka <jh@suse.cz>
8040 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
8041 * cgraphbuild.c: Include except.h
8042 (record_type_list, record_eh_tables): New function.
8043 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
8045 2010-05-10 Jan Hubicka <jh@suse.cz>
8047 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
8048 __frame_dummy_init_array_entry, force_to_data): Attribute as used
8051 2010-05-10 Michael Matz <matz@suse.de>
8053 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
8054 (can_reassociate_p): Use FLOAT_TYPE_P.
8055 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
8056 (vect_force_simple_reduction): ... this.
8057 * tree-parloops.c (gather_scalar_reductions): Use
8058 vect_force_simple_reduction.
8059 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
8060 vect_is_simple_reduction, add modify argument, if true rewrite
8061 "a-b" into "a+(-b)".
8062 (vect_is_simple_reduction, vect_force_simple_reduction): New
8064 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
8066 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
8067 Vladimir Makarov <vmakarov@redhat.com>
8069 PR rtl-optimization/44012
8070 * ira-build.c (remove_unnecessary_allocnos): Nullify
8071 regno_allocno_map of the removed allocno.
8073 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8075 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
8077 * configure: Regenerate.
8079 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8081 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
8083 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
8084 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
8086 * configure: Regenerate.
8088 2010-05-10 Richard Guenther <rguenther@suse.de>
8090 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
8091 marked if the entry identifier is marked.
8093 2010-05-10 Richard Guenther <rguenther@suse.de>
8095 * c-common.c (struct c_common_attributes): Add fnspec attribute.
8096 (handle_fnspec_attribute): New function.
8097 * gimple.h (gimple_call_return_flags): Declare.
8098 (gimple_call_arg_flags): Likewise.
8099 * gimple.c (gimple_call_arg_flags): New function.
8100 (gimple_call_return_flags): Likewise.
8101 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
8103 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
8105 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
8106 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
8108 (make_heapvar_for): ... this new function.
8109 (handle_rhs_call): Handle fnspec attribute argument specifiers.
8110 (handle_lhs_call): Likewise.
8111 (find_func_aliases): Adjust.
8113 2010-05-10 Richard Guenther <rguenther@suse.de>
8115 PR tree-optimization/44050
8116 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
8118 2010-05-10 Wei Guozhi <carrot@google.com>
8121 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
8123 2010-05-09 Joseph Myers <joseph@codesourcery.com>
8126 * c-typeck.c (lookup_field): Take a type directly. Update
8128 (build_component_ref): Update call to lookup_field.
8129 (set_init_label): Use lookup_field to find initialized field.
8130 Handle returned list of fields like a sequence of designators.
8132 2010-05-09 Richard Guenther <rguenther@suse.de>
8135 * fold-const.c (tree_single_nonzero_warnv_p): Properly
8136 handle &FUNCTION_DECL.
8138 2010-05-09 Joseph Myers <joseph@codesourcery.com>
8141 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
8142 structures and unions recursively.
8143 (detect_field_duplicates): Move duplicate detection with a hash to
8144 detect_field_duplicates_hash. Always use a hash if anonymous
8145 structures or unions are present.
8146 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
8149 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
8152 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
8153 detect Atom, Core 2 and Core i7.
8155 2010-05-09 Richard Guenther <rguenther@suse.de>
8157 * gcc.c (store_arg): Handle temporary file deletion for
8160 2010-05-09 Richard Guenther <rguenther@suse.de>
8163 * ipa-inline.c (estimate_function_body_sizes): Return after
8164 disregarding inline limits.
8166 2010-05-09 Richard Guenther <rguenther@suse.de>
8168 * gcc.c (store_arg): Revert last change.
8170 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
8173 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
8174 (optimize_ops_list): Call it.
8176 2010-05-08 Richard Guenther <rguenther@suse.de>
8178 PR tree-optimization/44030
8179 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
8180 NECESSARY flag if we propagate from a inserted expression.
8182 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8184 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
8185 domain types as equal if they are both PLACEHOLDER_EXPRs.
8187 2010-05-08 Richard Guenther <rguenther@suse.de>
8189 * lto-wrapper.c (run_gcc): Remove linker output from
8190 command line for LTRANS invocation.
8192 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
8194 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8195 lto-macho as lto_binary_reader.
8196 * target.h (struct gcc_target): New hooks lto_start and lto_end.
8197 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
8198 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
8199 in lto_start and lto_end calls.
8200 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
8202 (scan_prog_file): Update is_elf_or_coff call.
8203 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
8205 * collect2.c (main): Fix enum comparison.
8207 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
8209 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
8210 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
8211 and TARGET_ASM_LTO_END.
8212 * darwin.c: Include obstack.h and lto-streamer.h.
8213 (lto_section_names_offset, lto_section_names_obstack,
8214 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
8216 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
8217 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
8218 to a temporary file.
8219 (darwin_asm_lto_end): New function. Restore asm_out_file.
8220 (darwin_asm_named_section): For LTO sections, replace the name with
8221 the offset of the section name in a string table, and build this
8223 (darwin_file_start): Initialize global vars for LTO support.
8224 (darwin_file_end): If output to asm_out_file was redirected, append it
8225 to the proper asm_out_file here. Add the section names section.
8227 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
8229 * c-pragma.c (pending_weak_d, pending_weak): New.
8230 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
8231 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
8232 handle_pragma_weak): Update the uses of pending_weaks.
8234 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8236 PR documentation/44016
8237 * doc/standards.texi (Standards): Link to unversioned
8238 cxx0x_status.html page.
8240 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
8243 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
8244 in addition to TREE_USED, to avoid "set but unused" warnings.
8246 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
8248 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
8249 (is_loop_prefetching_profitable): Do not insert prefetches
8250 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
8251 times the prefetch ahead distance.
8253 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
8255 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
8256 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
8257 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
8260 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
8262 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
8263 a diagnostic info when the insn-to-mem ratio is too small.
8265 2010-05-07 Richard Guenther <rguenther@suse.de>
8267 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
8269 (store_arg): Queue temp_filename for deletion instead of
8272 2010-05-07 Richard Guenther <rguenther@suse.de>
8274 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
8275 (run_gcc): Handle LTRANS phase invocation.
8276 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
8278 2010-05-07 Jakub Jelinek <jakub@redhat.com>
8280 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
8281 this is also meaningful on PARM_DECLs and RESULT_DECLs.
8283 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8285 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
8287 2010-05-07 Richard Guenther <rguenther@suse.de>
8289 PR tree-optimization/44020
8290 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
8291 code when PRE is not yet initialized.
8293 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8295 * config/mips/dbxmdebug.h: Remove.
8296 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
8298 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
8300 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
8301 with null pointer and also warn about ordered comparison of zero with
8304 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8306 * graphite-blocking.c
8307 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
8308 * graphite-clast-to-gimple.c
8309 (clast_to_gcc_expression): Same.
8310 (precision_for_value): Same.
8311 (precision_for_interval): Same.
8312 (gcc_type_for_interval): Same.
8313 (graphite_create_new_guard): Same.
8314 (compute_bounds_for_level): Same.
8315 (graphite_create_new_loop_guard): Same.
8316 * graphite-interchange.c
8317 (build_linearized_memory_access): Same.
8318 (pdr_stride_in_loop): Same.
8319 (memory_strides_in_loop_1): Same.
8320 (memory_strides_in_loop): Same.
8321 (extend_scattering): Same.
8322 (psct_scattering_dim_for_loop_depth): Same.
8323 (pbb_number_of_iterations): Same.
8325 (debug_iteration_domains): Same.
8327 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8328 (ppl_set_inhomogeneous_gmp): Same.
8329 (ppl_strip_loop): Same.
8330 (ppl_lexico_compare_linear_expressions): Same.
8331 (ppl_read_polyhedron_matrix): Same.
8332 (ppl_max_for_le_pointset): Same.
8334 (ppl_read_polyhedron_matrix): Same.
8335 (tree_int_to_gmp): Same.
8336 (gmp_cst_to_tree): Same.
8337 (ppl_set_inhomogeneous): Same.
8338 (ppl_set_inhomogeneous_tree): Same.
8339 (ppl_set_coef): Same.
8340 (ppl_set_coef_tree): Same.
8341 * graphite-sese-to-poly.c
8342 (build_pbb_scattering_polyhedrons): Same.
8343 (build_scop_scattering): Same.
8344 (scan_tree_for_params_right_scev): Same.
8345 (scan_tree_for_params): Same.
8346 (find_params_in_bb): Same.
8347 (find_scop_parameters): Same.
8348 (add_upper_bounds_from_estimated_nit): Same.
8349 (build_loop_iteration_domains): Same.
8350 (add_condition_to_domain): Same.
8351 (pdr_add_memory_accesses): Same.
8353 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8355 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
8356 CLooG's value_* macros to their respective mpz_* counterparts.
8357 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
8358 (graphite_create_new_loop_guard): Same.
8359 * graphite-interchange.c (build_linearized_memory_access): Same.
8360 (pdr_stride_in_loop): Same.
8361 (memory_strides_in_loop_1): Same.
8362 (1st_interchange_profitable_p): Same.
8363 * graphite-poly.c (extend_scattering): Same.
8364 (psct_scattering_dim_for_loop_depth): Same.
8365 (pbb_number_of_iterations): Same.
8366 (pbb_number_of_iterations_at_time): Same.
8367 * graphite-poly.h (new_1st_loop): Same.
8368 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
8369 (oppose_constraint): Same.
8370 (insert_constraint_into_matrix): Same.
8371 (ppl_set_inhomogeneous_gmp): Same.
8372 (ppl_set_coef_gmp): Same.
8373 (ppl_strip_loop): Same.
8374 (ppl_lexico_compare_linear_expressions): Same.
8375 (ppl_max_for_le_pointset): Same.
8376 (ppl_min_for_le_pointset): Same.
8377 (ppl_build_realtion): Same.
8378 * graphite-ppl.h (gmp_cst_to_tree): Same.
8379 (ppl_set_inhomogeneous): Same.
8380 (ppl_set_inhomogeneous_tree): Same.
8381 (ppl_set_coef): Same.
8382 (ppl_set_coef_tree): Same.
8383 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
8384 (build_scop_scattering): Same.
8385 (add_value_to_dim): Same.
8386 (scan_tree_for_params_right_scev): Same.
8387 (scan_tree_for_params_int): Same.
8388 (scan_tree_for_params): Same.
8389 (find_params_in_bb): Same.
8390 (find_scop_parameters): Same.
8391 (add_upper_bounds_from_estimated_nit): Same.
8392 (build_loop_iteration_domains): Same.
8393 (create_linear_expr_from_tree): Same.
8394 (add_condition_to_domain): Same.
8395 (pdr_add_memory_accesses): Same.
8397 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
8398 Jason Merrill <jason@redhat.com>
8400 * c-common.c (c_common_reswords): Add nullptr.
8401 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
8402 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
8403 (gen_type_die_with_usage): Likewise.
8404 * dbxout.c (dbxout_type): Likewise.
8405 * sdbout.c (plain_type_1): Likewise.
8407 2010-05-06 Jason Merrill <jason@redhat.com>
8409 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
8410 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
8412 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
8414 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
8415 stripping WITH_SIZE_EXPR.
8416 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
8419 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8421 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
8422 list of obsolete configurations.
8423 Disabled check for obsolete configurations.
8424 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
8425 Removed support for previous versions.
8426 * config/mips/iris.h: Removed.
8427 * config/mips/iris5.h: Removed.
8428 * config/mips/iris6.h: Merged old iris.h contents.
8429 (TARGET_IRIX): Removed.
8430 (DRIVER_SELF_SPECS): Removed mabi=32.
8431 (IDENT_ASM_OP): Removed undef.
8432 (STARTFILE_SPEC): Removed mabi=32.
8433 (ENDFILE_SPEC): Likewise.
8434 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
8435 (MACHINE_TYPE): Update for IRIX 6.5.
8436 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
8437 TARGET_IRIX by TARGET_IRIX6.
8438 (mips_file_start): Likewise.
8439 (mips_output_external): Remove IRIX 5/6 O32 support.
8440 (mips_output_function_prologue): Likewise.
8441 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
8443 (TARGET_CPU_CPP_BUILTINS): Likewise.
8444 (TARGET_IRIX): Removed.
8445 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
8446 (MULTILIB_DIRNAMES): Removed 32.
8447 (MULTILIB_OSDIRNAMES): Removed ../lib.
8448 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
8449 (Specific, mips-sgi-irix5): Document removal.
8450 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
8451 Remove references to older IRIX 6 releases and the O32 ABI.
8453 2010-05-06 Jakub Jelinek <jakub@redhat.com>
8456 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
8457 instead of DF_REF_REAL_REG.
8459 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
8462 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
8463 handling to still return true for x64 targets.
8465 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
8467 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
8469 2010-05-06 Jan Hubicka <jh@suse.cz>
8471 PR tree-optimization/43791
8472 * ipa-inline.c (update_caller_keys): Remove bogus
8473 disregard_inline_limits check.
8475 2010-05-06 Michael Matz <matz@suse.de>
8477 PR tree-optimization/43984
8478 * tree-ssa-pre.c (inserted_phi_names): Remove.
8479 (inserted_exprs): Change to bitmap.
8480 (create_expression_by_pieces): Set bits, don't append to vector.
8481 (insert_into_preds_of_block): Don't handle inserted_phi_names.
8482 (eliminate): Don't look at inserted_phi_names, remove deleted
8483 insns from inserted_exprs.
8484 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
8485 (init_pre, fini_pre): Allocate and free bitmaps.
8486 (execute_pre): Insert insns on edges before elimination.
8488 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
8490 * tree.c (initializer_zerop): Handle STRING_CST.
8492 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
8495 * doc/invoke.texi (Wimplicit): Document as C only.
8496 * opts.c (common_handle_option): Add argument kind.
8497 (handle_option): Rename as read_cmdline_option. Factor out code to...
8498 (handle_option): ... here. New.
8499 (handle_options): Rename as read_cmdline_options.
8500 (decode_options): Update call.
8501 (set_option): Use option index instead of option pointer. Classify
8502 diagnostics correctly.
8503 (enable_warning_as_error): Call handle_option.
8504 * opts.h (set_option): Update declaration.
8505 (handle_option): Declare.
8506 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
8507 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
8508 * c-opts.c (set_Wimplicit): Delete.
8509 (c_family_lang_mask): New static constant.
8510 (c_common_handle_option): Add argument kind. Use handle_option
8511 instead of set_Wimplicit.
8512 (c_common_post_options): warn_implicit and warn_implicit_int
8513 are disabled by default.
8514 * c-common.c (warn_implicit): Do not define here.
8515 * c-common.h (warn_implicit): Do not declare here.
8516 (c_common_handle_option): Update declaration.
8517 * lto-opts.c (lto_reissue_options): Update call to set_option.
8519 2010-05-06 Richard Guenther <rguenther@suse.de>
8521 PR tree-optimization/43571
8522 * domwalk.c (walk_dominator_tree): Walk the dominator
8523 sons in more optimal order.
8525 2010-05-06 Richard Guenther <rguenther@suse.de>
8527 PR tree-optimization/43934
8528 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
8529 (stmt_cost): Likewise.
8530 (extract_true_false_args_from_phi): New helper.
8531 (determine_max_movement): For PHI nodes verify we can hoist them
8532 and compute their cost.
8533 (determine_invariantness_stmt): Handle PHI nodes.
8534 (move_computations_stmt): Likewise. Hoist PHI nodes in
8535 if-converted form using COND_EXPRs.
8536 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
8537 (tree_ssa_lim): Likewise.
8538 * tree-flow.h (tree_ssa_lim): Adjust prototype.
8539 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
8541 2010-05-06 Richard Guenther <rguenther@suse.de>
8543 PR tree-optimization/43987
8544 * tree-ssa-structalias.c (could_have_pointers): For possibly
8545 address-taken variables force pointers to be recorded.
8546 (create_variable_info_for_1): Likewise.
8547 (push_fields_onto_fieldstack): Pass in wheter all fields
8549 (find_func_aliases): Query types instead of vars whether
8550 they contain pointers where appropriate.
8552 2010-05-06 Jan Hubicka <jh@suse.cz>
8554 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
8555 (record_reference, mark_address, mark_load, mark_store): Record
8557 (record_references_in_initializer): Update call of record_references.
8558 (rebuild_cgraph_edges): Remove all references before rebuiding.
8559 * cgraph.c (cgraph_create_node): Clear ref list.
8560 (cgraph_remove_node): Remove references.
8561 (dump_cgraph_node): Dump references.
8562 (cgraph_clone_node): Clone references.
8563 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
8564 (struct cgraph_node, varpool_node): Add ref_lst.
8565 * ipa-ref.c: New file.
8566 * ipa-ref.h: New file.
8567 * ipa-ref-inline.h: New file.
8568 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
8569 (referenced_from_other_partition_p): New function.
8570 (lto_output_varpool_node): Take set arugment; call
8571 referenced_from_other_partition.
8572 (lto_output_ref): New.
8573 (add_references): New.
8575 (output_cgraph): Compute boundary based on references; output refs.
8576 (output_varpool): Accept cgraph_node_set argument.
8579 (input_cgraph): Call input_refs.
8580 * lto-section-in.c (lto_section_name): Add refs.
8581 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
8582 (ipa-ref.o): New file.
8583 * varpool.c (varpool_node): Clear ipa ref list.
8584 (varpool_remove_node): Remove references.
8585 (dump_varpool_node): Dump references.
8586 (varpool_assemble_decl): Only compile finalized ones.
8587 (varpool_extra_name_alias): Initialize ref list.
8588 * lto-streamer.c (lto-get_section_name): Add .refs section.
8589 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
8590 (referenced_from_other_partition_p): Declared.
8592 2010-05-06 Ira Rosen <irar@il.ibm.com>
8594 PR tree-optimization/43901
8595 * tree-vect-stmts.c (vectorizable_call): Assert that vector
8596 type is not NULL if it's transformation phase, and return
8597 FALSE if it's analysis.
8598 (vectorizable_conversion, vectorizable_operation,
8599 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
8601 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
8603 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
8605 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
8607 * config/mips/mips-protos.h
8608 (mips_small_register_classes_for_mode_p): Delete prototype.
8610 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
8612 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
8613 * config/arm/arm.c (multiple_operation_profitable_p,
8614 compute_offset_order): New static functions.
8615 (load_multiple_sequence, store_multiple_sequence): Use them.
8616 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
8617 memory offsets, not register numbers.
8618 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
8620 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
8622 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
8623 (get_pending_sizes, put_pending_size, put_pending_sizes):
8624 Update the uses of pending_sizes.
8625 * c-decl.c (store_parm_decls): Likewise.
8626 * c-tree.h (struct c_arg_info): Likewise.
8627 * tree.h: Update the prototype for get_pending_sizes and
8630 2010-05-05 Jason Merrill <jason@redhat.com>
8633 * c-common.c (handle_aligned_attribute): Respect
8634 ATTR_FLAG_TYPE_IN_PLACE.
8637 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
8638 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
8639 (TARGET_INITIALIZER): Use it.
8640 * c-common.c (attribute_takes_identifier_p): Call it.
8641 * c-common.h: Update prototype.
8642 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
8643 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
8645 2010-05-05 Jakub Jelinek <jakub@redhat.com>
8648 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
8649 DW_ID_down_case for Fortran compilation units.
8651 2010-05-05 Jan Hubicka <jh@suse.cz>
8653 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
8656 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
8658 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
8659 a variable-sized RESULT_DECL.
8661 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
8663 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
8665 2010-05-05 Jason Merrill <jason@redhat.com>
8668 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
8670 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
8672 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
8673 Jakub Jelinek <jakub@redhat.com>
8676 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
8677 (dead_debug_init, dead_debug_finish): New functions.
8678 (dead_debug_add, dead_debug_insert_before): Likewise.
8679 (df_note_bb_compute): Initialize a dead_debug object, add dead
8680 debug uses to it, insert debug bind insns before death insns,
8681 reset debug insns that refer to pending uses at the end.
8682 * rtl.h (make_debug_expr_from_rtl): New prototype.
8683 * varasm.c (make_debug_expr_from_rtl): New function.
8685 2010-05-05 Jan Hubicka <jh@suse.cz>
8687 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
8688 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
8689 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
8690 lto_varpool_encoder_deref, lto_varpool_encoder_size,
8691 lto_varpool_encoder_encode_initializer_p,
8692 lto_set_varpool_encoder_encode_initializer): New functions.
8693 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
8694 call output_varpool.
8695 (input_varpool_node): Do not always set analyzed.
8696 (input_cgraph_1): Return vector of cgraph nodes.
8697 (input_varpool_1): Return vector of varpools.
8698 (input_cgraph): Free the vectors.
8699 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8700 output only initializers needed.
8701 (lto_output): Only call output_cgraph.
8702 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
8703 * lto-section-out.c (lto_new_out_decl_state): Initialize
8704 state->varpool_node_encoder.
8705 * lto-streamer.h (lto_varpool_encoder_d): New.
8706 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
8707 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
8708 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
8709 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
8710 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
8712 (output_varpool, input_varpool): Remove declarations.
8714 2010-05-05 Jan Hubicka <jh@suse.cz>
8716 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
8717 with body can prevail.
8719 2010-05-05 Jan Hubicka <jh@suse.cz>
8721 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
8724 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8726 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
8728 * gengtype.h (erro_at_line): Constify pos argument.
8730 * gengtype.c: Include hashtab.h.
8731 (enum gc_used): Document GC_MAYBE_POINTED_TO.
8732 (error_at_line): Constify pos argument.
8733 (do_typedef): Initialize p->opt field.
8734 (get_file_gtfilename): Fix comment typo.
8735 (struct walk_type_data): Constify line field.
8736 (get_output_file_for_structure): New function.
8737 (write_local_func_for_structure): Constify orig_s argument.
8738 Use get_output_file_for_structure.
8739 (write_func_for_structure): Use get_output_file_for_structure.
8740 (INDENT): New define.
8741 (dump_pair, dump_type, dump_type_list, dump_typekind)
8742 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
8743 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
8745 (seen_types): New variable.
8746 (main): New variable do_dump. Process "-d" command line option.
8747 Call dump_everything if dump requested.
8749 2010-05-05 Jakub Jelinek <jakub@redhat.com>
8751 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
8752 in a temporary instead of invoking the macro multiple times.
8753 (track_expr_p): Likewise.
8755 2010-05-04 Neil Vachharajani <nvachhar@google.com>
8757 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
8759 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
8760 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
8761 conditions for printing notes.
8762 * common.opt (-Wcoverage-mismatch): Allow negative, default to
8763 true, update documentation.
8764 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
8766 2010-05-04 Jakub Jelinek <jakub@redhat.com>
8769 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
8772 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
8775 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
8776 (*sse_prologue_save_insn1): Likewise.
8777 (SSE prologue save splitter): Likewise.
8779 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
8781 * tree.c (free_lang_data_in_one_sizepos): New inline function.
8782 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
8783 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
8784 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
8785 all decls. Call it on DECL_FIELD_OFFSET of fields.
8786 (find_decls_types_r): Follow DECL_VALUE_EXPR.
8787 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
8789 2010-05-04 Martin Jambor <mjambor@suse.cz>
8791 * tree-sra.c (build_access_from_expr_1): The first parameter type
8792 changed to simple tree.
8793 (build_access_from_expr): Likewise, gsi parameter was eliminated.
8794 (scan_assign_result): Renamed to assignment_mod_result, enum elements
8796 (build_accesses_from_assign): Removed all parameters except for a
8797 simple gimple statement. Now returns a simple bool.
8798 (scan_function): All non-analysis parts moved to separate functions
8799 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
8800 parameters and updated both callers.
8801 (sra_modify_expr): Removed parameter data.
8802 (sra_modify_function_body): New function.
8803 (perform_intra_sra): Call sra_modify_function_body to modify the
8805 (replace_removed_params_ssa_names): Parameter data changed into
8807 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
8808 changed the parameter dont_convert to convert with the opposite
8810 (sra_ipa_modify_assign): Parameter data changed into adjustments
8811 vector, return value changed to bool.
8812 (ipa_sra_modify_function_body): New function.
8813 (sra_ipa_reset_debug_stmts): Updated a comment.
8814 (modify_function): Use ipa_sra_modify_function_body to modify function
8817 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
8820 * alias.c (true_dependence): Handle the same VALUE in x and mem.
8821 (canon_true_dependence): Likewise.
8822 (write_dependence_p): Likewise.
8824 2010-05-04 Jan Hubicka <jh@suse.cz>
8826 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
8827 * cgraphbuild.c: Include ipa-utils.h
8828 (record_reference_ctx): New struct.
8829 (record_reference): Simplify to work on initializers; not statements.
8830 (mark_address, mark_load, mark_store): New.
8831 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
8833 (record_references_in_initializer): Update use of record_reference.
8834 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
8837 2010-05-04 Jan Hubicka <jh@suse.cz>
8839 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
8840 node will be removed anyway.
8841 (lto_varpool_replace_node): Allow also unanalyzed nodes;
8842 relink aliases of node into prevailing node.
8843 * varpool.c (varpool_remove_node): Remove aliases properly;
8844 when removing node, remove all its aliases too; remove DECL_INITIAL
8845 of removed node; ggc_free the varpool node.
8847 2010-05-04 Richard Guenther <rguenther@suse.de>
8849 PR tree-optimization/43879
8850 * tree-ssa-structalias.c (alias_get_name): Use
8851 DECL_ASSEMBLER_NAME if available.
8852 (create_function_info_for): Return the varinfo node.
8853 (ipa_pta_execute): Associate same-body aliases and extra names
8854 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
8856 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
8858 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
8860 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
8863 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
8864 only if HONOR_REG_ALLOC_ORDER is not defined.
8866 2010-05-04 Richard Guenther <rguenther@suse.de>
8868 PR tree-optimization/43949
8869 * tree-vrp.c (extract_range_from_binary_expr): Only handle
8872 2010-04-26 Jason Merrill <jason@redhat.com>
8874 * c.opt (-fstrict-enums): New.
8875 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
8877 2010-05-03 David Ung <davidu@mips.com>
8878 James E. Wilson <wilson@codesourcery.com>
8880 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
8881 emit the trap instruction before the divide for TUNE_74K.
8883 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
8885 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
8886 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
8887 based on the above, for new target hook.
8889 * hooks.c (hook_bool_mode_true): New generic hook.
8890 * hooks.h (hook_bool_mode_true): Add prototype.
8892 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
8894 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
8895 target hook, set to hook_bool_mode_false.
8896 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
8897 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
8898 with targetm.small_register_classes_for_mode_p.
8899 (find_reusable_reload): Likewise.
8900 (combine_reloads): Likewise.
8901 * reload1.c (reload_as_needed): Likewise.
8902 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
8903 * ifcvt.c (noce_process_if_block, check_cond_move_block,
8904 dead_or_predicable): Likewise.
8905 * regmove.c (optimize_reg_copy_1): Likewise.
8906 * calls.c (prepare_call_address): Likewise.
8907 (precompute_register_parameters): Likewise.
8909 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
8911 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
8912 implementation of the hook that considers all register classes
8913 small except for SH64.
8914 (sh_override_options): Use the new hook.
8915 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
8918 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
8920 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
8921 implementation of the hook that considers all register classes
8923 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
8926 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
8928 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
8929 implementation of the hook that considers all register classes
8931 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
8934 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
8936 * config/m32c/m32c.h: Likewise.
8937 * config/pdp11/pdp11.h: Likewise.
8938 * config/avr/avr.h: Likewise.
8939 * config/xtensa/xtensa.h: Likewise.
8940 * config/m68hc11/m68hc11.h: Likewise.
8941 * config/mn10300/mn10300.h: Likewise.
8942 * config/mcore/mcore.h: Likewise.
8943 * config/h8300/h8300.h: Likewise.
8944 * config/bfin/bfin.h: Likewise.
8946 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
8947 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
8949 2010-05-03 Anatoly Sokolov <aesok@post.ru>
8951 * double-int.h (tree_to_double_int): Remove macro.
8952 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
8953 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
8954 (tree_to_double_int): New function.
8955 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
8957 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
8959 2010-05-03 Richard Guenther <rguenther@suse.de>
8961 PR tree-optimization/43971
8962 * tree-ssa-structalias.c (get_constraint_for_1): Fix
8963 constraints in the !flag_delete_null_pointer_checks case.
8965 2010-05-03 Jakub Jelinek <jakub@redhat.com>
8968 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
8969 result mode matches original rtl mode.
8971 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
8974 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
8976 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8978 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
8979 when processing flag options.
8981 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8983 * gcov-iov.c (main): Change format string placeholder
8984 from %#08x to 0x%08x.
8985 * genchecksum.c (dosum): Change format string placeholder
8986 from %#02x to 0x%02x.
8988 2010-05-02 Richard Guenther <rguenther@suse.de>
8990 PR tree-optimization/43879
8991 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
8993 2010-05-02 Bruno Haible <bruno@clisp.org>
8995 * doc/extend.texi (Function Attributes): Fix a typo.
8997 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
9000 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
9001 placeholder from 0x%x to %#x.
9002 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
9003 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
9004 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
9005 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
9006 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
9007 * config/i386/i386.c (ix86_target_string): Ditto.
9008 * config/i386/i386.c (output_pic_addr_const): Ditto.
9009 (print_operand): Ditto.
9011 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
9013 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
9014 placeholder from 0x%x to %#x.
9015 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
9016 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
9017 (ASM_OUTPUT_DEBUG_DATA): Ditto.
9018 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
9019 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
9020 * optc-gen.awk: Ditto.
9021 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
9022 (HOST_WIDE_INT_PRINT_HEX): Ditto.
9023 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
9024 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
9026 2010-05-01 Anatoly Sokolov <aesok@post.ru>
9028 * target.h (struct calls): Add function_value_regno_p field.
9029 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
9030 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
9031 * targhooks.c (default_function_value_regno_p): New function.
9032 * targhooks.h (default_function_value_regno_p): Declare function.
9033 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
9034 * builtins.c. (apply_result_size): (Ditto.).
9035 * combine.c. (likely_spilled_retval_p): (Ditto.).
9036 * mode-switching.c. Include 'target.h'.
9037 (create_pre_exit): Use function_value_regno_p hook.
9038 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
9039 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
9040 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
9042 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
9043 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
9044 (ix86_function_value_regno_p): Declare as static, change argument
9045 type to const unsigned int.
9046 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
9048 2010-05-01 Richard Guenther <rguenther@suse.de>
9050 PR tree-optimization/43949
9051 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
9053 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
9055 2010-05-01 Anatoly Sokolov <aesok@post.ru>
9057 * rtl.h (CONST_DOUBLE_P): Define.
9058 (rtx_to_double_int): Declare.
9059 * emit-rtl.c (rtx_to_double_int): New function.
9060 * dwarf2out.c (insert_double): New function.
9061 (loc_descriptor, add_const_value_attribute): Clean up, use
9062 rtx_to_double_int and insert_double functions.
9064 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
9066 * doc/extend.texi (Inline): Add missing return keyword to examples.
9067 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
9070 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
9072 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
9073 the variable part of the offset as well. Use highest_pow2_factor for
9074 all alignment checks.
9076 2010-04-30 Richard Guenther <rguenther@suse.de>
9078 PR tree-optimization/43879
9079 * tree-ssa-structalias.c (type_could_have_pointers): Functions
9082 2010-04-30 Jan Hubicka <jh@suse.cz>
9084 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
9086 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
9088 2010-04-30 Jan Hubicka <jh@suse.cz>
9090 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
9092 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
9093 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
9094 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
9095 cgraph_node_set_needs_ltrans_p): Remove.
9097 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
9099 * sdbout.c: Include vec.h, do not include varray.h.
9100 (deferred_global_decls, sdbout_global_decl,
9101 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
9102 * toplev.c: Do not include varray.h.
9103 (dump_memory_report): Do not dump VARRAY statistics.
9104 * gengtype.c (open_base_file): Ignore varray.h.
9105 * Makefile.in: Update for abovementioned changes.
9106 Remove all traces of varray.c and varray.h.
9107 * varray.c: Remove file.
9108 * varray.h: Remove file.
9110 2010-04-30 Jan Hubicka <jh@suse.cz>
9112 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
9115 2010-04-30 Jan Hubicka <jh@suse.cz>
9117 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
9120 2010-04-30 Richard Guenther <rguenther@suse.de>
9122 * tree-ssa-structalias.c (get_constraint_for_1): Generate
9123 constraints for CONSTRUCTOR.
9125 2010-04-30 Richard Guenther <rguenther@suse.de>
9128 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
9129 first after all lowering passes.
9131 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
9133 * toplev.c: Include varray.h for statistics dumping.
9134 * tree.h: Do not declare varray_head_tag.
9135 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
9136 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
9137 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
9138 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
9139 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
9140 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
9141 c-common.c, c-common.h, reg-stack.c, basic-block.h,
9142 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
9144 * Makefile.in: Update for abovementioned changes.
9146 2010-04-30 Jakub Jelinek <jakub@redhat.com>
9149 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
9151 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
9153 * config/picochip/picochip.c (picochip_legitimize_address): Define.
9154 Use this function to do machine-specific conversion.
9155 (picochip_legitimize_reload_address): Likewise.
9156 (picochip_legitimate_address_p): Check valid base register only if
9158 (picochip_check_conditional_copy): Check for modw only if opnd is
9160 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
9161 to call the function in c.
9162 * config/picochip/picochip-protos.h
9163 (picochip_legitimize_reload_address): Define.
9164 * config/picochip/picochip.md (supported_compare1): Define.
9166 2010-04-30 Jan Hubicka <jh@suse.cz>
9168 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
9169 (cgraph_global_info): Remove inlined.
9170 (LTO_cgraph_tag_names): Remove.
9171 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
9172 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
9173 simplify cgraph tags and document.
9174 (lto_output_node): Use only LTO_cgraph_unavail_node and
9175 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
9176 for_functions_valid, global info, process and output flags.
9177 (input_overwrite_node): Initialize estimated stack size and
9178 estimated growth. Do not read flags we no longer store.
9179 (input_node): Likewise do not read info no longer stored.
9180 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
9183 2010-04-30 Richard Guenther <rguenther@suse.de>
9185 PR tree-optimization/43879
9186 * tree-ssa-structalias.c (get_constraint_for_1): Properly
9187 handle non-zero initializers.
9189 2010-04-30 Richard Guenther <rguenther@suse.de>
9191 * builtins.c (fold_builtin_1): Delete free (0).
9193 2010-04-29 Jan Hubicka <jh@suse.cz>
9195 * gengtype.c (open_base_files): Add lto-streamer.h
9196 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
9197 (pass_ipa_cp): GGC collect.
9198 * toplev. (compile_file): Do not output symbols.
9199 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
9200 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
9201 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
9202 * lto-section-in.c: Include ggc.h
9203 (lto_new_in_decl_state): Alloc in GGC.
9204 (lto_delete_in_decl_state): Likewise.
9205 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
9208 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
9211 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
9212 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
9213 (HONOR_REG_ALLOC_ORDER): Describe new macro.
9214 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
9215 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
9216 account only if HONOR_REG_ALLOC_ORDER is not defined.
9217 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
9218 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
9220 2010-04-29 Jon Grant <04@jguk.org>
9222 * collect2.c (vflag): Change type from int to bool.
9224 (helpflag): New global bool.
9225 (main): Set vflag and debug with boolean, not integer truth values.
9226 Accept new "--help" option and output usage text if found.
9227 * collect2.h (vflag): Update prototype.
9230 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
9233 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
9235 2010-04-29 Richard Guenther <rguenther@suse.de>
9238 * plugin.h (invoke_plugin_callbacks): Annotate arguments
9239 with ATTRIBUTE_UNUSED.
9241 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
9244 * config/i386/i386.c (get_some_local_dynamic_name): Replace
9245 INSN_P with NONDEBUG_INSN_P.
9246 (distance_non_agu_define): Likewise.
9247 (distance_agu_use): Likewise.
9249 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
9251 From Dominique d'Humieres <dominiq@lps.ens.fr>
9253 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
9256 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
9258 * plugin.h (invoke_plugin_callbacks): New inline function.
9259 * plugin.c (flag_plugin_added): New global flag.
9260 (add_new_plugin): Initialize above flag.
9261 (invoke_plugin_callbacks): Rename to ...
9262 (invoke_plugin_callbacks_full): ... this.
9264 2010-04-28 Jan Hubicka <jh@suse.cz>
9266 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
9267 (lto_varpool_replace_node): New.
9268 (lto_symtab_resolve_symbols): Resolve varpool nodes.
9269 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
9270 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
9271 * cgraph.h (varpool_node_ptr): New type.
9272 (varpool_node_ptr): New vector.
9273 (varpool_node_set_def): New structure.
9274 (varpool_node_set): New type.
9275 (varpool_node_set): New vector.
9276 (varpool_node_set_element_def): New structure.
9277 (varpool_node_set_element, const_varpool_node_set_element): New types.
9278 (varpool_node_set_iterator): New type.
9279 (varpool_node): Add prev pointers, add used_from_other_partition,
9281 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
9282 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
9283 varpool_get_node, varpool_remove_node): Declare.
9284 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
9285 varpool_node_set_size): New inlines.
9286 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
9287 * tree-pass.h (varpool_node_set_def): Forward declare.
9288 (ipa_opt_pass_d): Summary writting takes vnode sets too.
9289 (ipa_write_optimization_summaries): Update prototype.
9290 * ipa-cp.c (ipcp_write_summary): Update.
9291 * ipa-reference.c (ipa_reference_write_summary): Update.
9292 * lto-cgraph.c (lto_output_varpool_node): New static function.
9293 (output_varpool): New function.
9294 (input_varpool_node): New static function.
9295 (input_varpool_1): New function.
9296 (input_cgraph): Input varpool.
9297 * ipa-pure-const.c (pure_const_write_summary): Update.
9298 * lto-streamer-out.c (lto_output): Update, output varpool too.
9299 (write_global_stream): Kill WPA hack.
9300 (produce_asm_for_decls): Update.
9301 (output_alias_pair_p): Handle variables.
9302 (output_unreferenced_globals): Output only needed partition of varpool.
9303 * ipa-inline.c (inline_write_summary): Update.
9304 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
9306 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
9307 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
9308 varpool_node_set_new, varpool_node_set_add,
9309 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
9310 debug_varpool_node_set): New functions.
9311 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
9312 (execute_one_pass): Process new decls too.
9313 (ipa_write_summaries_2): Pass around vsets.
9314 (ipa_write_summaries_1): Likewise.
9315 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
9317 (ipa_write_optimization_summaries_1): Pass around vsets.
9318 (ipa_write_optimization_summaries): Likewise.
9319 * varpool.c (varpool_get_node): New.
9320 (varpool_node): Update doubly linked lists.
9321 (varpool_remove_node): New.
9322 (dump_varpool_node): More dumping.
9323 (varpool_enqueue_needed_node): Update doubly linked lists.
9324 (decide_is_variable_needed): Kill ltrans hack.
9325 (varpool_finalize_decl): Kill lto hack.
9326 (varpool_assemble_decl): Skip decls in other partitions.
9327 (varpool_assemble_pending_decls): Update doubly linkes lists.
9328 (varpool_empty_needed_queue): Likewise.
9329 (varpool_extra_name_alias): Likewise.
9330 * lto-streamer.c (lto_get_section_name): Add vars section.
9331 * lto-streamer.h (lto_section_type): Update.
9332 (output_varpool, input_varpool): Declare.
9334 2010-04-28 Mike Stump <mikestump@comcast.net>
9336 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
9338 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
9340 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
9341 record or union type with RECORD_OR_UNION_TYPE_P predicate.
9342 (lto_input_ts_type_tree_pointers): Likewise.
9343 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
9344 (lto_output_ts_type_tree_pointers): Likewise.
9346 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
9348 Uniquization of constants at the Tree level
9349 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
9350 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
9352 (tree_output_constant_def): Declare.
9353 * gimplify.c (gimplify_init_constructor): When using block copy, first
9354 uniquize the constant constructor on the RHS.
9355 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
9356 DECL_IN_CONSTANT_POOL flag.
9357 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
9358 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
9360 (assemble_variable): Deal with symbols belonging to the tree constant
9362 (get_constant_section): Add ALIGN parameter and simplify.
9363 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
9364 (assemble_constant_contents): Use the expression of the VAR_DECL.
9365 (output_constant_def_contents): Use the alignment of the VAR_DECL.
9366 (tree_output_constant_def): New global function.
9367 (mark_constant): Use the expression of the VAR_DECL.
9368 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
9370 (output_object_block): Likewise and assemble the expression.
9372 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
9374 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
9375 hash_tree, eq_tree): New tree hash table.
9376 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
9377 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
9378 lto_orig_address_remove): Reimplement.
9380 2010-04-28 Xinliang David Li <davidxl@google.com>
9383 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
9384 (compute_uninit_opnds_pos): New function.
9385 (is_non_loop_exit_postdominating): New function.
9386 (compute_control_dep_chain): New function.
9387 (find_pdom): New function.
9388 (convert_control_dep_chain_into_preds): New function.
9389 (find_predicates): New function.
9390 (find_control_equiv_block): New function.
9391 (collect_phi_def_edges): New function.
9392 (find_def_preds): New function.
9393 (find_dom): New function.
9394 (dump_predicates): New function.
9395 (get_cmp_code): New function.
9396 (is_value_included_in): New function.
9397 (find_matching_predicate_in_rest_chains): New function.
9398 (use_pred_not_overlap_with_undef_path_pred): New function.
9399 (is_use_properly_guarded): New function.
9400 (normalize_cond_1): New function.
9401 (is_and_or_or): New function.
9402 (normalize_cond): New function.
9403 (is_gcond_subset_of): New function.
9404 (is_subset_of_any): New function.
9405 (is_or_set_subset_of): New function.
9406 (is_and_set_subset_of): New function.
9407 (is_norm_cond_subset_of): New function.
9408 (is_pred_expr_subset_of): New function.
9409 (is_pred_chain_subset_of): New function.
9410 (is_included_in): New function.
9411 (is_superset_of): New function.
9412 (find_uninit_use): New function.
9413 (warn_uninitialized_phi): New function.
9414 (compute_possibly_undefined_names): New function.
9415 (ssa_undefined_value_p): New function.
9416 (execute_late_warn_uninitialized): New function.
9417 * tree-ssa.c (ssa_undefined_value_p): Removed.
9418 (warn_uninit): Changed to extern.
9419 (warn_uninitialized_phi): Removed.
9420 (warn_uninitialized_vars): Changed to extern.
9421 (execute_late_warn_uninitialized): Removed
9422 * tree-flow.h: Add new prototypes.
9423 * timevar.def: Add new time variable.
9424 * Makefile.in: Add new build file.
9426 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
9428 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
9431 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9434 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
9436 2010-04-28 Martin Jambor <mjambor@suse.cz>
9438 * cgraph.h (struct cgraph_node): New field indirect_calls.
9439 (struct cgraph_indirect_call_info): New type.
9440 (struct cgraph_edge): Removed field indirect_call. New fields
9441 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
9442 (cgraph_create_indirect_edge): Declare.
9443 (cgraph_make_edge_direct): Likewise.
9444 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
9445 * ipa-prop.h (struct ipa_param_call_note): Removed.
9446 (struct ipa_node_params): Removed field param_calls.
9447 (ipa_create_all_structures_for_iinln): Declare.
9448 * cgraph.c: Described indirect edges and uids in initial comment.
9449 (cgraph_add_edge_to_call_site_hash): New function.
9450 (cgraph_edge): Search also among the indirect edges, use
9451 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
9452 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
9453 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
9455 (initialize_inline_failed): Assign a reason to indirect edges.
9456 (cgraph_create_edge_1): New function.
9457 (cgraph_create_edge): Moved some functionality to
9458 cgraph_create_edge_1.
9459 (cgraph_create_indirect_edge): New function.
9460 (cgraph_edge_remove_callee): Add an assert checking for
9462 (cgraph_edge_remove_caller): Special-case indirect edges.
9463 (cgraph_remove_edge): Likewise.
9464 (cgraph_set_edge_callee): New function.
9465 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
9466 (cgraph_make_edge_direct): New function.
9467 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
9468 the declaration of the call statement matches.
9469 (cgraph_node_remove_callees): Special-case indirect edges.
9470 (cgraph_clone_edge): Likewise.
9471 (cgraph_clone_node): Clone also the indirect edges.
9472 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
9473 indirect_call, dump count of indirect_calls edges.
9474 * ipa-prop.c (iinlining_processed_edges): New variable.
9475 (ipa_note_param_call): Create indirect edges instead of
9476 creating notes. New parameter node.
9477 (ipa_analyze_call_uses): New parameter node, pass it on to
9478 ipa_note_param_call.
9479 (ipa_analyze_stmt_uses): Likewise.
9480 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
9481 (print_edge_addition_message): Work on edges rather than on notes.
9482 (update_call_notes_after_inlining): Likewise, renamed to
9483 update_indirect_edges_after_inlining.
9484 (ipa_create_all_structures_for_iinln): New function.
9485 (ipa_free_node_params_substructures): Do not free notes.
9486 (ipa_edge_duplication_hook): Propagate bits within
9487 iinlining_processed_edges bitmap.
9488 (ipa_node_duplication_hook): Do not duplicate notes.
9489 (free_all_ipa_structures_after_ipa_cp): Renamed to
9490 ipa_free_all_structures_after_ipa_cp.
9491 (free_all_ipa_structures_after_iinln): Renamed to
9492 ipa_free_all_structures_after_iinln.
9493 (ipa_write_param_call_note): Removed.
9494 (ipa_read_param_call_note): Removed.
9495 (ipa_write_indirect_edge_info): New function.
9496 (ipa_read_indirect_edge_info): Likewise.
9497 (ipa_write_node_info): Do not stream notes, do stream information
9499 (ipa_read_node_info): Likewise.
9500 (lto_ipa_fixup_call_notes): Removed.
9501 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
9502 * ipa-inline.c (pass_ipa_inline): Likewise.
9503 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
9504 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
9505 * tree-inline.c (copy_bb): Removed an unnecessary double check for
9507 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
9509 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
9510 (output_cgraph): Stream also indirect edges.
9511 (lto_output_edge): Added capability to stream indirect edges.
9512 (input_edge): Likewise.
9513 (input_cgraph_1): Likewise.
9514 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
9517 2010-04-28 Richard Guenther <rguenther@suse.de>
9519 PR tree-optimization/43879
9520 PR tree-optimization/43909
9521 * tree-ssa-structalias.c (struct variable_info): Add
9522 only_restrict_pointers flag.
9523 (new_var_info): Initialize it. Increment stats.total_vars here.
9524 (create_function_info_for): Do not increment stats.total_vars here.
9525 (get_function_part_constraint): Fix build with C++.
9526 (insert_into_field_list): Remove.
9527 (push_fields_onto_fieldstack): Properly merge fields.
9528 (create_variable_info_for): Split and simplify.
9529 (create_variable_info_for_1): New piece.
9530 (intra_create_variable_infos): Properly make restrict constraints
9533 2010-04-28 Richard Guenther <rguenther@suse.de>
9536 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
9538 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
9539 Jan Hubicka <hubicka@ucw.cz>
9541 * doc/invoke.texi (-Wsuggest-attribute=const,
9542 -Wsuggest-attribute=pure): Document.
9543 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
9544 (function_always_visible_to_compiler_p,
9545 suggest_attribute, warn_function_pure, warn_function_const):
9547 (check_call): Improve debug info.
9548 (analyze_function): Do not check availability.
9549 (add_new_function): Check availability.
9550 (propagate): Output warnings.
9551 (skip_function_for_local_pure_const): New function.
9552 (local_pure_const): Use it; output warnings.
9553 * common.opt (Wsuggest-attribute=const,
9554 Wsuggest-attribute=pure): New.
9556 2010-04-27 Jakub Jelinek <jakub@redhat.com>
9558 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
9559 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
9560 or DW_CFA_def_cfa_offset{,_sf}.
9562 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
9564 * tree.h: Fix truncated long macros.
9566 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
9568 * collect2.c (TARGET_64BIT): Redefine to target's default.
9569 * tlink.c: Likewise.
9570 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
9571 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
9572 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
9573 for underscoring __USER_LABEL_PREFIX__.
9574 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
9575 (SUB_LINK_ENTRY32): New.
9576 (SUB_LINK_ENTRY64): New.
9577 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
9578 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
9579 (SUB_LINK_ENTRY64): New.
9580 (SUB_LINK_ENTRY): New.
9581 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
9582 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
9583 x64 target is choosen.
9584 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
9585 * configure: Regenerated.
9586 * configure.ac (leading-mingw64-underscores): Option added.
9588 2010-04-27 Jan Hubicka <jh@suse.cz>
9590 * doc/invoke.texi (-fipa-profile): Document.
9591 * opts.c (decode_options): Enable ipa-profile at -O1.
9592 * timevar.def (TV_IPA_PROFILE): Define.
9593 * common.opt (fipa-profile): Add.
9594 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
9596 (cgraph_propagate_frequency): Handle only local ones.
9597 * tree-pass.h (pass_ipa_profile): Declare.
9598 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
9599 (pass_ipa_profile): Use TV_IPA_PROFILE.
9600 * ipa.c (ipa_profile): New function.
9601 (gate_ipa_profile): Likewise.
9602 (pass_ipa_profile): New global variable.
9603 * passes.c (pass_ipa_profile): New.
9605 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
9607 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
9609 2010-04-27 Martin Jambor <mjambor@suse.cz>
9612 * ipa.c (dissolve_same_comdat_group_list): New function.
9613 (function_and_variable_visibility): Call
9614 dissolve_same_comdat_group_list when comdat group contains external or
9616 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
9617 lists are circular and that they contain only DECL_ONE_ONLY nodes.
9619 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
9621 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
9622 (const_hash_1) <VECTOR_CST>: New case.
9623 (compare_constant) <VECTOR_CST>: Likewise.
9624 <ADDR_EXPR>: Deal with LABEL_REFs.
9625 (copy_constant) <VECTOR_CST>: New case.
9627 2010-04-27 Jan Hubicka <jh@suse.cz>
9629 * cgraph.c (cgraph_propagate_frequency): New function.
9630 * cgraph.h (cgraph_propagate_frequency): Declare.
9631 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
9632 cgraph_propagate_frequency.
9634 2010-04-27 Jakub Jelinek <jakub@redhat.com>
9636 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
9638 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
9641 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
9642 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
9643 here to determine which regs to push and how much stack to reserve.
9645 2010-04-27 Jie Zhang <jie@codesourcery.com>
9647 * doc/gimple.texi (gimple_statement_with_ops): Remove
9648 addresses_taken field.
9649 (gimple_statement_with_memory_ops): Likewise.
9651 2010-04-27 Jan Hubicka <jh@suse.cz>
9653 * tree-inline.c (eni_inlining_weights): Remove.
9654 (estimate_num_insns): Special case more builtins.
9656 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
9659 * c-typeck.c (build_binary_op): Move forward check for comparison
9660 pointer with null pointer constant and adjust the diagnostic message.
9662 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
9665 * configure.ac (gcc_cv_as_section_has_align): Set if installed
9666 binutils supports extended .section directive needed by LTO, or
9667 warn if older binutils found.
9668 (LTO_BINARY_READER): New AC_SUBST'd variable.
9669 (LTO_USE_LIBELF): Likewise.
9670 * gcc/config.gcc (lto_binary_reader): New target-specific configure
9672 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
9673 (LTO_USE_LIBELF): Likewise.
9674 * configure: Regenerate.
9676 * collect2.c (is_elf): Rename from this ...
9677 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
9678 object files in addition to ELF-formatted ones.
9679 (scan_prog_file): Caller updated. Also allow for LTO info marker
9680 symbol to be prefixed or not by an extra underscore.
9682 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
9683 * config/i386/winnt.c: Also #include lto-streamer.h
9684 (i386_pe_asm_named_section): Specify 1-byte section alignment for
9686 (i386_pe_asm_output_aligned_decl_common): Add comment.
9687 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
9689 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
9692 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
9693 Add missing earlyclobber for second alternative.
9695 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
9697 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
9698 bits for artificial defs at the top of the block.
9699 * fwprop.c (single_def_use_enter_block): Don't call it.
9701 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
9704 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
9705 instead of "$gcc_cv_objdump -T".
9706 Use "-undefined dynamic_lookup" on darwin.
9707 * gcc/configure: Regenerate.
9709 2010-04-26 Jakub Jelinek <jakub@redhat.com>
9712 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
9714 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
9716 * c-parser.c (struct c_token): Move location field up.
9717 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
9718 (struct c_declspecs): Convert typespec_word, storage_class, and
9719 default_int_p into bitfields.
9720 (struct c_declarator): Move loc field up.
9722 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
9724 * cfgloop.h (struct loop): Move can_be_parallel field up.
9725 * ipa-prop.h (struct ip_node_params): Move bitfields up.
9726 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
9728 (struct iv_cand): Convert pos field into a bitfield.
9729 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
9731 (struct _stmt_vec_info): Shuffle fields for better packing.
9733 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
9735 * varasm.c (IN_NAMED_SECTION): Remove guard.
9736 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
9737 (IN_NAMED_SECTION_P): ...this.
9738 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
9739 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
9741 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
9743 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
9744 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
9745 of shadowing it. Fix comments.
9747 2010-04-26 Jan Hubicka <jh@suse.cz>
9749 * cgraph.c (cgraph_create_node): Set node frequency to normal.
9750 (cgraph_clone_node): Copy function frequency.
9751 * cgraph.h (node_frequency): New enum
9752 (struct cgraph_node): Add.
9753 * final.c (rest_of_clean_state): Update.
9754 * lto-cgraph.c (lto_output_node): Output node frequency.
9755 (input_overwrite_node): Input node frequency.
9756 * tre-ssa-loop-ivopts (computation_cost): Update.
9757 * lto-streamer-out.c (output_function): Do not output function
9759 * predict.c (maybe_hot_frequency_p): Update and handle functions
9761 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
9763 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
9764 (compute_function_frequency): Set noreturn functions to be executed
9766 (choose_function_section): Update.
9767 * lto-streamer-in.c (input_function): Do not input function frequency.
9768 * function.c (allocate_struct_function): Do not initialize function
9770 * function.h (function_frequency): Remove.
9771 (struct function): Remove function frequency.
9772 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
9773 (try_update): Update.
9774 * tree-inline.c (initialize_cfun): Do not update function frequency.
9775 * passes.c (pass_init_dump_file): Update.
9776 * i386.c (ix86_compute_frame_layout): Update.
9777 (ix86_pad_returns): Update.
9779 2010-04-26 Jie Zhang <jie@codesourcery.com>
9781 PR tree-optimization/43833
9782 * tree-vrp.c (range_int_cst_p): New.
9783 (range_int_cst_singleton_p): New.
9784 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
9785 when both operands are constants. Use range_int_cst_p in
9788 2010-04-26 Jan Hubicka <jh@suse.cz>
9790 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
9792 2010-04-26 Richard Guenther <rguenther@suse.de>
9795 * gimple.c (gimple_decl_printable_name): Deal gracefully
9796 with a NULL DECL_NAME.
9798 2010-04-26 Richard Guenther <rguenther@suse.de>
9801 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
9802 if emitting debug information and it is either a function
9803 or a namespace decl.
9805 2010-04-26 Ira Rosen <irar@il.ibm.com>
9807 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
9808 determine if the statement is vectorizable, and a macro to access it.
9809 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9810 Skip statements that can't be vectorized. If the analysis fails,
9811 mark the statement as unvectorizable if vectorizing basic block.
9812 (vect_compute_data_refs_alignment): Likewise.
9813 (vect_verify_datarefs_alignment): Skip statements marked as
9814 unvectorizable. Add print.
9815 (vect_analyze_group_access): Skip statements that can't be
9816 vectorized. If the analysis fails, mark the statement as
9817 unvectorizable if vectorizing basic block.
9818 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
9819 * tree-vect-stmts.c (vectorizable_store): Fix the number of
9820 generated stmts for SLP.
9821 (new_stmt_vec_info): Initialize the new field.
9822 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
9823 statements marked as unvectorizable.
9825 2010-04-25 Joseph Myers <joseph@codesourcery.com>
9827 * c-common.c (flag_isoc1x): New.
9828 (flag_isoc99): Update comment.
9829 * c-common.h (flag_isoc1x): New.
9830 (flag_isoc99): Update comment.
9831 * c-cppbuiltin.c (builtin_define_float_constants): Also define
9832 __<type>_DECIMAL_DIG__.
9833 * c-opts.c (set_std_c1x): New.
9834 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
9835 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
9836 * c.opt (-std=c1x, -std=gnu1x): New options.
9837 * doc/cpp.texi: Mention -std=c1x.
9838 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
9839 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
9840 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
9841 * doc/standards.texi: Mention C1X.
9842 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
9843 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
9844 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
9847 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
9849 * config/i386/gmon-sol2.c (_mcleanup): Change format string
9850 placeholder from 0x%x to %#x.
9851 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
9852 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
9853 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
9854 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
9855 * config/i386/i386.c (ix86_target_string): Ditto.
9856 (output_pic_addr_const): Ditto.
9857 (print_operand): Ditto.
9859 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
9861 * combine.c (find_split_point): Add third argument. Use it
9862 to find nested multiply-accumulate instructions. Adjust calls.
9863 (try_combine): Adjust call to find_split_point.
9865 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
9867 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
9869 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
9871 PR tree-optimization/41442
9872 * fold-const.c (merge_truthop_with_opposite_arm): New function.
9873 (fold_binary_loc): Call it.
9875 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
9877 * toplev.c (general_init): Set default for fdiagnostics-show-option.
9878 * opts.c (common_handle_option): Allow disabling it.
9879 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
9881 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
9883 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
9884 between modes if both types are integral.
9886 2010-04-23 Richard Guenther <rguenther@suse.de>
9888 PR tree-optimization/43572
9889 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
9891 2010-04-23 Richard Guenther <rguenther@suse.de>
9894 * tree-inline.c (tree_can_inline_p): Also check compatibility
9897 2010-04-23 Martin Jambor <mjambor@suse.cz>
9899 PR tree-optimization/43846
9900 * tree-sra.c (struct access): New flag grp_assignment_read.
9901 (build_accesses_from_assign): Set grp_assignment_read.
9902 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
9903 (enum mark_read_status): New type.
9904 (analyze_access_subtree): Propagate grp_assignment_read, create
9905 accesses also if both direct_read and root->grp_assignment_read.
9907 2010-04-23 Martin Jambor <mjambor@suse.cz>
9910 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
9911 function does not have type attributes.
9913 2010-04-23 Richard Guenther <rguenther@suse.de>
9916 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
9919 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9921 * sese.h (create_if_region_on_edge): Remove.
9923 * sese.c (create_if_region_on_edge): Make static.
9925 * tree-inline.c: Do not include ggc.h.
9927 * expr.c: Do not include ggc.h.
9929 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
9932 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
9935 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9936 in the middle of insns for casesi_worker_2.
9938 2010-04-22 David Edelsohn <edelsohn@gnu.org>
9940 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
9942 2010-04-22 Ira Rosen <irar@il.ibm.com>
9944 PR tree-optimization/43842
9945 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
9946 loop unrolling in update of exit phis. Fix comment.
9947 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
9948 least two reduction statements in the loop before starting SLP
9951 2010-04-22 Nick Clifton <nickc@redhat.com>
9953 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
9955 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
9957 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
9960 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9962 * tree-parloops.c (loop_parallel_p): New argument
9963 parloop_obstack. Pass it down.
9964 (parallelize_loops): New variable parloop_obstack. Initialize it,
9965 pass it down, free it.
9967 * tree-loop-linear.c (linear_transform_loops): Pass down
9970 * tree-data-ref.h (lambda_compute_access_matrices): New argument
9971 of type struct obstack *.
9973 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
9974 scratch_obstack. Initialize it, pass down, free it.
9976 * lambda.h (lambda_loop_new): Remove.
9977 (lambda_matrix_new, lambda_matrix_inverse)
9978 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
9979 argument of type struct obstack *.
9981 * lambda-trans.c (lambda_trans_matrix_new): New argument
9982 lambda_obstack. Pass it down, use obstack allocation for ret.
9983 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
9986 * lambda-mat.c (lambda_matrix_get_column)
9987 (lambda_matrix_project_to_null): Remove.
9988 (lambda_matrix_new): New argument lambda_obstack. Use obstack
9990 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
9993 * lambda-code.c (lambda_loop_new): New function.
9994 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
9995 (lambda_compute_auxillary_space, lambda_compute_target_space)
9996 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
9997 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
9998 (build_access_matrix): New argument lambda_obstack. Use obstack
10000 (lambda_compute_step_signs, lambda_compute_access_matrices): New
10001 argument lambda_obstack. Pass it down.
10003 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
10005 * optabs.h (expand_widening_mult): Declare.
10007 2010-04-22 Richard Guenther <rguenther@suse.de>
10009 PR tree-optimization/43845
10010 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
10011 lookup the CALL_EXPR function and arguments.
10013 2010-04-22 Nick Clifton <nickc@redhat.com>
10015 * config/stormy16/stormy16.c
10016 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
10017 * config/stormy16/stormy16.h: Tidy up formatting.
10018 (DONT_USE_BUILTIN_SETJMP): Remove definition.
10019 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
10020 (ineqbranchsi): Delete pattern.
10021 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
10022 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
10023 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
10024 stormy16-lib2-ucmpsi2.c.
10026 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
10028 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
10029 df_simulate_find_noclobber_defs as appropriate. Keep track of an
10030 extra set merge_set_noclobber, and use it to relax the final test
10032 * df.h (df_simulate_find_noclobber_defs): Declare.
10033 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
10035 (df_simulate_find_noclobber_defs): New function.
10037 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
10039 * config/i386/i386.md: Use {} around multi-line preparation statements.
10041 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10043 * c-tree.h (push_init_level, pop_init_level, set_init_index)
10044 (process_init_element): New argument of type struct obstack *.
10046 * c-typeck.c (push_init_level, pop_init_level, set_designator)
10047 (set_init_index, set_init_label, set_nonincremental_init)
10048 (set_nonincremental_init_from_string, find_init_member)
10049 (output_init_element, output_pending_init_elements)
10050 (process_init_element): New argument braced_init_obstack. Pass it
10052 (push_range_stack, add_pending_init): New argument
10053 braced_init_obstack. Use obstack allocation.
10055 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
10056 braced_init_obstack. Pass it down.
10057 (c_parser_braced_init): New variables ret, braced_init_obstack.
10058 Initialize obstack, pass it down and finally free it.
10060 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
10062 PR middle-end/29274
10063 * tree-pass.h (pass_optimize_widening_mul): Declare.
10064 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
10065 gate_optimize_widening_mul): New static functions.
10066 (pass_optimize_widening_mul): New.
10067 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
10068 <case MULT_EXPR>: Remove support for widening multiplies.
10069 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
10070 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
10071 simplify_gen_unary rather than directly building extensions.
10072 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
10074 * expmed.c (expand_widening_mult): New function.
10075 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
10077 2010-04-21 Jan Hubicka <jh@suse.cz>
10079 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
10080 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
10081 * lto-wpa-fixup.c: Remove.
10082 * Makefile.in (lto-wpa-fixup.o): Remove.
10083 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
10084 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
10085 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
10087 2010-04-21 Jan Hubicka <jh@suse.cz>
10089 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
10090 add write_optimization_summary, read_optimization_summary.
10091 (ipa_write_summaries_of_cgraph_node_set): Remove.
10092 (ipa_write_optimization_summaries): Declare.
10093 (ipa_read_optimization_summaries): Declare.
10094 * ipa-cp.c (pass_ipa_cp): Update.
10095 * ipa-reference.c (pass_ipa_reference): Update.
10096 * ipa-pure-const.c (pass_ipa_pure_const): Update.
10097 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
10099 * ipa-inline.c (pass_ipa_inline): Update.
10100 * ipa.c (pass_ipa_whole_program): Update.
10101 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
10102 * passes.c (ipa_write_summaries_1): Do not test wpa.
10103 (ipa_write_optimization_summaries_1): New.
10104 (ipa_write_optimization_summaries): New.
10105 (ipa_read_summaries): Do not test ltrans.
10106 (ipa_read_optimization_summaries_1): New.
10107 (ipa_read_optimization_summaries): New.
10109 2010-04-21 Jan Hubicka <jh@suse.cz>
10111 * lto-cgraph.c (lto_output_node): Do not output comdat groups
10112 for boundary nodes.
10113 (output_cgraph): Do not arrange comdat groups for boundary nodes.
10115 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10118 * dwarf2out.c (add_name_and_src_coords_attributes): Add
10119 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
10121 2010-04-21 Jan Hubicka <jh@suse.cz>
10123 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
10125 2010-04-21 Jan Hubicka <jh@suse.cz>
10127 * varpool.c (decide_is_variable_needed): Variable is always needed
10130 2010-04-21 Jan Hubicka <jh@suse.cz>
10132 * opts.c (decode_options): Enable pure-const pass for whopr.
10134 2010-04-21 Jan Hubicka <jh@suse.cz>
10136 * cgraph.c (dump_cgraph_node): Dump also assembler name.
10137 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
10139 (cgraph_decide_inlining): Do not expect callee to be removed in all
10142 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
10144 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
10146 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
10148 * config/i386/i386.md (x86_shrd): Add athlon_decode and
10149 amdfam10_decode attributes.
10151 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10153 PR middle-end/43570
10154 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
10155 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
10156 (lower_copyprivate_clauses): Use private var in outer
10157 context instead of original var. Make sure the types
10158 are correct for VLAs.
10160 2010-04-21 Richard Guenther <rguenther@suse.de>
10162 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
10163 to non-pointer objects.
10165 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10167 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
10168 last chain entry if it starts with the still current label.
10169 (add_location_or_const_value_attribute): Check that
10170 loc_list->first->next is NULL instead of comparing ->first with ->last.
10171 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
10172 to add_var_loc_to_decl.
10174 * dwarf2out.c (output_call_frame_info): For dw_cie_version
10175 >= 4 add also address size and segment size fields into CIE header.
10177 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
10178 long as address size is the same as sizeof (void *) and
10180 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
10181 address size or segment size is unexpected, return DW_EH_PE_omit.
10182 (classify_object_over_fdes): If get_cie_encoding returned
10183 DW_EH_PE_omit, return -1.
10184 (init_object): If classify_object_over_fdes returned -1,
10185 pretend there were no FDEs at all.
10187 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
10189 * config/i386/i386.md (bswap<mode>2): Macroize expander from
10190 bswap{si,di}2 using SWI48 mode iterator.
10191 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
10192 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
10193 set modrm attribute of bswap insn to 0 and remove length attribute.
10194 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
10195 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
10196 set mode attribute to <MODE> and remove length attribute.
10198 2010-04-20 James E. Wilson <wilson@codesourcery.com>
10200 PR rtl-optimization/43520
10201 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
10202 zero available registers.
10204 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10206 * builtins.c (fold_builtin_cproj): Fold more cases.
10208 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10210 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
10211 (fold_builtin_1): Fold builtin cproj.
10212 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
10213 Use ATTR_CONST_NOTHROW_LIST.
10215 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
10217 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
10218 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
10219 ffsi2_no_cmove for !TARGET_CMOVE.
10220 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
10221 (ffssi2): Remove expander.
10222 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
10224 (ctz<mode>2): Ditto from ctz{si,di}2.
10225 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
10227 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
10230 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10232 * dwarf2out.c (AT_linkage_name): Define.
10233 (clone_as_declaration): Handle DW_AT_linkage_name.
10234 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
10235 of DW_AT_MIPS_linkage_name.
10236 (move_linkage_attr): Likewise.
10237 (dwarf2out_finish): Likewise.
10239 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
10241 PR middle-end/41952
10242 * fold-const.c (fold_comparison): New folding rule.
10244 2010-04-20 Anatoly Sokolov <aesok@post.ru>
10246 * double-int.h (double_int_setbit): Declare.
10247 * double-int.c (double_int_setbit): New function.
10248 * rtl.h (immed_double_int_const): Declare.
10249 * emit-rtl.c (immed_double_int_const): New function.
10250 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
10251 and immed_double_int_const functions.
10252 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
10253 expand_copysign_bit): (Ditto.).
10254 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
10255 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
10256 * dojump.c (prefer_and_bit_test): (Ditto.).
10257 * expr.c (convert_modes, reduce_to_bit_field_precision,
10258 const_vector_from_tree): (Ditto.).
10259 * expmed.c (mask_rtx, lshift_value): (Ditto.).
10261 2010-04-20 Jan Hubicka <jh@suse.cz>
10263 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
10264 (dump_cgraph_node): Dump new flags.
10265 * cgraph.h (struct cgraph_node): Add flags
10266 reachable_from_other_partition and in_other_partition.
10267 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
10268 other partition can not be removed.
10269 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
10270 the other partition must be output; silence sanity checking on
10271 leaking functions bodies from other paritition.
10272 * lto-cgraph.c (reachable_from_other_partition_p): New function.
10273 (lto_output_node): Output new flags; do not sanity check that inline
10274 clones are output; drop lto_forced_extern_inline_p code; do not mock
10275 visibility flags at partition boundaries.
10276 (add_node_to): New function.
10277 (output_cgraph): Use it to sort functions so masters appear before
10279 (input_overwrite_node): Input new flags.
10280 * passes.c (ipa_write_summaries): Do not call
10281 lto_new_extern_inline_states.
10282 * lto-section-out.c (forced_extern_inline,
10283 lto_new_extern_inline_states lto_delete_extern_inline_states,
10284 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
10285 * lto-streamer.h (lto_new_extern_inline_states,
10286 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
10287 lto_forced_extern_inline_p): Kill.
10289 2010-04-20 Richard Guenther <rguenther@suse.de>
10291 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
10292 from vars that can have pointers.
10293 (process_constraint): Dump useless constraints.
10295 2010-04-20 Richard Guenther <rguenther@suse.de>
10297 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
10298 (dump_sa_points_to_info): Remove asserts.
10299 (init_base_vars): nothing_id isn't an escape point nor does it
10302 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10304 * tree.h (TYPE_REF_IS_RVALUE): Define.
10305 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
10306 should_move_die_to_comdat, prune_unused_types_walk): Handle
10307 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
10308 (modified_type_die, gen_reference_type_die): Emit
10309 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
10310 if TYPE_REF_IS_RVALUE and -gdwarf-4.
10312 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10315 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
10316 calls for -fpic -m31 if they have been sibcall optimized.
10318 2010-04-19 James E. Wilson <wilson@codesourcery.com>
10320 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
10321 ar.lc fixed and call-used.
10323 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
10325 2010-04-19 Jan Hubicka <jh@suse.cz>
10327 * opts.c (decode_options): Disable whpr incompatible passes.
10328 * lto/lto.c (lto_1_to_1_map): Skip clones.
10329 (read_cgraph_and_symbols): Do not mark everything as needed.
10330 (do_whole_program_analysis): Do map only after optimizing;
10331 set proper cgraph_state; use passmanager.
10333 2010-04-19 DJ Delorie <dj@redhat.com>
10335 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
10336 POINTER_PLUS_EXPR and fix them.
10338 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
10340 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
10341 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
10342 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
10343 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
10344 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
10345 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
10346 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
10347 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
10348 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
10349 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
10350 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
10352 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
10354 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
10355 (check_cond_move_block): Likewise.
10356 (cond_move_process_if_block): Likewise.
10357 (noce_find_if_block): Improve formatting.
10358 (find_if_header): Pass 0 to memset and tweak conditions.
10359 (cond_exec_find_if_block): Fix long lines and tweak conditions.
10361 2010-04-19 Jakub Jelinek <jakub@redhat.com>
10363 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
10366 PR middle-end/43337
10367 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
10368 with non-local decl doesn't need chain.
10370 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
10372 * ira-color.c (allocno_reload_assign): Avoid accumulating
10373 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
10375 2010-04-19 Martin Jambor <mjambor@suse.cz>
10377 * gimple.h (create_tmp_reg): Declare.
10378 * gimplify.c (create_tmp_reg): New function.
10379 (gimplify_return_expr): Use create_tmp_reg.
10380 (gimplify_omp_atomic): Likewise.
10381 (gimple_regimplify_operands): Likewise.
10382 * tree-dfa.c (make_rename_temp): Likewise.
10383 * tree-predcom.c (predcom_tmp_var): Likewise.
10384 (reassociate_to_the_same_stmt): Likewise.
10385 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
10386 (get_replaced_param_substitute): Likewise.
10387 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
10388 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
10389 * tree-ssa-pre.c (get_representative_for): Likewise.
10390 (create_expression_by_pieces): Likewise.
10391 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
10392 (create_tailcall_accumulator): Likewise.
10394 2010-04-19 Martin Jambor <mjambor@suse.cz>
10396 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
10398 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
10400 2010-04-19 Richard Guenther <rguenther@suse.de>
10402 PR tree-optimization/43796
10403 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
10404 from SCEV in the lattice.
10405 (vrp_visit_phi_node): Dump change.
10407 2010-04-19 Richard Guenther <rguenther@suse.de>
10409 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
10410 * configure: Re-generated.
10412 2010-04-19 Richard Guenther <rguenther@suse.de>
10414 PR tree-optimization/43783
10415 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
10416 constant ARRAY_REF operands two and three if possible.
10418 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
10421 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
10423 2010-04-19 Jie Zhang <jie@codesourcery.com>
10426 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
10428 2010-04-19 Ira Rosen <irar@il.ibm.com>
10430 PR tree-optimization/37027
10431 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
10432 and macro to access it.
10433 (vectorizable_reduction): Add argument.
10434 (vect_get_slp_defs): Likewise.
10435 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
10436 statements for possible use in SLP.
10437 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
10438 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
10439 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
10441 (vectorizable_reduction): Likewise.
10442 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
10444 (vectorizable_type_demotion, vectorizable_type_promotion,
10445 vectorizable_store): Likewise.
10446 (vect_analyze_stmt): Update call to vectorizable_reduction.
10447 (vect_transform_stmt): Likewise.
10448 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
10449 (vect_build_slp_tree): Fix indentation. Check that there are no loads
10450 from different interleaving chains in same node.
10451 (vect_slp_rearrange_stmts): New function.
10452 (vect_supported_load_permutation_p): Allow load permutations for
10453 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
10454 inside SLP nodes if necessary.
10455 (vect_analyze_slp_instance): Handle reductions.
10456 (vect_analyze_slp): Try to build SLP instances originating from groups
10458 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
10459 (vect_get_constant_vectors): Create initial vectors for reductions
10460 according to reduction code. Add new argument.
10461 (vect_get_slp_defs): Add new argument, pass it to
10462 vect_get_constant_vectors.
10463 (vect_schedule_slp_instance): Remove SLP tree root statements.
10465 2010-04-19 Jakub Jelinek <jakub@redhat.com>
10467 * tree.h (ENUM_IS_SCOPED): Define.
10468 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
10469 for ENUM_IS_SCOPED enums.
10471 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
10473 * fold-const.c (fold_comparison): Use ssizetype.
10474 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
10475 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
10476 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
10477 * tree-object-size.c (compute_object_sizes): Use size_type_node.
10479 * tree.h (initialize_sizetypes): Remove parameter.
10480 (build_common_tree_nodes): Remove second parameter.
10481 * stor-layout.c (initialize_sizetypes): Remove parameter.
10482 Always create an unsigned type.
10483 (set_sizetype): Assert that the passed type is unsigned and simplify.
10484 * tree.c (build_common_tree_nodes): Remove second parameter.
10485 Adjust call to initialize_sizetypes.
10486 * c-decl.c (c_init_decl_processing): Remove second argument in call to
10487 build_common_tree_nodes.
10489 2010-04-18 Matthias Klose <doko@ubuntu.com>
10491 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
10493 2010-04-18 Ira Rosen <irar@il.ibm.com>
10495 PR tree-optimization/43771
10496 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
10497 load permutation doesn't have gaps.
10499 2010-04-18 Jan Hubicka <jh@suse.cz>
10501 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
10502 (sse_prologue_save_insn expander): Use new pattern.
10503 (sse_prologue_save_insn1): New pattern and splitter.
10504 (sse_prologue_save_insn): Update to deal also with 64bit aligned
10506 * i386.c (setup_incoming_varargs_64): Do not compute jump
10508 (ix86_gimplify_va_arg): Update alignment needed.
10509 (ix86_local_alignment): Do not align all local arrays to 128bit.
10511 2010-04-17 Jan Hubicka <jh@suse.cz>
10513 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
10515 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
10517 * arm.md (negdi2): Remove redundant code to force values into a
10520 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
10522 * arm/bpabi.S: Add EABI alignment attributes to objects.
10523 * arm/bpabi-v6m.S: Likewise.
10524 * arm/crti.asm: Likewise.
10525 * arm/crtn.asm: Likewise.
10526 * arm/lib1funcs.asm: Likewise.
10527 * arm/libunwind.S: Likewise.
10529 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
10531 * arm-protos.h (tune_params): New structure.
10532 * arm.c (current_tune): New variable.
10533 (arm_constant_limit): Delete.
10534 (struct processors): Add pointer to the tune parameters.
10535 (arm_slowmul_tune): New tuning option.
10536 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
10537 (all_cores): Adjust to pick up the tuning model.
10538 (arm_constant_limit): New function.
10539 (arm_override_options): Select the appropriate tuning model. Delete
10540 initialization of arm_const_limit.
10541 (arm_split_constant): Use the new constant-limit model.
10542 (arm_rtx_costs): Pick up the current tuning model.
10543 * arm.md (is_strongarm, is_xscale): Delete.
10544 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
10545 for Xscale variant architectures.
10546 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
10548 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10550 * config/arm/arm.c (arm_gen_constant): Remove unused variable
10552 (arm_rtx_costs_1): Remove unused variable extra_cost.
10553 (arm_unwind_emit_set): Use variable offset.
10554 (thumb1_output_casesi): Remove unused variable flags.
10556 2010-04-16 Jeff Law <law@redhat.com>
10558 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
10559 needing assignment rather than doing a two-phase assignment. Remove
10560 unused variable 'm'.
10562 2010-04-16 Jakub Jelinek <jakub@redhat.com>
10565 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
10567 2010-04-16 Doug Kwan <dougkwan@google.com>
10569 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
10570 (next_operand_entry_id): New static variable.
10571 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
10572 (add_to_ops_vec): Assigned unique ID to operand entry.
10573 (struct oecount_s): New field ID.
10574 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
10575 (undistribute_ops_list): Assign unique IDs to oecounts.
10576 (init_reassoc): reset next_operand_entry_id.
10578 2010-04-16 Doug Kwan <dougkwan@google.com>
10580 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
10581 missing left parenthesis.
10583 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
10585 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
10586 *btdi_rex64 using SWI48 mode iterator.
10587 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
10588 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
10589 *jcc_btdi_mask_rex64.
10591 2010-04-16 Anatoly Sokolov <aesok@post.ru>
10593 * double-int.h (tree_to_double_int): Convert to macro.
10594 * double-int.c (tree_to_double_int): Remove.
10596 2010-04-16 Jakub Jelinek <jakub@redhat.com>
10599 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
10600 with want_address 2 and in case a single element list might be
10601 possible, call it again with want_address 0.
10603 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10605 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
10606 case 'W' print operands for HI mode.
10607 * config/h8300/h8300.h (Y0, Y2) : New constraints.
10608 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
10609 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
10610 * config/h8300/predicate.md (bit_register_indirect_operand): New.
10612 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
10614 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
10615 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
10616 #xx:3 and #xx:4 mode.
10618 * config/h8300/h8300.md (inverted load with HImode dest): Add
10619 support for H8300SX.
10621 * config/h8300/predicate.md (bit_operand): Allow immediate values that
10622 satisfy 'U' constraint.
10624 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10626 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
10627 * configure: Regenerate.
10628 * config.in: Regenerate.
10629 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
10632 2010-04-16 Richard Guenther <rguenther@suse.de>
10634 * tree.h (struct tree_decl_minimal): Move pt_uid ...
10635 (struct tree_decl_common): ... here.
10636 (DECL_PT_UID): Adjust.
10637 (SET_DECL_PT_UID): Likewise.
10638 (DECL_PT_UID_SET_P): Likewise.
10640 2010-04-16 Richard Guenther <rguenther@suse.de>
10642 PR tree-optimization/43572
10643 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
10644 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
10645 * tree-flow.h (is_call_clobbered): Remove.
10646 * tree-flow-inline.h (is_call_clobbered): Likewise.
10647 * tree-dfa.c (dump_variable): Do not dump call clobber state.
10648 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
10649 (execute_return_slot_opt): Adjust.
10650 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
10651 check for call clobbered vars here.
10652 (find_tail_calls): Move tailcall verification to the
10655 2010-04-16 Diego Novillo <dnovillo@google.com>
10657 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
10659 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
10662 * config/arm/arm.md (cbranchqi4): New pattern.
10663 * config/arm/predicates.md (const0_operand,
10664 cbranchqi4_comparison_operator): New predicates.
10666 2010-04-16 Richard Guenther <rguenther@suse.de>
10668 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
10669 (dump_gimple_stmt): Likewise.
10671 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
10673 * recog.h (struct recog_data): New field is_operator.
10674 (struct insn_operand_data): New field is_operator.
10675 * recog.c (extract_insn): Set recog_data.is_operator.
10676 * genoutput.c (output_operand_data): Emit code to set the
10678 * reload.c (find_reloads): Use it rather than testing for an
10679 empty constraint string.
10682 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
10683 If the previous insn is a cbranchsi4_insn with the same arguments,
10684 omit the compare instruction.
10686 * config/arm/arm.md (addsi3_cbranch): If destination is a high
10687 register, inputs must be low registers and we need a low register
10688 scratch. Handle alternative 2 like alternative 3.
10690 2010-04-16 Jakub Jelinek <jakub@redhat.com>
10692 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
10693 don't call get_addr on both. If one expression is a VALUE and
10694 the other a REG, check VALUE's locs if the REG isn't among them.
10696 2010-04-16 Christian Bruel <christian.bruel@st.com>
10698 * config/sh/sh.h (sh_frame_pointer_required): New function.
10699 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
10700 (flag_omit_frame_pointer) Set.
10701 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
10702 (rounded_frame_size): Adjust size with outgoing_args_size.
10703 (sh_set_return_address): Must return from stack pointer.
10704 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
10705 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
10706 (ACCUMULATE_OUTGOING_ARGS): Define.
10707 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
10708 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
10710 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
10713 * config/sh/sh.c (sh_legitimize_reload_address): Use
10714 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
10715 Remove a unneeded check for offset_base.
10717 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
10719 * configure: Regenerated.
10721 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10723 * config/s390/s390.c (s390_call_save_register_used): Switch back
10724 to HARD_REGNO_NREGS.
10726 2010-04-15 Richard Guenther <rguenther@suse.de>
10728 * alias.c (alias_set_subset_of): Handle alias-set zero
10731 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
10732 Julian Brown <julian@codesourcery.com>
10734 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
10735 alternatives according to use of high and low regs.
10736 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
10737 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
10738 optimizing for size on Thumb-2.
10740 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
10742 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
10744 2010-04-15 Richard Guenther <rguenther@suse.de>
10746 * tree-ssa-structalias.c (struct variable_info): Add
10748 (new_var_info): Initialize it.
10749 (dump_constraints): Support printing last added constraints.
10750 (debug_constraints): Adjust.
10751 (dump_constraint_graph): Likewise.
10752 (make_heapvar_for): Check for NULL cfun.
10753 (get_function_part_constraint): New function.
10754 (get_fi_for_callee): Likewise.
10755 (find_func_aliases): Properly implement IPA PTA constraints.
10756 (process_ipa_clobber): New function.
10757 (find_func_clobbers): Likewise.
10758 (insert_into_field_list_sorted): Remove.
10759 (create_function_info_for): Properly allocate vars for IPA mode.
10760 Do not use insert_into_field_list_sorted.
10761 (create_variable_info_for): Properly generate constraints for
10762 global vars in IPA mode.
10763 (dump_solution_for_var): Always dump the solution.
10764 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
10765 (find_what_var_points_to): Adjust.
10766 (pt_solution_set): Change.
10767 (pt_solution_ior_into): New function.
10768 (pt_solution_empty_p): Export.
10769 (pt_solution_includes_global): Adjust.
10770 (pt_solution_includes_1): Likewise.
10771 (pt_solutions_intersect_1): Likewise.
10772 (dump_sa_points_to_info): Check some invariants.
10773 (solve_constraints): Move constraint dumping ...
10774 (compute_points_to_sets): ... here.
10775 (ipa_pta_execute): ... and here.
10776 (compute_may_aliases): Do not re-compute points-to info
10777 locally if IPA info is available.
10778 (ipa_escaped_pt): New global var.
10779 (ipa_pta_execute): Properly implement IPA PTA.
10780 * tree-into-ssa.c (dump_decl_set): Support dumping
10781 decls not in referenced-vars.
10782 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
10783 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
10784 (dump_points_to_solution): Likewise.
10785 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
10786 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
10787 (remap_gimple_stmt): Reset call clobber/use information if necessary.
10788 (copy_decl_to_var): Copy DECL_PT_UID.
10789 (copy_result_decl_to_var): Likewise.
10790 * tree.c (make_node_stat): Initialize DECL_PT_UID.
10791 (copy_node_stat): Copy it.
10792 * tree.h (DECL_PT_UID): New macro.
10793 (SET_DECL_PT_UID): Likewise.
10794 (DECL_PT_UID_SET_P): Likewise.
10795 (struct tree_decl_minimal): Add pt_uid member.
10796 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
10797 (pt_solution_empty_p): Declare.
10798 (pt_solution_set): Adjust.
10799 (ipa_escaped_pt): Declare.
10800 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
10801 * gimple-pretty-print.c (pp_points_to_solution): New function.
10802 (dump_gimple_call): Dump call clobber/use information.
10803 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
10804 * tree-pass.h (TDF_ALIAS): New dump option.
10805 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
10806 * doc/invoke.texi (-fipa-pta): Update documentation.
10808 2010-04-15 Richard Guenther <rguenther@suse.de>
10810 * Makefile.in (OBJS-common): Add gimple-fold.o.
10811 (gimple-fold.o): New rule.
10812 * tree.h (maybe_fold_offset_to_reference,
10813 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
10815 * gimple.h: ... here.
10816 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
10817 may_propagate_address_into_dereference): Move prototypes ...
10818 * gimple.h: ... here.
10819 * tree-ssa-ccp.c (get_symbol_constant_value,
10820 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
10821 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
10822 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
10823 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
10824 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
10825 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
10826 gimplify_and_update_call_from_tree): Move ...
10827 * gimple-fold.c: ... here. New file.
10828 (ccp_fold_builtin): Rename to ...
10829 (gimple_fold_builtin): ... this.
10830 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
10832 2010-04-15 Richard Guenther <rguenther@suse.de>
10834 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
10835 fit_double_type, force_fit_type_double, add_double_with_sign,
10836 neg_double, mul_double_with_sign, lshift_double, rshift_double,
10837 lrotate_double, rrotate_double, div_and_round_double): Move ...
10838 * double-int.c: ... here.
10839 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
10840 add_double, neg_double, mul_double_with_sign, mul_double,
10841 lshift_double, rshift_double, lrotate_double, rrotate_double,
10842 div_and_round_double): Move prototypes ...
10843 * double-int.h: ... here.
10845 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
10848 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
10849 matching constraints to ensure inputs match the output.
10851 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
10854 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
10855 in an input-only operand.
10857 2010-04-15 Anatoly Sokolov <aesok@post.ru>
10859 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
10860 (double_int_not, double_int_lshift, double_int_rshift): Declare.
10861 (double_int_negative_p): Convert to static inline function.
10862 * double-int.c (double_int_lshift, double_int_lshift): New functions.
10863 (double_int_negative_p): Remove.
10864 * tree.h (lshift_double, rshift_double):
10865 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
10866 * fold-const.c (fold_convert_const_int_from_real,
10867 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
10868 (lshift_double): Change type of arith argument to bool.
10869 (rshift_double): Change type of arith argument to bool. Correct
10871 * expmed.c (mask_rtx, lshift_value): (Ditto.).
10873 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
10876 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
10877 at the start and end of the then/else blocks, and omit them from the
10879 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
10880 argument; all callers changed. Pass zero to old_insns_match_p instead.
10881 (flow_find_head_matching_sequence): New function.
10882 (old_insns_match_p): Check REG_EH_REGION notes for calls.
10883 * basic-block.h (flow_find_cross_jump,
10884 flow_find_head_matching_sequence): Declare functions.
10886 2010-04-14 Jason Merrill <jason@redhat.com>
10889 * c-common.c (attribute_takes_identifier_p): New fn.
10890 * c-common.h: Declare it.
10892 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10894 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
10895 splitter condition.
10896 (*udivmod<mode>4): Ditto.
10898 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10900 * config/i386/i386.md (maxmin_int): Rename code attribute from
10901 maxminiprefix and update all users.
10902 (maxmin_float): Ditto from maxminfprefix.
10903 (logic): Ditto from logicprefix.
10904 (absneg_mnemonic): Ditto from absnegprefix.
10905 * config/i386/mmx.md: Update all users of maxminiprefix,
10906 maxminfprefix and logicprefix for rename.
10907 * config/i386/sse.md: Ditto.
10908 * config/i386/sync.md (sync_<code><mode>): Update for
10909 logicprefix rename.
10911 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
10914 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
10915 warnings converted to errors.
10917 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10919 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
10920 used insn_type variable.
10921 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
10922 to avoid set-but-not-used warning.
10924 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10926 * df-core.c (df_ref_debug): Change format string placeholder
10928 * dwarf2asm.c (dw2_asm_output_data_raw,
10929 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
10930 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
10931 * dwarf2out.c (output_cfi, output_cfi_directive,
10932 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
10933 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
10935 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
10936 * print-rtl.c (print_rtx): Ditto.
10938 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10940 PR middle-end/42694
10941 * builtins.c (expand_builtin_pow_root): New function to expand pow
10942 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
10943 series of sqrt and cbrt calls under -ffast-math.
10944 (expand_builtin_pow): Call it.
10946 2010-04-14 Michael Matz <matz@suse.de>
10948 PR tree-optimization/42963
10949 * tree-cfg.c (touched_switch_bbs): New static variable.
10950 (group_case_labels_stmt): New function broken out from ...
10951 (group_case_labels): ... here, use the above.
10952 (start_recording_case_labels): Allocate touched_switch_bbs.
10953 (end_recording_case_labels): Deallocate it, call
10954 group_case_labels_stmt.
10955 (gimple_redirect_edge_and_branch): Remember index of affected BB.
10957 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10959 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
10960 from insn template.
10962 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10964 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
10966 2010-04-13 Jan Hubicka <jh@suse.cz>
10968 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
10969 of optimized out static functions.
10970 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
10971 cost computation. Also sanity check for overflows.
10972 (update_caller_keys): Update cgraph_edge_badness call; properly
10973 update fibheap and sanity check that it is up to date.
10974 (add_new_edges_to_heap): Update cgraph_edge_badness.
10975 (cgraph_decide_inlining_of_small_function): Likewise;
10976 add sanity checking that badness in heap is up to date;
10977 improve dumping of reason; Update badness of calls to the
10978 offline copy of function currently inlined; dump badness
10979 of functions not inlined because of unit growth limits.
10981 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
10983 PR middle-end/32628
10984 * c-common.c (pointer_int_sum): Disregard overflow that occured only
10985 because of sign-extension change when converting to sizetype here...
10986 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
10988 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
10989 the folding to constants. Remove redundant final conversion.
10990 (fold_binary) <associate>: Do not associate if the re-association of
10991 constants alone overflows.
10992 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
10993 to the end of the list.
10994 (multiple_of_p) <COND_EXPR>: New case.
10996 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
10998 * opt-functions.awk (opt_sanitized_name): New.
11000 * optc-gen.awk: Use it
11001 * opth-gen.awk: Use it.
11003 2010-04-13 Martin Jambor <mjambor@suse.cz>
11005 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
11006 (sra_modify_assign): Delete stmts loading dead data even if racc has no
11007 children. Call replace_uses_with_default_def_ssa_name to handle
11010 2010-04-13 Michael Matz <matz@suse.de>
11012 PR middle-end/43730
11013 * builtins.c (expand_builtin_interclass_mathfn): Also create
11014 a register if the predicate doesn't match.
11016 2010-04-13 Diego Novillo <dnovillo@google.com>
11018 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
11019 * c-pch.c: Include timevar.h.
11020 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
11021 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
11022 * ggc-common.c: Include timevar.h.
11023 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
11024 * timevar.def (TV_PCH_SAVE): Define.
11025 (TV_PCH_CPP_SAVE): Define.
11026 (TV_PCH_PTR_REALLOC): Define.
11027 (TV_PCH_PTR_SORT): Define.
11028 (TV_PCH_RESTORE): Define.
11029 (TV_PCH_CPP_RESTORE): Define.
11031 2010-04-13 Michael Matz <matz@suse.de>
11033 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
11035 (can_reassociate_p): New function.
11036 (break_up_subtract_bb, reassociate_bb): Use it.
11038 2010-04-13 Richard Guenther <rguenther@suse.de>
11041 * builtins.c (c_readstr): Fix assert.
11043 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
11045 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
11046 when generating cltd insn.
11048 (*ashl<mode>3_1): Remove special handling for register operand 2.
11049 (*ashlsi3_1_zext): Ditto.
11050 (*ashlhi3_1): Ditto.
11051 (*ashlhi3_1_lea): Ditto.
11052 (*ashlqi3_1): Ditto.
11053 (*ashlqi3_1_lea): Ditto.
11054 (*<shiftrt_insn><mode>3_1): Ditto.
11055 (*<shiftrt_insn>si3_1_zext): Ditto.
11056 (*<shiftrt_insn>qi3_1_slp): Ditto.
11057 (*<rotate_insn><mode>3_1): Ditto.
11058 (*<rotate_insn>si3_1_zext): Ditto.
11059 (*<rotate_insn>qi3_1_slp): Ditto.
11061 2010-04-13 Richard Guenther <rguenther@suse.de>
11063 * tree-ssa-structalias.c (callused_id): Remove.
11064 (call_stmt_vars): New.
11065 (get_call_vi): Likewise.
11066 (lookup_call_use_vi): Likewise.
11067 (lookup_call_clobber_vi): Likewise.
11068 (get_call_use_vi): Likewise.
11069 (get_call_clobber_vi): Likewise.
11070 (make_transitive_closure_constraints): Likewise.
11071 (handle_const_call): Adjust to do per-call call-used handling.
11072 (handle_pure_call): Likewise.
11073 (find_what_var_points_to): Remove general callused handling.
11074 (init_base_vars): Likewise.
11075 (init_alias_vars): Initialize call_stmt_vars.
11076 (compute_points_to_sets): Process call-used and call-clobbered
11077 vars for call statements.
11078 (delete_points_to_sets): Free call_stmt_vars.
11080 2010-04-13 Richard Guenther <rguenther@suse.de>
11082 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11083 Only add RW dependence for dependence distance zero.
11084 Adjust maximal vectorization factor according to dependences.
11085 Move alignment handling ...
11086 (vect_find_same_alignment_drs): ... here. New function.
11087 (vect_analyze_data_ref_dependences): Adjust.
11088 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
11089 (vect_analyze_data_refs): Adjust minimal vectorization factor
11090 according to data references.
11091 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
11092 dependences before determining the vectorization factor.
11093 Analyze alignment after determining the vectorization factor.
11094 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
11095 dependences before alignment.
11096 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
11098 (vect_analyze_data_refs): Likewise.
11099 (MAX_VECTORIZATION_FACTOR): New define.
11101 2010-04-13 Duncan Sands <baldrick@free.fr>
11103 * except.h (lang_eh_type_covers): Remove.
11104 * except.c (lang_eh_type_covers): Likewise.
11106 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11107 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11109 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
11110 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
11111 UNITS_PER_LONG where it is ABI relevant.
11112 (s390_return_addr_rtx): Likewise.
11113 (s390_back_chain_rtx): Likewise.
11114 (s390_frame_area): Likewise.
11115 (s390_frame_info): Likewise.
11116 (s390_initial_elimination_offset): Likewise.
11117 (save_gprs): Likewise.
11118 (s390_emit_prologue): Likewise.
11119 (s390_emit_epilogue): Likewise.
11120 (s390_function_arg_advance): Likewise.
11121 (s390_function_arg): Likewise.
11122 (s390_va_start): Likewise.
11123 (s390_gimplify_va_arg): Likewise.
11124 (s390_function_profiler): Likewise.
11125 (s390_optimize_prologue): Likewise.
11126 (s390_rtx_costs): Likewise.
11127 (s390_secondary_reload): Likewise.
11128 (s390_promote_function_mode): Likewise.
11129 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
11130 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
11131 registers available.
11132 (s390_unwind_word_mode): New function.
11133 (s390_function_value): Split 64 bit values into register pair if
11134 used as return value.
11135 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
11136 function call parameters. Handle parallels.
11137 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
11138 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
11139 (DWARF_CIE_DATA_ALIGNMENT): New macro.
11140 (s390_expand_setmem): Remove unused variable src_addr.
11141 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
11142 deal with 64 bit registers.
11143 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
11144 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
11145 (UNITS_PER_LONG): New macro.
11146 * libjava/include/s390-signal.h: Define extended ucontext
11147 structure containing the upper halfs of the 64 bit registers.
11149 2010-04-13 Simon Baldwin <simonb@google.com>
11151 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
11153 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
11155 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
11156 rvalue on the RHS if the LHS is of a non-renamable type.
11157 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
11159 2010-04-13 Matthias Klose <doko@ubuntu.com>
11161 * gcc.c (cc1_options): Handle -iplugindir before processing
11162 the cc1 spec. Only add -iplugindir once.
11163 (cpp_unique_options): Add -iplugindir option if -fplugin* options
11165 * common.opt (iplugindir): Remove `Separate' property, initialize.
11166 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
11168 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
11169 (distclean): Remove plugin dir.
11170 * doc/invoke.texi: Document -iplugindir.
11172 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
11174 * doc/plugins.texi (Loading Plugins): Document short
11175 -fplugin=foo option.
11176 (Plugin API): Mention default_plugin_dir_name function.
11178 * gcc.c (find_file_spec_function): Add new declaration.
11179 (static_spec_func): Use it for "find-file".
11180 (find_file_spec_function): Add new function.
11181 (cc1_options): Add -iplugindir option if -fplugin* options found.
11183 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
11185 * plugin.c (add_new_plugin): Updated comment, and handle short
11187 (default_plugin_dir_name): Added new function.
11189 * common.opt (iplugindir): New option to set the plugin directory.
11191 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
11193 * config/i386/i386.md (any_rotate): New code iterator.
11194 (rotate_insn): New code attribute.
11196 (SWIM124): New mode iterator.
11197 (<rotate_insn>ti3): New expander.
11198 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
11199 any_rotate code iterator.
11200 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
11201 using any_rotate code iterator and SWIM124 mode iterator.
11202 (ix86_rotlti3): New insn_and_split pattern.
11203 (ix86_rotrti3): Ditto.
11204 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
11205 ix86_rotl{di,ti}3 patterns.
11206 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
11207 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
11208 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
11209 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
11210 code iterator and SWI mode iterator.
11211 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
11212 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
11214 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
11215 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
11216 (bswap rotatert splitter): Add splitter.
11217 (bswap splitter): Macroize splitter using any_rotate code iterator.
11218 Add insn predicate to split only for TARGET_USE_XCHGB or when
11219 optimizing function for size.
11221 2010-04-12 Steve Ellcey <sje@cup.hp.com>
11223 * config/pa/pa.c (emit_move_sequence): Remove use of
11224 deleted variable flag_argument_noalias.
11226 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11228 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
11230 Add to unsupported targets list.
11231 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
11232 sparc*-sun-solaris2.[567]* from target lists.
11233 * configure: Regenerate.
11234 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
11236 Remove Solaris 7 patch references.
11237 (Specific, sparc-sun-solaris2.7): Removed.
11238 (sparc-sun-solaris2*): Update Solaris 7 example.
11239 (sparc64-*-solaris2*): Likewise.
11241 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11243 * config.build (alpha*-dec-osf4*): Remove.
11244 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
11245 of obsolete configurations.
11246 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
11248 * config/alpha/t-osf4: Renamed to ...
11249 * config/alpha/t-osf5: ... this.
11250 * config/alpha/osf.h: Renamed to ...
11251 * config/alpha/osf5.h: ... this.
11252 Merged old osf5.h contents.
11254 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
11255 (EXTRA_SPECS): Removed.
11256 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
11257 reflect removal of Tru64 UNIX V4.0/V5.0 support.
11260 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11262 * doc/contrib.texi (Contributors, Rainer Orth): Update.
11264 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
11267 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
11268 __thiscall convention.
11270 2010-04-12 Steve Ellcey <sje@cup.hp.com>
11272 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
11274 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
11276 2010-04-12 Steve Ellcey <sje@cup.hp.com>
11278 * function.c (assign_parms_initialize_all): Add unused attribute
11281 2010-04-12 Richard Guenther <rguenther@suse.de>
11283 * gsstruct.def (GSS_CALL): New.
11284 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
11285 * gimple.h: Include tree-ssa-alias.h.
11286 (struct gimple_statement_call): New.
11287 (union gimple_statement_struct_d): Add gimple_call member.
11288 (gimple_call_reset_alias_info): Declare.
11289 (gimple_call_use_set): New function.
11290 (gimple_call_clobber_set): Likewise.
11291 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
11292 * gimple.c (gimple_call_reset_alias_info): New function.
11293 (gimple_build_call_1): Call it.
11294 * lto-streamer-in.c (input_gimple_stmt): Likewise.
11295 * tree-inline.c (remap_gimple_stmt): Likewise.
11296 (expand_call_inline): Remove callused handling.
11297 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
11298 * tree-dfa.c (dump_variable): Likewise.
11299 * tree-parloops.c (parallelize_loops): Likewise.
11300 * tree-ssa.c (init_tree_ssa): Likewise.
11301 (delete_tree_ssa): Likewise.
11302 * tree-flow-inline.h (is_call_used): Remove.
11303 * tree-flow.h (struct gimple_df): Remove callused member.
11304 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
11305 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
11306 (ref_maybe_used_by_call_p_1): Simplify.
11307 (call_may_clobber_ref_p_1): Likewise.
11308 * tree-ssa-structalias.c (compute_points_to_sets): Set
11309 the call stmt used and clobbered sets.
11310 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
11311 (find_tail_calls): Verify the tail call.
11313 2010-04-12 Richard Guenther <rguenther@suse.de>
11315 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
11316 single-iteration always-inline inlining.
11317 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
11318 (cgraph_decide_inlining): Do not handle always-inline specially.
11319 (try_inline): Remove always-inline cycle detection special case.
11320 Do not recurse on always-inlines.
11321 (cgraph_early_inlining): Do not iterate if not optimizing.
11322 (cgraph_gate_early_inlining): remove.
11323 (pass_early_inline): Run unconditionally.
11324 (gate_cgraph_decide_inlining): New function.
11325 (pass_ipa_inline): Use it. Do not run the IPA inliner if
11326 not inlining or optimizing.
11327 (cgraph_decide_inlining_of_small_functions): Also consider
11328 always-inline functions.
11329 (cgraph_default_inline_p): Return true for nodes which should
11330 disregard inline limits.
11331 (estimate_function_body_sizes): Assume zero size and time for
11332 nodes which are marked as disregarding inline limits.
11333 (cgraph_decide_recursive_inlining): Do not perform recursive
11334 inlining on always-inline nodes.
11336 2010-04-12 Jakub Jelinek <jakub@redhat.com>
11339 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
11340 for exprs satisfying handled_component_p.
11342 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
11344 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
11345 non-constant aggregate elements.
11347 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
11348 is a real initialization.
11350 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
11353 * c-decl.c (start_function): Move forward check for nested function.
11355 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
11357 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
11358 * config/sh/sh.c: Include reload.h.
11359 (sh_legitimize_reload_address): New.
11360 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
11361 sh_legitimize_reload_address.
11363 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
11365 * config/sh/sh.md (*movqi_pop): New insn pattern.
11366 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
11368 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
11370 * config/i386/i386.md (any_shiftrt): New code iterator.
11371 (shiftrt_insn): New code attribute.
11373 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
11374 using any_shiftrt code iterator.
11375 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
11376 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
11377 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
11378 pattern from corresponding peephole2 patterns.
11379 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
11380 using any_shiftrt code iterator.
11381 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
11382 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
11383 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
11384 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
11385 *{ashr,lshr}<mode>3_cmp_zext.
11386 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
11388 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
11390 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
11392 (*lshr<mode>3_cconly): Ditto.
11394 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
11396 * config/i386/i386.md (lshr<mode>3): Macroize expander from
11397 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
11398 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
11399 pattern from *lshr{di,ti}3_1 and corresponding splitters using
11401 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
11402 from corresponding peephole2 patterns.
11403 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
11404 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
11405 and *lshrdi3_1_rex64 using SWI mode iterator.
11406 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
11407 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
11408 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
11409 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
11410 and *lshrdi3_cmp_rex64 using SWI mode iterator.
11411 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
11412 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
11413 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
11414 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
11417 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
11419 * config/i386/i386.md (ashr<mode>3): Macroize expander from
11420 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
11421 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
11422 pattern from *ashr{di,ti}3_1 and corresponding splitters using
11424 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
11425 from corresponding peephole2 patterns.
11426 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
11427 (ashrsi3_cvt): Rename from ashrsi3_31.
11428 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
11429 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
11430 and x86_64_shift_adj_3 using SWI48 mode iterator.
11431 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
11432 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
11433 and *ashrdi3_1_rex64 using SWI mode iterator.
11434 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
11435 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
11436 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
11437 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
11438 and *ashrdi3_cmp_rex64 using SWI mode iterator.
11439 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
11440 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
11441 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
11442 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
11444 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
11445 * config/i386/i386.c (ix86_split_ashr): Update for renamed
11446 x86_shift<mode>_adj_3 expanders.
11448 2010-04-10 Wei Guozhi <carrot@google.com>
11451 * config/arm/arm.c (arm_pic_static_addr): New function.
11452 (legitimize_pic_address): Call arm_pic_static_addr when it detects
11454 (arm_output_addr_const_extra): Output expression for new pattern.
11455 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
11457 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
11459 * ira-costs.c (record_reg_classes): Ignore alternatives that are
11462 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
11463 * web.c: Include "insn-config.h" and "recog.h".
11464 (union_match_dups): New function.
11465 (web_main): Call it.
11466 (union_defs): Don't try to recognize match_dups.
11468 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
11469 if doing so would replace the entire pattern.
11471 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
11475 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
11476 and splitter pattern. Change splitter operand 1 predicate to
11479 2010-04-09 Martin Jambor <mjambor@suse.cz>
11481 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
11482 lattices are addresses of CONST_DECLs with the same initial value.
11483 (ipcp_print_all_lattices): Print values of CONST_DECLs.
11484 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
11486 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
11487 Bernd Schmidt <bernds@codesourcery.com>
11489 * loop-invariant.c (replace_uses): New static function.
11490 (move_invariant_reg): Use it to ensure we can replace the uses.
11492 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
11494 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
11496 (picochip_override_options): Enable section anchors only above -O1.
11497 (picochip_reorg): Fixed a couple of build warnings.
11499 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11501 * configure.ac (plugin -rdynamic test): Log result.
11502 * configure: Regenerate.
11503 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
11504 (RDYNAMIC_SPEC): Define.
11505 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
11507 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11509 * configure.ac: Determine Sun ld version numbers.
11510 (comdat_group): Restrict GNU ld version checks to gld.
11511 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
11512 (enable_comdat): Support --enable-comdat.
11513 * configure: Regenerate.
11514 * doc/install.texi (Configuration): Document --enable-comdat.
11516 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11518 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
11519 * config/sol2-gld.h: ... here.
11520 * config.gcc (sparc*-*-solaris2*): Reflect this.
11521 (i[34567]86-*-solaris2*): Use it.
11523 2010-04-09 Steve Ellcey <sje@cup.hp.com>
11525 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
11527 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
11529 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
11532 * diagnostic.c (diagnostic_initialize): Initialize
11533 some_warnings_are_errors.
11534 (diagnostic_finish): New.
11535 (diagnostic_action_after_output): Call it before exiting.
11536 (diagnostic_report_diagnostic): Do not print message here. Set
11537 some_warnings_are_errors.
11538 * diagnostic.h (diagnostic_context): Delete
11539 issue_warnings_are_errors_message. Add some_warnings_are_errors.
11540 (diagnostic_finish): Declare.
11541 * toplev.c (toplev_main): Call it before exit.
11543 2010-04-09 Jason Merrill <jason@redhat.com>
11546 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
11547 for incomplete type.
11550 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
11551 based on a warning flag.
11553 2010-04-09 Richard Guenther <rguenther@suse.de>
11555 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
11557 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
11560 * varasm.c (default_assemble_visibility): Wrap vars that are
11561 set, but unused, by targets without GAS.
11562 * config/rs6000/rs6000.c (paired_emit_vector_compare):
11563 Remove set, but unused, vars.
11564 (rs6000_legitimize_tls_address): Likewise.
11565 (altivec_expand_dst_builtin): Likewise.
11566 * config/darwin.c (machopic_classify_symbol): Likewise.
11567 (machopic_indirection_name): Likewise.
11569 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
11571 * config/i386/i386.md (DWI): New mode iterator.
11572 (S): New mode attribute.
11573 (shift_operand): Ditto.
11574 (shift_immediate_operand): Ditto.
11575 (ashl_input_operand): Ditto.
11576 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
11577 using SDWIM mode iterator.
11578 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
11579 pattern from *ashl{di,ti}3_1 and corresponding splitters using
11581 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
11582 from corresponding peephole2 patterns.
11583 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
11584 and x86_64_shift_adj_1 using SWI48 mode iterator.
11585 (x86_shift<mode>_adj_2): Ditto.
11586 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
11587 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
11588 using SWI48 mode iterator.
11589 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
11590 *ashldi3_cmp_rex64 using SWI mode iterator.
11591 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
11592 *ashldi3_cconly_rex64 using SWI mode iterator.
11593 * config/i386/i386.c (ix86_split_ashl): Update for renamed
11594 x86_shift<mode>_adj_{1,2}.
11595 (ix86_split_ashr): Ditto.
11596 (ix86_split_lshr): Ditto.
11598 2010-04-09 Richard Guenther <rguenther@suse.de>
11600 * target.h (builtin_conversion): Pass in input and output types.
11601 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
11602 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
11603 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
11604 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
11606 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
11608 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
11610 2010-04-09 Richard Guenther <rguenther@suse.de>
11613 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
11615 2010-04-09 Richard Guenther <rguenther@suse.de>
11617 * tree-vectorizer.h (struct _stmt_vec_info): Document
11618 that vectype is the type of the LHS.
11619 (supportable_widening_operation, supportable_narrowing_operation):
11620 Get both input and output vector types as arguments.
11621 (vect_is_simple_use_1): Declare.
11622 (get_same_sized_vectype): Likewise.
11623 * tree-vect-loop.c (vect_determine_vectorization_factor):
11624 Set STMT_VINFO_VECTYPE to the vector type of the def.
11625 (vectorizable_reduction): Adjust.
11626 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
11627 Adjust. Specify the output vector type.
11628 (vect_pattern_recog_1): Adjust.
11629 * tree-vect-stmts.c (get_same_sized_vectype): New function.
11630 (vectorizable_call): Adjust.
11631 (vectorizable_conversion): Likewise.
11632 (vectorizable_operation): Likewise.
11633 (vectorizable_type_demotion): Likewise.
11634 (vectorizable_type_promotion): Likewise.
11635 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
11637 (vect_is_simple_use_1): New function.
11638 (supportable_widening_operation): Get both input and output
11640 (supportable_narrowing_operation): Likewise.
11641 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
11643 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
11645 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
11646 __thiscall and _thiscall as predefined macros.
11647 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
11648 thiscall attribute handling.
11649 (ix86_comp_type_attributes): Likewise.
11650 (ix86_function_regparm): Likewise.
11651 (ix86_return_pops_args): Likewise.
11652 (init_cumulative_args): Likewise.
11653 (find_drap_reg): Likewise.
11654 (ix86_static_chain): Likewise.
11655 (x86_this_parameter): Likewise.
11656 (x86_output_mi_thunk): Likewise.
11657 (ix86_attribute_table): Add description for thiscall attribute.
11658 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
11659 * doc/extend.texi: Add documentation for thiscall.
11661 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
11664 * c.opt (Wint-to-pointer-cast): Available in C++.
11665 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
11667 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
11669 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
11670 * calls.c (expand_call): Pass the function type to aggregate_value_p.
11671 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
11672 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
11673 function type instead. Reorder and simplify checks.
11675 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
11677 2010-04-08 Jing Yu <jingyu@google.com>
11678 Zdenek Dvorak <ook@ucw.cz>
11680 PR tree-optimization/42720
11681 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
11682 loop unswitch conditions here from ...
11683 (tree_unswitch_single_loop): ... here.
11685 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
11687 * tree-if-conv.c: Fix comments and simplify logic.
11689 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
11691 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
11692 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
11693 (main_tree_if_conversion): Update call to tree_if_conversion.
11695 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11698 * doc/invoke.texi (-b,-V): Delete.
11699 * doc/tm.texi: Do not mention -b.
11700 * gcc.c (display_help): Delete -b and -V.
11701 (process_command): Delete -b and -V.
11702 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
11704 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
11705 Wolfgang Gellerich <gellerich@de.ibm.com>
11707 Implement target hook for loop unrolling
11708 * target.h (loop_unroll_adjust): Add a new target hook function.
11709 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
11710 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
11711 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
11712 (s390_loop_unroll_adjust): Implement the new target hook for s390.
11713 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
11715 (decide_unroll_stupid): Likewise.
11717 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11720 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
11722 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11724 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
11725 (Specific, *-*-solaris2*): Likewise.
11726 Don't prefer Sun as over GNU as.
11728 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
11730 * config/s390/s390.c (override_options): Adjust the z10 defaults
11731 for max-unroll-times, max-completely-peeled-insns
11732 and max-completely-peel-times.
11734 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11736 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
11737 instructions for z10.
11738 (s390_expand_setmem): Likewise.
11739 (s390_expand_cmpmem): Likewise.
11741 2010-04-08 Richard Guenther <rguenther@suse.de>
11743 PR tree-optimization/43679
11744 * tree-ssa-pre.c (eliminate): Only propagate copies.
11746 2010-04-08 Jakub Jelinek <jakub@redhat.com>
11749 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
11750 set but not used variable warning.
11752 2010-04-08 Wei Guozhi <carrot@google.com>
11755 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
11756 (arm_size_rtx_costs): Call the new function when optimized for size.
11758 2010-04-08 Jakub Jelinek <jakub@redhat.com>
11761 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
11762 op0 is not a MEM, just return NULL instead of assertion
11764 (discover_nonconstant_array_refs): Don't walk debug stmts.
11766 2010-04-08 Doug Kwan <dougkwan@google.com>
11768 * configure.ac: Recognize gold and do not use its version number
11769 to test ld features.
11770 * configure: Regenerate.
11772 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
11774 PR middle-end/40815
11775 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
11776 (negate_value): Move code to push elements to broken_up_substracts ...
11777 (eliminate_plus_minus_pair): ... here. Push operands that have no
11778 negative pair to plus_negates.
11779 (repropagate_negates, init_reassoc, fini_reassoc): Update.
11781 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11783 * doc/install.texi (Configuration): Move description of
11784 --enable-lto, --with-libelf*, --enable-gold from Java section to
11787 * doc/generic.texi (Working with declarations)
11788 (Function Properties, C and C++ Trees): Fix typos.
11789 * doc/sourcebuild.texi (Top Level): Likewise.
11791 2010-04-07 Jakub Jelinek <jakub@redhat.com>
11794 * tree.h (DECL_READ_P): Define.
11795 (struct tree_decl_common): Add decl_read_flag.
11796 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
11797 a set but not used warning.
11798 (merge_decls): Merge DECL_READ_P flag.
11799 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
11800 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
11801 * c-common.c (handle_used_attribute, handle_unused_attribute):
11803 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
11805 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
11807 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
11808 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
11809 c_parser_binary_expression, c_parser_cast_expression,
11810 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
11811 Call default_function_array_read_conversion instead of
11812 default_function_array_conversion where needed.
11813 (c_parser_unary_expression, c_parser_conditional_expression,
11814 c_parser_postfix_expression_after_primary, c_parser_initelt):
11815 Likewise. Call mark_exp_read where needed.
11816 (c_parser_statement_after_labels, c_parser_asm_operands,
11817 c_parser_typeof_specifier, c_parser_sizeof_expression,
11818 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
11820 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
11822 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
11823 (warn_unused_but_set_parameter): Default to warn_unused
11825 * doc/invoke.texi: Document -Wunused-but-set-variable and
11826 -Wunused-but-set-parameter.
11828 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
11829 used count variable.
11830 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
11831 when operandN variables aren't used in the body of the expander
11833 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
11834 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
11835 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
11836 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
11837 FOR_EACH_IMM_USE_ON_STMT): Likewise.
11838 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
11839 * tree.c (PROCESS_ARG): Likewise.
11841 2010-04-07 Simon Baldwin <simonb@google.com>
11843 * diagnostic.h (diagnostic_override_option_index): New macro to
11844 set a diagnostic's option_index.
11845 * c-tree.h (c_cpp_error): Add warning reason argument.
11846 * opts.c (_warning_as_error_callback): New.
11847 (register_warning_as_error_callback): Store callback for
11848 warnings enabled via enable_warning_as_error.
11849 (enable_warning_as_error): Call callback, minor code tidy.
11850 * opts.h (register_warning_as_error_callback): Declare.
11851 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
11852 response to -Werror=.
11853 (c_common_init_options): Register warning_as_error_callback in opts.c.
11854 * common.opt: Add -Wno-cpp option.
11855 * c-common.c (struct reason_option_codes_t): Map cpp warning
11856 reason codes to gcc option indexes.
11857 * (c_option_controlling_cpp_error): New function, lookup the gcc
11858 option index for a cpp warning reason code.
11859 * (c_cpp_error): Add warning reason argument, call
11860 c_option_controlling_cpp_error for diagnostic_override_option_index.
11861 * doc/invoke.texi: Document -Wno-cpp.
11863 2010-04-07 Richard Guenther <rguenther@suse.de>
11865 * ipa-reference.c (mark_load): Use get_base_address.
11866 (mark_store): Likewise.
11868 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
11869 inserting GIMPLE_NOPs into the IL.
11870 * tree-ssa-structalias.c (get_constraint_for_component_ref):
11871 Explicitly strip handled components and indirect references.
11873 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
11874 folding address expressions.
11875 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
11876 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
11877 operand_equal_p to compare decls.
11878 (ptr_deref_may_alias_decl_p): Likewise.
11879 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
11880 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
11881 Handle reversed comparison ops.
11882 * tree-sra.c (asm_visit_addr): Use get_base_address.
11883 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
11884 * ipa-reference.c (mark_address): Use get_base_address.
11886 2010-04-07 Richard Guenther <rguenther@suse.de>
11888 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
11889 Propagate constants everywhere.
11891 2010-04-07 Jakub Jelinek <jakub@redhat.com>
11894 * tree.c (MAX_INT_CACHED_PREC): Define.
11895 (nonstandard_integer_type_cache): New array.
11896 (build_nonstandard_integer_type): Cache results for precision
11897 <= MAX_INT_CACHED_PREC.
11899 2010-04-07 Richard Guenther <rguenther@suse.de>
11901 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
11902 -fargument-noalias-global, -fargument-noalias-anything): Remove.
11903 * common.opt: Likewise.
11904 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
11905 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
11906 (nonoverlapping_memrefs_p): Likewise.
11907 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
11908 * opts.c (common_handle_option): Handle OPT_fargument_alias,
11909 OPT_fargument_noalias, OPT_fargument_noalias_anything and
11910 OPT_fargument_noalias_global for backward compatibility.
11912 2010-04-07 Richard Guenther <rguenther@suse.de>
11914 PR tree-optimization/43270
11915 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
11916 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
11917 * tree-ssa-pre.c (phi_translate_1): Adjust.
11918 (fully_constant_expression): Split out vn_reference handling to ...
11919 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
11920 Fold reads from constant strings.
11921 (vn_reference_lookup): Handle fully constant references.
11922 (vn_reference_lookup_pieces): Likewise.
11923 * Makefile.in (expmed.o-warn): Add -Wno-error.
11925 2010-04-07 Martin Jambor <mjambor@suse.cz>
11927 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
11929 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
11932 * gcc.c: Add -static-libstdc++ to list of recognized options.
11934 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11936 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
11938 2010-04-07 Richard Guenther <rguenther@suse.de>
11940 PR middle-end/42617
11941 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
11942 bases build simple mem attributes to retain points-to information.
11944 2010-04-07 Richard Guenther <rguenther@suse.de>
11946 PR middle-end/42617
11947 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
11948 preserve points-to related information.
11950 2010-04-07 Richard Guenther <rguenther@suse.de>
11952 PR middle-end/42617
11953 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
11954 discard plain indirect references.
11955 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
11956 * tree.c (tree_nop_conversion): Likewise.
11958 2010-04-07 Dodji Seketeli <dodji@redhat.com>
11961 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
11963 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
11965 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
11966 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
11968 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11970 * tree-if-conv.c: Fix indentation and comments.
11972 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11974 * tree-if-conv.c: Sort static functions in topological order.
11976 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11978 * tree-if-conv.c: Fix indentation and comments.
11980 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11982 PR middle-end/43519
11983 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
11984 lang_hooks.types.type_for_size instead of
11985 build_nonstandard_integer_type.
11986 When converting an unsigned type to signed, double its precision.
11987 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
11988 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
11989 (graphite_create_new_loop_guard): When ub + 1 wraps around,
11992 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11994 PR middle-end/43519
11995 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
11996 POINTER_PLUS_EXPR for pointer types.
11998 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
12000 PR middle-end/43519
12001 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
12002 * graphite-clast-to-gimple.c: Include langhooks.h.
12003 (max_signed_precision_type): New.
12004 (max_precision_type): Takes two types as arguments.
12005 (precision_for_value): New.
12006 (precision_for_interval): New.
12007 (gcc_type_for_interval): New.
12008 (gcc_type_for_value): New.
12009 (gcc_type_for_clast_term): New.
12010 (gcc_type_for_clast_red): New.
12011 (gcc_type_for_clast_bin): New.
12012 (gcc_type_for_clast_expr): Split up into several functions.
12013 (gcc_type_for_clast_eq): Rewritten.
12014 (compute_bounds_for_level): New.
12015 (compute_type_for_level_1): New.
12016 (compute_type_for_level): New.
12017 (gcc_type_for_cloog_iv): Removed.
12018 (gcc_type_for_iv_of_clast_loop): Rewritten.
12019 (graphite_create_new_loop): Compute the lower and upper bound types
12020 with gcc_type_for_clast_expr.
12021 (graphite_create_new_loop_guard): Same.
12022 (find_cloog_iv_in_expr): Removed.
12023 (compute_cloog_iv_types_1): Removed.
12024 (compute_cloog_iv_types): Removed.
12025 (gloog): Do not call compute_cloog_iv_types.
12026 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
12027 GBB_CLOOG_IV_TYPES.
12028 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
12029 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
12030 (GBB_CLOOG_IV_TYPES): Removed.
12032 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
12034 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
12035 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
12036 (detect_commutative_reduction): Same.
12038 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
12040 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
12041 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
12043 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
12044 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
12045 (rewrite_commutative_reductions_out_of_ssa): Same.
12046 * passes.c (execute_function_todo): Call verify_ssa for every pass
12047 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
12048 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
12049 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
12050 with an extra argument.
12051 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
12052 verify_ssa only when the extra argument is true.
12053 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
12054 with an extra argument.
12055 (tree_transform_and_unroll_loop): Same.
12057 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
12059 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
12060 for all the passes of the LNO having LOOP_CLOSED_SSA.
12061 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
12062 * tree-loop-distribution.c (pass_loop_distribution): Same.
12063 * tree-pass.h (TODO_verify_loops): Removed.
12064 * tree-ssa-loop.c (pass_tree_loop_init): Same.
12066 (pass_tree_unswitch): Same.
12067 (pass_predcom): Same.
12068 (pass_vectorize): Same.
12069 (pass_linear_transform): Same.
12070 (pass_graphite_transforms): Same.
12071 (pass_iv_canon): Same.
12072 (pass_complete_unroll): Same.
12073 (pass_complete_unrolli): Same.
12074 (pass_parallelize_loops): Same.
12075 (pass_loop_prefetch): Same.
12076 (pass_iv_optimize): Same.
12078 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
12080 PR middle-end/32824
12081 * passes.c (init_optimization_passes): Move pass_lim before
12082 pass_copy_prop and pass_dce_loop.
12084 2010-04-06 Jakub Jelinek <jakub@redhat.com>
12087 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
12088 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
12089 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
12090 MULTI_* defines for 4 argument vpermil2p* builtins.
12092 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
12094 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
12095 * config/i386/i386.c (x86_maybe_negate_const_int): New.
12096 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
12097 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
12098 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
12099 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
12100 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
12101 Use x86_maybe_negate_const_int to output insn mnemonic.
12102 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
12103 check from instruction predicate. Update comments.
12104 * config/i386/sync.md (sync_add<mode>): Use
12105 x86_maybe_negate_const_int to output insn mnemonic.
12107 2010-04-06 Jan Hubicka <jh@suse.cz>
12109 PR tree-optimization/42906
12110 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
12111 IGNORE_SELF argument. Set visited_control_parents for fully
12113 (find_obviously_necessary_stmts): Update call of
12114 mark_control_dependent_edges_necessary.
12115 (propagate_necessity): Likewise. Handle PHI edges more curefully.
12117 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
12119 * config/i386/i386.md: Remove comment about 'e' and 'E'
12122 2010-04-06 Richard Guenther <rguenther@suse.de>
12124 PR tree-optimization/43627
12125 * tree-vrp.c (extract_range_from_unary_expr): Widenings
12126 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
12129 2010-04-06 Jakub Jelinek <jakub@redhat.com>
12131 * BASE-VER: Change to 4.6.0.
12134 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
12137 2010-04-06 Richard Guenther <rguenther@suse.de>
12139 PR middle-end/43661
12140 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
12142 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12144 * doc/invoke.texi (Optimize Options): Document that LTO
12145 won't remove object access purely due to incompatible
12148 2010-04-04 Matthias Klose <doko@ubuntu.com>
12150 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
12151 Initialize variable.
12153 2010-04-03 Richard Guenther <rguenther@suse.de>
12155 PR middle-end/42509
12156 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
12157 require a non-NULL MEM_OFFSET.
12159 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
12161 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
12162 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
12163 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
12164 config/alpha/predicates.md, config/arm/arm.md,
12165 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
12166 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
12167 config/darwin9.h, config/darwin.c, config/darwin.h,
12168 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
12169 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
12170 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
12171 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
12172 config/mips/mips.md, config/mn10300/mn10300.c,
12173 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
12174 config/rs6000/aix.h, config/rs6000/dfp.md,
12175 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
12176 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
12177 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
12178 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
12179 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
12180 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
12181 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
12182 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
12183 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
12184 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
12185 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
12186 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
12187 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
12188 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
12189 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
12190 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
12191 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
12192 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
12193 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
12194 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
12195 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
12196 opt-functions.awk, opth-gen.awk, params.def, passes.c,
12197 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
12198 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
12199 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
12200 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
12201 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
12202 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
12203 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
12204 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
12205 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
12206 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
12207 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
12208 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
12209 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
12210 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
12212 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12215 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
12216 * aclocal.m4: Regenerate.
12218 2010-04-02 Richard Guenther <rguenther@suse.de>
12220 PR tree-optimization/43629
12221 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
12222 if we have seen a constant value.
12224 2010-04-02 Joseph Myers <joseph@codesourcery.com>
12226 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
12228 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
12231 * arm.c (legitimize_tls_address): Adjust call to
12232 gen_tls_load_dot_plus_four.
12233 (arm_note_pic_base): New function.
12234 (arm_cannot_copy_insn_p): Use it.
12235 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
12238 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12243 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12245 * Makefile.in ($(out_object_file)): Depend on
12246 gt-$(basename $(notdir $(out_file))).h.
12248 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
12250 * config.gcc (lm32-*-rtems*): Add t-lm32.
12252 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
12254 * config.gcc: Add lm32-*-rtems*.
12255 * config/lm32/rtems.h: New file.
12257 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
12260 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
12262 2010-04-01 Jakub Jelinek <jakub@redhat.com>
12264 * dwarf2out.c (output_compilation_unit_header): For
12265 -gdwarf-4 use version 4 instead of version 3.
12266 (output_line_info): For version 4 and above emit additional
12267 maximum ops per insn header field.
12268 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
12270 * dwarf2out.c (is_c_family, is_java): Remove.
12271 (lower_bound_default): New function.
12272 (add_bound_info, gen_descr_array_type_die): Use it.
12274 2010-04-01 Dodji Seketeli <dodji@redhat.com>
12277 * dwarf2out.c (gen_variable_die): Allow debug info for variable
12278 re-declaration when it happens in a function.
12280 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
12282 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
12283 (cgraph_remove_function_insertion_hook): Same.
12284 (cgraph_call_function_insertion_hooks): Same.
12286 2010-04-01 Richard Guenther <rguenther@suse.de>
12288 PR middle-end/43614
12289 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
12290 and TREE_THIS_VOLATILE.
12291 (copy_ref_info): Likewise.
12292 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
12293 * tree.c (build6_stat): Ignore side-effects of all but arg5
12294 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
12297 2010-04-01 Richard Guenther <rguenther@suse.de>
12299 PR tree-optimization/43607
12300 * ipa-type-escape.c (check_call): Do not access non-existing
12303 2010-04-01 Richard Guenther <rguenther@suse.de>
12305 PR middle-end/43602
12307 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
12308 Jack Howarth <howarth@bromo.med.uc.edu>
12310 * tree-profile.c (tree_init_ic_make_global_vars): Make static
12313 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12315 * doc/install.texi (Prerequisites): Document libelf usability on
12316 IRIX 5/6 and Solaris 2.
12317 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
12318 Update GNU as, GNU ld requirements.
12319 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
12320 Document Sun Studio compiler download.
12321 Update and simplify as, ld recommendations.
12322 (Specific, *-*-solaris2.7): Note obsoletion, removal.
12324 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12326 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
12327 with_tune_32 to pentium4.
12329 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
12331 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
12333 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12335 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
12336 obsoletion, removal.
12338 Document GNU as requirement.
12339 Update configure requirements.
12340 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
12341 Recomment IRIX 6.5.18+.
12342 Document IDF/IDL requirement.
12343 Document GNU as requirement.
12344 Document GNU ld bootstrap failure.
12345 Remove freeware.sgi.com reference.
12347 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12349 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
12350 UNIX V4.0, V5.0 obsoletion, removal.
12351 Remove --with-gc=simple reference.
12352 Update VM requirements during bootstrap.
12353 Remove -oldas bootstrap description.
12354 Update binutils reference.
12355 Remove comparison failure note.
12357 2010-03-31 Richard Guenther <rguenther@suse.de>
12358 Zdenek Dvorak <ook@ucw.cz>
12359 Sebastian Pop <sebastian.pop@amd.com>
12361 PR middle-end/43464
12362 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
12363 with multiple arguments.
12364 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
12366 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
12368 * graphite-dependences.c (print_pddr): Call print_pdr with an
12370 * graphite-poly.c (debug_pdr): Add an extra argument for the
12373 (print_pbb_domain): Same.
12375 (print_scop_context): Same.
12376 (print_scop): Same.
12377 (print_cloog): Same.
12378 (debug_pbb_domain): Same.
12380 (print_pdrs): Same.
12381 (debug_pdrs): Same.
12382 (debug_scop_context): Same.
12383 (debug_scop): Same.
12384 (debug_cloog): Same.
12385 (print_scop_params): Same.
12386 (debug_scop_params): Same.
12387 (print_iteration_domain): Same.
12388 (print_iteration_domains): Same.
12389 (debug_iteration_domain): Same.
12390 (debug_iteration_domains): Same.
12391 (print_scattering_function): Same.
12392 (print_scattering_functions): Same.
12393 (debug_scattering_function): Same.
12394 (debug_scattering_functions): Same.
12395 * graphite-poly.h (debug_pdr): Update declaration.
12397 (print_pbb_domain): Same.
12399 (print_scop_context): Same.
12400 (print_scop): Same.
12401 (print_cloog): Same.
12402 (debug_pbb_domain): Same.
12404 (print_pdrs): Same.
12405 (debug_pdrs): Same.
12406 (debug_scop_context): Same.
12407 (debug_scop): Same.
12408 (debug_cloog): Same.
12409 (print_scop_params): Same.
12410 (debug_scop_params): Same.
12411 (print_iteration_domain): Same.
12412 (print_iteration_domains): Same.
12413 (debug_iteration_domain): Same.
12414 (debug_iteration_domains): Same.
12415 (print_scattering_function): Same.
12416 (print_scattering_functions): Same.
12417 (debug_scattering_function): Same.
12418 (debug_scattering_functions): Same.
12420 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
12422 * graphite-poly.c (print_scattering_function_1): New.
12423 (print_scattering_function): Call it.
12424 (print_scop_params): Remove spaces at the end of lines.
12425 (print_cloog): New.
12426 (debug_cloog): New.
12427 * graphite-poly.h (print_cloog): Declared.
12428 (debug_cloog): Declared.
12430 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
12432 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
12434 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
12435 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
12436 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
12437 to switch between adding the IV bump in loop->latch or in loop->header.
12439 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
12441 * graphite-poly.c (print_scattering_function): Pretty print following
12442 the scoplib format.
12444 (print_pbb_domain): Same.
12445 (dump_gbb_cases): Same.
12446 (dump_gbb_conditions): Same.
12447 (print_pdrs): Same.
12449 (print_scop_params): Same.
12450 (print_scop_context): Same.
12451 (print_scop): Same.
12452 (print_pbb_body): New.
12453 (lst_indent_to): New.
12454 (print_lst): Start new lines with a #.
12455 * graphite-poly.h (pbb_bb): New.
12456 (pbb_index): Use pbb_bb.
12457 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
12459 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
12461 2010-03-31 Jakub Jelinek <jakub@redhat.com>
12463 * dwarf2out.c (size_of_die): For -gdwarf-4 use
12464 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
12465 and 0 instead of 1 for dw_val_class_flag.
12466 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
12467 dw_val_class_range_list, dw_val_class_loc_list,
12468 dw_val_class_lineptr and dw_val_class_macptr, use
12469 DW_FORM_flag_present for dw_val_class_flag and
12470 DW_FORM_exprloc for dw_val_class_loc.
12471 (output_die): For -gdwarf-4 print dw_val_class_loc
12472 size as uleb128 instead of 1 or 2 bytes and don't print
12473 anything for dw_val_class_flag.
12475 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
12476 instead of cselib_lookup following by tweaking locs->setting_insn.
12479 * cselib.c (cselib_process_insn): Clear cselib_current_insn
12480 even before returning from label, setjmp call or volatile asm
12483 2010-03-31 Richard Guenther <rguenther@suse.de>
12485 PR middle-end/43600
12486 * cgraphunit.c (cgraph_output_in_order): Do not allocate
12487 temporary data on stack.
12489 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12491 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
12492 (PUSHSECTION_ASM_OP): Remove.
12493 (POPSECTION_ASM_OP): Remove.
12494 (PUSHSECTION_FORMAT): Remove.
12495 * config/sol2.h (PUSHSECTION_FORMAT): Define.
12496 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
12497 * config/sol2.c (solaris_output_init_fini): Use it.
12499 2010-03-31 Jie Zhang <jie@codesourcery.com>
12502 * opt-functions.awk (var_type_struct): Use signed char type
12503 for simple variables.
12505 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12507 * config/sol2.c: Include output.h.
12508 (solaris_assemble_visibility): New function.
12509 * config/t-sol2 (sol2.o): Add output.h dependency.
12510 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
12511 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
12514 2010-03-31 Jakub Jelinek <jakub@redhat.com>
12517 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
12518 V2SImode or XFmode on PRE_DEC.
12521 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
12524 2010-03-31 Jie Zhang <jie@codesourcery.com>
12527 * reload.h (caller_save_initialized_p): Declare.
12528 * toplev.c (backend_init_target): Don't call
12529 init_caller_save but set caller_save_initialized_p to false.
12530 * caller-save.c (caller_save_initialized_p): Define.
12531 (init_caller_save): Check caller_save_initialized_p.
12532 * ira.c (ira): Call init_caller_save if flag_caller_saves.
12534 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12537 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
12538 and soft-fp/t-softfp to tmake_file.
12539 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
12540 (LIBGCC2_TF_CEXT): Define.
12543 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
12546 * cselib.c (n_useless_values): Document handling of debug locs.
12547 (n_useless_debug_values, n_debug_values): New variables.
12548 (new_elt_loc_list): Don't add to debug values, keep count.
12549 (promote_debug_loc): New.
12550 (cselib_reset_table): Zero new variables.
12551 (entry_and_rtx_equal_p): Promote debug locs.
12552 (discard_useless_locs): Increment n_useless_debug_values for
12554 (remove_useless_values): Adjust n_useless_values and n_debug_values
12555 with n_useless_debug_values.
12556 (add_mem_for_addr): Promote debug locs.
12557 (cselib_lookup_mem): Likewise.
12558 (cselib_lookup_addr): Renamed to...
12559 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
12560 (cselib_log_lookup): ... this. Turn into...
12561 (cselib_lookup_addr): ... new wrapper.
12562 (cselib_lookup_from_insn): New.
12563 (cselib_invalidate_regno): Increment n_useless_debug_values for
12565 (cselib_invalidate_mem): Likewise.
12566 (cselib_process_insn): Take n_deleted and n_debug_values into
12567 account to guard remove_useless_value call.
12568 (cselib_finish): Zero n_useless_debug_values.
12569 * cselib.h (cselib_lookup_from_insn): Declare.
12570 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
12571 (sched_analyze_2): Likewise.
12573 2010-03-30 Jakub Jelinek <jakub@redhat.com>
12575 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
12577 (adjust_mems): Replace narrowing SUBREG of expression containing
12578 just PLUS, MINUS, MULT and ASHIFT of registers and constants
12579 with operations in the narrower mode.
12582 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
12583 regs_invalidated_by_call instead all call_used_reg_set registers.
12585 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
12587 PR middle-end/43430
12588 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
12589 pointer comparisons with types_compatible_p.
12590 * tree-vect-stmts.c (vectorizable_call): Same.
12591 (vectorizable_condition): Same.
12593 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12595 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
12596 stack check if the mask would be zero.
12598 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
12599 Jack Howarth <howarth@bromo.med.uc.edu>
12601 * tree-profile.c (tree_init_ic_make_global_vars): Make static
12604 2010-03-30 Joseph Myers <joseph@codesourcery.com>
12607 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
12609 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
12610 Include ___unordxf2 and ___unordtf2.
12611 * config/i386/libgcc-glibc.ver: Do not define inheritance from
12614 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
12616 * config/lm32/t-lm32: New file.
12617 * config.gcc: Use the above file when targetting lm32.
12619 2010-03-28 Duncan Sands <baldrick@free.fr>
12621 * Makefile.in (PLUGIN_HEADERS): Add except.h.
12623 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
12625 PR middle-end/43431
12626 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
12627 Improve vectorization cost model diagnostic.
12629 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
12631 PR middle-end/43436
12632 * tree-vect-data-refs.c (vect_analyze_data_refs): When
12633 compute_data_dependences_for_loop returns false, early exit
12634 and output an extra diagnostic for the failed data reference
12637 2010-03-29 Richard Guenther <rguenther@suse.de>
12639 PR tree-optimization/43560
12640 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
12641 (can_sm_ref_p): Treat stores to readonly locations as trapping.
12643 2010-03-29 Jie Zhang <jie@codesourcery.com>
12646 * toplev.c (process_options): Set optimization_default_node
12647 and optimization_current_node.
12648 * opts.c (decode_options): Don't set optimization_default_node
12649 and optimization_current_node.
12651 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
12653 * config/rtems.h: Abandon -qrtems_debug.
12655 2010-03-28 Jan Hubicka <jh@suse.cz>
12657 PR tree-optimization/43505
12658 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
12659 map should not be copied.
12661 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12663 PR middle-end/41674
12664 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
12665 cdtors, set DECL_PRESERVE_P.
12666 * ipa.c (cgraph_externally_visible_p): Return true if declaration
12667 should be preseved.
12669 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
12671 PR tree-optimization/43528
12672 * stor-layout.c (place_field): Check that constant fits into
12673 unsigned HWI when skipping calculation of MS bitfield layout.
12675 2010-03-27 Jan Hubicka <jh@suse.cz>
12677 PR middle-end/43391
12678 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
12679 notice_global_symbol work.
12681 2010-03-27 Jakub Jelinek <jakub@redhat.com>
12683 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
12684 instead of dwarf2out_decl.
12685 (struct var_loc_node): Remove section_label field.
12686 (dwarf2out_function_decl): New function.
12687 (dwarf2out_var_location): Don't set section_label field.
12688 (dwarf2out_begin_function): Don't empty decl_loc_table here.
12690 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12692 PR tree-optimization/43544
12693 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
12694 First argument for builtin vectorized function hook is now a
12695 tree to be able to distinguish between machine specific and
12697 * targhooks.c (default_builtin_vectorized_function): Ditto.
12698 * targhooks.h (default_builtin_vectorized_function): Ditto.
12699 * target.h (struct gcc_target): Ditto.
12700 * tree-vect-stmts.c (vectorizable_function): Ditto.
12701 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
12702 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
12705 2010-03-26 Joseph Myers <joseph@codesourcery.com>
12708 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
12709 nested binding iff it is a FUNCTION_DECL.
12710 (store_parm_decls_newstyle): Pass nested=true to bind for
12711 FUNCTION_DECLs amongst parameters.
12713 2010-03-26 Jakub Jelinek <jakub@redhat.com>
12715 * var-tracking.c (vt_expand_loc_callback): Don't run
12716 cselib_expand_value_rtx_cb in dummy mode if
12717 cselib_dummy_expand_value_rtx_cb returned false.
12719 * var-tracking.c (emit_note_insn_var_location): For one part
12720 notes with offset 0, don't add EXPR_LIST around the location.
12721 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
12722 add_location_or_const_value_attribute): Adjust for that change.
12725 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
12726 into first operand and location into second.
12727 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
12728 dw_cfi_oprnd_loc for DW_CFA_expression.
12729 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
12730 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
12731 assume first argument is regnum and second argument is location.
12733 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
12736 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
12737 of scratch register to DImode. Split to DImode comparison operator.
12738 Use SImode subreg of scratch register in the multiplication.
12739 (*cmp_sadd_sidi): Ditto.
12740 (*cmp_ssub_si): Ditto.
12741 (*cmp_ssub_sidi): Ditto.
12743 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
12746 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
12747 Remove invalid assert and wrong comment.
12749 2010-03-26 Jakub Jelinek <jakub@redhat.com>
12752 * flags.h (final_insns_dump_p): New extern.
12753 * final.c (final_insns_dump_p): New variable.
12754 (rest_of_clean_state): Set it before -fdump-final-insns=
12755 dumping, clear afterwards.
12756 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
12757 MEM_ALIAS_SET on MEMs.
12759 2010-03-26 David S. Miller <davem@davemloft.net>
12761 * configure.ac: Fix sparc GOTDATA_OP bug check.
12762 * configure: Rebuild.
12764 2010-03-26 Alan Modra <amodra@gmail.com>
12766 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
12768 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12770 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
12771 TLS_SECTION_ASM_FLAG.
12773 2010-03-25 Jakub Jelinek <jakub@redhat.com>
12776 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
12777 Clear first_function_block_is_cold.
12780 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
12781 argument if the argument is truth_value_p.
12783 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12785 * config/rs6000/constraints.md: Update copyright year for my changes.
12788 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
12789 used in reg+reg addressing, swap registers.
12791 2010-03-24 Jakub Jelinek <jakub@redhat.com>
12794 * target.h (struct gcc_target): Add code_end hook.
12795 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
12796 if not yet defined.
12797 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
12798 * toplev.c (compile_file): Call targetm.asm_out.code_end
12799 hook before unwind info/debug info output.
12800 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
12801 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
12802 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
12803 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
12804 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
12805 * config/i386/i386.c (ix86_file_end): Renamed to...
12806 (ix86_code_end): ... this. Make static. Don't call
12807 file_end_indicate_exec_stack. Emit unwind info using
12808 final_start_function/final_end_function.
12809 (darwin_x86_file_end): Remove.
12810 (TARGET_ASM_CODE_END): Define.
12811 * config/i386/i386.h (TARGET_ASM_FILE_END,
12812 NEED_INDICATE_EXEC_STACK): Don't define.
12813 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
12814 (TARGET_ASM_FILE_END): Define to darwin_file_end.
12815 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
12816 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
12819 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
12820 at the beginning and final_end_function at the end.
12821 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
12823 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12825 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
12826 and Sun as TLS syntax.
12827 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
12828 * configure: Regenerate.
12829 * config.in: Regenerate.
12830 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
12831 (default_elf_asm_named_section): Use it.
12832 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
12833 (i386_output_dwarf_dtprel): Likewise.
12834 (output_addr_const_extra): Likewise.
12835 (output_pic_addr_const): Lowercase @GOTTPOFF.
12836 (output_addr_const_extra): Likewise.
12837 (output_pic_addr_const): Lowercase @GOTNTPOFF.
12838 (output_addr_const_extra): Likewise.
12839 (output_pic_addr_const): Lowercase @INDNTPOFF.
12840 (output_addr_const_extra): Likewise.
12841 (output_pic_addr_const): Lowercase @NTPOFF.
12842 (output_addr_const_extra): Likewise.
12843 (output_pic_addr_const): Lowercase @TPOFF.
12844 (output_addr_const_extra): Likewise.
12845 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
12846 (*tls_global_dynamic_64): Likewise.
12847 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
12848 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
12850 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
12851 (ASM_OUTPUT_TLS_COMMON): Use it.
12852 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
12855 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
12856 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
12857 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
12858 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
12859 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
12860 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
12862 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12864 * config/i386/i386.c (override_options): Don't accept
12865 -mtls-dialect=sun any longer.
12866 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
12867 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
12868 (*tls_local_dynamic_base_32_sun): Likewise.
12869 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
12871 2010-03-24 Jakub Jelinek <jakub@redhat.com>
12874 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
12875 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
12878 * ira.c (adjust_cleared_regs): New function.
12879 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
12883 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
12885 * expr.c (expand_expr_real): Restore previous
12886 curr_insn_source_location and curr_insn_block after
12887 expand_expr_real_1 call.
12888 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
12889 instead of expand_expr_real_1.
12891 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
12893 PR rtl-optimization/43413
12894 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
12897 2010-03-22 James E. Wilson <wilson@codesourcery.com>
12900 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
12901 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
12903 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
12905 * config/i386/i386.c (ix86_target_string): Add -mfma.
12906 Fix a typo in comment.
12908 2010-03-22 Mike Stump <mikestump@comcast.net>
12911 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
12912 Don't overly align based upon packed packed fields.
12914 2010-03-22 Jason Merrill <jason@redhat.com>
12916 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
12917 Use () rather than [], and move before the element type.
12919 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12921 * doc/configfiles.texi (Configuration Files): Removed
12922 fixinc/Makefile*, intl/Makefile.*.
12923 * doc/makefile.texi: Fixed markup. Abstract from version
12924 control system used.
12925 (Makefile): Removed obsolete gcc/java/parse.y example.
12926 * doc/sourcebuild.texi: Likewise.
12927 (Top Level): Added config, gnattools, libdecnumber, libgcc,
12928 libgomp, libssp. Removed fastjar.
12929 (Miscellaneous Docs): Clarify location.
12930 Added COPYING3, COPYING3.LIB.
12931 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
12933 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12936 * config/i386/i386.c (x86_function_profiler)
12937 [!NO_PROFILE_COUNTERS]: Fix typo.
12938 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
12941 2010-03-22 Janis Johnson <janis187@us.ibm.com>
12942 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12944 * doc/sourcebuild.texi (Test Directives): Split into six
12945 subsections, with most of the current text in new subsections
12946 Directives, Selectors, and Final Actions.
12947 (Directives): Split list of test directives into multiple
12949 (Selectors): Describe use and syntax of selectors.
12950 (Effective-Target Keywords): Describe all existing keywords.
12951 (Add Options): Describe features for dg-add-options.
12952 (Require Support): Describe variants of dg-require-support.
12953 (Final Actions): Describe commands to use in dg-final.
12955 2010-03-22 Michael Matz <matz@suse.de>
12957 PR middle-end/43475
12958 * recog.c (validate_replace_rtx_group): Replace also in
12959 REG_EQUAL and REG_EQUIV notes.
12961 2010-03-22 Richard Guenther <rguenther@suse.de>
12963 PR tree-optimization/43390
12964 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
12965 sure vector extracts are type correct.
12967 2010-03-22 Richard Guenther <rguenther@suse.de>
12969 PR middle-end/40106
12970 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
12971 x * sqrt (x) even when optimizing for size if the target
12972 has native support for sqrt.
12974 2010-03-22 Jakub Jelinek <jakub@redhat.com>
12976 * varasm.c (make_decl_rtl_for_debug): Also clear
12977 flag_mudflap for the duration of make_decl_rtl call.
12980 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
12981 locs from preserved VALUEs.
12983 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12985 PR middle-end/42718
12986 * pa.md (movmemsi): Set align to one if zero.
12987 (movmemdi): Likewise.
12989 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
12992 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
12993 with their corresponding prologue pushes.
12995 2010-03-20 Andrew Pinski <pinskia@gmail.com>
12998 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
12999 at the begining or end.
13000 (spu_expand_epilogue): Likewise.
13002 2010-03-20 Richard Guenther <rguenther@suse.de>
13004 PR rtl-optimization/43438
13005 * combine.c (make_extraction): Properly zero-/sign-extend an
13006 extraction of the low part of a CONST_INT. Also handle
13009 2010-03-19 Mike Stump <mikestump@comcast.net>
13011 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
13012 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
13013 (override_options): Use SUBTARGET32_DEFAULT_CPU.
13015 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
13018 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
13021 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
13023 PR rtl-optimization/42258
13024 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
13025 use that may match DEF.
13028 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
13029 the cost of loading the constant rather than assuming
13031 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
13032 outer code is AND, do the same tests as the andsi3 expander and
13033 return COSTS_N_INSNS (1) if and is cheap.
13035 * optabs.c (avoid_expensive_constant): Fix formatting.
13037 2010-03-19 Michael Matz <matz@suse.de>
13040 * attribs.c (decl_attributes): When rebuilding a function pointer
13041 type use the same qualifiers as the original pointer type.
13043 2010-03-19 Martin Jambor <mjambor@suse.cz>
13045 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
13046 and is_gimple_ip_invariant_address.
13048 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13051 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13053 * config/arm/arm.c (arm_override_options): Turn off
13054 flag_dwarf2_cfi_asm for AAPCS variants.
13056 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13059 * config/arm/arm.c (emit_multi_reg_push): Update comments.
13060 Use PRE_MODIFY instead of PRE_DEC.
13061 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
13062 (vfp_emit_fstmd): Likewise.
13064 2010-03-19 Michael Matz <matz@suse.de>
13067 * builtins.c (expand_builtin_interclass_mathfn,
13068 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
13071 2010-03-19 Richard Guenther <rguenther@suse.de>
13073 PR tree-optimization/43415
13074 * tree-ssa-pre.c (phi_translate): Split out worker to ...
13075 (phi_translate_1): ... this.
13076 (phi_translate): Move all caching here. Cache all NARY
13077 and REFERENCE translations.
13079 2010-03-19 David S. Miller <davem@davemloft.net>
13081 With help from Eric Botcazou.
13082 * config/sparc/sparc.c: Include dwarf2out.h.
13083 (emit_pic_helper): Delete.
13084 (pic_helper_symbol_name): Delete.
13085 (pic_helper_emitted_p): Delete.
13086 (pic_helper_needed): New.
13087 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
13088 (get_pc_thunk_name): New.
13089 (load_pic_register): Remove 'delay_pic_helper' arg. Use
13090 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
13091 Set pic_helper_needed to true. Don't call emit_pic_helper.
13092 (sparc_expand_prologue): Update load_pic_register call.
13093 (sparc_output_mi_thunk): Likewise.
13094 (sparc_file_end): Emit a hidden comdat symbol for the PIC
13095 thunk if possible. Output CFI information as needed.
13097 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13098 Jack Howarth <howarth@bromo.med.uc.edu>
13101 * config/i386/i386.h: Fix ABI on darwin x86-32.
13103 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
13105 * tree.h: Declare make_decl_rtl_for_debug.
13106 * varasm.c (make_decl_rtl_for_debug): New.
13107 * dwarf2out.c (rtl_for_decl_location): Call it.
13108 * cfgexpand.c (expand_debug_expr): Call it.
13110 2010-03-18 Jakub Jelinek <jakub@redhat.com>
13113 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
13117 * var-tracking.c (vt_init_cfa_base): Do nothing if
13118 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
13120 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
13123 * var-tracking.c (canonicalize_vars_star): New.
13124 (dataflow_post_merge_adjust): Use it.
13126 2010-03-18 Jakub Jelinek <jakub@redhat.com>
13129 * var-tracking.c (non_suitable_const): New function.
13130 (add_uses): For DEBUG_INSNs with constants, don't record any
13131 value, instead just the constant value itself.
13132 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
13133 is not VAR_LOC_UNKNOWN_P, set var to the constant.
13134 (emit_notes_in_bb): Likewise.
13135 (emit_note_insn_var_location): For onepart variables if
13136 cur_loc is a VOIDmode constant, use DECL_MODE.
13138 2010-03-18 Martin Jambor <mjambor@suse.cz>
13140 PR middle-end/42450
13141 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
13142 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
13143 all non-clones. Moved call redirection...
13144 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
13145 (cgraph_materialize_all_clones): Dispose of all
13146 combined_args_to_skip bitmaps.
13147 (verify_cgraph_node): Do not check for edges pointing to wrong
13148 nodes in inline clones.
13149 * tree-inline.c (copy_bb): Call
13150 cgraph_redirect_edge_call_stmt_to_callee.
13151 * ipa.c (cgraph_remove_unreachable_nodes): Call
13152 cgraph_node_remove_callees even when there are used clones.
13154 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
13156 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
13158 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
13161 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
13164 2010-03-18 Michael Matz <matz@suse.de>
13166 PR middle-end/43419
13167 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
13168 into sqrt(x) if we need to preserve signed zeros.
13170 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
13171 Eric Botcazou <ebotcazou@adacore.com>
13173 PR rtl-optimization/43360
13174 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
13175 note if we don't know its invariant status.
13177 2010-03-18 Michael Matz <matz@suse.de>
13179 PR tree-optimization/43402
13180 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
13181 PHI chains of ssa names registered for update.
13183 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
13186 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
13187 non-offsettable and pre_modify update addressing.
13188 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
13189 and "2" alternatives "#".
13190 (*movdd_softfloat32): Make all alternatives "#";
13191 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
13192 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
13193 (*movdf_softfloat32): Make all alternatives "#";
13194 (movdi): Use the new DIFD mode iterator to create a common splitter
13195 for movdi, movdf and movdd patterns.
13197 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
13199 * common.opt (dumpdir): Remove redundant tab.
13201 2010-03-17 Martin Jambor <mjambor@suse.cz>
13203 PR tree-optimization/43347
13204 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
13205 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
13207 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
13209 PR rtl-optimization/42216
13210 * regrename.c (create_new_chain): New function, broken out from...
13211 (scan_rtx_reg): ... here. Call it. Handle the case where we are
13212 appending a use to an empty chain.
13213 (build_def_use): Remove previous changes that convert OP_INOUT to
13214 OP_OUT operands; instead detect the case where an OP_INOUT operand
13215 uses a previously untracked register and create an empty chain for it.
13217 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13219 * doc/extend.texi (Function Attributes): Rewrite unfinished
13220 sentence in ms_abi documentation.
13222 2010-03-17 Alan Modra <amodra@gmail.com>
13224 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
13225 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
13226 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
13227 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
13229 2010-03-16 Richard Henderson <rth@redhat.com>
13231 PR middle-end/43365
13232 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
13233 (lower_try_finally): Save and restore eh_seq around the expansion
13234 of the try-finally.
13236 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
13238 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
13239 statements before splitting block.
13241 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13243 * doc/sourcebuild.texi (Testsuites): Fix markup.
13244 Use pathnames relative to gcc/testsuite.
13245 (Test Directives): Move description of how timeout is determined.
13246 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
13247 (C Tests): Correct gcc.misc-tests directory.
13248 Framework tests now live in gcc.test-framework.
13250 2010-03-16 Richard Guenther <rguenther@suse.de>
13252 PR middle-end/43379
13253 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
13254 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
13256 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
13257 Alexandre Oliva <aoliva@redhat.com>
13259 PR tree-optimization/42917
13260 * lambda-code.c (remove_iv): Skip debug statements.
13261 (lambda_loopnest_to_gcc_loopnest): Likewise.
13262 (not_interesting_stmt): Debug statements are not interesting.
13264 2010-03-16 Jakub Jelinek <jakub@redhat.com>
13268 * cselib.c (cselib_preserve_constants,
13269 cfa_base_preserved_val): New static variables.
13270 (preserve_only_constants): New function.
13271 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
13272 clear its REG_VALUES. If cselib_preserve_constants, don't
13273 empty the whole hash table, but preserve there VALUEs with constants,
13274 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
13275 (cselib_preserve_cfa_base_value): New function.
13276 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
13277 (cselib_init): Change argument to int bitfield. Set
13278 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
13280 (cselib_finish): Clear cselib_preserve_constants and
13281 cfa_base_preserved_val.
13282 * cselib.h (enum cselib_record_what): New enum.
13283 (cselib_init): Change argument to int.
13284 (cselib_preserve_cfa_base_value): New prototype.
13285 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
13286 * dse.c (dse_step1): Likewise.
13287 * cfgcleanup.c (thread_jump): Likewise.
13288 * sched-deps.c (sched_analyze): Likewise.
13289 * gcse.c (local_cprop_pass): Likewise.
13290 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
13291 If FN is non-NULL, call the callback always and whenever it returns
13292 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
13293 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
13294 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
13295 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
13296 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
13297 * var-tracking.c: Include recog.h.
13298 (bb_stack_adjust_offset): Remove.
13299 (vt_stack_adjustments): Don't call it, instead just gather the
13300 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
13301 (adjust_stack_reference): Remove.
13302 (compute_cfa_pointer): New function.
13303 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
13304 (struct adjust_mem_data): New type.
13305 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
13307 (get_address_mode): New function.
13308 (replace_expr_with_values): Use it.
13309 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
13310 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
13311 (adjust_sets): Remove.
13312 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
13313 Use get_address_mode.
13314 (get_adjusted_src): Remove.
13315 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
13316 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
13317 (add_with_sets): Don't call adjust_sets.
13318 (fp_setter, vt_init_cfa_base): New functions.
13319 (vt_initialize): Change return type to bool. Move most of pool etc.
13320 initialization to the beginning of the function from end. Pass
13321 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
13322 If !frame_pointer_needed, call vt_stack_adjustment before mos
13323 vector is filled, call vt_init_cfa_base if argp/framep has been
13324 eliminated to sp. If frame_pointer_needed and argp/framep has
13325 been eliminated to hard frame pointer, set
13326 hard_frame_pointer_adjustment and call vt_init_cfa_base after
13327 encountering fp setter in the prologue. For MO_ADJUST, call
13328 log_op_type before pusing the op into mos vector, not afterwards.
13329 Call adjust_insn before cselib_process_insn/add_with_sets,
13330 call cancel_changes (0) afterwards.
13331 (variable_tracking_main_1): Adjust for vt_initialize calling
13332 vt_stack_adjustments and returning whether it succeeded or not.
13334 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
13336 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
13339 2010-03-15 Jakub Jelinek <jakub@redhat.com>
13341 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
13343 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
13344 drap_reg has not been set.
13346 2010-03-15 Michael Matz <matz@suse.de>
13348 PR middle-end/43300
13349 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
13350 use it to expand block copies.
13351 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
13352 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
13353 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
13355 2010-03-15 Richard Guenther <rguenther@suse.de>
13357 PR tree-optimization/43367
13358 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
13361 2010-03-15 Richard Guenther <rguenther@suse.de>
13363 PR tree-optimization/43317
13364 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
13366 2010-03-15 Martin Jambor <mjambor@suse.cz>
13368 PR tree-optimization/43141
13369 * tree-sra.c (create_abstract_origin): New function.
13370 (modify_function): Call create_abstract_origin.
13372 2010-03-15 Chris Demetriou <cgd@google.com>
13374 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
13377 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13379 PR middle-end/43354
13380 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
13381 call insert_out_of_ssa_copy for default definitions.
13383 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13385 * graphite-clast-to-gimple.c (my_long_long): Defined.
13386 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
13387 * graphite-sese-to-poly.c (my_long_long): Defined.
13388 (scop_ivs_can_be_represented): Use it.
13390 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13392 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
13393 graphite-max-bbs-per-function, and loop-block-tile-size.
13394 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
13396 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
13398 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13400 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
13401 forward declaration.
13402 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
13403 (add_upper_bounds_from_estimated_nit): New.
13404 (build_loop_iteration_domains): Use it.
13406 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13408 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
13410 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13412 PR middle-end/43306
13413 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
13414 should be an INTEGER_CST. Also handle CASE_CONVERT.
13416 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13418 * graphite.c (graphite_initialize): To bound the number of bbs per
13419 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
13420 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
13421 * doc/invoke.texi: Document it.
13423 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13425 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
13426 * graphite-sese-to-poly.h (build_poly_scop): Same.
13428 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13430 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
13431 the number of parameters in the scop. Use as an upper bound
13432 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
13433 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
13434 * doc/invoke.texi: Document it.
13436 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
13438 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
13439 * doc/c-tree.texi: Remove.
13440 * doc/generic.texi: Merge c-tree.texi here.
13441 * doc/gccint.texi (Trees): Remove menu entry.
13442 (c-tree.texi): Remove @include.
13443 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
13444 * doc/languages.texi (Reading RTL): Ditto.
13446 2010-03-12 Steve Ellcey <sje@cup.hp.com>
13449 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
13451 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
13453 PR middle-end/42431
13454 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
13455 code added to work around reload clobbering CONST insns.
13457 2010-03-12 Jakub Jelinek <jakub@redhat.com>
13459 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
13460 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
13461 (cselib_preserve_only_values): Remove retain argument, don't
13462 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
13463 * cselib.h (cselib_preserve_only_values): Remove retain argument.
13464 * var-tracking.c (micro_operation): Move insn field before union.
13465 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
13466 (struct variable_tracking_info_def): Remove n_mos field, change
13467 mos into a vector of micro_operations.
13468 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
13469 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
13470 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
13471 changing into a vector.
13472 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
13473 come before all other uops generated by add_stores.
13474 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
13476 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
13477 a vector. Run just one pass over the bbs instead of separate counting
13478 and computation phase.
13479 (vt_finalize): Free VTI (bb)->mos vector instead of array.
13482 * tree-inline.c (remap_decls): Put old_var rather than origin_var
13483 into *nonlocalized_list vector.
13484 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
13485 even if origin is non-NULL.
13486 (gen_variable_die): Likewise.
13487 (process_scope_var): Don't change origin.
13488 (gen_decl_die): Likewise.
13489 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
13490 before adding new edges instead of after it, fix moving over
13493 2010-03-11 David S. Miller <davem@davemloft.net>
13495 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
13497 * configure: Rebuild.
13499 2010-03-11 Martin Jambor <mjambor@suse.cz>
13501 PR tree-optimization/43257
13502 * tree.c (assign_assembler_name_if_neeeded): New function.
13503 (free_lang_data_in_cgraph): Assembler name assignment moved to the
13504 above new function.
13505 * tree.h (assign_assembler_name_if_neeeded): Declare.
13506 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
13507 the function if needed.
13509 2010-03-11 Chris Demetriou <cgd@google.com>
13511 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
13512 include/stdint-gcc.h, and include/stdint.h world-readable.
13514 2010-03-11 Richard Guenther <rguenther@suse.de>
13516 PR tree-optimization/43255
13517 * tree-vrp.c (process_assert_insertions_for): Do not insert
13518 asserts for trivial conditions.
13520 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13522 PR tree-optimization/43280
13523 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
13524 generation. Move calculation of size out of the if branch.
13525 (find_bswap): Modify compare number generation.
13527 2010-03-11 Richard Guenther <rguenther@suse.de>
13530 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
13531 (input_gimple_stmt): Fixup handled component types during
13532 operand read. Also fix up decls in ADDR_EXPRs.
13534 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
13536 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
13537 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
13539 2010-03-10 Jan Hubicka <jh@suse.cz>
13542 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
13543 * varasm.c (get_variable_section): Don't do that here...
13544 (make_decl_rtl): ... and here.
13545 (do_assemble_alias): Produce decl RTL.
13546 (assemble_alias): Likewise.
13548 2010-03-10 Jakub Jelinek <jakub@redhat.com>
13551 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
13552 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
13554 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
13555 (based_loc_descr): Only express drap or vdrap regno based expressions
13556 using DW_OP_fbreg when not optimizing.
13557 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
13558 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
13559 REG_CFA_SET_VDRAP note.
13561 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
13563 PR tree-optimization/43236
13564 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
13565 error in calculation of base address in reverse iteration case.
13566 (generate_builtin): Take number of latch executions if the statement
13569 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
13571 PR middle-end/42859
13572 * tree-eh.c: Include pointer-set.h.
13573 (lower_eh_dispatch): Filter out duplicate case labels and
13574 remove the unneeded edge when the label is unused. Return
13575 true when some edges are removed.
13576 (execute_lower_eh_dispatch): When any lowering resulted in
13577 removing an edge, also delete unreachable blocks.
13579 2010-03-10 Jakub Jelinek <jakub@redhat.com>
13582 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13583 UNSPEC_MACHOPIC_OFFSET.
13585 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
13588 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
13589 (m68k_delegitimize_address): New function.
13591 2010-03-09 Jakub Jelinek <jakub@redhat.com>
13594 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
13597 * var-tracking.c (adjust_sets): New function.
13598 (count_with_sets, add_with_sets): Use it.
13599 (get_adjusted_src): New inline function.
13600 (add_stores): Use it.
13603 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
13604 call cselib_dummy_expand_value_rtx_cb instead of
13605 cselib_expand_value_rtx_cb.
13608 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
13609 * config/i386/i386.c: Include debug.h and dwarf2out.h.
13610 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
13611 and .cfi_endproc around the pic thunks.
13612 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
13613 all queued unwind info register saves are saved before the call.
13614 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
13615 considered as sp-=4 for unwind info and the pop as sp+=4 which
13616 also clobbers dest, but doesn't actually restore it.
13619 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
13620 RTX_FRAME_RELATED_P.
13622 2010-03-09 Jie Zhang <jie@codesourcery.com>
13624 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
13625 whitespaces in output template.
13627 2010-03-09 Jie Zhang <jie@codesourcery.com>
13629 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
13630 out array boundary.
13632 2010-03-08 Jakub Jelinek <jakub@redhat.com>
13634 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
13635 builtins.exp in a separate job.
13637 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13639 * graphite-sese-to-poly.c (add_param_constraints): Use
13640 lower_bound_in_type and upper_bound_in_type.
13642 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13644 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
13645 instead of unsigned_type_node.
13647 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13648 Reza Yazdani <reza.yazdani@amd.com>
13650 PR middle-end/43065
13651 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
13652 on pointer type parameters.
13654 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
13656 PR middle-end/42644
13657 PR middle-end/42130
13658 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
13659 handle conversions from pointer to integers.
13660 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
13661 induction variable, to be able to work with code generated by CLooG.
13662 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
13663 (build_poly_scop): Bail out if we cannot codegen a loop.
13665 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
13667 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
13668 code generation with gloog_error.
13670 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13672 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
13673 Call fold_convert on all the returned values.
13674 (expand_scalar_variables_expr): Pass to
13675 expand_scalar_variables_ssa_name the type of the resulting expression.
13677 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13679 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
13680 ppl_min_for_le_pointset.
13681 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
13682 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
13684 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13686 * graphite-dependences.c (map_into_dep_poly): Removed.
13687 (dependence_polyhedron_1): Use combine_context_id_scat.
13689 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13691 * graphite-poly.h (struct poly_scattering): Add layout documentation.
13692 (struct poly_bb): Same.
13693 (combine_context_id_scat): New.
13695 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13697 PR middle-end/42326
13698 * sese.c (name_defined_in_loop_p): Return false for default
13701 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13703 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
13704 and clean up the logic.
13706 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13708 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
13711 2010-03-08 Jakub Jelinek <jakub@redhat.com>
13713 * var-tracking.c (remove_cselib_value_chains): Define only for
13715 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
13716 delete_slot_part, emit_notes_for_differences_1): Don't call
13717 remove_cselib_value_chains here.
13718 (set_slot_part, emit_notes_for_differences_2): Don't call
13719 add_cselib_value_chains here.
13720 (preserved_values): New vector.
13721 (preserve_value): New function.
13722 (add_uses, add_stores, vt_add_function_parameters): Use it
13723 instead of cselib_preserve_value.
13724 (changed_values_stack): New vector.
13725 (check_changed_vars_0): New function.
13726 (check_changed_vars_1, check_changed_vars_2): Use it.
13727 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
13728 changed_values_stack VALUEs.
13729 (vt_emit_notes): For all preserved_values call
13730 add_cselib_value_chains. If ENABLE_CHECKING call
13731 remove_cselib_value_chains before verifying value_chains is empty.
13732 Initialize and free changed_values_stack.
13733 (vt_initialize): Initialize preserved_values.
13734 (vt_finalize): Free preserved_values.
13736 2010-03-08 Richard Guenther <rguenther@suse.de>
13738 PR tree-optimization/43269
13739 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
13742 2010-03-08 Martin Jambor <mjambor@suse.cz>
13744 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
13745 (ipa_is_param_called): Removed.
13746 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
13747 (ipa_print_node_params): Do not print the called flag.
13748 (ipa_write_node_info): Do not stream the called flag.
13749 (ipa_read_node_info): Likewise.
13751 2010-03-07 Jakub Jelinek <jakub@redhat.com>
13754 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
13755 * cselib.c (struct expand_value_data): Add dummy field.
13756 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
13758 (cselib_dummy_expand_value_rtx_cb): New function.
13759 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
13761 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
13762 * var-tracking.c: Include pointer-set.h.
13763 (variable): Change n_var_parts to char from int. Add
13764 cur_loc_changed and in_changed_variables fields.
13765 (variable_canonicalize): Remove.
13766 (shared_var_p): New inline function.
13767 (unshare_variable): Maintain cur_loc_changed and
13768 in_changed_variables fields. If var was in changed_variables,
13769 replace it there with new_var. Just copy cur_loc instead of
13770 resetting it to something else.
13771 (variable_union): Don't recompute cur_loc. Use shared_var_p.
13772 (dataflow_set_union): Don't call variable_canonicalize.
13773 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
13774 of their DEBUG_EXPR_TREE_DECLs.
13775 (canonicalize_loc_order_check): Verify that cur_loc is NULL
13776 and in_changed_variables and cur_loc_changed is false.
13777 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
13778 and cur_loc_changed. Don't update cur_loc here.
13779 (variable_merge_over_src): Don't call variable_canonicalize.
13780 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
13781 removing loc that is equal to cur_loc, clear cur_loc,
13782 set cur_loc_changed and ensure variable_was_changed is called.
13783 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
13784 compare pointers in cur_loc check, if it is equal to loc,
13785 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
13786 (variable_different_p): Remove compare_current_location argument,
13787 don't compare cur_loc.
13788 (dataflow_set_different_1): Adjust variable_different_p caller.
13789 (variable_was_changed): If dv had some var in changed_variables
13790 already, reset in_changed_variables flag for it and propagate
13791 cur_loc_changed over to the new variable. On empty var
13792 always set cur_loc_changed. Set in_changed_variables on whatever
13793 var is added to changed_variables.
13794 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
13795 Use shared_var_p. When removing loc that is equal to cur_loc,
13796 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
13797 end, don't set it to something else, just call variable_was_changed.
13798 (delete_slot_part): Use shared_var_p. When cur_loc equals to
13799 loc being removed, clear cur_loc and set cur_loc_changed.
13800 Set cur_loc_changed if all locations have been removed.
13801 (struct expand_loc_callback_data): New type.
13802 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
13803 allocated. Always create SUBREGs if simplify_subreg failed.
13804 Prefer to use cur_loc, when that fails and still in
13805 changed_variables (and seen first time) recompute it. Set
13806 cur_loc_changed of variables which had to change cur_loc and
13807 compute elcd->cur_loc_changed if any of the subexpressions used
13808 had to change cur_loc.
13809 (vt_expand_loc): Adjust to pass arguments in
13810 expand_loc_callback_data structure.
13811 (vt_expand_loc_dummy): New function.
13812 (emitted_notes): New variable.
13813 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
13814 that weren't used for any other decl in current
13815 emit_notes_for_changes call call vt_expand_loc_dummy to update
13816 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
13817 first loc_chain location if NULL before. Always use just
13818 cur_loc instead of first loc_chain location. When cur_loc_changed
13819 is false, when not --enable-checking=rtl just don't emit any note.
13820 When rtl checking, compute the note and assert it is the same
13821 as previous note. Clear cur_loc_changed and in_changed_variables
13822 at the end before removing from changed_variables.
13823 (check_changed_vars_3): New function.
13824 (emit_notes_for_changes): Traverse changed_vars to call
13825 check_changed_vars_3 on each changed var.
13826 (emit_notes_for_differences_1): Clear cur_loc_changed and
13827 in_changed_variables. Recompute cur_loc of new_var.
13828 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
13829 (vt_emit_notes): Initialize and destroy emitted_notes.
13831 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
13833 PR rtl-optimization/42220
13834 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
13835 Use verify_reg_tracked to determine if we should use OP_OUT rather
13837 (build_def_use): If we see an in-out operand for a register that we
13838 know nothing about, treat is an output if possible, fail the block if
13841 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13844 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
13847 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13850 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
13851 uses of relevant DEFs that are dead outside the loop too.
13853 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13855 * var-tracking.c (dataflow_set_merge): Swap src and src2.
13857 2010-01-13 Jakub Jelinek <jakub@redhat.com>
13859 * var-tracking.c (values_to_unmark): New variable.
13860 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
13861 values_to_unmark vector. Moved body to...
13862 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
13863 instead queue it into values_to_unmark vector.
13864 (vt_find_locations): Free values_to_unmark vector.
13866 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
13868 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
13869 (site.exp): Export them when plugins are enabled.
13871 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
13873 PR middle-end/42326
13874 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
13875 that contain scevs.
13876 (chrec_fold_multiply): Same.
13878 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
13881 * c-decl.c (build_compound_literal): Return early if init is
13882 an error_mark_node.
13884 2010-03-04 Martin Jambor <mjambor@suse.cz>
13886 PR tree-optimization/43164
13887 PR tree-optimization/43191
13888 * tree-sra.c (type_consists_of_records_p): Reject records with
13889 zero-size bit-fields at the end.
13891 2010-03-04 Mike Stump <mikestump@comcast.net>
13893 * Makefile.in (TAGS): Remove *.y.
13895 2010-03-04 Richard Guenther <rguenther@suse.de>
13897 PR tree-optimization/40761
13898 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
13900 (my_rev_post_order_compute): New function.
13901 (init_pre): Call it.
13903 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
13905 PR middle-end/43209
13906 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
13907 decrease the cost of an IV candidate when the cost is infinite.
13909 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13911 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
13912 Use '3DNow!' for the extension of that name, ensure normal space
13914 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
13916 2010-03-03 Jeff Law <law@redhat.com>
13918 * PR middle-end/32693
13919 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
13920 than gen_rtx_SUBREG.
13921 (extract_bit_field_1): Likewise.
13923 2010-03-03 Janis Johnson <janis187@us.ibm.com>
13925 * doc/sourcebuild.texi (Test directives): Document that arguments
13926 include-opts and exclude-opts are now optional for dg-skip-if,
13927 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
13929 2010-03-03 Jason Merrill <jason@redhat.com>
13932 * cgraph.h (varpool_node): Add extra_name field.
13933 * varpool.c (varpool_extra_name_alias): New.
13934 (varpool_assemble_decl): Emit extra name aliases.
13935 (varpool_mark_needed_node): Look past an extra name alias.
13936 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
13937 * lto-streamer-in.c (lto_input_tree): Read it.
13938 * lto-streamer-out.c (output_unreferenced_globals): Write it.
13940 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
13942 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
13943 (sparc*-*-solaris2*): ...this.
13945 2010-03-03 Jakub Jelinek <jakub@redhat.com>
13948 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
13949 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
13950 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
13951 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
13954 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
13955 fallthrough to default handling, just with want_address 0 instead of 2.
13956 For single element lists, add_AT_loc directly, otherwise create an
13957 artificial variable DIE and stick location list to it.
13960 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
13961 (VAL_EXPR_HAS_REVERSE): Define.
13962 (reverse_op): New function.
13963 (add_stores): For reversible operations add an extra MO_VAL_USE.
13965 2010-03-02 Jason Merrill <jason@redhat.com>
13967 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
13969 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
13971 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
13972 (sparc64-*-linux*): Likewise.
13973 (sparc64-*-solaris2*): Include assembler files before linker ones.
13974 (sparc-*-solaris2*): Simplify and reorder to match previous case.
13975 * config/sparc/gas.h: Delete.
13976 * config/sparc/sol2-64.h: Add copyright notice.
13977 * config/sparc/sol2-gas-bi.h: Likewise.
13978 * config/sparc/sol2-gld.h: Likewise.
13979 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
13980 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
13981 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
13982 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
13983 (sparc_elf_asm_named_section): Rename into...
13984 (sparc_solaris_elf_asm_named_section): ...this. Always define.
13986 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
13988 * config/alpha/alpha.c (override_options): Fix -mtune error message.
13990 2010-03-02 Jeff Law <law@redhat.com>
13992 PR middle-end/42431
13993 * reload1.c (rtx_p, substitute_stack): Declare.
13994 (substitute): Record addresses of changed rtxs.
13995 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
13996 Restore the original rtx when complete.
13997 (reload): Free subsitute_stack when complete.
13999 2010-03-02 Janis Johnson <janis187@us.ibm.com>
14001 * doc/gccint.texi (menu): Add Testsuites as a chapter.
14002 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
14004 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
14005 LTO Testing, gcov Testing, profopt Testing, compat Testing,
14006 Torture Tests): Change from subsection to section.
14008 2010-03-02 Jakub Jelinek <jakub@redhat.com>
14009 Steven Bosscher <steven@gcc.gnu.org>
14011 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
14014 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
14016 PR middle-end/42640
14017 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
14018 the assignment from the new induction variable to the assignment
14019 of the value from the original loop PHI function.
14021 2010-03-01 Janis Johnson <janis187@us.ibm.com>
14022 Daniel Jacobowitz <dan@codesourcery.com>
14024 * doc/sourcebuild.texi (Test directives): Clarify options to
14027 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14029 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
14030 Disable cfi directives unless GCC and gas agree on using read-only
14031 .eh_frame sections for 64-bit.
14032 * configure: Regenerate.
14034 2010-03-01 Richard Guenther <rguenther@suse.de>
14036 PR tree-optimization/43220
14037 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
14038 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
14040 2010-03-01 Richard Guenther <rguenther@suse.de>
14041 Martin Jambor <mjambor@suse.cz>
14043 PR middle-end/41250
14044 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
14045 gimplified parameters.
14047 2010-03-01 Christian Bruel <christian.bruel@st.com>
14049 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
14051 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
14053 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
14055 2010-03-01 Richard Guenther <rguenther@suse.de>
14057 PR middle-end/43213
14058 * expr.c (expand_assignment): Use the alias-oracle to tell
14059 if the rhs aliases the result decl.
14061 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14064 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
14065 to sol_gt_pch_get_address.
14066 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
14067 64-bit, SPARC and x86.
14068 (sol_gt_pch_get_address): New function.
14070 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
14072 * toplev.h (inform_n, error_n): Declare.
14073 * diagnostic.c (inform_n, error_n): New function.
14075 2010-03-01 Jakub Jelinek <jakub@redhat.com>
14077 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
14078 has no rtl yet when processing local_decls, queue it and recheck
14079 if deferred stack allocation hasn't assigned it rtl.
14081 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
14083 * config/sh/sh.c (unspec_bbr_uid): New.
14084 (gen_block_redirect): Use it instead of INSN_UID.
14085 (gen_far_branch): Likewise.
14087 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
14089 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
14090 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
14092 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14094 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
14095 (Warning Options): -Wno-conversion-null is valid for
14096 Objective-C++ as well.
14097 * doc/tm.texi (Named Address Spaces): Likewise.
14098 * doc/plugins.texi (Plugins): Replace TABs with spaces.
14099 * doc/tree-ssa.texi (Tree SSA): Likewise.
14101 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
14104 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
14105 by default. Don't set the default arch for
14106 i[34567]86-*-darwin*|x86_64-*-darwin*.
14108 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
14111 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
14112 default. Set the default 32bit/64bit archs with $with_arch
14113 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
14115 2010-02-27 Richard Guenther <rguenther@suse.de>
14117 PR tree-optimization/43186
14118 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
14119 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
14120 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
14121 unroller iterations.
14123 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
14125 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
14126 required and i[34567]86-*-* targets don't support 64bit ISA.
14128 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
14131 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
14132 the same alias set.
14134 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
14136 * config.gcc: Set the default arch at least to Prescott for
14137 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
14138 if SSE math is enabled.
14140 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
14142 * diagnostic.c (diagnostic_initialize): Update.
14143 (diagnostic_report_diagnostic): Test inhibit_notes_p for
14145 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
14146 (diagnostic_inhibit_notes): New.
14147 * toplev.c (process_options): inhibit notes with -fcompare-debug.
14149 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
14152 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
14153 * doc/standards.texi: Likewise.
14154 * doc/extend.texi: Likewise.
14155 * doc/trouble.texi: Likewise.
14156 * doc/cppopts.texi: Likewise.
14157 * doc/install.texi: Likewise.
14158 * c.opt (std=c90,std=gnu90): New options.
14159 * c-opts.c (c_common_handle_option): Handle them.
14161 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
14164 * c-decl.c (undeclared_variable): Use an informative note.
14166 2010-02-26 Richard Guenther <rguenther@suse.de>
14168 PR tree-optimization/43186
14169 * gimple.h (gimple_fold): Remove.
14170 * gimple.c (gimple_fold): Remove. Inline into single user ...
14171 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
14172 Try harder for conditions.
14174 2010-02-26 Jakub Jelinek <jakub@redhat.com>
14177 * function.c (used_types_insert): Don't skip through named pointer
14178 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
14179 and it is different from the main variant's type.
14181 2010-02-26 Nick Clifton <nickc@redhat.com>
14183 * config/rx/rx.md (sminsi3): Remove bogus alternative.
14185 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
14187 * config.gcc: Support --with-fpmath=sse for x86.
14189 * config/i386/ssemath.h: New.
14191 * doc/install.texi (--with-fpmath=sse): Documented.
14193 2010-02-26 Richard Guenther <rguenther@suse.de>
14195 PR tree-optimization/43188
14196 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
14197 vector types of over-aligned element type.
14199 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
14202 * config/i386/i386.c (expand_vec_perm_blend): Use correct
14203 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
14205 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
14207 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
14209 2010-02-26 Jakub Jelinek <jakub@redhat.com>
14211 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
14212 * var-tracking.c: Include diagnostic.h.
14213 (debug_dv): New function.
14214 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
14217 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
14218 (add_value_chain, add_value_chains, remove_value_chain,
14219 remove_value_chains): Handle DEBUG_EXPRs.
14220 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
14223 * regcprop.c (struct queued_debug_insn_change): New type.
14224 (struct value_data_entry): Add debug_insn_changes field.
14225 (struct value_data): Add n_debug_insn_changes field.
14226 (debug_insn_changes_pool): New variable.
14227 (free_debug_insn_changes, apply_debug_insn_changes,
14228 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
14229 (kill_value_one_regno): Call free_debug_insn_changes if needed.
14230 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
14232 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
14234 (copyprop_hardreg_forward_1): Don't call apply_change_group for
14235 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
14236 changes, call cprop_find_used_regs via note_stores.
14237 (copyprop_hardreg_forward): When copying vd from predecessor
14238 which has any queued DEBUG_INSN changes, make sure the pointers are
14239 cleared. At the end call df_analyze and then if there are any
14240 DEBUG_INSN changes queued at the end of some basic block for still
14241 live registers, apply them.
14242 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
14244 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
14246 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
14249 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
14251 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
14252 targets. Set the default with_cpu/with_arch from arch/cpu.
14253 Allow x86-64 and native for with_cpu/with_arch.
14255 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
14257 * ebitmap.c: Change calls to verify_popcount with calls to
14258 sbitmap_verify_popcount.
14259 (ebitmap_clear_bit): Fixed map->cacheindex test and
14260 map>cache update when bit clearing results in an empty
14263 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
14266 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
14267 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
14268 and support both V2DF and V2DI modes.
14269 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
14270 support both V2DF and V2DI modes.
14271 (general): Delete trailing whitespace from a few patterns.
14273 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14274 V2DF/V2DI interleave high/low builtins.
14276 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
14279 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
14280 interleave high/low functions.
14282 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
14284 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
14285 #pragma extern_prefix.
14287 2010-02-25 Jakub Jelinek <jakub@redhat.com>
14290 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
14291 BLKmode, assert op0 is a MEM and just adjust its mode.
14294 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
14295 if bitpos isn't multiple of mode's bitsize.
14297 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
14299 * c.opt (-ftemplate-depth=): New.
14300 (-ftemplate-depth-): Deprecate.
14301 * optc-gen.awk: Handle -ftemplate-depth=.
14302 * opth-gen.awk: Likewise.
14303 * c-opts.c (c_common_handle_option): Likewise.
14304 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
14306 2010-02-24 Jason Merrill <jason@redhat.com>
14308 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
14310 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14312 * cfg.c (alloc_aux_for_block): Remove inline.
14313 (alloc_aux_for_edge): Likewise.
14315 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14317 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
14319 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14321 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
14322 * config/i386/sol2-gas.h: New file.
14323 * config.gcc (i[34567]86-*-solaris2*): Use it.
14325 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
14328 * c-typeck.c (ep_convert_and_check): New.
14329 (build_conditional_expr): Use it.
14330 (build_binary_op): Likewise.
14332 2010-02-24 Jakub Jelinek <jakub@redhat.com>
14334 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
14337 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
14338 bounds even for -O+.
14339 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
14340 expr needs to have DECL_NAME set.
14342 2010-02-24 Nick Clifton <nickc@redhat.com>
14344 * config/mep/mep.c: Include gimple.h.
14345 (mep_function_uses_sp): Delete unused function.
14346 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
14347 parameters. Use unsigned integers to count args. Return a
14348 NULL_RTX instead of an error_mark_node. Toidy up formatting.
14350 2010-02-23 Jakub Jelinek <jakub@redhat.com>
14353 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
14354 greater or equal to nelt instead of 2 * nelt.
14355 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
14358 2010-02-23 Jason Merrill <jason@redhat.com>
14361 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
14362 in cfun->local_decls even if they have register types.
14365 * stor-layout.c (place_field): Don't warn about unnecessary
14366 DECL_PACKED if the type is packed.
14368 2010-02-23 Jakub Jelinek <jakub@redhat.com>
14371 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
14372 GOTOFF relocs, even when the base reg isn't pic pointer.
14374 2010-02-23 Michael Matz <matz@suse.de>
14377 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
14378 (expand_gimple_basic_block): Generate and use debug temps if there
14379 are debug uses left after the last real use of TERed ssa names.
14380 Unlink debug immediate uses when they are expanded.
14382 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
14385 * config/i386/i386.c (override_options): Reorganise to provide
14386 better error messages.
14388 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
14390 PR middle-end/43083
14391 * graphite-scop-detection.c (create_single_exit_edge): Move
14392 the call to find_single_exit_edge to....
14393 (create_sese_edges): ...here. Don't handle multiple edges
14394 exiting the function.
14395 (build_graphite_scops): Don't handle multiple edges
14396 exiting the function.
14398 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
14400 PR middle-end/43097
14401 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
14402 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
14404 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
14406 PR middle-end/43026
14407 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
14409 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
14412 * c-typeck.c (convert_arguments): Print declaration location.
14413 * c-common.c (validate_nargs): Rename as
14414 builtin_function_validate_nargs.
14415 (check_builtin_function_arguments): Update.
14417 2010-02-22 Richard Guenther <rguenther@suse.de>
14420 * tree-inline.c (declare_return_variable): Use the type of
14421 the call stmt lhs if available.
14423 2010-02-22 Duncan Sands <baldrick@free.fr>
14425 * passes.c (register_pass): Always consider all pass lists when
14426 ref_pass_instance_number is zero.
14428 2010-02-22 Richard Guenther <rguenther@suse.de>
14430 PR tree-optimization/42749
14431 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
14432 parameter. Do arithmetic in the original type.
14433 (update_accumulator_with_ops): Likewise.
14434 (adjust_accumulator_values): Adjust.
14436 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14438 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
14439 (QI to BLKmode splitter): New splitter.
14441 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
14443 * config/i386/i386.c (initial_ix86_tune_features): Turn on
14444 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
14446 2010-02-22 Richard Guenther <rguenther@suse.de>
14448 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
14450 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
14452 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
14453 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
14454 ($(T)crti.o, $(T)crtn.o): Remove rules.
14456 2010-02-21 Tobias Burnus <burnus@net-b.de>
14459 * doc/invoke.texi (-fassociative-math): Document that this
14460 option is automatically enabled for Fortran.
14462 2010-02-20 David S. Miller <davem@davemloft.net>
14464 * configure.ac: Test if linker and assembler properly support
14465 GOTDATA_OP relocations.
14466 * configure: Rebuild.
14467 * config.in: Likewise.
14468 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
14469 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
14470 (movsi_high_pic): Likewise.
14471 (movdi_lo_sum_pic): Likewise.
14472 (movdi_high_pic): Likewise.
14473 (movsi_pic_gotdata_op): New pattern.
14474 (movdi_pic_gotdata_op): Likewise.
14475 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
14476 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
14478 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
14481 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
14482 attribute to ssemul.
14483 (xop_mulv2div2di3_high): Ditto.
14485 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14488 * c.opt (Wconversion-null): New option.
14489 * doc/invoke.texi (Wconversion-null): Document.
14491 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14493 * common.opt (Wlarger-than-): Add Undocumented.
14495 2010-02-19 Mike Stump <mikestump@comcast.net>
14497 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
14499 2010-02-19 Jason Merrill <jason@redhat.com>
14502 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
14503 * configure: Likewise.
14505 2010-02-20 Alan Modra <amodra@gmail.com>
14507 PR middle-end/42344
14508 * cgraph.h (cgraph_make_decl_local): Declare.
14509 * cgraph.c (cgraph_make_decl_local): New function.
14510 (cgraph_make_node_local): Use it.
14511 * cgraphunit.c (cgraph_function_versioning): Likewise.
14512 * ipa.c (function_and_variable_visibility): Likewise.
14514 2010-02-19 Jakub Jelinek <jakub@redhat.com>
14517 * except.c (sjlj_emit_function_enter): Don't call
14518 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
14520 * rtl.h (add_reg_br_prob_note): Remove prototype.
14522 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
14525 * c-common.c (conversion_warning): Remove widening conversions
14526 before checking the conversion of integers to reals.
14528 2010-02-19 Mike Stump <mikestump@comcast.net>
14530 PR middle-end/43125
14531 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
14534 * cgraphunit.c (process_function_and_variable_attributes): Check
14535 DECL_PRESERVE_P instead of looking up attribute "used".
14536 * ipa-pure-const.c (check_decl): Likewise.
14537 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
14538 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
14539 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
14540 instead of attribute "used".
14541 * config/sol2-c.c (solaris_pragma_init): Likewise.
14542 (solaris_pragma_fini): Likewise.
14544 2010-02-19 Jakub Jelinek <jakub@redhat.com>
14546 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
14547 Use XCNEW instead of xcalloc.
14548 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
14549 XNEW instead of xmalloc.
14550 (get_fields): Use XNEWVEC instead of xmalloc.
14553 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
14554 populate vars array.
14555 (create_new_general_access): For debug stmts just reset value.
14556 (get_stmt_accesses): For accesses within debug stmts just record them
14557 using add_access_to_acc_sites instead of preventing the peeling or
14558 counting them as accesses.
14560 PR middle-end/42233
14561 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
14563 2010-02-19 Richard Guenther <rguenther@suse.de>
14565 PR tree-optimization/42916
14566 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
14569 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
14571 * configure.ac: Replace all uses of changequote in macro arguments
14572 with proper quoting.
14574 2010-02-19 Jakub Jelinek <jakub@redhat.com>
14576 PR middle-end/42233
14577 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
14579 2010-02-19 Richard Guenther <rguenther@suse.de>
14581 PR tree-optimization/42944
14582 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
14583 test for aliasing with errno.
14585 2010-02-19 Jakub Jelinek <jakub@redhat.com>
14587 PR middle-end/42233
14588 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
14589 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
14590 * dojump.c: Include output.h.
14591 (inv): New inline function.
14592 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
14593 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
14594 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
14595 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
14596 argument, pass it down to other calls.
14597 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
14598 add REG_BR_PROB note to the conditional jump.
14599 * cfgexpand.c (add_reg_br_prob_note): Removed.
14600 (expand_gimple_cond): Don't call it, add the probability
14601 as last argument to jumpif_1/jumpifnot_1.
14602 * Makefile.in (dojump.o): Depend on output.h.
14603 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
14605 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
14606 * stmt.c (do_jump_if_equal): Likewise.
14607 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
14608 * loop-unswitch.c (compare_and_jump_seq): Likewise.
14609 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
14611 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
14612 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
14613 jumpifnot_1 callers.
14614 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
14616 (store_expr): Adjust jumpifnot caller.
14617 (store_constructor): Adjust jumpif caller.
14619 PR middle-end/42233
14620 * gimplify.c (gimple_boolify): For __builtin_expect call
14621 gimple_boolify also on its first argument.
14623 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
14625 * configure.ac (gnu-unique-object): Wrap regexps using [] in
14627 (__stack_chk_fail): Ditto. Remove quadrigraphs.
14628 * configure: Regenerated.
14630 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14632 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
14633 lang_hooks.types_compatible_p instead of comptypes.
14635 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
14637 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
14638 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
14639 if __prefer_thumb__ is defined.
14641 2010-02-18 Martin Jambor <mjambor@suse.cz>
14643 PR tree-optimization/43066
14644 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
14645 array with zero-sized element type.
14647 2010-02-18 Jakub Jelinek <jakub@redhat.com>
14649 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
14650 rtx, allocate struct var_loc_node here and return it to the
14651 caller, and only if it is actually needed.
14652 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
14653 move it earlier and return immediately if it returns NULL.
14655 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
14657 * config/sparc/gas.h: New file. Restore
14658 TARGET_ASM_NAMED_SECTION to its ELF default.
14659 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
14660 check !HAVE_GNU_AS.
14661 * config/sparc/sparc.c (sparc_elf_asm_named_section):
14662 Likewise. Add ATTRIBUTE_UNUSED to prototype.
14663 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
14664 after sparc/sysv4.h.
14666 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
14668 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
14670 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
14672 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
14673 patterns from predicated pattern.
14675 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
14678 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
14679 for insn mnemonic suffix.
14681 2010-02-17 Richard Guenther <rguenther@suse.de>
14683 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
14686 2010-02-17 Jakub Jelinek <jakub@redhat.com>
14689 * caller-save.c (save_call_clobbered_regs): If BB ends with
14690 a DEBUG_INSN, move any notes in between last real insn and the last
14691 DEBUG_INSN after the last DEBUG_INSN.
14693 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
14695 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
14696 Fix return type. Fix argument type. Explain meaning of return value.
14698 2010-02-16 Richard Guenther <rguenther@suse.de>
14700 PR tree-optimization/41043
14701 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
14702 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
14704 (vrp_visit_phi_node): ... but only for loop PHI nodes.
14706 2010-02-16 Ira Rosen <irar@il.ibm.com>
14708 PR tree-optimization/43074
14709 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
14710 * tree-vect-loop.c (vect_analyze_loop_operations): Add
14711 vectorizable cycles in hybrid SLP check.
14712 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
14714 2010-02-16 Richard Guenther <rguenther@suse.de>
14716 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
14717 (true_dependence): If memrefs_conflict_p computes must-alias
14718 trust it. Move TBAA check after offset-based disambiguation.
14719 (canon_true_dependence): Likewise.
14721 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
14723 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
14724 * doc/invoke.texi: Document it.
14725 * var-tracking.c: Include toplev.h and params.h.
14726 (vt_find_locations): Return bool indicating success. Compute
14727 hash sizes unconditionally. Check new parameter, report.
14728 (variable_tracking_main_1): Check vt_find_locations results and
14729 retry. Renamed from...
14730 (variable_tracking_main): ... this. New wrapper to preserve
14731 flag_var_tracking_assignments.
14732 * Makefile.in (var-tracking.o): Adjust dependencies.
14734 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
14735 Jakub Jelinek <jakub@redhat.com>
14738 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
14739 if weak_import attribute is present.
14740 * config/darwin.c (machopic_select_section): Likewise.
14742 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
14744 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
14745 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
14746 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
14747 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
14749 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
14752 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
14753 Fix argument types.
14755 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
14756 Rewrite text to refer to the names.
14758 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
14760 * config/i386/i386-builtin-types.def
14761 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
14762 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
14763 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
14764 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
14765 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
14766 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
14767 IX86_BUILTIN_VPERMIL2PS256.
14768 (MULTI_ARG_4_DF2_DI_I): Defined.
14769 (MULTI_ARG_4_DF2_DI_I1): Defined.
14770 (MULTI_ARG_4_SF2_SI_I): Defined.
14771 (MULTI_ARG_4_SF2_SI_I1): Defined.
14772 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
14773 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
14774 __builtin_ia32_vpermil2ps256.
14775 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
14776 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
14777 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
14778 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
14779 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
14780 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
14781 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
14782 CODE_FOR_xop_vpermil2v8sf3.
14783 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
14784 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
14785 * config/i386/xopintrin.h (_mm_permute2_pd): New.
14786 (_mm256_permute2_pd): New.
14787 (_mm_permute2_ps): New.
14788 (_mm256_permute2_ps): New.
14790 2010-02-15 Nick Clifton <nickc@redhat.com>
14792 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
14793 boolean parameters. Use emit_jump_insn when emitting a pop
14794 instruction containing a return insn.
14795 (push): Use 'true' rather than '1' as second parameter to F.
14796 (h8300_expand_prologue): Likewise.
14797 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
14798 (h8300_expand_epilogue): Likewise.
14800 2010-02-15 Richard Guenther <rguenther@suse.de>
14802 PR middle-end/43068
14803 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
14806 2010-02-15 Nick Clifton <nickc@redhat.com>
14808 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
14811 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
14813 * intl.c (fake_ngettext): New function.
14814 * intl.h (fake_ngettext): Declare.
14815 (ngettext): Define macro.
14816 * collect2.c (notice_translated): New function.
14817 (main): Use notice_translated and ngettext.
14818 * collect2.h (notice_translated): Declare.
14820 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
14822 * reorg.c (delete_computation): Comment fixes.
14823 * caller-save.c (setup_save_areas): Idem.
14824 * sel-sched-dump.c (dump_lv_set): Idem.
14827 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14829 * config/s390/s390.c (s390_sched_init): New function.
14830 (TARGET_SCHED_INIT): Target hook defined.
14832 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
14833 Jack Howarth <howarth@bromo.med.uc.edu>
14834 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
14837 Partial revert of unintended change in fix for PR41605.
14838 * config/darwin.h: Fix typo.
14839 * config/darwin9.h: Same.
14841 2010-02-11 Jakub Jelinek <jakub@redhat.com>
14843 * c-pch.c (pch_init): Clear v.
14845 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14847 PR middle-end/42930
14848 * graphite-scop-detection.c (graphite_can_represent_scev): Call
14849 graphite_can_represent_init for MULT_EXPR.
14851 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14853 PR middle-end/42914
14854 PR middle-end/42530
14855 * graphite-sese-to-poly.c (remove_phi): New.
14856 (translate_scalar_reduction_to_array): Call remove_phi.
14858 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14860 PR middle-end/42771
14861 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
14862 * graphite-clast-to-gimple.h (gloog): Update declaration.
14863 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
14864 * graphite-poly.h (struct poly_bb): Add missing comments.
14865 (struct scop): Add poly_scop_p field.
14866 (POLY_SCOP_P): New.
14867 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
14868 * graphite.c (graphite_transform_loops): Build the polyhedral
14869 representation for each scop before code generation.
14870 * sese.c (rename_variables_in_operand): Removed.
14871 (rename_variables_in_expr): Return the renamed expression.
14872 (rename_sese_parameters): New.
14873 * sese.h (rename_sese_parameters): Declared.
14875 2010-02-11 Richard Guenther <rguenther@suse.de>
14877 PR tree-optimization/42998
14878 * tree-ssa-pre.c (create_expression_by_pieces): Treat
14879 POINTER_PLUS_EXPR properly.
14881 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14882 Changpeng Fang <changpeng.fang@amd.com>
14884 PR middle-end/40886
14885 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
14886 the cost of an IV candidate when the IV is used in a test against zero.
14888 * gcc.dg/tree-ssa/ivopts-3.c: New.
14890 2010-02-11 Richard Guenther <rguenther@suse.de>
14893 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
14894 pointer-vs-decl case by swapping refs. Handle some cases
14895 of pointer-vs-decl disambiguations more conservatively.
14896 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
14897 to false after expanding.
14899 2010-02-11 Richard Guenther <rguenther@suse.de>
14902 * gcc.c (process_command): Handle LTO file@offset case more
14905 2010-02-11 Jakub Jelinek <jakub@redhat.com>
14907 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
14908 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
14910 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
14912 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
14913 if MEM's mode size isn't DWARF2_ADDR_SIZE.
14914 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
14915 Optimize eq/ne comparisons when both arguments are known to be
14917 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
14918 Don't mask operands unnecessarily if they are known to be already
14921 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
14923 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
14926 2010-02-10 Richard Guenther <rguenther@suse.de>
14928 PR tree-optimization/43017
14929 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
14930 for wrapping signed arithmetic.
14932 2010-02-10 Jakub Jelinek <jakub@redhat.com>
14935 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
14936 if no debug info should be emitted for it.
14938 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
14940 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
14941 note when flag_exceptions is set.
14943 2010-02-10 Duncan Sands <baldrick@free.fr>
14945 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
14947 2010-02-10 Richard Guenther <rguenther@suse.de>
14950 * tree.c (get_unwidened): Handle constants.
14951 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
14953 2010-02-10 Martin Jambor <mjambor@suse.cz>
14956 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
14957 check for variable argument counts independently.
14959 2010-02-10 Christian Bruel <christian.bruel@st.com>
14962 * config/sh/sh.c (find_barrier): Increase length for non delayed
14963 conditional branches.
14965 2010-02-10 Christian Bruel <christian.bruel@st.com>
14967 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
14969 2010-02-10 Jakub Jelinek <jakub@redhat.com>
14971 * builtins.c (set_builtin_user_assembler_name): Also handle
14972 ffs if int is smaller than word.
14974 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
14976 PR middle-end/42973
14977 * ira-conflicts.c (get_dup): Remove.
14978 (process_reg_shuffles): Add new parameter. Use it as an
14979 additional guard for copy generation.
14980 (add_insn_allocno_copies): Rewrite.
14982 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
14984 * common.opt (fsched2-use-traces): Preserved for backward
14986 * doc/invoke.texi: Remove the documentation about option
14987 -fsched2-use-traces.
14988 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
14989 flag_sched2_use_traces.
14990 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
14991 the backward compatibility flag section.
14993 2010-02-09 Richard Guenther <rguenther@suse.de>
14995 PR tree-optimization/43008
14996 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
14997 make HEAP variables initialized from global memory if they
14998 are not known builtin functions.
14999 (find_func_aliases): Adjust.
15001 2010-02-09 Richard Guenther <rguenther@suse.de>
15003 PR tree-optimization/43000
15004 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
15005 arithmetic manually.
15007 2010-02-08 Jakub Jelinek <jakub@redhat.com>
15009 PR tree-optimization/42931
15010 * tree-loop-linear.c (try_interchange_loops): Don't call
15011 double_int_mul if estimated_loop_iterations failed.
15013 2010-02-08 Martin Jambor <mjambor@suse.cz>
15015 PR middle-end/42898
15016 * tree-sra.c (build_accesses_from_assign): Do not mark in
15017 should_scalarize_away_bitmap if stmt has volatile ops.
15018 (sra_modify_assign): Do not process assigns piecemeal if if stmt
15021 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
15023 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
15025 2010-02-07 Adam Nemet <adambnmet@gmail.com>
15027 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
15028 before the pattern.
15030 2010-02-07 Andrew Pinski <pinskia@gmail.com>
15032 PR middle-end/42946
15033 * df-core.c (df_finish_pass): Change type of saved_flags to int.
15035 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
15037 PR middle-end/42988
15038 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
15039 to unknown_dependence.
15040 (graphite_legal_transform_dr): Handle the unknown_dependence.
15041 (graphite_carried_dependence_level_k): Same.
15043 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
15045 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
15047 2010-02-07 Richard Guenther <rguenther@suse.de>
15049 PR middle-end/42991
15050 * expr.c (get_inner_reference): Always initialize *pbitsize.
15052 2010-02-07 Richard Guenther <rguenther@suse.de>
15054 PR middle-end/42956
15055 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
15056 new ARRAY_REFs on variable size element or minimal index arrays.
15058 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
15059 gimple_fold_indirect_ref.
15061 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
15064 * arm.c (arm_override_options): Just return if the user has specified
15065 an invalid fpu name.
15067 2010-02-03 Jason Merrill <jason@redhat.com>
15070 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
15071 i386_pe_maybe_record_exported_symbol.
15073 2010-02-05 Steve Ellcey <sje@cup.hp.com>
15076 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
15077 (pa_delegitimize_address): New function.
15079 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
15081 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
15082 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
15084 2010-02-05 Richard Guenther <rguenther@suse.de>
15087 * lto-streamer-in.c (get_resolution): Deal with references
15088 to undefined functions.
15090 2010-02-05 Richard Guenther <rguenther@suse.de>
15092 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
15093 (fold_const_aggregate_ref): Likewise.
15094 (ccp_fold_stmt): Substitute loads.
15095 (maybe_fold_reference): Verify types before substituting.
15097 (fold_gimple_assign): Unshare properly.
15098 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
15100 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
15102 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
15103 for rs6000_gen_cell_microcode.
15105 2010-02-04 Richard Guenther <rguenther@suse.de>
15107 PR rtl-optimization/42952
15108 * dse.c (const_or_frame_p): Remove MEM handling.
15110 2010-02-04 Nick Clifton <nickc@redhat.com>
15112 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
15113 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
15114 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
15115 (mn10300_asm_output_mi_thunk): New function.
15116 (mn10300_can_output_mu_thunk): New function.
15117 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
15118 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
15119 (FUNCTION_ARG): Delete incorrect comment.
15121 2010-02-03 Jason Merrill <jason@redhat.com>
15124 * fold-const.c (operand_equal_p): Handle erroneous types.
15126 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
15128 * config/h8300/h8300.md (can_delay): Fix attibute condition.
15130 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
15132 PR rtl-optimization/42941
15133 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
15136 2010-02-03 Jason Merrill <jason@redhat.com>
15139 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
15141 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
15144 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
15145 (cselib_reset_table): Renamed from...
15146 (cselib_reset_table_with_next_value): ... this.
15147 (cselib_get_next_uid): Renamed from...
15148 (cselib_get_next_unknown_value): ... this.
15149 * cselib.c (next_uid): Renamed from...
15150 (next_unknown_value): ... this.
15151 (cselib_clear_table): Adjust.
15152 (cselib_reset_table): Adjust. Renamed from...
15153 (cselib_reset_table_with_next_value): ... this.
15154 (cselib_get_next_uid): Adjust. Renamed from...
15155 (cselib_get_next_unknown_value): ... this.
15156 (get_value_hash): Use hash.
15157 (cselib_hash_rtx): Likewise.
15158 (new_cselib_val): Adjust. Set and dump uid.
15159 (cselib_lookup_mem): Pass next_uid as hash.
15160 (cselib_subst_to_values): Likewise.
15161 (cselib_log_lookup): Dump uid.
15162 (cselib_lookup): Pass next_uid as hash. Adjust.
15163 (cselib_process_insn): Adjust.
15164 (cselib_init): Initialize next_uid.
15165 (cselib_finish): Adjust.
15166 (dump_cselib_table): Likewise.
15167 * dse.c (canon_address): Dump value uid.
15168 * print-rtl.c (print_rtx): Print value uid.
15169 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
15171 (dv_uid): New function, sort of renamed from...
15172 (dv_htab_hash): ... this, reimplemented in terms of it and...
15173 (dv_uid2hash): ... this. New.
15174 (variable_htab_eq): Drop excess assertions.
15175 (tie_break_pointers): Removed.
15176 (canon_value_cmp): Compare uids.
15177 (variable_post_merge_New_vals): Print uids.
15178 (vt_add_function_parameters): Adjust.
15179 (vt_initialize): Reset table. Adjust.
15181 2010-02-03 Richard Guenther <rguenther@suse.de>
15183 PR tree-optimization/42944
15184 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
15185 (call_may_clobber_ref_p_1): Likewise. Properly handle
15186 malloc and calloc clobbering errno.
15188 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
15190 * doc/invoke.texi: Fix name of sched1 dump.
15192 * opts.c (decode_options): Set flag_tree_switch_conversion
15193 only conditionally on optimize >= 2.
15195 * gcse.c: Assorted comment fixes in pass description.
15197 2010-02-03 Anthony Green <green@moxielogic.com>
15199 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
15200 nop padding in order to maintain alignment of storage location of
15201 target function address.
15202 (moxie_trampoline_init): Store target function address at newly
15204 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
15206 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
15208 2010-02-03 Richard Guenther <rguenther@suse.de>
15210 PR middle-end/42927
15211 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
15213 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15215 * config.gcc: Reenable check for obsolete targets.
15216 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
15217 mips-sgi-irix6.[0-4]*.
15219 2010-02-02 Nick Clifton <nickc@redhat.com>
15221 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
15222 constant size of 4 as being the same as 0.
15223 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
15224 can take values in the range 0..4.
15226 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
15229 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
15230 as _darwin10_Unwind_FindEnclosingFunction().
15231 * libgcc-libsystem.ver: New.
15233 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
15236 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
15237 implicitly set registers.
15239 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
15241 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
15242 (arm_override_options): Allow automatic selection of the thread
15243 pointer register if thumb2.
15244 (legitimize_pic_address): Improve code sequences for Thumb2.
15245 (arm_call_tls_get_addr): Likewise.
15246 (legitimize_tls_address): Likewise.
15247 * arm.md (pic_load_addr_arm): Delete. Replace with ...
15248 (pic_load_addr_32bit): ... this. New named pattern.
15249 * thumb2.md (pic_load_addr_thumb2): Delete.
15250 (pic_load_dot_plus_four): Delete.
15251 (tls_load_dot_plus_four): New named pattern.
15253 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15256 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
15257 Document fix for TLS bug.
15259 2010-01-31 Richard Guenther <rguenther@suse.de>
15261 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
15262 conservatively correct.
15264 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15268 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15270 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
15272 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15274 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
15276 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
15278 * config.gcc: Adjust order of makefile fragments for mingw targets.
15280 2010-01-31 Richard Guenther <rguenther@suse.de>
15282 PR middle-end/42898
15283 * gimplify.c (gimplify_init_constructor): For volatile LHS
15284 initialize a temporary.
15286 2010-01-31 Matthias Klose <doko@ubuntu.com>
15288 * configure.ac: Fix __stack_chk_fail check for cross builds configured
15290 * configure: Regenerate.
15292 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
15294 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
15295 the same alias set and their sizes different constantness.
15296 (aliasing_component_refs_p): Revert 2009-10-24 change.
15298 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15300 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
15303 2010-01-29 Richard Guenther <rguenther@suse.de>
15305 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
15306 Assert we successfully updated the call.
15308 2010-01-29 Jakub Jelinek <jakub@redhat.com>
15310 PR rtl-optimization/42889
15311 * df.h (df_set_bb_dirty_nonlr): New prototype.
15312 * df-core.c (df_set_bb_dirty_nonlr): New function.
15313 * df-scan.c (df_insn_rescan): Call it instead of
15314 df_set_bb_dirty for DEBUG_INSNs.
15316 2010-01-29 Richard Guenther <rguenther@suse.de>
15318 PR middle-end/37448
15319 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
15320 quadratic behavior in most cases.
15322 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
15325 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
15326 in the call to gen_x86_movsicc_0_m1.
15328 2010-01-28 Richard Guenther <rguenther@suse.de>
15330 PR tree-optimization/42871
15331 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
15333 2010-01-28 Richard Guenther <rguenther@suse.de>
15335 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
15336 into call arguments.
15338 2010-01-28 Richard Guenther <rguenther@suse.de>
15340 PR middle-end/42883
15341 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
15342 the forwarder if the destination is an EH landing pad.
15344 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
15346 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
15347 block list passed to gimple_duplicate_sese_tail.
15348 (parallelize_loops): Avoid parallelization when the function
15349 has_nonlocal_label.
15350 Avoid parallelization when the preheader is IRREDUCIBLE.
15351 Try to optimize when estimated_loop_iterations_int is unresolved.
15352 Add the loop's location to the dump file.
15353 * tree-cfg.c (add_phi_args_after_redirect): Remove.
15354 (gimple_duplicate_sese_tail): Remove the check for the latch.
15355 Redirect nexits to the exit block.
15356 Remove handling of the incoming edges to the latch.
15357 Redirect the backedge from the copied latch to the exit bb.
15359 2010-01-28 Michael Matz <matz@suse.de>
15362 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
15363 Wrap force_reg into a sequence, emit it before user.
15365 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
15367 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
15369 (arm_legacy_rev): Likewise.
15370 (thumb_legacy_rev): Likewise.
15372 2010-01-27 Jakub Jelinek <jakub@redhat.com>
15374 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
15375 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
15376 on MEM's address failed, try avoid_constant_pool_reference and
15377 recurse if it returned something different.
15378 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
15379 address, try avoid_constant_pool_reference and recurse if it
15380 returned something different.
15381 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
15382 address and avoid_constant_pool_reference returned something
15383 different, don't set have_address.
15385 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
15388 * var-tracking.c (val_store): Add modified argument, obey it.
15390 (count_uses): Move down logging of main.
15391 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
15392 don't need resolution.
15393 (emit_notes_in_bb): Likewise.
15395 2010-01-27 Richard Guenther <rguenther@suse.de>
15397 PR middle-end/42878
15398 * tree-inline.c (remap_decl): Delay remapping of SSA name
15399 default definitions until we need them.
15401 2010-01-27 Jakub Jelinek <jakub@redhat.com>
15403 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
15404 (rs6000_delegitimize_address): New function.
15406 * config/s390/s390.c (s390_delegitimize_address): Call
15407 delegitimize_mem_from_attrs.
15409 PR middle-end/42874
15410 * tree-inline.c (cannot_copy_type_1): Removed.
15411 (copy_forbidden): Don't forbid copying of functions containing
15412 records/unions with variable length fields.
15414 2010-01-27 Christian Bruel <christian.bruel@st.com>
15418 * config/sh/sh.c (find_barrier): Increase length for non delayed
15419 conditional branches.
15421 2010-01-27 Matthias Klose <doko@ubuntu.com>
15423 * configure.ac (gnu-unique-object): Fix ldd version check.
15424 * configure: Regenerate.
15426 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15428 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
15430 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
15431 Test for HAVE_GNU_AS value.
15433 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15435 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
15436 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
15437 INT64_TYPE): Define.
15438 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
15439 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15440 INT_LEAST64_TYPE): Define.
15441 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
15442 UINT_LEAST64_TYPE): Define.
15443 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
15444 INT_FAST64_TYPE): Define.
15445 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15446 UINT_FAST64_TYPE): Define.
15447 (INTMAX_TYPE, UINTMAX_TYPE): Define.
15448 (INTPTR_TYPE, UINTPTR_TYPE): Define.
15449 (SIG_ATOMIC_TYPE): Define.
15451 2010-01-26 Richard Guenther <rguenther@suse.de>
15453 * df-scan.c (df_scan_set_bb_info): Remove assert.
15454 (df_insn_rescan_debug_internal): Merge asserts.
15455 (df_install_ref): Likewise.
15456 (df_mark_reg): Use bitmap_set_range.
15457 (df_hard_reg_used_p): Remove assert.
15458 (df_hard_reg_used_count): Likewise.
15460 2010-01-26 Richard Guenther <rguenther@suse.de>
15462 PR rtl-optimization/42685
15463 * web.c (web_main): Ignore DEBUG_INSNs.
15465 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
15467 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
15469 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
15470 Fix types of fndecl and arglist parameters.
15472 2010-01-26 Richard Guenther <rguenther@suse.de>
15474 PR middle-end/42806
15475 * tree-eh.c (unsplit_eh): Skip debug insns.
15477 2010-01-26 Richard Guenther <rguenther@suse.de>
15479 PR tree-optimization/42250
15480 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
15482 2010-01-26 Jakub Jelinek <jakub@redhat.com>
15485 * omp-low.c (expand_omp_sections): Only use single_pred if
15486 l2_bb is single_pred_p.
15488 2010-01-25 Christian Bruel <christian.bruel@st.com>
15491 * config/sh/sh.c (find_barrier): Increase length for non delayed
15492 conditional branches.
15493 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
15495 2010-01-24 David S. Miller <davem@davemloft.net>
15497 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
15498 define if not using GAS.
15499 * config/sparc/sparc.c (sparc_elf_asm_named_section):
15500 Likewise. Delete SECTION_MERGE code, which is only applicable
15503 2010-01-24 Mark Mitchell <mark@codesourcery.com>
15506 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
15507 mangling of va_list in system headers.
15509 2010-01-23 Toon Moene <toon@moene.org>
15511 * tree-predcom.c (combine_chains): Return NULL, not false.
15513 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
15515 * tree-loop-distribution.c (distribute_loop): Fix declaration and
15516 initialization of variable res to agree with return type.
15518 2010-01-22 Steve Ellcey <sje@cup.hp.com>
15520 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
15521 * tree-sra.c: Add include of expr.h.
15523 2010-01-22 Jakub Jelinek <jakub@redhat.com>
15525 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
15526 insert the debug stmt on the single non-EH edge from the stmt.
15528 2010-01-22 Richard Henderson <rth@redhat.com>
15531 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
15532 the RHS until after generate_subtree_copies has insertted its
15533 code before the current statement.
15535 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
15537 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
15539 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
15541 2010-01-21 Martin Jambor <mjambor@suse.cz>
15543 PR tree-optimization/42585
15544 * tree-sra.c (struct access): New field grp_total_scalarization.
15545 (dump_access): Dump the new field.
15546 (should_scalarize_away_bitmap): New variable.
15547 (cannot_scalarize_away_bitmap): Likewise.
15548 (sra_initialize): Allocate new bitmaps.
15549 (sra_deinitialize): Free new bitmaps.
15550 (create_access_1): New function.
15551 (create_access): Parts moved to create_access_1.
15552 (type_consists_of_records_p): New function.
15553 (completely_scalarize_record): Likewise.
15554 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
15555 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
15556 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
15558 (analyze_all_variable_accesses): Completely scalarize small eligible
15561 2010-01-21 Martin Jambor <mjambor@suse.cz>
15563 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
15565 2010-01-21 Andrew Haley <aph@redhat.com>
15567 * gcc.c (process_command): Move lang_specific_driver before
15568 setting cc_libexec_prefix.
15570 2010-01-21 Richard Guenther <rguenther@suse.de>
15572 PR middle-end/19988
15573 * fold-const.c (negate_expr_p): Pretend only negative
15574 real constants are easily negatable.
15576 2010-01-20 Janis Johnson <janis187@us.ibm.com>
15577 Jason Merrill <jason@redhat.com>
15579 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
15580 (TYPE_TRANSPARENT_AGGR): this, for union and record.
15581 * calls.c (initialize argument_information): Handle it.
15582 * c-common.c (handle_transparent_union_attribute): Use new name.
15583 * c-decl.c (finish_struct): Ditto.
15584 * c-typeck.c (type_lists_compatible_p): Ditto.
15585 (convert_for_assignment): Use new name and also handle record.
15586 * function.c (aggregate_value_p): Handle it.
15587 (pass_by_reference): Ditto.
15588 (assign_parm_data_types): Ditto.
15589 * print-tree.c (print_node): Ditto.
15590 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
15591 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
15592 * tree.c (first_field): New fn.
15594 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
15597 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
15598 even when linking statically, for now.
15600 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
15603 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
15604 without a cselib val.
15605 (count_uses): Accept MO_VAL_SET with no val on stores.
15606 (add_stores): Likewise.
15608 2010-01-20 Jakub Jelinek <jakub@redhat.com>
15610 * var-tracking.c (check_value_val): Add a compile time assertion.
15611 (dv_is_decl_p): Simplify.
15612 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
15613 gcc_assert if ENABLE_CHECKING.
15615 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
15618 * var-tracking.c: Include tree-flow.h.
15619 (mem_dies_at_call): New.
15620 (dataflow_set_preserve_mem_locs): Use it.
15621 (dataflow_set_remove_mem_locs): Likewise.
15622 (dump_var): Renamed from dump_variable. Adjust all callers.
15623 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
15624 * Makefile.in (var-tracking.o): Adjust deps.
15626 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
15628 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
15630 2010-01-20 Richard Guenther <rguenther@suse.de>
15632 PR tree-optimization/42717
15633 * tree-ssa-dce.c (get_live_post_dom): Remove.
15634 (forward_edge_to_pdom): Take an arbitrary edge to copy
15635 degenerate PHI args from.
15636 (remove_dead_stmt): Use the first post-dominator even if it
15637 does not contain live statements as redirection destination.
15639 2010-01-20 Richard Guenther <rguenther@suse.de>
15641 * tree-inline.c (estimate_num_insns): Handle EH builtins.
15643 2010-01-20 Jakub Jelinek <jakub@redhat.com>
15645 * sel-sched.c (create_speculation_check): Remove set but not used
15647 (try_transformation_cache): Remove set but not used variable ds.
15648 (calculate_privileged_insns): Remove set but not used variables
15649 cur_insn and min_spec_insn.
15650 (find_best_expr): Remove set but not used variable avail_n.
15651 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
15653 * cgraphunit.c (assemble_thunk): Remove set but not used variable
15655 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
15656 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
15657 new_scop_exit_edge.
15659 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
15662 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
15663 cpu types. Add support for *-sse3 cpu types.
15664 (x86_64-*-*): Ditto.
15666 2010-01-20 Jakub Jelinek <jakub@redhat.com>
15668 PR middle-end/42803
15669 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
15670 argument, call initializer_constant_valid_p_1 instead of
15671 initializer_constant_valid_p, pass CACHE to it, return NULL
15672 immediately if first call returns NULL.
15673 (initializer_constant_valid_p_1): New function.
15674 (initializer_constant_valid_p): Use it.
15676 2010-01-20 Thomas Quinot <quinot@adacore.com>
15678 * tree.def (PLACEHOLDER_EXPR): Fix comment.
15680 2010-01-20 Jakub Jelinek <jakub@redhat.com>
15682 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
15683 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
15684 (loc_list_from_tree): Don't handle unsigned division. Handle
15685 signed modulo using DW_OP_{over,over,div,mul,minus}.
15686 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
15687 modulo instead of signed.
15689 2010-01-20 DJ Delorie <dj@redhat.com>
15691 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
15693 (h8300_emit_stack_adjustment): Propogate it.
15695 (h8300_expand_prologue): Likewise.
15696 (h8300_expand_epilogue): Likewise.
15698 2010-01-19 Michael Matz <matz@suse.de>
15700 PR tree-optimization/41783
15701 * tree-data-ref.c (toplevel): Include flags.h.
15702 (dump_data_dependence_relation): Also dump the inputs if the
15703 result will be unknown.
15704 (split_constant_offset_1): Look through some conversions.
15705 * tree-predcom.c (determine_roots_comp): Restart a new chain if
15706 the offset from last element is too large.
15707 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
15708 (reassociate_to_the_same_stmt): Handle vector registers.
15709 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
15710 (e.g. conversions).
15711 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
15712 wide_prolog_niters argument, emit widening instructions.
15713 (vect_do_peeling_for_alignment): Adjust caller, use widened
15714 variant of the iteration cound.
15715 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
15717 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15720 * config/arm/neon-testgen.m (emit_automatics): New parameter
15721 features. Adjust for Fixed_return_reg feature.
15722 (test_intrinsic): Call emit_automatics with new feature.
15723 * config/arm/neon.ml: Update copyright years.
15724 (features): New Fixed_return_reg feature.
15725 (ops): Update feature for Vget_low.
15727 2010-01-19 Jakub Jelinek <jakub@redhat.com>
15729 PR tree-optimization/42719
15730 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
15734 * fwprop.c (all_uses_available_at): Return false if def_set dest
15735 is a REG that is used in def_insn.
15737 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
15739 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
15741 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
15742 Add argument names.
15744 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
15746 * target.h (struct gcc_target) <secondary_reload>: Change type
15747 of last argument to secondary_reload_info *.
15749 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
15752 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
15753 memory references with unaligned offsets. Remove CQImode handling.
15754 (unaligned_memory_operand): Return 1 for memory references with
15755 unaligned offsets. Remove CQImode handling.
15757 2010-01-18 Richard Guenther <rguenther@suse.de>
15759 PR middle-end/39954
15760 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
15763 2010-01-18 Richard Guenther <rguenther@suse.de>
15765 PR tree-optimization/42781
15766 * tree-ssa-structalias.c (find_what_var_points_to): Skip
15767 restrict processing only if the original variable was artificial.
15769 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
15771 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
15772 find number of popped argument bytes.
15774 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
15775 Fix the text that describes the return value for invalid insns.
15777 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
15779 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
15780 Clarify what 'cost of the -dependence' is. Fix quoting.
15782 * toplev.c (default_get_pch_validity): Rename argument to "sz".
15783 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
15785 2010-01-17 Jakub Jelinek <jakub@redhat.com>
15787 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
15788 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
15790 2010-01-17 Richard Guenther <rguenther@suse.de>
15792 PR middle-end/42248
15793 * function.c (split_complex_args): Take a VEC to modify.
15794 (assign_parms_augmented_arg_list): Build a VEC instead of
15795 a chain of PARM_DECLs.
15796 (assign_parms_unsplit_complex): Take a VEC of arguments.
15797 Do not fixup unmodified parms.
15798 (assign_parms): Deal with the VEC.
15799 (gimplify_parameters): Likewise.
15801 2010-01-17 Richard Guenther <rguenther@suse.de>
15803 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
15804 node existence check.
15805 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
15806 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
15807 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
15808 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
15809 (gimple_execute_on_growing_pred): Likewise.
15811 2010-01-17 Richard Guenther <rguenther@suse.de>
15813 PR tree-optimization/42773
15814 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
15815 (compute_antic_aux): Likewise.
15816 (compute_partial_antic_aux): Likewise.
15818 2010-01-17 Jie Zhang <jie.zhang@analog.com>
15821 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
15824 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
15826 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
15829 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
15830 Fix markup for strict argument.
15832 (TARGET_SCHED_REORDER2): Fix argument types.
15834 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
15835 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
15837 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
15838 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
15840 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
15843 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
15844 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
15845 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
15846 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
15847 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
15849 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
15851 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
15853 (TARGET_ASM_RELOC_RW_MASK): Add return type.
15854 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
15856 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
15858 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
15861 (TARGET_ASM_NAMED_SECTION): Fix argument list.
15863 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
15864 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
15866 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
15868 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
15870 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
15871 referring to it. Fix language.
15873 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
15875 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
15877 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
15879 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
15881 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
15882 '@var{stream}. Remove stray 'and'.
15884 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
15886 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
15888 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
15890 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
15891 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
15893 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
15894 Fix description of return value.
15895 Rename argument "sz" to "len."
15897 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
15898 Clarify meaning of 'true' return value.
15900 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
15902 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
15903 rep_mode versus mode_rep.
15905 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
15907 (TARGET_BUILTIN_DECL): Fix name.
15909 (TARGET_COMMUTATIVE_P): Fix type of first argument.
15911 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
15913 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
15915 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
15917 (TARGET_RELAXED_ORDERING): Use @deftypevr.
15919 (TARGET_GET_DRAP_RTX): Note that this is a hook.
15922 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
15923 Rename argument tm_fn to md_fn.
15925 (TARGET_OPTION_PRINT): Fix argument list.
15927 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
15930 * config/i386/i386.c (ix86_fixup_binary_operands):
15931 Revert FMA4 fixup of operands.
15933 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15936 * Makefile.in (write_entries_to_file, install-plugin):
15937 Use \012 instead of \n with tr.
15939 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
15941 * configure.ac (HAVE_AS_REF): New C macro.
15942 * configure: Regenerate.
15943 * config.in: Likewise.
15944 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
15946 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
15949 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
15951 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
15953 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
15955 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
15957 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
15959 (TARGET_IN_SMALL_DATA_P): Fix argument type.
15961 (TARGET_BINDS_LOCAL_P): Fix argument type.
15963 (TARGET_ASM_FILE_END): Use prototype.
15965 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
15967 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
15969 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
15971 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
15973 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
15974 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
15976 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
15977 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
15979 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
15980 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
15981 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
15982 (TARGET_ADDR_SPACE_CONVERT): Likewise.
15984 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
15986 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
15988 (TARGET_INIT_BUILTINS): Use prototype.
15990 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
15991 Put 'const char *' in braces. Fix parameter types.
15992 (TARGET_INVALID_CONVERSION): Fix parameter types.
15993 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
15994 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
15996 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
15999 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
16001 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
16003 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
16005 * doc/tm.texi (TARGET_HELP): Fix return type.
16007 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
16008 in braces. Fix argument types.
16010 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
16012 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
16014 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
16016 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
16017 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
16019 (TARGET_MANGLE_TYPE): Fix argument types.
16021 (TARGET_IRA_COVER_CLASSES): Use prototype.
16023 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
16025 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
16027 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
16029 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
16031 (TARGET_CALLEE_COPIES): Fix argument types.
16033 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
16035 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
16037 (TARGET_FUNCTION_VALUE): Fix argument types.
16039 (TARGET_RETURN_IN_MSB): Fix argument type.
16041 (TARGET_RETURN_IN_MEMORY): Fix argument types.
16043 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
16045 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
16047 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
16048 agree with return type.
16050 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
16052 2010-01-15 Jing Yu <jingyu@google.com>
16054 PR rtl-optimization/42691
16055 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
16056 a pseudo to a constant and are merged, and adjust comments.
16058 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
16060 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
16062 2010-01-15 Richard Guenther <rguenther@suse.de>
16064 PR middle-end/42739
16065 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
16066 labels of computed or non-local gotos to the destination.
16067 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
16068 landing pad label is the first label.
16070 2010-01-15 Richard Guenther <rguenther@suse.de>
16072 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
16074 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
16077 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
16078 to allow generation of the xssqrtdp instruction on power7.
16079 (sqrtdf2_fpr): Ditto.
16081 2010-01-14 Jakub Jelinek <jakub@redhat.com>
16083 PR middle-end/42674
16084 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
16085 functions with noreturn attribute.
16088 * varasm.c (declare_weak): Add weak attribute to decl if it
16089 doesn't have one already.
16090 (assemble_external): Only add decls to weak_decls if they also
16091 have weak attribute.
16093 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
16095 * var-tracking.c (var_reg_delete): Don't delete the association
16096 between REGs and values or one-part variables if the register
16099 2010-01-14 Jakub Jelinek <jakub@redhat.com>
16102 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
16103 because its first operand is a non-localized variable.
16105 2010-01-14 Martin Jambor <mjambor@suse.cz>
16107 PR tree-optimization/42706
16108 * tree-sra.c (encountered_recursive_call): New variable.
16109 (encountered_unchangable_recursive_call): Likewise.
16110 (sra_initialize): Initialize both new variables.
16111 (callsite_has_enough_arguments_p): New function.
16112 (scan_function): Call decl and flags check only for IPA-SRA, check
16113 whether there is a recursive call and whether it has enough arguments.
16114 (all_callers_have_enough_arguments_p): New function.
16115 (convert_callers): Look for recursive calls only when
16116 encountered_recursive_call is set.
16117 (ipa_early_sra): Bail out either if
16118 !all_callers_have_enough_arguments_p or
16119 encountered_unchangable_recursive_call.
16121 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
16123 * sel-sched.c: Add 2010 to copyright years.
16124 * sel-sched-ir.c: Likewise.
16125 * sel-sched-ir.h: Likewise.
16127 2010-01-14 Martin Jambor <mjambor@suse.cz>
16129 PR tree-optimization/42714
16130 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
16131 constructors specially.
16133 2010-01-14 Andi Kleen <ak@linux.intel.com>
16135 * config/i386/drivers-i386.c (detect_caches_intel):
16136 Add l2sizekb parameter and fill in.
16137 (host_detect_local_cpu): Add l2sizekb, fill in.
16138 Add Atom small cache heuristic.
16140 2010-01-14 Andi Kleen <ak@linux.intel.com>
16142 * config/i386/drivers-i386.c (detect_caches_cpuid4):
16143 Add level3 parameter and fill in.
16144 (detect_caches_intel): Handle level3 cache.
16146 2010-01-14 Andi Kleen <ak@linux.intel.com>
16148 * config/i386/drivers-i386.c (host_detect_local_cpu):
16149 Fix core duo detection.
16151 2010-01-14 Andi Kleen <ak@linux.intel.com>
16153 * config/i386/drivers-i386.c (host_detect_local_cpu):
16154 Fix Atom detection.
16156 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
16158 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
16159 (rs6000_variable_issue_1): this. Use...
16160 (rs6000_variable_issue): here. Reimplement. Print debug info.
16162 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
16164 * sel-sched-ir.c (sel_restore_other_notes): Rename to
16165 sel_restore_notes. Update all callers. Call reemit_notes
16168 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
16170 PR rtl-optimization/42246
16171 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
16174 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
16176 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
16177 all successors is the same as number of successors in current region.
16179 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
16181 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
16182 to rename is not separable. Otherwise check that its LHS is not NULL.
16184 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
16186 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
16188 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
16190 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
16191 available registers when failed to discover LHS register class.
16192 Fix indentation. Update comment.
16194 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
16195 Alexander Monakov <amonakov@ispras.ru>
16197 PR rtl-optimization/42389
16198 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
16200 (advance_state_on_fence): Likewise.
16201 (sel_target_adjust_priority): Print debug output only when
16202 sched_verbose >= 4, not 2.
16203 (get_expr_cost): Do not issue all unique insns on the next cycle.
16204 (fill_insns): Initialize can_issue_more from the value saved
16206 * sel-sched-ir.c (flist_add): New parameter issue_more.
16207 Init FENCE_ISSUE_MORE with it.
16208 (merge_fences): Likewise.
16209 (init_fences): Update call to flist_add.
16210 (add_to_fences, add_clean_fence_to_fences)
16211 (add_dirty_fence_to_fences): Likewise.
16212 (move_fence_to_fences): Update call to merge_fences.
16213 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
16215 * sel-sched-ir.h (struct _fence): New field issue_more.
16216 (FENCE_ISSUE_MORE): New accessor macro.
16218 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
16220 PR rtl-optimization/42388
16221 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
16222 that have no predecessors nor successors. Do not call move_bb_info
16223 for empty blocks outside of current region.
16225 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
16227 PR rtl-optimization/42294
16228 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
16229 * sel-sched.c (move_exprs_to_boundary): Transitively add all
16230 originators' originators.
16232 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
16234 PR rtl-optimization/39453
16235 PR rtl-optimization/42246
16236 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
16238 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
16240 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
16241 Alexander Monakov <amonakov@ispras.ru>
16243 PR middle-end/42245
16244 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
16245 (maybe_tidy_empty_bb): ... here. Make static. Add new
16246 argument. Update all callers.
16247 (tidy_control_flow): ... and here. Recompute topological order
16248 of basic blocks in region if necessary.
16249 (sel_redirect_edge_and_branch): Change return type. Return true
16250 if topological order might have been invalidated.
16251 (purge_empty_blocks): Export and move from...
16252 * sel-sched.c (purge_empty_blocks): ... here.
16253 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
16254 (maybe_tidy_empty_bb): Delete prototype.
16255 (purge_empty_blocks): Declare.
16257 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
16259 PR rtl-optimization/42249
16260 * sel-sched.c (try_replace_dest_reg): When chosen register
16261 and original register is the same, do not bail out early, but
16262 still check all original insns for validity of replacing destination
16263 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
16266 2010-01-14 Jakub Jelinek <jakub@redhat.com>
16269 Port from no-undefined-overflow branch:
16270 2009-03-09 Richard Guenther <rguenther@suse.de>
16272 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
16274 2010-01-14 Richard Guenther <rguenther@suse.de>
16277 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
16279 2010-01-14 Ira Rosen <irar@il.ibm.com>
16281 PR tree-optimization/42709
16282 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
16283 as scalar type in creation of constant vector operand.
16285 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16288 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
16289 (check-parallel-%): Match `testsuite' directory component only
16292 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
16294 PR translation/39521
16295 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
16298 2010-01-13 Richard Guenther <rguenther@suse.de>
16300 PR tree-optimization/42730
16301 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
16304 2010-01-13 Steve Ellcey <sje@cup.hp.com>
16307 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
16308 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
16311 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
16313 * config/bfin/libgcc-bfin.ver: Regenerate based on current
16314 libgcc-std.ver. Add entries for ___smulsi3_highpart and
16315 ___umulsi3_highpart.
16317 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
16318 rather than schedule_insns if the pass is enabled.
16320 2010-01-13 Martin Jambor <mjambor@suse.cz>
16322 PR tree-optimization/42704
16323 * tree-sra.c (sra_modify_assign): Do not delete assignments to
16326 2010-01-13 Martin Jambor <mjambor@suse.cz>
16328 PR tree-optimization/42703
16329 * tree-sra.c (analyze_access_subtree): Check that we can build a
16330 reference to the original data within the aggregate.
16332 2010-01-13 Richard Guenther <rguenther@suse.de>
16334 PR tree-optimization/42705
16335 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
16337 2010-01-13 Richard Guenther <rguenther@suse.de>
16339 PR middle-end/42716
16340 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
16342 2010-01-13 Jakub Jelinek <jakub@redhat.com>
16345 * var-tracking.c (values_to_unmark): New variable.
16346 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
16347 values_to_unmark vector. Moved body to...
16348 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
16349 instead queue it into values_to_unmark vector.
16350 (vt_find_locations): Free values_to_unmark vector.
16352 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
16354 * config/s390/s390.c (override_options): Set
16355 default of max-pending-list-length to 256
16357 2010-01-13 Richard Guenther <rguenther@suse.de>
16360 * tree-pass.h (PROP_gimple_lcx): New.
16361 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
16362 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
16363 before the final cleanup_eh.
16364 (dump_properties): Dump PROP_gimple_lcx.
16365 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
16366 (tree_lower_complex_O0): Remove.
16367 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
16368 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
16369 tree_lower_complex, schedule TODO_update_ssa.
16370 * lto-streamer-out.c (output_function): Stream the functions
16372 * lto-streamer-in.c (input_function): Likewise.
16373 (lto_read_body): Do not override them here.
16375 2010-01-12 Joseph Myers <joseph@codesourcery.com>
16378 * c-typeck.c (build_c_cast): Fold value cast to union type before
16379 wrapping it in a CONSTRUCTOR.
16381 2010-01-12 Jakub Jelinek <jakub@redhat.com>
16383 PR rtl-optimization/42699
16384 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
16387 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16389 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
16390 SUBTARGET_WARN_UNUSED_SPEC): Move ...
16391 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
16392 SUBTARGET_WARN_UNUSED_SPEC): ... here
16393 * config/mips/iris5.h (LIBGCC_SPEC): Define.
16395 2010-01-12 Julian Brown <julian@codesourcery.com>
16397 * config/arm/neon-schedgen.ml (Utils): Don't try to
16398 open missing module.
16399 (find_with_result): New.
16401 2010-01-12 Jakub Jelinek <jakub@redhat.com>
16404 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
16405 sharing when canonicalizing ({lt,ge}u (plus a b) b).
16407 PR tree-optimization/42645
16408 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
16409 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
16410 decl_map, set processing_debug_stmt to -1 and return name without
16413 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
16415 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
16416 binutils version, and reword target configuration description.
16418 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
16420 * config/avr/avr.h (LINKER_NAME): Remove.
16422 2010-01-11 Janis Johnson <janis187@us.ibm.com>
16425 * config/rs6000/rs6000.c (rs6000_override_options): On targets
16426 that support VSX, warn for -mno-altivec if vsx is not disabled,
16429 2010-01-11 Joseph Myers <joseph@codesourcery.com>
16430 Shujing Zhao <pearly.zhao@oracle.com>
16432 PR translation/42469
16433 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
16434 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
16435 character between option name and help text.
16436 * c.opt (imultilib): Likewise.
16438 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
16440 * lto-streamer-out.c (output_unreferenced_globals): Output static
16443 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
16445 PR rtl-optimization/42621
16446 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
16447 optimizing for size.
16448 (duplicate_computed_gotos): Remove now-redundant check.
16450 2010-01-10 Steve Ellcey <sje@cup.hp.com>
16453 * configure.ac: Save and restore LDFLAGS and LIBS
16454 * configure: Regenerate.
16456 2010-01-10 Richard Guenther <rguenther@suse.de>
16458 PR middle-end/42667
16459 * builtins.c (fold_builtin_strlen): Add type argument and
16460 convert the resulting length to it.
16461 (fold_builtin_1): Adjust.
16463 2010-01-09 Jakub Jelinek <jakub@redhat.com>
16465 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
16466 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
16468 (num_insns_constant_wide): Adjust for that change.
16470 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16473 * web.c (union_defs): Add used argument, to combine uses of
16474 uninitialized regs.
16475 (entry_register): Adjust type and tests of used argument.
16476 (web_main): Widen used for new use. Pass it to union_defs.
16477 * df.h (union_defs): Adjust prototype.
16479 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16482 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
16483 uses in new incoming argument. Free body.
16484 (reset_debug_uses_in_loop): New.
16485 (analyze_insn_to_expand_var): Call the latter if the former found
16486 anything. Fix whitespace. Reject invalid dest overlaps before
16487 going through all insns in the loop.
16489 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16492 * haifa-sched.c (dying_use_p): Debug insns don't count.
16494 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16496 PR middle-end/42363
16497 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
16498 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
16499 (verify_gimple_call): Reject LHS in noreturn calls.
16501 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16505 * tree-vect-loop-manip.c (adjust_info): New type.
16506 (adjust_vec): New pointer to vector.
16507 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
16508 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
16509 (slpeel_update_phis_for_duplicate_loop): Use them.
16510 (slpeel_update_phi_nodes_for_guard1): Likewise.
16511 (slpeel_update_phi_nodes_for_guard2): Likewise.
16512 (slpeel_tree_peel_loop_to_edge): Likewise.
16513 (vect_update_ivs_after_vectorizer): Likewise.
16515 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16517 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
16518 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
16520 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16522 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
16523 bogus uninitialized warning.
16525 2010-01-09 Richard Guenther <rguenther@suse.de>
16527 PR middle-end/42512
16528 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
16529 the evolution is compatible with the initial condition.
16531 2010-01-09 Jakub Jelinek <jakub@redhat.com>
16533 * gcc.c (process_command): Update copyright notice dates.
16534 * gcov.c (print_version): Likewise.
16535 * gcov-dump.c (print_version): Likewise.
16536 * mips-tfile.c (main): Likewise.
16537 * mips-tdump.c (main): Likewise.
16539 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
16542 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
16544 (rotlhi3_8): Delete.
16546 (rotlsi3_8): Delete.
16547 (rotlsi3_16): Delete.
16548 (rotlsi3_24): Delete.
16549 (rotl<mode>3): New.
16550 (*rotw<mode>3): New.
16551 (*rotb<mode>3): New.
16552 * config/avr/avr.c (avr_rotate_bytes): New function.
16553 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
16555 2010-01-08 Steve Ellcey <sje@cup.hp.com>
16558 * configure.ac: Modify -rdynamic check.
16559 * configure: Regenerate.
16561 2010-01-08 DJ Delorie <dj@redhat.com>
16563 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
16564 register popping order.
16566 2010-01-08 Richard Guenther <rguenther@suse.de>
16569 * c.opt (fsigned-char): Also let LTO handle this option.
16570 (funsigned-char): Likewise.
16572 2010-01-07 Richard Guenther <rguenther@suse.de>
16574 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
16575 (gimple_op): Likewise.
16576 (gimple_op_ptr): Likewise.
16577 (gimple_assign_set_lhs): Remove gcc_assert.
16578 (gimple_assign_set_rhs1): Likewise.
16579 (gimple_assign_set_rhs2): Likewise.
16580 (gimple_call_set_lhs): Likewise.
16581 (gimple_call_set_fn): Likewise.
16582 (gimple_call_set_fndecl): Likewise.
16583 (gimple_call_fndecl): Likewise.
16584 (gimple_call_return_type): Likewise.
16585 (gimple_call_set_chain): Likewise.
16586 (gimple_call_num_args): Likewise.
16587 (gimple_call_set_arg): Likewise.
16588 (gimple_cond_set_code): Likewise.
16589 (gimple_cond_set_lhs): Likewise.
16590 (gimple_cond_set_rhs): Likewise.
16591 (gimple_cond_set_true_label): Likewise.
16592 (gimple_cond_set_false_label): Likewise.
16593 (gimple_label_set_label): Likewise.
16594 (gimple_goto_set_dest): Likewise.
16595 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
16596 (gimple_debug_bind_get_value): Likewise.
16597 (gimple_debug_bind_get_value_ptr): Likewise.
16598 (gimple_debug_bind_set_var): Likewise.
16599 (gimple_debug_bind_set_value): Likewise.
16600 (gimple_debug_bind_reset_value): Likewise.
16601 (gimple_debug_bind_has_value_p): Likewise.
16602 (gimple_return_retval_ptr): Remove gcc_assert.
16603 (gimple_return_retval): Likewise.
16604 (gimple_return_set_retval): Likewise.
16605 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
16606 (safe_referenced_var_iterator): Remove.
16607 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
16608 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
16609 (fill_referenced_var_vec): Remove.
16610 (first_readonly_imm_use): Remove redundant gcc_assert.
16611 (phi_arg_index_from_use): Combine gcc_asserts.
16612 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
16613 (first_imm_use_stmt): Remove redundant gcc_assert.
16614 * tree-cfg.c (verify_gimple_call): Verify function and chain
16615 operands. Verify arguments.
16616 (verify_types_in_gimple_stmt): Verify condition code and labels.
16618 2010-01-07 Richard Guenther <rguenther@suse.de>
16620 PR tree-optimization/42641
16621 * sese.c (rename_map_elt_info): Use the SSA name version, do
16624 2010-01-07 Jakub Jelinek <jakub@redhat.com>
16626 PR tree-optimization/42625
16627 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
16628 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
16630 2010-01-07 Duncan Sands <baldrick@free.fr>
16632 * Makefile.in (PLUGIN_HEADERS): Add version.h.
16634 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
16637 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
16638 note itself is not function_invariant_p.
16640 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
16642 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
16643 Do not add the DF_NOTE problem.
16644 * store-motion.c (execute_rtl_store_motion): Likewise.
16646 2010-01-07 Martin Jambor <mjambor@suse.cz>
16648 PR tree-optimization/42157
16649 * tree-sra.c (compare_access_positions): Stabilize sort if both
16650 accesses have integer types, return zero immediately if they are the
16653 2010-01-06 Richard Henderson <rth@redhat.com>
16655 PR middle-end/41883
16656 * haifa-sched.c (add_to_note_list): Merge into ...
16657 (concat_note_lists): ... here, and ...
16658 (unlink_other_notes, rm_other_notes): Merge into...
16659 (remove_notes): ... here. Create REG_SAVE_NOTEs for
16660 NOTE_INSN_EPILOGUE_BEG.
16662 2010-01-06 Richard Guenther <rguenther@suse.de>
16664 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
16665 not inline regular functions into always-inline functions.
16667 2010-01-06 Nick Clifton <nickc@redhat.com>
16669 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
16670 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
16672 (OVERRIDE_OPTIONS): Delete.
16673 (OPTIMIZATION_OPTIONS): Define.
16674 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
16675 * config/rx/rx.c (rx_handle_option): Issue an error message if
16676 -mcpu=rx200 and -fpu are used together.
16677 (rx_set_optimization_options): New function. Issue an error
16678 message if an optimization attribute attempts to reset the FPU/
16679 math optimization pairing.
16680 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
16681 * config/rx/rx.opt: Set the default to 32-bit doubles.
16682 * config/rx/t-rx: Add multilibs for -nofpu option.
16683 * doc/invoke.texi: Update documentation of RX options.
16685 2010-01-06 Richard Guenther <rguenther@suse.de>
16687 * tree-ssa-pre.c (name_to_id): New global.
16688 (alloc_expression_id): Simplify SSA name handling.
16689 (lookup_expression_id): Likewise.
16690 (init_pre): Zero name_to_id.
16691 (fini_pre): Free it.
16693 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
16695 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
16697 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
16700 * config/i386/sse.md (smaxv2di3): New.
16701 (umaxv2di3): Likewise.
16702 (sminv2di3): Likewise.
16703 (uminv2di3): Likewise.
16705 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
16708 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
16709 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
16710 (legitimize_tls_address): Likewise.
16711 (sparc_tls_referenced_p): Likewise.
16712 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
16713 and adjust calls to legitimize_pic_address.
16714 (legitimate_constant_p) Use sparc_tls_referenced_p.
16715 (legitimate_pic_operand_p): Likewise.
16716 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
16717 (sparc_tls_symbol_ref_1): Delete.
16718 (sparc_tls_referenced_p): Make static, recognize specific patterns.
16719 (legitimize_tls_address): Make static, handle CONST patterns.
16720 (legitimize_pic_address): Make static, remove unused parameter and
16721 adjust recursive calls.
16722 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
16723 and adjust call to legitimize_pic_address.
16724 (sparc_output_mi_thunk): Likewise.
16726 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
16727 H.J. Lu <hongjiu.lu@intel.com>
16730 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
16731 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
16732 operands to make them signed.
16735 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16738 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
16739 GTU to GT for V4SI and V2DI.
16741 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
16742 (umin<mode>3): Removed.
16744 (uminv4si3): Likewise.
16746 2010-01-05 Martin Jambor <mjambor@suse.cz>
16748 PR tree-optimization/42462
16749 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
16750 current_function_decl to helper functions and macros.
16752 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16755 * flags.h: Don't include real.h.
16756 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
16757 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
16758 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
16759 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
16760 * dominance.c: Update copyright.
16761 * gimple.c (walk_gimple_op): Remove inline.
16762 * tree-ssa-reassoc.c: Include real.h.
16763 * Makefile.in (FLAGS_H): Remove $(REAL_H).
16764 (tree-ssa-reassoc.o): Depend on $(REAL_H).
16766 2010-01-05 Nick Clifton <nickc@redhat.com>
16768 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
16769 register to push into the stack frame when the accumulator has to
16770 be saved during interrupts.
16772 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
16774 * doc/invoke.texi: Remove the documentation about option
16775 -Wunreachable-code.
16776 * common.opt (Wunreachable-code): Preserved for backward
16778 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
16779 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
16780 the backward compatibility flag section.
16782 2010-01-05 Richard Guenther <rguenther@suse.de>
16784 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
16786 2010-01-05 Jakub Jelinek <jakub@redhat.com>
16789 * cfgexpand.c (expand_one_var): Diagnose too large variables.
16791 PR tree-optimization/42508
16792 * tree-sra.c (convert_callers): Check for recursive call
16793 by comparing cgraph nodes instead of decls.
16794 (modify_function): Call ipa_modify_formal_parameters also
16795 on all same_body aliases.
16797 * cgraphunit.c (cgraph_materialize_all_clones): Compare
16798 cgraph nodes when checking for same_body aliases.
16800 2010-01-05 Richard Guenther <rguenther@suse.de>
16802 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
16803 allocation and lookup.
16804 (get_or_alloc_expr_for_constant): Likewise.
16805 (phi_translate): Sink allocation.
16807 2010-01-04 Richard Guenther <rguenther@suse.de>
16809 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
16810 a new entry only if needed.
16811 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
16812 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
16814 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
16816 (phi_translate): Handle CONSTANTs early.
16818 2010-01-04 Martin Jambor <mjambor@suse.cz>
16820 PR tree-optimization/42398
16821 * tree-sra.c (struct access): Removed flag grp_different_types.
16822 (dump_access): Do not dump the removed flag.
16823 (sort_and_splice_var_accesses): Do not set the removed flag.
16824 (sra_modify_expr): Check for type compatibility directly.
16826 2010-01-04 Martin Jambor <mjambor@suse.cz>
16828 PR tree-optimization/42366
16829 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
16830 edges with variable number of parameters.
16831 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
16832 flag instead of asserting it.
16833 (ipa_read_node_info): Read uses_analysis_done flag.
16835 2010-01-04 Richard Guenther <rguenther@suse.de>
16837 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
16838 iterative_hash_* as intended.
16839 (vn_reference_compute_hash): Likewise. Simplify hashing
16841 (vn_reference_lookup_2): Likewise.
16842 (vn_nary_op_compute_hash): Likewise.
16843 (vn_phi_compute_hash): Likewise.
16844 (expressions_equal_p): Remove strange code.
16845 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
16846 (pre_expr_hash): Likewise. Simplify hashing SSA names.
16847 (bitmap_insert_into_set_1): Take value-id as parameter.
16848 (add_to_value): Pass it.
16849 (bitmap_insert_into_set): Likewise.
16850 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
16852 2010-01-04 Jakub Jelinek <jakub@redhat.com>
16855 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
16856 (do_self_spec): For switches with SWITCH_IGNORE set set also
16857 SWITCH_IGNORE_PERMANENTLY.
16858 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
16861 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
16863 * lto-streamer-out.c (output_unreferenced_globals): Output the full
16864 tree of an unreferenced global var.
16866 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16869 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
16870 GTU to GT for V4SI and V2DI.
16872 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
16873 (umin<mode>3): Removed.
16875 (uminv4si3): Likewise.
16877 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16880 * collect2.c (main): Turn on trace in collect2 if -v is passed
16883 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
16885 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
16886 description of expression operand.
16888 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
16890 * configure.ac: Add install-html to target_list for Make-hooks.
16891 * configure: Regenerate.
16892 * fortran/Make-lang.in (F95_HTMLFILES): New.
16893 (fortran.html): Use it.
16894 (fortran.install-html): New.
16895 * Makefile.in (install-html): Add lang.install-html.
16896 * java/Make-lang.in (JAVA_HTMLFILES): New.
16897 (java.html): Use it.
16898 (java.install-html): New.
16899 * objc/Make-lang.in (objc.install-html): New.
16900 * objcp/Make-lang.in (obj-c++.install-html): New.
16901 * cp/Make-lang.in (c++.install-html): New.
16902 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
16903 * lto/Make-lang.in (lto.install-html): New.
16905 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
16908 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
16910 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
16912 PR rtl-optimization/41862
16913 * store-motion.c (store_killed_in_insn, compute_store_table,
16914 remove_reachable_equiv_notes, replace_store_insn,
16915 build_store_vectors): Ignore all DEBUG_INSNs.
16917 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
16920 * common.opt: Add dumpdir.
16922 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
16924 (option_map): Add --dumpdir.
16926 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
16928 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
16930 * opts.c (decode_options): Try dump_dir_name first if
16931 dump_base_name isn't an absolute path.
16932 (common_handle_option): Handle OPT_dumpdir.
16934 * toplev.c (dump_dir_name): New.
16935 (print_switch_values): Also ignore -dumpdir.
16937 * toplev.h (dump_dir_name): New.
16939 2010-01-03 Richard Guenther <rguenther@suse.de>
16941 PR tree-optimization/42589
16942 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
16943 double-word expansion of bswap32.
16945 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
16947 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
16948 with BLOCK_FOR_INSN.
16949 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
16950 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
16951 noce_process_if_block): Likewise.
16952 * gcse.c (compute_local_properties, insert_expr_in_table,
16953 insert_set_in_table, canon_list_insert, find_avail_set,
16954 pre_insert_copy_insn): Likewise.
16956 * basic-block.h (BLOCK_NUM): Move from here...
16957 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
16959 2010-01-03 Richard Guenther <rguenther@suse.de>
16961 PR tree-optimization/42438
16962 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
16963 contains_may_not_return_call flag.
16964 (BB_MAY_NOTRETURN): New.
16965 (valid_in_sets): Trapping nary operations are not valid
16966 in blocks that may not return.
16967 (insert_into_preds_of_block): Remove check for trapping expressions.
16968 (compute_avail): Compute also BB_MAY_NOTRETURN.
16970 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
16972 * doc/invoke.texi: Add 2010 to copyright years.
16974 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
16976 * config/sparc/sparc.c: Fix formatting nits.
16978 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
16979 Alexander Monakov <amonakov@ispras.ru>
16981 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
16983 2010-01-02 Richard Guenther <rguenther@suse.de>
16985 PR middle-end/42577
16986 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
16987 (simplify_switch_using_ranges): Mark to be removed edges
16990 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16992 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
16994 * collect2.c (scan_libraries): Add missing argument in call to
16997 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
17000 * config/alpha/predicates.md (aligned_memory_operand): Return false
17002 (unaligned_memory_operand): Return true for CQImode.
17003 * config/alpha/alpha.c (get_aligned_mem): Assert that location
17004 doesn not cross aligned SImode word boundary.
17006 2010-01-02 Anatoly Sokolov <aesok@post.ru>
17008 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
17010 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
17011 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
17013 2010-01-02 Richard Guenther <rguenther@suse.de>
17016 * toplev.c (compile_file): Emit LTO marker properly. Change
17017 it to __gnu_lto_v1.
17018 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
17020 2010-01-01 Richard Guenther <rguenther@suse.de>
17023 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
17025 2010-01-01 Richard Guenther <rguenther@suse.de>
17028 * c-decl.c (grokdeclarator): For zero-size arrays force
17029 structural equality checks as layout_type does.
17031 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
17033 * builtins.c: Update copyright to 2010.
17035 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
17038 * lto-streamer-out.c (produce_asm): Revert the last change.
17039 (copy_function): Likewise.
17041 * lto-streamer.c (lto_get_section_name): Skip any leading
17044 2010-01-01 Richard Guenther <rguenther@suse.de>
17046 PR middle-end/42559
17047 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
17051 Copyright (C) 2010 Free Software Foundation, Inc.
17053 Copying and distribution of this file, with or without modification,
17054 are permitted in any medium without royalty provided the copyright
17055 notice and this notice are preserved.