1 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
4 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
6 (build_alias_set_optimal_p): Likewise.
7 (build_base_obj_set_for_drs): Likewise.
9 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
11 * target.def: Remove comment about licensing problems of function
14 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
15 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
16 * doc/tm.texi: Regenerate.
18 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
19 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
21 * target.def (enum_va_list_p): Use DEFHOOK.
22 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
23 Rename ptype to ptree.
24 * doc/tm.texi: Regenerate.
26 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
27 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
28 * doc/tm.texi: Regenerate.
30 * target.def (memory_move_cost): Use DEFHOOK.
31 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
32 Rename regclass AKA class to rclass.
33 * doc/tm.texi: Regenerate.
35 * target.def (pragma_parse): Use DEFHOOK.
36 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
37 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
38 * doc/tm.texi: Regenerate.
40 * target.def (pass_by_reference): Use DEFHOOK.
41 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
42 * doc/tm.texi: Regenerate.
44 * target.def (resolve_overloaded_builtin): Rename params to arglist.
46 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
47 * doc/tm.texi: Regenerate.
49 * target.def (return_pops_args): Use DEFHOOK.
50 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
51 Rename stack-size to size.
52 * doc/tm.texi: Regenerate.
54 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
55 last-sched_cycle to last_clock, cur_cycle to clock.
56 * doc/tm.texi.in: Use @hook.
57 * doc/tm.texi: Regenerate.
59 * target.def (print_operand, print_operand_address): Update comment.
60 (print_operand_punct_valid_p): Likewise.
62 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
64 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
66 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
67 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations
70 * regrename.c: Do not include toplev.h. Include rtl-error.h.
71 * rtl-error.c: Likewise.
74 * sel-sched.c: Likewise.
75 * function.c: Likewise.
76 * reg-stack.c: Likewise.
78 * reload1.c: Likewise.
79 * final.c: Include rtl-error.
80 * Makefile.in: Adjust dependencies.
82 2010-06-30 Jan Hubicka <jh@suse.cz>
85 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
88 2010-06-30 Michael Matz <matz@suse.de>
91 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
92 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
93 a gimple reg, attach the original VDEF to the last store in the
96 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
99 * config/darwin.c (darwin_override_options): Use renamed
100 targetm.asm_out.emit_unwind_label.
102 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
104 PR tree-optimization/39799
105 * tree-inline.c (remap_ssa_name): Initialize variable only if
106 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
108 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
110 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
112 2010-06-30 Richard Guenther <rguenther@suse.de>
115 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
116 against oscillation with reverse peephole2.
118 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
121 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
124 2010-06-30 Nick Clifton <nickc@redhat.com>
126 * config/rx/rx-modes.def: New file.
127 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
129 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
131 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
132 (SELECT_CC_MODE): Define.
133 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
134 (reg:CC CC_REG) instead of (cc0).
136 (cbranchsi4): Do not split compare and branch here. Instead move
138 (cbranchsi4_<code>): ... here. New patterns.
139 (cmpsi): Call rx-compare_redundant to find out if it is necessary
140 to emit the compare instruction.
141 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
143 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
145 (rx_expand_prologue, rx_expand_epilogue): Likewise.
146 (rx_notice_update_cc): Delete.
147 (rx_cc_modes_compatible): New function.
148 (flags_needed_for_conditional): New function.
149 (flags_from_mode): New function.
150 (rx_compare_redundant): New function - scans backwards through
151 insn list to find out if condition flags are already set
153 (TARGET_CC_MODES_COMPATIBLE): Define.
154 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
156 * config/rx/rx.h (BRANCH_COST): Define.
157 (REGISTER_MOVE_COST): Define.
158 * config/rx/predicates (rx_source_operand): Allow all constant
160 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
161 (tstsi4): New pattern.
162 * config/rx/rx.c (rx_memory_move_cost): Define.
163 (TARGET_MEMORY_MOVE_COST): Define.
165 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
167 * tree.h (block_may_fallthru): Declare here.
168 * tree-flow.h (block_may_fallthru): Do not declare here.
169 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
171 * Makefile.in (c-typeck.o): Update dependencies.
173 2010-06-30 Jakub Jelinek <jakub@redhat.com>
176 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
177 * cselib.c (cfa_base_preserved_regno): New static variable.
178 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
179 of REGNO (cfa_base_preserved_val->locs->loc).
180 (cselib_preserve_cfa_base_value): Add regno argument, set
181 cfa_base_preserved_regno to it.
182 (cselib_invalidate_regno): Allow removal of registers other than
183 cfa_base_preserved_regno from cfa_base_preserved_val.
184 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
185 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
186 of MEM addresses, if not on LHS.
187 (reverse_op): Don't add reverse ops for cfa_base_rtx.
188 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
190 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
192 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
194 (peep2_buf_position): New static function.
195 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
196 peephole2_optimize): Use it.
197 (peep2_attempt, peep2_update_life): New static functions, broken out
198 of peephole2_optimize.
199 (peep2_fill_buffer): New static function.
200 (peephole2_optimize): Change the main loop to try to fill the buffer
201 with the maximum number of insns before matching them against
202 peepholes. Use a forward scan. Remove special case for targets with
203 conditional execution.
204 * genrecog.c (change_state): Delete dead code.
205 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
206 Rewrite so as not to expect the second insn to have had a peephole
209 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
211 * genhooks.c (emit_findices): Cast field precision to int.
212 (emit_documentation): Likewise.
214 2010-06-29 Jakub Jelinek <jakub@redhat.com>
216 PR tree-optimization/43801
217 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
218 if old_decl was DECL_ONE_ONLY.
221 * dwarf2out.c (add_accessibility_attribute): New function.
222 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
223 instead of adding DW_AT_accessibility manually.
224 (gen_enumeration_type_die, gen_struct_or_union_type_die,
225 gen_typedef_die): Use it.
227 2010-06-29 Douglas B Rupp <rupp@gnat.com>
229 * vmsdbgout.c (full_name): Just output the file name if not native.
231 2010-06-29 Douglas B Rupp <rupp@gnat.com>
233 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
234 (funcnam_table): New static table.
235 (funcnum_table): New static table.
236 (write_rtnbeg): Write value saved in funcnum_table.
237 (write_rtnend): Write value saved in funcnum_table.
238 (vmsdbgout_begin_function): Save current function info in
239 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
240 (vmsdbgout_finish): Iterate over funcnum_table.
242 2010-06-29 Douglas B Rupp <rupp@gnat.com>
244 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
245 (vmsdbgout_type_decl): Declare
246 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
247 (FUNC_EPILOGUE_LABEL): New macro
248 (vmsdbgout_begin_epilogue): New function.
249 (vmsdbgout_type_decl): New function.
251 2010-06-29 Douglas B Rupp <rupp@gnat.com>
253 * vmsdbg.h: Update copyright.
255 2010-06-29 Douglas B Rupp <rupp@gnat.com>
257 * vmsdbg.h (DST_K_TBG): New DST constant.
258 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
259 (write_modbeg): Cast module_language to avoid warning.
260 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
262 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
265 * target.def, doc/tm.texi.in, genhooks.c: New files.
266 * target.h: Instead of defining individual hook members,
267 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
269 * target-def.h: Instead of defining individual hook initializers,
270 include target-hooks-def.h.
271 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
272 targetm.live_on_entry -> targetm.extra_live_on_entry
273 targetm.sched.md_finish ->targetm.sched.finish
274 targetm.sched.md_init -> targetm.sched.init
275 targetm.sched.md_init_global -> targetm.sched.init_global
276 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
277 targetm.asm_out.except_table_label ->
278 targetm.asm_out.emit_except_table_label
279 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
280 targetm.target_help -> targetm.help
281 targetm.vectorize.builtin_support_vector_misalignment ->
282 targetm.vectorize.support_vector_misalignment
283 targetm.file_start_app_off -> targetm.asm_file_start_app_off
284 targetm.file_start_file_directive ->
285 targetm.asm_file_start_file_directive
286 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
287 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
288 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
289 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
290 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
291 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
292 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
293 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
294 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
295 * Makefile.in (TARGET_H): Depend on target.def.
296 (TARGET_DEF_H): Depend on target-hooks-def.h.
297 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
298 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
299 * doc/tm.texi: Regenerate.
301 * Makefile.in (s-tm-texi): Remove stray tab / rule.
303 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
304 (targetm.sched.init): Likewise.
306 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
309 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
310 (function_arg_advance_32): Const-ify TYPE parameter.
311 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
312 (ix86_function_arg_advance): Change type of NAMED to bool.
313 (function_arg_32): Const-ify CUM and TYPE parameters.
314 (function_arg_64): Likewise. Change type of NAMED to bool.
315 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
317 (ix86_function_arg): Change type of NAMED to bool.
318 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
319 last argument as a bool.
321 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
323 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
324 (OVERRIDE_OPTIONS): Add note of obsolescence.
325 Replace references with references to TARGET_OPTION_OVERRIDE.
326 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
328 * targhooks.c (default_target_option_override): New function.
329 * targhooks.h (default_target_option_override): Declare.
330 * target.h (struct gcc_target): Add override member to
331 target_option member.
332 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
333 targetm.target_option.override call.
334 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
335 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
337 2010-06-29 Jan Hubicka <jh@suse.cz>
339 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
341 2010-06-29 Jan Hubicka <jh@suse.cz>
343 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
345 (rebuild_frequencies): New function.
346 * predict.h (rebuild_frequencies): Declare.
347 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
348 entry block and edge reaching new_entry.
349 (tree_function_versioning): When doing partial cloning, rebuild frequencies
351 * passes.c (execute_function_todo): Use rebild_frequencies.
353 2010-06-29 Richard Guenther <rguenther@suse.de>
355 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
356 * tree-flow.h (enum noalias_state): Remove.
357 (struct var_ann_d): Remove noalias_state member.
359 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
362 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
363 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
364 (maddhidi4): Likewise.
366 Revert parts of the change for PR25130.
367 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
370 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
372 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
373 targetm.calls.function_incoming_arg, and
374 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
375 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
376 * target.h (struct gcc_target): Add function_arg_advance,
377 function_arg, and function_incoming_arg fields.
378 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
379 (TARGET_FUNCTION_INCOMING_ARG): Define.
380 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
381 and TARGET_FUNCTION_INCOMING_ARG.
382 * targhooks.h (default_function_arg_advance): Declare.
383 (default_function_arg, default_function_incoming_arg): Declare.
384 * targhooks.c (default_function_arg_advance): New function.
385 (default_function_arg, default_function_incoming_arg): New function.
386 * config/i386/i386.c (function_arg_advance): Rename to...
387 (ix86_function_arg_advance): ...this. Make static.
388 (function_arg): Rename to...
389 (ix86_function_arg): ...this. Make static.
390 (TARGET_FUNCTION_ARG_ADVANCE): Define.
391 (TARGET_FUNCTION_ARG): Define.
392 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
393 (FUNCTION_ARG): Delete.
394 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
395 (function_arg): Delete prototype.
397 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
399 * reginfo.c (init_reg_sets_1): Adjust comments.
400 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
401 * calls.c (prepare_call_address): Likewise.
402 (emit_call_1): Use targetm.calls.return_pops_args.
403 (expand_call): Likewise.
404 * function.c (assign_parms): Likewise.
405 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
406 * target.h (struct gcc_target) [struct calls]: Add
407 return_pops_args field.
408 * targhooks.h (default_return_pops_args): Declare.
409 * targhooks.c (default_return_pops_args): Define.
410 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
411 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
412 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
413 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
415 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
416 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
417 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
418 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
419 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
420 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
421 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
422 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
423 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
424 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
425 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
426 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
427 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
428 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
429 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
430 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
431 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
432 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
433 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
434 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
435 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
436 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
437 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
438 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
439 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
440 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
441 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
442 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
443 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
444 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
445 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
446 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
447 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
448 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
449 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
450 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
451 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
452 * config/i386/i386.c (ix86_return_pops_args): Make static.
454 (TARGET_RETURN_POPS_ARGS): Define.
455 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
456 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
457 (TARGET_RETURN_POPS_ARGS): Define.
458 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
459 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
460 (TARGET_RETURN_POPS_ARGS): Define.
462 2010-06-29 Richard Guenther <rguenther@suse.de>
465 * tree-inline.c (initialize_inlined_parameters): Make sure
466 to remap the inlined parameter variable substitutions types.
468 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
470 PR rtl-optimization/44659
471 * combine.c (make_compound_operation) <SUBREG>: Do not return the
472 result of force_to_mode if it partially re-expanded the compound.
474 2010-06-28 Jan Hubicka <jh@suse.cz>
477 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
480 2010-06-28 Anatoly Sokolov <aesok@post.ru>
482 * double-int.h (force_fit_type_double): Remove declaration.
483 * double-int.c (force_fit_type_double): Move to tree.c.
484 * tree.h (force_fit_type_double): Declare.
485 * tree.h (force_fit_type_double): Moved from double-int.c. Use
486 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
487 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
488 * convert.c (convert_to_pointer): Adjust call to
489 force_fit_type_double.
490 * tree-vrp.c (extract_range_from_assert,
491 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
492 * fold-const.c: Update comment.
493 (int_const_binop, fold_convert_const_int_from_int,
494 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
495 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
496 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
497 round_up_loc): Adjust call to force_fit_type_double.
499 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
501 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
503 2010-06-28 Martin Jambor <mjambor@suse.cz>
505 * tree-sra.c (convert_callers): New parameter, change fndecls of
507 (modify_function): Pass the old decl to convert_callers.
509 2010-06-28 Martin Jambor <mjambor@suse.cz>
511 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
512 ipa_check_create_node_params and ipa_initialize_node_params with
513 checking asserts they are not necessary.
515 2010-06-28 Jan Hubicka <jh@suse.cz>
517 PR tree-optimization/44687
518 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
520 2010-06-28 Martin Jambor <mjambor@suse.cz>
523 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
524 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
525 instead of BINFO_BASE_BINFO.
527 2010-06-28 Michael Matz <matz@suse.de>
530 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
531 proper VDEF chain for intermediate stores in the sequence.
533 2010-06-28 Jan Hubicka <jh@suse.cz>
535 PR tree-optimization/44357
536 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to uninlinable
539 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
541 * config.gcc (powerpc*-*-*): Handle titan.
542 * config/rs6000/rs6000.c (titan_cost): New costs.
543 (rs6000_override_options): Add "titan" to processor_target_table.
544 Add Titan to branch alignment logic.
545 Correctly set rs6000_cost for titan.
546 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
547 * config/rs6000/titan.md: New file.
548 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
550 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
552 * tree-browser.c (TB_history_stack): Convert to a VEC.
553 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
554 (TB_history_prev): Likewise.
556 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
558 * vec.h (vec_heap_free): Add parentheses around free.
560 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
562 * system.h: Poison GCC_EXCEPT_H for front-end files.
564 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
566 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
567 Define to NULL by default.
568 * except.h: Define GCC_EXCEPT_H.
569 (doing_eh): Remove prototype.
570 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
571 (lang_protect_cleanup_actions): Remove.
572 * except.c (lang_protect_cleanup_actions): Remove.
574 (gen_eh_region): Don't check doing_eh here.
575 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
576 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
577 instead of lang_protect_cleanup_actions.
578 * omp-low.c (maybe_catch_exception): Likewise.
579 * Makefile.in: Update dependencies.
581 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
583 * cgraph.h (struct varpool_node): new used_from_object_file flag.
584 (struct cgraph_local_info): new used_from_object_file flag.
585 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
586 (cgraph_clone_node): initialize used_from_object_file.
587 (cgraph_create_virtual_clone): initialize used_from_object_file.
588 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
589 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
590 when compiling with -fwhole-program.
591 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
593 * ipa.c (function_and_variable_visibility): Set externally_visible
594 flag of varpool_node if used_from_object_file flag is set.
595 (cgraph_externally_visible_p): check used_from_object_file flag.
596 * doc/invoke.texi (-fwhole-program option): Change description of
597 externally_visible attribute accordingly.
598 * doc/extend.texi (externally_visible): Ditto.
600 2010-06-27 Jan Hubicka <jh@suse.cz>
602 * params.def (max-inline-insns-auto): Default to 40.
603 * doc/invoke.texi (max-inline-insns-auto): Document the change.
605 2010-06-27 Jan Hubicka <jh@suse.cz>
609 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
611 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
612 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
614 2010-06-27 Anatoly Sokolov <aesok@post.ru>
616 * target.h (struct gcc_target): Add register_move_cost field.
617 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
618 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
619 * targhooks.c (default_register_move_cost): New function.
620 * targhooks.h (default_register_move_cost): Declare function.
621 * defaults.h (REGISTER_MOVE_COST): Delete.
622 * ira-int.h (ira_register_move_cost): Update comment.
623 * ira.c: (ira_register_move_cost): Update comment.
624 * reload.h (register_move_cost): Declare.
625 * reginfo.c (register_move_cost): New function.
626 (move_cost): Update comment.
627 (init_move_cost, memory_move_secondary_cost): Replace
628 REGISTER_MOVE_COST with register_move_cost.
629 * postreload.c (reload_cse_simplify_set): (Ditto.).
630 * reload.c (find_valid_class, find_reloads): (Ditto.).
631 * reload1.c (choose_reload_regs): (Ditto.).
632 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
633 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
634 * doc/md.texi (can_create_pseudo_p): Update documentation.
636 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
637 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
638 * config/i386/i386.h (ix86_memory_move_cost): Make static.
639 (TARGET_MEMORY_MOVE_COST): Define.
641 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
642 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
643 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
644 (TARGET_MEMORY_MOVE_COST): Define.
646 2010-06-27 Richard Guenther <rguenther@suse.de>
648 PR tree-optimization/44683
649 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
650 false edge from the inverted condition.
652 2010-06-27 Richard Guenther <rguenther@suse.de>
655 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
656 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
657 for register LHS. Or non-store assignments.
659 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
661 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
662 (sparc_emit_set_const64): Likewise. Remove disabled code.
663 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
664 (sparc_emit_set_const64): Likewise.
666 2010-06-26 Catherine Moore <clm@codesourcery.com>
668 * config/mips/mips.md (alu_type): New attribute.
669 (type): Infer type from alu_type.
670 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
671 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
672 *subsi3_extended, negsi2, negdi2, *low<mode>,
673 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
674 xor<mode>3, *nor<mode>3,
675 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
676 *zero_extendhi_truncqi): Set alu_type instead of type.
678 2010-06-26 Douglas B Rupp <rupp@gnat.com>
680 * config/alpha/alpha.c (alpha_need_linkage): Adjust
681 splay_tree_new_ggc call.
682 (alpha_use_linkage): Likewise.
684 2010-06-26 Joseph Myers <joseph@codesourcery.com>
686 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
687 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
688 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
689 (static_specs): Remove switches_need_spaces.
690 (process_command, do_self_spec): Hardcode handling "-o" instead of
691 checking switches_need_spaces.
692 * system.h (SWITCHES_NEED_SPACES): Poison.
694 2010-06-26 Richard Guenther <rguenther@suse.de>
696 PR tree-optimization/44393
697 * tree-loop-distribution.c (generate_loops_for_partition): Fix
698 stmt removal and VOP renaming.
699 (generate_memset_zero): Remove redundant stmt updating.
700 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
701 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
703 2010-06-26 Jan Hubicka <jh@suse.cz>
705 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
706 edges comming from header are equivalent.
707 (visit_bb): Handle PHIs correctly.
708 * tree-inline.c (copy_phis_for_bb): Be able to copy
710 (copy_cfg_body): Produce edge from entry BB before copying
713 2010-06-26 Richard Guenther <rguenther@suse.de>
716 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
717 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
719 2010-06-26 Joseph Myers <joseph@codesourcery.com>
721 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
722 add_infile, alloc_switch): New.
723 (process_command): Remove variable lang_n_infiles. Process
724 options in a single pass. Use new functions for allocating
725 infiles and switches arrays. Properly skip operands of
726 -Xpreprocessor and -Xassembler.
728 2010-06-26 Jan Hubicka <jh@suse.cz>
731 * cgraphunit.c (cgraph_function_versioning): Remove wrong
732 cgraph_make_decl_local call; fix typo copying RTL data.
734 2010-06-25 DJ Delorie <dj@redhat.com>
736 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
737 (m32c_output_aligned_common): Likewise.
738 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
739 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
740 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
741 (m32c_register_pragmas): Register it.
742 * config/m32c/m32c.c (m32c_get_pragma_address): New.
743 (m32c_insert_attributes): Set #pragma address decls volatile.
744 (pragma_entry_eq): New.
745 (pragma_entry_hash): New.
746 (m32c_note_pragma_address): New.
747 (m32c_get_pragma_address): New.
748 (m32c_output_aligned_common): New.
749 * doc/extend.texi: Document the new pragma.
751 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
753 * config/m32c/predicates.md (m32c_any_operand): Check the code
754 instead of memory_operand so as to allow matching volatile MEMs.
755 (m32c_nonimmediate_operand): Likewise.
756 (mra_operand): Allow volatiles.
758 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
761 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
762 address if the offset is unknown.
764 2010-06-25 Douglas B Rupp <rupp@gnat.com>
766 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
767 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
768 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
769 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
770 to ia64_start_function. Invoke it.
771 * config/ia64/ia64.c (ia64_start_function): Call new function
772 dwarf2out_vms_debug_main_pointer.
774 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
776 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
777 statements computing the true predicate.
779 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
781 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
782 to boolean_true_node.
783 (reset_bb_predicate): New.
784 (predicate_bbs): Call reset_bb_predicate.
786 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
788 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
789 (tree_if_conversion): Returns true when something has been changed.
790 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
793 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
795 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
796 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
797 * tree-if-conv.c: Include dbgcnt.h.
798 (tree_if_conversion): Use if_conversion_tree to count the number of
799 if-convertible loops.
801 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
803 * common.opt (fprefetch-loop-arrays): Re-define
804 -fprefetch-loop-arrays as a tri-state option with the initial
806 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
807 pass only when flag_prefetch_loop_arrays > 0.
808 * toplev.c (process_options): Note that, with tri-states,
809 flag_prefetch_loop_arrays>0 means prefetching is enabled.
810 * config/i386/i386.c (override_options): Enable prefetching at -O3
811 for a set of CPUs that sw prefetching is helpful.
812 (software_prefetching_beneficial_p): New. Return TRUE if software
813 prefetching is beneficial for the given CPU.
815 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
817 PR rtl-optimization/44326
818 * implicit-zee.c (find_removable_zero_extends): Replace
819 INSN_P with NONDEBUG_INSN_P.
821 2010-06-25 Martin Jambor <mjambor@suse.cz>
823 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
824 (struct ipa_node_params): Removed the modification_analysis_done flag.
825 (ipa_is_param_modified): Removed.
826 (ipa_analyze_node): Declare.
827 (ipa_compute_jump_functions): Remove declaration.
828 (ipa_count_arguments): Likewise.
829 (ipa_detect_param_modifications): Likewise.
830 (ipa_analyze_params_uses): Likewise.
831 * ipa-prop.c (struct param_analysis_info): New type.
832 (visit_store_addr_for_mod_analysis): Removed.
833 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
834 moved down in the file.
835 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
836 (ipa_count_arguments): Made static.
837 (mark_modified): New function.
838 (is_parm_modified_before_call): New function.
839 (compute_pass_through_member_ptrs): New parameter parms_info, call
840 is_parm_modified_before_call instead of ipa_is_param_modified.
841 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
842 it to compute_pass_through_member_ptrs.
843 (ipa_compute_jump_functions): New parameter parms_info, pass it to
844 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
845 on the callee if it is analyzed. Made static.
846 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
847 is_parm_modified_before_call instead of ipa_is_param_modified.
848 (ipa_analyze_call_uses): New parameter parms_info, pass it to
849 ipa_analyze_indirect_call_uses.
850 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
851 ipa_analyze_call_uses.
852 (ipa_analyze_params_uses): New parameter parms_info, pass it to
853 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
854 (ipa_analyze_node): New function.
855 (ipa_print_node_params): Do not dump the modified flag.
856 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
857 it. Do not stream the modified parameter flag.
858 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
859 it. Do not stream the modified parameter flag.
860 * ipa-cp.c (ipcp_analyze_node): Removed.
861 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
862 with only a call to ipa_analyze_node.
863 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
864 node with only a call to ipa_analyze_node.
866 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
868 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
870 2010-06-25 Jan Hubicka <jh@suse.cz>
872 * tree-pass.h (pass_split_functions): Declare.
873 * opts.c (decode_options): Enable function splitting at -O2
874 * timevar.def (TV_IPA_FNSPLIT): New macro.
875 * ipa-split.c: New file.
876 * common.opt (-fpartial-inlining): New flag.
877 * Makefile.in (ipa-split.o): New object file.
878 * passes.c (init_optimization_passes): Add ipa-split.
879 * params.def (partial-inlining-entry-probability): New parameters.
880 * doc/invoke.texi (-fpartial-inlining): New.
882 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
885 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
886 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
887 (gimplify_expr): Likewise.
889 2010-06-25 Martin Jambor <mjambor@suse.cz>
891 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
892 statements instead of bailing out on them.
893 (ipa_analyze_indirect_call_uses): Do not require that loads from the
894 parameter are in the same BB as the condition. Update comments.
896 2010-06-25 Jakub Jelinek <jakub@redhat.com>
899 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
900 true or always false, return NULL_TREE.
901 (tree_unswitch_single_loop): Optimize conditions even when reaching
902 max-unswitch-level parameter. If num > 0, optimize first all conditions
903 using entry checks, then do still reachable block discovery and consider
904 only conditions in still reachable basic blocks in the loop.
906 PR tree-optimization/44539
907 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
908 the call doesn't have LHS, but has VDEF.
910 2010-06-25 Joseph Myers <joseph@codesourcery.com>
912 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
913 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
914 * gcc.c (enum add_del, struct modify_target, modify_target):
916 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
917 * system.h (MODIFY_TARGET_NAME): Poison.
919 2010-06-25 Alan Modra <amodra@gmail.com>
921 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
922 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
923 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
924 CMODEL_LARGE as default.
925 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
926 (offsettable_ok_by_alignment): Delete.
927 (rs6000_emit_move): Remove mcmodel=medium optimization.
929 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
931 With large parts from Jim Wilson:
933 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
934 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
935 * optabs.c (optab_for_tree_code): Likewise.
936 (expand_widen_pattern_expr): Likewise.
937 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
938 out of execute_optimize_widening_mul.
939 (convert_plusminus_to_widen): New function.
940 (execute_optimize_widening_mul): Use the two new functions.
941 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
942 Remove code to generate widening multiply-accumulate. Add support
943 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
944 * gimple-pretty-print.c (dump_ternary_rhs): New function.
945 (dump_gimple_assign): Call it when appropriate.
946 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
947 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
948 (expand_gimple_stmt_1): Likewise.
949 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
950 WIDEN_MULT_MINUS_EXPR.
951 * tree-ssa-operands.c (get_expr_operands): Likewise.
952 * tree-inline.c (estimate_operator_cost): Likewise.
953 * gimple.c (extract_ops_from_tree_1): Renamed from
954 extract_ops_from_tree. Add new arg for a third operand; fill it.
955 (gimple_build_assign_stat): Support operations with three operands.
956 (gimple_build_assign_with_ops_stat): Likewise.
957 (gimple_assign_set_rhs_from_tree): Likewise.
958 (gimple_assign_set_rhs_with_ops_1): Renamed from
959 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
960 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
961 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
962 WIDEN_MULT_MINUS_EXPR.
963 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
964 (extract_ops_from_tree_1): Adjust declaration.
965 (gimple_assign_set_rhs_with_ops_1): Likewise.
966 (gimple_build_assign_with_ops): Pass NULL for last operand.
967 (gimple_build_assign_with_ops3): New macro.
968 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
969 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
971 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
972 (verify_gimple_assign): Call it.
973 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
974 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
975 functions for dealing with three-operand statements.
976 * tree.c (commutative_ternary_tree_code): New function.
977 * tree.h (commutative_ternary_tree_code): Declare it.
978 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
980 (gimple_assign_nonzero_warnv_p): Likewise.
981 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
982 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
983 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
984 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
985 (struct hashtable_expr): New member ternary in the union.
986 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
987 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
988 (iterative_hash_hashable_expr): Likewise.
989 (print_expr_hash_elt): Handle EXPR_TERNARY.
990 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
991 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
992 statements. Handle GIMPLE_TERNARY_RHS.
994 2010-06-25 Jan Hubicka <jh@suse.cz>
996 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
998 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
1001 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
1002 parameters are not good.
1003 (c_parser_parameter_declaration): Error unknown type name if the type
1004 name can't start declaration specifiers.
1006 2010-06-25 Joseph Myers <joseph@codesourcery.com>
1008 * gcc.c (translate_options): Don't mention +e in comment.
1009 (process_command): Don't handle +e specially.
1011 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
1013 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
1015 * ira-build.c (merge_hard_reg_conflicts): New function.
1016 (create_cap_allocno, copy_info_to_removed_store_destinations,
1017 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
1018 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
1019 (remove_unnecessary_allocnos, remove_low_level_allocnos)
1020 copy_nifo_to_removed_store_destination): Use them.
1021 * ira-lives.c (make_hard_regno_born): New function, split out of
1023 (make_allocno_born): Likewise.
1024 (make_hard_regno_dead): New function, split out of make_regno_dead.
1025 (make_allocno_dead): Likewise.
1026 (inc_register_pressure): New function, split out of set_allocno_live.
1027 (dec_register_pressure): New function, split out of clear_allocno_live.
1028 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
1029 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
1030 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
1031 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
1032 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
1033 mark_pseudo_regno_live.
1034 (process_bb_node_lives): Use mark_pseudo_regno_live,
1035 make_hard_regno_born and make_allocno_dead.
1036 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
1037 set_allocno_live, clear_allocno_live): Delete functions.
1039 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
1040 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
1042 (ira_flattening): Use ira_parent_allocno.
1043 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
1044 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
1046 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
1049 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
1050 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
1051 minmax_set_iter_cond, minmax_set_iter_next,
1052 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
1053 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
1054 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
1055 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
1058 * ira-int.h (struct live_range, live_range_t): Renamed from struct
1059 ira_allocno_live_range and allocno_live_range_t; all uses changed.
1060 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
1063 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
1065 * thumb2.md (thumb2_tlobits_cbranch): Delete.
1066 (peephole2 to convert zero_extract/compare of single bit to
1067 lshift/compare): New.
1069 2010-06-24 Anatoly Sokolov <aesok@post.ru>
1071 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
1072 recursive call and call to 'int_const_binop'.
1073 (build_range_check, fold_cond_expr_with_comparison, unextend,
1074 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
1075 multiple_of_p): Adjust call to const_binop.
1077 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
1079 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
1080 determine size of XFmode operand.
1081 (XFmode extended DFmode push splitter): Ditto.
1082 (XFmode extended SFmode push splitter): Ditto.
1084 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
1087 * config/i386/i386.md (extract_code): New.
1088 (<u>divmodqi4): Likewise.
1089 (divmodhiqi3): Likewise.
1090 (udivmodhiqi3): Likewise.
1091 (<u>divqi3): Remvoved.
1093 2010-06-24 Jakub Jelinek <jakub@redhat.com>
1096 * recog.h (struct recog_data): Add is_asm field.
1097 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
1098 present in constraints of inline-asm operand and memory operand
1099 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
1100 (extract_insn): Initialize recog_data.is_asm.
1101 * doc/md.texi (Constraints): Document operand side-effect rules.
1103 2010-06-24 Andi Kleen <ak@linux.intel.com>
1105 * c-parser.c (c_parser_conditional_expression): Call
1106 warn_for_omitted_condop.
1107 * doc/invoke.texi: Document omitted condop warning.
1109 2010-06-24 Nick Clifton<nickc@redhat.com>
1111 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
1112 insn in the sequence is a jump insn before setting its label.
1114 2010-06-24 Alan Modra <amodra@gmail.com>
1116 * collect2.c (main): Match exactly --version and --help.
1118 2010-06-24 DJ Delorie <dj@redhat.com>
1120 * config/m32c/m32c-pragma.c: Don't include rtl.h.
1122 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
1124 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
1125 using X87MODEF mode iterator.
1126 (pushsf splitter): Macroize splitter using P mode iterator.
1127 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
1130 (*movxf_internal): Rename from *movxf_integer.
1131 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
1132 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
1133 (*movdf_internal): Rename from *movdf_integer.
1134 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
1135 (*movsf_internal): Rename from *movdf_1.
1137 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
1139 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
1140 (const_gimple_seq_node): Removed typedefs.
1142 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
1143 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
1145 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
1147 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
1148 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
1149 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
1150 and CODE_FOR_vec_extract_lo_v4df.
1152 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
1153 Changed to define_insn_and_split.
1154 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
1155 (vec_extract_lo_v16hi): Likewise.
1156 (vec_extract_lo_v32qi): Likewise.
1157 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
1158 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
1160 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
1163 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
1164 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
1165 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
1166 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
1167 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
1170 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
1173 * df-core.c (struct df): Rename to df_d.
1174 * df.h (struct df): Likewise.
1175 * dse.h (struct df): Remove forward declaration.
1176 * recog.h (struct insn_data): Rename to:
1177 (struct_insn_data_d). Adjusted all users.
1179 2010-06-23 Arnaud Charlet <charlet@adacore.com
1182 * doc/install.texi: Update requirements to build GNAT.
1184 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
1186 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
1188 (m68k_sched_attr_opx_type): Remove unreachable return.
1189 (m68k_sched_attr_opy_type): Likewise.
1190 (m68k_sched_attr_size): Likewise.
1191 (sched_get_opxy_mem_type): Likewise.
1192 (m68k_sched_attr_op_mem): Likewise.
1194 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
1196 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
1197 new statement and adjust VDEF only if necessary. Remove superfluous
1198 call to maybe_clean_or_replace_eh_stmt.
1199 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
1201 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
1202 * tree-inline.c (copy_bb): ...and not there.
1204 2010-06-22 Cary Coutant <ccoutant@google.com>
1206 * dwarf2out.c (is_nested_in_subprogram): New function.
1207 (should_move_die_to_comdat): Use it.
1208 (copy_ancestor_tree): Don't mark DIEs here.
1209 (copy_decls_walk): Start walk from root of newly-added tree;
1210 mark DIEs here instead.
1212 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
1214 * config/i386/i386.md (unit): Also check sseishft1.
1216 2010-06-22 Jan Hubicka <jh@suse.cz>
1218 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
1221 2010-06-22 Jan Hubicka <jh@suse.cz>
1223 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
1224 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
1225 Return true if something changed.
1226 * df.h (df_confluence_function_n): Return bool.
1227 * df-core.c (df_worklist_propagate_forward,
1228 df_worklist_propagate_backward): Track changes and ages.
1229 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
1231 * dse.c (dse_confluence_n): Return always true.
1233 2010-06-22 Jan Hubicka <jh@suse.cz>
1235 * bitmap.c (bitmap_clear_bit): Micro optimize.
1237 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
1239 * config/i386/i386.md (SWI1248x): New mode iterator.
1244 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
1245 SWI1248x mode iterator.
1246 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
1247 using SWI124 mode iterator.
1248 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
1250 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
1251 *pushdi2_prologue_rex64 using P mode iterator.
1252 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
1253 using SWI48 mode iterator.
1254 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
1255 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
1256 using SWI1248x mode iterator.
1257 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
1258 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
1259 SWI48 mode iterator.
1260 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
1262 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
1263 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
1264 SWI12 mode iterator.
1265 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
1266 SWI12 mode iterator.
1267 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
1268 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
1269 SWI24 mode iterator.
1270 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
1271 SWI48 mode iterator.
1272 (mov<mode>_insn_1): New expander.
1273 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
1274 using SWI48x mode iterator.
1276 (*movoi_internal_avx): Rename from *movoi_internal.
1277 (*movti_internal_rex64): Rename from *movti_rex64.
1278 (*movti_internal_sse): Rename from *movti_sse.
1279 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
1280 (*movdi_internal): Rename from *movdi_2.
1281 (*movsi_internal): Rename from *movsi_1.
1282 (*movhi_internal): Rename from *movhi_1.
1283 (*movqi_internal): Rename from *movqi_1.
1285 (insv): Update the call to gen_movsi_insv_1 for rename.
1286 * config/i386/i386.c (promote_duplicated_reg): Ditto.
1288 2010-06-22 Jan Hubicka <jh@suse.cz>
1290 * passes.c (execute_function_todo): Move call of statistics_fini_pass
1292 (execute_todo) ... this one.
1294 2010-06-22 Alan Modra <amodra@gmail.com>
1297 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
1298 * caller-save.c (insert_restore, insert_save): Use non-validate
1299 form of adjust_address.
1301 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1304 * config/pa/pa.c (override_options): Disable
1305 -freorder-blocks-and-partition.
1307 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
1310 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
1312 * config/i386/i386.md (type): Add sseishft1
1314 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
1315 (ppro_insn_load): Likewise.
1316 (ppro_insn_store): Likewise.
1317 (ppro_insn_both): Likewise.
1319 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
1320 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
1322 (*vec_extractv2di_1_avx): Likewise.
1323 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
1324 type. Remove atom_unit.
1325 (*vec_extractv2di_1_sse2): Likewise.
1327 2010-06-21 DJ Delorie <dj@redhat.com>
1329 * diagnostic.h (diagnostic_classification_change_t): New.
1330 (diagnostic_context): Add history and push/pop list.
1331 (diagnostic_push_diagnostics): Declare.
1332 (diagnostic_pop_diagnostics): Declare.
1333 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
1334 from pragmas in a history chain instead of the global table.
1335 (diagnostic_push_diagnostics): New.
1336 (diagnostic_pop_diagnostics): New.
1337 (diagnostic_report_diagnostic): Scan history chain to find state
1338 of diagnostics as of the diagnostic location.
1339 * opts.c (set_option): Pass UNKNOWN_LOCATION to
1340 diagnostic_classify_diagnostic.
1341 (enable_warning_as_error): Likewise.
1342 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
1343 use in the history chain.
1344 * c-family/c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1345 allow these pragmas anywhere.
1346 * doc/extend.texi: Document pragma GCC diagnostic changes.
1348 2010-06-21 Jakub Jelinek <jakub@redhat.com>
1350 * dwarf2out.c (add_linkage_name): New function. Don't add
1351 anything to DW_TAG_member DIEs.
1352 (add_name_and_src_coords_attributes): Use it.
1353 (gen_variable_die): Call it for C++ static data members if
1354 specification is DW_TAG_member.
1356 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
1357 C++ char16_t and char32_t.
1359 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
1360 * genattrtab.c: Include vecprim.h.
1361 (cached_attrs, cached_attr_count, attrs_seen_once,
1362 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
1363 attrs_cached_after): New variables.
1364 (find_attrs_to_cache): New function.
1365 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
1366 (write_test_expr): Add attrs_cached argument, return it too,
1367 attempt to cache non-const attributes used more than once in
1368 a single case handling.
1369 (write_attr_get): Use find_attrs_to_cache, for caching candidates
1370 emit cached_* variables. Adjust write_attr_set callers.
1371 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
1372 to find attributes that should be cached in this block. Adjust
1373 write_test_expr callers.
1374 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
1376 (make_automaton_attrs): Adjust write_test_expr caller.
1378 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
1379 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
1380 (make_automaton_attrs): If find_tune_attr returns non-NULL,
1381 write separate internal_dfa_insn_code_* and insn_default_latency_*
1382 functions for each attribute's value and emit init_sched_attrs
1383 function and function pointers.
1384 * genattr.c (const_attrs, reservations): New variables.
1385 (gen_attr): Add const attributes to const_attrs vector.
1386 (check_tune_attr, find_tune_attr): New functions.
1387 (main): Add reservations to reservations vector. If find_tune_attr
1388 returns true, add prototype for init_sched_attrs and make
1389 internal_dfa_insn_code and insn_default_latency function pointers,
1390 otherwise define init_sched_attrs as dummy macro.
1391 * cfgexpand.c: Include insn-attr.h.
1392 (gimple_expand_cfg): Call init_sched_attrs.
1394 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
1397 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
1398 va_arg from a set of register save slots into a temporary,
1399 if the container is bigger than type size, do the copying
1400 using smaller mode or using memcpy.
1403 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
1405 (sel_print_to_dot): Remove macro.
1406 (sel_print): Likewise. New prototype.
1407 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
1408 (sel_print): New function.
1410 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1412 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
1413 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
1415 2010-06-21 Nick Clifton <nickc@redhat.com>
1417 * config/rx/rx.h (PTRDIFF_TYPE): Define.
1418 (SMALL_REGISTER_CLASS): Define (to zero).
1419 (PRINT_OPERAND): Delete.
1420 (PRINT_OPERAND_ADDRESS): Delete.
1421 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
1422 (rx_print_operand_address): Delete prototype.
1423 * config/rx/rx.c (rx_print_operand): Make static.
1424 Allow %H and %L to handle CONST_DOUBLEs.
1425 (rx_print_operand_address): Make static.
1426 (rx_gen_move_template): Rename local variable 'template' to
1428 (rx_function_arg): Do not pass unknown sized objects in registers.
1429 (TARGET_PRINT_OPERAND): Define.
1430 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1432 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1434 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
1436 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
1438 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
1439 stack-alignment for simple leaf-functions.
1441 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
1443 * doc/install.texi: Document bootstrap-lto.
1445 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
1448 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
1449 (input_function): Drop them here, if VTA is disabled.
1451 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
1454 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
1456 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
1457 ix86_swapped_fp_comparsion_operator instead of
1458 ix86_fp_comparison_operator.
1460 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
1461 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
1462 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
1463 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
1464 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
1465 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
1467 2010-06-20 Joseph Myers <joseph@codesourcery.com>
1470 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
1471 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
1472 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
1473 (decode_cmdline_option): Update for this return value. Set
1474 orig_option_with_args_text field. Set arg field for unknown
1475 options. Make static.
1476 (decode_cmdline_options_to_array): New.
1477 (prune_options): Update handling of find_opt return value.
1478 * opts.c (read_cmdline_option): Take decoded option. Return void.
1479 (read_cmdline_options): Take decoded options.
1480 (decode_options): Add parameters for decoded options. Use
1481 decode_cmdline_options_to_array. Use decoded options for -O
1482 scan. Use integral_argument for -O parameters. Update call to
1483 read_cmdline_options.
1484 (enable_warning_as_error): Update handling of find_opt return value.
1485 * opts.h: Update comment on unknown options.
1486 (struct cl_decoded_option): Update comments on opt_index and arg.
1487 Add orig_option_with_args_text.
1488 (decode_cmdline_option): Remove.
1489 (decode_cmdline_options_to_array): Declare.
1490 (decode_options): Update prototype.
1491 * toplev.c (save_argv): Remove.
1492 (save_decoded_options, save_decoded_options_count): New.
1493 (read_integral_parameter): Remove.
1494 (print_switch_values): Use decoded options.
1495 (toplev_main): Don't set save_argv. Update call to decode_options.
1496 * toplev.h (read_integral_parameter): Remove.
1497 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
1499 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
1502 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
1504 * constraints.md (Pw, Px): New constraints.
1505 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
1507 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
1509 * config/i386/sse.md (fma4modesuffixf4): Removed.
1510 (ssemodesuffixf2s): Likewise.
1511 (ssemodesuffixf4): Likewise.
1512 (ssemodesuffixf2c): Likewise.
1513 (ssescalarmodesuffix2s): Likewise.
1514 (avxmodesuffixf2c): Likewise.
1515 (ssemodesuffix): New.
1516 (ssescalarmodesuffix): Likewise.
1517 Update patterns with ssemodesuffix and ssescalarmodesuffix.
1519 2010-06-19 Philip Herron <herron.philip@googlemail.com>
1521 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
1523 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
1525 * stor-layout.c (debug_rli): Remove unused local variables.
1527 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
1529 PR rtl-optimization/40900
1530 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
1531 original expression for later reuse.
1532 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
1533 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
1535 2010-06-18 Anatoly Sokolov <aesok@post.ru>
1537 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
1538 double_int_fits_in_uhwi_p): Implement as static inline.
1539 (double_int_xor): New inline function.
1540 (double_int_lrotate, double_int_rrotate, double_int_max,
1541 double_int_umax, double_int_smax, double_int_min, double_int_umin,
1542 double_int_smin): Declare.
1543 (lrotate_double, rrotate_double): Remove declaration.
1544 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
1545 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
1546 (double_int_lrotate, double_int_rrotate, double_int_max,
1547 double_int_umax, double_int_smax, double_int_min, double_int_umin,
1548 double_int_smin): New function.
1549 * fold-const.c (int_const_binop): Clean up, use double_int_*
1551 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
1552 double_int_* and immed_double_int_const functions.
1554 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1556 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
1557 * function.c (types_used_by_cur_var_decl): Likewise.
1558 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
1560 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1562 * tree.h (record_layout_info): Change type of pending_statics field
1564 * stor-layout.c (start_record_layout): Store NULL into
1566 (debug_rli): Call debug_vec_tree instead of debug_tree.
1567 (place_field): Likewise.
1568 (finish_record_layout): Likewise.
1570 2010-06-18 Alan Modra <amodra@gmail.com>
1572 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
1574 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1577 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
1578 for SET source operand from SET destination operand.
1580 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
1582 PR rtl-optimization/39871
1583 * reload1.c (init_eliminable_invariants): For flag_pic, disable
1584 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
1585 (function_invariant_p): Rule out a plus of frame or arg pointer with
1587 * ira.c (find_reg_equiv_invariant_const): Likewise.
1589 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
1591 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
1592 print_operand_address and puts to output the operand for CONST.
1594 2010-06-17 Jakub Jelinek <jakub@redhat.com>
1597 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
1600 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1602 * v850-protos.h (print_operand): Delete.
1603 (print_operand_address): Delete.
1604 * v850.h (PRINT_OPERAND): Delete.
1605 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1606 (PRINT_OPERAND_ADDRESS): Delete.
1607 * v850.c (print_operand_address): Rename to...
1608 (v850_print_operand_address): ...this. Make static. Call
1610 (print_operand): Rename to...
1611 (v850_print_operand): ...this. Make static. Call
1612 v850_print_operand_address.
1613 (v850_print_operand_punct_valid_p): New function.
1614 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1615 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1617 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1619 * config/sh/sh-protos.h (print_operand): Delete.
1620 (print_operand_address): Delete.
1621 * config/sh/sh.h (PRINT_OPERAND): Delete.
1622 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1623 (PRINT_OPERAND_ADDRESS): Delete.
1624 * config/sh/sh.c (sh_print_operand_address): Make static.
1625 (sh_print_operand): Make static. Call sh_print_operand_address
1626 and sh_print_operand.
1627 (sh_print_operand_punct_valid_p): New function.
1628 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1629 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1631 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1633 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
1634 (mcore_print_operand_address): Delete.
1635 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
1636 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1637 (PRINT_OPERAND_ADDRESS): Delete.
1638 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
1639 (mcore_print_operand): Make static.
1640 (mcore_print_operand_punct_valid_p): New function.
1641 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
1642 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1644 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1646 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
1647 (print_operand_address): Delete.
1648 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
1649 (PRINT_OPERAND_ADDRESS): Delete.
1650 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
1652 (m68hc11_print_operand): Make static.
1653 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1655 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1657 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
1658 (m32r_print_operand_address): Delete.
1659 * config/m32r/m32r.h (m32r_punct_chars): Delete.
1660 (PRINT_OPERAND): Delete.
1661 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1662 (PRINT_OPERAND_ADDRESS): Delete.
1663 * config/m32r/m32r.c (m32r_punct_chars): Make static.
1664 (m32r_print_operand_address): Make static.
1665 (m32r_print_operand): Make static.
1666 (m32r_print_operand_punct_valid_p): New function.
1667 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1668 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1670 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1672 * config/iq2000/iq2000-protos.h (print_operand): Delete.
1673 (print_operand_address): Delete.
1674 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
1675 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1676 (PRINT_OPERAND_ADDRESS): Delete.
1677 (iq2000_print_operand_punct): Delete.
1678 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
1679 (iq2000_print_operand_address): Make static.
1680 (iq2000_print_operand): Make static.
1681 (iq2000_print_operand_punct_valid_p): New function.
1682 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1683 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1685 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1687 * config/frv/frv-protos.h (frv_print_operand): Delete.
1688 (frv_print_operand_address): Delete.
1689 * config/frv/frv.h (PRINT_OPERAND): Delete.
1690 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1691 (PRINT_OPERAND_ADDRESS): Delete.
1692 * config/frv/frv.c (frv_print_operand_address): Make static.
1693 (frv_print_operand): Make static.
1694 (frv_print_operand_punct_valid_p): New function.
1695 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1696 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1698 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1700 * tree.h (vec_member): Declare.
1701 * tree.c (vec_member): Define.
1703 2010-06-17 Richard Guenther <rguenther@suse.de>
1705 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
1706 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
1708 2010-06-17 Richard Guenther <rguenther@suse.de>
1710 * tree-inline.c (declare_return_variable): Remove bogus code.
1712 2010-06-17 Richard Guenther <rguenther@suse.de>
1714 * gimplify.c (gimplify_bind_expr): Always promote complex
1715 and vector variables to registers if possible.
1717 2010-06-17 Richard Guenther <rguenther@suse.de>
1719 * expr.c (get_inner_reference): Use double_int for bit_offset
1722 2010-06-16 DJ Delorie <dj@redhat.com>
1724 * common.opt (-fstrict-volatile-bitfields): new.
1725 * doc/invoke.texi: Document it.
1726 * fold-const.c (optimize_bit_field_compare): For volatile
1727 bitfields, use the field's type to determine the mode, not the
1729 * expr.c (expand_assignment): Likewise.
1730 (get_inner_reference): Likewise.
1731 (expand_expr_real_1): Likewise.
1732 * expmed.c (store_fixed_bit_field): Likewise.
1733 (extract_bit_field_1): Likewise.
1734 (extract_fixed_bit_field): Likewise.
1736 2010-06-16 Richard Guenther <rguenther@suse.de>
1738 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
1740 2010-06-16 Douglas B Rupp <rupp@gnat.com>
1742 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
1743 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
1744 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
1745 * debug.c: Likewise.
1746 * sdbout.c: Likewise.
1747 * vmsdbgout.c: Likewise.
1748 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
1749 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
1750 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
1751 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
1752 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
1753 * dwarf2out.c (dw_fde_struct): New fields
1754 dw_fde_vms_{end,begin}_prologue.
1755 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
1756 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
1757 (dwarf2out_vms_end_prologue): New function.
1758 (dwarf2out_vms_begin_epilogue): New function.
1759 (dw_val_struct): New value dw_val_class_vms_delta.
1760 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
1761 begin_epilogue for VMS.
1762 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
1763 new static functions.
1764 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
1765 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
1767 (print_die): New case dw_val_class_vms_delta.
1768 (attr_checksum): Likewise.
1769 (same_dw_val_p: Likewise.
1770 (size_of_die): Likewise.
1771 (value_format): Likewise.
1772 (output_die): Likewise.
1773 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
1774 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
1775 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
1776 dwarf2out_cfi_begin_epilogue
1777 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
1779 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
1781 * config/cris/cris-protos.h (cris_print_operand): Delete.
1782 (cris_print_operand_address): Delete.
1783 * config/cris/cris.h (PRINT_OPERAND): Delete.
1784 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1785 (PRINT_OPERAND_ADDRESS): Delete.
1786 * config/cris/cris.c (cris_print_operand_address): Make static.
1787 (cris_print_operand): Make static.
1788 (cris_print_operand_punct_valid_p): New function.
1789 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1790 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1792 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
1794 * config/arm/arm-protos.h (arm_print_operand): Delete.
1795 (arm_print_operand_address): Delete.
1796 * config/arm/arm.h (PRINT_OPERAND): Delete.
1797 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1798 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
1799 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
1800 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
1801 (arm_print_operand): Make static.
1802 (arm_print_operand_punct_valid_p): New function.
1803 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1804 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1806 2010-06-16 Nick Clifton <nickc@redhat.com>
1808 * config/rx/constraints.md (NEGint4): New constraint.
1809 * config/rx/rx.md (attr cc): Add set_zsc.
1810 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
1813 (call_internal): Clobber the cc0 register.
1814 (call_value_internal): Likewise.
1815 (cstoresi4): Likewise.
1816 (movsieq): Likewise.
1817 (movsine): Likewise.
1818 (addsi3): Add alternative to handle small negative constants.
1820 (addsi3): Do not set the O bit in the cc0 register.
1824 (andsi3): Reorder alternatives to prefer shorter forms.
1827 (negsi2): Note that the cc0 flags are set.
1828 (rotlsi3): Note that only the Z and S bits are set in cc0.
1829 (lshrsi3): Likewise.
1830 (ashlsi3): Likewise.
1831 (subsf3): Use %Q for the MEM operand.
1832 (fix_truncsfsi2): Likewise.
1833 (floatsisf2): Likewise.
1834 (bitset): Remove early clobber from destination.
1835 (bitset_in_memory): Likewise.
1836 (lrintsf2): Clobber the cc0 register.
1837 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
1838 (rx_print_operand): Handle %N.
1840 2010-06-16 Jan Hubicka <jh@suse.cz>
1842 * df-core.c (df_compact_blocks): Free problem_temps vector.
1844 2010-06-16 Martin Jambor <mjambor@suse.cz>
1846 PR tree-optimization/43905
1847 * tree-sra.c: Include tree-inline.h.
1848 (create_abstract_origin): Removed.
1849 (modify_function): Version the call graph node instead of creating
1850 abstract origins and dealing with same_body aliases.
1851 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
1852 function is versionable.
1853 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
1855 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
1857 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
1858 (CHOOSE_DYNAMIC_LINKER): Update.
1860 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
1862 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
1863 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
1864 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
1865 *prefetch_3dnow_rex.
1867 2010-06-15 Anatoly Sokolov <aesok@post.ru>
1869 * target.h (struct asm_out):Add declare_constant_name field.
1870 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
1871 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
1872 * output.h (default_asm_declare_constant_name): Declare.
1873 (assemble_label): Update prototype.
1874 * varasm.c (assemble_constant_contents): Use
1875 targetm.asm_out.declare_constant_name target hook.
1876 (assemble_label): Add 'file' argument.
1877 (default_asm_declare_constant_name): New function.
1878 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
1879 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
1880 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
1882 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
1883 * config/darwin.c (darwin_asm_declare_constant_name): New function.
1884 (machopic_output_indirection): Update assemble_label argument list.
1885 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
1886 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
1888 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
1891 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1892 size_one_node for pointer types. Do not call gmp_cst_to_tree.
1894 2010-06-15 Richard Guenther <rguenther@suse.de>
1896 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
1898 2010-06-15 Paul Brook <paul@codesourcery.com>
1900 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
1903 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
1905 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
1906 don't get a vector type for output.
1908 2010-06-15 Jakub Jelinek <jakub@redhat.com>
1911 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
1912 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
1913 (LANG_HOOKS_DECLS): Add it.
1914 * gimplify.c (omp_notice_variable): Call
1915 lang_hooks.decls.omp_report_decl.
1917 2010-06-15 Martin Jambor <mjambor@suse.cz>
1920 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
1921 on the newly dead SSA name.
1923 2010-06-15 Alan Modra <amodra@gmail.com>
1925 * doc/invoke.texi: Add mcmodel to powerpc options.
1926 * configure.ac: Add HAVE_LD_LARGE_TOC test.
1927 * configure: Regenerate.
1928 * config.in: Regenerate.
1929 * config/rs6000/linux64.opt (mcmodel): New.
1930 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
1931 (TARGET_CMODEL, SET_CMODEL): Define.
1932 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
1933 select CMODEL_MEDIUM default.
1934 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
1935 (TARGET_CMODEL): Define default.
1936 * config/rs6000/rs6000.c (cmodel): New variable.
1937 (rs6000_explicit_options): Add cmodel field.
1938 (rs6000_handle_option): Handle -mcmodel.
1939 (create_TOC_reference): Add largetoc_reg param. Generate high,
1940 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
1941 (rs6000_delegitimize_address): Recognise new toc reference rtl
1942 and minimal-toc rtl.
1943 (rs6000_legitimize_reload_address): Handle new toc references.
1944 (print_operand_address): Handle legitimate_constant_pool_address_p
1945 match before lo_sum.
1946 (rs6000_eliminate_indexed_memrefs): Tidy.
1947 (rs6000_emit_move): Tweak threshold for inlining constants.
1948 Keep rs6000_emit_allocate_stack large stack frame offsets
1949 loaded into r0 inline.
1950 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
1951 (tocrel_base, tocrel_offset): New variables.
1952 (toc_relative_expr_p): Set them here.
1953 (print_operand_address): Skip over any offset on constant pool address.
1954 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
1955 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
1956 (offsettable_ok_by_alignment): New function.
1957 (rs6000_emit_move): Address suitably aligned local symbol_refs
1958 relative to the toc pointer for -mcmodel=medium.
1959 (legitimate_constant_pool_address_p): Make param const_rtx. Add
1960 strict param. Allow lo_sum version of addressing. Verify reg
1961 used for -mminimal-toc and -mcmodel != small. Update all callers.
1962 * config/rs6000/constraints.md: Update for above change.
1963 * config/rs6000/predicates.md: Likewise.
1964 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
1966 (tls_gd): Split for -mcmodel=medium/large.
1967 (tls_gd_high, tls_gd_low): New.
1968 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
1969 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
1970 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
1971 (largetoc_high, largetoc_low): New.
1972 (cmptf_internal2): Add clobber.
1973 * config/rs6000/rs6000-protos.h: Update.
1975 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
1977 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
1978 true if no prefetch is going to be generated for a given group.
1979 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
1980 estimate the prefetch_count.
1981 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
1982 prefetch count by considering the unroll_factor and prefetch_mod
1983 for is_loop_prefetching_profitable.
1985 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
1987 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
1988 anything if the argument is not a MEM.
1990 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
1995 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
1997 (canonicalize_loop_ivs): Likewise.
1999 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
2002 * haifa-sched.c (setup_insn_reg_pressure_info,
2003 update_register_pressure): Reject debug insns.
2004 (ready_sort): Don't setup reg pressure for debug insns.
2005 (schedule_insn): Don't update reg pressure for debug insns.
2007 2010-06-14 Richard Guenther <rguenther@suse.de>
2009 * lto-streamer.c (cached_bp): Remove.
2010 (bitpack_delete): Likewise.
2011 (bitpack_create): Likewise.
2012 (bp_get_next_word): Likewise.
2013 (bp_pack_value, bp_unpack_value): Move ...
2014 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
2016 (struct bitpack_d): Likewise.
2017 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
2018 New inline functions.
2019 * lto-streamer-out.c (lto_output_bitpack): Remove.
2020 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
2021 (pack_value_fields): Adjust.
2022 (lto_write_tree): Likewise.
2023 (output_gimple_stmt): Likewise.
2024 (output_function): Likewise.
2025 * lto-streamer-in.c (input_gimple_stmt): Adjust.
2026 (input_function): Likewise.
2027 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
2028 (lto_input_bitpack): Remove.
2029 (lto_materialize_tree): Adjust.
2030 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
2031 * lto-cgraph.c (lto_output_edge): Adjust.
2032 (lto_output_node): Likewise.
2033 (lto_output_varpool_node): Likewise.
2034 (lto_output_ref): Likewise.
2035 (input_node): Likewise.
2036 (input_varpool_node): Likewise.
2037 (input_ref): Likewise.
2038 (input_edge): Likewise.
2039 (output_node_opt_summary): Likewise.
2040 (input_node_opt_summary): Likewise.
2041 * ipa-pure-const.c (pure_const_write_summary): Likewise.
2042 (pure_const_read_summary): Likewise.
2043 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
2044 (ipa_read_indirect_edge_info): Likewise.
2045 (ipa_write_node_info): Likewise.
2046 (ipa_read_node_info): Likewise.
2048 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
2051 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
2052 (vec_extract_lo_v16hi): Likewise.
2053 (vec_extract_lo_v32qi): Likewise.
2055 2010-06-14 Jakub Jelinek <jakub@redhat.com>
2058 * tree.h (build_call_expr): Don't define as vararg macro, instead
2060 * builtins.c (build_call_nofold): Remove.
2061 (expand_builtin_int_roundingfn, expand_builtin_pow,
2062 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
2063 expand_builtin_memset_args, expand_builtin_strcmp,
2064 expand_builtin_strncmp, expand_builtin_memory_chk): Use
2065 build_call_nofold_loc instead of build_call_nofold.
2066 (build_call_expr): New function.
2068 PR tree-optimization/44508
2069 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
2070 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
2071 don't eliminate trivially dead stmts.
2072 * tree-vrp.c (vrp_finalize): Pass false as last argument
2073 to substitute_and_fold.
2074 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
2075 to substitute_and_fold.
2076 * tree-ssa-ccp.c (ccp_finalize): Likewise.
2079 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
2080 * c-family/c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2081 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2082 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2083 ggc_strdup instead of xstrdup.
2085 2010-06-14 Ira Rosen <irar@il.ibm.com>
2087 PR tree-optimization/44507
2088 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
2089 to build initial vector for BIT_AND_EXPR.
2090 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2092 2010-06-14 Jakub Jelinek <jakub@redhat.com>
2094 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
2095 adjust z10prop set_attr.
2097 2010-06-13 Jan Hubicka <jh@suse.cz>
2099 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
2100 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
2101 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
2102 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
2103 datastructure checks into checking asserts.
2104 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
2105 * tree-ssa-sccvn.c (VN_INFO): Likewise.
2106 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
2107 df_ref_create_structure): Likewise.
2108 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
2109 pool_free): Use gcc_checking_assert.
2110 * alias.c (get_alias_set): Likewise.
2111 * var-tracking.c (variable_htab_free, shared_hash_copy,
2112 canonicalize_values_mark, variable_merge_over_cur): Likewise.
2113 * lto-streamer.c (bp_unpack_value): Likewise.
2115 2010-06-13 Richard Guenther <rguenther@suse.de>
2117 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
2118 Do not stream but initialize TYPE_CANONICAL to NULL.
2119 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
2120 * gimple.c (gimple_types_compatible_p): Disregard
2121 TYPE_STRUCTURAL_EQUALITY_P.
2122 (gimple_register_type): Use TYPE_CANONICAL as cache.
2123 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
2124 before registering common types.
2125 * config/i386/i386.c (ix86_function_arg_boundary): Do not
2126 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
2127 * tree.h (TYPE_CANONICAL): Clarify documentation.
2129 2010-06-13 Anatoly Sokolov <aesok@post.ru>
2131 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
2132 LIBCALL_VALUE): Remove macros.
2133 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
2134 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2135 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2136 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
2137 (ia64_function_value): Make static. Handle receiving the function
2138 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
2140 2010-06-12 Jan Hubicka <jh@suse.cz>
2142 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
2145 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
2147 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
2149 2010-06-12 Jan Hubicka <jh@suse.cz>
2151 * df-core.c (df_clear_bb_info): New function.
2152 (df_set_blocks): bb_info is always allocated.
2153 (df_get_bb_info): Use block_info_elt_size.
2154 (df_set_bb_info): Likewise.
2155 (df_compact_blocks): Update for new block_info.
2156 (grow_bb_info): New function.
2157 * df-problems.c (df_grow_bb_info): Move to df-core.c
2158 (df_rd_set_bb_info): Remove.
2159 (df_rd_free_bb_info): Do not free block pool.
2160 (df_rd_alloc): Do not create pool, use check for
2161 obstack presence instead of NULL pointer for new blocks.
2162 (df_rd_free): DO not free alloc pool; clear block_info.
2163 (problem_RD): Add size of block info structure.
2164 (df_lr_set_bb_info): Remove.
2165 (df_lr_free_bb_info): Do not free block pool.
2166 (df_lr_alloc): Do not create pool, use check for
2167 obstack presence instead of NULL pointer for new blocks.
2168 (df_lr_free): DO not free alloc pool; clear block_info.
2169 (problem_LR): Add size of block info structure.
2170 (df_live_set_bb_info): Remove.
2171 (df_live_free_bb_info): Do not free block pool.
2172 (df_live_alloc): Do not create pool, use check for
2173 obstack presence instead of NULL pointer for new blocks.
2174 (df_live_free): DO not free alloc pool; clear block_info.
2175 (problem_LIVE): Add size of block info structure.
2176 (problem_CHAIN): Add size of block info structure.
2177 (df_byte_lr_set_bb_info): Remove.
2178 (df_byte_lr_free_bb_info): Do not free block pool.
2179 (df_byte_lr_alloc): Do not create pool, use check for
2180 obstack presence instead of NULL pointer for new blocks.
2181 (df_byte_lr_free): DO not free alloc pool; clear block_info.
2182 (problem_BYTE_LR): Add size of block info structure.
2183 (problem_NOTE): Add size of block info structure.
2184 (df_byte_MD_set_bb_info): Remove.
2185 (df_byte_MD_free_bb_info): Do not free block pool.
2186 (df_byte_MD_alloc): Do not create pool, use check for
2187 obstack presence instead of NULL pointer for new blocks.
2188 (df_byte_MD_free): DO not free alloc pool; clear block_info.
2189 (problem_BD): Add size of block info structure.
2190 * df-scan.c (df_scan_free_internal): Free block pool.
2191 (df_scan_set_bb_info): Remove.
2192 (df_scan_free_bb_info): Check for artificial_defs instead
2193 of bb_info being non-NULL.
2194 (df_scan_alloc): DO not create df_scan_block pool.
2195 (problem_SCAN): Set size of block info.
2196 (df_bb_refs_record): Do not allocate bb_info.
2197 * df.h (df_problem): Add block_info_elt_size.
2198 (struct dataflow): Change block_info to void *.
2199 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
2200 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
2203 2010-06-12 Jan Hubicka <jh@suse.cz>
2205 PR tree-optimize/44485
2206 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
2207 containing use of return value of noreturn function.
2209 2010-06-12 Anatoly Sokolov <aesok@post.ru>
2211 * targhooks.c (default_function_value): Don't use
2212 FUNCTION_OUTGOING_VALUE.
2213 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
2214 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
2216 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
2218 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
2219 Add crtfastmath.o to extra_parts.
2220 * config/mips/crtfastmath.c: New.
2221 * config/mips/linux.h (ENDFILE_SPEC): New.
2223 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
2225 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
2226 old_type in parameter.
2227 (gcc_type_for_value): Update call to gcc_type_for_interval.
2228 (compute_type_for_level_1): Renamed compute_type_for_level.
2229 Update call to gcc_type_for_interval.
2231 2010-06-11 Joseph Myers <joseph@codesourcery.com>
2233 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
2234 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
2236 2010-06-11 Joseph Myers <joseph@codesourcery.com>
2238 * opts-common.c: Include options.h.
2239 (integral_argument): Move from opts.c.
2240 (decode_cmdline_option): New. Based on read_cmdline_option.
2241 * opts.c (integral_argument): Move to opts-common.c.
2242 (read_cmdline_option): Move most contents to
2243 decode_cmdline_option. Use %qs in diagnostics.
2244 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
2245 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
2246 decode_cmdline_option): New.
2248 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
2251 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
2252 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
2253 (partiysi2_cmp): Ditto.
2254 (*partiyhi2_cmp): Ditto.
2255 (*parityqi2_cmp): Remove.
2257 2010-06-11 Jan Hubicka <jh@suse.cz>
2259 * bitmap.h (bmp_iter_next_bit): New.
2260 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
2262 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
2263 Eric Botcazou <ebotcazou@adacore.com>
2265 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
2268 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
2270 * config/i386/i386.md (unspec): New define_c_enum.
2273 2010-06-10 Jakub Jelinek <jakub@redhat.com>
2275 * c-family/c-cppbuiltin.c: Include cpp-id-data.h.
2276 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2277 (lazy_hex_fp_value): New function.
2278 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2279 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
2281 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
2284 * tree-if-conv.c (bb_predicate_s): New struct.
2285 (bb_predicate_p): New.
2286 (bb_has_predicate): New.
2287 (bb_predicate): New.
2288 (set_bb_predicate): New.
2289 (bb_predicate_gimplified_stmts): New.
2290 (set_bb_predicate_gimplified_stmts): New.
2291 (add_bb_predicate_gimplified_stmts): New.
2292 (init_bb_predicate): New.
2293 (free_bb_predicate): New.
2294 (is_predicated): Use bb_predicate.
2295 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
2296 (predicate_bbs): Same. Gimplify the condition of the basic blocks
2297 before processing their successors.
2298 (clean_predicate_lists): Removed.
2299 (find_phi_replacement_condition): Use bb_predicate.
2300 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
2302 (insert_gimplified_predicates): New.
2303 (combine_blocks): Call insert_gimplified_predicates.
2304 (tree_if_conversion): Call free_bb_predicate instead of
2305 clean_predicate_lists.
2307 2010-10-11 Paul Brook <paul@codesourcery.com>
2309 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
2310 * config/arm/arm.c (all_architectures): Change v7e-m default to
2312 * config/arm/arm-cores.def: Add cortex-m4.
2313 * config/arm/arm-tune.md: Regenerate.
2315 2010-06-11 Jan Hubicka <jh@suse.cz>
2317 * ipa-pure-const.c (special_builtlin_state): New function.
2318 (check_call): Use it instead of special casign BUILT_IN_RETURN.
2319 (propagate_pure_const): Use it.
2321 2010-06-11 Jan Hubicka <jh@suse.cz>
2323 * df-problems.c (df_live_scratch): Convert to bitmap_head.
2324 (df_live_alloc): Initialize df_live_scratch when initializing
2326 (df_live_transfer_function): Update uses of df_live_scratch.
2327 (df_live_free): Free problem_data; clear df_live_scratch before
2328 releasing the obstack.
2329 (df_md_free): Free problem data.
2331 2010-06-11 Jan Hubicka <jh@suse.cz>
2333 * doc/invoke.texi (Wsuggest-attribute): Document.
2334 (Wmissing-noreturn): Remove.
2335 * ipa-pure-const.c (warn_function_noreturn): New function.
2336 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
2337 warn_missing_noreturn.
2338 * common.opt (Wsuggest-attribute=noreturn): New.
2339 * tree-flow.h (warn_function_noreturn): Declare.
2340 * tree-cfg.c (execute_warn_function_noreturn): Use
2341 warn_function_noreturn.
2342 (gate_warn_function_noreturn): New.
2343 (pass_warn_function_noreturn): Update.
2345 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2347 * c-typeck.c (handle_warn_cast_qual): Add loc
2348 parameter. Improve warning message.
2349 (build_c_cast): Pass location to handle_warn_cast_qual.
2351 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
2353 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
2354 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
2356 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
2358 2010-06-10 Dodji Seketeli <dodji@redhat.com>
2360 Fix bootstap on mips
2361 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
2364 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
2366 * system.h (helper_const_non_const_cast): New inline for
2368 (CONST_CAST2): For gcc version <= 4.0 use
2369 new helper to do const/non-const casting.
2371 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2373 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
2374 * Makefile.in (OBJS-common): Include insn-enums.o.
2375 (insn-enums.o): New rule.
2376 (simple_generated_c): Add insn-enums.c.
2377 (build/genenums.o): New rule.
2378 (genprogmd): Add "enums".
2379 * genconstants.c (print_enum_type): Declare a C string array
2381 * genenums.c: New file.
2382 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
2383 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
2384 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
2386 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2388 * doc/md.texi (define_enum_attr): Document.
2389 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
2390 * read-md.h (lookup_enum_type): Declare.
2391 * read-md.c (lookup_enum_type): New function.
2392 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
2393 * genattrtab.c (attr_desc): Add an enum_name field.
2394 (evaluate_eq_attr): Take the associated attribute as argument.
2395 Get the enum prefix from the enum_name field, if defined.
2396 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
2397 (simplify_test_exp): Pass attr to evaluate_eq_attr.
2398 (add_attr_value): New function, split out from...
2399 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
2400 (write_test_expr): Pass attr to evaluate_eq_attr.
2401 (write_attr_get): Use the enum_name as the enum tag, if defined.
2402 (write_attr_valueq): Use the enum_name as a prefix, if defined.
2403 (find_attr): Initialize enum_name.
2404 (main): Handle DEFINE_ENUM_ATTR.
2405 * gensupport.c (process_rtx): Likewise.
2406 * config/mips/mips.h (mips_tune_attr): Delete.
2407 * config/mips/mips.md (cpu): Use define_attr_enum.
2409 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2411 * doc/md.texi (define_c_enum, define_enum): Document.
2412 * read-md.h (md_constant): Add a parent_enum field.
2413 (enum_value, enum_type): New structures.
2414 (upcase_string, traverse_enum_types): Declare.
2415 * read-md.c (enum_types): New variable.
2416 (upcase_string, add_constant): New functions.
2417 (handle_constants): Don't create the hash table here.
2419 (traverse_md_constants): Don't check for a null md_constants.
2420 (decimal_string, handle_enum, traverse_enum_types): New functions.
2421 (read_md_files): Initialize md_constants and md_enums.
2422 * genconstants.c (print_md_constant): Ignore info argument.
2423 Only print constants that belong to no enum.
2424 (print_enum_type): New function.
2425 (main): Don't pass stdout to print_md_constant. Call print_enum_type
2426 for each defined enum type.
2427 * config/mips/mips.md (processor): New define_enum.
2428 (unspec): New define_c_enum.
2429 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
2430 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
2431 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
2432 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
2433 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
2434 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
2435 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
2436 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
2437 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
2438 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
2439 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
2440 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
2441 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
2442 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
2443 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
2444 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
2445 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
2446 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
2447 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
2448 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
2449 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
2450 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
2451 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
2452 (UNSPEC_RDDSP): Move to mips-dsp.md.
2453 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
2454 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
2455 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
2456 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
2457 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
2458 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
2459 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
2460 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
2461 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
2462 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
2463 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
2464 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
2465 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
2466 Moved to mips-dspr2.md.
2467 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
2468 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
2469 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
2470 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
2471 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
2472 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
2473 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
2474 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
2475 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
2476 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
2477 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
2478 UNSPEC_LOONGSON_PSADBH)
2479 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
2480 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
2481 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
2482 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
2483 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
2484 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
2485 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
2486 (cpu): Update comment.
2487 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
2488 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
2489 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
2490 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
2491 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
2492 UNSPEC_LOONGSON_PCMPEQ)
2493 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
2494 UNSPEC_LOONGSON_PINSR_0)
2495 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
2496 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
2497 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
2498 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
2499 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
2500 UNSPEC_LOONGSON_PSADBH)
2501 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
2502 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
2503 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
2504 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
2505 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
2506 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
2507 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
2508 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
2509 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
2510 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
2511 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
2512 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
2513 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
2514 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
2515 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
2516 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
2517 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
2518 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
2519 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
2520 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
2521 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
2522 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
2523 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
2524 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
2525 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
2526 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
2527 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
2528 (UNSPEC_RDDSP): Moved from mips.md.
2529 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
2530 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
2531 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
2532 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
2533 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
2534 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
2535 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
2536 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
2537 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
2538 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
2539 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
2540 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
2541 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
2542 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
2543 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
2544 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
2545 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
2546 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
2547 (UNSPEC_SCC): Moved from mips.md.
2548 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
2549 "processor_type" to "processor".
2550 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
2551 * config/mips/mips.h (processor_type): Delete.
2552 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
2553 "processor_type" to "processor".
2555 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2557 * configure.ac (tm_include_list): Add insn-constants.h.
2558 * configure: Regenerate.
2559 * Makefile.in (GTM_H): Move insn-constants.h here from...
2561 * mkconfig.sh: Remove special handling for insn-constants.h.
2563 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2565 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
2566 (BUILD_MD): ...this new variable.
2567 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
2568 that include the old contents of simple_generated_h and
2570 (simple_generated_h, simple_generated_c): Include them. Add
2572 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
2573 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
2574 Remove these dependencies from the main rule and include
2575 insn-conditions.md in the command line only if it appears
2576 in the dependency list.
2577 (insn-constants.h, s-constants): Delete.
2578 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
2580 (build/genmddeps.o): Likewise.
2581 (genprogrtl): New variable that contains everything from genprogmd
2582 except mddeps and constants.
2583 (genprogmd): Redefine in terms of genprogrtl. Make these programs
2584 depend on $(BUILD_MD)
2585 (genprog): New variable. Make these programs depend on
2587 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
2588 (main): Use read_md_files instead of init_rtx_reader_args.
2589 * genconstants.c: As for genmddeps.c.
2590 * read-md.h (read_skip_construct): Declare.
2591 * read-md.c (read_skip_construct): New function.
2592 (handle_file): Allow a null handle_directive, skipping the
2594 (parse_include): Update the comment accordingly.
2596 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2598 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
2599 * genmddeps.c: Include read-md.h.
2600 (main): Call init_rtx_reader_args instead of init_md_reader_args.
2601 * genattr.c (main): Likewise.
2602 * genattrtab.c (main): Likewise.
2603 * genautomata.c (main): Likewise.
2604 * gencodes.c (main): Likewise.
2605 * genconditions.c (main): Likewise.
2606 * genconfig.c (main): Likewise.
2607 * genconstants.c (main): Likewise.
2608 * genemit.c (main): Likewise.
2609 * genextract.c (main): Likewise.
2610 * genflags.c (main): Likewise.
2611 * genopinit.c (main): Likewise.
2612 * genoutput.c (main): Likewise.
2613 * genpeep.c (main): Likewise.
2614 * genrecog.c (main): Likewise.
2615 * genpreds.c (main): Likewise.
2616 * gensupport.h (in_fname): Move to read-md.h.
2617 (init_md_reader_args_cb): Rename to...
2618 (init_rtx_reader_args_cb): ...this and return a bool.
2619 (init_md_reader_args): Rename to...
2620 (init_rtx_reader_args): ...this and return a bool.
2621 (include_callback): Move to read-md.h.
2622 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
2623 (file_name_list, first_dir_md_include): Move to read-md.c
2624 (first_bracket_include): Delete unused variable.
2625 (last_dir_md_include): Move to read-md.c.
2626 (process_include): Delete, moving code to read-md.c:handle_include.
2627 (process_rtx): Don't handle INCLUDE.
2628 (save_string): Delete.
2629 (rtx_handle_directive): New function.
2630 (init_md_reader_args_cb): Rename to...
2631 (init_rtx_reader_args_cb): ...this and return a boolean success value.
2633 (init_md_reader_args): Rename to...
2634 (init_rtx_reader_args): ...this and return a boolean success value.
2635 * rtl.def (INCLUDE): Delete.
2636 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
2638 * read-rtl.c (read_conditions): Don't gobble ')' here.
2639 (read_mapping): Likewise.
2640 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
2641 Handle top-level non-rtx constructs here rather than in read_rtx_1.
2642 Store the whole queue in *X. Remove call to init_md_reader.
2643 (read_rtx_1): Rename to...
2644 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
2645 Don't handle top-level non-rtx constructs here. Don't handle (nil)
2647 (read_nested_rtx): New function. Handle (nil) here rather than
2649 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
2651 * read-md.h (directive_handler_t): New type.
2652 (in_fname, include_callback): Moved from read-md.h.
2653 (read_constants, init_md_reader): Delete.
2654 (read_md_files): Declare.
2655 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
2656 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
2658 (read_constants): Rename to...
2659 (handle_constants): ...this. Don't gobble ')' here.
2660 (handle_include, handle_file, handle_toplevel_file)
2661 (parse_include): New functions, mostly taken from gensupport.c.
2662 (init_md_reader): Subsume into...
2663 (read_md_files): ...this new function.
2665 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2667 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
2668 (unread_char): Decrement read_md_lineno after putting back '\n'.
2669 * read-md.c (fatal_with_file_and_line): Push back any characters
2670 that we decide not to add to the context.
2671 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
2672 fatal_expected_char in cases where '/' ends a line (for example).
2673 (read_name): Don't increment read_md_lineno here.
2674 (read_escape): Likewise.
2675 (read_quoted_string): Likewise.
2676 (read_braced_string): Likewise.
2678 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2680 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
2681 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
2682 * genconstants.c: Include read-md.h.
2683 * read-rtl.c (md_constants): Move to read-md.c.
2684 (md_name): Move to read-md.h.
2685 (initialize_iterators): Use leading_string_hash instead of def_hash
2686 and leading_string_eq_p instead of def_name_eq_p.
2687 (read_name): Move to read-md.c.
2688 (def_hash, def_name_eq_p): Delete.
2689 (read_constants, traverse_md_constants): Move to read-md.c.
2690 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
2691 * read-md.h: Include hashtab.h.
2692 (md_name): Moved from read-rtl.c.
2693 (md_constant): Moved from read-md.h.
2694 (leading_string_hash, leading_string_eq_p, read_name)
2695 (read_constants, traverse_md_constants): Declare.
2696 * read-md.c (md_constants): Moved from read-rtl.c.
2697 (leading_string_hash, leading_string_eq_p): New functions.
2698 (read_name, read_constants, traverse_md_constants): Moved from
2701 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2703 * read-rtl.c (md_name): New structure.
2704 (read_name): Take an md_name instead of a buffer pointer.
2705 Use the "string" field instead of strcpy when expanding constants.
2706 (read_constants): Remove the tmp_char argument. Update the calls
2707 to read_name, using two local name buffers instead of the tmp_char
2708 argument. Merge the constant-creation code.
2709 (read_conditions): Remove the tmp_char argument. Update the calls
2710 to read_name, using a local name buffer instead of the tmp_char
2712 (read_mapping): Replace tmp_char variable with a local name buffer.
2713 Update the calls to read_name.
2714 (read_rtx_1): Likewise. Update the calls to read_constants and
2717 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2719 * Makefile.in (build/read-md.o): Depend on errors.h.
2720 * read-md.h (error_with_line): Declare.
2721 * read-md.c: Include errors.h.
2722 (message_with_line_1): New function, extracted from...
2723 (message_with_line): ...here.
2724 (error_with_line): New function.
2725 * genattrtab.c: If a call to message_with_line is followed by
2726 "have_error = 1;", replace both statements with a call to
2728 * genoutput.c: Likewise.
2729 * genpreds.c: Likewise.
2730 * genrecog.c: If a call to message_with_line is followed by
2731 "error_count++;", replace both statements with a call to
2733 (errorcount): Delete.
2734 (main): Don't check it.
2735 * gensupport.c: If a call to message_with_line is followed by
2736 "errors = 1;", replace both statements with a call to error_with_line.
2738 (process_define_cond_exec): Check have_error instead of errors.
2739 (init_md_reader_args_cb): Likewise. Don't set errors.
2741 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2743 * read-md.h (read_md_file): Declare.
2744 (read_char, unread_char): New functions.
2745 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
2746 (read_quoted_string, read_string): Remove FILE * argument.
2747 * read-md.c (read_md_file): New variable.
2748 (read_md_filename, read_md_lineno): Update comments and remove
2749 unnecessary initialization.
2750 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
2751 (read_escape, read_quoted_string, read_braced_string, read_string):
2752 Remove FILE * argument. Update calls accordingly, using read_char
2753 and unread_char instead of getc and ungetc.
2754 * rtl.h (read_rtx): Remove FILE * argument.
2755 * read-rtl.c (iterator_group): Remove FILE * argument from
2757 (iterator_traverse_data): Remove "infile" field.
2758 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
2759 (add_mapping, read_name, read_constants, read_conditions)
2760 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
2761 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
2762 Remove file arguments from all calls, using read_char and unread_char
2763 instead of getc and ungetc.
2764 * gensupport.c (process_include): Preserve read_md_file around
2765 the include. Set read_md_file to the handle of the included file.
2766 Update call to read_rtx.
2767 (init_md_reader_args_cb): Set read_md_file to the handle of the file
2768 and remove local FILE *. Update calls to read_rtx.
2770 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2772 * read-md.h (read_rtx_lineno): Rename to...
2773 (read_md_lineno): ...this.
2774 (read_rtx_filename): Rename to...
2775 (read_md_filename): ...this.
2776 (copy_rtx_ptr_loc): Rename to...
2777 (copy_md_ptr_loc): ...this.
2778 (print_rtx_ptr_loc): Rename to...
2779 (print_md_ptr_loc): ...this.
2780 * read-md.c: Likewise. Update references after renaming.
2781 (string_obstack): Replace RTL with MD in comment.
2782 (set_rtx_ptr_loc): Rename to...
2783 (set_md_ptr_loc): ...this.
2784 (get_rtx_ptr_loc): Rename to...
2785 (get_md_ptr_loc): ...this.
2786 * genconditions.c: Update references after renaming.
2787 * genemit.c: Likewise.
2788 * genoutput.c: Likewise.
2789 * genpreds.c: Likewise.
2790 * gensupport.c: Likewise.
2791 * read-rtl.c: Likewise.
2793 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2795 * Makefile.in (READ_MD_H): New variable.
2796 (BUILD_RTL): Add build/read-md.o.
2797 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
2798 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
2799 (build/genattrtab.o, build/genconditions.o build/genemit.o)
2800 (build/genextract.o, build/genflags.o, build/genoutput.o)
2801 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
2802 (build/read-md.o): New rule.
2803 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
2804 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
2805 * coretypes.h: ...here.
2806 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
2807 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
2808 * genattr.c: Include read-md.h.
2809 * genattrtab.c: Likewise.
2810 * genconditions.c: Likewise.
2811 * genemit.c: Likewise.
2812 * genextract.c: Likewise.
2813 * genflags.c: Likewise.
2814 * genoutput.c: Likewise.
2815 * genpreds.c: Likewise.
2816 * genrecog.c: Likewise.
2817 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
2818 (join_c_conditions, print_c_condition, read_rtx_filename)
2819 (read_rtx_lineno): Move to read-md.h.
2820 * read-rtl.c: Include read-md.h.
2821 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
2822 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
2823 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
2824 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
2825 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
2826 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
2827 (read_braced_string, read_string): Move to read-md.c.
2828 (read_rtx): Move some initialization to init_md_reader and call
2829 init_md_reader here.
2830 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
2832 * gensupport.c: Include read-md.h.
2833 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
2834 * read-md.h, read-md.c: New files.
2836 2010-06-10 Anatoly Sokolov <aesok@post.ru>
2838 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2839 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2840 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
2841 * config/moxie/moxie.c (moxie_function_value): Make static.
2842 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
2843 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
2845 2010-06-10 Martin Jambor <mjambor@suse.cz>
2847 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
2848 * dbgcnt.def (tree_sra): New counter.
2849 * tree-sra.c: Include dbgcnt.h.
2850 (gate_intra_sra): Check tree_sra debug counter.
2852 2010-06-10 Martin Jambor <mjambor@suse.cz>
2854 PR tree-optimization/44258
2855 * tree-sra.c (build_access_subtree): Return false iff there is a
2857 (build_access_trees): Likewise.
2858 (analyze_all_variable_accesses): Disqualify candidates if
2859 build_access_trees returns true for them.
2861 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
2864 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
2865 tail-recurse into canonical node. Fast-forward over
2866 non-canonical VALUEs.
2868 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
2871 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
2872 (*addsi_1_zext) <TYPE_LEA>: Likewise.
2873 (add lea splitter): Likewise.
2874 (add_zext lea splitter): Likewise.
2876 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2878 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
2880 2010-06-10 Jan Hubicka <jh@suse.cz>
2882 * df-problems.c (df_live_problem_data): Add live_bitmaps.
2883 (df_live_alloc): Initialize problem data and live_osbtacks.
2884 (df_live_finalize): Remove obstack, problem data; do not
2886 (df_live_top_dump, df_live_bottom_dump): Do not dump old
2887 data when not allocated.
2888 (df_live_verify_solution_start): Do not allocate problem data.
2889 (df_live_verify_solution_end): Check if out is allocated.
2890 (struct df_md_problem_data): New structure.
2891 (df_md_alloc): Allocate problem data.
2892 (df_md_free): Free problem data; do not clear bitmaps.
2894 2010-06-10 Jan Beulich <jbeulich@novell.com>
2897 * configure.ac: Replace $() with ${} when intending to expand
2898 variables rather than invoking commands.
2899 * configure: Re-generate.
2901 2010-06-10 Jan Hubicka <jh@suse.cz>
2903 PR rtl-optimization/44460
2904 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
2905 TYPE_NEEDS_CONSTRUCTING sanity check.
2907 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2909 * doc/include/fdl.texi: Move to GFDL version 1.3.
2911 * doc/cpp.texi: Move to GFDL version 1.3.
2912 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
2913 * doc/gccint.texi: Move to GFDL version 1.3.
2914 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
2915 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
2916 * doc/invoke.texi: Move to GFDL version 1.3.
2918 2010-06-09 Jan Hubicka <jh@suse.cz>
2920 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
2922 (propagate) ... here; swap the order.
2924 2010-06-09 Jan Hubicka <jh@suse.cz>
2926 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
2927 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
2928 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
2929 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
2931 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
2933 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
2934 Do not the gather memory reference in the outer loop if the step
2937 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
2939 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
2940 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
2941 8 to 4. Minor change of the related comments.
2943 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2945 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
2946 the scev analysis when the variable is not used outside the loop
2947 in a close phi node: call compute_overall_effect_of_inner_loop.
2949 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2951 * graphite-sese-to-poly.c (single_pred_cond): Renamed
2952 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
2953 (build_sese_conditions_before): Renamed call to single_pred_cond.
2954 (build_sese_conditions_after): Same.
2956 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2958 * graphite-poly.h: Fix comments and indentation.
2959 * graphite-sese-to-poly.c: Same.
2960 (build_sese_conditions_before): Compute stmt and gbb only when needed.
2961 * tree-chrec.c: Fix comments and indentation.
2962 (tree-ssa-loop-niter.c): Same.
2964 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
2966 PR rtl-optimization/42461
2967 * dce.c (deletable_insn_p): Return true for const or pure calls again.
2968 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
2970 2010-06-09 Jan Hubicka <jh@suse.cz>
2972 * bitmap.c (bitmap_and): Walk array forward.
2973 (bitmap_and_compl_into): Likewise.
2974 (bitmap_xor): Likewise.
2975 (bitmap_xor_into): Likewise.
2976 (bitmap_equal_p): Likewise.
2977 (bitmap_intersect_p): Likewise.
2978 (bitmap_intersect_compl_p): Likewise.
2979 (bitmap_ior_and_into): Likewise.
2980 (bitmap_elt_copy): Likewise.
2981 (bitmap_and_compl): Likewise.
2982 (bitmap_elt_ior): Likewise.
2984 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
2986 * opts-common.c (prune_options): Ensure replacement argv array
2987 is correctly terminated by a NULL entry.
2989 2010-06-09 Jan Hubicka <jh@suse.cz>
2991 * cgraph.h (varpool_first_static_initializer,
2992 varpool_next_static_initializer): Make checking only when
2994 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
2995 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
2996 gcc_assert to gcc_checking_assert.
2997 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
2998 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
2999 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
3000 op_iter_init_phiuse, op_iter_init_phidef,
3001 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
3002 gcc_checking_assert.
3003 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
3004 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
3005 partition_is_global, live_on_entry, live_on_exit,
3006 live_merge_and_clear): Likewise.
3007 * system.h (gcc_checking_assert): New macro.
3008 * gimple.h (set_bb_seq): Use gcc_checking_assert.
3010 2010-06-09 Jason Merrill <jason@redhat.com>
3012 * Makefile.in (TAGS): Collect tags info from c-family.
3014 2010-06-09 Jan Hubicka <jh@suse.cz>
3016 * gimple.h (gcc_gimple_checking_assert): New macro.
3017 (gimple_set_def_ops, gimple_set_use_ops,
3018 gimple_set_vuse, gimple_set_vdef,
3019 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
3020 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
3021 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
3022 gimple_asm_output_op, gimple_asm_output_op_ptr,
3023 gimple_asm_set_output_op, gimple_asm_clobber_op,
3024 gimple_asm_set_clobber_op, gimple_asm_label_op,
3025 gimple_asm_set_label_op, gimple_try_set_kind,
3026 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
3027 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
3028 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
3029 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
3030 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
3031 gimple_omp_for_set_initial, gimple_omp_for_final,
3032 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
3033 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
3034 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
3035 conditional with ENABLE_GIMPLE_CHECKING.
3036 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
3038 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
3040 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
3041 (get_computation_cost_at): Use it.
3042 (determine_use_iv_cost_condition): Likewise.
3043 (determine_iv_cost): Likewise.
3045 2010-06-09 Richard Guenther <rguenther@suse.de>
3047 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
3050 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
3052 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
3054 2010-06-09 Martin Jambor <mjambor@suse.cz>
3056 PR tree-optimization/44423
3057 * tree-sra.c (dump_access): Dump also grp_assignment_read.
3058 (analyze_access_subtree): Pass negative allow_replacements to children
3059 if the current type is scalar.
3061 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
3064 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
3065 * doc/plugins.texi (Plugin license check): Update information
3066 on type of plugin_is_GPL_compatible.
3067 * Makefile.in (PLUGINCC): Define as $(COMPILER).
3068 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
3070 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
3072 * config/arm/arm.c (thumb2_reorg): New function.
3073 (arm_reorg): Call it.
3074 * config/arm/thumb2.md (define_peephole2 for flag clobbering
3075 arithmetic operations): Delete.
3077 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
3080 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
3083 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
3086 * gcc-plugin.h: Encapsulate all declarations in extern "C".
3088 2010-06-08 Jan Hubicka <jh@suse.cz>
3090 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
3091 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
3093 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
3095 PR tree-optimization/39874
3097 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
3099 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
3100 same_bool_result_p): New.
3101 (and_var_with_comparison, and_var_with_comparison_1,
3102 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
3103 (or_var_with_comparison, or_var_with_comparison_1,
3104 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
3105 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
3106 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
3107 of combine_comparisons.
3108 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
3110 2010-06-08 Anatoly Sokolov <aesok@post.ru>
3112 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
3113 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
3114 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
3115 pdp11_function_value_regno_p): New functions.
3116 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3117 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3119 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
3121 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
3122 Thumb-2 in the MINUS case.
3124 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3126 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
3128 * doc/gty.texi (GTY Options): Document typed GC allocation and
3129 variable_size GTY option.
3131 * ggc-internal.h: New.
3133 * ggc.h: Update copyright year.
3134 (digit_string): Move to stringpool.c.
3135 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
3136 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
3137 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
3138 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
3139 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
3140 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
3141 (ggc_force_collect, ggc_get_size, ggc_statistics)
3142 (ggc_print_common_statistics): Move to ggc-internal.h.
3143 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
3144 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
3145 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
3146 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
3147 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
3148 (ggc_alloc_zone_pass_stat): Remove.
3149 (ggc_internal_alloc_stat, ggc_internal_alloc)
3150 (ggc_internal_cleared_alloc_stat): New.
3151 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
3152 (ggc_internal_vec_alloc_stat)
3153 (ggc_internal_cleared_vec_alloc_stat)
3154 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
3155 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
3156 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
3157 (ggc_cleared_alloc_ptr_array_two_args): New.
3158 (htab_create_ggc, splay_tree_new_ggc): Redefine.
3159 (ggc_splay_alloc): Change the type of the first argument to
3161 (ggc_alloc_string): Make macro.
3162 (ggc_alloc_string_stat): New.
3163 (ggc_strdup): Redefine.
3164 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
3165 (ggc_alloc_rtvec_sized): New.
3166 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
3167 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
3168 (ggc_internal_cleared_alloc_zone_stat)
3169 (ggc_internal_zone_alloc_stat)
3170 (ggc_internal_zone_cleared_alloc_stat)
3171 (ggc_internal_zone_vec_alloc_stat)
3172 (ggc_alloc_zone_rtx_def_stat)
3173 (ggc_alloc_zone_tree_node_stat)
3174 (ggc_alloc_zone_cleared_tree_node_stat)
3175 (ggc_alloc_cleared_gimple_statement_d_stat): New.
3177 * ggc-common.c: Include ggc-internal.h.
3178 (ggc_internal_cleared_alloc_stat): Rename from
3179 ggc_alloc_cleared_stat.
3180 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
3181 (ggc_calloc): Remove.
3182 (ggc_cleared_alloc_htab_ignore_args): New.
3183 (ggc_cleared_alloc_ptr_array_two_args): New.
3184 (ggc_splay_alloc): Add obj_type parameter.
3185 (init_ggc_heuristics): Formatting fixes.
3187 * ggc-none.c: Update copyright year.
3188 (ggc_alloc_stat): Rename to ggc_alloc_stat.
3189 (ggc_alloc_cleared_stat): Rename to
3190 ggc_internal_cleared_alloc_stat.
3191 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
3193 * ggc-page.c: Update copyright year. Include ggc-internal.h.
3194 Remove references to ggc_alloc in comments.
3195 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
3196 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
3197 (new_ggc_zone, destroy_ggc_zone): Remove.
3198 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
3200 * ggc-zone.c: Include ggc-internal.h. Remove references to
3201 ggc_alloc in comments.
3202 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
3203 (ggc_internal_alloc_zone_pass_stat): New.
3204 (ggc_internal_cleared_alloc_zone_stat): New.
3205 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
3206 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
3207 (new_ggc_zone, destroy_ggc_zone): Remove.
3209 * stringpool.c: Update copyright year. Include ggc-internal.h
3210 (digit_vector): Make static.
3211 (digit_string): Moved from ggc.h.
3212 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
3213 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
3215 * Makefile.in (GGC_INTERNAL_H): New.
3216 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
3217 $(GGC_INTERNAL_H) to dependencies.
3219 * gentype.c: Update copyright year.
3220 (walk_type): Accept variable_size GTY option.
3221 (USED_BY_TYPED_GC_P): New macro.
3222 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
3223 whitespace at the end of strings.
3224 (get_type_specifier, variable_size_p): New functions.
3225 (alloc_quantity, alloc_zone): New enums.
3226 (write_typed_alloc_def): New function.
3227 (write_typed_struct_alloc_def): Likewise.
3228 (write_typed_typed_typedef_alloc_def): Likewise.
3229 (write_typed_alloc_defns): Likewise.
3230 (output_typename, write_splay_tree_allocator_def): Likewise.
3231 (write_splay_tree_allocators): Likewise.
3232 (main): Call write_typed_alloc_defns and
3233 write_splay_tree_allocators.
3235 * lto-streamer.h (lto_file_decl_data_ptr): New.
3237 * passes.c (order): Define using cgraph_node_ptr.
3239 * strinpool.c (struct string_pool_data): Declare nested_ptr using
3242 * gimple.h (union gimple_statement_d): Likewise.
3244 * rtl.h (struct rtx_def): Likewise.
3245 (struct rtvec_def): Likewise.
3247 * tree.h (union tree_node): Likewise.
3249 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
3251 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
3253 * tree-scalar-evolution.c (scev_initialize): Likewise.
3255 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
3257 * dwarf2asm.c (dw2_force_const_mem): Likewise.
3259 * omp-low.c (lower_omp_critical): Likewise.
3261 * bitmap.h (struct bitmap_head_def): Update comment to not
3262 reference ggc_alloc.
3264 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
3266 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
3268 * ipa-prop.c (duplicate_ggc_array): Rename to
3269 duplicate_ipa_jump_func_array. Use typed GC allocation.
3270 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
3272 * gimple.c (gimple_alloc_stat): Use
3273 ggc_alloc_cleared_gimple_statement_d_stat.
3275 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
3277 * tree.c (make_node_stat): Use
3278 ggc_alloc_zone_cleared_tree_node_stat.
3279 (make_tree_vec_stat): Likewise.
3280 (build_vl_exp_stat): Likewise.
3281 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
3282 (make_tree_binfo_stat): Likewise.
3283 (tree_cons_stat): Likewise.
3285 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
3286 (shallow_copy_rtx_stat): Likewise.
3287 (make_node_stat): Likewise.
3289 * lto-symtab.c: Fix comment.
3291 * tree-cfg.c (create_bb): Update comment to not reference
3293 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
3295 * varpool.c (varpool_node): Use typed GC allocation.
3296 (varpool_extra_name_alias): Likewise.
3298 * varasm.c (emutls_decl): Likewise.
3299 (get_unnamed_section): Likewise.
3300 (get_noswitch_section): Likewise.
3301 (get_section): Likewise.
3302 (get_block_for_section): Likewise.
3303 (build_constant_desc): Likewise.
3304 (create_constant_pool): Likewise.
3305 (force_const_mem): Likewise.
3307 * tree.c (build_vl_exp_stat): Likewise.
3308 (build_real): Likewise.
3309 (build_string): Likewise.
3310 (decl_debug_expr_insert): Likewise.
3311 (decl_value_expr_insert): Likewise.
3312 (type_hash_add): Likewise.
3313 (build_omp_clause): Likewise.
3315 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
3317 * tree-ssa.c (init_tree_ssa): Likewise.
3319 * tree-ssa-structalias.c (heapvar_insert): Likewise.
3321 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
3323 * tree-ssa-loop-niter.c (record_estimate): Likewise.
3325 * tree-ssa-alias.c (get_ptr_info): Likewise.
3327 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
3329 * tree-phinodes.c (allocate_phi_node): Likewise.
3331 * tree-iterator.c (tsi_link_before): Likewise.
3332 (tsi_link_after): Likewise.
3334 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
3336 * tree-dfa.c (create_var_ann): Likewise.
3338 * tree-cfg.c (create_bb): Likewise.
3340 * toplev.c (alloc_for_identifier_to_locale): Likewise.
3341 (general_init): Likewise.
3343 * stringpool.c (stringpool_ggc_alloc): Likewise.
3344 (gt_pch_save_stringpool): Likewise.
3346 * sese.c (if_region_set_false_region): Likewise.
3348 * passes.c (do_per_function_toporder): Likewise.
3350 * optabs.c (set_optab_libfunc): Likewise.
3351 (set_conv_libfunc): Likewise.
3353 * lto-symtab.c (lto_symtab_register_decl): Likewise.
3355 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
3356 (input_eh_region): Likewise.
3357 (input_eh_lp): Likewise.
3358 (make_new_block): Likewise.
3359 (unpack_ts_real_cst_value_fields): Likewise.
3361 * lto-section-in.c (lto_new_in_decl_state): Likewise.
3363 * lto-cgraph.c (input_node_opt_summary): Likewise.
3365 * loop-init.c (loop_optimizer_init): Likewise.
3367 * lambda.h (lambda_vector_new): Likewise.
3369 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
3371 * ira.c (update_equiv_regs): Likewise.
3373 * ipa.c (cgraph_node_set_new): Likewise.
3374 (cgraph_node_set_add): Likewise.
3375 (varpool_node_set_new): Likewise.
3376 (varpool_node_set_add): Likewise.
3378 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
3379 (duplicate_ipa_jump_func_array): Likewise.
3380 (ipa_read_node_info): Likewise.
3382 * ipa-cp.c (ipcp_create_replace_map): Likewise.
3384 * integrate.c (get_hard_reg_initial_val): Likewise.
3386 * gimple.c (gimple_alloc_stat): Likewise.
3387 (gimple_build_omp_for): Likewise.
3388 (gimple_seq_alloc): Likewise.
3389 (gimple_copy): Likewise.
3391 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
3392 (gsi_insert_after_without_update): Likewise.
3394 * function.c (add_frame_space): Likewise.
3395 (insert_temp_slot_address): Likewise.
3396 (assign_stack_temp_for_type): Likewise.
3397 (allocate_struct_function): Likewise.
3398 (types_used_by_var_decl_insert): Likewise.
3400 * except.c (init_eh_for_function): Likewise.
3401 (gen_eh_region): Likewise.
3402 (gen_eh_region_catch): Likewise.
3403 (gen_eh_landing_pad): Likewise.
3404 (add_call_site): Likewise.
3406 * emit-rtl.c (get_mem_attrs): Likewise.
3407 (get_reg_attrs): Likewise.
3408 (start_sequence): Likewise.
3409 (init_emit): Likewise.
3411 * dwarf2out.c (new_cfi): Likewise.
3412 (queue_reg_save): Likewise.
3413 (dwarf2out_frame_init): Likewise.
3414 (new_loc_descr): Likewise.
3415 (find_AT_string): Likewise.
3416 (new_die): Likewise.
3417 (add_var_loc_to_decl): Likewise.
3418 (clone_die): Likewise.
3419 (clone_as_declaration): Likewise.
3420 (break_out_comdat_types): Likewise.
3421 (new_loc_list): Likewise.
3422 (loc_descriptor): Likewise.
3423 (add_loc_descr_to_each): Likewise.
3424 (add_const_value_attribute): Likewise.
3425 (tree_add_const_value_attribute): Likewise.
3426 (add_comp_dir_attribute): Likewise.
3427 (add_name_and_src_coords_attributes): Likewise.
3428 (lookup_filename): Likewise.
3429 (store_vcall_insn): Likewise.
3430 (dwarf2out_init): Likewise.
3432 * dbxout.c (dbxout_init): Likewise.
3434 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3436 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
3438 * config/score/score7.c (score7_output_external): Likewise.
3440 * config/score/score3.c (score3_output_external): Likewise.
3442 * config/s390/s390.c (s390_init_machine_status): Likewise.
3444 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
3445 (rs6000_init_machine_status): Likewise.
3446 (output_toc): Likewise.
3448 * config/pa/pa.c (pa_init_machine_status): Likewise.
3449 (get_deferred_plabel): Likewise.
3451 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
3453 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
3455 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
3457 * config/mep/mep.c (mep_init_machine_status): Likewise.
3458 (mep_note_pragma_flag): Likewise.
3460 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
3462 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
3464 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
3466 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
3467 (i386_pe_maybe_record_exported_symbol): Likewise.
3469 * config/i386/i386.c (get_dllimport_decl): Likewise.
3470 (ix86_init_machine_status): Likewise.
3471 (assign_386_stack_local): Likewise.
3473 * config/frv/frv.c (frv_init_machine_status): Likewise.
3475 * config/darwin.c (machopic_indirection_name): Likewise.
3477 * config/cris/cris.c (cris_init_machine_status): Likewise.
3479 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
3481 * config/avr/avr.c (avr_init_machine_status): Likewise.
3483 * config/arm/arm.c (arm_init_machine_status): Likewise.
3485 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
3486 (alpha_need_linkage): Likewise.
3487 (alpha_use_linkage): Likewise.
3489 * cgraph.c (cgraph_allocate_node): Likewise.
3490 (cgraph_create_edge_1): Likewise.
3491 (cgraph_create_indirect_edge): Likewise.
3492 (cgraph_add_asm_node): Likewise.
3494 * cfgrtl.c (init_rtl_bb_info): Likewise.
3496 * cfgloop.c (alloc_loop): Likewise.
3497 (rescan_loop_exit): Likewise.
3499 * cfg.c (init_flow): Likewise.
3500 (alloc_block): Likewise.
3501 (unchecked_make_edge): Likewise.
3503 * c-parser.c (c_parse_init): Likewise.
3504 (c_parse_file): Likewise.
3506 * c-decl.c (bind): Likewise.
3507 (record_inline_static): Likewise.
3508 (push_scope): Likewise.
3509 (make_label): Likewise.
3510 (lookup_label_for_goto): Likewise.
3511 (finish_struct): Likewise.
3512 (finish_enum): Likewise.
3513 (c_push_function_context): Likewise.
3515 * bitmap.c (bitmap_element_allocate): Likewise.
3516 (bitmap_gc_alloc_stat): Likewise.
3518 * alias.c (record_alias_subset): Likewise.
3519 (init_alias_analysis): Likewise.
3521 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
3523 * fold-const.c (fold_comparison): Remove redundant parenthesis.
3524 * tree-inline.c (expand_call_inline): Pass translated return value of
3525 cgraph_inline_failed_string to diagnostic function.
3527 2010-06-08 Andrew Pinski <pinskia@gmail.com>
3528 Shujing Zhao <pearly.zhao@oracle.com>
3531 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
3532 implicit bad conversions is initialization.
3533 (error_init): Use gmsgid instead of msgid for argument name and change
3535 (pedwarn_init): Use gmsgid instead of msgid for argument name and
3536 change the call for pedwarn.
3537 (warning_init): Use gmsgid instead of msgid for argument name and
3538 change the call for warning.
3540 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
3542 * config/mips/mips-protos.h (mips_print_operand): Delete.
3543 (mips_print_operand_address): Delete.
3544 * config/mips/mips.h (mips_print_operand_punct): Delete.
3545 (PRINT_OPERAND): Delete.
3546 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3547 (PRINT_OPERAND_ADDRESS): Delete.
3548 * config/mips/mips.c (mips_print_operand_punct): Make static.
3549 (mips_print_operand_address): Make static.
3550 (mips_print_operand): Make static. Call
3551 mips_print_operand_punct_valid_p.
3552 (mips_print_operand_punct_valid_p): New function.
3553 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3554 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3556 2010-06-07 Jan Hubicka <jh@suse.cz>
3559 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
3562 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
3564 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
3567 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3569 * doc/sourcebuild.texi (Effective-Target Keywords, Other
3570 attributes): Document gas.
3572 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
3574 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
3575 <TYPE_LEA>: Split instruction.
3576 <default>: Remove alternative 2 handling.
3577 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
3578 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
3579 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
3581 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
3582 (ashift_zext lea splitter): Use DImode for multiplication.
3584 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
3585 to generate addition.
3587 2010-06-07 Joseph Myers <joseph@codesourcery.com>
3589 * common.opt (fira-verbose): Use Var.
3590 (fpcc-struct-return): Use Init instead of VarExists.
3591 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
3593 * flags.h (flag_signed_char, flag_short_enums,
3594 flag_pcc_struct_return, flag_ira_verbose,
3595 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
3596 * toplev.c (flag_detailed_statistics, flag_signed_char,
3597 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
3598 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
3599 * toplev.h (flag_crossjumping, flag_if_conversion,
3600 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
3601 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
3602 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
3603 flag_cprop_registers, time_report, flag_ira_loop_pressure,
3604 flag_ira_coalesce, flag_ira_move_spills,
3605 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
3607 2010-06-07 Jan Hubicka <jh@suse.cz>
3609 * df-core.c (df_analyze_problem): Do verification after allocation.
3611 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
3612 (df_lr_alloc): Initialize problem data; move bitmaps to
3614 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
3615 (df_lr_verify_solution_start): Do not initialize problem data;
3616 allocate bitmaps in lr_bitmaps.
3617 (df_lr_verify_solution_end): Do not free problem data.
3619 2010-06-07 Jan Hubicka <jh@suse.cz>
3621 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
3622 if caller is noreturn.
3623 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
3624 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
3625 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
3626 * ipa-pure-const.c (check_decl): Add IPA parameter.
3627 (state_from_flags): New function.
3628 (better_state, worse_state): New functions.
3629 (check_call): When in IPA mode, do not care about callees.
3630 (check_load, check_store): Update.
3631 (check_ipa_load, check_ipa_store): New.
3632 (check_stmt): When in IPA mode, use IPA checkers.
3633 (analyze_function): Use state_from_flags.
3634 (propagate): Check indirect edges and references.
3636 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
3638 PR rtl-optimization/44404
3639 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
3640 of count_occurrences to see if it's safe to modify mem_insn.
3642 2010-06-07 Richard Guenther <rguenther@suse.de>
3644 * gimplify.c (gimplify_cleanup_point_expr): For empty body
3645 and EH-only cleanup drop the cleanup instead of inserting it
3648 2010-06-07 Ira Rosen <irar@il.ibm.com>
3650 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
3652 * targhooks.c (default_builtin_vectorization_cost): New function.
3653 * targhooks.h (default_builtin_vectorization_cost): Declare.
3654 * target.h (enum vect_cost_for_stmt): Define.
3655 (builtin_vectorization_cost): Change argument and comment.
3656 * tree-vectorizer.h: Remove cost model macros.
3657 * tree-vect-loop.c: Include target.h.
3658 (vect_get_cost): New function.
3659 (vect_estimate_min_profitable_iters): Replace cost model macros with
3660 calls to vect_get_cost.
3661 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
3662 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
3663 default implementation.
3664 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
3665 calls to target hook builtin_vectorization_cost.
3666 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
3668 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
3669 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
3670 implementation to return costs.
3671 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
3672 * config/spu/spu.h: Remove vectorizer cost model macros.
3673 * config/i386/i386.h: Likewise.
3674 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
3675 a call to target hook builtin_vectorization_cost.
3677 2010-06-06 Sriraman Tallam <tmsriram@google.com>
3680 * config/i386/i386.c (override_options): Turn zee pass on for level 2
3681 and above and defer till target is known.
3682 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
3685 2010-05-25 Jan Hubicka <jh@suse.cz>
3687 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
3688 (df_compact_blocks): Likewise.
3689 * df.h (struct df): Turn hardware_regs_used,
3690 regular_block_artificial_uses, eh_block_artificial_uses,
3691 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
3693 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
3694 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
3695 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
3696 df_scan_blocks, df_insn_delete, df_insn_rescan,
3697 df_insn_rescan_debug_internal, df_insn_rescan_all,
3698 df_process_deferred_rescans, df_process_deferred_rescans,
3699 df_notes_rescan, df_get_call_refs, df_get_call_refs,
3700 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
3701 df_record_entry_block_defs, df_record_exit_block_uses,
3702 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
3703 df_scan_verify): Update.
3705 2010-05-25 Dodji Seketeli <dodji@redhat.com>
3708 * c-common.c (is_typedef_decl): Move this definition ...
3709 * tree.c (is_typedef_decl): ... here.
3710 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
3711 * c-common.h (is_typedef_decl): Move this declaration ...
3712 * tree.h (is_typedef_decl): ... here.
3713 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
3714 * dwarf2out.c (is_naming_typedef_decl): New function.
3715 (gen_tagged_type_die): Split out of ...
3716 (gen_type_die_with_usage): ... this function. When an anonymous
3717 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
3718 is emitted for the typedef.
3719 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
3720 anonymous tagged types.
3722 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
3725 * c-decl.c (grokdeclarator): Delete warning.
3727 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
3729 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
3730 newly built CALL_EXPR.
3731 * tree-profile.c (tree_profiling): Don't profile functions produced
3734 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
3738 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
3739 endianness-independent.
3741 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3743 * c-common.c: Move to c-family/.
3744 * c-common.def: Likewise.
3745 * c-common.h: Likewise.
3746 * c-cppbuiltin.c: Likewise.
3747 * c-dump.c: Likewise.
3748 * c-format.c: Likewise.
3749 * c-format.h : Likewise.
3750 * c-gimplify.c: Likewise.
3751 * c-lex.c: Likewise.
3752 * c-omp.c: Likewise.
3754 * c-opts.c: Likewise.
3755 * c-pch.c: Likewise.
3756 * c-ppoutput.c: Likewise.
3757 * c-pragma.c: Likewise.
3758 * c-pragma.h: Likewise.
3759 * c-pretty-print.c: Likewise.
3760 * c-pretty-print.h: Likewise.
3761 * c-semantics.c: Likewise.
3762 * stub-objc.c: Likewise.
3764 * gengtype.c (get_file_langdir): Special-case files in c-family/.
3765 (get_output_file_with_visibility): Fix name for c-common.h.
3766 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
3768 * c-tree.h: Update include path for moved files.
3769 * c-lang.c: Likewise.
3770 * c-lang.h: Likewise.
3771 * c-parser.c: Likewise.
3772 * c-convert.c: Likewise.
3773 * c-decl.c: Likewise.
3774 * c-objc-common.c: Likewise.
3775 * configure.ac: Make sure c-family/ exists in the build directory.
3776 * configure: Regenerate.
3777 * Makefile.in: Update paths for moved files. Regroup files per
3778 location and update dependencies. Move generated_files down after
3781 * config/spu/spu-c.c: Update paths for moved files.
3782 * config/mep/mep-pragma.c: Likewise.
3783 * config/darwin-c.c: Likewise.
3784 * config/i386/msformat-c.c: Likewise.
3785 * config/i386/i386-c.c: Likewise.
3786 * config/avr/avr-c.c: Likewise.
3787 * config/sol2-c.c: Likewise.
3788 * config/ia64/ia64-c.c: Likewise.
3789 * config/rs6000/rs6000-c.c: Likewise.
3790 * config/arm/arm.c: Likewise.
3791 * config/arm/arm-c.c: Likewise.
3792 * config/h8300/h8300.c: Likewise.
3793 * config/v850/v850-c.c: Likewise.
3795 * config/t-darwin: Fix dependencies for moved files.
3796 * config/t-sol2: Fix dependencies for moved files.
3797 * config/mep/t-mep: Fix dependencies for moved files.
3798 * config/ia64/t-ia64: Fix dependencies for moved files.
3799 * config/rs6000/t-rs6000: Fix dependencies for moved files.
3800 * config/v850/t-v850: Fix dependencies for moved files.
3801 * config/v850/t-v850e: Fix dependencies for moved files.
3803 * config/m32c/m32c-pragma.c
3805 * po/exgettext: Look in c-family/ also.
3807 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
3809 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
3810 (mark_control_dependent_edges_necessary): Call it instead of marking
3811 the last statement manually.
3812 (propagate_necessity): Likewise.
3814 2010-06-05 Jan Hubicka <jh@suse.cz>
3816 * basic-block.h (compute_dominance_frontiers): Updated.
3817 (compute_idf): Likewise.
3819 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
3820 for dominance frontiers.
3821 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
3822 (insert_updated_phi_nodes_for): Likewise.
3823 (update_ssa): Likewise.
3824 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3825 (compute_dominance_frontiers): Likewise.
3826 (compute_idf): Likewise.
3827 * df-problems.c (df_md_local_compute): Likewise.
3829 2010-06-05 Anatoly Sokolov <aesok@post.ru>
3831 * target.h (struct gcc_target): Add memory_move_cost field.
3832 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
3833 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
3834 * targhooks.c (default_memory_move_cost): New function.
3835 * targhooks.h (default_memory_move_cost): Declare function.
3836 * reload.h (memory_move_cost): Declare.
3837 (memory_move_secondary_cost): Change type of 'in' argument to bool.
3838 * reginfo.c (memory_move_cost): New function.
3839 (memory_move_secondary_cost): Change type of 'in' argument to bool.
3840 * ira.h (ira_memory_move_cost): Update comment.
3841 * ira.c: (ira_memory_move_cost): Update comment.
3842 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
3843 with memory_move_cost.
3844 * postreload.c (reload_cse_simplify_set): (Ditto.).
3845 * reload1.c (choose_reload_regs): (Ditto.).
3846 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
3847 (MEMORY_MOVE_COST): Revise documentation.
3849 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
3850 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
3851 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
3852 type of 'in' argument to bool.
3853 (TARGET_MEMORY_MOVE_COST): Define.
3855 2010-06-05 Jan Hubicka <jh@suse.cz>
3857 * ipa-pure-const.c (propagate): Fix typo in handling of functions
3858 that cannot return. Be more careful when merging the results with
3859 previously known ones.
3861 2010-06-05 Matthias Klose <doko@ubuntu.com>
3863 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
3864 function to add the -iplugindir option.
3865 (find_plugindir_spec_function): Add new declaration and function.
3866 (static_spec_func): Use it for "find-plugindir".
3868 2010-06-05 Jakub Jelinek <jakub@redhat.com>
3871 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
3872 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
3873 statement expression.
3875 2010-06-05 Jan Hubicka <jh@suse.cz>
3877 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
3878 (df_rd_problem_data): Convert sparse_invalidated_by_call,
3879 dense_invalidated_by_call to bitmap head.
3880 (df_rd_alloc, df_rd_bb_local_compute_process_def,
3881 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
3882 df_rd_start_dump, df_lr_verify_transfer_functions,
3883 df_live_verify_transfer_functions, df_chain_create_bb,
3884 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
3885 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
3886 df_simulate_one_insn_forwards, df_md_alloc,
3887 df_md_bb_local_compute_process_def,
3888 df_md_bb_local_compute_process_def, df_md_local_compute,
3889 df_md_transfer_function df_md_free): Update.
3891 2010-06-05 Joseph Myers <joseph@codesourcery.com>
3894 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
3895 target type for ADDR_EXPR; require no changes to qualifiers except
3897 * c-tree.h (c_build_type_variant): Remove.
3899 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
3901 * genautomata.c (get_excl_set): Do work per element, not per char.
3902 (check_presence_pattern_sets): Similar.
3903 (check_absence_pattern_sets): Similar.
3905 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
3907 * genautomata.c (curr_state_pass_num): Delete.
3908 (min_issue_delay_pass_states): Delete.
3909 (min_issue_delay): Delete.
3910 (initiate_min_issue_delay_pass_states): Delete.
3911 (output_min_issue_delay_table): Compute min_issue_delay_vect
3912 using a breadth-first search variant.
3913 (output_tables): Don't call initiate_min_issue_delay_pass_states.
3915 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
3918 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
3919 (df_byte_lr_bb_local_compute): Likewise.
3921 2010-06-03 Jason Merrill <jason@redhat.com>
3923 Implement noexcept operator (5.3.7)
3924 * c-common.c (c_common_reswords): Add noexcept.
3925 * c-common.h (enum rid): Add RID_NOEXCEPT.
3927 2010-06-04 Joseph Myers <joseph@codesourcery.com>
3929 * config/darwin-driver.c (darwin_default_min_version): Use
3930 GCC-specific formats in diagnostics.
3931 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
3933 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
3934 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
3935 eval_spec_function, handle_braces, process_brace_body, main,
3936 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
3937 getenv_spec_function, compare_version_strings,
3938 version_compare_spec_function): Use GCC-specific formats in
3941 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3943 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
3944 that operand 0 and operand 1 are equal.
3945 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
3946 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
3947 and operand 1 are equal.
3948 <default>: Ditto. Remove ??? comment.
3949 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
3950 and operand 1 are equal.
3951 <default>: Ditto. Remove ??? comment.
3952 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
3954 (*add<mode>_4) <default>: Ditto.
3955 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
3957 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
3959 * config/i386/i386-protos.h (ix86_print_operand): Declare.
3960 * config/i386/i386.c (ix86_print_operand): Make non-static.
3961 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
3962 * output.h (output_operand): Declare.
3963 * final.c (output_operand): Make non-static.
3965 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
3967 PR rtl-optimization/44013
3968 * sched-deps.c (add_dependence_list_and_free): Don't free lists
3969 when processing debug insns.
3972 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
3973 recursing. Check that recursion is bounded. Rename inner var
3974 to avoid hiding incoming argument.
3976 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3978 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
3983 (*addqi_ext_1_rex64): Ditto.
3984 (*addqi_ext_1): Ditto.
3986 (*addqi_4): Check for incdec_operand in QImode.
3988 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
3989 using SWI mode iterator.
3990 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
3991 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
3993 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
3994 using SWI mode iterator.
3996 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3999 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
4000 * c-format.c (gcc_diag_flag_specs): Add hash.
4001 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
4002 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
4003 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
4004 pp_c_cv_qualifiers. Handle qualifiers spelling here.
4005 (pp_c_type_qualifier_list): Call the function above.
4006 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
4007 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
4008 (WARN_FOR_QUALIFIERS): New macro.
4009 (convert_for_assignment): Use it.
4011 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
4013 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
4015 2010-06-04 Jan Hubicka <jh@suse.cz>
4017 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
4018 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
4019 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
4020 DF_BYTE_LR_OUT): Update for embedded bitmaps.
4021 * fwprop.c (single_def_use_enter_block): Likewise.
4022 * ddg.c (create_ddg_dep_from_intra_loop_link,
4023 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
4024 * loop-iv.c (latch_dominating_def): Likewise.
4025 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
4026 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
4027 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
4028 df_rd_transfer_function, df_rd_top_dump,
4029 df_rd_bottom_dump): Update.
4030 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
4031 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
4032 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
4033 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
4034 df_lr_verify_solution_start, df_lr_verify_solution_end,
4035 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
4036 df_live_free_bb_info, df_live_alloc, df_live_reset,
4037 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
4038 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
4039 df_live_verify_solution_start, df_live_verify_solution_end,
4040 df_live_verify_transfer_functions, df_chain_create_bb,
4041 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
4042 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
4043 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
4044 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
4045 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
4046 df_byte_lr_transfer_function, df_byte_lr_top_dump,
4047 df_byte_lr_bottom_dump, df_create_unused_note,
4048 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
4049 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
4050 df_md_transfer_function, df_md_init, df_md_confluence_0,
4052 df_md_top_dump, df_md_bottom_dump): Update.
4053 (struct df_lr_problem_data): Embedd bitmap headers.
4055 2010-06-04 Jan Hubicka <jh@suse.cz>
4057 * dce.c (dce_process_block): Do not re-scan already marked
4060 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
4062 PR rtl-optimization/39871
4063 PR rtl-optimization/40615
4064 PR rtl-optimization/42500
4065 PR rtl-optimization/42502
4066 * ira.c (init_reg_equiv_memory_loc: New function.
4067 (ira): Call it twice.
4068 * reload.h (calculate_elim_costs_all_insns): Declare.
4069 * ira-costs.c: Include "reload.h".
4070 (regno_equiv_gains): New static variable.
4071 (init_costs): Allocate it.
4072 (finish_costs): Free it.
4073 (ira_costs): Call calculate_elim_costs_all_insns.
4074 (find_costs_and_classes): Take estimated elimination costs
4076 (ira_adjust_equiv_reg_cost): New function.
4077 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
4078 * reload1.c (init_eliminable_invariants, free_reg_equiv,
4079 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
4080 (elim_bb): New static variable.
4081 (reload): Move code out of here into init_eliminable_invariants and
4082 free_reg_equiv. Call them.
4083 (calculate_elim_costs_all_insns): New function.
4084 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
4085 all callers changed. If FOR_COSTS is true, don't call alter_reg,
4086 but call note_reg_elim_costly if we turned a valid memory address
4087 into an invalid one.
4088 * Makefile.in (ira-costs.o): Depend on reload.h.
4090 2010-06-04 Julian Brown <julian@codesourcery.com>
4092 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
4095 2010-06-04 Richard Guenther <rguenther@suse.de>
4098 * cgraph.h (struct varpool_node): Add lto_file_data field.
4099 * lto-cgraph.c (input_varpool_node): Initialize it.
4101 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
4103 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
4104 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
4105 predicate in "type" attribute calculation.
4106 (*addsi_1_zext): Ditto.
4107 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
4108 (*addsi_2_zext): Ditto.
4109 (*add<mode>_3): Ditto.
4110 (*addsi_3_zext): Ditto.
4111 (*add<mode>_5): Ditto.
4113 2010-06-03 Jan Hubicka <jh@suse.cz>
4115 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
4117 * cfganal.c (compute_dominance_frontiers_1): Likewise.
4119 2010-06-03 Jan Hubicka <jh@suse.cz>
4121 * df-problems.c (df_create_unused_note, df_note_bb_compute):
4122 micro-optimize the checks when to add new note.
4124 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
4126 * final.c (output_asm_insn): Call
4127 targetm.asm_out.print_operand_punct_valid_p. Update comments.
4128 (output_operand): Call targetm.asm_out.print_operand. Update comments.
4129 (output_address): Call targetm.asm_out.print_operand_address.
4131 * target.h (struct gcc_target): Add print_operand,
4132 print_operand_address, and print_operand_punct_valid_p fields.
4133 * targhooks.h (default_print_operand): Declare.
4134 (default_print_operand_address): Declare.
4135 (default_print_operand_punct_valid_p): Declare.
4136 * targhooks.c (default_print_operand): Define.
4137 (default_print_operand_address): Define.
4138 (default_print_operand_punct_valid_p): Define.
4139 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
4140 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
4141 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
4142 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
4143 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
4144 * vmsdbgout.c (addr_const_to_string): Update comment.
4145 * config/i386/i386.c (print_operand): Rename to...
4146 (ix86_print_operand): ...this. Make static.
4147 (print_operand_address): Rename to...
4148 (ix86_print_operand_address): ...this. Make static. Call
4149 ix86_print_operand instead of PRINT_OPERAND.
4150 (ix86_print_operand_punct_valid_p): New function.
4151 (TARGET_PRINT_OPERAND): Define.
4152 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4153 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4154 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
4155 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4156 (PRINT_OPERAND): Delete.
4157 (PRINT_OPERAND_ADDRESS): Delete.
4158 * config/i386/i386-protos.h (print_operand): Delete prototype.
4159 (print_operand_address): Delete prototype.
4161 2010-06-03 Richard Guenther <rguenther@suse.de>
4163 PR tree-optimization/44403
4164 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4165 Preserve pointer qualifiers.
4166 (vect_create_data_ref_ptr): Likewise.
4168 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
4171 * defaults.h (MAX_FIXED_MODE_SIZE): New.
4173 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
4175 2010-06-03 Jakub Jelinek <jakub@redhat.com>
4178 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
4179 return false if merging the bbs would lead to goto_locus
4180 location being lost from the IL.
4182 2010-06-03 Jan Hubicka <jh@suse.cz>
4183 Jakub Jelinek <jakub@redhat.com>
4185 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
4186 set->regs[i] is NULL or has just one entry.
4188 2010-06-03 Jan Hubicka <jh@suse.cz>
4190 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
4191 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
4193 2010-06-03 Paul Brook <paul@codesourcery.com>
4195 * config/arm/arm.c (FL_TUNE): Define.
4196 (arm_default_cpu, arm_cpu_select): Remove.
4197 (all_cores): Populate core field.
4198 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
4199 (arm_find_cpu): New function.
4200 (arm_handle_option): Lookup cpu/architecture names.
4201 (arm_override_options): Cleanup mcpu/march/mtune handling.
4202 (arm_file_start): Ditto.
4204 2010-06-03 Alan Modra <amodra@gmail.com>
4207 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
4208 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
4209 rtx to gen_load_toc_v4_PIC_1b. Tidy.
4210 (rs6000_emit_load_toc_table): Likewise.
4212 2010-06-02 Jan Hubicka <jh@suse.cz>
4214 * passes.c (init_optimization_passes): Put ipa reference
4215 after ipa pure-const.
4217 2010-06-02 Jan Hubicka <jh@suse.cz>
4219 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
4220 calls_read_all and calls_write_all.
4221 (get_reference_optimization_summary): Fix formatting.
4222 (is_proper_for_analysis): Check that decl is not readonly.
4223 (propagate_bits): Check CONST/PURE/noreturn flags.
4224 (ipa_init): Move all_module_statics to optimization_summary_obstack.
4225 (analyze_function): Ignore indirect edges.
4226 (copy_global_bitmap): For all module statics, do nothing.
4227 (generate_summary): Do not print calls_read_all/calls_write_all.
4228 (read_write_all_from_decl): Take node as argument; check
4229 cgraph_node_cannot_return.
4230 (propagate): Reorganize read_all/write_all computation;
4231 check indirect edges; check ecf flags; use all_module_statics
4232 in the results; do not free all_module_statics.
4233 (stream_out_bitmap): Handle all_module_statics.
4234 (ipa_reference_write_optimization_summary): Likewise; use
4235 varpool/cgraph encoders to get boundaries.
4236 (ipa_reference_read_optimization_summary): Read in all_module_statics;
4237 use it when possible.
4239 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
4242 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
4243 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
4245 * doc/extend.texi (powerpc builtins): Document vec_recip,
4246 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
4248 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
4249 (rs6000_emit_swrsqrt): Ditto.
4250 (rs6000_emit_swdivsf): Delete.
4251 (rs6000_emit_swdivdf): Ditto.
4252 (rs6000_emit_swrsqrtsf): Ditto.
4254 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
4255 describe the reciprocal estimate support for each type.
4256 (recip_options): Map -mrecip=<opt> into option bits.
4257 (gen_2arg_fn_t): New typedef for binary rtx gen function.
4258 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
4259 reciprocal estimate instructions.
4260 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
4261 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
4262 Set up rs6000_recip_bits based on the -mrecip* options. Print the
4263 cost information if -mdebug=cost or -mdebug=reg.
4264 (rs6000_override_options): Set -mrecip-precision for power6, and
4265 power7 machines. If -mvsx or -mdfp, enable various options that
4266 came in previous instruction set ISAs, unless the option was
4267 explicitly disabled by the command line option. Parse
4268 -mrecip=<opt> options.
4269 (rs6000_builtin_vectorized_function): Add support for vectorizing
4270 the reciprocal estimate builtins and expansions.
4271 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
4272 (bdesc_2arg): Add reciprocal estimate builtins.
4273 (bdesc_1arg): Add reciprocal square root estimate builtins.
4274 (rs6000_expand_builtin): Rewrite to use a switch statement,
4275 instead of multiple if/then/elses. Add reciprocal estimate builtins.
4276 (rs6000_init_builtins): Create declarations for reciprocal
4278 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
4279 sized, prefer traditional floating point registers, if integer
4280 vector types, prefer altivec registers. Don't actually look at
4281 the memory address any more.
4282 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
4284 (rs6000_load_constant_and_splat): New helper function to load up
4285 the constant for reciprocal estimate instructions.
4286 (rs6000_emit_madd): New helper function for generating
4287 multiply/add type instructions, based on the current switches.
4288 (rs6000_emit_msub): Ditto.
4289 (rs6000_emit_mnsub): Ditto.
4290 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
4291 replace a divide with a reciprocal estimate and fixup, adding
4292 support for machines with high precision and vectors.
4293 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
4294 low precision machines.
4295 (rs6000_emit_swdiv): New common function to be called to replace a
4296 division with reciprocal estimate and fixup.
4297 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
4298 for double and vector types. Add support for high precision machines.
4300 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
4301 the reciprocal estimate instructions can be generated.
4302 (TARGET_FRE): Ditto.
4303 (TARGET_FRSQRTES): Ditto.
4304 (TARGET_FRSQRTE): Ditto.
4305 (RS6000_RECIP_*): New macros for reciprocal estimate support.
4307 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
4308 square root estimate on vectors.
4309 (re<mode>2): New insn for reciprocal division estimate on vectors.
4311 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
4313 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
4314 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
4315 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
4316 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
4317 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
4318 (RS6000_BUILTIN_RSQRT): Ditto.
4319 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
4320 floating point builtin.
4322 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4323 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
4324 __RECIP_PRECISION__ based on the command line switches.
4325 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
4327 * config/rs6000/rs6000.opt (-mrecip): Document add support for
4328 replacing division instructions with reciprocal estimate and fixup.
4329 (-mrecip=<opt>): New option.
4330 (-mrecip-precision): Ditto.
4332 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
4333 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
4334 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
4337 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
4338 (UNSPEC_VREFP): Ditto.
4339 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
4340 conterparts with regard to support of -mno-fused-madd and -ffast-math.
4341 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
4342 reciprocal estimate instructions to be generated.
4343 (altivec_vrefp): Ditto.
4345 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
4347 (rreg): New mode attribute for reciprocal estimate support.
4348 (recip<mode>3): New insn for division using reciprocal estimate
4350 (divide define_split): New define_split to convert floating point
4351 division to use reciprocal estimate if the user used the
4352 appropriate options and the split is run when we can add new
4353 pseudo registers for the fixup.
4354 (rsqrt<mode>2): New insn for reciprocal square root support.
4355 (recipsf3): Move into recip<mode>3.
4357 (fres): Use TARGET_FRES.
4358 (rsqrtsf2): Move into rsqrt<mode>2.
4359 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
4360 (copysignsf3): Add support for VSX.
4361 (fred): Use TARGET_FRE.
4363 (rsqrtdf_internal1): New function for frsqrte instruciton.
4365 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
4368 2010-06-03 Richard Guenther <rguenther@suse.de>
4371 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
4372 (set_user_assembler_libfunc): Likewise.
4374 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
4376 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
4378 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
4380 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
4381 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
4382 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
4383 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
4384 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
4385 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
4386 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
4387 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
4388 * defaults.h: Updated for above mentioned changes.
4390 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
4392 * c-common.c: Remove header include of tm_p.h.
4393 * Makefile.in (c-common.o): Remove TM_P_H dependency.
4395 2010-06-02 Jakub Jelinek <jakub@redhat.com>
4397 * tree.h (struct tree_decl_map): New type.
4398 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
4399 (tree_decl_map_hash): New prototype.
4400 (debug_expr_for_decl, value_expr_for_decl): Change into
4401 tree_decl_map hashtab from tree_map.
4402 (init_ttree): Adjust initialization.
4403 (tree_decl_map_hash): New function.
4404 (decl_debug_expr_lookup, decl_debug_expr_insert,
4405 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
4407 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4409 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
4411 * configure: Regenerate.
4412 * config.in: Regenerate.
4414 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
4415 (X86_64_EMULATION): Define.
4416 (TARGET_LD_EMULATION): Use them.
4418 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
4419 (SPARC64_EMULATION): Define.
4420 (LINK_ARCH_SPEC): Use them.
4422 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
4424 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
4425 smallest_mode_for_size for computing the precision types of new
4426 graphite IVs. Do not call lang_hooks.types.type_for_size.
4428 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
4430 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
4432 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
4434 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
4437 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
4438 return false instead.
4440 2010-06-02 Jan Hubicka <jh@suse.cz>
4443 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
4444 create new cgraph node to check callee.
4446 2010-06-02 Richard Guenther <rguenther@suse.de>
4448 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
4450 2010-06-02 Richard Guenther <rguenther@suse.de>
4452 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
4453 (lto_wrapper_cleanup): ... this. Do not exit.
4454 (fatal): Adjust. Exit here.
4455 (fatal_perror): Likewise.
4456 (fatal_signal): New function.
4457 (main): Set up signal handlers to cleanup temporary files.
4458 * Makefile.in (lto-wrapper.o): Adjust dependencies.
4460 2010-06-02 Richard Guenther <rguenther@suse.de>
4462 PR tree-optimization/44377
4463 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
4465 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4467 * config/s390/2097.md (z10_fhex): Remove insn reservation.
4468 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
4469 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
4470 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
4472 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
4474 2010-06-02 Jan Hubicka <jh@suse.cz>
4476 * bitmap.c (bitmap_descriptor): Add search_iter.
4477 (bitmap_find_bit): Increment it.
4478 (print_statistics): Print it.
4480 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
4482 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
4483 instead of gimple_build_call_vec. Delete unnecessary local variable.
4485 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
4487 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
4488 change from yesterday.
4490 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
4492 * c-ada-spec.c: Clean up redundant includes.
4494 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
4496 * gimplify.c: Do not include except.h and optabs.h.
4497 (gimplify_body): Do not initialize RTL profiling.
4498 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
4499 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
4500 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
4501 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
4504 * tree-pretty-print.h: Include pretty-print.h.
4505 * gimple-pretty-print.h: Include pretty-print.h.
4507 * tree-pretty-print.c: Do not include diagnostic.h.
4508 * tree-vrp.c: Likewise.
4509 * tree-tailcall.c: Likewise
4510 * tree-scalar-evolution.c: Likewise
4511 * tree-ssa-dse.c: Likewise
4512 * tree-chrec.c: Likewise
4513 * tree-ssa-sccvn.c: Likewise
4514 * tree-ssa-copyrename.c: Likewise
4515 * tree-nomudflap.c: Likewise
4516 * tree-call-cdce.c: Likewise
4517 * tree-stdarg.c: Likewise
4518 * tree-ssa-math-opts.c: Likewise
4519 * tree-nrv.c: Likewise
4520 * tree-ssa-sink.c: Likewise
4521 * tree-browser.c: Likewise
4522 * tree-ssa-loop-ivcanon.c: Likewise
4523 * tree-ssa-loop.c: Likewise
4524 * tree-parloops.c: Likewise
4525 * tree-ssa-address.c: Likewise
4526 * tree-ssa-ifcombine.c: Likewise
4527 * tree-if-conv.c: Likewise
4528 * tree-data-ref.c: Likewise
4529 * tree-affine.c: Likewise
4530 * tree-ssa-phiopt.c: Likewise
4531 * tree-ssa-coalesce.c: Likewise
4532 * tree-ssa-pre.c: Likewise
4533 * tree-ssa-live.c: Likewise
4534 * tree-predcom.c: Likewise
4535 * tree-ssa-forwprop.c: Likewise
4536 * tree-ssa-dce.c: Likewise
4537 * tree-ssa-ter.c: Likewise
4538 * tree-ssa-loop-prefetch.c: Likewise
4539 * tree-optimize.c: Likewise
4540 * tree-ssa-phiprop.c: Likewise
4541 * tree-object-size.c: Likewise
4542 * tree-outof-ssa.c: Likewise
4543 * tree-ssa-structalias.c: Likewise
4544 * tree-switch-conversion.c: Likewise
4545 * tree-ssa-reassoc.c: Likewise
4546 * tree-ssa-operands.c: Likewise
4547 * tree-vectorizer.c: Likewise
4548 * tree-vect-data-refs.c: Likewise
4549 * tree-vect-generic.c: Likewise
4550 * tree-vect-stmts.c: Likewise
4551 * tree-vect-patterns.c: Likewise
4552 * tree-vect-slp.c: Likewise
4553 * tree-vect-loop.c: Likewise
4554 * tree-ssa-loop-ivopts.c: Likewise
4555 * tree-ssa-loop-im.c: Likewise
4556 * tree-ssa-loop-niter.c: Likewise
4557 * tree-ssa-loop-unswitch.c: Likewise
4558 * tree-ssa-loop-manip.c: Likewise
4559 * tree-ssa-loop-ch.c: Likewise
4560 * tree-dump.c: Likewise
4561 * tree-complex.c: Likewise
4563 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
4564 * tree-ssa-uninit.c: Likewise
4565 * tree-ssa-threadupdate.c: Likewise
4566 * tree-ssa-uncprop.c: Likewise
4567 * tree-ssa-ccp.c: Likewise
4568 * tree-ssa-dom.c: Likewise
4569 * tree-ssa-propagate.c: Likewise
4570 * tree-ssa-alias.c: Likewise
4571 * tree-dfa.c: Likewise
4572 * tree-cfgcleanup.c: Likewise
4573 * tree-sra.c: Likewise
4574 * tree-ssa-copy.c: Likewise
4575 * tree-ssa.c: Likewise
4576 * tree-profile.c: Likewise
4577 * tree-cfg.c: Likewise
4578 * tree-ssa-threadedge.c: Likewise
4579 * tree-vect-loop-manip.c: Likewise
4581 * tree-inline.c: Do not include diagnostic.h and expr.h.
4583 (copy_decl_for_dup_finish): Do not use NULL_RTX.
4585 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
4586 * tree-loop-distribution.c: Likewise.
4588 2010-06-01 Jan Hubicka <jh@suse.cz>
4590 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
4592 2010-06-01 Jan Hubicka <jh@suse.cz>
4594 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
4595 remove return value.
4596 (split_bbs_on_noreturn_calls) .... here.
4597 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
4598 * tree-flow.h (fixup_noreturn_call): New.
4600 2010-06-01 Jan Hubicka <jh@suse.cz>
4602 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
4604 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
4606 * tree.h (build_nt_call_list): Delete.
4607 * tree.c (build_nt_call_list): Delete.
4609 2010-06-01 Jan Hubicka <jh@suse.cz>
4611 * fwprop.c: Make emit-rtl.h include last.
4612 * rtlanal.c: Include emit-rtl.h.
4613 * genautomata.c: Output emit-rtl include into insn-automata.c
4614 * df-scan.c: Include emit-rtl.h.
4615 * haifa-sched.c: Indlude emit-rtl.h.
4616 * mode-switching.c: Indlude emit-rtl.h.
4617 * graph.c: Indlude emit-rtl.h.
4618 * sel-sched.c: Include emit-rtl.h.
4619 * sel-sched-ir.c: Include emit-rtl.h.
4620 * ira-build.c: Include emit-rtl.h.
4621 * emit-rtl.c: (first_insn, last_insn): Remove defines.
4622 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
4624 (set_new_first_and_last_insn, get_last_insn_anywhere,
4625 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
4626 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
4627 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
4628 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
4629 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
4630 Use accessor functions.
4631 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
4632 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
4633 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
4634 mem_expr_equal_p): Move here from rtl.h.
4635 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
4636 Move here from emit-rtl.c; make inline.
4637 * cfglayout.h: Include emit-rtl.h.
4638 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
4639 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
4640 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
4641 mem_expr_equal_p, get_insns, set_first-insn,
4642 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
4643 * reg-stack.c: Include emit-rtl.h.
4646 2010-06-01 Jan Hubicka <jh@suse.cz>
4648 * cgraph.h (tree_function_versioning): Update prototype.
4649 (cgraph_function_versioning): Update prototype.
4650 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
4652 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
4653 (cgraph_materialize_clone, save_inline_function_body): Update use of
4654 tree_function_versioning.
4655 * tree-inline.c (copy_bb): Look for previous copied block to link
4656 after; fix debug output.
4657 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
4658 (copy_body): Likewise.
4659 (expand_call_inline): Update use of copy_body.
4660 (tree_function_versioning): Update use of copy body; accept
4661 blocks_to_copy and new_entry.
4663 2010-06-01 Jan Hubicka <jh@suse.cz>
4665 * gegenrtl.c: Remove unnecesary prototypes.
4667 (gendef): Produce static inline.
4669 (main): Do not decode parameters; generate header only.
4670 * Makefile.in (genrtl.c): Remove.
4672 2010-06-01 Jan Hubicka <jh@suse.cz>
4674 * tree-switch-conversion.c (build_one_array): Make it readonly.
4676 2010-06-01 Richard Guenther <rguenther@suse.de>
4678 * optabs.c (init_optabs): Guard all accesses to reinit.
4679 * ipa-pure-const.c (propagate): Fix another typo.
4680 * opts.c (common_handle_option): Split assignment to bool.
4681 * c-opts.c (c_common_handle_option): Likewise.
4683 2010-06-01 Arnaud Charlet <charlet@adacore.com>
4684 Matthew Gingell <gingell@adacore.com>
4686 * doc/invoke.texi: Mention -fdump-ada-spec.
4687 * tree-dump.c (dump_files): Add ada-spec.
4688 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
4689 * tree-pass.h (tree_dump_index): Add TDI_ada.
4690 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
4691 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
4692 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
4693 * c-decl.c: Include c-ada-spec.h.
4694 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
4696 (c_write_global_declarations): Add handling of -fdump-ada-spec.
4697 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
4698 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
4699 * c-ada-spec.h, c-ada-spec.c: New files.
4701 2010-06-01 Richard Guenther <rguenther@suse.de>
4704 * ipa-pure-const.c (get_function_state): Hand back varying state
4705 if we do not have one.
4706 (has_function_state): New function.
4707 (duplicate_node_data): Adjust.
4708 (remove_node_data): Likewise.
4709 (pure_const_write_summary): Likewise.
4710 (propagate): Likewise. Fix typo.
4712 2010-06-01 Jan Hubicka <jh@suse.cz>
4714 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
4715 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
4716 (execute_all_ipa_transforms): Do not play with the states.
4718 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
4720 * config/arm/t-linux-androideabi: New.
4721 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
4723 2010-06-01 Jan Hubicka <jh@suse.cz>
4725 * tree-inline.c (estimate_num_insns): For stdarg functions look
4726 into call statement to count cost of argument passing.
4728 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
4730 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
4731 argument for fprintf.
4732 (ix86_output_addr_diff_elt): Likewise.
4733 (x86_function_profiler): Likewise.
4734 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
4735 (LPREFIX): Likewise.
4736 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4738 2010-05-31 Jakub Jelinek <jakub@redhat.com>
4741 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
4742 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
4743 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
4744 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
4745 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
4746 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
4747 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
4748 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
4751 2010-05-31 Jan Hubicka <jh@suse.cz>
4753 * tree.h (tree_range_check_failed): Declare noreturn.
4755 2010-05-31 Jan Hubicka <jh@suse.cz>
4757 * gimple.c (gimple_call_builtin_p): New function.
4758 * gimple.h (gimple_call_builtin_p): Declare.
4759 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
4761 (execute_warn_function_return): BUILT_IN_RETURN is return.
4762 (split_critical_edges): Return edges are not critical.
4763 (is_ctrl_altering_stmt): Builtin_in_return is altering.
4764 (gimple_verify_flow_info): Handle built_in_return.
4765 (execute_warn_function_return): Handle built_in_return.
4766 * ipa-pure-const.c (check_call): Ignore builtin_return.
4768 2010-05-31 Jakub Jelinek <jakub@redhat.com>
4771 * expr.c (expand_assignment): Don't store anything for out-of-bounds
4772 array accesses with non-MEM.
4774 PR tree-optimization/44182
4775 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
4776 newly needs to end a bb is followed by debug stmts, instead return
4777 true from the function at the end.
4778 (maybe_move_debug_stmts_to_successors): New function.
4779 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
4781 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
4784 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
4786 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
4788 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
4789 for nested functions in non-optimized compilation.
4791 2010-05-31 Richard Guenther <rguenther@suse.de>
4793 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
4795 2010-05-30 Jan Hubicka <jh@suse.cz>
4797 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
4799 2010-05-30 Richard Guenther <rguenther@suse.de>
4802 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
4803 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
4806 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
4808 * config/darwin.c (output_objc_section_asm_op): Add comment.
4809 (name_needs_quotes): Add '_' to list of valid comment chars.
4810 (machopic_output_function_base_name): Remove unneeded quotes.
4811 (darwin_encode_section_info): Adjust asm whitespace.
4812 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
4813 (ASM_OUTPUT_LOCAL): Ditto.
4814 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
4815 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
4816 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
4818 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
4820 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
4821 RS6000_OUTPUT_BASENAME unconditionally.
4822 (rs6000_output_function_epilogue): Likewise.
4824 2010-05-30 Jan Hubicka <jh@suse.cz>
4826 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
4829 2010-05-30 Richard Guenther <rguenther@suse.de>
4831 * tree-cfg.c (verify_gimple_assign_single): Implement
4832 verification for COND_EXPR rhs.
4834 2010-05-30 Jan Hubicka <jh@suse.cz>
4836 * cgraph.h (cgraph_dump_file): Declare.
4837 * cgraphunit.c (cgraph_dump_file): Export.
4838 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
4840 2010-05-30 Jan Hubicka <jh@suse.cz>
4842 * dwarf2out.c (reference_to_unused,
4843 premark_types_used_by_global_vars_helper): Avoid creation of new
4846 2010-05-30 Jan Hubicka <jh@suse.cz>
4848 * cgraph.h (cgraph_node_cannot_return,
4849 cgraph_edge_cannot_lead_to_return): New functions.
4850 * cgraph.c (cgraph_node_cannot_return,
4851 cgraph_edge_cannot_lead_to_return): Use them.
4852 * ipa-pure-const.c (pure_const_names): New static var.
4853 (check_call): Handle calls not leading to return.
4854 (pure_const_read_summary): Dump info read.
4855 (propagate): Dump info about propagation process; ignore side effects
4856 of functions not leading to exit; fix handling of pure functions.
4858 2010-05-30 Jan Hubicka <jh@suse.cz>
4860 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
4861 for tail call epilogues.
4863 2010-05-30 Jan Hubicka <jh@suse.cz>
4865 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
4866 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
4869 2010-05-29 Jan Hubicka <jh@suse.cz>
4871 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
4872 node; remove references in node we no longer keep in cgrpah but need
4875 2010-05-29 Jan Hubicka <jh@suse.cz>
4877 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
4879 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4882 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
4884 2010-05-29 Jan Hubicka <jh@suse.cz>
4886 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
4887 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
4888 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
4889 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
4890 debug_names_replaced_by, debug_update_ssa): Likewise.
4891 * sbitmap.c (debug_sbitmap): Likewise.
4892 * genrecog.c (debug_decision, debug_decision_list): Likewise.
4893 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
4894 debug_tree_chain): Likewise.
4895 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
4896 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
4897 * optabs.c (debug_optab_libfuncs): Likewise.
4898 (verify_loop_closed_ssa): Likewise.
4899 * value-prof.c (verify_histograms): Likewise.
4900 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
4901 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
4902 * cfghooks.c (verify_flow_info): Likewise.
4903 * fold-const.c (debug_fold_checksum): Likewise.
4904 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
4905 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
4907 * omega.c (debug_omega_problem): Likewise.
4908 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
4909 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
4910 * dominance.c (verify_dominators, debug_dominance_info,
4911 debug_dominance_tree): Likewise.
4912 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
4913 * df_regno_debug, df_ref_debug,
4914 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
4915 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
4916 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
4917 * sel-sched.c (debug_state): Likewise.
4918 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
4920 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
4921 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
4922 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
4923 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
4925 * c-pretty-print.c (debug_c_tree): Likewise.
4926 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
4927 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
4928 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
4929 * ebitmap.c (debug_ebitmap): Likewise.
4930 * function.c (debug_find_var_in_block_tree): Likewise.
4931 * print-rtl.c (debug_rtx): Likewise.
4932 (debug_rtx_count): Likewise.
4933 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
4934 * stor-layout.c (debug_rli): Likewise.
4935 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
4936 * tree-data-ref.c (debug_data_references,
4937 debug_data_dependence_relations, debug_data_reference,
4938 debug_data_dependence_relation, debug_rdg_vertex,
4939 debug_rdg_component, debug_rdg): Likewise.
4940 * tree-affine.c (debug_aff): Likewise.
4941 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
4943 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
4944 * emit-rtl.c (verify_rtl_sharing): Likewise.
4945 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
4946 debug_value_expressions): Likewise.
4947 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
4948 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
4949 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
4950 * cfglayout.c (verify_insn_chain): Likewise.
4951 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
4952 debug_clast_stmt, debug_generated_program): Likewise.
4953 * ggc-page.c (debug_print_page_list): Likewise.
4954 * tree-ssa-ter.c (debug_ter): Likewise.
4955 * graphite-dependences.c (debug_pddr): Likewise.
4956 * sched-deps.c (debug_ds): Likewise.
4957 * tree-ssa.c (verify_ssa): Likewise.
4958 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
4959 debug_scattering_functions, debug_iteration_domains, debug_pdr,
4960 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
4961 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
4962 * tree-inline.c (debug_find_tree): Likewise.
4963 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
4964 debug_ppl_powerset_matrix): Likewise.
4965 * var-tracking.c (debug_dv): Likewise.
4966 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
4967 * cfgloop.c (verify_loop_structure): Likewise.
4968 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
4969 * c-common.c (verify_sequence_points): Likewise.
4970 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
4971 debug_candidates, debug_rgn_dependencies): Likewise.
4972 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
4973 * debug_constraint_graph, debug_solution_for_var,
4974 debug_sa_points_to_info): Likewise.
4975 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
4977 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
4978 debug_loops, debug_loop, debug_loop_num): Likewise.
4979 * passes.c (debug_pass): Likewise.
4980 (dump_properties): Likewise; add cfglayout property.
4981 (debug_properties): Likewise.
4982 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
4983 * varpool.c (debug_varpool): Likewise.
4984 * regcprop.c (debug_value_data): Likewise.
4985 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
4986 debug_immediate_uses_for): Likewise.
4988 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
4991 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
4992 Filter out insn-flags.h.
4994 2010-05-29 Jan Hubicka <jh@suse.cz>
4996 * cgraph.h (struct varpool_node_set_def,
4997 struct cgraph_node_set_def): Remove unused AUX pointer.
4998 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
5001 2010-05-29 Jan Hubicka <jh@suse.cz>
5004 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
5006 2010-05-29 Richard Guenther <rguenther@suse.de>
5008 * lto-streamer.c (cached_bp): New global variable.
5009 (bitpack_create): Return the cached bitpack, if available.
5010 (bitpack_delete): Clear and cache the bitpack, if appropriate.
5011 (bp_pack_value): Remove redundant asserts.
5013 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
5016 * tree-if-conv.c (is_true_predicate): New.
5017 (is_predicated): Use is_true_predicate.
5018 (add_to_predicate_list): Same. Do not use unshare_expr.
5019 (add_to_dst_predicate_list): Same.
5021 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
5023 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
5025 (predicate_bbs): Same.
5026 (clean_predicate_lists): Same.
5027 (find_phi_replacement_condition): Do not AND the predicate from
5030 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
5033 * Makefile.in (build/gencondmd.o): Add a missing `\'.
5035 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5038 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
5039 (negdf2): Adjust expander pattern and use negdf2_slow.
5042 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
5044 * basic-block.h (struct control_flow_graph): Move last_label_uid field
5046 * df.h (struct df_base_ref): Move regno field up.
5047 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
5048 * expr.h (struct separate_ops): Move location field up.
5049 * optabs.h (struct optab_d): Move libcall_basename field down.
5050 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
5051 * config/i386/i386.h (struct machine_function): Convert call_abi field
5052 into a bitfield. Move cfa field to the end of the structure.
5054 2010-05-29 Jan Hubicka <jh@suse.cz>
5056 * varpool.c (varpool_get_node): Fix lookup.
5058 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
5060 * config/spu/spu-protos.h: Do not include rtl.h. Protect
5061 RTL specific prototypes with #ifdef RTX_CODE.
5062 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
5063 * config/spu/t-spu-elf: Fix dependencies.
5065 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
5067 2010-05-29 Mike Stump <mikestump@comcast.net>
5070 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
5071 TM_H when building to avoid dependency loops.
5073 2010-05-29 Jan Hubicka <jh@suse.cz>
5075 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
5076 refs and body; not the whole node for masters of materialized clones.
5078 2010-05-29 Mike Stump <mikestump@comcast.net>
5080 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
5082 2010-05-29 Jan Hubicka <jh@suse.cz>
5084 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
5085 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
5086 use of clone_function_name.
5087 * cgraph.h (cgraph_create_virtual_clone,
5088 cgraph_function_versioning): update prototypes.
5089 (clone_function_name): Declare.
5090 * ipa-cp.c (ipcp_insert_stage): Update call of
5091 cgraph_create_virtual_clone.
5092 * omp-low.c (create_omp_child_function_name): Use
5093 cgraph_create_virtual_clone.
5094 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
5095 (cgraph_function_versioning): Take SUFFIX argument; produce new name
5096 and make decl local.
5098 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
5100 * vec.h: Include statistics.h
5101 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
5104 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
5106 * c-lex.c: Do not include c-tree.h.
5107 * c-pretty-print.c: Likewise.
5108 * c-opts.c: Likewise.
5109 * c-gimplify.c: Likewise.
5110 * c-common.c: Likewise.
5111 * c-dump.c: Likewise. Include c-common.h.
5113 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
5115 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
5116 before including diagnostic-core.h.
5117 (c_cpp_error): New prototype moved from c-tree.h.
5118 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
5119 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
5120 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
5121 (c_cpp_error): Prototype moved to c-common.h.
5122 * Makefile.in: Update dependency for C_COMMON_H.
5124 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
5126 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
5127 * c-common.c (c_register_addr_space): Remove here.
5128 * c-decl.c (c_register_addr_space): Re-add here.
5130 2010-05-28 Mike Stump <mikestump@comcast.net>
5132 * config/darwin-c.c: Remove c-tree.h include.
5134 2010-05-28 Joseph Myers <joseph@codesourcery.com>
5136 * gcc.c: Include diagnostic.h.
5137 (error_count): Remove. All users changed to use errorcount.
5138 (programname): Remove. All users changed to use progname.
5139 (fancy_abort, internal_error, fatal_error, error, warning, inform,
5141 (execute): Don't include "Internal error" and bug reporting
5142 information in argument of internal_error call.
5143 (process_command): Don't increment error_count after calling
5145 (input_filename): Rename to gcc_input_filename. All users
5147 (main): Call diagnostic_initialize. Register delete_temp_files
5148 with atexit. Use seen_error to test for errors.
5149 * gcc.h: Include diagnostic-core.h.
5150 (fatal_error, error, warning): Remove.
5151 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
5152 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
5153 (gcc.o): Update dependencies.
5155 2010-05-28 Jeff Law <law@redhat.com>
5157 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
5159 * ira.h (ira_bad_reload_regno): Declare
5160 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
5162 * ira-color.c (update_curr_costs): Free updated hard reg costs.
5163 (ira_reassign_conflict_allocnos): Remove bogus asserts.
5164 (allocno_reload_assign): Likewise.
5166 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
5168 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
5171 2010-05-28 Richard Guenther <rguenther@suse.de>
5174 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
5175 Stream fixed-point constants mode.
5176 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
5178 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
5179 Stream fixed-point constants mode.
5180 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
5183 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
5185 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
5186 only place it was called from.
5187 (number_of_latch_executions): Do not return chrec_dont_know when the
5188 may_be_zero is a runtime condition: instead, return a COND_EXPR
5189 including the may_be_zero condition.
5190 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
5192 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
5195 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
5197 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
5198 generate COND_EXPRs for degenerate_phi_result.
5200 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
5203 * tree-if-conv.c (if_convertible_loop_p): Check the
5204 if-convertibility of phi nodes in non predicated BBs.
5206 2010-05-28 Joseph Myers <joseph@codesourcery.com>
5208 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
5210 2010-05-28 Joseph Myers <joseph@codesourcery.com>
5213 * gcc.c (inform, warning, inform): New functions.
5214 (fatal_ice): Rename to internal_error; change cmsgid parameter to
5215 gmsgid. All callers changed.
5216 (notice): Rename to fnotice; add parameter fp. All callers changed.
5217 (fatal_error): Rename to fatal_signal. All users changed.
5218 (fatal): Rename to fatal_error; change cmsgid parameter to
5219 gmsgid. All callers changed.
5220 (process_command): Use warning instead of error for warnings.
5221 (end_going_arg): Don't use _() around argument of error.
5222 (do_spec_1): Use inform for message from %n specs. Use warning
5223 instead of error for warnings.
5224 (main): Use inform for comparison messages. Use warning for
5225 message about unused linker input.
5226 (error): Increment error_count. Print "error: ".
5227 * gcc.h (fatal): Change to fatal_error.
5229 * config/darwin-driver.c (darwin_default_min_version): Use warning
5230 instead of fprintf for warnings.
5231 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
5233 2010-05-28 Julian Brown <julian@codesourcery.com>
5235 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
5236 (*thumb2_addsi3_compare0_scratch): New.
5237 * config/arm/constraints.md (Pv): New.
5238 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
5240 (*addsi3_compare0_scratch): Likewise.
5242 2010-05-28 Jan Hubicka <jh@suse.cz>
5244 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
5246 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
5247 only on local statics.
5249 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
5251 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
5253 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
5256 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
5257 (OPTION_GLIBC): Define.
5259 2010-05-28 Jakub Jelinek <jakub@redhat.com>
5262 * dwarf2out.c (double_int_type_size_in_bits): New function.
5263 (round_up_to_align): Change first argument and return value to
5265 (field_byte_offset): Work internally on double_ints.
5268 * builtins.c (expand_movstr): Use a temporary pseudo instead
5269 of target even when target is not NULL and not const0_rtx, but
5270 fails movstr predicate.
5271 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
5273 2010-05-28 Joseph Myers <joseph@codesourcery.com>
5275 * final.c (rest_of_clean_state): Use %m in errors instead of
5277 * gengtype.c (read_input_list, close_output_files): Use xstrerror
5278 instead of strerror.
5279 * toplev.c (process_options): Use %m in errors instead of strerror
5281 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
5284 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
5286 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
5287 (ix86_canonical_va_list_type): Make static. Add declaration.
5288 (ix86_enum_va_list): Make static. Reindent.
5289 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
5290 (ix86_canonical_va_list_type): Ditto.
5291 (ix86_enum_va_list): Ditto.
5293 2010-05-28 Richard Guenther <rguenther@suse.de>
5295 * lto-wrapper.c (run_gcc): With -save-temps generate a
5296 user-visible ltrans filename. Fixup ltrans unit numbering.
5298 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
5300 * c-common.c (c_common_nodes_and_builtins): Replace use
5301 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
5302 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
5303 to ix86_enum_va_list.
5304 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
5305 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
5306 (TARGET_ENUM_VA_LIST_P): Add hook description.
5307 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
5308 * target.h (gcc_target): Add enum_va_list hook.
5311 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
5312 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
5313 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
5315 2010-05-28 Alan Modra <amodra@gmail.com>
5318 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
5319 emit_library_call machinery to set up __tls_get_addr calls.
5321 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5323 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
5325 2010-05-28 Dodji Seketeli <dodji@redhat.com>
5327 Revert fix for PR c++/44188
5328 * c-common.c (is_typedef_decl): Revert the moving of this
5330 * tree.c (is_typedef_decl): ... here.
5331 (typdef_variant_p): Revert the moving of this definition
5332 here from gcc/cp/tree.c.
5333 * c-common.h (is_typedef_decl): Revert the moving of this
5335 * tree.h (is_typedef_decl): ... here.
5336 (typedef_variant_p): Revert the moving of this declaration here
5337 from gcc/cp/cp-tree.h
5338 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
5339 (gen_tagged_type_die): Revert the splitting out of ...
5340 (gen_type_die_with_usage): ... this function. Revert the anonymous
5341 tagged type handling.
5342 (gen_typedef_die): Revert emitting DW_TAG_typedef for
5343 typedefs naming anonymous tagged types.
5345 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
5347 * config/rs6000/rs6000-modes.def (PSImode): Delete.
5349 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
5351 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
5352 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
5354 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
5356 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
5357 XER_REGS to CA_REGS throughout.
5358 * config/rs6000/rs6000.h: Same.
5359 (ADDITIONAL_REGISTER_NAMES): Add "xer".
5360 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
5361 that mode_iterator "P" is the size for arithmetic carries as well.
5362 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
5364 2010-05-28 Jakub Jelinek <jakub@redhat.com>
5367 * combine.c (struct rtx_subst_pair): Define unconditionally.
5368 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
5369 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
5370 Call make_compound_operation on pair->to.
5371 (propagate_for_debug): Don't call make_compound_operation here.
5372 Always use simplify_replace_fn_rtx.
5374 2010-05-27 Sterling Augustine <sterling@tensilica.com>
5376 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
5377 * config/xtensa/xtensa.c (override_options): Check
5378 TARGET_FORCE_NO_PIC and set flag_pic.
5379 * config/xtensa/xtensa.opt: Document -mforce-no-pic
5381 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
5384 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
5385 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
5387 2010-05-27 Joseph Myers <joseph@codesourcery.com>
5389 * diagnostic-core.h: New. Contents moved from diagnostic.h and
5391 * diagnostic.c: Don't include toplev.h.
5392 (progname): Define. Moved from toplev.c.
5393 (seen_error): New function.
5394 * diagnostic.h: Include diagnostic-core.h.
5395 (diagnostic_t, emit_diagnostic): Don't declare here.
5396 * toplev.c (progname): Move to toplev.c.
5397 (emit_debug_global_declarations, compile_file, finalize,
5398 do_compile, toplev_main): Use seen_error.
5399 * toplev.h: Include diagnostic-core.h.
5400 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
5401 internal_error, warning, warning_at, error, error_n, error_at,
5402 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
5403 verbatim, fnotice, progname): Move to diagnostic-core.h.
5404 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
5405 (expand_builtin_expect): Use seen_error.
5406 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
5407 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
5408 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
5409 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
5410 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
5411 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
5412 errorcount for errors.
5413 * c-opts.c (c_common_finish): Use seen_error.
5414 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
5415 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
5416 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
5417 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
5418 (get_coverage_counts): Use seen_error.
5419 * dwarf2out.c (dwarf2out_finish): Use seen_error.
5420 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
5421 gimplify_body): Use seen_error.
5422 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
5423 * ipa-pure-const.c (gate_pure_const): Use seen_error.
5424 * ipa-reference.c (gate_reference): Use seen_error.
5425 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
5426 * lambda-code.c: Include diagnostic-core.h instead of
5428 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
5429 * lto-compress.c: Include diagnostic-core.h instead of
5431 * lto-section-in.c: Include diagnostic-core.h instead of
5433 * lto-streamer-out.c: Include diagnostic-core.h instead of
5435 * lto-streamer.c: Include diagnostic-core.h instead of
5437 (gate_lto_out): Use seen_error.
5438 * matrix-reorg.c: Include diagnostic-core.h instead of
5440 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
5441 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
5442 (gate_expand_omp, lower_omp_1): Use seen_error.
5443 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
5444 (rest_of_decl_compilation, rest_of_type_compilation,
5445 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
5446 * tree-cfg.c (label_to_block_fn): Use seen_error.
5447 * tree-inline.c (optimize_inline_calls): Use seen_error.
5448 * tree-mudflap.c (mudflap_finish_file): Use
5450 * tree-optimize.c (gate_all_optimizations,
5451 gate_all_early_local_passes, gate_all_early_optimizations): Use
5453 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
5454 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
5455 (varpool_remove_unreferenced_decls,
5456 varpool_assemble_pending_decls): Use seen_error.
5457 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
5458 (TOPLEV_H, DIAGNOSTIC_H): Update.
5459 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
5460 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
5461 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
5462 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
5463 coverage.o, lambda-code.o): Update dependencies.
5465 2010-05-25 Dodji Seketeli <dodji@redhat.com>
5468 * c-common.c (is_typedef_decl): Move this definition ...
5469 * tree.c (is_typedef_decl): ... here.
5470 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
5471 * c-common.h (is_typedef_decl): Move this declaration ...
5472 * tree.h (is_typedef_decl): ... here.
5473 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
5474 * dwarf2out.c (is_naming_typedef_decl): New function.
5475 (gen_tagged_type_die): Split out of ...
5476 (gen_type_die_with_usage): ... this function. When an anonymous
5477 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
5478 is emitted for the typedef.
5479 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
5480 anonymous tagged types.
5482 2010-05-27 Jason Merrill <jason@redhat.com>
5484 * print-tree.c (debug_vec_tree): New fn.
5485 (print_vec_tree): New fn.
5486 * tree.h: Declare them.
5487 * gdbinit.in (pvt): New command.
5489 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
5491 * gdbinit.in (pdd): New command.
5493 2010-05-27 Jan Hubicka <jh@suse.cz>
5495 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
5496 (update_caller_keys): Return early if there are no callers;
5497 only update fibheap when decresing the key.
5498 (update_callee_keys): Avoid recursion.
5499 (decide_inlining_of_small_functions): When badness does not match;
5500 re-insert into fibheap.
5502 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
5504 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
5505 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
5506 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
5507 (ALL_HOST_OBJS): Now a union of the above two.
5508 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
5509 all files in ALL_HOST_FRONTEND_OBJS.
5510 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
5512 * c-common.c: Pretend to be a backend file by undefining
5513 IN_GCC_FRONTEND (still need rtl.h here).
5515 2010-05-27 Jan Hubicka <jh@suse.cz>
5517 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
5518 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
5520 2010-05-27 Jan Hubicka <jh@suse.cz>
5522 * sched-ebb.c: Rename struct deps to struct deps_desc.
5524 * sel-sched-ir.c: Likewise.
5525 * sched-deps.c: Likewise.
5526 * sched-int.h: Likewise.
5527 * sched-rgn.c: Likewise.
5529 2010-05-27 Jon Beniston <jon@beniston.com>
5532 * config/lm32/lm32.h: Remove definition of
5533 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
5535 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
5538 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
5540 2010-05-27 Richard Guenther <rguenther@suse.de>
5542 PR tree-optimization/44284
5543 * tree-vect-stmts.c (vectorizable_assignment): Handle
5544 sign-changing conversions as simple copy.
5546 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
5548 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
5550 (__gthread_active_p): Check for pthread_create if compiling against
5553 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
5555 Support compilation for Android platform. Reimplement -mandroid.
5557 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
5558 (*android*): Set ANDROID_DEFAULT.
5559 (arm*-*-linux*): Include linux-android.h.
5560 (arm*-*-eabi*): Don't include previous -mandroid implementation.
5561 * config/arm/eabi.h: Remove, move Android-specific parts ...
5562 * config/linux-android.h: ... here. New file.
5563 * config/arm/eabi.opt: Rename to ...
5564 * config/linux-android.opt: ... this.
5565 (mandroid): Allow -mno-android option. Initialize based on
5567 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
5568 Move logic to corresponding LINUX_TARGET_* macros.
5569 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
5570 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
5571 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
5572 Android definitions.
5573 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
5574 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
5577 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
5579 Add support for Bionic C library
5581 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
5583 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
5584 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
5586 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
5587 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
5588 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
5589 to support multiple C libraries. Handle Bionic.
5590 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
5591 (BIONIC_DYNAMIC_LINKER64): Define.
5592 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
5594 (TARGET_HAS_SINCOS): Enable for Bionic.
5596 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
5597 the last option specified on command line take effect.
5598 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
5600 (mglibc, muclibc): Update.
5602 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
5603 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
5606 * doc/invoke.texi (-mglibc, -muclibc): Update.
5607 (-mbionic): Document.
5609 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5611 * c-common.h (c_register_addr_space): Add prototype.
5612 (ADDR_SPACE_KEYWORD): Remove.
5613 * c-common.c (c_register_addr_space): New function.
5614 (c_addr_space_name): Reimplement.
5615 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
5617 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
5618 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
5620 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
5621 Remove TARGET_ADDR_SPACE_KEYWORDS.
5623 2010-05-27 Joseph Myers <joseph@codesourcery.com>
5625 * input.c: New file.
5626 * input.h (main_input_filename): Move declaration to toplev.h.
5627 * toplev.c (input_location, line_table): Move to input.c
5628 * toplev.h (main_input_filename): Move declaration from input.h.
5629 * tree.c (expand_location): Move to input.c.
5630 * Makefile.in (OBJS-common): Add input.o.
5631 (input.o): Add dependencies.
5633 2010-05-27 Richard Guenther <rguenther@suse.de>
5635 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
5636 for non-existant files.
5637 (fork_execute): Mark args_name file as deleted.
5639 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
5642 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
5643 (narrow_signed_type): Likewise.
5645 2010-05-26 Jan Hubicka <jh@suse.cz>
5647 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
5648 edge only when checking is enabled; check using former_clone_of;
5649 check inline clones too.
5650 (cgraph_materialize_clone): Record former_clone_of pointer.
5651 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
5652 combining redirections; dump args_to_skip bitmap
5653 (cgraph_materialize_all_clones): Do no redirection here.
5654 * ipa-inline.c (inline_transform): Do redirection here.
5655 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
5658 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5660 * config/avr/avr-c.c: Do not include regs.h.
5661 Include cpplib.h for cpp_define and tree.h for c-common.h.
5662 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
5663 * config/avr/t-avr: Fix dependencies for avr-c.o.
5665 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5667 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
5668 string instead of SYMBOL_REF rtx.
5669 * rtl.h (set_stack_check_libfunc): Move prototype from here...
5670 * libfuncs.h: ...to here. Adjust for explow.c change.
5672 2010-05-26 Joseph Myers <joseph@codesourcery.com>
5674 * pretty-print.c: Don't include ggc.h.
5675 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
5676 (identifier_to_locale): Use them for allocation.
5677 * pretty-print.h (identifier_to_locale_alloc,
5678 identifier_to_locale_free): Declare.
5679 * toplev.c (alloc_for_identifier_to_locale): New.
5680 (general_init): Set identifier_to_locale_alloc and
5681 identifier_to_locale_free.
5682 * Makefile.in (pretty-print.o): Update dependencies.
5684 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
5686 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
5687 pointer types if they have different alignment or mode.
5689 2010-05-26 Anatoly Sokolov <aesok@post.ru>
5691 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5692 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5693 * config/sparc/sparc-protos.h (function_value): Remove declaration.
5694 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
5695 sparc_function_value_regno_p): New functions.
5696 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5697 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5698 (function_value): Rename to...
5699 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
5700 argument to 'outgoing'.
5701 (function_arg_record_value, function_arg_union_value,
5702 function_arg_vector_value): Update comment.
5704 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
5706 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
5707 (fde_needed_for_eh_p): New predicate.
5708 (output_call_frame_info): Use it throughout to decide whether FDEs
5709 are needed for EH purpose.
5710 (dwarf2out_begin_prologue): Reorder assignments.
5712 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5714 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
5715 special case loop->header.
5716 (is_predicated): New.
5717 (if_convertible_loop_p): Call it.
5719 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5721 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
5722 iterator in parameter. Do not generate code during the analysis.
5723 (tree_if_convert_cond_stmt): Removed.
5724 (tree_if_convert_stmt): Removed.
5725 (predicate_bbs): New.
5726 (if_convertible_loop_p): Call predicate_bbs.
5727 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
5728 now contains all the analysis part.
5730 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5732 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
5733 statements in the analysis part.
5734 (tree_if_convert_stmt): Update comment.
5735 (remove_conditions_and_labels): New.
5736 (combine_blocks): Call remove_conditions_and_labels.
5737 (tree_if_conversion): Update comment.
5739 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5741 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
5742 than 2 predecessors or more than 2 successors.
5744 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5746 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
5747 of loops in which the data dependence analysis fails.
5749 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5751 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
5752 CDI_POST_DOMINATORS.
5753 (tree_if_conversion): Same.
5755 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5757 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
5759 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5761 * tree-if-conv.c: Update copyright years. Fix comments.
5764 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
5766 * builtin-types.def (BT_INT128): New primitive type.
5767 (BT_UINT128): Likewise.
5768 * c-common.c (c_common_r): Add __int128 keyword.
5769 (c_common_type_for_size): Handle __int128.
5770 (c_common_type_for_mode): Likewise.
5771 (c_common_signed_or_unsigned_type): Likewise.
5772 (c_common_nodes_and_builtins): Add builtin type
5773 if target supports 128-bit integer scalar.
5774 * c-common.h (enum rid): Add RID_INT128.
5775 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
5776 if target supports 128-bit integer scalar.
5777 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
5778 (finish_declspecs): Likewise.
5779 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
5780 (c_token_starts_declspecs): Likewise.
5781 (c_parser_declspecs): Likewise.
5782 (c_parser_attributes): Likewise.
5783 (c_parser_objc_selector): Likewise.
5784 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
5785 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
5786 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
5787 * tree.c (make_or_reuse_type): Likewise.
5788 (make_unsigned_type): Likewise.
5789 (build_common_tree_nodes_2): Likewise.
5790 * tree.h (enum integer_type_kind): Add itk_int128 and
5791 itk_unsigned_int128.
5792 (int128_integer_type_node): New define.
5793 (int128_unsigned_type_node): New define.
5794 * doc/extend.texi: Add documentation about __int128 type.
5796 2010-05-26 Richard Guenther <rguenther@suse.de>
5798 * tree-ssa-sccvn.c (copy_nary): Adjust.
5799 (copy_phis): Rename to ...
5800 (copy_phi): ... this. Adjust.
5801 (copy_references): Rename to ...
5802 (copy_reference): ... this. Adjust.
5803 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
5804 result into the valid table.
5806 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5808 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
5809 insn-config.h, insn-codes.h, recog.h, and optabs.h.
5811 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5813 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
5815 2010-05-26 Richard Guenther <rguenther@suse.de>
5817 * opts.c (common_handle_option): Handle OPT_Ofast.
5819 2010-05-26 Joseph Myers <joseph@codesourcery.com>
5821 * diagnostic.c: Don't include opts.h.
5822 (permissive_error_option): Define.
5823 (diagnostic_initialize): Take n_opts parameter. Allocate memory
5824 for classify_diagnostic. Don't use memset for
5825 classify_diagnostic. Initialize new and recently added fields.
5826 (diagnostic_classify_diagnostic): Use context->n_opts instead of
5828 (diagnostic_report_diagnostic): Pass context parameter to
5829 diagnostic_report_warnings_p. Use option_enabled and option_name
5831 (emit_diagnostic): Use permissive_error_option.
5832 (permerror): Likewise.
5833 * diagnostic.h: Don't include options.h.
5834 (struct diagnostic_context): Add n_opts, opt_permissive,
5835 inhibit_warnings, warn_system_headers, option_enabled and
5836 option_name fields. Change classify_diagnostic to a pointer.
5837 * opts-diagnostic.h: New file.
5838 * opts.c: Include opts-diagnostic.h.
5839 (common_handle_option): Set global_dc fields for -Wfatal-errors,
5840 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
5841 (option_name): New function.
5842 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
5843 (c_common_handle_option): Set global_dc->permissive for
5845 * c-common.c (c_cpp_error): Save and restore
5846 global_dc->warn_system_headers, not variable warn_system_headers.
5847 * toplev.c: Include opts-diagnostic.h.
5848 (general_init): Update call to diagnostic_initialize. Set
5849 global_dc->show_column, global_dc->option_enabled and
5850 global_dc->option_name.
5851 (process_options): Don't set global_dc fields here.
5852 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
5853 (diagnostic.o, opts.o, toplev.o): Update dependencies.
5855 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
5857 * config/picochip/picochip.md (movsi): Split a movsi from a
5860 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5862 * ggc-zone.c: Update copyright year.
5863 (poison_region): Mark memory for Valgrind as undefined before
5864 memset () call and inaccessible afterwards.
5865 (ggc_pch_total_size): Change type of i to int.
5867 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5869 * ggc-common.c (ggc_free_overhead): Allow empty slot.
5871 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5873 * ggc-common.c: Update copyright year.
5874 (ggc_rlimit_bound): Remove prototype. Compile only if
5875 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
5876 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
5877 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
5878 (ggc_min_heapsize_heuristic): Likewise.
5880 2010-05-26 Richard Guenther <rguenther@suse.de>
5882 PR rtl-optimization/44164
5883 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
5884 no-common access-path disambiguation.
5885 (indirect_ref_may_alias_decl_p): Adjust.
5886 (indirect_refs_may_alias_p): Likewise.
5887 (refs_may_alias_p_1): Likewise.
5889 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5891 * c-typeck.c: Do not include expr.h.
5893 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5895 * rtl.h (decl_default_tls_model): Move prototype from here...
5896 * output.h: ...to here.
5897 * c-decl.c: Do not include rtl.h.
5898 * c-pragma.c: Likewise.
5899 * c-parser.c: Likewise.
5900 * c-gimplify.c: Likewise. And also not hard-reg-set.
5901 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
5902 FIXME note for it. Add a FIXME note for expr.h.
5903 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
5904 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
5907 2010-05-26 Jakub Jelinek <jakub@redhat.com>
5910 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
5911 or total_size is larger than red zone size for non-V4 ABI, emit a
5912 stack_tie resp. frame_tie insn before stack pointer restore.
5913 * config/rs6000/rs6000.md (frame_tie): New insn.
5915 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
5917 * function.h (struct function): Add can_throw_non_call_exceptions bit.
5918 * lto-streamer-in.c (input_function): Stream it in.
5919 * lto-streamer-out.c (output_function): Stream it out.
5920 * function.c (allocate_struct_function): Set it.
5921 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
5922 for flag_non_call_exceptions.
5923 * cfgbuild.c (control_flow_insn_p): Likewise.
5924 (make_edges): Likewise.
5925 * cfgexpand.c (expand_stack_alignment): Likewise.
5926 * combine.c (distribute_notes): Likewise.
5927 * cse.c (cse_extended_basic_block): Likewise.
5928 * except.c (insn_could_throw_p): Likewise.
5929 * gcse.c (simple_mem): Likewise.
5930 * ipa-pure-const.c (check_call): Likewise.
5931 (check_stmt ): Likewise.
5932 * lower-subreg.c (lower-subreg.c): Likewise.
5933 * optabs.c (emit_libcall_block): Likewise.
5934 (prepare_cmp_insn): Likewise.
5935 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
5936 * postreload.c (rest_of_handle_postreload): Likewise.
5937 * reload1.c (reload_as_needed): Likewise.
5938 (emit_input_reload_insns): Likewise.
5939 (emit_output_reload_insns): Likewise.
5940 (fixup_abnormal_edges): Likewise.
5941 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
5942 * store-motion.c (find_moveable_store): Likewise.
5943 * tree-eh.c (stmt_could_throw_p): Likewise.
5944 (tree_could_throw_p): Likewise.
5945 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5946 * config/arm/arm.c (arm_expand_prologue): Likewise.
5947 (thumb1_expand_prologue): Likewise.
5948 * config/rx/rx.md (cbranchsf4): Likewise.
5950 * config/s390/s390.c (s390_emit_prologue): Likewise.
5951 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
5952 (inline_forbidden_into_p): New predicate.
5953 (expand_call_inline): Use it to forbid inlining.
5954 (tree_can_inline_p): Likewise.
5956 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5958 * config/i386/i386-c.c: Do not include rtl.h.
5959 * config/i386/t-i386: Update dependencies.
5961 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5963 * attribs.c: Do not include rtl.h.
5964 * Makefile.in: Update dependencies.
5966 2010-05-25 Anatoly Sokolov <aesok@post.ru>
5968 * double-int.h (double_int_and): New.
5969 * combine.c (try_combine): Clean up, use double_int_* and
5970 immed_double_int_const functions.
5972 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5974 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
5975 stderr to /dev/null instead of grep -q.
5976 * configure: Regenerate.
5978 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5980 * Makefile.in (EXCEPT_H): Fix typo.
5982 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
5984 * ira-build.c (update_conflict_hard_reg_costs): New.
5985 (ira_build): Call update_conflict_hard_reg_costs.
5987 2010-05-25 Jakub Jelinek <jakub@redhat.com>
5990 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
5992 (intersect_loc_chains): Walk the s2var's loc_chain together
5993 with s1node chain as long as the locations are equal, don't
5994 call find_loc_in_1pdv in that case.
5997 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
5998 (copy_bind_expr): ... instead of here.
5999 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
6000 if the block hasn't been remapped.
6001 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
6002 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
6004 2010-05-25 Richard Guenther <rguenther@suse.de>
6007 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
6008 out-of-bounds array accesses.
6010 2010-05-25 Richard Guenther <rguenther@suse.de>
6012 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
6013 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
6014 (run_gcc): Re-organize to make cleanup easier.
6016 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6018 * config/s390/s390.c (optimization_options): Fix and move the
6019 flag_prefetch_loop_arrays override ...
6020 (override_options): ... here.
6022 2010-05-25 Joseph Myers <joseph@codesourcery.com>
6024 * diagnostic.c: Don't include plugin.h.
6025 (diagnostic_report_diagnostic): Don't handle plugins specially
6026 here. Pass context to internal_error callback.
6027 * diagnostic.h (struct diagnostic_context): Add context parameter
6028 to internal_error callback.
6029 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
6030 * plugin.h (struct diagnostic_context): Declare.
6031 (warn_if_plugins, plugins_internal_error_function): Declare.
6032 * toplev.c (general_init): Set global_dc->internal_error.
6033 * Makefile.in (diagnostic.o): Update dependencies.
6035 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
6037 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
6038 * config/rs6000/t-darwin64: New.
6039 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
6042 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
6045 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
6046 match the original (and intended) behaviour before r159557. This
6047 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
6050 2010-05-25 Richard Guenther <rguenther@suse.de>
6052 * doc/invoke.texi: Document -Ofast.
6053 * target.h (struct gcc_target): Add handle_ofast.
6054 * target-def.h (TARGET_HANDLE_OFAST): Add.
6055 (TARGET_INITIALIZER): Adjust.
6056 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
6057 * common.opt (Ofast): Add.
6059 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
6061 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
6062 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
6064 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
6067 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
6068 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
6069 false_rtx. Use false_rtx to compute the correct *ptest for reversed
6070 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
6072 2010-05-25 Jakub Jelinek <jakub@redhat.com>
6074 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
6075 DW_OP_minus with negated offset instead of DW_OP_plus.
6076 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
6078 2010-05-25 Wei Guozhi <carrot@google.com>
6080 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
6081 tst instruction and a new alternative.
6082 * config/arm/constraints.md (Pu): New constraint.
6084 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
6086 * function.c (assign_stack_local_1): Initialize variable
6087 to avoid warning when bootstrapping at -O3.
6089 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
6091 * configure.ac (all_lang_makefiles): Remove everything related to it.
6092 * configure: Regenerate.
6093 * Makefile.in: Fix reference to ada Make-lang.in.
6094 Remove support for LANG_MAKEFILES.
6096 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
6097 Sandra Loosemore <sandra@codesourcery.com>
6099 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
6100 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
6101 description. Add arm_neon_fp16_ok.
6102 (Add Options): Add arm_neon and arm_neon_fp16.
6104 2010-05-24 Joseph Myers <joseph@codesourcery.com>
6106 * diagnostic.c: Don't include flags.h.
6107 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
6108 context parameters. Check flags in the context passed as a parameter.
6109 (diagnostic_build_prefix): Add context parameter. Check
6110 show_column flag in context.
6111 (diagnostic_action_after_output): Check fatal_errors flag in context.
6112 (diagnostic_report_current_module): Check show_column flag in context.
6113 (default_diagnostic_starter): Update call to
6114 diagnostic_build_prefix.
6115 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
6116 (emit_diagnostic): Pass context to permissive_error_kind.
6117 (permerror): Pass context to permissive_error_kind.
6118 * diagnostic.h (struct diagnostic_context): Add show_column,
6119 pedantic_errors, permissive and fatal_errors fields.
6120 (diagnostic_build_prefix): Update prototype.
6122 * toplev.c (process_options): Set flags in global_dc from
6123 flag_show_column, flag_pedantic_errors, flag_permissive,
6125 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
6126 to diagnostic_build_prefix.
6127 * Makefile.in (diagnostic.o): Update dependencies.
6129 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
6131 * config/i386/ia32intrin.h (__crc32q): Define only if
6132 __SSE4_2__ is defined.
6134 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
6138 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
6139 DECL_VISIBILITY_SPECIFIED.
6140 (emutls_decl): Set DECL_PRESERVE_P and copy
6141 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
6142 (emutls_finalize_control_var): New callback.
6143 (emutls_finish): Finalize emutls control variables.
6144 * toplev.c (compile_file): Move the call to emutls_finish ()
6145 before varpool_assemble_pending_decls ().
6147 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
6149 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
6150 added to the preprocessor condition.
6152 2010-05-24 Paul Brook <paul@codesourcery.com>
6154 * gengtype-lex.l: Add HARD_REG_SET.
6155 * expr.c (expand_expr_real_1): Record writes to hard registers.
6156 * function.c (rtl_data): Add asm_clobbers.
6157 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
6158 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
6159 Use crtl->asm_clobbers.
6161 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6163 * doc/makefile.texi (Makefile): Mention stages 'profile'
6164 and 'feedback' for profiledbootstrap.
6166 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
6169 * config/i386/i386.c (def_builtin): Properly check
6170 OPTION_MASK_ISA_64BIT.
6172 2010-05-23 Joseph Myers <joseph@codesourcery.com>
6174 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
6175 typedefs with different but compatible types. Allow duplicate
6176 typedefs with the same type except for pedantic non-C1X, but give
6177 warning for variably modified types.
6178 * c-typeck.c (tagged_types_tu_compatible_p,
6179 function_types_compatible_p, type_lists_compatible_p,
6180 comptypes_internal): Add parameter different_types_p; set
6181 *different_types_p for different but compatible types. All
6183 (comptypes_check_different_types): New.
6184 * c-tree.h (comptypes_check_different_types): Declare.
6186 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
6188 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
6189 * jump.c: Include basic-block.h.
6190 * profile.c: Likewise.
6191 * tree-profile.c: Likewise.
6192 * coverage.c: Likewise.
6193 * basic-block.h (optimize_function_for_size_p): Move to function.h.
6194 (optimize_function_for_speed_p): Likewise.
6195 * function.h (optimize_function_for_size_p,
6196 optimize_function_for_speed_p): Moved here from basic-block.h.
6197 * Makefile.in: Update dependencies.
6199 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6201 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
6202 before calling make; allow override through $MAKE.
6203 * doc/invoke.texi (Optimize Options): Document override.
6205 2010-05-23 Anatoly Sokolov <aesok@post.ru>
6207 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
6208 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6209 (rs6000_mode_dependent_address_ptr): Make static.
6210 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6211 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
6214 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
6217 * config/i386/i386.c: Make sure that the correct regparm is passed.
6219 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
6221 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
6222 * sbitmap.c: ...to here to internalize sbitmap element access.
6223 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
6224 Explain why basic-block.h is included.
6225 * function.h: Include tm.h for CUMULATIVE_ARGS.
6226 * Makefile.in: Update dependencies.
6228 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
6230 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
6232 * sbitmap.h (struct sbitmap_def): Do not typedef here.
6233 * sbitmap.c: Include sbitmap.h.
6234 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
6235 hard-reg-set.h. Split everything related to regsets out from here...
6236 * regset.h: ...to here. New file.
6237 * df.h: Include regset.h and sbitmap.h.
6238 * tree-flow.h: Likewise.
6239 * cfgloop.h: Likewise.
6240 * except.h: Do not include sbitmap.h. Include hashtab.h.
6241 * cgraph.h: Include vec.h and function.h.
6242 * reload.h (struct insn_chain): Change types of live_throughout
6243 and dead_or_set from regset_head to bitmap_head.
6244 (compute_use_by_pseudos): Be defined also if regset.h is not included.
6245 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
6246 spilled_regs from regset_head to bitmap_head to avoid dependency
6248 * sel-sched-ir.h: Include regset.h.
6249 * reload.c: Include df.h before reload.h.
6250 * caller-save.c: Likewise.
6251 * reload1.c: Likewise.
6253 (mark_elimination): Update type of r to bitmap, consistent with
6255 * dominance.c: Include bitmap.h.
6256 * modulo-sched.c: Include df.h.
6257 * cfganal.c: Include bitmap.h and sbitmap.h.
6258 * cfgbuild.c: Include sbitmap.h.
6259 * lcm.c: Include sbitmap.h.
6260 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
6261 * domwalk.c: Include sbitmap.h, exclude ggc.h.
6262 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
6263 * cselib.c: Include bitmap.h.
6264 * tree-optimize.c: Include regset.h.
6265 * stmt.c: Include bitmap.h.
6266 * Makefile.in: Update dependencies.
6268 2010-05-22 Jan Hubicka <jh@suse.cz>
6270 * cgraph.h (struct varpool_node): Add same_comdat_group.
6271 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
6273 (output_varpool): Update call of lto_output_varpool_node.
6274 (input_varpool): Read same_comdat_group pointer.
6275 (input_varpool_1): Fixup same_comdat_group pointer.
6276 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
6277 group is needed, all are.
6278 * varpool.c (varpool_remove_node): Remove node from same comdat group
6280 (varpool_analyze_pending_decls): Walk same comdat groups.
6282 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
6284 * rtl.h (union rtunion_def): Remove rt_bit member.
6285 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
6286 * print-rtl (print_rtx): Do not print the member.
6287 * gengtype.c (adjust_field_rtx_def): Do not handle it.
6288 * gengenrtl.c (type_from_format): Likewise.
6289 (accessor_from_format): Likewise.
6291 2010-05-22 Joseph Myers <joseph@codesourcery.com>
6293 * dbgcnt.c: Include toplev.h instead of errors.h.
6294 * ira-emit.c: Don't include errors.h.
6295 * ira.c: Include toplev.h instead of errors.h.
6296 * lto-compress.c: Include toplev.h instead of errors.h.
6297 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
6298 ira.o, dbgcnt.o): Update dependencies.
6300 2010-05-22 Richard Guenther <rguenther@suse.de>
6302 * gimple.c (gimple_types_compatible_p): Check type qualifications
6303 before merging pointer to complete and pointer to incomplete type.
6304 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
6305 we use our own resolution algorithm. The gold linker plugin
6306 doesn't do the job we want it to do here.
6308 2010-05-22 Anatoly Sokolov <aesok@post.ru>
6310 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6311 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6312 (sparc_mode_dependent_address_p): New function.
6314 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
6316 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
6318 * timevar.c: Do not include any core headers.
6319 (timevar_print): De-i18n-ize.
6320 (print_time): Likewise.
6321 * timevar.h (timevar_push, timevar_pop): Make inline functions.
6323 2010-05-21 Joseph Myers <joseph@codesourcery.com>
6325 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
6327 (diagnostic_initialize): Initialize x_data not last_function.
6328 (diagnostic_report_current_function): Move to tree-diagnostic.c.
6329 (default_diagnostic_starter): Call
6330 diagnostic_report_current_module not
6331 diagnostic_report_current_function.
6332 (diagnostic_report_diagnostic): Initialize x_data not
6334 (verbatim): Likewise.
6335 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
6337 (struct diagnostic_context): Change last_function to x_data.
6338 (diagnostic_auxiliary_data): Replace with
6339 diagnostic_context_auxiliary_data and
6340 diagnostic_info_auxiliary_data.
6341 (diagnostic_last_function_changed, diagnostic_set_last_function,
6342 diagnostic_report_current_function): Move to tree-diagnostic.h.
6343 (print_declaration, dump_generic_node, print_generic_stmt,
6344 print_generic_stmt_indented, print_generic_expr,
6345 print_generic_decl, debug_c_tree, dump_omp_clauses,
6346 print_call_name, debug_generic_expr, debug_generic_stmt,
6347 debug_tree_chain, default_tree_printer): Move to
6348 tree-pretty-print.h.
6349 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
6350 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
6351 gimple-pretty-print.h.
6352 * pretty-print.c: Don't include tree.h
6353 (pp_base_format): Don't handle %K here.
6354 (pp_base_tree_identifier): Move to tree-pretty-print.c.
6355 * pretty-print.h (text_info): Change abstract_origin to x_data.
6356 (pp_tree_identifier, pp_unsupported_tree,
6357 pp_base_tree_identifier): Move to tree-pretty-print.h.
6358 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
6359 tree-pretty-print.h: New files.
6360 * tree-pretty-print.c: Include tree-pretty-print.h.
6361 (percent_K_format): New. Moved from pretty-print.c.
6362 (pp_base_tree_identifier): Move from pretty-print.c.
6363 * c-objc-common.c: Include tree-pretty-print.h.
6364 (c_tree_printer): Handle %K here.
6365 * langhooks.c: Include tree-diagnostic.h.
6366 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
6367 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
6368 (default_tree_printer): Handle %K using percent_K_format.
6369 (general_init): Use default_tree_diagnostic_starter.
6370 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
6371 (free_lang_data): Use default_tree_diagnostic_starter.
6372 * c-pretty-print.c: Include tree-pretty-print.h.
6373 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
6374 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
6375 * dwarf2out.c: Include tree-pretty-print.h.
6376 * except.c: Include tree-pretty-print.h.
6377 * gimple-pretty-print.c: Include tree-pretty-print.h and
6378 gimple-pretty-print.h.
6379 * gimplify.c: Include tree-pretty-print.h.
6380 * graphite-poly.c: Include tree-pretty-print.h and
6381 gimple-pretty-print.h.
6382 * ipa-cp.c: Include tree-pretty-print.h.
6383 * ipa-inline.c: Include gimple-pretty-print.h.
6384 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
6385 * ipa-pure-const.c: Include gimple-pretty-print.h.
6386 * ipa-struct-reorg.c: Include tree-pretty-print.h and
6387 gimple-pretty-print.h.
6388 * ipa-type-escape.c: Include tree-pretty-print.h.
6389 * print-rtl.c: Include tree-pretty-print.h.
6390 * print-tree.c: Include gimple-pretty-print.h.
6391 * sese.c: Include tree-pretty-print.h.
6392 * tree-affine.c: Include tree-pretty-print.h.
6393 * tree-browser.c: Include tree-pretty-print.h.
6394 * tree-call-cdce.c: Include gimple-pretty-print.h.
6395 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
6396 * tree-chrec.c: Include tree-pretty-print.h.
6397 * tree-data-ref.c: Include tree-pretty-print.h and
6398 gimple-pretty-print.h.
6399 * tree-dfa.c: Include tree-pretty-print.h.
6400 * tree-if-conv.c: Include tree-pretty-print.h and
6401 gimple-pretty-print.h.
6402 * tree-inline.c: Include tree-pretty-print.h.
6403 * tree-into-ssa.c: Include tree-pretty-print.h and
6404 gimple-pretty-print.h.
6405 * tree-nrv.c: Include tree-pretty-print.h.
6406 * tree-object-size.c: Include tree-pretty-print.h and
6407 gimple-pretty-print.h.
6408 * tree-outof-ssa.c: Include tree-pretty-print.h and
6409 gimple-pretty-print.h.
6410 * tree-parloops.c: Include tree-pretty-print.h and
6411 gimple-pretty-print.h.
6412 * tree-predcom.c: Include tree-pretty-print.h and
6413 gimple-pretty-print.h.
6414 * tree-scalar-evolution.c: Include tree-pretty-print.h and
6415 gimple-pretty-print.h.
6416 * tree-sra.c: Include tree-pretty-print.h.
6417 * tree-ssa-address.c: Include tree-pretty-print.h.
6418 * tree-ssa-alias.c: Include tree-pretty-print.h.
6419 * tree-ssa-ccp.c: Include tree-pretty-print.h and
6420 gimple-pretty-print.h.
6421 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
6422 * tree-ssa-copy.c: Include tree-pretty-print.h and
6423 gimple-pretty-print.h.
6424 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
6425 * tree-ssa-dce.c: Include tree-pretty-print.h and
6426 gimple-pretty-print.h.
6427 * tree-ssa-dom.c: Include tree-pretty-print.h and
6428 gimple-pretty-print.h.
6429 * tree-ssa-dse.c: Include gimple-pretty-print.h.
6430 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
6431 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
6432 * tree-ssa-live.c: Include tree-pretty-print.h and
6433 gimple-pretty-print.h.
6434 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
6435 gimple-pretty-print.h.
6436 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
6437 gimple-pretty-print.h.
6438 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
6439 gimple-pretty-print.h.
6440 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
6441 gimple-pretty-print.h.
6442 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
6443 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
6444 * tree-ssa-operands.c: Include tree-pretty-print.h and
6445 gimple-pretty-print.h.
6446 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
6447 gimple-pretty-print.h.
6448 * tree-ssa-pre.c: Include tree-pretty-print.h and
6449 gimple-pretty-print.h.
6450 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
6451 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
6452 gimple-pretty-print.h.
6453 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
6454 gimple-pretty-print.h.
6455 * tree-ssa-sink.c: Include gimple-pretty-print.h.
6456 * tree-ssa-ter.c: Include tree-pretty-print.h and
6457 gimple-pretty-print.h.
6458 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
6459 * tree-ssa.c: Include tree-pretty-print.h and
6460 gimple-pretty-print.h.
6461 * tree-stdarg.c: Include gimple-pretty-print.h.
6462 * tree-switch-conversion.c: Include gimple-pretty-print.h.
6463 * tree-tailcall.c: Include tree-pretty-print.h and
6464 gimple-pretty-print.h.
6465 * tree-vect-data-refs.c: Include tree-pretty-print.h and
6466 gimple-pretty-print.h.
6467 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
6468 gimple-pretty-print.h.
6469 * tree-vect-loop.c: Include tree-pretty-print.h and
6470 gimple-pretty-print.h.
6471 * tree-vect-patterns.c: Include gimple-pretty-print.h.
6472 * tree-vect-slp.c: Include tree-pretty-print.h and
6473 gimple-pretty-print.h.
6474 * tree-vect-stmts.c: Include tree-pretty-print.h and
6475 gimple-pretty-print.h.
6476 * tree-vectorizer.c: Include tree-pretty-print.h.
6477 * tree-vrp.c: Include tree-pretty-print.h and
6478 gimple-pretty-print.h.
6479 * value-prof.c: Include tree-pretty-print.h and
6480 gimple-pretty-print.h.
6481 * var-tracking.c: Include tree-pretty-print.h.
6482 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
6483 (tree-diagnostic.o): New dependencies.
6484 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
6485 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
6486 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
6487 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
6488 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
6489 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
6490 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
6491 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
6492 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
6493 tree-ssa-address.o, tree-ssa-loop-niter.o,
6494 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
6495 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
6496 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
6497 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
6498 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
6499 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
6500 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
6501 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
6502 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
6503 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
6504 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
6505 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
6506 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
6507 tree-switch-conversion.o, var-tracking.o, value-prof.o,
6508 cfgexpand.o, pretty-print.o): Update dependencies.
6510 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
6512 * tree-ssa-structalias.c: Remove tm_p.h from include.
6514 2010-05-21 Jeff Law <law@redhat.com>
6516 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
6518 2010-05-21 Jason Merrill <jason@redhat.com>
6520 * tree-eh.c (cleanup_is_dead_in): New.
6521 (lower_try_finally): Don't generate a dead cleanup region.
6522 (lower_cleanup): Likewise.
6524 2010-05-21 Jakub Jelinek <jakub@redhat.com>
6527 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
6528 unchain each use from the cyclic next_regno_use chain first.
6530 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
6532 * real: Do not include gmp.h, mpfr.h, and mpc.h.
6533 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
6534 (real_value_negate, real_value_abs): New prototypes.
6535 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
6536 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
6537 new include file for interface between MPFR and REAL_VALUE_TYPE.
6538 * real.c: Include realmpfr.h.
6539 (real_arithmetic2): Remove legacy function.
6540 (real_value_negate): New.
6541 (real_value_abs): New.
6542 (mfpr_from_real, real_from_mpfr): Move from here...
6543 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
6544 * builtins.c: Include realmpfr.h.
6545 * fold-const.c: Include realmpfr.h.
6546 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
6547 (fold_negate_const): Likewise.
6548 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
6549 * toplev.c: Include realmpfr.h.
6550 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
6551 and real_value_negate.
6552 * fixed-value.c (check_real_for_fixed_mode): Likewise.
6553 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
6554 (vfp3_const_double_index): Likewise.
6555 (arm_print_operand): Likewise.
6556 * Makefile.in: Update dependencies.
6558 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6560 * config/s390/s390.c (override_options): Increase the default
6561 of max-completely-peel-times.
6563 2010-05-21 Julian Brown <julian@codesourcery.com>
6564 Mark Mitchell <mark@codesourcery.com>
6566 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
6567 sibling calls for Thumb-1.
6568 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
6569 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
6571 (*call_insn, *call_value_insn): Don't use for Thumb-2.
6572 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
6574 (return): New expander.
6575 (*arm_return): New name for ARM return insn.
6576 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
6578 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
6580 * config.gcc (sparc64-*-rtems*): New target.
6582 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
6584 * tree.c (build_function_decl_skip_args): Fix grammar.
6585 (build_function_type_list_1): Fix typos, adjust formatting.
6587 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
6589 * tree.h: Include real.h and fixed-value.h as basic datatypes.
6590 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
6591 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
6592 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
6593 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
6594 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
6595 tree-pretty-print.c, tree-loop-distribution.c,
6596 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
6597 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
6598 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
6599 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
6600 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
6601 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
6602 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
6603 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
6604 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
6605 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
6606 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
6607 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
6608 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
6609 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
6610 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
6611 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
6612 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
6613 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
6614 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
6615 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
6616 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
6617 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
6618 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
6619 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
6620 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
6621 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
6622 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
6623 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
6624 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
6625 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
6626 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
6627 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
6628 config/score/score7.c, config/score/score.c, config/arm/arm.c,
6629 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
6630 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
6631 config/bfin/bfin.c: Clean up redundant includes.
6632 * Makefile.in: Update accordingly.
6634 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
6637 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
6638 statement has no arguments.
6640 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
6643 * varasm.c (emutls_decl): Merge attributes to new decl.
6645 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
6648 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
6649 around the uniquized constructor if its type requires a conversion.
6651 2010-05-21 Jakub Jelinek <jakub@redhat.com>
6654 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
6655 at -O0 goto_locus of any of the incoming edges differs from
6656 goto_locus of outgoing edge, or gimple_location of any of the
6659 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
6661 * ira.c (ira_non_ordered_class_hard_regs): Define.
6662 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
6663 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
6664 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
6665 cost of unaligned hard regs when allocating multi-reg pseudos.
6667 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
6669 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
6670 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
6671 for TARGET_NO_FLOAT.
6672 * config/mips/mips.c (mips_file_start): Expand conditional expression
6673 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
6674 (mips_override_options): Move -mno-float override -msoft-float and
6676 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
6677 Condition(TARGET_SUPPORTS_NO_FLOAT).
6678 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
6679 __mips_no_float here.
6680 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
6681 (TARGET_SUPPORTS_NO_FLOAT): Define.
6682 * config/mips/sdemtk.opt: Delete.
6684 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
6686 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
6688 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
6691 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
6692 * configure: Regenerate.
6693 * config.in: Regenerate.
6694 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
6695 instead of sahf only for 64bit targets.
6697 2010-05-20 Jakub Jelinek <jakub@redhat.com>
6700 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
6701 setup_ref_regs for DEBUG_INSNs.
6703 2010-05-20 Jan Hubicka <jh@suse.cz>
6706 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
6708 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
6711 * df-scan.c (df_ref_compare): Stabilize sort.
6713 2010-05-20 Jakub Jelinek <jakub@redhat.com>
6715 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
6716 argument. Don't use DW_OP_piece if offset is non-zero,
6717 put offset into second DW_OP_bit_piece argument.
6718 (dw_sra_loc_expr): Adjust callers. For memory expressions
6721 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
6724 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
6725 settings for 16-bit-constant "addo" alternative.
6727 2010-05-19 James E. Wilson <wilson@codesourcery.com>
6729 * config/mips/mips-dsp.md (add<DSPV:mode>3,
6730 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
6733 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
6734 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
6737 2010-05-19 Joseph Myers <joseph@codesourcery.com>
6739 * diagnostic.c (FLOAT, FFS): Don't undefine.
6740 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
6741 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
6744 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
6746 * combine.c (propagate_for_debug): Call make_compound_operation
6747 on the source value.
6748 (try_combine): When implementing a split chosen by find_split_point,
6749 either copy i2src or set it to null. Assert that i2src is not null
6750 before substituting into CALL_INSN_FUNCTION_USAGE.
6752 2010-05-19 Anatoly Sokolov <aesok@post.ru>
6754 * double-int.h (double_int_ior): New function.
6755 * tree.h (build_int_cst_wide_type): Remove.
6756 * tree.c (build_int_cst_wide_type): Remove.
6757 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
6758 of build_int_cst_wide_type.
6759 * stor-layout.c (set_sizetype): (Ditto.).
6760 * dojump.c (do_jump): Use build_int_cstu instead of
6761 build_int_cst_wide_type.
6763 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
6765 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
6766 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
6767 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
6768 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
6769 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
6770 propagate the 'data' argument to copy_tree_r.
6771 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
6772 Propagate 'data' argument to walk_tree.
6773 (copy_if_shared): New function.
6774 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
6775 (unmark_visited): New function.
6776 (unshare_body): Call copy_if_shared instead of doing it manually.
6777 (unvisit_body): Call unmark_visited instead of doing it manually.
6779 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
6781 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
6782 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
6783 * hooks.c: Likewise.
6784 * target-def.h (TARGET_FOLD_BUILTIN): Define to
6785 hook_tree_tree_int_treep_bool_null.
6786 * target.h (struct gcc_target): Update signature of fold_builtin
6788 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
6789 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
6790 instead of the call expression.
6791 (fold_builtin_call_array): Pass n and argarray directly.
6792 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
6794 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
6795 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
6796 `i' and use it in place of `arity'.
6797 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
6798 Dereference `args' directly.
6799 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
6801 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6803 * doc/sourcebuild.texi (Effective-Target Keywords): Document
6805 (Directives): Document optional dg-require-effective-target
6808 2010-05-19 Richard Guenther <rguenther@suse.de>
6811 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
6813 2010-05-19 Richard Guenther <rguenther@suse.de>
6815 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
6816 * common.opt (fwhopr=): New.
6817 * opts.c (common_handle_option): Handle OPT_fwhopr.
6818 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
6819 * collect2.c (main): Match -fwhopr*.
6820 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
6821 Execute ltrans stage in parallel when jobs is bigger than 1.
6823 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6825 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
6826 pentiumpro on Solaris 8/x86 with Sun as.
6827 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
6829 (gcc_cv_as_ix86_quad): Check for .quad directive.
6830 * configure: Regenerate.
6831 * config.in: Regenerate.
6832 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
6834 2010-05-19 Martin Jambor <mjambor@suse.cz>
6836 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
6837 also for indirect edges. Actual printing moved...
6838 (ipa_print_node_jump_functions_for_edge): ...here.
6839 (ipa_compute_jump_functions): Renamed to
6840 ipa_compute_jump_functions_for_edge and made static.
6841 (ipa_compute_jump_functions): New function.
6842 (make_edge_direct_to_target): Check if the number of arguments on
6843 the newly direct edge is the same as the number of parametrs of
6845 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
6846 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
6847 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6848 analysis functions unconditionally, call the new
6849 ipa_analyze_params_uses on the node instead of every edge.
6851 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
6853 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
6855 (dump_mem_ref): Adopt debug code to handle a tree as step. This
6856 also checks for a constant int vs. non-constant but
6857 loop-invariant steps.
6858 (find_or_create_group): Change the sort algorithm to only consider
6859 steps that are constant ints.
6860 (idx_analyze_ref): Adopt code to handle a tree instead of a
6861 HOST_WIDE_INT for step.
6862 (gather_memory_references_ref): Handle tree instead of int and be
6863 prepared to see a NULL_TREE.
6864 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
6865 prefetches if the step cannot be calculated at compile time.
6866 (issue_prefetch_ref): Issue prefetches for non-constant but
6867 loop-invariant steps.
6869 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6872 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6874 * tree.h (build_call_list): Remove.
6875 * tree.c (build_call_list): Remove.
6877 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6879 * tree.h (build_call_list): Remove.
6880 * tree.c (build_call_list): Remove.
6882 2010-05-18 Jan Hubicka <jh@suse.cz>
6884 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
6886 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
6888 PR rtl-optimization/43332
6889 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
6891 2010-05-18 Anatoly Sokolov <aesok@post.ru>
6893 * tree.h (build_int_cstu): Implement as static inline.
6894 * tree.c (build_int_cstu): Remove function.
6895 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
6898 2010-05-18 Richard Guenther <rguenther@suse.de>
6901 * lto-wrapper.c (verbose): New variable. Initialize from -v.
6902 (debug): Initialize from -save-temps.
6903 (collect_execute): Print command-line when verbose.
6904 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
6905 for ltrans invocation. Produce -dumpbase flag again.
6906 (process_args): Remove.
6908 * collect2.c (maybe_run_lto_and_relink): Only pass object
6909 files to lto-wrapper.
6910 * gcc.c (LINK_COMMAND_SPEC): Likewise.
6912 2010-05-18 Jan Hubicka <jh@suse.cz>
6914 * opts.c (decode_options): Do not disable whopr at ipa_cp.
6915 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
6917 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
6920 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
6922 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
6925 2010-05-18 Jakub Jelinek <jakub@redhat.com>
6928 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
6931 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
6933 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
6934 lto-macho as lto_binary_reader.
6936 * darwin.c (darwin_asm_named_section): Do not add assembler comment
6937 after .section directive; just print it before the directive instead.
6939 2010-05-17 Jan Hubicka <jh@suse.cz>
6941 * cgraph.c (cgraph_create_virtual_clone): Only check
6942 versionable_function_p when not in wpa and checking is enabled.
6943 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
6944 there are no more functions to materialize.
6946 2010-05-17 Jan Hubicka <jh@suse.cz>
6948 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
6949 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
6951 (output_cgraph): Call output_cgraph_opt_summary.
6952 (input_cgrpah): Call input_cgraph_opt_summary.
6953 (output_cgraph_opt_summary_p, output_node_opt_summary,
6954 input_node_opt_summary, input_cgraph_opt_section): New functions.
6955 * lto-section-in.c (lto_section_name): Add cgraphopt.
6956 * tree-inline.c (tree_function_versioning): Handle parm_num.
6957 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
6958 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
6960 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
6962 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
6963 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
6964 the insn to prefetch ratio heuristic to loops with known trip count.
6966 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
6968 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
6969 (schedule_prefetches): Do not generate a prefetch if the unroll factor
6970 is far from what is required by the prefetch.
6972 2010-05-17 Jan Hubicka <jh@suse.cz>
6974 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
6975 (ipcp_estimate_growth): Likewise.
6976 (ipcp_const_param_count): Likewise.
6977 (ipcp_insert_stage): Likewise.
6978 * ipa-prop.c (visit_load_for_mod_analysis): New function.
6979 (visit_store_addr_for_mod_analysis): Set used flag.
6980 (ipa_detect_param_modifications): Set used flag for SSE params;
6981 update use of walk_stmt_load_store_addr_ops.
6982 (ipa_print_node_params): Print used flag.
6983 (ipa_write_node_info): Stream used flag.
6984 (ipa_read_node_info): Likewise.
6985 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
6986 (ipa_is_param_used): New function.
6987 (lto_ipa_fixup_call_notes): Remove unused declaration.
6989 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6992 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
6993 * configure: Regenerate.
6994 * config.in: Regenerate.
6995 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
6996 !HAVE_AS_IX86_REP_LOCK_PREFIX.
6997 Don't emit whitespace.
6998 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
6999 (*rep_movsi): Likewise.
7000 (*rep_movsi_rex64): Likewise.
7001 (*rep_movqi): Likewise.
7002 (*rep_movqi_rex64): Likewise.
7003 (*rep_stosdi_rex64): Likewise.
7004 (*rep_stossi): Likewise.
7005 (*rep_stossi_rex64): Likewise.
7006 (*rep_stosqi): Likewise.
7007 (*rep_stosqi_rex64): Likewise.
7008 (*cmpstrnqi_nz_1): Use {%;} after repz.
7009 (*cmpstrnqi_nz_rex_1): Likewise.
7010 (*cmpstrnqi_1): Likewise.
7011 (*cmpstrnqi_rex_1): Likewise.
7012 (*strlenqi_1): Use {%;} after repnz.
7013 (*strlenqi_rex_1): Likewise.
7014 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
7015 (*sync_compare_and_swap<mode>): Likewise.
7016 (sync_double_compare_and_swap<mode>): Likewise.
7017 (*sync_double_compare_and_swapdi_pic): Likewise.
7018 (sync_old_add<mode>): Likewise.
7019 (sync_add<mode>): Likewise.
7020 (sync_sub<mode>): Likewise.
7021 (sync_<code><mode>): Likewise.
7023 2010-05-17 Martin Jambor <mjambor@suse.cz>
7025 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
7026 otr_token and polymorphic.
7027 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
7028 (cgraph_clone_edge): Copy the above fields.
7029 * tree.c (get_binfo_at_offset): New function.
7030 * tree.h (get_binfo_at_offset): Declare.
7031 * ipa-prop.h (enum jump_func_type): Added known_type jump function
7032 type, reordered items, updated comments.
7033 (union jump_func_value): Added base_type field, reordered fields.
7034 (enum ipa_lattice_type): Moved down in the file.
7035 (struct ipa_param_descriptor): New field polymorphic.
7036 (ipa_is_param_polymorphic): New function.
7037 * ipa-prop.c: Include gimple.h and gimple-fold.h.
7038 (ipa_print_node_jump_functions): Print known type jump functions.
7039 (compute_complex_pass_through): Renamed to...
7040 (compute_complex_assign_jump_func): this.
7041 (compute_complex_ancestor_jump_func): New function.
7042 (compute_known_type_jump_func): Likewise.
7043 (compute_scalar_jump_functions): Create known type and complex ancestor
7045 (ipa_note_param_call): New parameter polymorphic, set the corresponding
7046 flag in the call note accordingly.
7047 (ipa_analyze_call_uses): Renamed to...
7048 (ipa_analyze_indirect_call_uses): this. New parameter target, define
7049 variable var only in the block where it is used.
7050 (ipa_analyze_virtual_call_uses): New function.
7051 (ipa_analyze_call_uses): Likewise.
7052 (combine_known_type_and_ancestor_jfs): Likewise.
7053 (update_jump_functions_after_inlining): Implemented handling of a
7054 number of new jump function types combination.
7055 (print_edge_addition_message): Removed.
7056 (make_edge_direct_to_target): New function.
7057 (try_make_edge_direct_simple_call): Likewise.
7058 (try_make_edge_direct_virtual_call): Likewise.
7059 (update_call_notes_after_inlining): Renamed to...
7060 (update_indirect_edges_after_inlining): this. Moved edge creation for
7061 indirect calls to try_make_edge_direct_simple_call, also calls
7062 try_make_edge_direct_virtual_call for virtual calls.
7063 (ipa_print_node_params): Changed the header message.
7064 (ipa_write_jump_function): Stream also known type jump functions.
7065 (ipa_read_jump_function): Likewise.
7066 (ipa_write_indirect_edge_info): Stream new fields in
7067 cgraph_indirect_call_info.
7068 (ipa_read_indirect_edge_info): Likewise.
7069 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
7072 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7074 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
7076 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
7078 * tree.h (CALL_EXPR_ARGS): Delete.
7079 (call_expr_arglist): Delete.
7080 * tree.c (call_expr_arglist): Delete.
7081 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
7082 targetm.fold_builtin.
7083 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
7084 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
7085 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
7086 arglist parameter. Use CALL_EXPR_ARG.
7087 (picochip_expand_builtin_3op): Likewise.
7088 (picochip_expand_builtin_2opvoid): Likewise.
7089 (picochip_expand_array_get): Likewise.
7090 (picochip_expand_array_put): Likewise.
7091 (picochip_expand_array_testport): Likewise.
7092 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
7093 rather than arglist.
7094 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
7096 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
7097 than TREE_VALUE and TREE_CHAIN.
7098 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
7099 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
7102 2010-05-17 Jakub Jelinek <jakub@redhat.com>
7105 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
7106 to have no fallthru edge.
7109 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
7110 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
7111 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
7112 add BARRIER after previous bb if needed.
7114 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
7116 * tree.c (build_function_type_list_1): Remove bogus assert condition.
7118 2010-05-17 Alan Modra <amodra@gmail.com>
7120 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
7121 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
7122 with copy_reg rtx param.
7123 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
7124 Correct cases where code for ABI_V4 did not initialise the reg
7125 used to access frame. Also leave frame_reg_rtx as sp for large
7126 frames that save no regs.
7128 2010-05-17 Martin Jambor <mjambor@suse.cz>
7131 * tree-sra.c (create_access_replacement): New parameter rename, mark
7132 the replaement for renaming only when it is true.
7133 (get_access_replacement): Pass true in the rename parameter of
7134 create_access_replacement.
7135 (get_unrenamed_access_replacement): New function.
7136 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
7137 replacement declaration from it.
7139 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
7141 * function.c (try_fit_stack_local, add_frame_space): New static
7143 (assign_stack_local_1): Use them. Look for opportunities to use
7144 space previously wasted on alignment.
7145 * function.h (struct frame_space): New.
7146 (struct rtl_data): Add FRAME_SPACE_LIST member.
7147 * reload1.c (something_was_spilled): New static variable.
7148 (alter_reg): Set it.
7149 (reload): Test it in addition to testing if the frame size changed.
7151 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
7153 * config/s390/s390.c: Define sane prefetch settings and activate
7154 flag_prefetch_loop_arrays on -O3.
7155 * config/s390/s390.h: Declare that read can use write prefetch.
7157 2010-05-17 Jakub Jelinek <jakub@redhat.com>
7159 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
7162 2010-05-16 Jan Hubicka <jh@suse.cz>
7164 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
7165 function body; do not check stdarg field of struct function.
7167 2010-05-16 Jan Hubicka <jh@suse.cz>
7169 * cgraph.c (dump_cgraph_node): Dump versionable flag.
7170 * cgraph.h (cgraph_local_info): Add versionable flag.
7171 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
7172 (ipcp_versionable_function_p): Use it.
7173 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
7176 2010-05-16 Jan Hubicka <jh@suse.cz>
7178 * cgraph.c (cgraph_clone_node): Take decl argument and insert
7179 clone into hash when it is different from orig.
7180 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
7181 * cgraph.h (cgraph_clone_node): Update prototype.
7182 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
7183 (lto_cgraph_encoder_delete): Delete body map.
7184 (lto_cgraph_encoder_size): Move to header.
7185 (lto_cgraph_encoder_encode_body_p,
7186 lto_set_cgraph_encoder_encode_body): New.
7187 (lto_output_node): Do not take written_decls argument; output clone_of
7189 (add_node_to): Add include_body_argument; call
7190 lto_set_cgraph_encoder_encode_body on master of the clone.
7191 (add_references): Update use of add_node_to.
7192 (compute_ltrans_boundary): Likewise.
7193 (output_cgraph): Do not create written_decls bitmap.
7194 (input_node): Take nodes argument; stream in clone_of correctly.
7195 (input_cgraph_1): Update use of input_node.
7196 * lto-streamer-out.c (lto_output): Use encoder info to decide
7197 what bodies to output.
7198 * ipa-inline.c (cgraph_clone_inlined_nodes,
7199 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
7200 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
7201 (lto_cgraph_encoder_size): Define here.
7202 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
7205 2010-05-16 Richard Guenther <rguenther@suse.de>
7207 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
7209 * ipa-type-escape.c (gate_type_escape_vars): Run when
7210 -fipa-struct-reorg runs.
7211 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
7212 * common.opt (fipa-type-escape): Remove.
7214 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
7216 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
7217 (decode_options): Likewise.
7218 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
7220 2010-05-16 Jan Hubicka <jh@suse.cz>
7222 * ipa.c (function_and_variable_visibility): Also bring local all
7225 2010-05-16 Richard Guenther <rguenther@suse.de>
7227 * alias.c (nonoverlapping_memrefs_p): Remove use of
7228 IPA type-escape information.
7230 2010-05-16 Joseph Myers <joseph@codesourcery.com>
7232 * c-common.c (c_common_reswords): Add _Static_assert for C.
7233 * c-parser.c (c_token_starts_declaration,
7234 c_parser_next_token_starts_declaration,
7235 c_parser_static_assert_declaration_no_semi,
7236 c_parser_static_assert_declaration): New.
7237 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
7238 Handle static assertions if static_assert_ok.
7239 (c_parser_external_declaration, c_parser_declaration_or_fndef,
7240 c_parser_compound_statement_nostart, c_parser_label,
7241 c_parser_for_statement, c_parser_objc_methodprotolist,
7242 c_parser_omp_for_loop): All callers of
7243 c_parser_declaration_or_fndef changed.
7244 (c_parser_struct_declaration): Handle static assertions.
7245 (c_parser_compound_statement_nostart): Use
7246 c_parser_next_token_starts_declaration and
7247 c_token_starts_declaration to detect start of declarations.
7248 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
7251 2010-05-16 Anatoly Sokolov <aesok@post.ru>
7253 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7254 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7255 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7256 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7257 (mmix_function_outgoing_value): Rename to...
7258 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
7259 (mmix_function_value_regno_p): Make static.
7260 (mmix_libcall_value): New function.
7261 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
7262 mmix_function_value_regno_p): Remove declaration.
7264 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
7266 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
7267 BUILT_IN_ALLOCA if stack checking is enabled.
7269 2010-05-16 Richard Guenther <rguenther@suse.de>
7271 * var-tracking.c (vars_copy_1): Inline ...
7272 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
7273 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
7274 (variable_merge_over_cur): Adjust. Merge asserts.
7275 (variable_merge_over_src): Likewise.
7276 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
7277 (variable_post_merge_new_vals): Merge asserts.
7278 (variable_post_merge_perm_vals): Likewise.
7279 (find_mem_expr_in_1pdv): Likewise.
7280 (dataflow_set_different_value): Remove.
7281 (onepart_variable_different_p): Merge asserts.
7282 (variable_different_p): Likewise.
7283 (dataflow_set_different_1): Inline ...
7284 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
7285 (emit_notes_for_differences_1): Merge asserts.
7287 2010-05-16 Richard Guenther <rguenther@suse.de>
7289 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
7290 * optabs.c (libfunc_decl_hash): Likewise.
7291 * varasm.c (emutls_decl): Likewise.
7293 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
7295 * c-decl.c: Don't include gimple.h.
7296 (merge_decls): Do not copy gimple_body.
7298 2010-05-15 Jason Merrill <jason@redhat.com>
7300 * c.opt: Add -fnothrow-opt.
7302 2010-05-15 Jan Hubicka <jh@suse.cz>
7304 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
7306 * passes.c (ipa_write_summaries): Write all analyzed nodes.
7308 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
7310 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
7311 * Makefile.in: Add it.
7312 Fix all other Makefile dependencies for changes below.
7313 * tree.h: Include it instead of defining VEC primitives here.
7314 * gimple.h: Likewise.
7316 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
7317 * except.h: Include vecir.h, break dependence on tree.h.
7319 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
7321 * tree-iterator.c: ...to here.
7322 * tree-iterator.h: Fix file introduction comment. Add extern markers.
7324 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
7326 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
7327 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
7328 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
7329 tree-mudflap.h, and target.h.
7330 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
7331 predict.h, tree-inline.h, gimple.h, and langhooks.h.
7332 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
7333 Add FIXME for why gimple.h is still included (should be unnecessary
7334 since GCC 4.5 gimplification unit-at-a-time).
7335 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
7336 * c-pragma.c: Add FIXME for why function.h needs to be included just
7337 for cfun, at front-end level.
7338 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
7339 Do not include ggc.h, but include vecprim.h for VEC(char).
7340 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
7341 Explain why target.h is included.
7342 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
7343 Explain why gimple.h is included.
7344 * c-ppoutput.c: Do not include tm.h.
7345 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
7346 * c-parses.c: Explain why rtl.h is included, and that this (and only
7347 this) is also why tm.h must be included.
7348 Do not include except.h.
7349 * c-lang.c: Do not include ggc.h.
7351 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
7353 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
7355 2010-05-15 Joseph Myers <joseph@codesourcery.com>
7357 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
7358 unions by default if those structs and unions have no tags. Do
7359 not condition anonymous struct and unions handling on flag_iso.
7360 Allow anonymous structs and unions for C1X.
7361 (finish_struct): Do not diagnose lack of named fields when
7362 anonymous structs and unions present for C1X. Accept flexible
7363 array members in structure with anonymous structs or unions but no
7364 directly named fields.
7365 * doc/extend.texi (Unnamed Fields): Update.
7367 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
7369 * gimple.h (compare_field_offset): Rename into...
7370 (gimple_compare_field_offset): ...this.
7371 * gimple.c (compare_field_offset): Rename into...
7372 (gimple_compare_field_offset): ...this. Compare the full access if
7373 the offset is self-referential.
7374 (gimple_types_compatible_p): Adjust for above renaming.
7375 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
7376 DECL_NONADDRESSABLE_P flag of fields before merging them.
7378 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
7380 * tree.h (ctor_to_list): Delete.
7381 * tree.c (ctor_to_list): Delete.
7383 2010-05-15 Jan Hubicka <jh@suse.cz>
7385 * ipa-reference.c: Include toplev.h
7386 (is_proper_for_analysis): Only add to all_module_statics
7388 (write_node_summary_p, stream_out_bitmap,
7389 ipa_reference_write_optimization_summary,
7390 ipa_reference_read_optimization_summary): New.
7391 (struct ipa_opt_pass_d pass_ipa_reference): Add
7392 optimization summary streaming.
7393 * lto-cgraph.c (referenced_from_this_partition_p,
7394 reachable_from_this_partition_p): New functions.
7395 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
7396 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
7397 * opts.c (decode_options): Enable ipa_reference.
7398 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
7399 * lto-streamer.h (referenced_from_this_partition_p,
7400 reachable_from_this_partition_p): Declare.
7402 2010-05-15 Richard Guenther <rguenther@suse.de>
7404 PR tree-optimization/44038
7405 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
7406 taking the address of a V_C_E of a constant.
7408 2010-05-14 Jan Hubicka <jh@suse.cz>
7410 * tree.h (memory_identifier_string): Remove.
7411 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
7412 (ipa_reference_global_vars_info_d): Remove statics_not_read and
7413 statics_not_written.
7414 (ipa_reference_optimization_summary_d): New structure.
7415 (ipa_reference_optimization_summary_t): New type and vector.
7416 (ipa_reference_vars_info_d): Embedd structures instead of using
7418 (reference_vars_to_consider): Remove out of GGC space.
7419 (module_statics_escape): Remove.
7420 (global_info_obstack): Rename to ...
7421 (optimization_summary_obstack): ... this one.
7422 (initialization_status_t): Remove.
7423 (memory_identifier_string): Remove.
7424 (get_reference_vars_info): Fix indenting.
7425 (set_reference_vars_info): Likewise.
7426 (get_reference_optimization_summary): New.
7427 (set_reference_optimization_summary): New.
7428 (get_global_reference_vars_info): Remove.
7429 (ipa_reference_get_read_global): Remove.
7430 (ipa_reference_get_written_global): Remove.
7431 (ipa_reference_get_not_read_global): Update.
7432 (ipa_reference_get_not_written_global): Update.
7433 (is_proper_for_analysis): Outlaw addressable.
7434 (propagate_bits): Update for new datastructures.
7435 (analyze_variable): Remove.
7436 (init_function_info): Update for new datastructures.
7437 (clean_function_local_data): Remove.
7438 (clean_function): Remove.
7439 (copy_global_bitmap): Use optimizations_summary_obstack.
7440 (duplicate_node_data): Duplicate optimization summary only.
7441 (remove_node_data): Remove optimization summary only.
7442 (generate_summary): Do not analyze variables; do not compute
7443 module_statics_escape; do not prune solutions by it.
7444 (read_write_all_from_decl): Fix typos in comments.
7445 (propagate): Doscover readonly and nonaddressable first;
7446 update for new datastructures; share global bitmaps.
7447 * ipa-reference.h (ipa_reference_get_read_global,
7448 ipa_reference_get_written_global): Remove.
7449 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
7450 * Makefile.in: Remove ipa-refereference from GT files.
7452 2010-05-14 Jakub Jelinek <jakub@redhat.com>
7455 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
7456 for all SYMBOL_REF_DECLs.
7458 2010-05-14 Jan Hubicka <jh@suse.cz>
7460 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
7461 (varpool_all_refs_explicit_p): New inline function.
7462 * ipa-reference.c: Update comment.
7463 (module_statics_written): Remove.
7464 (get_static_decl): Remove.
7465 (ipa_init): Do not initialize module_statics_written.
7466 (analyze_function): Likewise.
7467 (generate_summary): Likewise; do not compute module_statics_readonly
7468 and do not update variable flags.
7469 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
7470 * ipa.c: Inlucde flags.h
7471 (cgraph_local_node_p): New.
7472 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
7473 promote functions to local.
7474 (ipa_discover_readonly_nonaddressable_vars): New function.
7475 (function_and_variable_visibility): Use cgraph_local_node_p.
7476 * varpool.c (varpool_finalize_decl): Set force_output for
7477 DECL_PRESERVE_P vars.
7479 2010-05-14 Jan Hubicka <jh@suse.cz>
7481 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
7483 2010-05-14 Richard Guenther <rguenther@suse.de>
7485 PR tree-optimization/44119
7486 * tree-ssa-pre.c (eliminate): Properly mark replacement of
7487 a PHI node necessary.
7489 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
7491 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
7493 2010-05-14 Jason Merrill <jason@redhat.com>
7496 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
7497 (gimple_call_set_nothrow): New.
7498 * gimple.c (gimple_build_call_from_tree): Call it.
7499 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
7502 * gimplify.c (gimplify_seq_add_stmt): No longer static.
7503 * gimple.h: Declare it.
7504 * gimple.c (gimple_build_eh_filter): No ops.
7506 2010-05-14 Jan Hubicka <jh@suse.cz>
7508 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
7509 nodes already in queue.
7510 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
7513 2010-05-14 Jakub Jelinek <jakub@redhat.com>
7516 * cfgexpand.c (expand_debug_expr): If non-memory op0
7517 has BLKmode, return NULL.
7519 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
7521 * config.gcc: Add support for --with-cpu option for bdver1.
7522 * config/i386/i386.h (TARGET_BDVER1): New macro.
7523 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
7524 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
7525 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
7526 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
7527 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
7528 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
7529 (processor_type): Add PROCESSOR_BDVER1.
7530 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
7531 processor_type in config/i386/i386.h.
7532 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
7533 movaps <reg, reg> instead of movapd <reg, reg> when replacing
7534 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
7535 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
7536 to emit packed xor instead of packed double/packed integer
7537 xor for SSE and AVX when moving a zero value.
7538 * config/i386/sse.md: Add check for
7539 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
7540 movapd/movdqa for SSE and AVX.
7541 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
7542 single logical operations i.e and, or and xor instead of packed double
7543 logical operations for SSE and AVX.
7544 * config/i386/i386-c.c (ix86_target_macros_internal):
7545 Add PROCESSOR_BDVER1.
7546 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
7547 (has_fma4, has_xop): New.
7548 * config/i386/i386.c (bdver1_cost): New variable.
7549 (m_BDVER1): New macro.
7550 (m_AMD_MULTIPLE): Add m_BDVER1.
7551 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
7552 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
7553 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
7554 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
7555 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
7556 x86_tune_sse_partial_reg_dependency,
7557 x86_tune_sse_unaligned_load_optimal,
7558 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
7559 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
7560 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
7561 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
7562 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
7563 Enable/disable for bdver1.
7564 (processor_target_table): Add bdver1_cost.
7565 (cpu_names): Add bdver1.
7566 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
7567 processor_alias_table.
7568 (ix86_expand_vector_move_misalign): Change.
7569 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
7570 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
7571 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
7572 of movupd/movdqu for SSE and AVX.
7573 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
7574 (ix86_tune_adjust_cost): Add code for bdver1.
7575 (standard_sse_constant_opcode): Add check for
7576 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
7577 of packed double xor for SSE and AVX.
7579 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
7581 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
7584 2010-05-14 Tristan Gingold <gingold@adacore.com>
7586 * toplev.c (default_debug_hooks): Remove this variable.
7587 (process_options): Remove assignments to default_debug_hooks.
7589 2010-05-14 Martin Jambor <mjambor@suse.cz>
7591 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
7592 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
7593 * langhooks.h (struct lang_hooks_for_decls): Removed field
7595 * tree.c (free_lang_data): Remove assignment to
7596 lang_hooks.fold_obj_type_ref.
7597 * tree.def (OBJ_TYPE_REF): Update comment.
7599 2010-05-14 Richard Guenther <rguenther@suse.de>
7601 PR tree-optimization/44124
7602 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
7604 2010-05-14 Alan Modra <amodra@gmail.com>
7607 * config/rs6000/rs6000.c (struct machine_function): Reorder
7608 fields for better packing. Add lr_save_state.
7609 (rs6000_ra_ever_killed): Return lr_save_state if set.
7610 (rs6000_emit_eh_reg_restore): Set lr_save_state.
7612 2010-05-13 Jan Hubicka <jh@suse.cz>
7614 * varpool.c (decide_is_variable_needed): Drop code checking
7615 TREE_SYMBOL_REFERENCED.
7617 2010-05-13 Jan Hubicka <jh@suse.cz>
7619 * final.c (output_addr_const): Do not call mark_decl_referenced.
7620 * cgraphunit.c (process_function_and_variable_attributes): Use
7621 mark_needed_node dirrectly.
7622 (assemble_thunk): Do not call mark_decl_referenced.
7624 2010-05-13 Anatoly Sokolov <aesok@post.ru>
7626 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
7628 2010-05-13 Jeff Law <law@redhat.com>
7630 * ira-conflicts.c (print_allocno_conflicts): New function broken out
7632 (print_conflicts): Call print_allocno_conflicts.
7634 2010-05-13 Jakub Jelinek <jakub@redhat.com>
7637 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
7640 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
7642 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
7643 t-mingw-w64 or t-mingw-w32 for multilib configuration.
7644 * config/i386/t-mingw-w32: New.
7645 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
7647 2010-05-13 Martin Jambor <mjambor@suse.cz>
7649 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
7651 * gimple-fold.c (get_base_binfo_for_type): New function.
7652 (gimple_get_relevant_ref_binfo): Likewise.
7653 (gimple_fold_obj_type_ref_known_binfo): Likewise.
7654 (gimple_fold_obj_type_ref): Likewise.
7655 (fold_gimple_call): Simplify condition for folding virtual calls
7656 and call gimple_fold_obj_type_ref.
7657 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
7658 (gimple_fold_obj_type_ref_known_binfo): Likewise.
7660 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
7662 * config/rs6000/rs6000-protos.h
7663 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
7664 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
7665 (rs6000_debug_mode_dependent_address)
7666 (rs6000_mode_dependent_address_ptr): Likewise.
7668 2010-05-13 Jakub Jelinek <jakub@redhat.com>
7671 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
7673 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
7674 * tree-sra.c (create_access_replacement): Call unshare_expr before
7675 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
7676 * dwarf2out.c: Include tree-flow.h.
7677 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
7678 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
7679 Handle DW_OP_bit_piece.
7680 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
7681 construct_piece_list, adjust_piece_list): New functions.
7682 (add_var_loc_to_decl): Handle SRA optimized variables.
7683 Adjust for var_loc_note to loc field renaming.
7684 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
7685 in VAR_LOCATION note.
7686 (new_loc_descr_op_bit_piece): New function.
7687 (dw_sra_loc_expr): New function.
7688 (dw_loc_list): Use it. Don't handle the last range after the
7689 loop, handle it inside of the loop. Adjust for var_loc_note
7690 to loc field renaming.
7691 (add_location_or_const_value_attribute): Only special case
7692 single entry loc lists if loc is NOTE_P. Adjust for
7693 var_loc_note to loc field renaming.
7694 (dwarf2out_var_location): Don't set newloc->var_loc_note
7695 and newloc->next here.
7697 2010-05-12 Jan Hubicka <jh@suse.cz>
7699 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
7701 * cgraph.h (cgraph_only_called_directly_p,
7702 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
7703 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
7704 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
7706 * ipa.c (cgraph_remove_unreachable_nodes): Use
7707 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
7709 * tree-inline.c (copy_bb): Check address_taken flag.
7710 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
7711 externally_visible flag.
7713 2010-05-12 Jason Merrill <jason@redhat.com>
7717 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
7718 * sdbout.c (plain_type_1): Likewise.
7719 * dwarf2out.c (is_base_type): Likewise.
7720 (gen_type_die_with_usage): Likewise. Generate
7721 DW_TAG_unspecified_type for any LANG_TYPE.
7723 2010-05-12 Jan Hubicka <jh@suse.cz>
7725 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
7727 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
7728 (cgraph_clone_edge): Update.
7729 (cgraph_node_remove_callees): Remove indirect calls too.
7730 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
7731 (cgraph_create_indirect_edge): Update prototype.
7732 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
7733 is_proper_for_analysis.
7734 (add_new_function, visited_nodes, function_insertion_hook_holder,
7735 get_local_reference_vars_info, mark_address_taken, mark_address,
7736 mark_load, mark_store, check_asm_memory_clobber, check_call,
7737 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
7738 (ipa_init): Do not initialize visited_nodes;
7739 function_insertion_hook_holder.
7740 (analyze_variable): Rewrite.
7741 (analyze_function): Rewrite.
7742 (copy_local_bitmap): Remove.
7743 (duplicate_node_dat): Do not duplicate local info.
7744 (generate_summary): Simplify to only walk cgraph.
7745 (write_node_summary_p, ipa_reference_write_summary,
7746 ipa_reference_read_summary): Remove.
7747 (propagate): Do not remove function insertion;
7749 (pass_ipa_reference): NULLify summary handling fields.
7750 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
7751 (input_edge): Input ecf_flags.
7752 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
7753 (update_indirect_edges_after_inlining): Ignore edges with unknown
7756 2010-05-12 Sriraman Tallam <tmsriram@google.com>
7758 * implicit-zee.c: New file.
7759 * tree-pass.h (pass_implicit_zee): Declare.
7760 * passes.c (init_optimization_passes): Add zee pass.
7761 * common.opt (fzee): New flag.
7762 * timevar.def (TV_ZEE): Define.
7763 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
7765 * Makefile.in (implicit-zee.o): Add new build file.
7767 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
7768 Nathan Froyd <froydnj@codesourcery.com>
7770 * c-common.c (sync_resolve_params): Remove write-only variable.
7772 2010-05-12 Anatoly Sokolov <aesok@post.ru>
7774 * target.h (struct gcc_target): Add mode_dependent_address_p field.
7775 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
7776 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
7777 * targhooks.c (default_mode_dependent_address_p): New function.
7778 * targhooks.h (default_mode_dependent_address_p): Declare function.
7779 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
7780 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
7781 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
7782 target hook. Change return type to bool.
7783 * recog.h (mode_dependent_address_p): Change return type to bool.
7785 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
7786 Nathan Froyd <froydnj@codesourcery.com>
7788 * tree-mudflap.c (build_function_type_0, build_function_type_1,
7789 build_function_type_2, build_function_type_3): Remove.
7790 (mudflap_init): Use build_function_type_list.
7792 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
7793 Nathan Froyd <froydnj@codesourcery.com>
7795 * coverage.c (build_fn_info_value): Call build_constructor instead of
7796 build_constructor_from_list.
7797 (build_ctr_info_value): Likewise.
7798 (build_gcov_info): Likewise.
7800 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
7802 * tree.c (build_constructor): Compute TREE_CONSTANT for the
7803 resultant constructor.
7804 (build_constructor_single): Don't set TREE_CONSTANT.
7805 (build_constructor_from_list): Don't compute TREE_CONSTANT.
7807 2010-05-12 Jan Hubicka <jh@suse.cz>
7809 * cgraph.h (struct varpool_node): Add aux.
7810 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
7811 * varpool.c (varpool_remove_node): Do not remove initializer.
7812 (varpool_reset_queue): Export.
7813 (varpool_finalize_decl): Volatile vars are forced to be output.
7814 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
7816 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
7817 process_references, varpool_can_remove_if_no_refs): New functions.
7818 (cgraph_remove_unreachable_nodes): Handle variables too.
7820 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
7823 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
7825 2010-05-12 Jakub Jelinek <jakub@redhat.com>
7828 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
7829 change value of ORT_TASK.
7830 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
7831 (omp_notice_threadprivate_variable): New function.
7832 (omp_notice_variable): Call it for threadprivate variables.
7833 If enclosing ctx is a task, print enclosing task rather than
7834 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
7835 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
7836 if task has untied clause.
7839 * dwarf2out.c (base_type_die): Don't add name attribute here.
7840 (modified_type_die): Instead of sizetype use
7841 its underlying original type. If a DW_TAG_base_type doesn't
7842 have name added, add __unknown__.
7843 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
7844 always call force_type_die instead.
7846 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
7848 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
7849 for __stack_chk_guard.
7851 2010-05-11 Jakub Jelinek <jakub@redhat.com>
7853 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
7854 don't call start_source_file debug hook here...
7855 (finish_options): ... but here, after outputting predefined and
7856 command line defines and undefs.
7859 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
7861 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
7862 optimizing away empty bb with no successors, move over its
7863 footer chain to fallthru predecessor.
7864 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
7865 (rtl_split_edge): For asm goto call patch_jump_insn even if
7866 splitting fallthru edge.
7869 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
7870 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
7871 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
7872 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
7876 * c-parser.c (c_parser_expression): Mark LHS of a comma
7877 expression as read if it is a decl, handled component or
7878 COMPOUND_EXPR with that on the RHS.
7879 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
7880 if it is a decl or handled component.
7882 2010-05-11 Jan Hubicka <jh@suse.cz>
7884 * lto-symtab.c (lto_symtab_free): New function.
7885 * lto-streamer.h (lto_symtab_free): Declare.
7887 2010-05-11 Jan Hubicka <jh@suse.cz>
7889 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
7890 that if function is needed it is reachable.
7891 (lto_output_node): See if it the function is reachable or referenced.
7892 (output_cgraph): Update call of lto_output_node.
7893 * lto-streamer.h (reachable_from_other_partition_p): Declare.
7895 2010-05-11 Jan Hubicka <jh@suse.cz>
7897 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
7900 2010-05-11 Jan Hubicka <jh@suse.cz>
7902 PR tree-optimize/44063
7903 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
7905 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
7907 (estimate_function_body_sizes): Compute sizes even when disregarding.
7909 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
7911 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
7913 2010-05-11 Jan Hubicka <jh@suse.cz>
7915 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
7916 into every boundary.
7918 2010-05-11 Jan Hubicka <jh@suse.cz>
7920 * matrix-reorg.c (matrix_reorg): Rebuild edges.
7922 2010-05-11 Jan Hubicka <jh@suse.cz>
7924 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
7925 lto_streamer_cache_delete): Put nodes into heap.
7926 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
7929 2010-05-11 Jan Hubicka <jh@suse.cz>
7931 * cgraphbuild.c (cgraph_rebuild_references): New.
7932 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
7934 * cgraph.h (cgraph_rebuild_references): Declare.
7935 * tree-inline.c (tree_function_versioning): Use it.
7936 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
7938 2010-05-11 Jan Hubicka <jh@suse.cz>
7940 * cgraph.c: Include ipa-utils.h
7941 (cgraph_create_virtual_clone): Update references.
7942 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
7944 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
7946 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
7947 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
7950 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
7952 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
7954 2010-05-11 Jakub Jelinek <jakub@redhat.com>
7956 * gcc.c (execute): For -### don't quote arguments that
7957 contain just alphanumerics and _/-. characters.
7958 * doc/invoke.texi: Document that change for -###.
7961 * df-problems.c (struct dead_debug): Add to_rescan field.
7962 (dead_debug_init): Clear to_rescan field.
7963 (dead_debug_finish): Rescan all debug insns in to_rescan
7964 bitmap and free the bitmap.
7965 (dead_debug_insert_before): Instead of rescanning debug insns
7966 immediately queue their rescanning until dead_debug_finish.
7967 (df_note_bb_compute): After dead_debug_add do continue instead
7970 2010-05-10 Jakub Jelinek <jakub@redhat.com>
7973 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
7974 clear also INSN_REG_USE_LIST.
7976 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7978 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
7980 2010-05-10 Jan Hubicka <jh@suse.cz>
7982 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
7985 2010-05-10 Jan Hubicka <jh@suse.cz>
7987 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
7989 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
7990 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
7991 (lto_streamer_cache_create): Init alloc pool.
7992 (lto_streamer_cache_delete): Free alloc pool.
7993 * lto-streamer.h: Include alloc pool.
7994 (lto_streamer_cache_d): Use alloc pool.
7995 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
7997 2010-05-10 Jan Hubicka <jh@suse.cz>
7999 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
8000 * cgraphbuild.c: Include except.h
8001 (record_type_list, record_eh_tables): New function.
8002 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
8004 2010-05-10 Jan Hubicka <jh@suse.cz>
8006 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
8007 __frame_dummy_init_array_entry, force_to_data): Attribute as used
8010 2010-05-10 Michael Matz <matz@suse.de>
8012 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
8013 (can_reassociate_p): Use FLOAT_TYPE_P.
8014 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
8015 (vect_force_simple_reduction): ... this.
8016 * tree-parloops.c (gather_scalar_reductions): Use
8017 vect_force_simple_reduction.
8018 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
8019 vect_is_simple_reduction, add modify argument, if true rewrite
8020 "a-b" into "a+(-b)".
8021 (vect_is_simple_reduction, vect_force_simple_reduction): New
8023 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
8025 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
8026 Vladimir Makarov <vmakarov@redhat.com>
8028 PR rtl-optimization/44012
8029 * ira-build.c (remove_unnecessary_allocnos): Nullify
8030 regno_allocno_map of the removed allocno.
8032 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8034 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
8036 * configure: Regenerate.
8038 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8040 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
8042 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
8043 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
8045 * configure: Regenerate.
8047 2010-05-10 Richard Guenther <rguenther@suse.de>
8049 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
8050 marked if the entry identifier is marked.
8052 2010-05-10 Richard Guenther <rguenther@suse.de>
8054 * c-common.c (struct c_common_attributes): Add fnspec attribute.
8055 (handle_fnspec_attribute): New function.
8056 * gimple.h (gimple_call_return_flags): Declare.
8057 (gimple_call_arg_flags): Likewise.
8058 * gimple.c (gimple_call_arg_flags): New function.
8059 (gimple_call_return_flags): Likewise.
8060 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
8062 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
8064 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
8065 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
8067 (make_heapvar_for): ... this new function.
8068 (handle_rhs_call): Handle fnspec attribute argument specifiers.
8069 (handle_lhs_call): Likewise.
8070 (find_func_aliases): Adjust.
8072 2010-05-10 Richard Guenther <rguenther@suse.de>
8074 PR tree-optimization/44050
8075 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
8077 2010-05-10 Wei Guozhi <carrot@google.com>
8080 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
8082 2010-05-09 Joseph Myers <joseph@codesourcery.com>
8085 * c-typeck.c (lookup_field): Take a type directly. Update
8087 (build_component_ref): Update call to lookup_field.
8088 (set_init_label): Use lookup_field to find initialized field.
8089 Handle returned list of fields like a sequence of designators.
8091 2010-05-09 Richard Guenther <rguenther@suse.de>
8094 * fold-const.c (tree_single_nonzero_warnv_p): Properly
8095 handle &FUNCTION_DECL.
8097 2010-05-09 Joseph Myers <joseph@codesourcery.com>
8100 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
8101 structures and unions recursively.
8102 (detect_field_duplicates): Move duplicate detection with a hash to
8103 detect_field_duplicates_hash. Always use a hash if anonymous
8104 structures or unions are present.
8105 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
8108 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
8111 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
8112 detect Atom, Core 2 and Core i7.
8114 2010-05-09 Richard Guenther <rguenther@suse.de>
8116 * gcc.c (store_arg): Handle temporary file deletion for
8119 2010-05-09 Richard Guenther <rguenther@suse.de>
8122 * ipa-inline.c (estimate_function_body_sizes): Return after
8123 disregarding inline limits.
8125 2010-05-09 Richard Guenther <rguenther@suse.de>
8127 * gcc.c (store_arg): Revert last change.
8129 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
8132 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
8133 (optimize_ops_list): Call it.
8135 2010-05-08 Richard Guenther <rguenther@suse.de>
8137 PR tree-optimization/44030
8138 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
8139 NECESSARY flag if we propagate from a inserted expression.
8141 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8143 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
8144 domain types as equal if they are both PLACEHOLDER_EXPRs.
8146 2010-05-08 Richard Guenther <rguenther@suse.de>
8148 * lto-wrapper.c (run_gcc): Remove linker output from
8149 command line for LTRANS invocation.
8151 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
8153 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8154 lto-macho as lto_binary_reader.
8155 * target.h (struct gcc_target): New hooks lto_start and lto_end.
8156 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
8157 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
8158 in lto_start and lto_end calls.
8159 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
8161 (scan_prog_file): Update is_elf_or_coff call.
8162 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
8164 * collect2.c (main): Fix enum comparison.
8166 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
8168 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
8169 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
8170 and TARGET_ASM_LTO_END.
8171 * darwin.c: Include obstack.h and lto-streamer.h.
8172 (lto_section_names_offset, lto_section_names_obstack,
8173 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
8175 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
8176 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
8177 to a temporary file.
8178 (darwin_asm_lto_end): New function. Restore asm_out_file.
8179 (darwin_asm_named_section): For LTO sections, replace the name with
8180 the offset of the section name in a string table, and build this
8182 (darwin_file_start): Initialize global vars for LTO support.
8183 (darwin_file_end): If output to asm_out_file was redirected, append it
8184 to the proper asm_out_file here. Add the section names section.
8186 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
8188 * c-pragma.c (pending_weak_d, pending_weak): New.
8189 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
8190 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
8191 handle_pragma_weak): Update the uses of pending_weaks.
8193 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8195 PR documentation/44016
8196 * doc/standards.texi (Standards): Link to unversioned
8197 cxx0x_status.html page.
8199 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
8202 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
8203 in addition to TREE_USED, to avoid "set but unused" warnings.
8205 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
8207 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
8208 (is_loop_prefetching_profitable): Do not insert prefetches
8209 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
8210 times the prefetch ahead distance.
8212 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
8214 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
8215 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
8216 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
8219 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
8221 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
8222 a diagnostic info when the insn-to-mem ratio is too small.
8224 2010-05-07 Richard Guenther <rguenther@suse.de>
8226 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
8228 (store_arg): Queue temp_filename for deletion instead of
8231 2010-05-07 Richard Guenther <rguenther@suse.de>
8233 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
8234 (run_gcc): Handle LTRANS phase invocation.
8235 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
8237 2010-05-07 Jakub Jelinek <jakub@redhat.com>
8239 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
8240 this is also meaningful on PARM_DECLs and RESULT_DECLs.
8242 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8244 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
8246 2010-05-07 Richard Guenther <rguenther@suse.de>
8248 PR tree-optimization/44020
8249 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
8250 code when PRE is not yet initialized.
8252 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8254 * config/mips/dbxmdebug.h: Remove.
8255 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
8257 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
8259 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
8260 with null pointer and also warn about ordered comparison of zero with
8263 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8265 * graphite-blocking.c
8266 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
8267 * graphite-clast-to-gimple.c
8268 (clast_to_gcc_expression): Same.
8269 (precision_for_value): Same.
8270 (precision_for_interval): Same.
8271 (gcc_type_for_interval): Same.
8272 (graphite_create_new_guard): Same.
8273 (compute_bounds_for_level): Same.
8274 (graphite_create_new_loop_guard): Same.
8275 * graphite-interchange.c
8276 (build_linearized_memory_access): Same.
8277 (pdr_stride_in_loop): Same.
8278 (memory_strides_in_loop_1): Same.
8279 (memory_strides_in_loop): Same.
8280 (extend_scattering): Same.
8281 (psct_scattering_dim_for_loop_depth): Same.
8282 (pbb_number_of_iterations): Same.
8284 (debug_iteration_domains): Same.
8286 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8287 (ppl_set_inhomogeneous_gmp): Same.
8288 (ppl_strip_loop): Same.
8289 (ppl_lexico_compare_linear_expressions): Same.
8290 (ppl_read_polyhedron_matrix): Same.
8291 (ppl_max_for_le_pointset): Same.
8293 (ppl_read_polyhedron_matrix): Same.
8294 (tree_int_to_gmp): Same.
8295 (gmp_cst_to_tree): Same.
8296 (ppl_set_inhomogeneous): Same.
8297 (ppl_set_inhomogeneous_tree): Same.
8298 (ppl_set_coef): Same.
8299 (ppl_set_coef_tree): Same.
8300 * graphite-sese-to-poly.c
8301 (build_pbb_scattering_polyhedrons): Same.
8302 (build_scop_scattering): Same.
8303 (scan_tree_for_params_right_scev): Same.
8304 (scan_tree_for_params): Same.
8305 (find_params_in_bb): Same.
8306 (find_scop_parameters): Same.
8307 (add_upper_bounds_from_estimated_nit): Same.
8308 (build_loop_iteration_domains): Same.
8309 (add_condition_to_domain): Same.
8310 (pdr_add_memory_accesses): Same.
8312 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8314 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
8315 CLooG's value_* macros to their respective mpz_* counterparts.
8316 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
8317 (graphite_create_new_loop_guard): Same.
8318 * graphite-interchange.c (build_linearized_memory_access): Same.
8319 (pdr_stride_in_loop): Same.
8320 (memory_strides_in_loop_1): Same.
8321 (1st_interchange_profitable_p): Same.
8322 * graphite-poly.c (extend_scattering): Same.
8323 (psct_scattering_dim_for_loop_depth): Same.
8324 (pbb_number_of_iterations): Same.
8325 (pbb_number_of_iterations_at_time): Same.
8326 * graphite-poly.h (new_1st_loop): Same.
8327 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
8328 (oppose_constraint): Same.
8329 (insert_constraint_into_matrix): Same.
8330 (ppl_set_inhomogeneous_gmp): Same.
8331 (ppl_set_coef_gmp): Same.
8332 (ppl_strip_loop): Same.
8333 (ppl_lexico_compare_linear_expressions): Same.
8334 (ppl_max_for_le_pointset): Same.
8335 (ppl_min_for_le_pointset): Same.
8336 (ppl_build_realtion): Same.
8337 * graphite-ppl.h (gmp_cst_to_tree): Same.
8338 (ppl_set_inhomogeneous): Same.
8339 (ppl_set_inhomogeneous_tree): Same.
8340 (ppl_set_coef): Same.
8341 (ppl_set_coef_tree): Same.
8342 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
8343 (build_scop_scattering): Same.
8344 (add_value_to_dim): Same.
8345 (scan_tree_for_params_right_scev): Same.
8346 (scan_tree_for_params_int): Same.
8347 (scan_tree_for_params): Same.
8348 (find_params_in_bb): Same.
8349 (find_scop_parameters): Same.
8350 (add_upper_bounds_from_estimated_nit): Same.
8351 (build_loop_iteration_domains): Same.
8352 (create_linear_expr_from_tree): Same.
8353 (add_condition_to_domain): Same.
8354 (pdr_add_memory_accesses): Same.
8356 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
8357 Jason Merrill <jason@redhat.com>
8359 * c-common.c (c_common_reswords): Add nullptr.
8360 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
8361 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
8362 (gen_type_die_with_usage): Likewise.
8363 * dbxout.c (dbxout_type): Likewise.
8364 * sdbout.c (plain_type_1): Likewise.
8366 2010-05-06 Jason Merrill <jason@redhat.com>
8368 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
8369 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
8371 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
8373 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
8374 stripping WITH_SIZE_EXPR.
8375 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
8378 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8380 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
8381 list of obsolete configurations.
8382 Disabled check for obsolete configurations.
8383 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
8384 Removed support for previous versions.
8385 * config/mips/iris.h: Removed.
8386 * config/mips/iris5.h: Removed.
8387 * config/mips/iris6.h: Merged old iris.h contents.
8388 (TARGET_IRIX): Removed.
8389 (DRIVER_SELF_SPECS): Removed mabi=32.
8390 (IDENT_ASM_OP): Removed undef.
8391 (STARTFILE_SPEC): Removed mabi=32.
8392 (ENDFILE_SPEC): Likewise.
8393 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
8394 (MACHINE_TYPE): Update for IRIX 6.5.
8395 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
8396 TARGET_IRIX by TARGET_IRIX6.
8397 (mips_file_start): Likewise.
8398 (mips_output_external): Remove IRIX 5/6 O32 support.
8399 (mips_output_function_prologue): Likewise.
8400 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
8402 (TARGET_CPU_CPP_BUILTINS): Likewise.
8403 (TARGET_IRIX): Removed.
8404 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
8405 (MULTILIB_DIRNAMES): Removed 32.
8406 (MULTILIB_OSDIRNAMES): Removed ../lib.
8407 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
8408 (Specific, mips-sgi-irix5): Document removal.
8409 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
8410 Remove references to older IRIX 6 releases and the O32 ABI.
8412 2010-05-06 Jakub Jelinek <jakub@redhat.com>
8415 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
8416 instead of DF_REF_REAL_REG.
8418 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
8421 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
8422 handling to still return true for x64 targets.
8424 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
8426 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
8428 2010-05-06 Jan Hubicka <jh@suse.cz>
8430 PR tree-optimization/43791
8431 * ipa-inline.c (update_caller_keys): Remove bogus
8432 disregard_inline_limits check.
8434 2010-05-06 Michael Matz <matz@suse.de>
8436 PR tree-optimization/43984
8437 * tree-ssa-pre.c (inserted_phi_names): Remove.
8438 (inserted_exprs): Change to bitmap.
8439 (create_expression_by_pieces): Set bits, don't append to vector.
8440 (insert_into_preds_of_block): Don't handle inserted_phi_names.
8441 (eliminate): Don't look at inserted_phi_names, remove deleted
8442 insns from inserted_exprs.
8443 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
8444 (init_pre, fini_pre): Allocate and free bitmaps.
8445 (execute_pre): Insert insns on edges before elimination.
8447 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
8449 * tree.c (initializer_zerop): Handle STRING_CST.
8451 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
8454 * doc/invoke.texi (Wimplicit): Document as C only.
8455 * opts.c (common_handle_option): Add argument kind.
8456 (handle_option): Rename as read_cmdline_option. Factor out code to...
8457 (handle_option): ... here. New.
8458 (handle_options): Rename as read_cmdline_options.
8459 (decode_options): Update call.
8460 (set_option): Use option index instead of option pointer. Classify
8461 diagnostics correctly.
8462 (enable_warning_as_error): Call handle_option.
8463 * opts.h (set_option): Update declaration.
8464 (handle_option): Declare.
8465 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
8466 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
8467 * c-opts.c (set_Wimplicit): Delete.
8468 (c_family_lang_mask): New static constant.
8469 (c_common_handle_option): Add argument kind. Use handle_option
8470 instead of set_Wimplicit.
8471 (c_common_post_options): warn_implicit and warn_implicit_int
8472 are disabled by default.
8473 * c-common.c (warn_implicit): Do not define here.
8474 * c-common.h (warn_implicit): Do not declare here.
8475 (c_common_handle_option): Update declaration.
8476 * lto-opts.c (lto_reissue_options): Update call to set_option.
8478 2010-05-06 Richard Guenther <rguenther@suse.de>
8480 PR tree-optimization/43571
8481 * domwalk.c (walk_dominator_tree): Walk the dominator
8482 sons in more optimal order.
8484 2010-05-06 Richard Guenther <rguenther@suse.de>
8486 PR tree-optimization/43934
8487 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
8488 (stmt_cost): Likewise.
8489 (extract_true_false_args_from_phi): New helper.
8490 (determine_max_movement): For PHI nodes verify we can hoist them
8491 and compute their cost.
8492 (determine_invariantness_stmt): Handle PHI nodes.
8493 (move_computations_stmt): Likewise. Hoist PHI nodes in
8494 if-converted form using COND_EXPRs.
8495 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
8496 (tree_ssa_lim): Likewise.
8497 * tree-flow.h (tree_ssa_lim): Adjust prototype.
8498 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
8500 2010-05-06 Richard Guenther <rguenther@suse.de>
8502 PR tree-optimization/43987
8503 * tree-ssa-structalias.c (could_have_pointers): For possibly
8504 address-taken variables force pointers to be recorded.
8505 (create_variable_info_for_1): Likewise.
8506 (push_fields_onto_fieldstack): Pass in wheter all fields
8508 (find_func_aliases): Query types instead of vars whether
8509 they contain pointers where appropriate.
8511 2010-05-06 Jan Hubicka <jh@suse.cz>
8513 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
8514 (record_reference, mark_address, mark_load, mark_store): Record
8516 (record_references_in_initializer): Update call of record_references.
8517 (rebuild_cgraph_edges): Remove all references before rebuiding.
8518 * cgraph.c (cgraph_create_node): Clear ref list.
8519 (cgraph_remove_node): Remove references.
8520 (dump_cgraph_node): Dump references.
8521 (cgraph_clone_node): Clone references.
8522 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
8523 (struct cgraph_node, varpool_node): Add ref_lst.
8524 * ipa-ref.c: New file.
8525 * ipa-ref.h: New file.
8526 * ipa-ref-inline.h: New file.
8527 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
8528 (referenced_from_other_partition_p): New function.
8529 (lto_output_varpool_node): Take set arugment; call
8530 referenced_from_other_partition.
8531 (lto_output_ref): New.
8532 (add_references): New.
8534 (output_cgraph): Compute boundary based on references; output refs.
8535 (output_varpool): Accept cgraph_node_set argument.
8538 (input_cgraph): Call input_refs.
8539 * lto-section-in.c (lto_section_name): Add refs.
8540 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
8541 (ipa-ref.o): New file.
8542 * varpool.c (varpool_node): Clear ipa ref list.
8543 (varpool_remove_node): Remove references.
8544 (dump_varpool_node): Dump references.
8545 (varpool_assemble_decl): Only compile finalized ones.
8546 (varpool_extra_name_alias): Initialize ref list.
8547 * lto-streamer.c (lto-get_section_name): Add .refs section.
8548 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
8549 (referenced_from_other_partition_p): Declared.
8551 2010-05-06 Ira Rosen <irar@il.ibm.com>
8553 PR tree-optimization/43901
8554 * tree-vect-stmts.c (vectorizable_call): Assert that vector
8555 type is not NULL if it's transformation phase, and return
8556 FALSE if it's analysis.
8557 (vectorizable_conversion, vectorizable_operation,
8558 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
8560 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
8562 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
8564 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
8566 * config/mips/mips-protos.h
8567 (mips_small_register_classes_for_mode_p): Delete prototype.
8569 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
8571 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
8572 * config/arm/arm.c (multiple_operation_profitable_p,
8573 compute_offset_order): New static functions.
8574 (load_multiple_sequence, store_multiple_sequence): Use them.
8575 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
8576 memory offsets, not register numbers.
8577 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
8579 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
8581 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
8582 (get_pending_sizes, put_pending_size, put_pending_sizes):
8583 Update the uses of pending_sizes.
8584 * c-decl.c (store_parm_decls): Likewise.
8585 * c-tree.h (struct c_arg_info): Likewise.
8586 * tree.h: Update the prototype for get_pending_sizes and
8589 2010-05-05 Jason Merrill <jason@redhat.com>
8592 * c-common.c (handle_aligned_attribute): Respect
8593 ATTR_FLAG_TYPE_IN_PLACE.
8596 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
8597 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
8598 (TARGET_INITIALIZER): Use it.
8599 * c-common.c (attribute_takes_identifier_p): Call it.
8600 * c-common.h: Update prototype.
8601 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
8602 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
8604 2010-05-05 Jakub Jelinek <jakub@redhat.com>
8607 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
8608 DW_ID_down_case for Fortran compilation units.
8610 2010-05-05 Jan Hubicka <jh@suse.cz>
8612 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
8615 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
8617 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
8618 a variable-sized RESULT_DECL.
8620 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
8622 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
8624 2010-05-05 Jason Merrill <jason@redhat.com>
8627 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
8629 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
8631 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
8632 Jakub Jelinek <jakub@redhat.com>
8635 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
8636 (dead_debug_init, dead_debug_finish): New functions.
8637 (dead_debug_add, dead_debug_insert_before): Likewise.
8638 (df_note_bb_compute): Initialize a dead_debug object, add dead
8639 debug uses to it, insert debug bind insns before death insns,
8640 reset debug insns that refer to pending uses at the end.
8641 * rtl.h (make_debug_expr_from_rtl): New prototype.
8642 * varasm.c (make_debug_expr_from_rtl): New function.
8644 2010-05-05 Jan Hubicka <jh@suse.cz>
8646 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
8647 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
8648 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
8649 lto_varpool_encoder_deref, lto_varpool_encoder_size,
8650 lto_varpool_encoder_encode_initializer_p,
8651 lto_set_varpool_encoder_encode_initializer): New functions.
8652 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
8653 call output_varpool.
8654 (input_varpool_node): Do not always set analyzed.
8655 (input_cgraph_1): Return vector of cgraph nodes.
8656 (input_varpool_1): Return vector of varpools.
8657 (input_cgraph): Free the vectors.
8658 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8659 output only initializers needed.
8660 (lto_output): Only call output_cgraph.
8661 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
8662 * lto-section-out.c (lto_new_out_decl_state): Initialize
8663 state->varpool_node_encoder.
8664 * lto-streamer.h (lto_varpool_encoder_d): New.
8665 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
8666 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
8667 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
8668 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
8669 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
8671 (output_varpool, input_varpool): Remove declarations.
8673 2010-05-05 Jan Hubicka <jh@suse.cz>
8675 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
8676 with body can prevail.
8678 2010-05-05 Jan Hubicka <jh@suse.cz>
8680 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
8683 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8685 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
8687 * gengtype.h (erro_at_line): Constify pos argument.
8689 * gengtype.c: Include hashtab.h.
8690 (enum gc_used): Document GC_MAYBE_POINTED_TO.
8691 (error_at_line): Constify pos argument.
8692 (do_typedef): Initialize p->opt field.
8693 (get_file_gtfilename): Fix comment typo.
8694 (struct walk_type_data): Constify line field.
8695 (get_output_file_for_structure): New function.
8696 (write_local_func_for_structure): Constify orig_s argument.
8697 Use get_output_file_for_structure.
8698 (write_func_for_structure): Use get_output_file_for_structure.
8699 (INDENT): New define.
8700 (dump_pair, dump_type, dump_type_list, dump_typekind)
8701 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
8702 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
8704 (seen_types): New variable.
8705 (main): New variable do_dump. Process "-d" command line option.
8706 Call dump_everything if dump requested.
8708 2010-05-05 Jakub Jelinek <jakub@redhat.com>
8710 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
8711 in a temporary instead of invoking the macro multiple times.
8712 (track_expr_p): Likewise.
8714 2010-05-04 Neil Vachharajani <nvachhar@google.com>
8716 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
8718 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
8719 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
8720 conditions for printing notes.
8721 * common.opt (-Wcoverage-mismatch): Allow negative, default to
8722 true, update documentation.
8723 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
8725 2010-05-04 Jakub Jelinek <jakub@redhat.com>
8728 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
8731 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
8734 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
8735 (*sse_prologue_save_insn1): Likewise.
8736 (SSE prologue save splitter): Likewise.
8738 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
8740 * tree.c (free_lang_data_in_one_sizepos): New inline function.
8741 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
8742 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
8743 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
8744 all decls. Call it on DECL_FIELD_OFFSET of fields.
8745 (find_decls_types_r): Follow DECL_VALUE_EXPR.
8746 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
8748 2010-05-04 Martin Jambor <mjambor@suse.cz>
8750 * tree-sra.c (build_access_from_expr_1): The first parameter type
8751 changed to simple tree.
8752 (build_access_from_expr): Likewise, gsi parameter was eliminated.
8753 (scan_assign_result): Renamed to assignment_mod_result, enum elements
8755 (build_accesses_from_assign): Removed all parameters except for a
8756 simple gimple statement. Now returns a simple bool.
8757 (scan_function): All non-analysis parts moved to separate functions
8758 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
8759 parameters and updated both callers.
8760 (sra_modify_expr): Removed parameter data.
8761 (sra_modify_function_body): New function.
8762 (perform_intra_sra): Call sra_modify_function_body to modify the
8764 (replace_removed_params_ssa_names): Parameter data changed into
8766 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
8767 changed the parameter dont_convert to convert with the opposite
8769 (sra_ipa_modify_assign): Parameter data changed into adjustments
8770 vector, return value changed to bool.
8771 (ipa_sra_modify_function_body): New function.
8772 (sra_ipa_reset_debug_stmts): Updated a comment.
8773 (modify_function): Use ipa_sra_modify_function_body to modify function
8776 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
8779 * alias.c (true_dependence): Handle the same VALUE in x and mem.
8780 (canon_true_dependence): Likewise.
8781 (write_dependence_p): Likewise.
8783 2010-05-04 Jan Hubicka <jh@suse.cz>
8785 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
8786 * cgraphbuild.c: Include ipa-utils.h
8787 (record_reference_ctx): New struct.
8788 (record_reference): Simplify to work on initializers; not statements.
8789 (mark_address, mark_load, mark_store): New.
8790 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
8792 (record_references_in_initializer): Update use of record_reference.
8793 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
8796 2010-05-04 Jan Hubicka <jh@suse.cz>
8798 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
8799 node will be removed anyway.
8800 (lto_varpool_replace_node): Allow also unanalyzed nodes;
8801 relink aliases of node into prevailing node.
8802 * varpool.c (varpool_remove_node): Remove aliases properly;
8803 when removing node, remove all its aliases too; remove DECL_INITIAL
8804 of removed node; ggc_free the varpool node.
8806 2010-05-04 Richard Guenther <rguenther@suse.de>
8808 PR tree-optimization/43879
8809 * tree-ssa-structalias.c (alias_get_name): Use
8810 DECL_ASSEMBLER_NAME if available.
8811 (create_function_info_for): Return the varinfo node.
8812 (ipa_pta_execute): Associate same-body aliases and extra names
8813 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
8815 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
8817 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
8819 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
8822 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
8823 only if HONOR_REG_ALLOC_ORDER is not defined.
8825 2010-05-04 Richard Guenther <rguenther@suse.de>
8827 PR tree-optimization/43949
8828 * tree-vrp.c (extract_range_from_binary_expr): Only handle
8831 2010-04-26 Jason Merrill <jason@redhat.com>
8833 * c.opt (-fstrict-enums): New.
8834 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
8836 2010-05-03 David Ung <davidu@mips.com>
8837 James E. Wilson <wilson@codesourcery.com>
8839 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
8840 emit the trap instruction before the divide for TUNE_74K.
8842 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
8844 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
8845 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
8846 based on the above, for new target hook.
8848 * hooks.c (hook_bool_mode_true): New generic hook.
8849 * hooks.h (hook_bool_mode_true): Add prototype.
8851 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
8853 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
8854 target hook, set to hook_bool_mode_false.
8855 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
8856 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
8857 with targetm.small_register_classes_for_mode_p.
8858 (find_reusable_reload): Likewise.
8859 (combine_reloads): Likewise.
8860 * reload1.c (reload_as_needed): Likewise.
8861 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
8862 * ifcvt.c (noce_process_if_block, check_cond_move_block,
8863 dead_or_predicable): Likewise.
8864 * regmove.c (optimize_reg_copy_1): Likewise.
8865 * calls.c (prepare_call_address): Likewise.
8866 (precompute_register_parameters): Likewise.
8868 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
8870 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
8871 implementation of the hook that considers all register classes
8872 small except for SH64.
8873 (sh_override_options): Use the new hook.
8874 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
8877 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
8879 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
8880 implementation of the hook that considers all register classes
8882 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
8885 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
8887 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
8888 implementation of the hook that considers all register classes
8890 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
8893 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
8895 * config/m32c/m32c.h: Likewise.
8896 * config/pdp11/pdp11.h: Likewise.
8897 * config/avr/avr.h: Likewise.
8898 * config/xtensa/xtensa.h: Likewise.
8899 * config/m68hc11/m68hc11.h: Likewise.
8900 * config/mn10300/mn10300.h: Likewise.
8901 * config/mcore/mcore.h: Likewise.
8902 * config/h8300/h8300.h: Likewise.
8903 * config/bfin/bfin.h: Likewise.
8905 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
8906 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
8908 2010-05-03 Anatoly Sokolov <aesok@post.ru>
8910 * double-int.h (tree_to_double_int): Remove macro.
8911 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
8912 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
8913 (tree_to_double_int): New function.
8914 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
8916 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
8918 2010-05-03 Richard Guenther <rguenther@suse.de>
8920 PR tree-optimization/43971
8921 * tree-ssa-structalias.c (get_constraint_for_1): Fix
8922 constraints in the !flag_delete_null_pointer_checks case.
8924 2010-05-03 Jakub Jelinek <jakub@redhat.com>
8927 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
8928 result mode matches original rtl mode.
8930 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
8933 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
8935 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8937 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
8938 when processing flag options.
8940 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8942 * gcov-iov.c (main): Change format string placeholder
8943 from %#08x to 0x%08x.
8944 * genchecksum.c (dosum): Change format string placeholder
8945 from %#02x to 0x%02x.
8947 2010-05-02 Richard Guenther <rguenther@suse.de>
8949 PR tree-optimization/43879
8950 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
8952 2010-05-02 Bruno Haible <bruno@clisp.org>
8954 * doc/extend.texi (Function Attributes): Fix a typo.
8956 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8959 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
8960 placeholder from 0x%x to %#x.
8961 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
8962 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
8963 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
8964 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
8965 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
8966 * config/i386/i386.c (ix86_target_string): Ditto.
8967 * config/i386/i386.c (output_pic_addr_const): Ditto.
8968 (print_operand): Ditto.
8970 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8972 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
8973 placeholder from 0x%x to %#x.
8974 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
8975 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
8976 (ASM_OUTPUT_DEBUG_DATA): Ditto.
8977 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
8978 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
8979 * optc-gen.awk: Ditto.
8980 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
8981 (HOST_WIDE_INT_PRINT_HEX): Ditto.
8982 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
8983 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
8985 2010-05-01 Anatoly Sokolov <aesok@post.ru>
8987 * target.h (struct calls): Add function_value_regno_p field.
8988 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
8989 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
8990 * targhooks.c (default_function_value_regno_p): New function.
8991 * targhooks.h (default_function_value_regno_p): Declare function.
8992 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
8993 * builtins.c. (apply_result_size): (Ditto.).
8994 * combine.c. (likely_spilled_retval_p): (Ditto.).
8995 * mode-switching.c. Include 'target.h'.
8996 (create_pre_exit): Use function_value_regno_p hook.
8997 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
8998 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
8999 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
9001 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
9002 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
9003 (ix86_function_value_regno_p): Declare as static, change argument
9004 type to const unsigned int.
9005 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
9007 2010-05-01 Richard Guenther <rguenther@suse.de>
9009 PR tree-optimization/43949
9010 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
9012 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
9014 2010-05-01 Anatoly Sokolov <aesok@post.ru>
9016 * rtl.h (CONST_DOUBLE_P): Define.
9017 (rtx_to_double_int): Declare.
9018 * emit-rtl.c (rtx_to_double_int): New function.
9019 * dwarf2out.c (insert_double): New function.
9020 (loc_descriptor, add_const_value_attribute): Clean up, use
9021 rtx_to_double_int and insert_double functions.
9023 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
9025 * doc/extend.texi (Inline): Add missing return keyword to examples.
9026 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
9029 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
9031 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
9032 the variable part of the offset as well. Use highest_pow2_factor for
9033 all alignment checks.
9035 2010-04-30 Richard Guenther <rguenther@suse.de>
9037 PR tree-optimization/43879
9038 * tree-ssa-structalias.c (type_could_have_pointers): Functions
9041 2010-04-30 Jan Hubicka <jh@suse.cz>
9043 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
9045 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
9047 2010-04-30 Jan Hubicka <jh@suse.cz>
9049 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
9051 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
9052 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
9053 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
9054 cgraph_node_set_needs_ltrans_p): Remove.
9056 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
9058 * sdbout.c: Include vec.h, do not include varray.h.
9059 (deferred_global_decls, sdbout_global_decl,
9060 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
9061 * toplev.c: Do not include varray.h.
9062 (dump_memory_report): Do not dump VARRAY statistics.
9063 * gengtype.c (open_base_file): Ignore varray.h.
9064 * Makefile.in: Update for abovementioned changes.
9065 Remove all traces of varray.c and varray.h.
9066 * varray.c: Remove file.
9067 * varray.h: Remove file.
9069 2010-04-30 Jan Hubicka <jh@suse.cz>
9071 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
9074 2010-04-30 Jan Hubicka <jh@suse.cz>
9076 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
9079 2010-04-30 Richard Guenther <rguenther@suse.de>
9081 * tree-ssa-structalias.c (get_constraint_for_1): Generate
9082 constraints for CONSTRUCTOR.
9084 2010-04-30 Richard Guenther <rguenther@suse.de>
9087 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
9088 first after all lowering passes.
9090 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
9092 * toplev.c: Include varray.h for statistics dumping.
9093 * tree.h: Do not declare varray_head_tag.
9094 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
9095 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
9096 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
9097 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
9098 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
9099 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
9100 c-common.c, c-common.h, reg-stack.c, basic-block.h,
9101 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
9103 * Makefile.in: Update for abovementioned changes.
9105 2010-04-30 Jakub Jelinek <jakub@redhat.com>
9108 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
9110 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
9112 * config/picochip/picochip.c (picochip_legitimize_address): Define.
9113 Use this function to do machine-specific conversion.
9114 (picochip_legitimize_reload_address): Likewise.
9115 (picochip_legitimate_address_p): Check valid base register only if
9117 (picochip_check_conditional_copy): Check for modw only if opnd is
9119 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
9120 to call the function in c.
9121 * config/picochip/picochip-protos.h
9122 (picochip_legitimize_reload_address): Define.
9123 * config/picochip/picochip.md (supported_compare1): Define.
9125 2010-04-30 Jan Hubicka <jh@suse.cz>
9127 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
9128 (cgraph_global_info): Remove inlined.
9129 (LTO_cgraph_tag_names): Remove.
9130 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
9131 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
9132 simplify cgraph tags and document.
9133 (lto_output_node): Use only LTO_cgraph_unavail_node and
9134 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
9135 for_functions_valid, global info, process and output flags.
9136 (input_overwrite_node): Initialize estimated stack size and
9137 estimated growth. Do not read flags we no longer store.
9138 (input_node): Likewise do not read info no longer stored.
9139 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
9142 2010-04-30 Richard Guenther <rguenther@suse.de>
9144 PR tree-optimization/43879
9145 * tree-ssa-structalias.c (get_constraint_for_1): Properly
9146 handle non-zero initializers.
9148 2010-04-30 Richard Guenther <rguenther@suse.de>
9150 * builtins.c (fold_builtin_1): Delete free (0).
9152 2010-04-29 Jan Hubicka <jh@suse.cz>
9154 * gengtype.c (open_base_files): Add lto-streamer.h
9155 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
9156 (pass_ipa_cp): GGC collect.
9157 * toplev. (compile_file): Do not output symbols.
9158 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
9159 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
9160 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
9161 * lto-section-in.c: Include ggc.h
9162 (lto_new_in_decl_state): Alloc in GGC.
9163 (lto_delete_in_decl_state): Likewise.
9164 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
9167 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
9170 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
9171 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
9172 (HONOR_REG_ALLOC_ORDER): Describe new macro.
9173 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
9174 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
9175 account only if HONOR_REG_ALLOC_ORDER is not defined.
9176 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
9177 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
9179 2010-04-29 Jon Grant <04@jguk.org>
9181 * collect2.c (vflag): Change type from int to bool.
9183 (helpflag): New global bool.
9184 (main): Set vflag and debug with boolean, not integer truth values.
9185 Accept new "--help" option and output usage text if found.
9186 * collect2.h (vflag): Update prototype.
9189 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
9192 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
9194 2010-04-29 Richard Guenther <rguenther@suse.de>
9197 * plugin.h (invoke_plugin_callbacks): Annotate arguments
9198 with ATTRIBUTE_UNUSED.
9200 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
9203 * config/i386/i386.c (get_some_local_dynamic_name): Replace
9204 INSN_P with NONDEBUG_INSN_P.
9205 (distance_non_agu_define): Likewise.
9206 (distance_agu_use): Likewise.
9208 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
9210 From Dominique d'Humieres <dominiq@lps.ens.fr>
9212 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
9215 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
9217 * plugin.h (invoke_plugin_callbacks): New inline function.
9218 * plugin.c (flag_plugin_added): New global flag.
9219 (add_new_plugin): Initialize above flag.
9220 (invoke_plugin_callbacks): Rename to ...
9221 (invoke_plugin_callbacks_full): ... this.
9223 2010-04-28 Jan Hubicka <jh@suse.cz>
9225 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
9226 (lto_varpool_replace_node): New.
9227 (lto_symtab_resolve_symbols): Resolve varpool nodes.
9228 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
9229 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
9230 * cgraph.h (varpool_node_ptr): New type.
9231 (varpool_node_ptr): New vector.
9232 (varpool_node_set_def): New structure.
9233 (varpool_node_set): New type.
9234 (varpool_node_set): New vector.
9235 (varpool_node_set_element_def): New structure.
9236 (varpool_node_set_element, const_varpool_node_set_element): New types.
9237 (varpool_node_set_iterator): New type.
9238 (varpool_node): Add prev pointers, add used_from_other_partition,
9240 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
9241 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
9242 varpool_get_node, varpool_remove_node): Declare.
9243 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
9244 varpool_node_set_size): New inlines.
9245 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
9246 * tree-pass.h (varpool_node_set_def): Forward declare.
9247 (ipa_opt_pass_d): Summary writting takes vnode sets too.
9248 (ipa_write_optimization_summaries): Update prototype.
9249 * ipa-cp.c (ipcp_write_summary): Update.
9250 * ipa-reference.c (ipa_reference_write_summary): Update.
9251 * lto-cgraph.c (lto_output_varpool_node): New static function.
9252 (output_varpool): New function.
9253 (input_varpool_node): New static function.
9254 (input_varpool_1): New function.
9255 (input_cgraph): Input varpool.
9256 * ipa-pure-const.c (pure_const_write_summary): Update.
9257 * lto-streamer-out.c (lto_output): Update, output varpool too.
9258 (write_global_stream): Kill WPA hack.
9259 (produce_asm_for_decls): Update.
9260 (output_alias_pair_p): Handle variables.
9261 (output_unreferenced_globals): Output only needed partition of varpool.
9262 * ipa-inline.c (inline_write_summary): Update.
9263 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
9265 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
9266 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
9267 varpool_node_set_new, varpool_node_set_add,
9268 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
9269 debug_varpool_node_set): New functions.
9270 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
9271 (execute_one_pass): Process new decls too.
9272 (ipa_write_summaries_2): Pass around vsets.
9273 (ipa_write_summaries_1): Likewise.
9274 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
9276 (ipa_write_optimization_summaries_1): Pass around vsets.
9277 (ipa_write_optimization_summaries): Likewise.
9278 * varpool.c (varpool_get_node): New.
9279 (varpool_node): Update doubly linked lists.
9280 (varpool_remove_node): New.
9281 (dump_varpool_node): More dumping.
9282 (varpool_enqueue_needed_node): Update doubly linked lists.
9283 (decide_is_variable_needed): Kill ltrans hack.
9284 (varpool_finalize_decl): Kill lto hack.
9285 (varpool_assemble_decl): Skip decls in other partitions.
9286 (varpool_assemble_pending_decls): Update doubly linkes lists.
9287 (varpool_empty_needed_queue): Likewise.
9288 (varpool_extra_name_alias): Likewise.
9289 * lto-streamer.c (lto_get_section_name): Add vars section.
9290 * lto-streamer.h (lto_section_type): Update.
9291 (output_varpool, input_varpool): Declare.
9293 2010-04-28 Mike Stump <mikestump@comcast.net>
9295 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
9297 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
9299 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
9300 record or union type with RECORD_OR_UNION_TYPE_P predicate.
9301 (lto_input_ts_type_tree_pointers): Likewise.
9302 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
9303 (lto_output_ts_type_tree_pointers): Likewise.
9305 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
9307 Uniquization of constants at the Tree level
9308 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
9309 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
9311 (tree_output_constant_def): Declare.
9312 * gimplify.c (gimplify_init_constructor): When using block copy, first
9313 uniquize the constant constructor on the RHS.
9314 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
9315 DECL_IN_CONSTANT_POOL flag.
9316 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
9317 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
9319 (assemble_variable): Deal with symbols belonging to the tree constant
9321 (get_constant_section): Add ALIGN parameter and simplify.
9322 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
9323 (assemble_constant_contents): Use the expression of the VAR_DECL.
9324 (output_constant_def_contents): Use the alignment of the VAR_DECL.
9325 (tree_output_constant_def): New global function.
9326 (mark_constant): Use the expression of the VAR_DECL.
9327 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
9329 (output_object_block): Likewise and assemble the expression.
9331 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
9333 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
9334 hash_tree, eq_tree): New tree hash table.
9335 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
9336 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
9337 lto_orig_address_remove): Reimplement.
9339 2010-04-28 Xinliang David Li <davidxl@google.com>
9342 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
9343 (compute_uninit_opnds_pos): New function.
9344 (is_non_loop_exit_postdominating): New function.
9345 (compute_control_dep_chain): New function.
9346 (find_pdom): New function.
9347 (convert_control_dep_chain_into_preds): New function.
9348 (find_predicates): New function.
9349 (find_control_equiv_block): New function.
9350 (collect_phi_def_edges): New function.
9351 (find_def_preds): New function.
9352 (find_dom): New function.
9353 (dump_predicates): New function.
9354 (get_cmp_code): New function.
9355 (is_value_included_in): New function.
9356 (find_matching_predicate_in_rest_chains): New function.
9357 (use_pred_not_overlap_with_undef_path_pred): New function.
9358 (is_use_properly_guarded): New function.
9359 (normalize_cond_1): New function.
9360 (is_and_or_or): New function.
9361 (normalize_cond): New function.
9362 (is_gcond_subset_of): New function.
9363 (is_subset_of_any): New function.
9364 (is_or_set_subset_of): New function.
9365 (is_and_set_subset_of): New function.
9366 (is_norm_cond_subset_of): New function.
9367 (is_pred_expr_subset_of): New function.
9368 (is_pred_chain_subset_of): New function.
9369 (is_included_in): New function.
9370 (is_superset_of): New function.
9371 (find_uninit_use): New function.
9372 (warn_uninitialized_phi): New function.
9373 (compute_possibly_undefined_names): New function.
9374 (ssa_undefined_value_p): New function.
9375 (execute_late_warn_uninitialized): New function.
9376 * tree-ssa.c (ssa_undefined_value_p): Removed.
9377 (warn_uninit): Changed to extern.
9378 (warn_uninitialized_phi): Removed.
9379 (warn_uninitialized_vars): Changed to extern.
9380 (execute_late_warn_uninitialized): Removed
9381 * tree-flow.h: Add new prototypes.
9382 * timevar.def: Add new time variable.
9383 * Makefile.in: Add new build file.
9385 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
9387 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
9390 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9393 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
9395 2010-04-28 Martin Jambor <mjambor@suse.cz>
9397 * cgraph.h (struct cgraph_node): New field indirect_calls.
9398 (struct cgraph_indirect_call_info): New type.
9399 (struct cgraph_edge): Removed field indirect_call. New fields
9400 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
9401 (cgraph_create_indirect_edge): Declare.
9402 (cgraph_make_edge_direct): Likewise.
9403 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
9404 * ipa-prop.h (struct ipa_param_call_note): Removed.
9405 (struct ipa_node_params): Removed field param_calls.
9406 (ipa_create_all_structures_for_iinln): Declare.
9407 * cgraph.c: Described indirect edges and uids in initial comment.
9408 (cgraph_add_edge_to_call_site_hash): New function.
9409 (cgraph_edge): Search also among the indirect edges, use
9410 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
9411 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
9412 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
9414 (initialize_inline_failed): Assign a reason to indirect edges.
9415 (cgraph_create_edge_1): New function.
9416 (cgraph_create_edge): Moved some functionality to
9417 cgraph_create_edge_1.
9418 (cgraph_create_indirect_edge): New function.
9419 (cgraph_edge_remove_callee): Add an assert checking for
9421 (cgraph_edge_remove_caller): Special-case indirect edges.
9422 (cgraph_remove_edge): Likewise.
9423 (cgraph_set_edge_callee): New function.
9424 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
9425 (cgraph_make_edge_direct): New function.
9426 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
9427 the declaration of the call statement matches.
9428 (cgraph_node_remove_callees): Special-case indirect edges.
9429 (cgraph_clone_edge): Likewise.
9430 (cgraph_clone_node): Clone also the indirect edges.
9431 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
9432 indirect_call, dump count of indirect_calls edges.
9433 * ipa-prop.c (iinlining_processed_edges): New variable.
9434 (ipa_note_param_call): Create indirect edges instead of
9435 creating notes. New parameter node.
9436 (ipa_analyze_call_uses): New parameter node, pass it on to
9437 ipa_note_param_call.
9438 (ipa_analyze_stmt_uses): Likewise.
9439 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
9440 (print_edge_addition_message): Work on edges rather than on notes.
9441 (update_call_notes_after_inlining): Likewise, renamed to
9442 update_indirect_edges_after_inlining.
9443 (ipa_create_all_structures_for_iinln): New function.
9444 (ipa_free_node_params_substructures): Do not free notes.
9445 (ipa_edge_duplication_hook): Propagate bits within
9446 iinlining_processed_edges bitmap.
9447 (ipa_node_duplication_hook): Do not duplicate notes.
9448 (free_all_ipa_structures_after_ipa_cp): Renamed to
9449 ipa_free_all_structures_after_ipa_cp.
9450 (free_all_ipa_structures_after_iinln): Renamed to
9451 ipa_free_all_structures_after_iinln.
9452 (ipa_write_param_call_note): Removed.
9453 (ipa_read_param_call_note): Removed.
9454 (ipa_write_indirect_edge_info): New function.
9455 (ipa_read_indirect_edge_info): Likewise.
9456 (ipa_write_node_info): Do not stream notes, do stream information
9458 (ipa_read_node_info): Likewise.
9459 (lto_ipa_fixup_call_notes): Removed.
9460 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
9461 * ipa-inline.c (pass_ipa_inline): Likewise.
9462 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
9463 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
9464 * tree-inline.c (copy_bb): Removed an unnecessary double check for
9466 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
9468 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
9469 (output_cgraph): Stream also indirect edges.
9470 (lto_output_edge): Added capability to stream indirect edges.
9471 (input_edge): Likewise.
9472 (input_cgraph_1): Likewise.
9473 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
9476 2010-04-28 Richard Guenther <rguenther@suse.de>
9478 PR tree-optimization/43879
9479 PR tree-optimization/43909
9480 * tree-ssa-structalias.c (struct variable_info): Add
9481 only_restrict_pointers flag.
9482 (new_var_info): Initialize it. Increment stats.total_vars here.
9483 (create_function_info_for): Do not increment stats.total_vars here.
9484 (get_function_part_constraint): Fix build with C++.
9485 (insert_into_field_list): Remove.
9486 (push_fields_onto_fieldstack): Properly merge fields.
9487 (create_variable_info_for): Split and simplify.
9488 (create_variable_info_for_1): New piece.
9489 (intra_create_variable_infos): Properly make restrict constraints
9492 2010-04-28 Richard Guenther <rguenther@suse.de>
9495 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
9497 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
9498 Jan Hubicka <hubicka@ucw.cz>
9500 * doc/invoke.texi (-Wsuggest-attribute=const,
9501 -Wsuggest-attribute=pure): Document.
9502 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
9503 (function_always_visible_to_compiler_p,
9504 suggest_attribute, warn_function_pure, warn_function_const):
9506 (check_call): Improve debug info.
9507 (analyze_function): Do not check availability.
9508 (add_new_function): Check availability.
9509 (propagate): Output warnings.
9510 (skip_function_for_local_pure_const): New function.
9511 (local_pure_const): Use it; output warnings.
9512 * common.opt (Wsuggest-attribute=const,
9513 Wsuggest-attribute=pure): New.
9515 2010-04-27 Jakub Jelinek <jakub@redhat.com>
9517 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
9518 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
9519 or DW_CFA_def_cfa_offset{,_sf}.
9521 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
9523 * tree.h: Fix truncated long macros.
9525 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
9527 * collect2.c (TARGET_64BIT): Redefine to target's default.
9528 * tlink.c: Likewise.
9529 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
9530 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
9531 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
9532 for underscoring __USER_LABEL_PREFIX__.
9533 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
9534 (SUB_LINK_ENTRY32): New.
9535 (SUB_LINK_ENTRY64): New.
9536 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
9537 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
9538 (SUB_LINK_ENTRY64): New.
9539 (SUB_LINK_ENTRY): New.
9540 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
9541 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
9542 x64 target is choosen.
9543 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
9544 * configure: Regenerated.
9545 * configure.ac (leading-mingw64-underscores): Option added.
9547 2010-04-27 Jan Hubicka <jh@suse.cz>
9549 * doc/invoke.texi (-fipa-profile): Document.
9550 * opts.c (decode_options): Enable ipa-profile at -O1.
9551 * timevar.def (TV_IPA_PROFILE): Define.
9552 * common.opt (fipa-profile): Add.
9553 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
9555 (cgraph_propagate_frequency): Handle only local ones.
9556 * tree-pass.h (pass_ipa_profile): Declare.
9557 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
9558 (pass_ipa_profile): Use TV_IPA_PROFILE.
9559 * ipa.c (ipa_profile): New function.
9560 (gate_ipa_profile): Likewise.
9561 (pass_ipa_profile): New global variable.
9562 * passes.c (pass_ipa_profile): New.
9564 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
9566 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
9568 2010-04-27 Martin Jambor <mjambor@suse.cz>
9571 * ipa.c (dissolve_same_comdat_group_list): New function.
9572 (function_and_variable_visibility): Call
9573 dissolve_same_comdat_group_list when comdat group contains external or
9575 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
9576 lists are circular and that they contain only DECL_ONE_ONLY nodes.
9578 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
9580 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
9581 (const_hash_1) <VECTOR_CST>: New case.
9582 (compare_constant) <VECTOR_CST>: Likewise.
9583 <ADDR_EXPR>: Deal with LABEL_REFs.
9584 (copy_constant) <VECTOR_CST>: New case.
9586 2010-04-27 Jan Hubicka <jh@suse.cz>
9588 * cgraph.c (cgraph_propagate_frequency): New function.
9589 * cgraph.h (cgraph_propagate_frequency): Declare.
9590 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
9591 cgraph_propagate_frequency.
9593 2010-04-27 Jakub Jelinek <jakub@redhat.com>
9595 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
9597 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
9600 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
9601 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
9602 here to determine which regs to push and how much stack to reserve.
9604 2010-04-27 Jie Zhang <jie@codesourcery.com>
9606 * doc/gimple.texi (gimple_statement_with_ops): Remove
9607 addresses_taken field.
9608 (gimple_statement_with_memory_ops): Likewise.
9610 2010-04-27 Jan Hubicka <jh@suse.cz>
9612 * tree-inline.c (eni_inlining_weights): Remove.
9613 (estimate_num_insns): Special case more builtins.
9615 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
9618 * c-typeck.c (build_binary_op): Move forward check for comparison
9619 pointer with null pointer constant and adjust the diagnostic message.
9621 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
9624 * configure.ac (gcc_cv_as_section_has_align): Set if installed
9625 binutils supports extended .section directive needed by LTO, or
9626 warn if older binutils found.
9627 (LTO_BINARY_READER): New AC_SUBST'd variable.
9628 (LTO_USE_LIBELF): Likewise.
9629 * gcc/config.gcc (lto_binary_reader): New target-specific configure
9631 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
9632 (LTO_USE_LIBELF): Likewise.
9633 * configure: Regenerate.
9635 * collect2.c (is_elf): Rename from this ...
9636 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
9637 object files in addition to ELF-formatted ones.
9638 (scan_prog_file): Caller updated. Also allow for LTO info marker
9639 symbol to be prefixed or not by an extra underscore.
9641 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
9642 * config/i386/winnt.c: Also #include lto-streamer.h
9643 (i386_pe_asm_named_section): Specify 1-byte section alignment for
9645 (i386_pe_asm_output_aligned_decl_common): Add comment.
9646 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
9648 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
9651 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
9652 Add missing earlyclobber for second alternative.
9654 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
9656 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
9657 bits for artificial defs at the top of the block.
9658 * fwprop.c (single_def_use_enter_block): Don't call it.
9660 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
9663 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
9664 instead of "$gcc_cv_objdump -T".
9665 Use "-undefined dynamic_lookup" on darwin.
9666 * gcc/configure: Regenerate.
9668 2010-04-26 Jakub Jelinek <jakub@redhat.com>
9671 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
9673 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
9675 * c-parser.c (struct c_token): Move location field up.
9676 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
9677 (struct c_declspecs): Convert typespec_word, storage_class, and
9678 default_int_p into bitfields.
9679 (struct c_declarator): Move loc field up.
9681 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
9683 * cfgloop.h (struct loop): Move can_be_parallel field up.
9684 * ipa-prop.h (struct ip_node_params): Move bitfields up.
9685 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
9687 (struct iv_cand): Convert pos field into a bitfield.
9688 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
9690 (struct _stmt_vec_info): Shuffle fields for better packing.
9692 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
9694 * varasm.c (IN_NAMED_SECTION): Remove guard.
9695 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
9696 (IN_NAMED_SECTION_P): ...this.
9697 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
9698 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
9700 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
9702 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
9703 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
9704 of shadowing it. Fix comments.
9706 2010-04-26 Jan Hubicka <jh@suse.cz>
9708 * cgraph.c (cgraph_create_node): Set node frequency to normal.
9709 (cgraph_clone_node): Copy function frequency.
9710 * cgraph.h (node_frequency): New enum
9711 (struct cgraph_node): Add.
9712 * final.c (rest_of_clean_state): Update.
9713 * lto-cgraph.c (lto_output_node): Output node frequency.
9714 (input_overwrite_node): Input node frequency.
9715 * tre-ssa-loop-ivopts (computation_cost): Update.
9716 * lto-streamer-out.c (output_function): Do not output function
9718 * predict.c (maybe_hot_frequency_p): Update and handle functions
9720 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
9722 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
9723 (compute_function_frequency): Set noreturn functions to be executed
9725 (choose_function_section): Update.
9726 * lto-streamer-in.c (input_function): Do not input function frequency.
9727 * function.c (allocate_struct_function): Do not initialize function
9729 * function.h (function_frequency): Remove.
9730 (struct function): Remove function frequency.
9731 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
9732 (try_update): Update.
9733 * tree-inline.c (initialize_cfun): Do not update function frequency.
9734 * passes.c (pass_init_dump_file): Update.
9735 * i386.c (ix86_compute_frame_layout): Update.
9736 (ix86_pad_returns): Update.
9738 2010-04-26 Jie Zhang <jie@codesourcery.com>
9740 PR tree-optimization/43833
9741 * tree-vrp.c (range_int_cst_p): New.
9742 (range_int_cst_singleton_p): New.
9743 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
9744 when both operands are constants. Use range_int_cst_p in
9747 2010-04-26 Jan Hubicka <jh@suse.cz>
9749 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
9751 2010-04-26 Richard Guenther <rguenther@suse.de>
9754 * gimple.c (gimple_decl_printable_name): Deal gracefully
9755 with a NULL DECL_NAME.
9757 2010-04-26 Richard Guenther <rguenther@suse.de>
9760 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
9761 if emitting debug information and it is either a function
9762 or a namespace decl.
9764 2010-04-26 Ira Rosen <irar@il.ibm.com>
9766 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
9767 determine if the statement is vectorizable, and a macro to access it.
9768 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9769 Skip statements that can't be vectorized. If the analysis fails,
9770 mark the statement as unvectorizable if vectorizing basic block.
9771 (vect_compute_data_refs_alignment): Likewise.
9772 (vect_verify_datarefs_alignment): Skip statements marked as
9773 unvectorizable. Add print.
9774 (vect_analyze_group_access): Skip statements that can't be
9775 vectorized. If the analysis fails, mark the statement as
9776 unvectorizable if vectorizing basic block.
9777 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
9778 * tree-vect-stmts.c (vectorizable_store): Fix the number of
9779 generated stmts for SLP.
9780 (new_stmt_vec_info): Initialize the new field.
9781 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
9782 statements marked as unvectorizable.
9784 2010-04-25 Joseph Myers <joseph@codesourcery.com>
9786 * c-common.c (flag_isoc1x): New.
9787 (flag_isoc99): Update comment.
9788 * c-common.h (flag_isoc1x): New.
9789 (flag_isoc99): Update comment.
9790 * c-cppbuiltin.c (builtin_define_float_constants): Also define
9791 __<type>_DECIMAL_DIG__.
9792 * c-opts.c (set_std_c1x): New.
9793 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
9794 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
9795 * c.opt (-std=c1x, -std=gnu1x): New options.
9796 * doc/cpp.texi: Mention -std=c1x.
9797 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
9798 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
9799 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
9800 * doc/standards.texi: Mention C1X.
9801 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
9802 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
9803 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
9806 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
9808 * config/i386/gmon-sol2.c (_mcleanup): Change format string
9809 placeholder from 0x%x to %#x.
9810 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
9811 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
9812 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
9813 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
9814 * config/i386/i386.c (ix86_target_string): Ditto.
9815 (output_pic_addr_const): Ditto.
9816 (print_operand): Ditto.
9818 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
9820 * combine.c (find_split_point): Add third argument. Use it
9821 to find nested multiply-accumulate instructions. Adjust calls.
9822 (try_combine): Adjust call to find_split_point.
9824 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
9826 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
9828 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
9830 PR tree-optimization/41442
9831 * fold-const.c (merge_truthop_with_opposite_arm): New function.
9832 (fold_binary_loc): Call it.
9834 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
9836 * toplev.c (general_init): Set default for fdiagnostics-show-option.
9837 * opts.c (common_handle_option): Allow disabling it.
9838 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
9840 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
9842 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
9843 between modes if both types are integral.
9845 2010-04-23 Richard Guenther <rguenther@suse.de>
9847 PR tree-optimization/43572
9848 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
9850 2010-04-23 Richard Guenther <rguenther@suse.de>
9853 * tree-inline.c (tree_can_inline_p): Also check compatibility
9856 2010-04-23 Martin Jambor <mjambor@suse.cz>
9858 PR tree-optimization/43846
9859 * tree-sra.c (struct access): New flag grp_assignment_read.
9860 (build_accesses_from_assign): Set grp_assignment_read.
9861 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
9862 (enum mark_read_status): New type.
9863 (analyze_access_subtree): Propagate grp_assignment_read, create
9864 accesses also if both direct_read and root->grp_assignment_read.
9866 2010-04-23 Martin Jambor <mjambor@suse.cz>
9869 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
9870 function does not have type attributes.
9872 2010-04-23 Richard Guenther <rguenther@suse.de>
9875 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
9878 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9880 * sese.h (create_if_region_on_edge): Remove.
9882 * sese.c (create_if_region_on_edge): Make static.
9884 * tree-inline.c: Do not include ggc.h.
9886 * expr.c: Do not include ggc.h.
9888 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
9891 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
9894 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9895 in the middle of insns for casesi_worker_2.
9897 2010-04-22 David Edelsohn <edelsohn@gnu.org>
9899 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
9901 2010-04-22 Ira Rosen <irar@il.ibm.com>
9903 PR tree-optimization/43842
9904 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
9905 loop unrolling in update of exit phis. Fix comment.
9906 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
9907 least two reduction statements in the loop before starting SLP
9910 2010-04-22 Nick Clifton <nickc@redhat.com>
9912 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
9914 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
9916 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
9919 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9921 * tree-parloops.c (loop_parallel_p): New argument
9922 parloop_obstack. Pass it down.
9923 (parallelize_loops): New variable parloop_obstack. Initialize it,
9924 pass it down, free it.
9926 * tree-loop-linear.c (linear_transform_loops): Pass down
9929 * tree-data-ref.h (lambda_compute_access_matrices): New argument
9930 of type struct obstack *.
9932 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
9933 scratch_obstack. Initialize it, pass down, free it.
9935 * lambda.h (lambda_loop_new): Remove.
9936 (lambda_matrix_new, lambda_matrix_inverse)
9937 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
9938 argument of type struct obstack *.
9940 * lambda-trans.c (lambda_trans_matrix_new): New argument
9941 lambda_obstack. Pass it down, use obstack allocation for ret.
9942 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
9945 * lambda-mat.c (lambda_matrix_get_column)
9946 (lambda_matrix_project_to_null): Remove.
9947 (lambda_matrix_new): New argument lambda_obstack. Use obstack
9949 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
9952 * lambda-code.c (lambda_loop_new): New function.
9953 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
9954 (lambda_compute_auxillary_space, lambda_compute_target_space)
9955 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
9956 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
9957 (build_access_matrix): New argument lambda_obstack. Use obstack
9959 (lambda_compute_step_signs, lambda_compute_access_matrices): New
9960 argument lambda_obstack. Pass it down.
9962 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9964 * optabs.h (expand_widening_mult): Declare.
9966 2010-04-22 Richard Guenther <rguenther@suse.de>
9968 PR tree-optimization/43845
9969 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
9970 lookup the CALL_EXPR function and arguments.
9972 2010-04-22 Nick Clifton <nickc@redhat.com>
9974 * config/stormy16/stormy16.c
9975 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
9976 * config/stormy16/stormy16.h: Tidy up formatting.
9977 (DONT_USE_BUILTIN_SETJMP): Remove definition.
9978 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
9979 (ineqbranchsi): Delete pattern.
9980 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
9981 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
9982 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
9983 stormy16-lib2-ucmpsi2.c.
9985 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9987 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
9988 df_simulate_find_noclobber_defs as appropriate. Keep track of an
9989 extra set merge_set_noclobber, and use it to relax the final test
9991 * df.h (df_simulate_find_noclobber_defs): Declare.
9992 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
9994 (df_simulate_find_noclobber_defs): New function.
9996 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
9998 * config/i386/i386.md: Use {} around multi-line preparation statements.
10000 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10002 * c-tree.h (push_init_level, pop_init_level, set_init_index)
10003 (process_init_element): New argument of type struct obstack *.
10005 * c-typeck.c (push_init_level, pop_init_level, set_designator)
10006 (set_init_index, set_init_label, set_nonincremental_init)
10007 (set_nonincremental_init_from_string, find_init_member)
10008 (output_init_element, output_pending_init_elements)
10009 (process_init_element): New argument braced_init_obstack. Pass it
10011 (push_range_stack, add_pending_init): New argument
10012 braced_init_obstack. Use obstack allocation.
10014 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
10015 braced_init_obstack. Pass it down.
10016 (c_parser_braced_init): New variables ret, braced_init_obstack.
10017 Initialize obstack, pass it down and finally free it.
10019 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
10021 PR middle-end/29274
10022 * tree-pass.h (pass_optimize_widening_mul): Declare.
10023 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
10024 gate_optimize_widening_mul): New static functions.
10025 (pass_optimize_widening_mul): New.
10026 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
10027 <case MULT_EXPR>: Remove support for widening multiplies.
10028 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
10029 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
10030 simplify_gen_unary rather than directly building extensions.
10031 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
10033 * expmed.c (expand_widening_mult): New function.
10034 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
10036 2010-04-21 Jan Hubicka <jh@suse.cz>
10038 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
10039 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
10040 * lto-wpa-fixup.c: Remove.
10041 * Makefile.in (lto-wpa-fixup.o): Remove.
10042 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
10043 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
10044 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
10046 2010-04-21 Jan Hubicka <jh@suse.cz>
10048 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
10049 add write_optimization_summary, read_optimization_summary.
10050 (ipa_write_summaries_of_cgraph_node_set): Remove.
10051 (ipa_write_optimization_summaries): Declare.
10052 (ipa_read_optimization_summaries): Declare.
10053 * ipa-cp.c (pass_ipa_cp): Update.
10054 * ipa-reference.c (pass_ipa_reference): Update.
10055 * ipa-pure-const.c (pass_ipa_pure_const): Update.
10056 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
10058 * ipa-inline.c (pass_ipa_inline): Update.
10059 * ipa.c (pass_ipa_whole_program): Update.
10060 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
10061 * passes.c (ipa_write_summaries_1): Do not test wpa.
10062 (ipa_write_optimization_summaries_1): New.
10063 (ipa_write_optimization_summaries): New.
10064 (ipa_read_summaries): Do not test ltrans.
10065 (ipa_read_optimization_summaries_1): New.
10066 (ipa_read_optimization_summaries): New.
10068 2010-04-21 Jan Hubicka <jh@suse.cz>
10070 * lto-cgraph.c (lto_output_node): Do not output comdat groups
10071 for boundary nodes.
10072 (output_cgraph): Do not arrange comdat groups for boundary nodes.
10074 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10077 * dwarf2out.c (add_name_and_src_coords_attributes): Add
10078 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
10080 2010-04-21 Jan Hubicka <jh@suse.cz>
10082 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
10084 2010-04-21 Jan Hubicka <jh@suse.cz>
10086 * varpool.c (decide_is_variable_needed): Variable is always needed
10089 2010-04-21 Jan Hubicka <jh@suse.cz>
10091 * opts.c (decode_options): Enable pure-const pass for whopr.
10093 2010-04-21 Jan Hubicka <jh@suse.cz>
10095 * cgraph.c (dump_cgraph_node): Dump also assembler name.
10096 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
10098 (cgraph_decide_inlining): Do not expect callee to be removed in all
10101 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
10103 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
10105 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
10107 * config/i386/i386.md (x86_shrd): Add athlon_decode and
10108 amdfam10_decode attributes.
10110 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10112 PR middle-end/43570
10113 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
10114 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
10115 (lower_copyprivate_clauses): Use private var in outer
10116 context instead of original var. Make sure the types
10117 are correct for VLAs.
10119 2010-04-21 Richard Guenther <rguenther@suse.de>
10121 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
10122 to non-pointer objects.
10124 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10126 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
10127 last chain entry if it starts with the still current label.
10128 (add_location_or_const_value_attribute): Check that
10129 loc_list->first->next is NULL instead of comparing ->first with ->last.
10130 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
10131 to add_var_loc_to_decl.
10133 * dwarf2out.c (output_call_frame_info): For dw_cie_version
10134 >= 4 add also address size and segment size fields into CIE header.
10136 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
10137 long as address size is the same as sizeof (void *) and
10139 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
10140 address size or segment size is unexpected, return DW_EH_PE_omit.
10141 (classify_object_over_fdes): If get_cie_encoding returned
10142 DW_EH_PE_omit, return -1.
10143 (init_object): If classify_object_over_fdes returned -1,
10144 pretend there were no FDEs at all.
10146 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
10148 * config/i386/i386.md (bswap<mode>2): Macroize expander from
10149 bswap{si,di}2 using SWI48 mode iterator.
10150 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
10151 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
10152 set modrm attribute of bswap insn to 0 and remove length attribute.
10153 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
10154 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
10155 set mode attribute to <MODE> and remove length attribute.
10157 2010-04-20 James E. Wilson <wilson@codesourcery.com>
10159 PR rtl-optimization/43520
10160 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
10161 zero available registers.
10163 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10165 * builtins.c (fold_builtin_cproj): Fold more cases.
10167 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10169 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
10170 (fold_builtin_1): Fold builtin cproj.
10171 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
10172 Use ATTR_CONST_NOTHROW_LIST.
10174 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
10176 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
10177 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
10178 ffsi2_no_cmove for !TARGET_CMOVE.
10179 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
10180 (ffssi2): Remove expander.
10181 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
10183 (ctz<mode>2): Ditto from ctz{si,di}2.
10184 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
10186 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
10189 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10191 * dwarf2out.c (AT_linkage_name): Define.
10192 (clone_as_declaration): Handle DW_AT_linkage_name.
10193 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
10194 of DW_AT_MIPS_linkage_name.
10195 (move_linkage_attr): Likewise.
10196 (dwarf2out_finish): Likewise.
10198 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
10200 PR middle-end/41952
10201 * fold-const.c (fold_comparison): New folding rule.
10203 2010-04-20 Anatoly Sokolov <aesok@post.ru>
10205 * double-int.h (double_int_setbit): Declare.
10206 * double-int.c (double_int_setbit): New function.
10207 * rtl.h (immed_double_int_const): Declare.
10208 * emit-rtl.c (immed_double_int_const): New function.
10209 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
10210 and immed_double_int_const functions.
10211 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
10212 expand_copysign_bit): (Ditto.).
10213 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
10214 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
10215 * dojump.c (prefer_and_bit_test): (Ditto.).
10216 * expr.c (convert_modes, reduce_to_bit_field_precision,
10217 const_vector_from_tree): (Ditto.).
10218 * expmed.c (mask_rtx, lshift_value): (Ditto.).
10220 2010-04-20 Jan Hubicka <jh@suse.cz>
10222 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
10223 (dump_cgraph_node): Dump new flags.
10224 * cgraph.h (struct cgraph_node): Add flags
10225 reachable_from_other_partition and in_other_partition.
10226 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
10227 other partition can not be removed.
10228 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
10229 the other partition must be output; silence sanity checking on
10230 leaking functions bodies from other paritition.
10231 * lto-cgraph.c (reachable_from_other_partition_p): New function.
10232 (lto_output_node): Output new flags; do not sanity check that inline
10233 clones are output; drop lto_forced_extern_inline_p code; do not mock
10234 visibility flags at partition boundaries.
10235 (add_node_to): New function.
10236 (output_cgraph): Use it to sort functions so masters appear before
10238 (input_overwrite_node): Input new flags.
10239 * passes.c (ipa_write_summaries): Do not call
10240 lto_new_extern_inline_states.
10241 * lto-section-out.c (forced_extern_inline,
10242 lto_new_extern_inline_states lto_delete_extern_inline_states,
10243 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
10244 * lto-streamer.h (lto_new_extern_inline_states,
10245 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
10246 lto_forced_extern_inline_p): Kill.
10248 2010-04-20 Richard Guenther <rguenther@suse.de>
10250 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
10251 from vars that can have pointers.
10252 (process_constraint): Dump useless constraints.
10254 2010-04-20 Richard Guenther <rguenther@suse.de>
10256 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
10257 (dump_sa_points_to_info): Remove asserts.
10258 (init_base_vars): nothing_id isn't an escape point nor does it
10261 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10263 * tree.h (TYPE_REF_IS_RVALUE): Define.
10264 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
10265 should_move_die_to_comdat, prune_unused_types_walk): Handle
10266 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
10267 (modified_type_die, gen_reference_type_die): Emit
10268 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
10269 if TYPE_REF_IS_RVALUE and -gdwarf-4.
10271 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10274 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
10275 calls for -fpic -m31 if they have been sibcall optimized.
10277 2010-04-19 James E. Wilson <wilson@codesourcery.com>
10279 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
10280 ar.lc fixed and call-used.
10282 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
10284 2010-04-19 Jan Hubicka <jh@suse.cz>
10286 * opts.c (decode_options): Disable whpr incompatible passes.
10287 * lto/lto.c (lto_1_to_1_map): Skip clones.
10288 (read_cgraph_and_symbols): Do not mark everything as needed.
10289 (do_whole_program_analysis): Do map only after optimizing;
10290 set proper cgraph_state; use passmanager.
10292 2010-04-19 DJ Delorie <dj@redhat.com>
10294 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
10295 POINTER_PLUS_EXPR and fix them.
10297 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
10299 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
10300 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
10301 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
10302 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
10303 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
10304 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
10305 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
10306 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
10307 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
10308 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
10309 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
10311 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
10313 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
10314 (check_cond_move_block): Likewise.
10315 (cond_move_process_if_block): Likewise.
10316 (noce_find_if_block): Improve formatting.
10317 (find_if_header): Pass 0 to memset and tweak conditions.
10318 (cond_exec_find_if_block): Fix long lines and tweak conditions.
10320 2010-04-19 Jakub Jelinek <jakub@redhat.com>
10322 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
10325 PR middle-end/43337
10326 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
10327 with non-local decl doesn't need chain.
10329 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
10331 * ira-color.c (allocno_reload_assign): Avoid accumulating
10332 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
10334 2010-04-19 Martin Jambor <mjambor@suse.cz>
10336 * gimple.h (create_tmp_reg): Declare.
10337 * gimplify.c (create_tmp_reg): New function.
10338 (gimplify_return_expr): Use create_tmp_reg.
10339 (gimplify_omp_atomic): Likewise.
10340 (gimple_regimplify_operands): Likewise.
10341 * tree-dfa.c (make_rename_temp): Likewise.
10342 * tree-predcom.c (predcom_tmp_var): Likewise.
10343 (reassociate_to_the_same_stmt): Likewise.
10344 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
10345 (get_replaced_param_substitute): Likewise.
10346 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
10347 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
10348 * tree-ssa-pre.c (get_representative_for): Likewise.
10349 (create_expression_by_pieces): Likewise.
10350 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
10351 (create_tailcall_accumulator): Likewise.
10353 2010-04-19 Martin Jambor <mjambor@suse.cz>
10355 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
10357 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
10359 2010-04-19 Richard Guenther <rguenther@suse.de>
10361 PR tree-optimization/43796
10362 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
10363 from SCEV in the lattice.
10364 (vrp_visit_phi_node): Dump change.
10366 2010-04-19 Richard Guenther <rguenther@suse.de>
10368 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
10369 * configure: Re-generated.
10371 2010-04-19 Richard Guenther <rguenther@suse.de>
10373 PR tree-optimization/43783
10374 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
10375 constant ARRAY_REF operands two and three if possible.
10377 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
10380 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
10382 2010-04-19 Jie Zhang <jie@codesourcery.com>
10385 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
10387 2010-04-19 Ira Rosen <irar@il.ibm.com>
10389 PR tree-optimization/37027
10390 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
10391 and macro to access it.
10392 (vectorizable_reduction): Add argument.
10393 (vect_get_slp_defs): Likewise.
10394 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
10395 statements for possible use in SLP.
10396 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
10397 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
10398 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
10400 (vectorizable_reduction): Likewise.
10401 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
10403 (vectorizable_type_demotion, vectorizable_type_promotion,
10404 vectorizable_store): Likewise.
10405 (vect_analyze_stmt): Update call to vectorizable_reduction.
10406 (vect_transform_stmt): Likewise.
10407 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
10408 (vect_build_slp_tree): Fix indentation. Check that there are no loads
10409 from different interleaving chains in same node.
10410 (vect_slp_rearrange_stmts): New function.
10411 (vect_supported_load_permutation_p): Allow load permutations for
10412 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
10413 inside SLP nodes if necessary.
10414 (vect_analyze_slp_instance): Handle reductions.
10415 (vect_analyze_slp): Try to build SLP instances originating from groups
10417 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
10418 (vect_get_constant_vectors): Create initial vectors for reductions
10419 according to reduction code. Add new argument.
10420 (vect_get_slp_defs): Add new argument, pass it to
10421 vect_get_constant_vectors.
10422 (vect_schedule_slp_instance): Remove SLP tree root statements.
10424 2010-04-19 Jakub Jelinek <jakub@redhat.com>
10426 * tree.h (ENUM_IS_SCOPED): Define.
10427 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
10428 for ENUM_IS_SCOPED enums.
10430 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
10432 * fold-const.c (fold_comparison): Use ssizetype.
10433 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
10434 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
10435 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
10436 * tree-object-size.c (compute_object_sizes): Use size_type_node.
10438 * tree.h (initialize_sizetypes): Remove parameter.
10439 (build_common_tree_nodes): Remove second parameter.
10440 * stor-layout.c (initialize_sizetypes): Remove parameter.
10441 Always create an unsigned type.
10442 (set_sizetype): Assert that the passed type is unsigned and simplify.
10443 * tree.c (build_common_tree_nodes): Remove second parameter.
10444 Adjust call to initialize_sizetypes.
10445 * c-decl.c (c_init_decl_processing): Remove second argument in call to
10446 build_common_tree_nodes.
10448 2010-04-18 Matthias Klose <doko@ubuntu.com>
10450 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
10452 2010-04-18 Ira Rosen <irar@il.ibm.com>
10454 PR tree-optimization/43771
10455 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
10456 load permutation doesn't have gaps.
10458 2010-04-18 Jan Hubicka <jh@suse.cz>
10460 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
10461 (sse_prologue_save_insn expander): Use new pattern.
10462 (sse_prologue_save_insn1): New pattern and splitter.
10463 (sse_prologue_save_insn): Update to deal also with 64bit aligned
10465 * i386.c (setup_incoming_varargs_64): Do not compute jump
10467 (ix86_gimplify_va_arg): Update alignment needed.
10468 (ix86_local_alignment): Do not align all local arrays to 128bit.
10470 2010-04-17 Jan Hubicka <jh@suse.cz>
10472 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
10474 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
10476 * arm.md (negdi2): Remove redundant code to force values into a
10479 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
10481 * arm/bpabi.S: Add EABI alignment attributes to objects.
10482 * arm/bpabi-v6m.S: Likewise.
10483 * arm/crti.asm: Likewise.
10484 * arm/crtn.asm: Likewise.
10485 * arm/lib1funcs.asm: Likewise.
10486 * arm/libunwind.S: Likewise.
10488 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
10490 * arm-protos.h (tune_params): New structure.
10491 * arm.c (current_tune): New variable.
10492 (arm_constant_limit): Delete.
10493 (struct processors): Add pointer to the tune parameters.
10494 (arm_slowmul_tune): New tuning option.
10495 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
10496 (all_cores): Adjust to pick up the tuning model.
10497 (arm_constant_limit): New function.
10498 (arm_override_options): Select the appropriate tuning model. Delete
10499 initialization of arm_const_limit.
10500 (arm_split_constant): Use the new constant-limit model.
10501 (arm_rtx_costs): Pick up the current tuning model.
10502 * arm.md (is_strongarm, is_xscale): Delete.
10503 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
10504 for Xscale variant architectures.
10505 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
10507 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10509 * config/arm/arm.c (arm_gen_constant): Remove unused variable
10511 (arm_rtx_costs_1): Remove unused variable extra_cost.
10512 (arm_unwind_emit_set): Use variable offset.
10513 (thumb1_output_casesi): Remove unused variable flags.
10515 2010-04-16 Jeff Law <law@redhat.com>
10517 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
10518 needing assignment rather than doing a two-phase assignment. Remove
10519 unused variable 'm'.
10521 2010-04-16 Jakub Jelinek <jakub@redhat.com>
10524 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
10526 2010-04-16 Doug Kwan <dougkwan@google.com>
10528 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
10529 (next_operand_entry_id): New static variable.
10530 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
10531 (add_to_ops_vec): Assigned unique ID to operand entry.
10532 (struct oecount_s): New field ID.
10533 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
10534 (undistribute_ops_list): Assign unique IDs to oecounts.
10535 (init_reassoc): reset next_operand_entry_id.
10537 2010-04-16 Doug Kwan <dougkwan@google.com>
10539 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
10540 missing left parenthesis.
10542 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
10544 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
10545 *btdi_rex64 using SWI48 mode iterator.
10546 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
10547 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
10548 *jcc_btdi_mask_rex64.
10550 2010-04-16 Anatoly Sokolov <aesok@post.ru>
10552 * double-int.h (tree_to_double_int): Convert to macro.
10553 * double-int.c (tree_to_double_int): Remove.
10555 2010-04-16 Jakub Jelinek <jakub@redhat.com>
10558 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
10559 with want_address 2 and in case a single element list might be
10560 possible, call it again with want_address 0.
10562 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10564 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
10565 case 'W' print operands for HI mode.
10566 * config/h8300/h8300.h (Y0, Y2) : New constraints.
10567 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
10568 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
10569 * config/h8300/predicate.md (bit_register_indirect_operand): New.
10571 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
10573 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
10574 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
10575 #xx:3 and #xx:4 mode.
10577 * config/h8300/h8300.md (inverted load with HImode dest): Add
10578 support for H8300SX.
10580 * config/h8300/predicate.md (bit_operand): Allow immediate values that
10581 satisfy 'U' constraint.
10583 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10585 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
10586 * configure: Regenerate.
10587 * config.in: Regenerate.
10588 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
10591 2010-04-16 Richard Guenther <rguenther@suse.de>
10593 * tree.h (struct tree_decl_minimal): Move pt_uid ...
10594 (struct tree_decl_common): ... here.
10595 (DECL_PT_UID): Adjust.
10596 (SET_DECL_PT_UID): Likewise.
10597 (DECL_PT_UID_SET_P): Likewise.
10599 2010-04-16 Richard Guenther <rguenther@suse.de>
10601 PR tree-optimization/43572
10602 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
10603 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
10604 * tree-flow.h (is_call_clobbered): Remove.
10605 * tree-flow-inline.h (is_call_clobbered): Likewise.
10606 * tree-dfa.c (dump_variable): Do not dump call clobber state.
10607 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
10608 (execute_return_slot_opt): Adjust.
10609 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
10610 check for call clobbered vars here.
10611 (find_tail_calls): Move tailcall verification to the
10614 2010-04-16 Diego Novillo <dnovillo@google.com>
10616 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
10618 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
10621 * config/arm/arm.md (cbranchqi4): New pattern.
10622 * config/arm/predicates.md (const0_operand,
10623 cbranchqi4_comparison_operator): New predicates.
10625 2010-04-16 Richard Guenther <rguenther@suse.de>
10627 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
10628 (dump_gimple_stmt): Likewise.
10630 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
10632 * recog.h (struct recog_data): New field is_operator.
10633 (struct insn_operand_data): New field is_operator.
10634 * recog.c (extract_insn): Set recog_data.is_operator.
10635 * genoutput.c (output_operand_data): Emit code to set the
10637 * reload.c (find_reloads): Use it rather than testing for an
10638 empty constraint string.
10641 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
10642 If the previous insn is a cbranchsi4_insn with the same arguments,
10643 omit the compare instruction.
10645 * config/arm/arm.md (addsi3_cbranch): If destination is a high
10646 register, inputs must be low registers and we need a low register
10647 scratch. Handle alternative 2 like alternative 3.
10649 2010-04-16 Jakub Jelinek <jakub@redhat.com>
10651 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
10652 don't call get_addr on both. If one expression is a VALUE and
10653 the other a REG, check VALUE's locs if the REG isn't among them.
10655 2010-04-16 Christian Bruel <christian.bruel@st.com>
10657 * config/sh/sh.h (sh_frame_pointer_required): New function.
10658 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
10659 (flag_omit_frame_pointer) Set.
10660 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
10661 (rounded_frame_size): Adjust size with outgoing_args_size.
10662 (sh_set_return_address): Must return from stack pointer.
10663 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
10664 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
10665 (ACCUMULATE_OUTGOING_ARGS): Define.
10666 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
10667 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
10669 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
10672 * config/sh/sh.c (sh_legitimize_reload_address): Use
10673 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
10674 Remove a unneeded check for offset_base.
10676 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
10678 * configure: Regenerated.
10680 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10682 * config/s390/s390.c (s390_call_save_register_used): Switch back
10683 to HARD_REGNO_NREGS.
10685 2010-04-15 Richard Guenther <rguenther@suse.de>
10687 * alias.c (alias_set_subset_of): Handle alias-set zero
10690 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
10691 Julian Brown <julian@codesourcery.com>
10693 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
10694 alternatives according to use of high and low regs.
10695 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
10696 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
10697 optimizing for size on Thumb-2.
10699 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
10701 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
10703 2010-04-15 Richard Guenther <rguenther@suse.de>
10705 * tree-ssa-structalias.c (struct variable_info): Add
10707 (new_var_info): Initialize it.
10708 (dump_constraints): Support printing last added constraints.
10709 (debug_constraints): Adjust.
10710 (dump_constraint_graph): Likewise.
10711 (make_heapvar_for): Check for NULL cfun.
10712 (get_function_part_constraint): New function.
10713 (get_fi_for_callee): Likewise.
10714 (find_func_aliases): Properly implement IPA PTA constraints.
10715 (process_ipa_clobber): New function.
10716 (find_func_clobbers): Likewise.
10717 (insert_into_field_list_sorted): Remove.
10718 (create_function_info_for): Properly allocate vars for IPA mode.
10719 Do not use insert_into_field_list_sorted.
10720 (create_variable_info_for): Properly generate constraints for
10721 global vars in IPA mode.
10722 (dump_solution_for_var): Always dump the solution.
10723 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
10724 (find_what_var_points_to): Adjust.
10725 (pt_solution_set): Change.
10726 (pt_solution_ior_into): New function.
10727 (pt_solution_empty_p): Export.
10728 (pt_solution_includes_global): Adjust.
10729 (pt_solution_includes_1): Likewise.
10730 (pt_solutions_intersect_1): Likewise.
10731 (dump_sa_points_to_info): Check some invariants.
10732 (solve_constraints): Move constraint dumping ...
10733 (compute_points_to_sets): ... here.
10734 (ipa_pta_execute): ... and here.
10735 (compute_may_aliases): Do not re-compute points-to info
10736 locally if IPA info is available.
10737 (ipa_escaped_pt): New global var.
10738 (ipa_pta_execute): Properly implement IPA PTA.
10739 * tree-into-ssa.c (dump_decl_set): Support dumping
10740 decls not in referenced-vars.
10741 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
10742 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
10743 (dump_points_to_solution): Likewise.
10744 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
10745 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
10746 (remap_gimple_stmt): Reset call clobber/use information if necessary.
10747 (copy_decl_to_var): Copy DECL_PT_UID.
10748 (copy_result_decl_to_var): Likewise.
10749 * tree.c (make_node_stat): Initialize DECL_PT_UID.
10750 (copy_node_stat): Copy it.
10751 * tree.h (DECL_PT_UID): New macro.
10752 (SET_DECL_PT_UID): Likewise.
10753 (DECL_PT_UID_SET_P): Likewise.
10754 (struct tree_decl_minimal): Add pt_uid member.
10755 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
10756 (pt_solution_empty_p): Declare.
10757 (pt_solution_set): Adjust.
10758 (ipa_escaped_pt): Declare.
10759 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
10760 * gimple-pretty-print.c (pp_points_to_solution): New function.
10761 (dump_gimple_call): Dump call clobber/use information.
10762 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
10763 * tree-pass.h (TDF_ALIAS): New dump option.
10764 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
10765 * doc/invoke.texi (-fipa-pta): Update documentation.
10767 2010-04-15 Richard Guenther <rguenther@suse.de>
10769 * Makefile.in (OBJS-common): Add gimple-fold.o.
10770 (gimple-fold.o): New rule.
10771 * tree.h (maybe_fold_offset_to_reference,
10772 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
10774 * gimple.h: ... here.
10775 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
10776 may_propagate_address_into_dereference): Move prototypes ...
10777 * gimple.h: ... here.
10778 * tree-ssa-ccp.c (get_symbol_constant_value,
10779 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
10780 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
10781 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
10782 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
10783 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
10784 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
10785 gimplify_and_update_call_from_tree): Move ...
10786 * gimple-fold.c: ... here. New file.
10787 (ccp_fold_builtin): Rename to ...
10788 (gimple_fold_builtin): ... this.
10789 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
10791 2010-04-15 Richard Guenther <rguenther@suse.de>
10793 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
10794 fit_double_type, force_fit_type_double, add_double_with_sign,
10795 neg_double, mul_double_with_sign, lshift_double, rshift_double,
10796 lrotate_double, rrotate_double, div_and_round_double): Move ...
10797 * double-int.c: ... here.
10798 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
10799 add_double, neg_double, mul_double_with_sign, mul_double,
10800 lshift_double, rshift_double, lrotate_double, rrotate_double,
10801 div_and_round_double): Move prototypes ...
10802 * double-int.h: ... here.
10804 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
10807 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
10808 matching constraints to ensure inputs match the output.
10810 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
10813 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
10814 in an input-only operand.
10816 2010-04-15 Anatoly Sokolov <aesok@post.ru>
10818 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
10819 (double_int_not, double_int_lshift, double_int_rshift): Declare.
10820 (double_int_negative_p): Convert to static inline function.
10821 * double-int.c (double_int_lshift, double_int_lshift): New functions.
10822 (double_int_negative_p): Remove.
10823 * tree.h (lshift_double, rshift_double):
10824 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
10825 * fold-const.c (fold_convert_const_int_from_real,
10826 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
10827 (lshift_double): Change type of arith argument to bool.
10828 (rshift_double): Change type of arith argument to bool. Correct
10830 * expmed.c (mask_rtx, lshift_value): (Ditto.).
10832 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
10835 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
10836 at the start and end of the then/else blocks, and omit them from the
10838 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
10839 argument; all callers changed. Pass zero to old_insns_match_p instead.
10840 (flow_find_head_matching_sequence): New function.
10841 (old_insns_match_p): Check REG_EH_REGION notes for calls.
10842 * basic-block.h (flow_find_cross_jump,
10843 flow_find_head_matching_sequence): Declare functions.
10845 2010-04-14 Jason Merrill <jason@redhat.com>
10848 * c-common.c (attribute_takes_identifier_p): New fn.
10849 * c-common.h: Declare it.
10851 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10853 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
10854 splitter condition.
10855 (*udivmod<mode>4): Ditto.
10857 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10859 * config/i386/i386.md (maxmin_int): Rename code attribute from
10860 maxminiprefix and update all users.
10861 (maxmin_float): Ditto from maxminfprefix.
10862 (logic): Ditto from logicprefix.
10863 (absneg_mnemonic): Ditto from absnegprefix.
10864 * config/i386/mmx.md: Update all users of maxminiprefix,
10865 maxminfprefix and logicprefix for rename.
10866 * config/i386/sse.md: Ditto.
10867 * config/i386/sync.md (sync_<code><mode>): Update for
10868 logicprefix rename.
10870 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
10873 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
10874 warnings converted to errors.
10876 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10878 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
10879 used insn_type variable.
10880 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
10881 to avoid set-but-not-used warning.
10883 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10885 * df-core.c (df_ref_debug): Change format string placeholder
10887 * dwarf2asm.c (dw2_asm_output_data_raw,
10888 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
10889 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
10890 * dwarf2out.c (output_cfi, output_cfi_directive,
10891 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
10892 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
10894 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
10895 * print-rtl.c (print_rtx): Ditto.
10897 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10899 PR middle-end/42694
10900 * builtins.c (expand_builtin_pow_root): New function to expand pow
10901 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
10902 series of sqrt and cbrt calls under -ffast-math.
10903 (expand_builtin_pow): Call it.
10905 2010-04-14 Michael Matz <matz@suse.de>
10907 PR tree-optimization/42963
10908 * tree-cfg.c (touched_switch_bbs): New static variable.
10909 (group_case_labels_stmt): New function broken out from ...
10910 (group_case_labels): ... here, use the above.
10911 (start_recording_case_labels): Allocate touched_switch_bbs.
10912 (end_recording_case_labels): Deallocate it, call
10913 group_case_labels_stmt.
10914 (gimple_redirect_edge_and_branch): Remember index of affected BB.
10916 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10918 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
10919 from insn template.
10921 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10923 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
10925 2010-04-13 Jan Hubicka <jh@suse.cz>
10927 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
10928 of optimized out static functions.
10929 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
10930 cost computation. Also sanity check for overflows.
10931 (update_caller_keys): Update cgraph_edge_badness call; properly
10932 update fibheap and sanity check that it is up to date.
10933 (add_new_edges_to_heap): Update cgraph_edge_badness.
10934 (cgraph_decide_inlining_of_small_function): Likewise;
10935 add sanity checking that badness in heap is up to date;
10936 improve dumping of reason; Update badness of calls to the
10937 offline copy of function currently inlined; dump badness
10938 of functions not inlined because of unit growth limits.
10940 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
10942 PR middle-end/32628
10943 * c-common.c (pointer_int_sum): Disregard overflow that occured only
10944 because of sign-extension change when converting to sizetype here...
10945 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
10947 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
10948 the folding to constants. Remove redundant final conversion.
10949 (fold_binary) <associate>: Do not associate if the re-association of
10950 constants alone overflows.
10951 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
10952 to the end of the list.
10953 (multiple_of_p) <COND_EXPR>: New case.
10955 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
10957 * opt-functions.awk (opt_sanitized_name): New.
10959 * optc-gen.awk: Use it
10960 * opth-gen.awk: Use it.
10962 2010-04-13 Martin Jambor <mjambor@suse.cz>
10964 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
10965 (sra_modify_assign): Delete stmts loading dead data even if racc has no
10966 children. Call replace_uses_with_default_def_ssa_name to handle
10969 2010-04-13 Michael Matz <matz@suse.de>
10971 PR middle-end/43730
10972 * builtins.c (expand_builtin_interclass_mathfn): Also create
10973 a register if the predicate doesn't match.
10975 2010-04-13 Diego Novillo <dnovillo@google.com>
10977 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
10978 * c-pch.c: Include timevar.h.
10979 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
10980 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
10981 * ggc-common.c: Include timevar.h.
10982 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
10983 * timevar.def (TV_PCH_SAVE): Define.
10984 (TV_PCH_CPP_SAVE): Define.
10985 (TV_PCH_PTR_REALLOC): Define.
10986 (TV_PCH_PTR_SORT): Define.
10987 (TV_PCH_RESTORE): Define.
10988 (TV_PCH_CPP_RESTORE): Define.
10990 2010-04-13 Michael Matz <matz@suse.de>
10992 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
10994 (can_reassociate_p): New function.
10995 (break_up_subtract_bb, reassociate_bb): Use it.
10997 2010-04-13 Richard Guenther <rguenther@suse.de>
11000 * builtins.c (c_readstr): Fix assert.
11002 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
11004 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
11005 when generating cltd insn.
11007 (*ashl<mode>3_1): Remove special handling for register operand 2.
11008 (*ashlsi3_1_zext): Ditto.
11009 (*ashlhi3_1): Ditto.
11010 (*ashlhi3_1_lea): Ditto.
11011 (*ashlqi3_1): Ditto.
11012 (*ashlqi3_1_lea): Ditto.
11013 (*<shiftrt_insn><mode>3_1): Ditto.
11014 (*<shiftrt_insn>si3_1_zext): Ditto.
11015 (*<shiftrt_insn>qi3_1_slp): Ditto.
11016 (*<rotate_insn><mode>3_1): Ditto.
11017 (*<rotate_insn>si3_1_zext): Ditto.
11018 (*<rotate_insn>qi3_1_slp): Ditto.
11020 2010-04-13 Richard Guenther <rguenther@suse.de>
11022 * tree-ssa-structalias.c (callused_id): Remove.
11023 (call_stmt_vars): New.
11024 (get_call_vi): Likewise.
11025 (lookup_call_use_vi): Likewise.
11026 (lookup_call_clobber_vi): Likewise.
11027 (get_call_use_vi): Likewise.
11028 (get_call_clobber_vi): Likewise.
11029 (make_transitive_closure_constraints): Likewise.
11030 (handle_const_call): Adjust to do per-call call-used handling.
11031 (handle_pure_call): Likewise.
11032 (find_what_var_points_to): Remove general callused handling.
11033 (init_base_vars): Likewise.
11034 (init_alias_vars): Initialize call_stmt_vars.
11035 (compute_points_to_sets): Process call-used and call-clobbered
11036 vars for call statements.
11037 (delete_points_to_sets): Free call_stmt_vars.
11039 2010-04-13 Richard Guenther <rguenther@suse.de>
11041 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11042 Only add RW dependence for dependence distance zero.
11043 Adjust maximal vectorization factor according to dependences.
11044 Move alignment handling ...
11045 (vect_find_same_alignment_drs): ... here. New function.
11046 (vect_analyze_data_ref_dependences): Adjust.
11047 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
11048 (vect_analyze_data_refs): Adjust minimal vectorization factor
11049 according to data references.
11050 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
11051 dependences before determining the vectorization factor.
11052 Analyze alignment after determining the vectorization factor.
11053 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
11054 dependences before alignment.
11055 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
11057 (vect_analyze_data_refs): Likewise.
11058 (MAX_VECTORIZATION_FACTOR): New define.
11060 2010-04-13 Duncan Sands <baldrick@free.fr>
11062 * except.h (lang_eh_type_covers): Remove.
11063 * except.c (lang_eh_type_covers): Likewise.
11065 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11066 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11068 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
11069 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
11070 UNITS_PER_LONG where it is ABI relevant.
11071 (s390_return_addr_rtx): Likewise.
11072 (s390_back_chain_rtx): Likewise.
11073 (s390_frame_area): Likewise.
11074 (s390_frame_info): Likewise.
11075 (s390_initial_elimination_offset): Likewise.
11076 (save_gprs): Likewise.
11077 (s390_emit_prologue): Likewise.
11078 (s390_emit_epilogue): Likewise.
11079 (s390_function_arg_advance): Likewise.
11080 (s390_function_arg): Likewise.
11081 (s390_va_start): Likewise.
11082 (s390_gimplify_va_arg): Likewise.
11083 (s390_function_profiler): Likewise.
11084 (s390_optimize_prologue): Likewise.
11085 (s390_rtx_costs): Likewise.
11086 (s390_secondary_reload): Likewise.
11087 (s390_promote_function_mode): Likewise.
11088 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
11089 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
11090 registers available.
11091 (s390_unwind_word_mode): New function.
11092 (s390_function_value): Split 64 bit values into register pair if
11093 used as return value.
11094 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
11095 function call parameters. Handle parallels.
11096 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
11097 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
11098 (DWARF_CIE_DATA_ALIGNMENT): New macro.
11099 (s390_expand_setmem): Remove unused variable src_addr.
11100 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
11101 deal with 64 bit registers.
11102 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
11103 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
11104 (UNITS_PER_LONG): New macro.
11105 * libjava/include/s390-signal.h: Define extended ucontext
11106 structure containing the upper halfs of the 64 bit registers.
11108 2010-04-13 Simon Baldwin <simonb@google.com>
11110 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
11112 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
11114 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
11115 rvalue on the RHS if the LHS is of a non-renamable type.
11116 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
11118 2010-04-13 Matthias Klose <doko@ubuntu.com>
11120 * gcc.c (cc1_options): Handle -iplugindir before processing
11121 the cc1 spec. Only add -iplugindir once.
11122 (cpp_unique_options): Add -iplugindir option if -fplugin* options
11124 * common.opt (iplugindir): Remove `Separate' property, initialize.
11125 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
11127 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
11128 (distclean): Remove plugin dir.
11129 * doc/invoke.texi: Document -iplugindir.
11131 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
11133 * doc/plugins.texi (Loading Plugins): Document short
11134 -fplugin=foo option.
11135 (Plugin API): Mention default_plugin_dir_name function.
11137 * gcc.c (find_file_spec_function): Add new declaration.
11138 (static_spec_func): Use it for "find-file".
11139 (find_file_spec_function): Add new function.
11140 (cc1_options): Add -iplugindir option if -fplugin* options found.
11142 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
11144 * plugin.c (add_new_plugin): Updated comment, and handle short
11146 (default_plugin_dir_name): Added new function.
11148 * common.opt (iplugindir): New option to set the plugin directory.
11150 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
11152 * config/i386/i386.md (any_rotate): New code iterator.
11153 (rotate_insn): New code attribute.
11155 (SWIM124): New mode iterator.
11156 (<rotate_insn>ti3): New expander.
11157 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
11158 any_rotate code iterator.
11159 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
11160 using any_rotate code iterator and SWIM124 mode iterator.
11161 (ix86_rotlti3): New insn_and_split pattern.
11162 (ix86_rotrti3): Ditto.
11163 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
11164 ix86_rotl{di,ti}3 patterns.
11165 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
11166 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
11167 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
11168 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
11169 code iterator and SWI mode iterator.
11170 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
11171 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
11173 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
11174 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
11175 (bswap rotatert splitter): Add splitter.
11176 (bswap splitter): Macroize splitter using any_rotate code iterator.
11177 Add insn predicate to split only for TARGET_USE_XCHGB or when
11178 optimizing function for size.
11180 2010-04-12 Steve Ellcey <sje@cup.hp.com>
11182 * config/pa/pa.c (emit_move_sequence): Remove use of
11183 deleted variable flag_argument_noalias.
11185 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11187 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
11189 Add to unsupported targets list.
11190 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
11191 sparc*-sun-solaris2.[567]* from target lists.
11192 * configure: Regenerate.
11193 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
11195 Remove Solaris 7 patch references.
11196 (Specific, sparc-sun-solaris2.7): Removed.
11197 (sparc-sun-solaris2*): Update Solaris 7 example.
11198 (sparc64-*-solaris2*): Likewise.
11200 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11202 * config.build (alpha*-dec-osf4*): Remove.
11203 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
11204 of obsolete configurations.
11205 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
11207 * config/alpha/t-osf4: Renamed to ...
11208 * config/alpha/t-osf5: ... this.
11209 * config/alpha/osf.h: Renamed to ...
11210 * config/alpha/osf5.h: ... this.
11211 Merged old osf5.h contents.
11213 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
11214 (EXTRA_SPECS): Removed.
11215 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
11216 reflect removal of Tru64 UNIX V4.0/V5.0 support.
11219 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11221 * doc/contrib.texi (Contributors, Rainer Orth): Update.
11223 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
11226 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
11227 __thiscall convention.
11229 2010-04-12 Steve Ellcey <sje@cup.hp.com>
11231 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
11233 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
11235 2010-04-12 Steve Ellcey <sje@cup.hp.com>
11237 * function.c (assign_parms_initialize_all): Add unused attribute
11240 2010-04-12 Richard Guenther <rguenther@suse.de>
11242 * gsstruct.def (GSS_CALL): New.
11243 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
11244 * gimple.h: Include tree-ssa-alias.h.
11245 (struct gimple_statement_call): New.
11246 (union gimple_statement_struct_d): Add gimple_call member.
11247 (gimple_call_reset_alias_info): Declare.
11248 (gimple_call_use_set): New function.
11249 (gimple_call_clobber_set): Likewise.
11250 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
11251 * gimple.c (gimple_call_reset_alias_info): New function.
11252 (gimple_build_call_1): Call it.
11253 * lto-streamer-in.c (input_gimple_stmt): Likewise.
11254 * tree-inline.c (remap_gimple_stmt): Likewise.
11255 (expand_call_inline): Remove callused handling.
11256 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
11257 * tree-dfa.c (dump_variable): Likewise.
11258 * tree-parloops.c (parallelize_loops): Likewise.
11259 * tree-ssa.c (init_tree_ssa): Likewise.
11260 (delete_tree_ssa): Likewise.
11261 * tree-flow-inline.h (is_call_used): Remove.
11262 * tree-flow.h (struct gimple_df): Remove callused member.
11263 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
11264 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
11265 (ref_maybe_used_by_call_p_1): Simplify.
11266 (call_may_clobber_ref_p_1): Likewise.
11267 * tree-ssa-structalias.c (compute_points_to_sets): Set
11268 the call stmt used and clobbered sets.
11269 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
11270 (find_tail_calls): Verify the tail call.
11272 2010-04-12 Richard Guenther <rguenther@suse.de>
11274 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
11275 single-iteration always-inline inlining.
11276 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
11277 (cgraph_decide_inlining): Do not handle always-inline specially.
11278 (try_inline): Remove always-inline cycle detection special case.
11279 Do not recurse on always-inlines.
11280 (cgraph_early_inlining): Do not iterate if not optimizing.
11281 (cgraph_gate_early_inlining): remove.
11282 (pass_early_inline): Run unconditionally.
11283 (gate_cgraph_decide_inlining): New function.
11284 (pass_ipa_inline): Use it. Do not run the IPA inliner if
11285 not inlining or optimizing.
11286 (cgraph_decide_inlining_of_small_functions): Also consider
11287 always-inline functions.
11288 (cgraph_default_inline_p): Return true for nodes which should
11289 disregard inline limits.
11290 (estimate_function_body_sizes): Assume zero size and time for
11291 nodes which are marked as disregarding inline limits.
11292 (cgraph_decide_recursive_inlining): Do not perform recursive
11293 inlining on always-inline nodes.
11295 2010-04-12 Jakub Jelinek <jakub@redhat.com>
11298 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
11299 for exprs satisfying handled_component_p.
11301 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
11303 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
11304 non-constant aggregate elements.
11306 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
11307 is a real initialization.
11309 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
11312 * c-decl.c (start_function): Move forward check for nested function.
11314 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
11316 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
11317 * config/sh/sh.c: Include reload.h.
11318 (sh_legitimize_reload_address): New.
11319 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
11320 sh_legitimize_reload_address.
11322 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
11324 * config/sh/sh.md (*movqi_pop): New insn pattern.
11325 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
11327 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
11329 * config/i386/i386.md (any_shiftrt): New code iterator.
11330 (shiftrt_insn): New code attribute.
11332 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
11333 using any_shiftrt code iterator.
11334 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
11335 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
11336 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
11337 pattern from corresponding peephole2 patterns.
11338 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
11339 using any_shiftrt code iterator.
11340 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
11341 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
11342 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
11343 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
11344 *{ashr,lshr}<mode>3_cmp_zext.
11345 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
11347 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
11349 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
11351 (*lshr<mode>3_cconly): Ditto.
11353 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
11355 * config/i386/i386.md (lshr<mode>3): Macroize expander from
11356 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
11357 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
11358 pattern from *lshr{di,ti}3_1 and corresponding splitters using
11360 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
11361 from corresponding peephole2 patterns.
11362 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
11363 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
11364 and *lshrdi3_1_rex64 using SWI mode iterator.
11365 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
11366 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
11367 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
11368 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
11369 and *lshrdi3_cmp_rex64 using SWI mode iterator.
11370 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
11371 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
11372 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
11373 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
11376 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
11378 * config/i386/i386.md (ashr<mode>3): Macroize expander from
11379 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
11380 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
11381 pattern from *ashr{di,ti}3_1 and corresponding splitters using
11383 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
11384 from corresponding peephole2 patterns.
11385 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
11386 (ashrsi3_cvt): Rename from ashrsi3_31.
11387 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
11388 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
11389 and x86_64_shift_adj_3 using SWI48 mode iterator.
11390 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
11391 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
11392 and *ashrdi3_1_rex64 using SWI mode iterator.
11393 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
11394 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
11395 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
11396 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
11397 and *ashrdi3_cmp_rex64 using SWI mode iterator.
11398 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
11399 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
11400 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
11401 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
11403 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
11404 * config/i386/i386.c (ix86_split_ashr): Update for renamed
11405 x86_shift<mode>_adj_3 expanders.
11407 2010-04-10 Wei Guozhi <carrot@google.com>
11410 * config/arm/arm.c (arm_pic_static_addr): New function.
11411 (legitimize_pic_address): Call arm_pic_static_addr when it detects
11413 (arm_output_addr_const_extra): Output expression for new pattern.
11414 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
11416 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
11418 * ira-costs.c (record_reg_classes): Ignore alternatives that are
11421 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
11422 * web.c: Include "insn-config.h" and "recog.h".
11423 (union_match_dups): New function.
11424 (web_main): Call it.
11425 (union_defs): Don't try to recognize match_dups.
11427 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
11428 if doing so would replace the entire pattern.
11430 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
11434 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
11435 and splitter pattern. Change splitter operand 1 predicate to
11438 2010-04-09 Martin Jambor <mjambor@suse.cz>
11440 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
11441 lattices are addresses of CONST_DECLs with the same initial value.
11442 (ipcp_print_all_lattices): Print values of CONST_DECLs.
11443 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
11445 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
11446 Bernd Schmidt <bernds@codesourcery.com>
11448 * loop-invariant.c (replace_uses): New static function.
11449 (move_invariant_reg): Use it to ensure we can replace the uses.
11451 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
11453 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
11455 (picochip_override_options): Enable section anchors only above -O1.
11456 (picochip_reorg): Fixed a couple of build warnings.
11458 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11460 * configure.ac (plugin -rdynamic test): Log result.
11461 * configure: Regenerate.
11462 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
11463 (RDYNAMIC_SPEC): Define.
11464 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
11466 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11468 * configure.ac: Determine Sun ld version numbers.
11469 (comdat_group): Restrict GNU ld version checks to gld.
11470 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
11471 (enable_comdat): Support --enable-comdat.
11472 * configure: Regenerate.
11473 * doc/install.texi (Configuration): Document --enable-comdat.
11475 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11477 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
11478 * config/sol2-gld.h: ... here.
11479 * config.gcc (sparc*-*-solaris2*): Reflect this.
11480 (i[34567]86-*-solaris2*): Use it.
11482 2010-04-09 Steve Ellcey <sje@cup.hp.com>
11484 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
11486 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
11488 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
11491 * diagnostic.c (diagnostic_initialize): Initialize
11492 some_warnings_are_errors.
11493 (diagnostic_finish): New.
11494 (diagnostic_action_after_output): Call it before exiting.
11495 (diagnostic_report_diagnostic): Do not print message here. Set
11496 some_warnings_are_errors.
11497 * diagnostic.h (diagnostic_context): Delete
11498 issue_warnings_are_errors_message. Add some_warnings_are_errors.
11499 (diagnostic_finish): Declare.
11500 * toplev.c (toplev_main): Call it before exit.
11502 2010-04-09 Jason Merrill <jason@redhat.com>
11505 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
11506 for incomplete type.
11509 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
11510 based on a warning flag.
11512 2010-04-09 Richard Guenther <rguenther@suse.de>
11514 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
11516 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
11519 * varasm.c (default_assemble_visibility): Wrap vars that are
11520 set, but unused, by targets without GAS.
11521 * config/rs6000/rs6000.c (paired_emit_vector_compare):
11522 Remove set, but unused, vars.
11523 (rs6000_legitimize_tls_address): Likewise.
11524 (altivec_expand_dst_builtin): Likewise.
11525 * config/darwin.c (machopic_classify_symbol): Likewise.
11526 (machopic_indirection_name): Likewise.
11528 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
11530 * config/i386/i386.md (DWI): New mode iterator.
11531 (S): New mode attribute.
11532 (shift_operand): Ditto.
11533 (shift_immediate_operand): Ditto.
11534 (ashl_input_operand): Ditto.
11535 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
11536 using SDWIM mode iterator.
11537 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
11538 pattern from *ashl{di,ti}3_1 and corresponding splitters using
11540 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
11541 from corresponding peephole2 patterns.
11542 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
11543 and x86_64_shift_adj_1 using SWI48 mode iterator.
11544 (x86_shift<mode>_adj_2): Ditto.
11545 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
11546 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
11547 using SWI48 mode iterator.
11548 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
11549 *ashldi3_cmp_rex64 using SWI mode iterator.
11550 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
11551 *ashldi3_cconly_rex64 using SWI mode iterator.
11552 * config/i386/i386.c (ix86_split_ashl): Update for renamed
11553 x86_shift<mode>_adj_{1,2}.
11554 (ix86_split_ashr): Ditto.
11555 (ix86_split_lshr): Ditto.
11557 2010-04-09 Richard Guenther <rguenther@suse.de>
11559 * target.h (builtin_conversion): Pass in input and output types.
11560 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
11561 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
11562 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
11563 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
11565 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
11567 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
11569 2010-04-09 Richard Guenther <rguenther@suse.de>
11572 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
11574 2010-04-09 Richard Guenther <rguenther@suse.de>
11576 * tree-vectorizer.h (struct _stmt_vec_info): Document
11577 that vectype is the type of the LHS.
11578 (supportable_widening_operation, supportable_narrowing_operation):
11579 Get both input and output vector types as arguments.
11580 (vect_is_simple_use_1): Declare.
11581 (get_same_sized_vectype): Likewise.
11582 * tree-vect-loop.c (vect_determine_vectorization_factor):
11583 Set STMT_VINFO_VECTYPE to the vector type of the def.
11584 (vectorizable_reduction): Adjust.
11585 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
11586 Adjust. Specify the output vector type.
11587 (vect_pattern_recog_1): Adjust.
11588 * tree-vect-stmts.c (get_same_sized_vectype): New function.
11589 (vectorizable_call): Adjust.
11590 (vectorizable_conversion): Likewise.
11591 (vectorizable_operation): Likewise.
11592 (vectorizable_type_demotion): Likewise.
11593 (vectorizable_type_promotion): Likewise.
11594 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
11596 (vect_is_simple_use_1): New function.
11597 (supportable_widening_operation): Get both input and output
11599 (supportable_narrowing_operation): Likewise.
11600 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
11602 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
11604 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
11605 __thiscall and _thiscall as predefined macros.
11606 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
11607 thiscall attribute handling.
11608 (ix86_comp_type_attributes): Likewise.
11609 (ix86_function_regparm): Likewise.
11610 (ix86_return_pops_args): Likewise.
11611 (init_cumulative_args): Likewise.
11612 (find_drap_reg): Likewise.
11613 (ix86_static_chain): Likewise.
11614 (x86_this_parameter): Likewise.
11615 (x86_output_mi_thunk): Likewise.
11616 (ix86_attribute_table): Add description for thiscall attribute.
11617 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
11618 * doc/extend.texi: Add documentation for thiscall.
11620 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
11623 * c.opt (Wint-to-pointer-cast): Available in C++.
11624 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
11626 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
11628 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
11629 * calls.c (expand_call): Pass the function type to aggregate_value_p.
11630 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
11631 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
11632 function type instead. Reorder and simplify checks.
11634 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
11636 2010-04-08 Jing Yu <jingyu@google.com>
11637 Zdenek Dvorak <ook@ucw.cz>
11639 PR tree-optimization/42720
11640 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
11641 loop unswitch conditions here from ...
11642 (tree_unswitch_single_loop): ... here.
11644 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
11646 * tree-if-conv.c: Fix comments and simplify logic.
11648 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
11650 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
11651 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
11652 (main_tree_if_conversion): Update call to tree_if_conversion.
11654 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11657 * doc/invoke.texi (-b,-V): Delete.
11658 * doc/tm.texi: Do not mention -b.
11659 * gcc.c (display_help): Delete -b and -V.
11660 (process_command): Delete -b and -V.
11661 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
11663 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
11664 Wolfgang Gellerich <gellerich@de.ibm.com>
11666 Implement target hook for loop unrolling
11667 * target.h (loop_unroll_adjust): Add a new target hook function.
11668 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
11669 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
11670 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
11671 (s390_loop_unroll_adjust): Implement the new target hook for s390.
11672 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
11674 (decide_unroll_stupid): Likewise.
11676 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11679 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
11681 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11683 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
11684 (Specific, *-*-solaris2*): Likewise.
11685 Don't prefer Sun as over GNU as.
11687 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
11689 * config/s390/s390.c (override_options): Adjust the z10 defaults
11690 for max-unroll-times, max-completely-peeled-insns
11691 and max-completely-peel-times.
11693 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11695 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
11696 instructions for z10.
11697 (s390_expand_setmem): Likewise.
11698 (s390_expand_cmpmem): Likewise.
11700 2010-04-08 Richard Guenther <rguenther@suse.de>
11702 PR tree-optimization/43679
11703 * tree-ssa-pre.c (eliminate): Only propagate copies.
11705 2010-04-08 Jakub Jelinek <jakub@redhat.com>
11708 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
11709 set but not used variable warning.
11711 2010-04-08 Wei Guozhi <carrot@google.com>
11714 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
11715 (arm_size_rtx_costs): Call the new function when optimized for size.
11717 2010-04-08 Jakub Jelinek <jakub@redhat.com>
11720 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
11721 op0 is not a MEM, just return NULL instead of assertion
11723 (discover_nonconstant_array_refs): Don't walk debug stmts.
11725 2010-04-08 Doug Kwan <dougkwan@google.com>
11727 * configure.ac: Recognize gold and do not use its version number
11728 to test ld features.
11729 * configure: Regenerate.
11731 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
11733 PR middle-end/40815
11734 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
11735 (negate_value): Move code to push elements to broken_up_substracts ...
11736 (eliminate_plus_minus_pair): ... here. Push operands that have no
11737 negative pair to plus_negates.
11738 (repropagate_negates, init_reassoc, fini_reassoc): Update.
11740 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11742 * doc/install.texi (Configuration): Move description of
11743 --enable-lto, --with-libelf*, --enable-gold from Java section to
11746 * doc/generic.texi (Working with declarations)
11747 (Function Properties, C and C++ Trees): Fix typos.
11748 * doc/sourcebuild.texi (Top Level): Likewise.
11750 2010-04-07 Jakub Jelinek <jakub@redhat.com>
11753 * tree.h (DECL_READ_P): Define.
11754 (struct tree_decl_common): Add decl_read_flag.
11755 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
11756 a set but not used warning.
11757 (merge_decls): Merge DECL_READ_P flag.
11758 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
11759 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
11760 * c-common.c (handle_used_attribute, handle_unused_attribute):
11762 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
11764 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
11766 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
11767 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
11768 c_parser_binary_expression, c_parser_cast_expression,
11769 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
11770 Call default_function_array_read_conversion instead of
11771 default_function_array_conversion where needed.
11772 (c_parser_unary_expression, c_parser_conditional_expression,
11773 c_parser_postfix_expression_after_primary, c_parser_initelt):
11774 Likewise. Call mark_exp_read where needed.
11775 (c_parser_statement_after_labels, c_parser_asm_operands,
11776 c_parser_typeof_specifier, c_parser_sizeof_expression,
11777 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
11779 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
11781 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
11782 (warn_unused_but_set_parameter): Default to warn_unused
11784 * doc/invoke.texi: Document -Wunused-but-set-variable and
11785 -Wunused-but-set-parameter.
11787 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
11788 used count variable.
11789 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
11790 when operandN variables aren't used in the body of the expander
11792 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
11793 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
11794 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
11795 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
11796 FOR_EACH_IMM_USE_ON_STMT): Likewise.
11797 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
11798 * tree.c (PROCESS_ARG): Likewise.
11800 2010-04-07 Simon Baldwin <simonb@google.com>
11802 * diagnostic.h (diagnostic_override_option_index): New macro to
11803 set a diagnostic's option_index.
11804 * c-tree.h (c_cpp_error): Add warning reason argument.
11805 * opts.c (_warning_as_error_callback): New.
11806 (register_warning_as_error_callback): Store callback for
11807 warnings enabled via enable_warning_as_error.
11808 (enable_warning_as_error): Call callback, minor code tidy.
11809 * opts.h (register_warning_as_error_callback): Declare.
11810 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
11811 response to -Werror=.
11812 (c_common_init_options): Register warning_as_error_callback in opts.c.
11813 * common.opt: Add -Wno-cpp option.
11814 * c-common.c (struct reason_option_codes_t): Map cpp warning
11815 reason codes to gcc option indexes.
11816 * (c_option_controlling_cpp_error): New function, lookup the gcc
11817 option index for a cpp warning reason code.
11818 * (c_cpp_error): Add warning reason argument, call
11819 c_option_controlling_cpp_error for diagnostic_override_option_index.
11820 * doc/invoke.texi: Document -Wno-cpp.
11822 2010-04-07 Richard Guenther <rguenther@suse.de>
11824 * ipa-reference.c (mark_load): Use get_base_address.
11825 (mark_store): Likewise.
11827 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
11828 inserting GIMPLE_NOPs into the IL.
11829 * tree-ssa-structalias.c (get_constraint_for_component_ref):
11830 Explicitly strip handled components and indirect references.
11832 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
11833 folding address expressions.
11834 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
11835 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
11836 operand_equal_p to compare decls.
11837 (ptr_deref_may_alias_decl_p): Likewise.
11838 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
11839 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
11840 Handle reversed comparison ops.
11841 * tree-sra.c (asm_visit_addr): Use get_base_address.
11842 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
11843 * ipa-reference.c (mark_address): Use get_base_address.
11845 2010-04-07 Richard Guenther <rguenther@suse.de>
11847 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
11848 Propagate constants everywhere.
11850 2010-04-07 Jakub Jelinek <jakub@redhat.com>
11853 * tree.c (MAX_INT_CACHED_PREC): Define.
11854 (nonstandard_integer_type_cache): New array.
11855 (build_nonstandard_integer_type): Cache results for precision
11856 <= MAX_INT_CACHED_PREC.
11858 2010-04-07 Richard Guenther <rguenther@suse.de>
11860 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
11861 -fargument-noalias-global, -fargument-noalias-anything): Remove.
11862 * common.opt: Likewise.
11863 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
11864 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
11865 (nonoverlapping_memrefs_p): Likewise.
11866 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
11867 * opts.c (common_handle_option): Handle OPT_fargument_alias,
11868 OPT_fargument_noalias, OPT_fargument_noalias_anything and
11869 OPT_fargument_noalias_global for backward compatibility.
11871 2010-04-07 Richard Guenther <rguenther@suse.de>
11873 PR tree-optimization/43270
11874 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
11875 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
11876 * tree-ssa-pre.c (phi_translate_1): Adjust.
11877 (fully_constant_expression): Split out vn_reference handling to ...
11878 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
11879 Fold reads from constant strings.
11880 (vn_reference_lookup): Handle fully constant references.
11881 (vn_reference_lookup_pieces): Likewise.
11882 * Makefile.in (expmed.o-warn): Add -Wno-error.
11884 2010-04-07 Martin Jambor <mjambor@suse.cz>
11886 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
11888 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
11891 * gcc.c: Add -static-libstdc++ to list of recognized options.
11893 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11895 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
11897 2010-04-07 Richard Guenther <rguenther@suse.de>
11899 PR middle-end/42617
11900 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
11901 bases build simple mem attributes to retain points-to information.
11903 2010-04-07 Richard Guenther <rguenther@suse.de>
11905 PR middle-end/42617
11906 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
11907 preserve points-to related information.
11909 2010-04-07 Richard Guenther <rguenther@suse.de>
11911 PR middle-end/42617
11912 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
11913 discard plain indirect references.
11914 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
11915 * tree.c (tree_nop_conversion): Likewise.
11917 2010-04-07 Dodji Seketeli <dodji@redhat.com>
11920 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
11922 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
11924 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
11925 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
11927 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11929 * tree-if-conv.c: Fix indentation and comments.
11931 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11933 * tree-if-conv.c: Sort static functions in topological order.
11935 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11937 * tree-if-conv.c: Fix indentation and comments.
11939 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11941 PR middle-end/43519
11942 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
11943 lang_hooks.types.type_for_size instead of
11944 build_nonstandard_integer_type.
11945 When converting an unsigned type to signed, double its precision.
11946 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
11947 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
11948 (graphite_create_new_loop_guard): When ub + 1 wraps around,
11951 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11953 PR middle-end/43519
11954 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
11955 POINTER_PLUS_EXPR for pointer types.
11957 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11959 PR middle-end/43519
11960 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
11961 * graphite-clast-to-gimple.c: Include langhooks.h.
11962 (max_signed_precision_type): New.
11963 (max_precision_type): Takes two types as arguments.
11964 (precision_for_value): New.
11965 (precision_for_interval): New.
11966 (gcc_type_for_interval): New.
11967 (gcc_type_for_value): New.
11968 (gcc_type_for_clast_term): New.
11969 (gcc_type_for_clast_red): New.
11970 (gcc_type_for_clast_bin): New.
11971 (gcc_type_for_clast_expr): Split up into several functions.
11972 (gcc_type_for_clast_eq): Rewritten.
11973 (compute_bounds_for_level): New.
11974 (compute_type_for_level_1): New.
11975 (compute_type_for_level): New.
11976 (gcc_type_for_cloog_iv): Removed.
11977 (gcc_type_for_iv_of_clast_loop): Rewritten.
11978 (graphite_create_new_loop): Compute the lower and upper bound types
11979 with gcc_type_for_clast_expr.
11980 (graphite_create_new_loop_guard): Same.
11981 (find_cloog_iv_in_expr): Removed.
11982 (compute_cloog_iv_types_1): Removed.
11983 (compute_cloog_iv_types): Removed.
11984 (gloog): Do not call compute_cloog_iv_types.
11985 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
11986 GBB_CLOOG_IV_TYPES.
11987 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
11988 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
11989 (GBB_CLOOG_IV_TYPES): Removed.
11991 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11993 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
11994 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
11995 (detect_commutative_reduction): Same.
11997 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11999 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
12000 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
12002 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
12003 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
12004 (rewrite_commutative_reductions_out_of_ssa): Same.
12005 * passes.c (execute_function_todo): Call verify_ssa for every pass
12006 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
12007 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
12008 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
12009 with an extra argument.
12010 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
12011 verify_ssa only when the extra argument is true.
12012 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
12013 with an extra argument.
12014 (tree_transform_and_unroll_loop): Same.
12016 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
12018 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
12019 for all the passes of the LNO having LOOP_CLOSED_SSA.
12020 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
12021 * tree-loop-distribution.c (pass_loop_distribution): Same.
12022 * tree-pass.h (TODO_verify_loops): Removed.
12023 * tree-ssa-loop.c (pass_tree_loop_init): Same.
12025 (pass_tree_unswitch): Same.
12026 (pass_predcom): Same.
12027 (pass_vectorize): Same.
12028 (pass_linear_transform): Same.
12029 (pass_graphite_transforms): Same.
12030 (pass_iv_canon): Same.
12031 (pass_complete_unroll): Same.
12032 (pass_complete_unrolli): Same.
12033 (pass_parallelize_loops): Same.
12034 (pass_loop_prefetch): Same.
12035 (pass_iv_optimize): Same.
12037 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
12039 PR middle-end/32824
12040 * passes.c (init_optimization_passes): Move pass_lim before
12041 pass_copy_prop and pass_dce_loop.
12043 2010-04-06 Jakub Jelinek <jakub@redhat.com>
12046 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
12047 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
12048 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
12049 MULTI_* defines for 4 argument vpermil2p* builtins.
12051 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
12053 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
12054 * config/i386/i386.c (x86_maybe_negate_const_int): New.
12055 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
12056 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
12057 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
12058 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
12059 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
12060 Use x86_maybe_negate_const_int to output insn mnemonic.
12061 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
12062 check from instruction predicate. Update comments.
12063 * config/i386/sync.md (sync_add<mode>): Use
12064 x86_maybe_negate_const_int to output insn mnemonic.
12066 2010-04-06 Jan Hubicka <jh@suse.cz>
12068 PR tree-optimization/42906
12069 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
12070 IGNORE_SELF argument. Set visited_control_parents for fully
12072 (find_obviously_necessary_stmts): Update call of
12073 mark_control_dependent_edges_necessary.
12074 (propagate_necessity): Likewise. Handle PHI edges more curefully.
12076 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
12078 * config/i386/i386.md: Remove comment about 'e' and 'E'
12081 2010-04-06 Richard Guenther <rguenther@suse.de>
12083 PR tree-optimization/43627
12084 * tree-vrp.c (extract_range_from_unary_expr): Widenings
12085 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
12088 2010-04-06 Jakub Jelinek <jakub@redhat.com>
12090 * BASE-VER: Change to 4.6.0.
12093 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
12096 2010-04-06 Richard Guenther <rguenther@suse.de>
12098 PR middle-end/43661
12099 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
12101 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12103 * doc/invoke.texi (Optimize Options): Document that LTO
12104 won't remove object access purely due to incompatible
12107 2010-04-04 Matthias Klose <doko@ubuntu.com>
12109 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
12110 Initialize variable.
12112 2010-04-03 Richard Guenther <rguenther@suse.de>
12114 PR middle-end/42509
12115 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
12116 require a non-NULL MEM_OFFSET.
12118 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
12120 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
12121 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
12122 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
12123 config/alpha/predicates.md, config/arm/arm.md,
12124 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
12125 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
12126 config/darwin9.h, config/darwin.c, config/darwin.h,
12127 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
12128 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
12129 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
12130 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
12131 config/mips/mips.md, config/mn10300/mn10300.c,
12132 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
12133 config/rs6000/aix.h, config/rs6000/dfp.md,
12134 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
12135 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
12136 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
12137 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
12138 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
12139 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
12140 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
12141 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
12142 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
12143 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
12144 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
12145 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
12146 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
12147 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
12148 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
12149 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
12150 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
12151 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
12152 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
12153 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
12154 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
12155 opt-functions.awk, opth-gen.awk, params.def, passes.c,
12156 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
12157 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
12158 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
12159 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
12160 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
12161 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
12162 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
12163 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
12164 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
12165 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
12166 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
12167 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
12168 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
12169 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
12171 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12174 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
12175 * aclocal.m4: Regenerate.
12177 2010-04-02 Richard Guenther <rguenther@suse.de>
12179 PR tree-optimization/43629
12180 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
12181 if we have seen a constant value.
12183 2010-04-02 Joseph Myers <joseph@codesourcery.com>
12185 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
12187 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
12190 * arm.c (legitimize_tls_address): Adjust call to
12191 gen_tls_load_dot_plus_four.
12192 (arm_note_pic_base): New function.
12193 (arm_cannot_copy_insn_p): Use it.
12194 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
12197 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12202 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12204 * Makefile.in ($(out_object_file)): Depend on
12205 gt-$(basename $(notdir $(out_file))).h.
12207 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
12209 * config.gcc (lm32-*-rtems*): Add t-lm32.
12211 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
12213 * config.gcc: Add lm32-*-rtems*.
12214 * config/lm32/rtems.h: New file.
12216 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
12219 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
12221 2010-04-01 Jakub Jelinek <jakub@redhat.com>
12223 * dwarf2out.c (output_compilation_unit_header): For
12224 -gdwarf-4 use version 4 instead of version 3.
12225 (output_line_info): For version 4 and above emit additional
12226 maximum ops per insn header field.
12227 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
12229 * dwarf2out.c (is_c_family, is_java): Remove.
12230 (lower_bound_default): New function.
12231 (add_bound_info, gen_descr_array_type_die): Use it.
12233 2010-04-01 Dodji Seketeli <dodji@redhat.com>
12236 * dwarf2out.c (gen_variable_die): Allow debug info for variable
12237 re-declaration when it happens in a function.
12239 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
12241 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
12242 (cgraph_remove_function_insertion_hook): Same.
12243 (cgraph_call_function_insertion_hooks): Same.
12245 2010-04-01 Richard Guenther <rguenther@suse.de>
12247 PR middle-end/43614
12248 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
12249 and TREE_THIS_VOLATILE.
12250 (copy_ref_info): Likewise.
12251 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
12252 * tree.c (build6_stat): Ignore side-effects of all but arg5
12253 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
12256 2010-04-01 Richard Guenther <rguenther@suse.de>
12258 PR tree-optimization/43607
12259 * ipa-type-escape.c (check_call): Do not access non-existing
12262 2010-04-01 Richard Guenther <rguenther@suse.de>
12264 PR middle-end/43602
12266 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
12267 Jack Howarth <howarth@bromo.med.uc.edu>
12269 * tree-profile.c (tree_init_ic_make_global_vars): Make static
12272 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12274 * doc/install.texi (Prerequisites): Document libelf usability on
12275 IRIX 5/6 and Solaris 2.
12276 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
12277 Update GNU as, GNU ld requirements.
12278 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
12279 Document Sun Studio compiler download.
12280 Update and simplify as, ld recommendations.
12281 (Specific, *-*-solaris2.7): Note obsoletion, removal.
12283 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12285 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
12286 with_tune_32 to pentium4.
12288 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
12290 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
12292 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12294 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
12295 obsoletion, removal.
12297 Document GNU as requirement.
12298 Update configure requirements.
12299 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
12300 Recomment IRIX 6.5.18+.
12301 Document IDF/IDL requirement.
12302 Document GNU as requirement.
12303 Document GNU ld bootstrap failure.
12304 Remove freeware.sgi.com reference.
12306 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12308 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
12309 UNIX V4.0, V5.0 obsoletion, removal.
12310 Remove --with-gc=simple reference.
12311 Update VM requirements during bootstrap.
12312 Remove -oldas bootstrap description.
12313 Update binutils reference.
12314 Remove comparison failure note.
12316 2010-03-31 Richard Guenther <rguenther@suse.de>
12317 Zdenek Dvorak <ook@ucw.cz>
12318 Sebastian Pop <sebastian.pop@amd.com>
12320 PR middle-end/43464
12321 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
12322 with multiple arguments.
12323 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
12325 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
12327 * graphite-dependences.c (print_pddr): Call print_pdr with an
12329 * graphite-poly.c (debug_pdr): Add an extra argument for the
12332 (print_pbb_domain): Same.
12334 (print_scop_context): Same.
12335 (print_scop): Same.
12336 (print_cloog): Same.
12337 (debug_pbb_domain): Same.
12339 (print_pdrs): Same.
12340 (debug_pdrs): Same.
12341 (debug_scop_context): Same.
12342 (debug_scop): Same.
12343 (debug_cloog): Same.
12344 (print_scop_params): Same.
12345 (debug_scop_params): Same.
12346 (print_iteration_domain): Same.
12347 (print_iteration_domains): Same.
12348 (debug_iteration_domain): Same.
12349 (debug_iteration_domains): Same.
12350 (print_scattering_function): Same.
12351 (print_scattering_functions): Same.
12352 (debug_scattering_function): Same.
12353 (debug_scattering_functions): Same.
12354 * graphite-poly.h (debug_pdr): Update declaration.
12356 (print_pbb_domain): Same.
12358 (print_scop_context): Same.
12359 (print_scop): Same.
12360 (print_cloog): Same.
12361 (debug_pbb_domain): Same.
12363 (print_pdrs): Same.
12364 (debug_pdrs): Same.
12365 (debug_scop_context): Same.
12366 (debug_scop): Same.
12367 (debug_cloog): Same.
12368 (print_scop_params): Same.
12369 (debug_scop_params): Same.
12370 (print_iteration_domain): Same.
12371 (print_iteration_domains): Same.
12372 (debug_iteration_domain): Same.
12373 (debug_iteration_domains): Same.
12374 (print_scattering_function): Same.
12375 (print_scattering_functions): Same.
12376 (debug_scattering_function): Same.
12377 (debug_scattering_functions): Same.
12379 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
12381 * graphite-poly.c (print_scattering_function_1): New.
12382 (print_scattering_function): Call it.
12383 (print_scop_params): Remove spaces at the end of lines.
12384 (print_cloog): New.
12385 (debug_cloog): New.
12386 * graphite-poly.h (print_cloog): Declared.
12387 (debug_cloog): Declared.
12389 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
12391 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
12393 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
12394 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
12395 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
12396 to switch between adding the IV bump in loop->latch or in loop->header.
12398 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
12400 * graphite-poly.c (print_scattering_function): Pretty print following
12401 the scoplib format.
12403 (print_pbb_domain): Same.
12404 (dump_gbb_cases): Same.
12405 (dump_gbb_conditions): Same.
12406 (print_pdrs): Same.
12408 (print_scop_params): Same.
12409 (print_scop_context): Same.
12410 (print_scop): Same.
12411 (print_pbb_body): New.
12412 (lst_indent_to): New.
12413 (print_lst): Start new lines with a #.
12414 * graphite-poly.h (pbb_bb): New.
12415 (pbb_index): Use pbb_bb.
12416 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
12418 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
12420 2010-03-31 Jakub Jelinek <jakub@redhat.com>
12422 * dwarf2out.c (size_of_die): For -gdwarf-4 use
12423 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
12424 and 0 instead of 1 for dw_val_class_flag.
12425 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
12426 dw_val_class_range_list, dw_val_class_loc_list,
12427 dw_val_class_lineptr and dw_val_class_macptr, use
12428 DW_FORM_flag_present for dw_val_class_flag and
12429 DW_FORM_exprloc for dw_val_class_loc.
12430 (output_die): For -gdwarf-4 print dw_val_class_loc
12431 size as uleb128 instead of 1 or 2 bytes and don't print
12432 anything for dw_val_class_flag.
12434 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
12435 instead of cselib_lookup following by tweaking locs->setting_insn.
12438 * cselib.c (cselib_process_insn): Clear cselib_current_insn
12439 even before returning from label, setjmp call or volatile asm
12442 2010-03-31 Richard Guenther <rguenther@suse.de>
12444 PR middle-end/43600
12445 * cgraphunit.c (cgraph_output_in_order): Do not allocate
12446 temporary data on stack.
12448 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12450 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
12451 (PUSHSECTION_ASM_OP): Remove.
12452 (POPSECTION_ASM_OP): Remove.
12453 (PUSHSECTION_FORMAT): Remove.
12454 * config/sol2.h (PUSHSECTION_FORMAT): Define.
12455 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
12456 * config/sol2.c (solaris_output_init_fini): Use it.
12458 2010-03-31 Jie Zhang <jie@codesourcery.com>
12461 * opt-functions.awk (var_type_struct): Use signed char type
12462 for simple variables.
12464 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12466 * config/sol2.c: Include output.h.
12467 (solaris_assemble_visibility): New function.
12468 * config/t-sol2 (sol2.o): Add output.h dependency.
12469 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
12470 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
12473 2010-03-31 Jakub Jelinek <jakub@redhat.com>
12476 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
12477 V2SImode or XFmode on PRE_DEC.
12480 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
12483 2010-03-31 Jie Zhang <jie@codesourcery.com>
12486 * reload.h (caller_save_initialized_p): Declare.
12487 * toplev.c (backend_init_target): Don't call
12488 init_caller_save but set caller_save_initialized_p to false.
12489 * caller-save.c (caller_save_initialized_p): Define.
12490 (init_caller_save): Check caller_save_initialized_p.
12491 * ira.c (ira): Call init_caller_save if flag_caller_saves.
12493 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12496 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
12497 and soft-fp/t-softfp to tmake_file.
12498 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
12499 (LIBGCC2_TF_CEXT): Define.
12502 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
12505 * cselib.c (n_useless_values): Document handling of debug locs.
12506 (n_useless_debug_values, n_debug_values): New variables.
12507 (new_elt_loc_list): Don't add to debug values, keep count.
12508 (promote_debug_loc): New.
12509 (cselib_reset_table): Zero new variables.
12510 (entry_and_rtx_equal_p): Promote debug locs.
12511 (discard_useless_locs): Increment n_useless_debug_values for
12513 (remove_useless_values): Adjust n_useless_values and n_debug_values
12514 with n_useless_debug_values.
12515 (add_mem_for_addr): Promote debug locs.
12516 (cselib_lookup_mem): Likewise.
12517 (cselib_lookup_addr): Renamed to...
12518 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
12519 (cselib_log_lookup): ... this. Turn into...
12520 (cselib_lookup_addr): ... new wrapper.
12521 (cselib_lookup_from_insn): New.
12522 (cselib_invalidate_regno): Increment n_useless_debug_values for
12524 (cselib_invalidate_mem): Likewise.
12525 (cselib_process_insn): Take n_deleted and n_debug_values into
12526 account to guard remove_useless_value call.
12527 (cselib_finish): Zero n_useless_debug_values.
12528 * cselib.h (cselib_lookup_from_insn): Declare.
12529 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
12530 (sched_analyze_2): Likewise.
12532 2010-03-30 Jakub Jelinek <jakub@redhat.com>
12534 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
12536 (adjust_mems): Replace narrowing SUBREG of expression containing
12537 just PLUS, MINUS, MULT and ASHIFT of registers and constants
12538 with operations in the narrower mode.
12541 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
12542 regs_invalidated_by_call instead all call_used_reg_set registers.
12544 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
12546 PR middle-end/43430
12547 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
12548 pointer comparisons with types_compatible_p.
12549 * tree-vect-stmts.c (vectorizable_call): Same.
12550 (vectorizable_condition): Same.
12552 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12554 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
12555 stack check if the mask would be zero.
12557 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
12558 Jack Howarth <howarth@bromo.med.uc.edu>
12560 * tree-profile.c (tree_init_ic_make_global_vars): Make static
12563 2010-03-30 Joseph Myers <joseph@codesourcery.com>
12566 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
12568 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
12569 Include ___unordxf2 and ___unordtf2.
12570 * config/i386/libgcc-glibc.ver: Do not define inheritance from
12573 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
12575 * config/lm32/t-lm32: New file.
12576 * config.gcc: Use the above file when targetting lm32.
12578 2010-03-28 Duncan Sands <baldrick@free.fr>
12580 * Makefile.in (PLUGIN_HEADERS): Add except.h.
12582 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
12584 PR middle-end/43431
12585 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
12586 Improve vectorization cost model diagnostic.
12588 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
12590 PR middle-end/43436
12591 * tree-vect-data-refs.c (vect_analyze_data_refs): When
12592 compute_data_dependences_for_loop returns false, early exit
12593 and output an extra diagnostic for the failed data reference
12596 2010-03-29 Richard Guenther <rguenther@suse.de>
12598 PR tree-optimization/43560
12599 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
12600 (can_sm_ref_p): Treat stores to readonly locations as trapping.
12602 2010-03-29 Jie Zhang <jie@codesourcery.com>
12605 * toplev.c (process_options): Set optimization_default_node
12606 and optimization_current_node.
12607 * opts.c (decode_options): Don't set optimization_default_node
12608 and optimization_current_node.
12610 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
12612 * config/rtems.h: Abandon -qrtems_debug.
12614 2010-03-28 Jan Hubicka <jh@suse.cz>
12616 PR tree-optimization/43505
12617 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
12618 map should not be copied.
12620 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12622 PR middle-end/41674
12623 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
12624 cdtors, set DECL_PRESERVE_P.
12625 * ipa.c (cgraph_externally_visible_p): Return true if declaration
12626 should be preseved.
12628 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
12630 PR tree-optimization/43528
12631 * stor-layout.c (place_field): Check that constant fits into
12632 unsigned HWI when skipping calculation of MS bitfield layout.
12634 2010-03-27 Jan Hubicka <jh@suse.cz>
12636 PR middle-end/43391
12637 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
12638 notice_global_symbol work.
12640 2010-03-27 Jakub Jelinek <jakub@redhat.com>
12642 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
12643 instead of dwarf2out_decl.
12644 (struct var_loc_node): Remove section_label field.
12645 (dwarf2out_function_decl): New function.
12646 (dwarf2out_var_location): Don't set section_label field.
12647 (dwarf2out_begin_function): Don't empty decl_loc_table here.
12649 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12651 PR tree-optimization/43544
12652 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
12653 First argument for builtin vectorized function hook is now a
12654 tree to be able to distinguish between machine specific and
12656 * targhooks.c (default_builtin_vectorized_function): Ditto.
12657 * targhooks.h (default_builtin_vectorized_function): Ditto.
12658 * target.h (struct gcc_target): Ditto.
12659 * tree-vect-stmts.c (vectorizable_function): Ditto.
12660 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
12661 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
12664 2010-03-26 Joseph Myers <joseph@codesourcery.com>
12667 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
12668 nested binding iff it is a FUNCTION_DECL.
12669 (store_parm_decls_newstyle): Pass nested=true to bind for
12670 FUNCTION_DECLs amongst parameters.
12672 2010-03-26 Jakub Jelinek <jakub@redhat.com>
12674 * var-tracking.c (vt_expand_loc_callback): Don't run
12675 cselib_expand_value_rtx_cb in dummy mode if
12676 cselib_dummy_expand_value_rtx_cb returned false.
12678 * var-tracking.c (emit_note_insn_var_location): For one part
12679 notes with offset 0, don't add EXPR_LIST around the location.
12680 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
12681 add_location_or_const_value_attribute): Adjust for that change.
12684 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
12685 into first operand and location into second.
12686 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
12687 dw_cfi_oprnd_loc for DW_CFA_expression.
12688 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
12689 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
12690 assume first argument is regnum and second argument is location.
12692 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
12695 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
12696 of scratch register to DImode. Split to DImode comparison operator.
12697 Use SImode subreg of scratch register in the multiplication.
12698 (*cmp_sadd_sidi): Ditto.
12699 (*cmp_ssub_si): Ditto.
12700 (*cmp_ssub_sidi): Ditto.
12702 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
12705 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
12706 Remove invalid assert and wrong comment.
12708 2010-03-26 Jakub Jelinek <jakub@redhat.com>
12711 * flags.h (final_insns_dump_p): New extern.
12712 * final.c (final_insns_dump_p): New variable.
12713 (rest_of_clean_state): Set it before -fdump-final-insns=
12714 dumping, clear afterwards.
12715 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
12716 MEM_ALIAS_SET on MEMs.
12718 2010-03-26 David S. Miller <davem@davemloft.net>
12720 * configure.ac: Fix sparc GOTDATA_OP bug check.
12721 * configure: Rebuild.
12723 2010-03-26 Alan Modra <amodra@gmail.com>
12725 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
12727 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12729 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
12730 TLS_SECTION_ASM_FLAG.
12732 2010-03-25 Jakub Jelinek <jakub@redhat.com>
12735 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
12736 Clear first_function_block_is_cold.
12739 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
12740 argument if the argument is truth_value_p.
12742 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12744 * config/rs6000/constraints.md: Update copyright year for my changes.
12747 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
12748 used in reg+reg addressing, swap registers.
12750 2010-03-24 Jakub Jelinek <jakub@redhat.com>
12753 * target.h (struct gcc_target): Add code_end hook.
12754 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
12755 if not yet defined.
12756 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
12757 * toplev.c (compile_file): Call targetm.asm_out.code_end
12758 hook before unwind info/debug info output.
12759 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
12760 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
12761 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
12762 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
12763 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
12764 * config/i386/i386.c (ix86_file_end): Renamed to...
12765 (ix86_code_end): ... this. Make static. Don't call
12766 file_end_indicate_exec_stack. Emit unwind info using
12767 final_start_function/final_end_function.
12768 (darwin_x86_file_end): Remove.
12769 (TARGET_ASM_CODE_END): Define.
12770 * config/i386/i386.h (TARGET_ASM_FILE_END,
12771 NEED_INDICATE_EXEC_STACK): Don't define.
12772 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
12773 (TARGET_ASM_FILE_END): Define to darwin_file_end.
12774 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
12775 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
12778 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
12779 at the beginning and final_end_function at the end.
12780 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
12782 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12784 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
12785 and Sun as TLS syntax.
12786 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
12787 * configure: Regenerate.
12788 * config.in: Regenerate.
12789 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
12790 (default_elf_asm_named_section): Use it.
12791 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
12792 (i386_output_dwarf_dtprel): Likewise.
12793 (output_addr_const_extra): Likewise.
12794 (output_pic_addr_const): Lowercase @GOTTPOFF.
12795 (output_addr_const_extra): Likewise.
12796 (output_pic_addr_const): Lowercase @GOTNTPOFF.
12797 (output_addr_const_extra): Likewise.
12798 (output_pic_addr_const): Lowercase @INDNTPOFF.
12799 (output_addr_const_extra): Likewise.
12800 (output_pic_addr_const): Lowercase @NTPOFF.
12801 (output_addr_const_extra): Likewise.
12802 (output_pic_addr_const): Lowercase @TPOFF.
12803 (output_addr_const_extra): Likewise.
12804 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
12805 (*tls_global_dynamic_64): Likewise.
12806 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
12807 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
12809 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
12810 (ASM_OUTPUT_TLS_COMMON): Use it.
12811 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
12814 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
12815 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
12816 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
12817 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
12818 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
12819 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
12821 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12823 * config/i386/i386.c (override_options): Don't accept
12824 -mtls-dialect=sun any longer.
12825 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
12826 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
12827 (*tls_local_dynamic_base_32_sun): Likewise.
12828 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
12830 2010-03-24 Jakub Jelinek <jakub@redhat.com>
12833 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
12834 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
12837 * ira.c (adjust_cleared_regs): New function.
12838 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
12842 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
12844 * expr.c (expand_expr_real): Restore previous
12845 curr_insn_source_location and curr_insn_block after
12846 expand_expr_real_1 call.
12847 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
12848 instead of expand_expr_real_1.
12850 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
12852 PR rtl-optimization/43413
12853 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
12856 2010-03-22 James E. Wilson <wilson@codesourcery.com>
12859 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
12860 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
12862 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
12864 * config/i386/i386.c (ix86_target_string): Add -mfma.
12865 Fix a typo in comment.
12867 2010-03-22 Mike Stump <mikestump@comcast.net>
12870 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
12871 Don't overly align based upon packed packed fields.
12873 2010-03-22 Jason Merrill <jason@redhat.com>
12875 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
12876 Use () rather than [], and move before the element type.
12878 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12880 * doc/configfiles.texi (Configuration Files): Removed
12881 fixinc/Makefile*, intl/Makefile.*.
12882 * doc/makefile.texi: Fixed markup. Abstract from version
12883 control system used.
12884 (Makefile): Removed obsolete gcc/java/parse.y example.
12885 * doc/sourcebuild.texi: Likewise.
12886 (Top Level): Added config, gnattools, libdecnumber, libgcc,
12887 libgomp, libssp. Removed fastjar.
12888 (Miscellaneous Docs): Clarify location.
12889 Added COPYING3, COPYING3.LIB.
12890 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
12892 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12895 * config/i386/i386.c (x86_function_profiler)
12896 [!NO_PROFILE_COUNTERS]: Fix typo.
12897 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
12900 2010-03-22 Janis Johnson <janis187@us.ibm.com>
12901 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12903 * doc/sourcebuild.texi (Test Directives): Split into six
12904 subsections, with most of the current text in new subsections
12905 Directives, Selectors, and Final Actions.
12906 (Directives): Split list of test directives into multiple
12908 (Selectors): Describe use and syntax of selectors.
12909 (Effective-Target Keywords): Describe all existing keywords.
12910 (Add Options): Describe features for dg-add-options.
12911 (Require Support): Describe variants of dg-require-support.
12912 (Final Actions): Describe commands to use in dg-final.
12914 2010-03-22 Michael Matz <matz@suse.de>
12916 PR middle-end/43475
12917 * recog.c (validate_replace_rtx_group): Replace also in
12918 REG_EQUAL and REG_EQUIV notes.
12920 2010-03-22 Richard Guenther <rguenther@suse.de>
12922 PR tree-optimization/43390
12923 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
12924 sure vector extracts are type correct.
12926 2010-03-22 Richard Guenther <rguenther@suse.de>
12928 PR middle-end/40106
12929 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
12930 x * sqrt (x) even when optimizing for size if the target
12931 has native support for sqrt.
12933 2010-03-22 Jakub Jelinek <jakub@redhat.com>
12935 * varasm.c (make_decl_rtl_for_debug): Also clear
12936 flag_mudflap for the duration of make_decl_rtl call.
12939 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
12940 locs from preserved VALUEs.
12942 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12944 PR middle-end/42718
12945 * pa.md (movmemsi): Set align to one if zero.
12946 (movmemdi): Likewise.
12948 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
12951 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
12952 with their corresponding prologue pushes.
12954 2010-03-20 Andrew Pinski <pinskia@gmail.com>
12957 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
12958 at the begining or end.
12959 (spu_expand_epilogue): Likewise.
12961 2010-03-20 Richard Guenther <rguenther@suse.de>
12963 PR rtl-optimization/43438
12964 * combine.c (make_extraction): Properly zero-/sign-extend an
12965 extraction of the low part of a CONST_INT. Also handle
12968 2010-03-19 Mike Stump <mikestump@comcast.net>
12970 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
12971 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
12972 (override_options): Use SUBTARGET32_DEFAULT_CPU.
12974 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
12977 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
12980 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
12982 PR rtl-optimization/42258
12983 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
12984 use that may match DEF.
12987 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
12988 the cost of loading the constant rather than assuming
12990 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
12991 outer code is AND, do the same tests as the andsi3 expander and
12992 return COSTS_N_INSNS (1) if and is cheap.
12994 * optabs.c (avoid_expensive_constant): Fix formatting.
12996 2010-03-19 Michael Matz <matz@suse.de>
12999 * attribs.c (decl_attributes): When rebuilding a function pointer
13000 type use the same qualifiers as the original pointer type.
13002 2010-03-19 Martin Jambor <mjambor@suse.cz>
13004 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
13005 and is_gimple_ip_invariant_address.
13007 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13010 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13012 * config/arm/arm.c (arm_override_options): Turn off
13013 flag_dwarf2_cfi_asm for AAPCS variants.
13015 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13018 * config/arm/arm.c (emit_multi_reg_push): Update comments.
13019 Use PRE_MODIFY instead of PRE_DEC.
13020 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
13021 (vfp_emit_fstmd): Likewise.
13023 2010-03-19 Michael Matz <matz@suse.de>
13026 * builtins.c (expand_builtin_interclass_mathfn,
13027 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
13030 2010-03-19 Richard Guenther <rguenther@suse.de>
13032 PR tree-optimization/43415
13033 * tree-ssa-pre.c (phi_translate): Split out worker to ...
13034 (phi_translate_1): ... this.
13035 (phi_translate): Move all caching here. Cache all NARY
13036 and REFERENCE translations.
13038 2010-03-19 David S. Miller <davem@davemloft.net>
13040 With help from Eric Botcazou.
13041 * config/sparc/sparc.c: Include dwarf2out.h.
13042 (emit_pic_helper): Delete.
13043 (pic_helper_symbol_name): Delete.
13044 (pic_helper_emitted_p): Delete.
13045 (pic_helper_needed): New.
13046 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
13047 (get_pc_thunk_name): New.
13048 (load_pic_register): Remove 'delay_pic_helper' arg. Use
13049 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
13050 Set pic_helper_needed to true. Don't call emit_pic_helper.
13051 (sparc_expand_prologue): Update load_pic_register call.
13052 (sparc_output_mi_thunk): Likewise.
13053 (sparc_file_end): Emit a hidden comdat symbol for the PIC
13054 thunk if possible. Output CFI information as needed.
13056 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13057 Jack Howarth <howarth@bromo.med.uc.edu>
13060 * config/i386/i386.h: Fix ABI on darwin x86-32.
13062 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
13064 * tree.h: Declare make_decl_rtl_for_debug.
13065 * varasm.c (make_decl_rtl_for_debug): New.
13066 * dwarf2out.c (rtl_for_decl_location): Call it.
13067 * cfgexpand.c (expand_debug_expr): Call it.
13069 2010-03-18 Jakub Jelinek <jakub@redhat.com>
13072 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
13076 * var-tracking.c (vt_init_cfa_base): Do nothing if
13077 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
13079 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
13082 * var-tracking.c (canonicalize_vars_star): New.
13083 (dataflow_post_merge_adjust): Use it.
13085 2010-03-18 Jakub Jelinek <jakub@redhat.com>
13088 * var-tracking.c (non_suitable_const): New function.
13089 (add_uses): For DEBUG_INSNs with constants, don't record any
13090 value, instead just the constant value itself.
13091 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
13092 is not VAR_LOC_UNKNOWN_P, set var to the constant.
13093 (emit_notes_in_bb): Likewise.
13094 (emit_note_insn_var_location): For onepart variables if
13095 cur_loc is a VOIDmode constant, use DECL_MODE.
13097 2010-03-18 Martin Jambor <mjambor@suse.cz>
13099 PR middle-end/42450
13100 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
13101 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
13102 all non-clones. Moved call redirection...
13103 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
13104 (cgraph_materialize_all_clones): Dispose of all
13105 combined_args_to_skip bitmaps.
13106 (verify_cgraph_node): Do not check for edges pointing to wrong
13107 nodes in inline clones.
13108 * tree-inline.c (copy_bb): Call
13109 cgraph_redirect_edge_call_stmt_to_callee.
13110 * ipa.c (cgraph_remove_unreachable_nodes): Call
13111 cgraph_node_remove_callees even when there are used clones.
13113 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
13115 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
13117 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
13120 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
13123 2010-03-18 Michael Matz <matz@suse.de>
13125 PR middle-end/43419
13126 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
13127 into sqrt(x) if we need to preserve signed zeros.
13129 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
13130 Eric Botcazou <ebotcazou@adacore.com>
13132 PR rtl-optimization/43360
13133 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
13134 note if we don't know its invariant status.
13136 2010-03-18 Michael Matz <matz@suse.de>
13138 PR tree-optimization/43402
13139 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
13140 PHI chains of ssa names registered for update.
13142 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
13145 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
13146 non-offsettable and pre_modify update addressing.
13147 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
13148 and "2" alternatives "#".
13149 (*movdd_softfloat32): Make all alternatives "#";
13150 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
13151 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
13152 (*movdf_softfloat32): Make all alternatives "#";
13153 (movdi): Use the new DIFD mode iterator to create a common splitter
13154 for movdi, movdf and movdd patterns.
13156 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
13158 * common.opt (dumpdir): Remove redundant tab.
13160 2010-03-17 Martin Jambor <mjambor@suse.cz>
13162 PR tree-optimization/43347
13163 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
13164 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
13166 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
13168 PR rtl-optimization/42216
13169 * regrename.c (create_new_chain): New function, broken out from...
13170 (scan_rtx_reg): ... here. Call it. Handle the case where we are
13171 appending a use to an empty chain.
13172 (build_def_use): Remove previous changes that convert OP_INOUT to
13173 OP_OUT operands; instead detect the case where an OP_INOUT operand
13174 uses a previously untracked register and create an empty chain for it.
13176 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13178 * doc/extend.texi (Function Attributes): Rewrite unfinished
13179 sentence in ms_abi documentation.
13181 2010-03-17 Alan Modra <amodra@gmail.com>
13183 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
13184 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
13185 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
13186 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
13188 2010-03-16 Richard Henderson <rth@redhat.com>
13190 PR middle-end/43365
13191 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
13192 (lower_try_finally): Save and restore eh_seq around the expansion
13193 of the try-finally.
13195 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
13197 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
13198 statements before splitting block.
13200 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13202 * doc/sourcebuild.texi (Testsuites): Fix markup.
13203 Use pathnames relative to gcc/testsuite.
13204 (Test Directives): Move description of how timeout is determined.
13205 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
13206 (C Tests): Correct gcc.misc-tests directory.
13207 Framework tests now live in gcc.test-framework.
13209 2010-03-16 Richard Guenther <rguenther@suse.de>
13211 PR middle-end/43379
13212 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
13213 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
13215 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
13216 Alexandre Oliva <aoliva@redhat.com>
13218 PR tree-optimization/42917
13219 * lambda-code.c (remove_iv): Skip debug statements.
13220 (lambda_loopnest_to_gcc_loopnest): Likewise.
13221 (not_interesting_stmt): Debug statements are not interesting.
13223 2010-03-16 Jakub Jelinek <jakub@redhat.com>
13227 * cselib.c (cselib_preserve_constants,
13228 cfa_base_preserved_val): New static variables.
13229 (preserve_only_constants): New function.
13230 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
13231 clear its REG_VALUES. If cselib_preserve_constants, don't
13232 empty the whole hash table, but preserve there VALUEs with constants,
13233 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
13234 (cselib_preserve_cfa_base_value): New function.
13235 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
13236 (cselib_init): Change argument to int bitfield. Set
13237 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
13239 (cselib_finish): Clear cselib_preserve_constants and
13240 cfa_base_preserved_val.
13241 * cselib.h (enum cselib_record_what): New enum.
13242 (cselib_init): Change argument to int.
13243 (cselib_preserve_cfa_base_value): New prototype.
13244 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
13245 * dse.c (dse_step1): Likewise.
13246 * cfgcleanup.c (thread_jump): Likewise.
13247 * sched-deps.c (sched_analyze): Likewise.
13248 * gcse.c (local_cprop_pass): Likewise.
13249 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
13250 If FN is non-NULL, call the callback always and whenever it returns
13251 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
13252 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
13253 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
13254 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
13255 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
13256 * var-tracking.c: Include recog.h.
13257 (bb_stack_adjust_offset): Remove.
13258 (vt_stack_adjustments): Don't call it, instead just gather the
13259 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
13260 (adjust_stack_reference): Remove.
13261 (compute_cfa_pointer): New function.
13262 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
13263 (struct adjust_mem_data): New type.
13264 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
13266 (get_address_mode): New function.
13267 (replace_expr_with_values): Use it.
13268 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
13269 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
13270 (adjust_sets): Remove.
13271 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
13272 Use get_address_mode.
13273 (get_adjusted_src): Remove.
13274 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
13275 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
13276 (add_with_sets): Don't call adjust_sets.
13277 (fp_setter, vt_init_cfa_base): New functions.
13278 (vt_initialize): Change return type to bool. Move most of pool etc.
13279 initialization to the beginning of the function from end. Pass
13280 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
13281 If !frame_pointer_needed, call vt_stack_adjustment before mos
13282 vector is filled, call vt_init_cfa_base if argp/framep has been
13283 eliminated to sp. If frame_pointer_needed and argp/framep has
13284 been eliminated to hard frame pointer, set
13285 hard_frame_pointer_adjustment and call vt_init_cfa_base after
13286 encountering fp setter in the prologue. For MO_ADJUST, call
13287 log_op_type before pusing the op into mos vector, not afterwards.
13288 Call adjust_insn before cselib_process_insn/add_with_sets,
13289 call cancel_changes (0) afterwards.
13290 (variable_tracking_main_1): Adjust for vt_initialize calling
13291 vt_stack_adjustments and returning whether it succeeded or not.
13293 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
13295 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
13298 2010-03-15 Jakub Jelinek <jakub@redhat.com>
13300 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
13302 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
13303 drap_reg has not been set.
13305 2010-03-15 Michael Matz <matz@suse.de>
13307 PR middle-end/43300
13308 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
13309 use it to expand block copies.
13310 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
13311 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
13312 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
13314 2010-03-15 Richard Guenther <rguenther@suse.de>
13316 PR tree-optimization/43367
13317 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
13320 2010-03-15 Richard Guenther <rguenther@suse.de>
13322 PR tree-optimization/43317
13323 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
13325 2010-03-15 Martin Jambor <mjambor@suse.cz>
13327 PR tree-optimization/43141
13328 * tree-sra.c (create_abstract_origin): New function.
13329 (modify_function): Call create_abstract_origin.
13331 2010-03-15 Chris Demetriou <cgd@google.com>
13333 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
13336 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13338 PR middle-end/43354
13339 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
13340 call insert_out_of_ssa_copy for default definitions.
13342 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13344 * graphite-clast-to-gimple.c (my_long_long): Defined.
13345 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
13346 * graphite-sese-to-poly.c (my_long_long): Defined.
13347 (scop_ivs_can_be_represented): Use it.
13349 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13351 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
13352 graphite-max-bbs-per-function, and loop-block-tile-size.
13353 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
13355 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
13357 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13359 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
13360 forward declaration.
13361 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
13362 (add_upper_bounds_from_estimated_nit): New.
13363 (build_loop_iteration_domains): Use it.
13365 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13367 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
13369 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13371 PR middle-end/43306
13372 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
13373 should be an INTEGER_CST. Also handle CASE_CONVERT.
13375 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13377 * graphite.c (graphite_initialize): To bound the number of bbs per
13378 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
13379 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
13380 * doc/invoke.texi: Document it.
13382 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13384 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
13385 * graphite-sese-to-poly.h (build_poly_scop): Same.
13387 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13389 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
13390 the number of parameters in the scop. Use as an upper bound
13391 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
13392 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
13393 * doc/invoke.texi: Document it.
13395 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
13397 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
13398 * doc/c-tree.texi: Remove.
13399 * doc/generic.texi: Merge c-tree.texi here.
13400 * doc/gccint.texi (Trees): Remove menu entry.
13401 (c-tree.texi): Remove @include.
13402 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
13403 * doc/languages.texi (Reading RTL): Ditto.
13405 2010-03-12 Steve Ellcey <sje@cup.hp.com>
13408 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
13410 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
13412 PR middle-end/42431
13413 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
13414 code added to work around reload clobbering CONST insns.
13416 2010-03-12 Jakub Jelinek <jakub@redhat.com>
13418 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
13419 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
13420 (cselib_preserve_only_values): Remove retain argument, don't
13421 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
13422 * cselib.h (cselib_preserve_only_values): Remove retain argument.
13423 * var-tracking.c (micro_operation): Move insn field before union.
13424 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
13425 (struct variable_tracking_info_def): Remove n_mos field, change
13426 mos into a vector of micro_operations.
13427 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
13428 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
13429 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
13430 changing into a vector.
13431 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
13432 come before all other uops generated by add_stores.
13433 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
13435 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
13436 a vector. Run just one pass over the bbs instead of separate counting
13437 and computation phase.
13438 (vt_finalize): Free VTI (bb)->mos vector instead of array.
13441 * tree-inline.c (remap_decls): Put old_var rather than origin_var
13442 into *nonlocalized_list vector.
13443 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
13444 even if origin is non-NULL.
13445 (gen_variable_die): Likewise.
13446 (process_scope_var): Don't change origin.
13447 (gen_decl_die): Likewise.
13448 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
13449 before adding new edges instead of after it, fix moving over
13452 2010-03-11 David S. Miller <davem@davemloft.net>
13454 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
13456 * configure: Rebuild.
13458 2010-03-11 Martin Jambor <mjambor@suse.cz>
13460 PR tree-optimization/43257
13461 * tree.c (assign_assembler_name_if_neeeded): New function.
13462 (free_lang_data_in_cgraph): Assembler name assignment moved to the
13463 above new function.
13464 * tree.h (assign_assembler_name_if_neeeded): Declare.
13465 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
13466 the function if needed.
13468 2010-03-11 Chris Demetriou <cgd@google.com>
13470 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
13471 include/stdint-gcc.h, and include/stdint.h world-readable.
13473 2010-03-11 Richard Guenther <rguenther@suse.de>
13475 PR tree-optimization/43255
13476 * tree-vrp.c (process_assert_insertions_for): Do not insert
13477 asserts for trivial conditions.
13479 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13481 PR tree-optimization/43280
13482 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
13483 generation. Move calculation of size out of the if branch.
13484 (find_bswap): Modify compare number generation.
13486 2010-03-11 Richard Guenther <rguenther@suse.de>
13489 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
13490 (input_gimple_stmt): Fixup handled component types during
13491 operand read. Also fix up decls in ADDR_EXPRs.
13493 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
13495 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
13496 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
13498 2010-03-10 Jan Hubicka <jh@suse.cz>
13501 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
13502 * varasm.c (get_variable_section): Don't do that here...
13503 (make_decl_rtl): ... and here.
13504 (do_assemble_alias): Produce decl RTL.
13505 (assemble_alias): Likewise.
13507 2010-03-10 Jakub Jelinek <jakub@redhat.com>
13510 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
13511 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
13513 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
13514 (based_loc_descr): Only express drap or vdrap regno based expressions
13515 using DW_OP_fbreg when not optimizing.
13516 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
13517 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
13518 REG_CFA_SET_VDRAP note.
13520 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
13522 PR tree-optimization/43236
13523 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
13524 error in calculation of base address in reverse iteration case.
13525 (generate_builtin): Take number of latch executions if the statement
13528 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
13530 PR middle-end/42859
13531 * tree-eh.c: Include pointer-set.h.
13532 (lower_eh_dispatch): Filter out duplicate case labels and
13533 remove the unneeded edge when the label is unused. Return
13534 true when some edges are removed.
13535 (execute_lower_eh_dispatch): When any lowering resulted in
13536 removing an edge, also delete unreachable blocks.
13538 2010-03-10 Jakub Jelinek <jakub@redhat.com>
13541 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13542 UNSPEC_MACHOPIC_OFFSET.
13544 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
13547 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
13548 (m68k_delegitimize_address): New function.
13550 2010-03-09 Jakub Jelinek <jakub@redhat.com>
13553 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
13556 * var-tracking.c (adjust_sets): New function.
13557 (count_with_sets, add_with_sets): Use it.
13558 (get_adjusted_src): New inline function.
13559 (add_stores): Use it.
13562 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
13563 call cselib_dummy_expand_value_rtx_cb instead of
13564 cselib_expand_value_rtx_cb.
13567 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
13568 * config/i386/i386.c: Include debug.h and dwarf2out.h.
13569 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
13570 and .cfi_endproc around the pic thunks.
13571 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
13572 all queued unwind info register saves are saved before the call.
13573 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
13574 considered as sp-=4 for unwind info and the pop as sp+=4 which
13575 also clobbers dest, but doesn't actually restore it.
13578 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
13579 RTX_FRAME_RELATED_P.
13581 2010-03-09 Jie Zhang <jie@codesourcery.com>
13583 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
13584 whitespaces in output template.
13586 2010-03-09 Jie Zhang <jie@codesourcery.com>
13588 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
13589 out array boundary.
13591 2010-03-08 Jakub Jelinek <jakub@redhat.com>
13593 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
13594 builtins.exp in a separate job.
13596 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13598 * graphite-sese-to-poly.c (add_param_constraints): Use
13599 lower_bound_in_type and upper_bound_in_type.
13601 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13603 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
13604 instead of unsigned_type_node.
13606 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13607 Reza Yazdani <reza.yazdani@amd.com>
13609 PR middle-end/43065
13610 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
13611 on pointer type parameters.
13613 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
13615 PR middle-end/42644
13616 PR middle-end/42130
13617 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
13618 handle conversions from pointer to integers.
13619 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
13620 induction variable, to be able to work with code generated by CLooG.
13621 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
13622 (build_poly_scop): Bail out if we cannot codegen a loop.
13624 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
13626 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
13627 code generation with gloog_error.
13629 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13631 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
13632 Call fold_convert on all the returned values.
13633 (expand_scalar_variables_expr): Pass to
13634 expand_scalar_variables_ssa_name the type of the resulting expression.
13636 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13638 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
13639 ppl_min_for_le_pointset.
13640 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
13641 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
13643 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13645 * graphite-dependences.c (map_into_dep_poly): Removed.
13646 (dependence_polyhedron_1): Use combine_context_id_scat.
13648 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13650 * graphite-poly.h (struct poly_scattering): Add layout documentation.
13651 (struct poly_bb): Same.
13652 (combine_context_id_scat): New.
13654 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13656 PR middle-end/42326
13657 * sese.c (name_defined_in_loop_p): Return false for default
13660 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13662 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
13663 and clean up the logic.
13665 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13667 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
13670 2010-03-08 Jakub Jelinek <jakub@redhat.com>
13672 * var-tracking.c (remove_cselib_value_chains): Define only for
13674 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
13675 delete_slot_part, emit_notes_for_differences_1): Don't call
13676 remove_cselib_value_chains here.
13677 (set_slot_part, emit_notes_for_differences_2): Don't call
13678 add_cselib_value_chains here.
13679 (preserved_values): New vector.
13680 (preserve_value): New function.
13681 (add_uses, add_stores, vt_add_function_parameters): Use it
13682 instead of cselib_preserve_value.
13683 (changed_values_stack): New vector.
13684 (check_changed_vars_0): New function.
13685 (check_changed_vars_1, check_changed_vars_2): Use it.
13686 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
13687 changed_values_stack VALUEs.
13688 (vt_emit_notes): For all preserved_values call
13689 add_cselib_value_chains. If ENABLE_CHECKING call
13690 remove_cselib_value_chains before verifying value_chains is empty.
13691 Initialize and free changed_values_stack.
13692 (vt_initialize): Initialize preserved_values.
13693 (vt_finalize): Free preserved_values.
13695 2010-03-08 Richard Guenther <rguenther@suse.de>
13697 PR tree-optimization/43269
13698 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
13701 2010-03-08 Martin Jambor <mjambor@suse.cz>
13703 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
13704 (ipa_is_param_called): Removed.
13705 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
13706 (ipa_print_node_params): Do not print the called flag.
13707 (ipa_write_node_info): Do not stream the called flag.
13708 (ipa_read_node_info): Likewise.
13710 2010-03-07 Jakub Jelinek <jakub@redhat.com>
13713 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
13714 * cselib.c (struct expand_value_data): Add dummy field.
13715 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
13717 (cselib_dummy_expand_value_rtx_cb): New function.
13718 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
13720 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
13721 * var-tracking.c: Include pointer-set.h.
13722 (variable): Change n_var_parts to char from int. Add
13723 cur_loc_changed and in_changed_variables fields.
13724 (variable_canonicalize): Remove.
13725 (shared_var_p): New inline function.
13726 (unshare_variable): Maintain cur_loc_changed and
13727 in_changed_variables fields. If var was in changed_variables,
13728 replace it there with new_var. Just copy cur_loc instead of
13729 resetting it to something else.
13730 (variable_union): Don't recompute cur_loc. Use shared_var_p.
13731 (dataflow_set_union): Don't call variable_canonicalize.
13732 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
13733 of their DEBUG_EXPR_TREE_DECLs.
13734 (canonicalize_loc_order_check): Verify that cur_loc is NULL
13735 and in_changed_variables and cur_loc_changed is false.
13736 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
13737 and cur_loc_changed. Don't update cur_loc here.
13738 (variable_merge_over_src): Don't call variable_canonicalize.
13739 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
13740 removing loc that is equal to cur_loc, clear cur_loc,
13741 set cur_loc_changed and ensure variable_was_changed is called.
13742 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
13743 compare pointers in cur_loc check, if it is equal to loc,
13744 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
13745 (variable_different_p): Remove compare_current_location argument,
13746 don't compare cur_loc.
13747 (dataflow_set_different_1): Adjust variable_different_p caller.
13748 (variable_was_changed): If dv had some var in changed_variables
13749 already, reset in_changed_variables flag for it and propagate
13750 cur_loc_changed over to the new variable. On empty var
13751 always set cur_loc_changed. Set in_changed_variables on whatever
13752 var is added to changed_variables.
13753 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
13754 Use shared_var_p. When removing loc that is equal to cur_loc,
13755 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
13756 end, don't set it to something else, just call variable_was_changed.
13757 (delete_slot_part): Use shared_var_p. When cur_loc equals to
13758 loc being removed, clear cur_loc and set cur_loc_changed.
13759 Set cur_loc_changed if all locations have been removed.
13760 (struct expand_loc_callback_data): New type.
13761 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
13762 allocated. Always create SUBREGs if simplify_subreg failed.
13763 Prefer to use cur_loc, when that fails and still in
13764 changed_variables (and seen first time) recompute it. Set
13765 cur_loc_changed of variables which had to change cur_loc and
13766 compute elcd->cur_loc_changed if any of the subexpressions used
13767 had to change cur_loc.
13768 (vt_expand_loc): Adjust to pass arguments in
13769 expand_loc_callback_data structure.
13770 (vt_expand_loc_dummy): New function.
13771 (emitted_notes): New variable.
13772 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
13773 that weren't used for any other decl in current
13774 emit_notes_for_changes call call vt_expand_loc_dummy to update
13775 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
13776 first loc_chain location if NULL before. Always use just
13777 cur_loc instead of first loc_chain location. When cur_loc_changed
13778 is false, when not --enable-checking=rtl just don't emit any note.
13779 When rtl checking, compute the note and assert it is the same
13780 as previous note. Clear cur_loc_changed and in_changed_variables
13781 at the end before removing from changed_variables.
13782 (check_changed_vars_3): New function.
13783 (emit_notes_for_changes): Traverse changed_vars to call
13784 check_changed_vars_3 on each changed var.
13785 (emit_notes_for_differences_1): Clear cur_loc_changed and
13786 in_changed_variables. Recompute cur_loc of new_var.
13787 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
13788 (vt_emit_notes): Initialize and destroy emitted_notes.
13790 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
13792 PR rtl-optimization/42220
13793 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
13794 Use verify_reg_tracked to determine if we should use OP_OUT rather
13796 (build_def_use): If we see an in-out operand for a register that we
13797 know nothing about, treat is an output if possible, fail the block if
13800 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13803 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
13806 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13809 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
13810 uses of relevant DEFs that are dead outside the loop too.
13812 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13814 * var-tracking.c (dataflow_set_merge): Swap src and src2.
13816 2010-01-13 Jakub Jelinek <jakub@redhat.com>
13818 * var-tracking.c (values_to_unmark): New variable.
13819 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
13820 values_to_unmark vector. Moved body to...
13821 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
13822 instead queue it into values_to_unmark vector.
13823 (vt_find_locations): Free values_to_unmark vector.
13825 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
13827 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
13828 (site.exp): Export them when plugins are enabled.
13830 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
13832 PR middle-end/42326
13833 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
13834 that contain scevs.
13835 (chrec_fold_multiply): Same.
13837 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
13840 * c-decl.c (build_compound_literal): Return early if init is
13841 an error_mark_node.
13843 2010-03-04 Martin Jambor <mjambor@suse.cz>
13845 PR tree-optimization/43164
13846 PR tree-optimization/43191
13847 * tree-sra.c (type_consists_of_records_p): Reject records with
13848 zero-size bit-fields at the end.
13850 2010-03-04 Mike Stump <mikestump@comcast.net>
13852 * Makefile.in (TAGS): Remove *.y.
13854 2010-03-04 Richard Guenther <rguenther@suse.de>
13856 PR tree-optimization/40761
13857 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
13859 (my_rev_post_order_compute): New function.
13860 (init_pre): Call it.
13862 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
13864 PR middle-end/43209
13865 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
13866 decrease the cost of an IV candidate when the cost is infinite.
13868 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13870 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
13871 Use '3DNow!' for the extension of that name, ensure normal space
13873 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
13875 2010-03-03 Jeff Law <law@redhat.com>
13877 * PR middle-end/32693
13878 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
13879 than gen_rtx_SUBREG.
13880 (extract_bit_field_1): Likewise.
13882 2010-03-03 Janis Johnson <janis187@us.ibm.com>
13884 * doc/sourcebuild.texi (Test directives): Document that arguments
13885 include-opts and exclude-opts are now optional for dg-skip-if,
13886 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
13888 2010-03-03 Jason Merrill <jason@redhat.com>
13891 * cgraph.h (varpool_node): Add extra_name field.
13892 * varpool.c (varpool_extra_name_alias): New.
13893 (varpool_assemble_decl): Emit extra name aliases.
13894 (varpool_mark_needed_node): Look past an extra name alias.
13895 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
13896 * lto-streamer-in.c (lto_input_tree): Read it.
13897 * lto-streamer-out.c (output_unreferenced_globals): Write it.
13899 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
13901 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
13902 (sparc*-*-solaris2*): ...this.
13904 2010-03-03 Jakub Jelinek <jakub@redhat.com>
13907 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
13908 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
13909 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
13910 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
13913 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
13914 fallthrough to default handling, just with want_address 0 instead of 2.
13915 For single element lists, add_AT_loc directly, otherwise create an
13916 artificial variable DIE and stick location list to it.
13919 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
13920 (VAL_EXPR_HAS_REVERSE): Define.
13921 (reverse_op): New function.
13922 (add_stores): For reversible operations add an extra MO_VAL_USE.
13924 2010-03-02 Jason Merrill <jason@redhat.com>
13926 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
13928 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
13930 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
13931 (sparc64-*-linux*): Likewise.
13932 (sparc64-*-solaris2*): Include assembler files before linker ones.
13933 (sparc-*-solaris2*): Simplify and reorder to match previous case.
13934 * config/sparc/gas.h: Delete.
13935 * config/sparc/sol2-64.h: Add copyright notice.
13936 * config/sparc/sol2-gas-bi.h: Likewise.
13937 * config/sparc/sol2-gld.h: Likewise.
13938 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
13939 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
13940 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
13941 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
13942 (sparc_elf_asm_named_section): Rename into...
13943 (sparc_solaris_elf_asm_named_section): ...this. Always define.
13945 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
13947 * config/alpha/alpha.c (override_options): Fix -mtune error message.
13949 2010-03-02 Jeff Law <law@redhat.com>
13951 PR middle-end/42431
13952 * reload1.c (rtx_p, substitute_stack): Declare.
13953 (substitute): Record addresses of changed rtxs.
13954 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
13955 Restore the original rtx when complete.
13956 (reload): Free subsitute_stack when complete.
13958 2010-03-02 Janis Johnson <janis187@us.ibm.com>
13960 * doc/gccint.texi (menu): Add Testsuites as a chapter.
13961 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
13963 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
13964 LTO Testing, gcov Testing, profopt Testing, compat Testing,
13965 Torture Tests): Change from subsection to section.
13967 2010-03-02 Jakub Jelinek <jakub@redhat.com>
13968 Steven Bosscher <steven@gcc.gnu.org>
13970 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
13973 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
13975 PR middle-end/42640
13976 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
13977 the assignment from the new induction variable to the assignment
13978 of the value from the original loop PHI function.
13980 2010-03-01 Janis Johnson <janis187@us.ibm.com>
13981 Daniel Jacobowitz <dan@codesourcery.com>
13983 * doc/sourcebuild.texi (Test directives): Clarify options to
13986 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13988 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
13989 Disable cfi directives unless GCC and gas agree on using read-only
13990 .eh_frame sections for 64-bit.
13991 * configure: Regenerate.
13993 2010-03-01 Richard Guenther <rguenther@suse.de>
13995 PR tree-optimization/43220
13996 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
13997 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
13999 2010-03-01 Richard Guenther <rguenther@suse.de>
14000 Martin Jambor <mjambor@suse.cz>
14002 PR middle-end/41250
14003 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
14004 gimplified parameters.
14006 2010-03-01 Christian Bruel <christian.bruel@st.com>
14008 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
14010 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
14012 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
14014 2010-03-01 Richard Guenther <rguenther@suse.de>
14016 PR middle-end/43213
14017 * expr.c (expand_assignment): Use the alias-oracle to tell
14018 if the rhs aliases the result decl.
14020 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14023 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
14024 to sol_gt_pch_get_address.
14025 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
14026 64-bit, SPARC and x86.
14027 (sol_gt_pch_get_address): New function.
14029 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
14031 * toplev.h (inform_n, error_n): Declare.
14032 * diagnostic.c (inform_n, error_n): New function.
14034 2010-03-01 Jakub Jelinek <jakub@redhat.com>
14036 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
14037 has no rtl yet when processing local_decls, queue it and recheck
14038 if deferred stack allocation hasn't assigned it rtl.
14040 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
14042 * config/sh/sh.c (unspec_bbr_uid): New.
14043 (gen_block_redirect): Use it instead of INSN_UID.
14044 (gen_far_branch): Likewise.
14046 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
14048 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
14049 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
14051 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14053 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
14054 (Warning Options): -Wno-conversion-null is valid for
14055 Objective-C++ as well.
14056 * doc/tm.texi (Named Address Spaces): Likewise.
14057 * doc/plugins.texi (Plugins): Replace TABs with spaces.
14058 * doc/tree-ssa.texi (Tree SSA): Likewise.
14060 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
14063 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
14064 by default. Don't set the default arch for
14065 i[34567]86-*-darwin*|x86_64-*-darwin*.
14067 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
14070 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
14071 default. Set the default 32bit/64bit archs with $with_arch
14072 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
14074 2010-02-27 Richard Guenther <rguenther@suse.de>
14076 PR tree-optimization/43186
14077 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
14078 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
14079 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
14080 unroller iterations.
14082 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
14084 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
14085 required and i[34567]86-*-* targets don't support 64bit ISA.
14087 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
14090 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
14091 the same alias set.
14093 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
14095 * config.gcc: Set the default arch at least to Prescott for
14096 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
14097 if SSE math is enabled.
14099 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
14101 * diagnostic.c (diagnostic_initialize): Update.
14102 (diagnostic_report_diagnostic): Test inhibit_notes_p for
14104 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
14105 (diagnostic_inhibit_notes): New.
14106 * toplev.c (process_options): inhibit notes with -fcompare-debug.
14108 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
14111 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
14112 * doc/standards.texi: Likewise.
14113 * doc/extend.texi: Likewise.
14114 * doc/trouble.texi: Likewise.
14115 * doc/cppopts.texi: Likewise.
14116 * doc/install.texi: Likewise.
14117 * c.opt (std=c90,std=gnu90): New options.
14118 * c-opts.c (c_common_handle_option): Handle them.
14120 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
14123 * c-decl.c (undeclared_variable): Use an informative note.
14125 2010-02-26 Richard Guenther <rguenther@suse.de>
14127 PR tree-optimization/43186
14128 * gimple.h (gimple_fold): Remove.
14129 * gimple.c (gimple_fold): Remove. Inline into single user ...
14130 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
14131 Try harder for conditions.
14133 2010-02-26 Jakub Jelinek <jakub@redhat.com>
14136 * function.c (used_types_insert): Don't skip through named pointer
14137 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
14138 and it is different from the main variant's type.
14140 2010-02-26 Nick Clifton <nickc@redhat.com>
14142 * config/rx/rx.md (sminsi3): Remove bogus alternative.
14144 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
14146 * config.gcc: Support --with-fpmath=sse for x86.
14148 * config/i386/ssemath.h: New.
14150 * doc/install.texi (--with-fpmath=sse): Documented.
14152 2010-02-26 Richard Guenther <rguenther@suse.de>
14154 PR tree-optimization/43188
14155 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
14156 vector types of over-aligned element type.
14158 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
14161 * config/i386/i386.c (expand_vec_perm_blend): Use correct
14162 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
14164 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
14166 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
14168 2010-02-26 Jakub Jelinek <jakub@redhat.com>
14170 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
14171 * var-tracking.c: Include diagnostic.h.
14172 (debug_dv): New function.
14173 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
14176 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
14177 (add_value_chain, add_value_chains, remove_value_chain,
14178 remove_value_chains): Handle DEBUG_EXPRs.
14179 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
14182 * regcprop.c (struct queued_debug_insn_change): New type.
14183 (struct value_data_entry): Add debug_insn_changes field.
14184 (struct value_data): Add n_debug_insn_changes field.
14185 (debug_insn_changes_pool): New variable.
14186 (free_debug_insn_changes, apply_debug_insn_changes,
14187 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
14188 (kill_value_one_regno): Call free_debug_insn_changes if needed.
14189 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
14191 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
14193 (copyprop_hardreg_forward_1): Don't call apply_change_group for
14194 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
14195 changes, call cprop_find_used_regs via note_stores.
14196 (copyprop_hardreg_forward): When copying vd from predecessor
14197 which has any queued DEBUG_INSN changes, make sure the pointers are
14198 cleared. At the end call df_analyze and then if there are any
14199 DEBUG_INSN changes queued at the end of some basic block for still
14200 live registers, apply them.
14201 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
14203 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
14205 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
14208 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
14210 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
14211 targets. Set the default with_cpu/with_arch from arch/cpu.
14212 Allow x86-64 and native for with_cpu/with_arch.
14214 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
14216 * ebitmap.c: Change calls to verify_popcount with calls to
14217 sbitmap_verify_popcount.
14218 (ebitmap_clear_bit): Fixed map->cacheindex test and
14219 map>cache update when bit clearing results in an empty
14222 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
14225 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
14226 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
14227 and support both V2DF and V2DI modes.
14228 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
14229 support both V2DF and V2DI modes.
14230 (general): Delete trailing whitespace from a few patterns.
14232 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14233 V2DF/V2DI interleave high/low builtins.
14235 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
14238 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
14239 interleave high/low functions.
14241 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
14243 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
14244 #pragma extern_prefix.
14246 2010-02-25 Jakub Jelinek <jakub@redhat.com>
14249 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
14250 BLKmode, assert op0 is a MEM and just adjust its mode.
14253 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
14254 if bitpos isn't multiple of mode's bitsize.
14256 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
14258 * c.opt (-ftemplate-depth=): New.
14259 (-ftemplate-depth-): Deprecate.
14260 * optc-gen.awk: Handle -ftemplate-depth=.
14261 * opth-gen.awk: Likewise.
14262 * c-opts.c (c_common_handle_option): Likewise.
14263 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
14265 2010-02-24 Jason Merrill <jason@redhat.com>
14267 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
14269 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14271 * cfg.c (alloc_aux_for_block): Remove inline.
14272 (alloc_aux_for_edge): Likewise.
14274 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14276 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
14278 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14280 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
14281 * config/i386/sol2-gas.h: New file.
14282 * config.gcc (i[34567]86-*-solaris2*): Use it.
14284 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
14287 * c-typeck.c (ep_convert_and_check): New.
14288 (build_conditional_expr): Use it.
14289 (build_binary_op): Likewise.
14291 2010-02-24 Jakub Jelinek <jakub@redhat.com>
14293 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
14296 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
14297 bounds even for -O+.
14298 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
14299 expr needs to have DECL_NAME set.
14301 2010-02-24 Nick Clifton <nickc@redhat.com>
14303 * config/mep/mep.c: Include gimple.h.
14304 (mep_function_uses_sp): Delete unused function.
14305 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
14306 parameters. Use unsigned integers to count args. Return a
14307 NULL_RTX instead of an error_mark_node. Toidy up formatting.
14309 2010-02-23 Jakub Jelinek <jakub@redhat.com>
14312 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
14313 greater or equal to nelt instead of 2 * nelt.
14314 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
14317 2010-02-23 Jason Merrill <jason@redhat.com>
14320 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
14321 in cfun->local_decls even if they have register types.
14324 * stor-layout.c (place_field): Don't warn about unnecessary
14325 DECL_PACKED if the type is packed.
14327 2010-02-23 Jakub Jelinek <jakub@redhat.com>
14330 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
14331 GOTOFF relocs, even when the base reg isn't pic pointer.
14333 2010-02-23 Michael Matz <matz@suse.de>
14336 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
14337 (expand_gimple_basic_block): Generate and use debug temps if there
14338 are debug uses left after the last real use of TERed ssa names.
14339 Unlink debug immediate uses when they are expanded.
14341 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
14344 * config/i386/i386.c (override_options): Reorganise to provide
14345 better error messages.
14347 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
14349 PR middle-end/43083
14350 * graphite-scop-detection.c (create_single_exit_edge): Move
14351 the call to find_single_exit_edge to....
14352 (create_sese_edges): ...here. Don't handle multiple edges
14353 exiting the function.
14354 (build_graphite_scops): Don't handle multiple edges
14355 exiting the function.
14357 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
14359 PR middle-end/43097
14360 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
14361 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
14363 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
14365 PR middle-end/43026
14366 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
14368 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
14371 * c-typeck.c (convert_arguments): Print declaration location.
14372 * c-common.c (validate_nargs): Rename as
14373 builtin_function_validate_nargs.
14374 (check_builtin_function_arguments): Update.
14376 2010-02-22 Richard Guenther <rguenther@suse.de>
14379 * tree-inline.c (declare_return_variable): Use the type of
14380 the call stmt lhs if available.
14382 2010-02-22 Duncan Sands <baldrick@free.fr>
14384 * passes.c (register_pass): Always consider all pass lists when
14385 ref_pass_instance_number is zero.
14387 2010-02-22 Richard Guenther <rguenther@suse.de>
14389 PR tree-optimization/42749
14390 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
14391 parameter. Do arithmetic in the original type.
14392 (update_accumulator_with_ops): Likewise.
14393 (adjust_accumulator_values): Adjust.
14395 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14397 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
14398 (QI to BLKmode splitter): New splitter.
14400 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
14402 * config/i386/i386.c (initial_ix86_tune_features): Turn on
14403 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
14405 2010-02-22 Richard Guenther <rguenther@suse.de>
14407 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
14409 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
14411 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
14412 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
14413 ($(T)crti.o, $(T)crtn.o): Remove rules.
14415 2010-02-21 Tobias Burnus <burnus@net-b.de>
14418 * doc/invoke.texi (-fassociative-math): Document that this
14419 option is automatically enabled for Fortran.
14421 2010-02-20 David S. Miller <davem@davemloft.net>
14423 * configure.ac: Test if linker and assembler properly support
14424 GOTDATA_OP relocations.
14425 * configure: Rebuild.
14426 * config.in: Likewise.
14427 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
14428 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
14429 (movsi_high_pic): Likewise.
14430 (movdi_lo_sum_pic): Likewise.
14431 (movdi_high_pic): Likewise.
14432 (movsi_pic_gotdata_op): New pattern.
14433 (movdi_pic_gotdata_op): Likewise.
14434 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
14435 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
14437 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
14440 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
14441 attribute to ssemul.
14442 (xop_mulv2div2di3_high): Ditto.
14444 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14447 * c.opt (Wconversion-null): New option.
14448 * doc/invoke.texi (Wconversion-null): Document.
14450 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14452 * common.opt (Wlarger-than-): Add Undocumented.
14454 2010-02-19 Mike Stump <mikestump@comcast.net>
14456 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
14458 2010-02-19 Jason Merrill <jason@redhat.com>
14461 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
14462 * configure: Likewise.
14464 2010-02-20 Alan Modra <amodra@gmail.com>
14466 PR middle-end/42344
14467 * cgraph.h (cgraph_make_decl_local): Declare.
14468 * cgraph.c (cgraph_make_decl_local): New function.
14469 (cgraph_make_node_local): Use it.
14470 * cgraphunit.c (cgraph_function_versioning): Likewise.
14471 * ipa.c (function_and_variable_visibility): Likewise.
14473 2010-02-19 Jakub Jelinek <jakub@redhat.com>
14476 * except.c (sjlj_emit_function_enter): Don't call
14477 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
14479 * rtl.h (add_reg_br_prob_note): Remove prototype.
14481 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
14484 * c-common.c (conversion_warning): Remove widening conversions
14485 before checking the conversion of integers to reals.
14487 2010-02-19 Mike Stump <mikestump@comcast.net>
14489 PR middle-end/43125
14490 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
14493 * cgraphunit.c (process_function_and_variable_attributes): Check
14494 DECL_PRESERVE_P instead of looking up attribute "used".
14495 * ipa-pure-const.c (check_decl): Likewise.
14496 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
14497 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
14498 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
14499 instead of attribute "used".
14500 * config/sol2-c.c (solaris_pragma_init): Likewise.
14501 (solaris_pragma_fini): Likewise.
14503 2010-02-19 Jakub Jelinek <jakub@redhat.com>
14505 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
14506 Use XCNEW instead of xcalloc.
14507 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
14508 XNEW instead of xmalloc.
14509 (get_fields): Use XNEWVEC instead of xmalloc.
14512 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
14513 populate vars array.
14514 (create_new_general_access): For debug stmts just reset value.
14515 (get_stmt_accesses): For accesses within debug stmts just record them
14516 using add_access_to_acc_sites instead of preventing the peeling or
14517 counting them as accesses.
14519 PR middle-end/42233
14520 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
14522 2010-02-19 Richard Guenther <rguenther@suse.de>
14524 PR tree-optimization/42916
14525 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
14528 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
14530 * configure.ac: Replace all uses of changequote in macro arguments
14531 with proper quoting.
14533 2010-02-19 Jakub Jelinek <jakub@redhat.com>
14535 PR middle-end/42233
14536 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
14538 2010-02-19 Richard Guenther <rguenther@suse.de>
14540 PR tree-optimization/42944
14541 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
14542 test for aliasing with errno.
14544 2010-02-19 Jakub Jelinek <jakub@redhat.com>
14546 PR middle-end/42233
14547 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
14548 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
14549 * dojump.c: Include output.h.
14550 (inv): New inline function.
14551 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
14552 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
14553 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
14554 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
14555 argument, pass it down to other calls.
14556 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
14557 add REG_BR_PROB note to the conditional jump.
14558 * cfgexpand.c (add_reg_br_prob_note): Removed.
14559 (expand_gimple_cond): Don't call it, add the probability
14560 as last argument to jumpif_1/jumpifnot_1.
14561 * Makefile.in (dojump.o): Depend on output.h.
14562 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
14564 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
14565 * stmt.c (do_jump_if_equal): Likewise.
14566 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
14567 * loop-unswitch.c (compare_and_jump_seq): Likewise.
14568 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
14570 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
14571 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
14572 jumpifnot_1 callers.
14573 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
14575 (store_expr): Adjust jumpifnot caller.
14576 (store_constructor): Adjust jumpif caller.
14578 PR middle-end/42233
14579 * gimplify.c (gimple_boolify): For __builtin_expect call
14580 gimple_boolify also on its first argument.
14582 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
14584 * configure.ac (gnu-unique-object): Wrap regexps using [] in
14586 (__stack_chk_fail): Ditto. Remove quadrigraphs.
14587 * configure: Regenerated.
14589 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14591 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
14592 lang_hooks.types_compatible_p instead of comptypes.
14594 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
14596 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
14597 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
14598 if __prefer_thumb__ is defined.
14600 2010-02-18 Martin Jambor <mjambor@suse.cz>
14602 PR tree-optimization/43066
14603 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
14604 array with zero-sized element type.
14606 2010-02-18 Jakub Jelinek <jakub@redhat.com>
14608 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
14609 rtx, allocate struct var_loc_node here and return it to the
14610 caller, and only if it is actually needed.
14611 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
14612 move it earlier and return immediately if it returns NULL.
14614 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
14616 * config/sparc/gas.h: New file. Restore
14617 TARGET_ASM_NAMED_SECTION to its ELF default.
14618 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
14619 check !HAVE_GNU_AS.
14620 * config/sparc/sparc.c (sparc_elf_asm_named_section):
14621 Likewise. Add ATTRIBUTE_UNUSED to prototype.
14622 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
14623 after sparc/sysv4.h.
14625 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
14627 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
14629 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
14631 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
14632 patterns from predicated pattern.
14634 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
14637 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
14638 for insn mnemonic suffix.
14640 2010-02-17 Richard Guenther <rguenther@suse.de>
14642 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
14645 2010-02-17 Jakub Jelinek <jakub@redhat.com>
14648 * caller-save.c (save_call_clobbered_regs): If BB ends with
14649 a DEBUG_INSN, move any notes in between last real insn and the last
14650 DEBUG_INSN after the last DEBUG_INSN.
14652 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
14654 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
14655 Fix return type. Fix argument type. Explain meaning of return value.
14657 2010-02-16 Richard Guenther <rguenther@suse.de>
14659 PR tree-optimization/41043
14660 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
14661 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
14663 (vrp_visit_phi_node): ... but only for loop PHI nodes.
14665 2010-02-16 Ira Rosen <irar@il.ibm.com>
14667 PR tree-optimization/43074
14668 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
14669 * tree-vect-loop.c (vect_analyze_loop_operations): Add
14670 vectorizable cycles in hybrid SLP check.
14671 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
14673 2010-02-16 Richard Guenther <rguenther@suse.de>
14675 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
14676 (true_dependence): If memrefs_conflict_p computes must-alias
14677 trust it. Move TBAA check after offset-based disambiguation.
14678 (canon_true_dependence): Likewise.
14680 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
14682 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
14683 * doc/invoke.texi: Document it.
14684 * var-tracking.c: Include toplev.h and params.h.
14685 (vt_find_locations): Return bool indicating success. Compute
14686 hash sizes unconditionally. Check new parameter, report.
14687 (variable_tracking_main_1): Check vt_find_locations results and
14688 retry. Renamed from...
14689 (variable_tracking_main): ... this. New wrapper to preserve
14690 flag_var_tracking_assignments.
14691 * Makefile.in (var-tracking.o): Adjust dependencies.
14693 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
14694 Jakub Jelinek <jakub@redhat.com>
14697 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
14698 if weak_import attribute is present.
14699 * config/darwin.c (machopic_select_section): Likewise.
14701 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
14703 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
14704 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
14705 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
14706 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
14708 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
14711 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
14712 Fix argument types.
14714 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
14715 Rewrite text to refer to the names.
14717 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
14719 * config/i386/i386-builtin-types.def
14720 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
14721 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
14722 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
14723 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
14724 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
14725 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
14726 IX86_BUILTIN_VPERMIL2PS256.
14727 (MULTI_ARG_4_DF2_DI_I): Defined.
14728 (MULTI_ARG_4_DF2_DI_I1): Defined.
14729 (MULTI_ARG_4_SF2_SI_I): Defined.
14730 (MULTI_ARG_4_SF2_SI_I1): Defined.
14731 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
14732 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
14733 __builtin_ia32_vpermil2ps256.
14734 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
14735 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
14736 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
14737 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
14738 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
14739 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
14740 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
14741 CODE_FOR_xop_vpermil2v8sf3.
14742 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
14743 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
14744 * config/i386/xopintrin.h (_mm_permute2_pd): New.
14745 (_mm256_permute2_pd): New.
14746 (_mm_permute2_ps): New.
14747 (_mm256_permute2_ps): New.
14749 2010-02-15 Nick Clifton <nickc@redhat.com>
14751 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
14752 boolean parameters. Use emit_jump_insn when emitting a pop
14753 instruction containing a return insn.
14754 (push): Use 'true' rather than '1' as second parameter to F.
14755 (h8300_expand_prologue): Likewise.
14756 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
14757 (h8300_expand_epilogue): Likewise.
14759 2010-02-15 Richard Guenther <rguenther@suse.de>
14761 PR middle-end/43068
14762 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
14765 2010-02-15 Nick Clifton <nickc@redhat.com>
14767 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
14770 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
14772 * intl.c (fake_ngettext): New function.
14773 * intl.h (fake_ngettext): Declare.
14774 (ngettext): Define macro.
14775 * collect2.c (notice_translated): New function.
14776 (main): Use notice_translated and ngettext.
14777 * collect2.h (notice_translated): Declare.
14779 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
14781 * reorg.c (delete_computation): Comment fixes.
14782 * caller-save.c (setup_save_areas): Idem.
14783 * sel-sched-dump.c (dump_lv_set): Idem.
14786 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14788 * config/s390/s390.c (s390_sched_init): New function.
14789 (TARGET_SCHED_INIT): Target hook defined.
14791 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
14792 Jack Howarth <howarth@bromo.med.uc.edu>
14793 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
14796 Partial revert of unintended change in fix for PR41605.
14797 * config/darwin.h: Fix typo.
14798 * config/darwin9.h: Same.
14800 2010-02-11 Jakub Jelinek <jakub@redhat.com>
14802 * c-pch.c (pch_init): Clear v.
14804 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14806 PR middle-end/42930
14807 * graphite-scop-detection.c (graphite_can_represent_scev): Call
14808 graphite_can_represent_init for MULT_EXPR.
14810 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14812 PR middle-end/42914
14813 PR middle-end/42530
14814 * graphite-sese-to-poly.c (remove_phi): New.
14815 (translate_scalar_reduction_to_array): Call remove_phi.
14817 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14819 PR middle-end/42771
14820 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
14821 * graphite-clast-to-gimple.h (gloog): Update declaration.
14822 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
14823 * graphite-poly.h (struct poly_bb): Add missing comments.
14824 (struct scop): Add poly_scop_p field.
14825 (POLY_SCOP_P): New.
14826 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
14827 * graphite.c (graphite_transform_loops): Build the polyhedral
14828 representation for each scop before code generation.
14829 * sese.c (rename_variables_in_operand): Removed.
14830 (rename_variables_in_expr): Return the renamed expression.
14831 (rename_sese_parameters): New.
14832 * sese.h (rename_sese_parameters): Declared.
14834 2010-02-11 Richard Guenther <rguenther@suse.de>
14836 PR tree-optimization/42998
14837 * tree-ssa-pre.c (create_expression_by_pieces): Treat
14838 POINTER_PLUS_EXPR properly.
14840 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14841 Changpeng Fang <changpeng.fang@amd.com>
14843 PR middle-end/40886
14844 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
14845 the cost of an IV candidate when the IV is used in a test against zero.
14847 * gcc.dg/tree-ssa/ivopts-3.c: New.
14849 2010-02-11 Richard Guenther <rguenther@suse.de>
14852 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
14853 pointer-vs-decl case by swapping refs. Handle some cases
14854 of pointer-vs-decl disambiguations more conservatively.
14855 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
14856 to false after expanding.
14858 2010-02-11 Richard Guenther <rguenther@suse.de>
14861 * gcc.c (process_command): Handle LTO file@offset case more
14864 2010-02-11 Jakub Jelinek <jakub@redhat.com>
14866 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
14867 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
14869 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
14871 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
14872 if MEM's mode size isn't DWARF2_ADDR_SIZE.
14873 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
14874 Optimize eq/ne comparisons when both arguments are known to be
14876 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
14877 Don't mask operands unnecessarily if they are known to be already
14880 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
14882 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
14885 2010-02-10 Richard Guenther <rguenther@suse.de>
14887 PR tree-optimization/43017
14888 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
14889 for wrapping signed arithmetic.
14891 2010-02-10 Jakub Jelinek <jakub@redhat.com>
14894 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
14895 if no debug info should be emitted for it.
14897 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
14899 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
14900 note when flag_exceptions is set.
14902 2010-02-10 Duncan Sands <baldrick@free.fr>
14904 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
14906 2010-02-10 Richard Guenther <rguenther@suse.de>
14909 * tree.c (get_unwidened): Handle constants.
14910 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
14912 2010-02-10 Martin Jambor <mjambor@suse.cz>
14915 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
14916 check for variable argument counts independently.
14918 2010-02-10 Christian Bruel <christian.bruel@st.com>
14921 * config/sh/sh.c (find_barrier): Increase length for non delayed
14922 conditional branches.
14924 2010-02-10 Christian Bruel <christian.bruel@st.com>
14926 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
14928 2010-02-10 Jakub Jelinek <jakub@redhat.com>
14930 * builtins.c (set_builtin_user_assembler_name): Also handle
14931 ffs if int is smaller than word.
14933 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
14935 PR middle-end/42973
14936 * ira-conflicts.c (get_dup): Remove.
14937 (process_reg_shuffles): Add new parameter. Use it as an
14938 additional guard for copy generation.
14939 (add_insn_allocno_copies): Rewrite.
14941 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
14943 * common.opt (fsched2-use-traces): Preserved for backward
14945 * doc/invoke.texi: Remove the documentation about option
14946 -fsched2-use-traces.
14947 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
14948 flag_sched2_use_traces.
14949 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
14950 the backward compatibility flag section.
14952 2010-02-09 Richard Guenther <rguenther@suse.de>
14954 PR tree-optimization/43008
14955 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
14956 make HEAP variables initialized from global memory if they
14957 are not known builtin functions.
14958 (find_func_aliases): Adjust.
14960 2010-02-09 Richard Guenther <rguenther@suse.de>
14962 PR tree-optimization/43000
14963 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
14964 arithmetic manually.
14966 2010-02-08 Jakub Jelinek <jakub@redhat.com>
14968 PR tree-optimization/42931
14969 * tree-loop-linear.c (try_interchange_loops): Don't call
14970 double_int_mul if estimated_loop_iterations failed.
14972 2010-02-08 Martin Jambor <mjambor@suse.cz>
14974 PR middle-end/42898
14975 * tree-sra.c (build_accesses_from_assign): Do not mark in
14976 should_scalarize_away_bitmap if stmt has volatile ops.
14977 (sra_modify_assign): Do not process assigns piecemeal if if stmt
14980 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
14982 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
14984 2010-02-07 Adam Nemet <adambnmet@gmail.com>
14986 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
14987 before the pattern.
14989 2010-02-07 Andrew Pinski <pinskia@gmail.com>
14991 PR middle-end/42946
14992 * df-core.c (df_finish_pass): Change type of saved_flags to int.
14994 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
14996 PR middle-end/42988
14997 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
14998 to unknown_dependence.
14999 (graphite_legal_transform_dr): Handle the unknown_dependence.
15000 (graphite_carried_dependence_level_k): Same.
15002 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
15004 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
15006 2010-02-07 Richard Guenther <rguenther@suse.de>
15008 PR middle-end/42991
15009 * expr.c (get_inner_reference): Always initialize *pbitsize.
15011 2010-02-07 Richard Guenther <rguenther@suse.de>
15013 PR middle-end/42956
15014 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
15015 new ARRAY_REFs on variable size element or minimal index arrays.
15017 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
15018 gimple_fold_indirect_ref.
15020 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
15023 * arm.c (arm_override_options): Just return if the user has specified
15024 an invalid fpu name.
15026 2010-02-03 Jason Merrill <jason@redhat.com>
15029 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
15030 i386_pe_maybe_record_exported_symbol.
15032 2010-02-05 Steve Ellcey <sje@cup.hp.com>
15035 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
15036 (pa_delegitimize_address): New function.
15038 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
15040 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
15041 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
15043 2010-02-05 Richard Guenther <rguenther@suse.de>
15046 * lto-streamer-in.c (get_resolution): Deal with references
15047 to undefined functions.
15049 2010-02-05 Richard Guenther <rguenther@suse.de>
15051 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
15052 (fold_const_aggregate_ref): Likewise.
15053 (ccp_fold_stmt): Substitute loads.
15054 (maybe_fold_reference): Verify types before substituting.
15056 (fold_gimple_assign): Unshare properly.
15057 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
15059 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
15061 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
15062 for rs6000_gen_cell_microcode.
15064 2010-02-04 Richard Guenther <rguenther@suse.de>
15066 PR rtl-optimization/42952
15067 * dse.c (const_or_frame_p): Remove MEM handling.
15069 2010-02-04 Nick Clifton <nickc@redhat.com>
15071 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
15072 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
15073 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
15074 (mn10300_asm_output_mi_thunk): New function.
15075 (mn10300_can_output_mu_thunk): New function.
15076 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
15077 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
15078 (FUNCTION_ARG): Delete incorrect comment.
15080 2010-02-03 Jason Merrill <jason@redhat.com>
15083 * fold-const.c (operand_equal_p): Handle erroneous types.
15085 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
15087 * config/h8300/h8300.md (can_delay): Fix attibute condition.
15089 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
15091 PR rtl-optimization/42941
15092 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
15095 2010-02-03 Jason Merrill <jason@redhat.com>
15098 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
15100 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
15103 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
15104 (cselib_reset_table): Renamed from...
15105 (cselib_reset_table_with_next_value): ... this.
15106 (cselib_get_next_uid): Renamed from...
15107 (cselib_get_next_unknown_value): ... this.
15108 * cselib.c (next_uid): Renamed from...
15109 (next_unknown_value): ... this.
15110 (cselib_clear_table): Adjust.
15111 (cselib_reset_table): Adjust. Renamed from...
15112 (cselib_reset_table_with_next_value): ... this.
15113 (cselib_get_next_uid): Adjust. Renamed from...
15114 (cselib_get_next_unknown_value): ... this.
15115 (get_value_hash): Use hash.
15116 (cselib_hash_rtx): Likewise.
15117 (new_cselib_val): Adjust. Set and dump uid.
15118 (cselib_lookup_mem): Pass next_uid as hash.
15119 (cselib_subst_to_values): Likewise.
15120 (cselib_log_lookup): Dump uid.
15121 (cselib_lookup): Pass next_uid as hash. Adjust.
15122 (cselib_process_insn): Adjust.
15123 (cselib_init): Initialize next_uid.
15124 (cselib_finish): Adjust.
15125 (dump_cselib_table): Likewise.
15126 * dse.c (canon_address): Dump value uid.
15127 * print-rtl.c (print_rtx): Print value uid.
15128 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
15130 (dv_uid): New function, sort of renamed from...
15131 (dv_htab_hash): ... this, reimplemented in terms of it and...
15132 (dv_uid2hash): ... this. New.
15133 (variable_htab_eq): Drop excess assertions.
15134 (tie_break_pointers): Removed.
15135 (canon_value_cmp): Compare uids.
15136 (variable_post_merge_New_vals): Print uids.
15137 (vt_add_function_parameters): Adjust.
15138 (vt_initialize): Reset table. Adjust.
15140 2010-02-03 Richard Guenther <rguenther@suse.de>
15142 PR tree-optimization/42944
15143 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
15144 (call_may_clobber_ref_p_1): Likewise. Properly handle
15145 malloc and calloc clobbering errno.
15147 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
15149 * doc/invoke.texi: Fix name of sched1 dump.
15151 * opts.c (decode_options): Set flag_tree_switch_conversion
15152 only conditionally on optimize >= 2.
15154 * gcse.c: Assorted comment fixes in pass description.
15156 2010-02-03 Anthony Green <green@moxielogic.com>
15158 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
15159 nop padding in order to maintain alignment of storage location of
15160 target function address.
15161 (moxie_trampoline_init): Store target function address at newly
15163 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
15165 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
15167 2010-02-03 Richard Guenther <rguenther@suse.de>
15169 PR middle-end/42927
15170 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
15172 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15174 * config.gcc: Reenable check for obsolete targets.
15175 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
15176 mips-sgi-irix6.[0-4]*.
15178 2010-02-02 Nick Clifton <nickc@redhat.com>
15180 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
15181 constant size of 4 as being the same as 0.
15182 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
15183 can take values in the range 0..4.
15185 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
15188 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
15189 as _darwin10_Unwind_FindEnclosingFunction().
15190 * libgcc-libsystem.ver: New.
15192 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
15195 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
15196 implicitly set registers.
15198 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
15200 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
15201 (arm_override_options): Allow automatic selection of the thread
15202 pointer register if thumb2.
15203 (legitimize_pic_address): Improve code sequences for Thumb2.
15204 (arm_call_tls_get_addr): Likewise.
15205 (legitimize_tls_address): Likewise.
15206 * arm.md (pic_load_addr_arm): Delete. Replace with ...
15207 (pic_load_addr_32bit): ... this. New named pattern.
15208 * thumb2.md (pic_load_addr_thumb2): Delete.
15209 (pic_load_dot_plus_four): Delete.
15210 (tls_load_dot_plus_four): New named pattern.
15212 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15215 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
15216 Document fix for TLS bug.
15218 2010-01-31 Richard Guenther <rguenther@suse.de>
15220 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
15221 conservatively correct.
15223 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15227 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15229 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
15231 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15233 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
15235 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
15237 * config.gcc: Adjust order of makefile fragments for mingw targets.
15239 2010-01-31 Richard Guenther <rguenther@suse.de>
15241 PR middle-end/42898
15242 * gimplify.c (gimplify_init_constructor): For volatile LHS
15243 initialize a temporary.
15245 2010-01-31 Matthias Klose <doko@ubuntu.com>
15247 * configure.ac: Fix __stack_chk_fail check for cross builds configured
15249 * configure: Regenerate.
15251 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
15253 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
15254 the same alias set and their sizes different constantness.
15255 (aliasing_component_refs_p): Revert 2009-10-24 change.
15257 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15259 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
15262 2010-01-29 Richard Guenther <rguenther@suse.de>
15264 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
15265 Assert we successfully updated the call.
15267 2010-01-29 Jakub Jelinek <jakub@redhat.com>
15269 PR rtl-optimization/42889
15270 * df.h (df_set_bb_dirty_nonlr): New prototype.
15271 * df-core.c (df_set_bb_dirty_nonlr): New function.
15272 * df-scan.c (df_insn_rescan): Call it instead of
15273 df_set_bb_dirty for DEBUG_INSNs.
15275 2010-01-29 Richard Guenther <rguenther@suse.de>
15277 PR middle-end/37448
15278 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
15279 quadratic behavior in most cases.
15281 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
15284 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
15285 in the call to gen_x86_movsicc_0_m1.
15287 2010-01-28 Richard Guenther <rguenther@suse.de>
15289 PR tree-optimization/42871
15290 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
15292 2010-01-28 Richard Guenther <rguenther@suse.de>
15294 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
15295 into call arguments.
15297 2010-01-28 Richard Guenther <rguenther@suse.de>
15299 PR middle-end/42883
15300 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
15301 the forwarder if the destination is an EH landing pad.
15303 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
15305 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
15306 block list passed to gimple_duplicate_sese_tail.
15307 (parallelize_loops): Avoid parallelization when the function
15308 has_nonlocal_label.
15309 Avoid parallelization when the preheader is IRREDUCIBLE.
15310 Try to optimize when estimated_loop_iterations_int is unresolved.
15311 Add the loop's location to the dump file.
15312 * tree-cfg.c (add_phi_args_after_redirect): Remove.
15313 (gimple_duplicate_sese_tail): Remove the check for the latch.
15314 Redirect nexits to the exit block.
15315 Remove handling of the incoming edges to the latch.
15316 Redirect the backedge from the copied latch to the exit bb.
15318 2010-01-28 Michael Matz <matz@suse.de>
15321 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
15322 Wrap force_reg into a sequence, emit it before user.
15324 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
15326 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
15328 (arm_legacy_rev): Likewise.
15329 (thumb_legacy_rev): Likewise.
15331 2010-01-27 Jakub Jelinek <jakub@redhat.com>
15333 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
15334 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
15335 on MEM's address failed, try avoid_constant_pool_reference and
15336 recurse if it returned something different.
15337 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
15338 address, try avoid_constant_pool_reference and recurse if it
15339 returned something different.
15340 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
15341 address and avoid_constant_pool_reference returned something
15342 different, don't set have_address.
15344 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
15347 * var-tracking.c (val_store): Add modified argument, obey it.
15349 (count_uses): Move down logging of main.
15350 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
15351 don't need resolution.
15352 (emit_notes_in_bb): Likewise.
15354 2010-01-27 Richard Guenther <rguenther@suse.de>
15356 PR middle-end/42878
15357 * tree-inline.c (remap_decl): Delay remapping of SSA name
15358 default definitions until we need them.
15360 2010-01-27 Jakub Jelinek <jakub@redhat.com>
15362 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
15363 (rs6000_delegitimize_address): New function.
15365 * config/s390/s390.c (s390_delegitimize_address): Call
15366 delegitimize_mem_from_attrs.
15368 PR middle-end/42874
15369 * tree-inline.c (cannot_copy_type_1): Removed.
15370 (copy_forbidden): Don't forbid copying of functions containing
15371 records/unions with variable length fields.
15373 2010-01-27 Christian Bruel <christian.bruel@st.com>
15377 * config/sh/sh.c (find_barrier): Increase length for non delayed
15378 conditional branches.
15380 2010-01-27 Matthias Klose <doko@ubuntu.com>
15382 * configure.ac (gnu-unique-object): Fix ldd version check.
15383 * configure: Regenerate.
15385 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15387 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
15389 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
15390 Test for HAVE_GNU_AS value.
15392 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15394 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
15395 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
15396 INT64_TYPE): Define.
15397 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
15398 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15399 INT_LEAST64_TYPE): Define.
15400 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
15401 UINT_LEAST64_TYPE): Define.
15402 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
15403 INT_FAST64_TYPE): Define.
15404 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15405 UINT_FAST64_TYPE): Define.
15406 (INTMAX_TYPE, UINTMAX_TYPE): Define.
15407 (INTPTR_TYPE, UINTPTR_TYPE): Define.
15408 (SIG_ATOMIC_TYPE): Define.
15410 2010-01-26 Richard Guenther <rguenther@suse.de>
15412 * df-scan.c (df_scan_set_bb_info): Remove assert.
15413 (df_insn_rescan_debug_internal): Merge asserts.
15414 (df_install_ref): Likewise.
15415 (df_mark_reg): Use bitmap_set_range.
15416 (df_hard_reg_used_p): Remove assert.
15417 (df_hard_reg_used_count): Likewise.
15419 2010-01-26 Richard Guenther <rguenther@suse.de>
15421 PR rtl-optimization/42685
15422 * web.c (web_main): Ignore DEBUG_INSNs.
15424 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
15426 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
15428 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
15429 Fix types of fndecl and arglist parameters.
15431 2010-01-26 Richard Guenther <rguenther@suse.de>
15433 PR middle-end/42806
15434 * tree-eh.c (unsplit_eh): Skip debug insns.
15436 2010-01-26 Richard Guenther <rguenther@suse.de>
15438 PR tree-optimization/42250
15439 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
15441 2010-01-26 Jakub Jelinek <jakub@redhat.com>
15444 * omp-low.c (expand_omp_sections): Only use single_pred if
15445 l2_bb is single_pred_p.
15447 2010-01-25 Christian Bruel <christian.bruel@st.com>
15450 * config/sh/sh.c (find_barrier): Increase length for non delayed
15451 conditional branches.
15452 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
15454 2010-01-24 David S. Miller <davem@davemloft.net>
15456 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
15457 define if not using GAS.
15458 * config/sparc/sparc.c (sparc_elf_asm_named_section):
15459 Likewise. Delete SECTION_MERGE code, which is only applicable
15462 2010-01-24 Mark Mitchell <mark@codesourcery.com>
15465 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
15466 mangling of va_list in system headers.
15468 2010-01-23 Toon Moene <toon@moene.org>
15470 * tree-predcom.c (combine_chains): Return NULL, not false.
15472 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
15474 * tree-loop-distribution.c (distribute_loop): Fix declaration and
15475 initialization of variable res to agree with return type.
15477 2010-01-22 Steve Ellcey <sje@cup.hp.com>
15479 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
15480 * tree-sra.c: Add include of expr.h.
15482 2010-01-22 Jakub Jelinek <jakub@redhat.com>
15484 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
15485 insert the debug stmt on the single non-EH edge from the stmt.
15487 2010-01-22 Richard Henderson <rth@redhat.com>
15490 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
15491 the RHS until after generate_subtree_copies has insertted its
15492 code before the current statement.
15494 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
15496 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
15498 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
15500 2010-01-21 Martin Jambor <mjambor@suse.cz>
15502 PR tree-optimization/42585
15503 * tree-sra.c (struct access): New field grp_total_scalarization.
15504 (dump_access): Dump the new field.
15505 (should_scalarize_away_bitmap): New variable.
15506 (cannot_scalarize_away_bitmap): Likewise.
15507 (sra_initialize): Allocate new bitmaps.
15508 (sra_deinitialize): Free new bitmaps.
15509 (create_access_1): New function.
15510 (create_access): Parts moved to create_access_1.
15511 (type_consists_of_records_p): New function.
15512 (completely_scalarize_record): Likewise.
15513 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
15514 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
15515 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
15517 (analyze_all_variable_accesses): Completely scalarize small eligible
15520 2010-01-21 Martin Jambor <mjambor@suse.cz>
15522 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
15524 2010-01-21 Andrew Haley <aph@redhat.com>
15526 * gcc.c (process_command): Move lang_specific_driver before
15527 setting cc_libexec_prefix.
15529 2010-01-21 Richard Guenther <rguenther@suse.de>
15531 PR middle-end/19988
15532 * fold-const.c (negate_expr_p): Pretend only negative
15533 real constants are easily negatable.
15535 2010-01-20 Janis Johnson <janis187@us.ibm.com>
15536 Jason Merrill <jason@redhat.com>
15538 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
15539 (TYPE_TRANSPARENT_AGGR): this, for union and record.
15540 * calls.c (initialize argument_information): Handle it.
15541 * c-common.c (handle_transparent_union_attribute): Use new name.
15542 * c-decl.c (finish_struct): Ditto.
15543 * c-typeck.c (type_lists_compatible_p): Ditto.
15544 (convert_for_assignment): Use new name and also handle record.
15545 * function.c (aggregate_value_p): Handle it.
15546 (pass_by_reference): Ditto.
15547 (assign_parm_data_types): Ditto.
15548 * print-tree.c (print_node): Ditto.
15549 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
15550 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
15551 * tree.c (first_field): New fn.
15553 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
15556 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
15557 even when linking statically, for now.
15559 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
15562 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
15563 without a cselib val.
15564 (count_uses): Accept MO_VAL_SET with no val on stores.
15565 (add_stores): Likewise.
15567 2010-01-20 Jakub Jelinek <jakub@redhat.com>
15569 * var-tracking.c (check_value_val): Add a compile time assertion.
15570 (dv_is_decl_p): Simplify.
15571 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
15572 gcc_assert if ENABLE_CHECKING.
15574 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
15577 * var-tracking.c: Include tree-flow.h.
15578 (mem_dies_at_call): New.
15579 (dataflow_set_preserve_mem_locs): Use it.
15580 (dataflow_set_remove_mem_locs): Likewise.
15581 (dump_var): Renamed from dump_variable. Adjust all callers.
15582 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
15583 * Makefile.in (var-tracking.o): Adjust deps.
15585 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
15587 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
15589 2010-01-20 Richard Guenther <rguenther@suse.de>
15591 PR tree-optimization/42717
15592 * tree-ssa-dce.c (get_live_post_dom): Remove.
15593 (forward_edge_to_pdom): Take an arbitrary edge to copy
15594 degenerate PHI args from.
15595 (remove_dead_stmt): Use the first post-dominator even if it
15596 does not contain live statements as redirection destination.
15598 2010-01-20 Richard Guenther <rguenther@suse.de>
15600 * tree-inline.c (estimate_num_insns): Handle EH builtins.
15602 2010-01-20 Jakub Jelinek <jakub@redhat.com>
15604 * sel-sched.c (create_speculation_check): Remove set but not used
15606 (try_transformation_cache): Remove set but not used variable ds.
15607 (calculate_privileged_insns): Remove set but not used variables
15608 cur_insn and min_spec_insn.
15609 (find_best_expr): Remove set but not used variable avail_n.
15610 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
15612 * cgraphunit.c (assemble_thunk): Remove set but not used variable
15614 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
15615 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
15616 new_scop_exit_edge.
15618 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
15621 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
15622 cpu types. Add support for *-sse3 cpu types.
15623 (x86_64-*-*): Ditto.
15625 2010-01-20 Jakub Jelinek <jakub@redhat.com>
15627 PR middle-end/42803
15628 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
15629 argument, call initializer_constant_valid_p_1 instead of
15630 initializer_constant_valid_p, pass CACHE to it, return NULL
15631 immediately if first call returns NULL.
15632 (initializer_constant_valid_p_1): New function.
15633 (initializer_constant_valid_p): Use it.
15635 2010-01-20 Thomas Quinot <quinot@adacore.com>
15637 * tree.def (PLACEHOLDER_EXPR): Fix comment.
15639 2010-01-20 Jakub Jelinek <jakub@redhat.com>
15641 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
15642 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
15643 (loc_list_from_tree): Don't handle unsigned division. Handle
15644 signed modulo using DW_OP_{over,over,div,mul,minus}.
15645 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
15646 modulo instead of signed.
15648 2010-01-20 DJ Delorie <dj@redhat.com>
15650 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
15652 (h8300_emit_stack_adjustment): Propogate it.
15654 (h8300_expand_prologue): Likewise.
15655 (h8300_expand_epilogue): Likewise.
15657 2010-01-19 Michael Matz <matz@suse.de>
15659 PR tree-optimization/41783
15660 * tree-data-ref.c (toplevel): Include flags.h.
15661 (dump_data_dependence_relation): Also dump the inputs if the
15662 result will be unknown.
15663 (split_constant_offset_1): Look through some conversions.
15664 * tree-predcom.c (determine_roots_comp): Restart a new chain if
15665 the offset from last element is too large.
15666 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
15667 (reassociate_to_the_same_stmt): Handle vector registers.
15668 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
15669 (e.g. conversions).
15670 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
15671 wide_prolog_niters argument, emit widening instructions.
15672 (vect_do_peeling_for_alignment): Adjust caller, use widened
15673 variant of the iteration cound.
15674 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
15676 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15679 * config/arm/neon-testgen.m (emit_automatics): New parameter
15680 features. Adjust for Fixed_return_reg feature.
15681 (test_intrinsic): Call emit_automatics with new feature.
15682 * config/arm/neon.ml: Update copyright years.
15683 (features): New Fixed_return_reg feature.
15684 (ops): Update feature for Vget_low.
15686 2010-01-19 Jakub Jelinek <jakub@redhat.com>
15688 PR tree-optimization/42719
15689 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
15693 * fwprop.c (all_uses_available_at): Return false if def_set dest
15694 is a REG that is used in def_insn.
15696 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
15698 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
15700 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
15701 Add argument names.
15703 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
15705 * target.h (struct gcc_target) <secondary_reload>: Change type
15706 of last argument to secondary_reload_info *.
15708 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
15711 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
15712 memory references with unaligned offsets. Remove CQImode handling.
15713 (unaligned_memory_operand): Return 1 for memory references with
15714 unaligned offsets. Remove CQImode handling.
15716 2010-01-18 Richard Guenther <rguenther@suse.de>
15718 PR middle-end/39954
15719 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
15722 2010-01-18 Richard Guenther <rguenther@suse.de>
15724 PR tree-optimization/42781
15725 * tree-ssa-structalias.c (find_what_var_points_to): Skip
15726 restrict processing only if the original variable was artificial.
15728 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
15730 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
15731 find number of popped argument bytes.
15733 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
15734 Fix the text that describes the return value for invalid insns.
15736 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
15738 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
15739 Clarify what 'cost of the -dependence' is. Fix quoting.
15741 * toplev.c (default_get_pch_validity): Rename argument to "sz".
15742 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
15744 2010-01-17 Jakub Jelinek <jakub@redhat.com>
15746 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
15747 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
15749 2010-01-17 Richard Guenther <rguenther@suse.de>
15751 PR middle-end/42248
15752 * function.c (split_complex_args): Take a VEC to modify.
15753 (assign_parms_augmented_arg_list): Build a VEC instead of
15754 a chain of PARM_DECLs.
15755 (assign_parms_unsplit_complex): Take a VEC of arguments.
15756 Do not fixup unmodified parms.
15757 (assign_parms): Deal with the VEC.
15758 (gimplify_parameters): Likewise.
15760 2010-01-17 Richard Guenther <rguenther@suse.de>
15762 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
15763 node existence check.
15764 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
15765 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
15766 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
15767 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
15768 (gimple_execute_on_growing_pred): Likewise.
15770 2010-01-17 Richard Guenther <rguenther@suse.de>
15772 PR tree-optimization/42773
15773 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
15774 (compute_antic_aux): Likewise.
15775 (compute_partial_antic_aux): Likewise.
15777 2010-01-17 Jie Zhang <jie.zhang@analog.com>
15780 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
15783 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
15785 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
15788 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
15789 Fix markup for strict argument.
15791 (TARGET_SCHED_REORDER2): Fix argument types.
15793 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
15794 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
15796 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
15797 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
15799 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
15802 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
15803 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
15804 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
15805 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
15806 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
15808 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
15810 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
15812 (TARGET_ASM_RELOC_RW_MASK): Add return type.
15813 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
15815 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
15817 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
15820 (TARGET_ASM_NAMED_SECTION): Fix argument list.
15822 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
15823 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
15825 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
15827 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
15829 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
15830 referring to it. Fix language.
15832 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
15834 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
15836 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
15838 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
15840 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
15841 '@var{stream}. Remove stray 'and'.
15843 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
15845 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
15847 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
15849 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
15850 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
15852 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
15853 Fix description of return value.
15854 Rename argument "sz" to "len."
15856 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
15857 Clarify meaning of 'true' return value.
15859 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
15861 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
15862 rep_mode versus mode_rep.
15864 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
15866 (TARGET_BUILTIN_DECL): Fix name.
15868 (TARGET_COMMUTATIVE_P): Fix type of first argument.
15870 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
15872 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
15874 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
15876 (TARGET_RELAXED_ORDERING): Use @deftypevr.
15878 (TARGET_GET_DRAP_RTX): Note that this is a hook.
15881 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
15882 Rename argument tm_fn to md_fn.
15884 (TARGET_OPTION_PRINT): Fix argument list.
15886 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
15889 * config/i386/i386.c (ix86_fixup_binary_operands):
15890 Revert FMA4 fixup of operands.
15892 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15895 * Makefile.in (write_entries_to_file, install-plugin):
15896 Use \012 instead of \n with tr.
15898 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
15900 * configure.ac (HAVE_AS_REF): New C macro.
15901 * configure: Regenerate.
15902 * config.in: Likewise.
15903 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
15905 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
15908 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
15910 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
15912 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
15914 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
15916 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
15918 (TARGET_IN_SMALL_DATA_P): Fix argument type.
15920 (TARGET_BINDS_LOCAL_P): Fix argument type.
15922 (TARGET_ASM_FILE_END): Use prototype.
15924 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
15926 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
15928 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
15930 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
15932 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
15933 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
15935 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
15936 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
15938 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
15939 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
15940 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
15941 (TARGET_ADDR_SPACE_CONVERT): Likewise.
15943 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
15945 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
15947 (TARGET_INIT_BUILTINS): Use prototype.
15949 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
15950 Put 'const char *' in braces. Fix parameter types.
15951 (TARGET_INVALID_CONVERSION): Fix parameter types.
15952 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
15953 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
15955 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
15958 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
15960 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
15962 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
15964 * doc/tm.texi (TARGET_HELP): Fix return type.
15966 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
15967 in braces. Fix argument types.
15969 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
15971 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
15973 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
15975 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
15976 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
15978 (TARGET_MANGLE_TYPE): Fix argument types.
15980 (TARGET_IRA_COVER_CLASSES): Use prototype.
15982 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
15984 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
15986 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
15988 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
15990 (TARGET_CALLEE_COPIES): Fix argument types.
15992 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
15994 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
15996 (TARGET_FUNCTION_VALUE): Fix argument types.
15998 (TARGET_RETURN_IN_MSB): Fix argument type.
16000 (TARGET_RETURN_IN_MEMORY): Fix argument types.
16002 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
16004 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
16006 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
16007 agree with return type.
16009 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
16011 2010-01-15 Jing Yu <jingyu@google.com>
16013 PR rtl-optimization/42691
16014 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
16015 a pseudo to a constant and are merged, and adjust comments.
16017 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
16019 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
16021 2010-01-15 Richard Guenther <rguenther@suse.de>
16023 PR middle-end/42739
16024 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
16025 labels of computed or non-local gotos to the destination.
16026 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
16027 landing pad label is the first label.
16029 2010-01-15 Richard Guenther <rguenther@suse.de>
16031 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
16033 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
16036 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
16037 to allow generation of the xssqrtdp instruction on power7.
16038 (sqrtdf2_fpr): Ditto.
16040 2010-01-14 Jakub Jelinek <jakub@redhat.com>
16042 PR middle-end/42674
16043 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
16044 functions with noreturn attribute.
16047 * varasm.c (declare_weak): Add weak attribute to decl if it
16048 doesn't have one already.
16049 (assemble_external): Only add decls to weak_decls if they also
16050 have weak attribute.
16052 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
16054 * var-tracking.c (var_reg_delete): Don't delete the association
16055 between REGs and values or one-part variables if the register
16058 2010-01-14 Jakub Jelinek <jakub@redhat.com>
16061 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
16062 because its first operand is a non-localized variable.
16064 2010-01-14 Martin Jambor <mjambor@suse.cz>
16066 PR tree-optimization/42706
16067 * tree-sra.c (encountered_recursive_call): New variable.
16068 (encountered_unchangable_recursive_call): Likewise.
16069 (sra_initialize): Initialize both new variables.
16070 (callsite_has_enough_arguments_p): New function.
16071 (scan_function): Call decl and flags check only for IPA-SRA, check
16072 whether there is a recursive call and whether it has enough arguments.
16073 (all_callers_have_enough_arguments_p): New function.
16074 (convert_callers): Look for recursive calls only when
16075 encountered_recursive_call is set.
16076 (ipa_early_sra): Bail out either if
16077 !all_callers_have_enough_arguments_p or
16078 encountered_unchangable_recursive_call.
16080 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
16082 * sel-sched.c: Add 2010 to copyright years.
16083 * sel-sched-ir.c: Likewise.
16084 * sel-sched-ir.h: Likewise.
16086 2010-01-14 Martin Jambor <mjambor@suse.cz>
16088 PR tree-optimization/42714
16089 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
16090 constructors specially.
16092 2010-01-14 Andi Kleen <ak@linux.intel.com>
16094 * config/i386/drivers-i386.c (detect_caches_intel):
16095 Add l2sizekb parameter and fill in.
16096 (host_detect_local_cpu): Add l2sizekb, fill in.
16097 Add Atom small cache heuristic.
16099 2010-01-14 Andi Kleen <ak@linux.intel.com>
16101 * config/i386/drivers-i386.c (detect_caches_cpuid4):
16102 Add level3 parameter and fill in.
16103 (detect_caches_intel): Handle level3 cache.
16105 2010-01-14 Andi Kleen <ak@linux.intel.com>
16107 * config/i386/drivers-i386.c (host_detect_local_cpu):
16108 Fix core duo detection.
16110 2010-01-14 Andi Kleen <ak@linux.intel.com>
16112 * config/i386/drivers-i386.c (host_detect_local_cpu):
16113 Fix Atom detection.
16115 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
16117 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
16118 (rs6000_variable_issue_1): this. Use...
16119 (rs6000_variable_issue): here. Reimplement. Print debug info.
16121 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
16123 * sel-sched-ir.c (sel_restore_other_notes): Rename to
16124 sel_restore_notes. Update all callers. Call reemit_notes
16127 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
16129 PR rtl-optimization/42246
16130 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
16133 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
16135 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
16136 all successors is the same as number of successors in current region.
16138 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
16140 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
16141 to rename is not separable. Otherwise check that its LHS is not NULL.
16143 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
16145 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
16147 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
16149 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
16150 available registers when failed to discover LHS register class.
16151 Fix indentation. Update comment.
16153 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
16154 Alexander Monakov <amonakov@ispras.ru>
16156 PR rtl-optimization/42389
16157 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
16159 (advance_state_on_fence): Likewise.
16160 (sel_target_adjust_priority): Print debug output only when
16161 sched_verbose >= 4, not 2.
16162 (get_expr_cost): Do not issue all unique insns on the next cycle.
16163 (fill_insns): Initialize can_issue_more from the value saved
16165 * sel-sched-ir.c (flist_add): New parameter issue_more.
16166 Init FENCE_ISSUE_MORE with it.
16167 (merge_fences): Likewise.
16168 (init_fences): Update call to flist_add.
16169 (add_to_fences, add_clean_fence_to_fences)
16170 (add_dirty_fence_to_fences): Likewise.
16171 (move_fence_to_fences): Update call to merge_fences.
16172 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
16174 * sel-sched-ir.h (struct _fence): New field issue_more.
16175 (FENCE_ISSUE_MORE): New accessor macro.
16177 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
16179 PR rtl-optimization/42388
16180 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
16181 that have no predecessors nor successors. Do not call move_bb_info
16182 for empty blocks outside of current region.
16184 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
16186 PR rtl-optimization/42294
16187 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
16188 * sel-sched.c (move_exprs_to_boundary): Transitively add all
16189 originators' originators.
16191 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
16193 PR rtl-optimization/39453
16194 PR rtl-optimization/42246
16195 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
16197 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
16199 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
16200 Alexander Monakov <amonakov@ispras.ru>
16202 PR middle-end/42245
16203 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
16204 (maybe_tidy_empty_bb): ... here. Make static. Add new
16205 argument. Update all callers.
16206 (tidy_control_flow): ... and here. Recompute topological order
16207 of basic blocks in region if necessary.
16208 (sel_redirect_edge_and_branch): Change return type. Return true
16209 if topological order might have been invalidated.
16210 (purge_empty_blocks): Export and move from...
16211 * sel-sched.c (purge_empty_blocks): ... here.
16212 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
16213 (maybe_tidy_empty_bb): Delete prototype.
16214 (purge_empty_blocks): Declare.
16216 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
16218 PR rtl-optimization/42249
16219 * sel-sched.c (try_replace_dest_reg): When chosen register
16220 and original register is the same, do not bail out early, but
16221 still check all original insns for validity of replacing destination
16222 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
16225 2010-01-14 Jakub Jelinek <jakub@redhat.com>
16228 Port from no-undefined-overflow branch:
16229 2009-03-09 Richard Guenther <rguenther@suse.de>
16231 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
16233 2010-01-14 Richard Guenther <rguenther@suse.de>
16236 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
16238 2010-01-14 Ira Rosen <irar@il.ibm.com>
16240 PR tree-optimization/42709
16241 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
16242 as scalar type in creation of constant vector operand.
16244 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16247 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
16248 (check-parallel-%): Match `testsuite' directory component only
16251 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
16253 PR translation/39521
16254 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
16257 2010-01-13 Richard Guenther <rguenther@suse.de>
16259 PR tree-optimization/42730
16260 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
16263 2010-01-13 Steve Ellcey <sje@cup.hp.com>
16266 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
16267 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
16270 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
16272 * config/bfin/libgcc-bfin.ver: Regenerate based on current
16273 libgcc-std.ver. Add entries for ___smulsi3_highpart and
16274 ___umulsi3_highpart.
16276 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
16277 rather than schedule_insns if the pass is enabled.
16279 2010-01-13 Martin Jambor <mjambor@suse.cz>
16281 PR tree-optimization/42704
16282 * tree-sra.c (sra_modify_assign): Do not delete assignments to
16285 2010-01-13 Martin Jambor <mjambor@suse.cz>
16287 PR tree-optimization/42703
16288 * tree-sra.c (analyze_access_subtree): Check that we can build a
16289 reference to the original data within the aggregate.
16291 2010-01-13 Richard Guenther <rguenther@suse.de>
16293 PR tree-optimization/42705
16294 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
16296 2010-01-13 Richard Guenther <rguenther@suse.de>
16298 PR middle-end/42716
16299 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
16301 2010-01-13 Jakub Jelinek <jakub@redhat.com>
16304 * var-tracking.c (values_to_unmark): New variable.
16305 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
16306 values_to_unmark vector. Moved body to...
16307 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
16308 instead queue it into values_to_unmark vector.
16309 (vt_find_locations): Free values_to_unmark vector.
16311 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
16313 * config/s390/s390.c (override_options): Set
16314 default of max-pending-list-length to 256
16316 2010-01-13 Richard Guenther <rguenther@suse.de>
16319 * tree-pass.h (PROP_gimple_lcx): New.
16320 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
16321 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
16322 before the final cleanup_eh.
16323 (dump_properties): Dump PROP_gimple_lcx.
16324 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
16325 (tree_lower_complex_O0): Remove.
16326 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
16327 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
16328 tree_lower_complex, schedule TODO_update_ssa.
16329 * lto-streamer-out.c (output_function): Stream the functions
16331 * lto-streamer-in.c (input_function): Likewise.
16332 (lto_read_body): Do not override them here.
16334 2010-01-12 Joseph Myers <joseph@codesourcery.com>
16337 * c-typeck.c (build_c_cast): Fold value cast to union type before
16338 wrapping it in a CONSTRUCTOR.
16340 2010-01-12 Jakub Jelinek <jakub@redhat.com>
16342 PR rtl-optimization/42699
16343 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
16346 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16348 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
16349 SUBTARGET_WARN_UNUSED_SPEC): Move ...
16350 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
16351 SUBTARGET_WARN_UNUSED_SPEC): ... here
16352 * config/mips/iris5.h (LIBGCC_SPEC): Define.
16354 2010-01-12 Julian Brown <julian@codesourcery.com>
16356 * config/arm/neon-schedgen.ml (Utils): Don't try to
16357 open missing module.
16358 (find_with_result): New.
16360 2010-01-12 Jakub Jelinek <jakub@redhat.com>
16363 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
16364 sharing when canonicalizing ({lt,ge}u (plus a b) b).
16366 PR tree-optimization/42645
16367 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
16368 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
16369 decl_map, set processing_debug_stmt to -1 and return name without
16372 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
16374 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
16375 binutils version, and reword target configuration description.
16377 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
16379 * config/avr/avr.h (LINKER_NAME): Remove.
16381 2010-01-11 Janis Johnson <janis187@us.ibm.com>
16384 * config/rs6000/rs6000.c (rs6000_override_options): On targets
16385 that support VSX, warn for -mno-altivec if vsx is not disabled,
16388 2010-01-11 Joseph Myers <joseph@codesourcery.com>
16389 Shujing Zhao <pearly.zhao@oracle.com>
16391 PR translation/42469
16392 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
16393 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
16394 character between option name and help text.
16395 * c.opt (imultilib): Likewise.
16397 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
16399 * lto-streamer-out.c (output_unreferenced_globals): Output static
16402 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
16404 PR rtl-optimization/42621
16405 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
16406 optimizing for size.
16407 (duplicate_computed_gotos): Remove now-redundant check.
16409 2010-01-10 Steve Ellcey <sje@cup.hp.com>
16412 * configure.ac: Save and restore LDFLAGS and LIBS
16413 * configure: Regenerate.
16415 2010-01-10 Richard Guenther <rguenther@suse.de>
16417 PR middle-end/42667
16418 * builtins.c (fold_builtin_strlen): Add type argument and
16419 convert the resulting length to it.
16420 (fold_builtin_1): Adjust.
16422 2010-01-09 Jakub Jelinek <jakub@redhat.com>
16424 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
16425 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
16427 (num_insns_constant_wide): Adjust for that change.
16429 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16432 * web.c (union_defs): Add used argument, to combine uses of
16433 uninitialized regs.
16434 (entry_register): Adjust type and tests of used argument.
16435 (web_main): Widen used for new use. Pass it to union_defs.
16436 * df.h (union_defs): Adjust prototype.
16438 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16441 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
16442 uses in new incoming argument. Free body.
16443 (reset_debug_uses_in_loop): New.
16444 (analyze_insn_to_expand_var): Call the latter if the former found
16445 anything. Fix whitespace. Reject invalid dest overlaps before
16446 going through all insns in the loop.
16448 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16451 * haifa-sched.c (dying_use_p): Debug insns don't count.
16453 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16455 PR middle-end/42363
16456 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
16457 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
16458 (verify_gimple_call): Reject LHS in noreturn calls.
16460 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16464 * tree-vect-loop-manip.c (adjust_info): New type.
16465 (adjust_vec): New pointer to vector.
16466 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
16467 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
16468 (slpeel_update_phis_for_duplicate_loop): Use them.
16469 (slpeel_update_phi_nodes_for_guard1): Likewise.
16470 (slpeel_update_phi_nodes_for_guard2): Likewise.
16471 (slpeel_tree_peel_loop_to_edge): Likewise.
16472 (vect_update_ivs_after_vectorizer): Likewise.
16474 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16476 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
16477 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
16479 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16481 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
16482 bogus uninitialized warning.
16484 2010-01-09 Richard Guenther <rguenther@suse.de>
16486 PR middle-end/42512
16487 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
16488 the evolution is compatible with the initial condition.
16490 2010-01-09 Jakub Jelinek <jakub@redhat.com>
16492 * gcc.c (process_command): Update copyright notice dates.
16493 * gcov.c (print_version): Likewise.
16494 * gcov-dump.c (print_version): Likewise.
16495 * mips-tfile.c (main): Likewise.
16496 * mips-tdump.c (main): Likewise.
16498 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
16501 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
16503 (rotlhi3_8): Delete.
16505 (rotlsi3_8): Delete.
16506 (rotlsi3_16): Delete.
16507 (rotlsi3_24): Delete.
16508 (rotl<mode>3): New.
16509 (*rotw<mode>3): New.
16510 (*rotb<mode>3): New.
16511 * config/avr/avr.c (avr_rotate_bytes): New function.
16512 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
16514 2010-01-08 Steve Ellcey <sje@cup.hp.com>
16517 * configure.ac: Modify -rdynamic check.
16518 * configure: Regenerate.
16520 2010-01-08 DJ Delorie <dj@redhat.com>
16522 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
16523 register popping order.
16525 2010-01-08 Richard Guenther <rguenther@suse.de>
16528 * c.opt (fsigned-char): Also let LTO handle this option.
16529 (funsigned-char): Likewise.
16531 2010-01-07 Richard Guenther <rguenther@suse.de>
16533 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
16534 (gimple_op): Likewise.
16535 (gimple_op_ptr): Likewise.
16536 (gimple_assign_set_lhs): Remove gcc_assert.
16537 (gimple_assign_set_rhs1): Likewise.
16538 (gimple_assign_set_rhs2): Likewise.
16539 (gimple_call_set_lhs): Likewise.
16540 (gimple_call_set_fn): Likewise.
16541 (gimple_call_set_fndecl): Likewise.
16542 (gimple_call_fndecl): Likewise.
16543 (gimple_call_return_type): Likewise.
16544 (gimple_call_set_chain): Likewise.
16545 (gimple_call_num_args): Likewise.
16546 (gimple_call_set_arg): Likewise.
16547 (gimple_cond_set_code): Likewise.
16548 (gimple_cond_set_lhs): Likewise.
16549 (gimple_cond_set_rhs): Likewise.
16550 (gimple_cond_set_true_label): Likewise.
16551 (gimple_cond_set_false_label): Likewise.
16552 (gimple_label_set_label): Likewise.
16553 (gimple_goto_set_dest): Likewise.
16554 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
16555 (gimple_debug_bind_get_value): Likewise.
16556 (gimple_debug_bind_get_value_ptr): Likewise.
16557 (gimple_debug_bind_set_var): Likewise.
16558 (gimple_debug_bind_set_value): Likewise.
16559 (gimple_debug_bind_reset_value): Likewise.
16560 (gimple_debug_bind_has_value_p): Likewise.
16561 (gimple_return_retval_ptr): Remove gcc_assert.
16562 (gimple_return_retval): Likewise.
16563 (gimple_return_set_retval): Likewise.
16564 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
16565 (safe_referenced_var_iterator): Remove.
16566 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
16567 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
16568 (fill_referenced_var_vec): Remove.
16569 (first_readonly_imm_use): Remove redundant gcc_assert.
16570 (phi_arg_index_from_use): Combine gcc_asserts.
16571 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
16572 (first_imm_use_stmt): Remove redundant gcc_assert.
16573 * tree-cfg.c (verify_gimple_call): Verify function and chain
16574 operands. Verify arguments.
16575 (verify_types_in_gimple_stmt): Verify condition code and labels.
16577 2010-01-07 Richard Guenther <rguenther@suse.de>
16579 PR tree-optimization/42641
16580 * sese.c (rename_map_elt_info): Use the SSA name version, do
16583 2010-01-07 Jakub Jelinek <jakub@redhat.com>
16585 PR tree-optimization/42625
16586 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
16587 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
16589 2010-01-07 Duncan Sands <baldrick@free.fr>
16591 * Makefile.in (PLUGIN_HEADERS): Add version.h.
16593 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
16596 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
16597 note itself is not function_invariant_p.
16599 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
16601 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
16602 Do not add the DF_NOTE problem.
16603 * store-motion.c (execute_rtl_store_motion): Likewise.
16605 2010-01-07 Martin Jambor <mjambor@suse.cz>
16607 PR tree-optimization/42157
16608 * tree-sra.c (compare_access_positions): Stabilize sort if both
16609 accesses have integer types, return zero immediately if they are the
16612 2010-01-06 Richard Henderson <rth@redhat.com>
16614 PR middle-end/41883
16615 * haifa-sched.c (add_to_note_list): Merge into ...
16616 (concat_note_lists): ... here, and ...
16617 (unlink_other_notes, rm_other_notes): Merge into...
16618 (remove_notes): ... here. Create REG_SAVE_NOTEs for
16619 NOTE_INSN_EPILOGUE_BEG.
16621 2010-01-06 Richard Guenther <rguenther@suse.de>
16623 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
16624 not inline regular functions into always-inline functions.
16626 2010-01-06 Nick Clifton <nickc@redhat.com>
16628 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
16629 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
16631 (OVERRIDE_OPTIONS): Delete.
16632 (OPTIMIZATION_OPTIONS): Define.
16633 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
16634 * config/rx/rx.c (rx_handle_option): Issue an error message if
16635 -mcpu=rx200 and -fpu are used together.
16636 (rx_set_optimization_options): New function. Issue an error
16637 message if an optimization attribute attempts to reset the FPU/
16638 math optimization pairing.
16639 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
16640 * config/rx/rx.opt: Set the default to 32-bit doubles.
16641 * config/rx/t-rx: Add multilibs for -nofpu option.
16642 * doc/invoke.texi: Update documentation of RX options.
16644 2010-01-06 Richard Guenther <rguenther@suse.de>
16646 * tree-ssa-pre.c (name_to_id): New global.
16647 (alloc_expression_id): Simplify SSA name handling.
16648 (lookup_expression_id): Likewise.
16649 (init_pre): Zero name_to_id.
16650 (fini_pre): Free it.
16652 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
16654 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
16656 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
16659 * config/i386/sse.md (smaxv2di3): New.
16660 (umaxv2di3): Likewise.
16661 (sminv2di3): Likewise.
16662 (uminv2di3): Likewise.
16664 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
16667 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
16668 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
16669 (legitimize_tls_address): Likewise.
16670 (sparc_tls_referenced_p): Likewise.
16671 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
16672 and adjust calls to legitimize_pic_address.
16673 (legitimate_constant_p) Use sparc_tls_referenced_p.
16674 (legitimate_pic_operand_p): Likewise.
16675 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
16676 (sparc_tls_symbol_ref_1): Delete.
16677 (sparc_tls_referenced_p): Make static, recognize specific patterns.
16678 (legitimize_tls_address): Make static, handle CONST patterns.
16679 (legitimize_pic_address): Make static, remove unused parameter and
16680 adjust recursive calls.
16681 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
16682 and adjust call to legitimize_pic_address.
16683 (sparc_output_mi_thunk): Likewise.
16685 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
16686 H.J. Lu <hongjiu.lu@intel.com>
16689 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
16690 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
16691 operands to make them signed.
16694 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16697 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
16698 GTU to GT for V4SI and V2DI.
16700 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
16701 (umin<mode>3): Removed.
16703 (uminv4si3): Likewise.
16705 2010-01-05 Martin Jambor <mjambor@suse.cz>
16707 PR tree-optimization/42462
16708 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
16709 current_function_decl to helper functions and macros.
16711 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16714 * flags.h: Don't include real.h.
16715 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
16716 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
16717 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
16718 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
16719 * dominance.c: Update copyright.
16720 * gimple.c (walk_gimple_op): Remove inline.
16721 * tree-ssa-reassoc.c: Include real.h.
16722 * Makefile.in (FLAGS_H): Remove $(REAL_H).
16723 (tree-ssa-reassoc.o): Depend on $(REAL_H).
16725 2010-01-05 Nick Clifton <nickc@redhat.com>
16727 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
16728 register to push into the stack frame when the accumulator has to
16729 be saved during interrupts.
16731 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
16733 * doc/invoke.texi: Remove the documentation about option
16734 -Wunreachable-code.
16735 * common.opt (Wunreachable-code): Preserved for backward
16737 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
16738 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
16739 the backward compatibility flag section.
16741 2010-01-05 Richard Guenther <rguenther@suse.de>
16743 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
16745 2010-01-05 Jakub Jelinek <jakub@redhat.com>
16748 * cfgexpand.c (expand_one_var): Diagnose too large variables.
16750 PR tree-optimization/42508
16751 * tree-sra.c (convert_callers): Check for recursive call
16752 by comparing cgraph nodes instead of decls.
16753 (modify_function): Call ipa_modify_formal_parameters also
16754 on all same_body aliases.
16756 * cgraphunit.c (cgraph_materialize_all_clones): Compare
16757 cgraph nodes when checking for same_body aliases.
16759 2010-01-05 Richard Guenther <rguenther@suse.de>
16761 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
16762 allocation and lookup.
16763 (get_or_alloc_expr_for_constant): Likewise.
16764 (phi_translate): Sink allocation.
16766 2010-01-04 Richard Guenther <rguenther@suse.de>
16768 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
16769 a new entry only if needed.
16770 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
16771 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
16773 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
16775 (phi_translate): Handle CONSTANTs early.
16777 2010-01-04 Martin Jambor <mjambor@suse.cz>
16779 PR tree-optimization/42398
16780 * tree-sra.c (struct access): Removed flag grp_different_types.
16781 (dump_access): Do not dump the removed flag.
16782 (sort_and_splice_var_accesses): Do not set the removed flag.
16783 (sra_modify_expr): Check for type compatibility directly.
16785 2010-01-04 Martin Jambor <mjambor@suse.cz>
16787 PR tree-optimization/42366
16788 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
16789 edges with variable number of parameters.
16790 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
16791 flag instead of asserting it.
16792 (ipa_read_node_info): Read uses_analysis_done flag.
16794 2010-01-04 Richard Guenther <rguenther@suse.de>
16796 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
16797 iterative_hash_* as intended.
16798 (vn_reference_compute_hash): Likewise. Simplify hashing
16800 (vn_reference_lookup_2): Likewise.
16801 (vn_nary_op_compute_hash): Likewise.
16802 (vn_phi_compute_hash): Likewise.
16803 (expressions_equal_p): Remove strange code.
16804 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
16805 (pre_expr_hash): Likewise. Simplify hashing SSA names.
16806 (bitmap_insert_into_set_1): Take value-id as parameter.
16807 (add_to_value): Pass it.
16808 (bitmap_insert_into_set): Likewise.
16809 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
16811 2010-01-04 Jakub Jelinek <jakub@redhat.com>
16814 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
16815 (do_self_spec): For switches with SWITCH_IGNORE set set also
16816 SWITCH_IGNORE_PERMANENTLY.
16817 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
16820 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
16822 * lto-streamer-out.c (output_unreferenced_globals): Output the full
16823 tree of an unreferenced global var.
16825 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16828 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
16829 GTU to GT for V4SI and V2DI.
16831 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
16832 (umin<mode>3): Removed.
16834 (uminv4si3): Likewise.
16836 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16839 * collect2.c (main): Turn on trace in collect2 if -v is passed
16842 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
16844 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
16845 description of expression operand.
16847 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
16849 * configure.ac: Add install-html to target_list for Make-hooks.
16850 * configure: Regenerate.
16851 * fortran/Make-lang.in (F95_HTMLFILES): New.
16852 (fortran.html): Use it.
16853 (fortran.install-html): New.
16854 * Makefile.in (install-html): Add lang.install-html.
16855 * java/Make-lang.in (JAVA_HTMLFILES): New.
16856 (java.html): Use it.
16857 (java.install-html): New.
16858 * objc/Make-lang.in (objc.install-html): New.
16859 * objcp/Make-lang.in (obj-c++.install-html): New.
16860 * cp/Make-lang.in (c++.install-html): New.
16861 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
16862 * lto/Make-lang.in (lto.install-html): New.
16864 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
16867 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
16869 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
16871 PR rtl-optimization/41862
16872 * store-motion.c (store_killed_in_insn, compute_store_table,
16873 remove_reachable_equiv_notes, replace_store_insn,
16874 build_store_vectors): Ignore all DEBUG_INSNs.
16876 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
16879 * common.opt: Add dumpdir.
16881 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
16883 (option_map): Add --dumpdir.
16885 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
16887 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
16889 * opts.c (decode_options): Try dump_dir_name first if
16890 dump_base_name isn't an absolute path.
16891 (common_handle_option): Handle OPT_dumpdir.
16893 * toplev.c (dump_dir_name): New.
16894 (print_switch_values): Also ignore -dumpdir.
16896 * toplev.h (dump_dir_name): New.
16898 2010-01-03 Richard Guenther <rguenther@suse.de>
16900 PR tree-optimization/42589
16901 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
16902 double-word expansion of bswap32.
16904 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
16906 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
16907 with BLOCK_FOR_INSN.
16908 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
16909 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
16910 noce_process_if_block): Likewise.
16911 * gcse.c (compute_local_properties, insert_expr_in_table,
16912 insert_set_in_table, canon_list_insert, find_avail_set,
16913 pre_insert_copy_insn): Likewise.
16915 * basic-block.h (BLOCK_NUM): Move from here...
16916 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
16918 2010-01-03 Richard Guenther <rguenther@suse.de>
16920 PR tree-optimization/42438
16921 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
16922 contains_may_not_return_call flag.
16923 (BB_MAY_NOTRETURN): New.
16924 (valid_in_sets): Trapping nary operations are not valid
16925 in blocks that may not return.
16926 (insert_into_preds_of_block): Remove check for trapping expressions.
16927 (compute_avail): Compute also BB_MAY_NOTRETURN.
16929 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
16931 * doc/invoke.texi: Add 2010 to copyright years.
16933 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
16935 * config/sparc/sparc.c: Fix formatting nits.
16937 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
16938 Alexander Monakov <amonakov@ispras.ru>
16940 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
16942 2010-01-02 Richard Guenther <rguenther@suse.de>
16944 PR middle-end/42577
16945 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
16946 (simplify_switch_using_ranges): Mark to be removed edges
16949 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16951 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
16953 * collect2.c (scan_libraries): Add missing argument in call to
16956 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
16959 * config/alpha/predicates.md (aligned_memory_operand): Return false
16961 (unaligned_memory_operand): Return true for CQImode.
16962 * config/alpha/alpha.c (get_aligned_mem): Assert that location
16963 doesn not cross aligned SImode word boundary.
16965 2010-01-02 Anatoly Sokolov <aesok@post.ru>
16967 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
16969 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
16970 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
16972 2010-01-02 Richard Guenther <rguenther@suse.de>
16975 * toplev.c (compile_file): Emit LTO marker properly. Change
16976 it to __gnu_lto_v1.
16977 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
16979 2010-01-01 Richard Guenther <rguenther@suse.de>
16982 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
16984 2010-01-01 Richard Guenther <rguenther@suse.de>
16987 * c-decl.c (grokdeclarator): For zero-size arrays force
16988 structural equality checks as layout_type does.
16990 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
16992 * builtins.c: Update copyright to 2010.
16994 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
16997 * lto-streamer-out.c (produce_asm): Revert the last change.
16998 (copy_function): Likewise.
17000 * lto-streamer.c (lto_get_section_name): Skip any leading
17003 2010-01-01 Richard Guenther <rguenther@suse.de>
17005 PR middle-end/42559
17006 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
17010 Copyright (C) 2010 Free Software Foundation, Inc.
17012 Copying and distribution of this file, with or without modification,
17013 are permitted in any medium without royalty provided the copyright
17014 notice and this notice are preserved.