1 2009-10-12 Stefan Dösinger <stefan@codeweavers.com>
3 * config/i386/i386.md (vswapmov): New.
4 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
5 (ix86_function_ms_hook_prologue): New.
6 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
7 * configure.ac: Test for swap suffix support in as.
10 2009-10-12 Jakub Jelinek <jakub@redhat.com>
13 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
14 paradoxical subregs to prevent partial register stalls if the inner
17 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
19 * config/i386/i386.md (*setcc_<mode>_2): Do not use ix86_expand_clear
22 2009-10-12 Dodji Seketeli <dodji@redhat.com>
25 * gcc/dwarf2out.c (template_parameter_pack_die,
26 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
28 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
31 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
33 (maybe_register_def): Likewise. Take stmt iterator.
34 (rewrite_update_stmt): Take stmt iterator and pass it on.
35 (rewrite_update_enter_block): Pass stmt iterator.
37 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
39 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
40 (spu_builtin_decl): New function.
42 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
44 * config/i386/i386.md (SWIM): New mode iterator.
45 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
46 using SWIM mode iterator.
47 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
48 patterns using SWI48 mode iterator.
49 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
50 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
51 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
52 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
53 patterns using SWI248 mode iterator.
54 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
55 gen_x86_movdicc_0_m1_rex64 for renamed function
57 2009-10-11 Jose Ruiz <ruiz@adacore.com>
58 Eric Botcazou <ebotcazou@adacore.com>
61 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
62 * config/sparc/sol2-unwind.h: New file.
64 2009-10-11 Olivier Hainque <hainque@adacore.com>
65 Eric Botcazou <ebotcazou@adacore.com>
68 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
69 * config/i386/sol2-unwind.h: New file.
71 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
74 * config/i386/i386.md (addsi_1_zext): Get the proper second
77 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
79 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
80 all OLD_RTXes, not just REGs. Use copy_rtx to create the
83 2009-10-11 Richard Guenther <rguenther@suse.de>
85 * gimple.c (iterative_hash_type_name): Do not handle special
88 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
90 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
91 (*setcc_si_1_and): Ditto.
92 (*setcc_si_1_movzbl): Ditto.
93 (*setcc_<mode>_2): Ditto.
94 (*setcc_qi): Rename from *setcc_1.
95 (*setcc_qi_slp): Rename from *setcc_2.
97 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
98 (*zero_extendqisi2_movzbw_and splitter): Ditto.
100 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
101 "if" condition, there is already assert with reload_completed present.
103 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
105 * plugin.c (try_init_one_plugin): Improve constness of variable err.
107 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
109 * doc/install.texi (Final install): Refer to
110 http://gcc.gnu.org/bugs/ for bug reporting.
112 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
114 * configure.ac: Add test for dci instruction.
115 * configure: Regenerate.
116 * config.in: Likewise.
117 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
118 * doc/invoke.texi: Add cpu_type 476 and 476fp.
119 (-mmulhw): Add 476 to description.
121 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
122 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
123 (processor_target_table): Add 476 and 476fp entries.
124 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
125 (rs6000_issue_rate): Add CPU_PPC476.
126 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
127 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
128 (processor_type): Add PROCESSOR_PPC476.
129 (EXTRA_SPECS): Add asm_cpu_476 string.
130 * config/rs6000/rs6000.md: (define_attr "type"): Add isel attribute.
131 (define_attr "cpu"): Add ppc476.
133 Update comments for 476.
134 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
135 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
136 Update copyright year.
137 * config/rs6000/476.md: New file.
138 * config/rs6000/40x.md: Add description for "isel" attribute.
139 Update copyright year.
140 * config/rs6000/440.md: Likewise.
141 * config/rs6000/603.md: Likewise.
142 * config/rs6000/6xx.md: Likewise.
143 * config/rs6000/7450.md: Likewise.
144 * config/rs6000/7xx.md: Likewise.
145 * config/rs6000/8540.md: Likewise.
146 * config/rs6000/cell.md: Likewise.
147 * config/rs6000/e300c2c3.md: Likewise.
148 * config/rs6000/e500mc.md: Likewise.
149 * config/rs6000/mpc.md: Likewise.
150 * config/rs6000/power4.md: Likewise.
151 * config/rs6000/power5.md: Likewise.
152 * config/rs6000/power6.md: Likewise.
153 * config/rs6000/power7.md: Likewise.
154 * config/rs6000/rios1.md: Likewise.
155 * config/rs6000/rios2.md: Likewise.
156 * config/rs6000/rs64.md: Likewise.
158 2009-10-10 Richard Guenther <rguenther@suse.de>
160 PR tree-optimization/41654
161 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
162 a cond expr before calling gimple_cond_set_condition_from_tree.
163 (ifcombine_iforif): Likewise.
165 2009-10-09 Ian Lance Taylor <iant@google.com>
167 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
168 * configure: Rebuild.
170 2009-10-09 Neil Vachharajani <nvachhar@google.com>
172 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
175 2009-10-09 Richard Guenther <rguenther@suse.de>
178 * target-def.h (TARGET_BUILTIN_DECL): Define.
179 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
180 * target.h (struct gcc_target): Add builtin_decl target hook.
181 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
182 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
184 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
186 (lto_output_builtin_tree): Sorry if the target does not support
187 streaming target builtins.
188 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
189 (rs6000_builtin_decl): New function.
190 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
191 (ix86_builtin_decl): New function.
193 2009-10-09 Jakub Jelinek <jakub@redhat.com>
195 PR preprocessor/41445
196 * c-ppoutput.c (do_line_change): New function.
197 (cb_line_change): Use it.
198 (scan_translation_unit): Call do_line_change if
199 avoid_paste or PREV_WHITE and token location is on a different line
203 * dwarf2out.c (dwarf2out_init): Test whether
204 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
207 PR rtl-optimization/41646
208 * calls.c (expand_call): For BLKmode types returned in registers
209 avoid likely spilled hard regs in copy_blkmode_from_reg generated
212 2009-10-09 Richard Guenther <rguenther@suse.de>
214 PR tree-optimization/41634
215 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
216 we remove the correct elements.
217 (optimize_stmt): Make sure to update stmt operands before
218 optimizing redundancies.
220 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
222 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
224 2009-10-09 Richard Guenther <rguenther@suse.de>
227 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
229 (lto_wrapper_exit): New function.
231 (fatal_perror): Likewise.
232 (fork_execute): Use global args_name, do not free it.
233 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
234 * lto-streamer.h: Remove duplicate prototypes.
236 2009-10-09 Richard Guenther <rguenther@suse.de>
238 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
239 before calling stmt_can_throw_external.
241 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
243 PR tree-optimization/40071
244 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
245 pointer if the original data reference doesn't conflict with the
246 created vector data reference. Fix long line.
248 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
250 * config/i386/i386.md (any_div): New code iterator.
251 (u): Handle div and udiv.
253 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
255 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
256 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
257 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
258 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
260 2009-10-08 Joseph Myers <joseph@codesourcery.com>
262 * gcc.c (main): Remove trailing "." from diagnostics.
264 2009-10-08 Cary Coutant <ccoutant@google.com>
266 Add support for debugging with ICF (Identical Code Folding).
267 * calls.c (debug.h): New #include.
268 (emit_call_1): Call virtual_call_token debug hook.
269 * common.opt (-fenable-icf-debug): New option.
270 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
271 locations in the source).
272 (poc_label_num): New variable.
273 (dcall_entry, vcall_entry): New typedefs.
274 (dcall_table, vcall_table): New variables.
275 (struct vcall_insn): New type.
276 (vcall_insn_table): New variable.
277 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
278 (size_of_dcall_table): New function.
279 (output_dcall_table): New function.
280 (size_of_vcall_table): New function.
281 (output_vcall_table): New function.
282 (dwarf2out_direct_call): New function.
283 (vcall_insn_table_hash): New function.
284 (vcall_insn_table_eq): New function.
285 (dwarf2out_virtual_call_token): New function.
286 (dwarf2out_virtual_call): New function.
287 (dwarf2out_init): Allocate new tables and sections.
288 (prune_unused_types): Mark DIEs referenced from direct call table.
289 (dwarf2out_finish): Output direct and virtual call tables.
290 * final.c (final_scan_insn): Call direct_call and virtual_call
292 * debug.h (struct gcc_debug_hooks): Add direct_call,
293 virtual_call_token, virtual_call hooks.
294 (debug_nothing_uid): New function.
295 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
296 (debug_nothing_uid): New function.
297 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
298 (xcoff_debug_hooks): Likewise.
299 * sdbout.c (sdb_debug_hooks): Likewise.
300 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
301 * doc/invoke.texi (-fenable-icf-debug): New option.
303 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
306 * regmove.c (regmove_backward_pass): Replace src with dst in the
307 debug insn, and check for dst before rather than after.
309 2009-10-08 Janis Johnson <janis187@us.ibm.com>
311 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
312 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
314 2009-10-08 Jan Hubicka <jh@suse.cz>
317 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
318 do not mark cgraph nodes as needed.
319 (record_references_in_initializer): Add new only_vars parameter.
320 * cgraph.h (record_references_in_initializer): New parameter.
321 * varasm.c (assemble_variable): Update call.
322 * varpool.c (varpool_analyze_pending_decls): Always look for
325 2009-10-08 Anatoly Sokolov <aesok@post.ru>
327 * config/avr/avr.c (last_insn_address) Remove variable.
328 (expand_prologue): Don't initialise last_insn_address variable.
329 (final_prescan_insn): Don't output insn size.
330 * config/avr/avr.opt (msize): Remove switch.
331 * doc/invoke.texi (AVR Options): Remove documentation of -msize
334 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
336 * combine.c (label_tick_ebb_start): Fix comment.
337 (combine_instructions): Set label_tick and label_tick_ebb_start before
338 calling setup_incoming_promotions. Start them from 1. Increment
339 label_tick instead of deriving it from the BB index. Rather than
340 comparing ticks use the block from the previous iteration to decide
341 whether to start a new EBB. Remove empty lines before function.
343 2009-10-08 Michael Matz <matz@suse.de>
346 * builtins.c (fold_builtin_isascii): Use fold_build2.
347 (fold_builtin_isdigit): Ditto.
348 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
349 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
350 remove_useless_stmts_cond, remove_useless_stmts_tf,
351 remove_useless_stmts_tc, remove_useless_stmts_bind,
352 remove_useless_stmts_goto, remove_useless_stmts_label,
353 remove_useless_stmts_1, remove_useless_stmts,
354 pass_remove_useless_stmts): Remove.
355 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
356 * passes.c (init_optimization_passes): Don't add
357 pass_remove_useless_stmts.
358 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
359 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
361 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
362 for static constants.
363 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
364 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
366 2009-10-08 Richard Guenther <rguenther@suse.de>
368 * gimple.c (free_gimple_type_tables): New function.
369 * gimple.h (free_gimple_type_tables): Declare.
371 2009-10-07 Mark Heffernan <meheff@google.com>
373 * ipa-prop.c (ipa_print_node_params) Only print
374 names of named arguments.
376 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
378 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
379 being statically linked.
381 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
383 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
385 2009-10-08 Jan Hubicka <jh@suse.cz>
388 * ipa.c (cgraph_externally_visible_p,
389 function_and_variable_visibility,
390 whole_program_function_and_variable_visibility): Skip non-finalized
393 2009-10-08 Nick Clifton <nickc@redhat.com>
395 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
398 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
401 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
403 2009-10-07 Joseph Myers <joseph@codesourcery.com>
406 * c-common.c (c_fully_fold_internal): Strip nops from the result
407 of recursive calls to c_fully_fold_internal.
408 (c_wrap_maybe_const): New.
409 (c_save_expr): Use c_wrap_maybe_const.
410 * c-common.h (c_wrap_maybe_const): Declare.
411 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
412 build_binary_op): Use c_wrap_maybe_const.
414 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
416 * real.c: Fix comment to reflect actual exponent size.
418 2009-10-08 Ben Elliston <bje@au.ibm.com>
420 * config/rs6000/a2.md: Add FSF comment header.
422 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
424 * config/i386/i386.md (any_extend): New code iterator.
425 (u, s): New code attributes.
427 (DWIH): Rewrite as code iterator for SI and DI modes.
428 (DWI): Rewrite as mode attribute.
429 (dwi): New mode attribute.
430 (di): Depend on SI mode and DI mode.
431 (doubleint_general_operand): Remove mode attribute.
433 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
436 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
437 (*sub<mode>3_doubleword): Ditto.
439 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
440 using SWIM248 mode iterator.
441 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
442 using SWI48 mode iterator.
443 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
444 patterns using DWIH mode iterator and any_extend code iterator.
445 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
446 using any_extend code iterator.
447 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
448 patterns using DWIH mode iterator and any_extend code iterator.
449 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
450 using any_extend code iterator.
451 (<s>mul<mode>3_highpart): Macroize expander from
452 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
453 and any_extend code iterator.
454 (*<s>muldi3_highpart_1): Macroize insn from
455 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
456 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
457 patterns using any_extend code iterator.
458 (*<s>mulsi3_highpart_zext): Macroize insn from
459 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
461 2009-10-07 Jakub Jelinek <jakub@redhat.com>
463 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
464 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
465 refering to a DIE with DW_AT_const_value.
467 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
470 * ira-lives.c (check_and_make_def_conflict): Process all operands.
472 2009-10-06 Jan Hubicka <jh@suse.cz>
474 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
477 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
479 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
480 *lea_2_rex64): Move before *add<mode>_1 pattern.
482 2009-10-07 Jan Hubicka <jh@suse.cz>
484 * collect2.c (main): Add -fno-whole-program.
485 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
487 2009-10-07 Jan Hubicka <jh@suse.cz>
489 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
490 has no address taken.
491 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
493 (cgraph_clone_node): Clear externally_visible flag for clones.
494 * cgraph.h (cgraph_only_called_directly_p,
495 cgraph_can_remove_if_no_direct_calls_p): New predicates.
496 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
497 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
498 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
499 ipcp_insert_stage): Likwise.
500 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
501 externally_visible flag.
502 (verify_cgraph_node): Verify that inline clones look right.
503 (process_function_and_variable_attributes): Do not set
504 externally_visible flags.
505 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
507 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
509 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
510 clear externally_visible when turning into inline clones
511 (cgraph_mark_inline_edge): Use new predicates.
512 (cgraph_estimate_growth): Likewise.
513 (cgraph_decide_inlining): Likewise.
514 * ipa.c (cgraph_postorder): Likewise.
515 (cgraph_remove_unreachable_nodes): Likewise; sanity check
516 that inline clones are not needed.
517 (cgraph_externally_visible_p): New predicate.
518 (function_and_variable_visibility): Add whole_program parameter;
519 always set externally_visible flag; handle COMDAT function
521 (local_function_and_variable_visibility): New function.
522 (gate_whole_program_function_and_variable_visibility): New function.
523 (whole_program_function_and_variable_visibility): New function.
524 (pass_ipa_whole_program_visibility): New function.
525 * passes.c (init_optimization_passes): Add whole program visibility
527 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
528 not care about needed/reachable flags.
529 * varpool.c: Include flags.h
530 (decide_is_variable_needed): When doing LTO assume whole-program mode.
531 (varpool_finalize_decl): When we are in LTO read-back, all variables
533 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
535 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
537 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
540 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
542 * config.gcc: Don't include the makefile fragments intended for
544 * config/s390/fixdfdi.h: File removed.
545 * config/s390/libgcc-glibc.ver: File removed.
546 * config/s390/s390.h: Remove the fixdfdi.h hack.
547 * config/s390/t-crtstuff: File moved to libgcc dir.
548 * config/s390/t-linux: Likewise.
549 * config/s390/t-tpf: libgcc specific parts removed.
550 * config/s390/t-linux64: Likewise.
552 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
554 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
555 (lto-compress.o): Likewise.
557 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
560 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
561 dllexport to class members here.
562 (i386_pe_determine_dllimport_p): Only check static class data for
564 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
565 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
566 functions for vague linkage.
567 (i386_pe_type_dllexport_p): Fix formatting.
568 (maybe_add_dllexport) New function.
569 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
572 2009-10-07 Ben Elliston <bje@au.ibm.com>
574 * config/rs6000/a2.md: Remove duplicated lines.
576 2009-10-07 Ben Elliston <bje@au.ibm.com>
578 * config.gcc (powerpc*-*-*): Handle a2.
579 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
580 * config/rs6000/a2.md: New file.
581 * config/rs6000/rs6000.opt (mno-update): New.
582 (mupdate): Return to using a mask, not a var.
583 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
584 (enum processor_type): Add PROCESSOR_PPCA2.
585 * config/rs6000/rs6000.c (ppca2_cost): New costs.
586 (rs6000_override_options): Add "a2" to processor_target_table.
587 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
588 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
590 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
592 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
593 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
594 reference to nonexistent gen_truncxfxf2 function.
596 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
598 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
599 (DWIH, g, di, doubleint_general_operand): New mode attributes.
600 (general_operand): Handle TI mode.
601 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
602 using SDWIM mode iterator.
603 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
604 pattern from *add{di,ti}3_1 patterns and corresponding splitters
605 using DWI mode iterator.
606 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
607 patterns using SWI mode iterator.
608 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
609 using SWI48 mode iterator.
610 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
611 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
612 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
613 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
614 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
615 using SDWIM mode iterator.
616 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
617 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
618 using DWI mode iterator.
619 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
620 patterns using SWI mode iterator.
621 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
622 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
623 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
624 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
625 patterns using plusminus code iterator.
626 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
627 sub<mode>3 patterns using plusminus code iterator.
628 * config/i386/i386.c (override_options): Update the call to
629 gen_subdi_carry_rex64 for renamed function.
630 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
631 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
632 calls to instruction expanders.
634 2009-10-06 Martin Jambor <mjambor@suse.cz>
637 * opts.c (decode_options): Run IPA-SRA at -O2.
639 2009-10-06 Richard Guenther <rguenther@suse.de>
641 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
643 2009-10-06 Tobias Burnus <burnus@net-b.de>
646 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
647 -flto and -fwhole-program flags can be combined.
649 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
652 * gcc.c (process_command): Check that -o argument was specified.
654 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
656 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
658 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
660 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
661 * doc/invoke.texi (Warning Options): Annotate allowed languages
662 for -Wunsuffixed-float-constants.
664 2009-10-05 Jakub Jelinek <jakub@redhat.com>
666 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
667 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
668 same name and isn't the main variant.
671 * dwarf2out.c (loc_by_reference): Removed.
672 (dw_loc_list_1): New function.
673 (dw_loc_list): Remove toplev argument, add want_address argument.
674 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
675 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
676 want_address == 2 to dw_loc_list. For successful dw_loc_list
677 set have_address to 1 only if want_address is not 0.
679 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
681 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
682 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
683 a code block followed by two pointers.
684 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
685 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
686 (MIPS_MOVE): Likewise.
687 (MIPS_LUI): Likewise.
689 (MIPS_BAL): Likewise.
690 (MIPS_NOP): Likewise.
691 (mips_asm_trampoline_template): Delete.
692 (mips_trampoline_code_size): New function.
693 (mips_trampoline_init): Add shorter sequences for all cases
694 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
695 Calculate the opcodes directly, rather than copying from a template.
696 Only flush the code part of the trampoline.
697 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
699 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
701 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
702 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
703 (INCOMING_RETURN_ADDR_RTX): Likewise.
704 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
706 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
707 with RETURN_ADDR_REGNUM.
708 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
709 * config/mips/mips.c (mips16_build_call_stub): Replace
710 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
711 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
712 (mips_print_operand_punctuation): Likewise.
713 (mips_frame_set): Likewise.
714 (mips16e_output_save_restore): Likewise.
715 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
716 (mips_save_reg_p): Likewise.
717 (mips_return_addr): Likewise.
718 (mips_set_return_address): Likewise.
719 (mips_direct_save_slot_move_p): Likewise.
720 (mips_output_function_prologue): Likewise.
721 (mips_restore_reg): Likewise.
722 (mips_expand_epilogue): Likewise.
723 (mips_epilogue_uses): Likewise.
724 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
725 (*mov<mode>_ra): Use it instead of a hard-coded 31.
726 (clear_hazard_<mode>): Likewise.
727 (call_internal): Likewise.
728 (call_internal_direct): Likewise.
729 (call_direct_split): Likewise.
730 (call_value_internal): Likewise.
731 (call_value_split): Likewise.
732 (call_value_internal_direct): Likewise.
733 (call_value_direct_split): Likewise.
734 (call_value_multiple_internal): Likewise.
735 (call_value_multiple_split): Likewise.
737 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
738 Jakub Jelinek <jakub@redhat.com>
740 PR rtl-optimization/41511
741 * combine.c (record_value_for_reg): Pass explicit values as argument
742 to get_last_value_validate.
743 (get_last_value_validate): Document INSN parameter.
744 For non-readonly MEMs, assume they might have been modified if INSN
745 was in another basic block.
746 (get_last_value): Minor reformatting.
748 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
751 * final.c (asm_str_count): Split out from asm_insn_count.
752 * rtl.h (asm_str_count): New prototype.
753 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
756 2009-10-05 Sriraman Tallam <tmsriram@google.com>
758 * doc/plugins.texi: Change plugin_pass to register_pass_info.
760 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
761 Rafael Espindola <espindola@google.com>
763 * gengtype.c (write_types): Moved call to write_func_for_structure
766 2009-10-05 Richard Guenther <rguenther@suse.de>
769 * lto-cgraph.c (output_cgraph): Output toplevel asms.
770 (input_cgraph_1): Input toplevel asms.
772 2009-10-05 Richard Guenther <rguenther@suse.de>
775 * lto-symtab.c (lto_compatible_attributes_p): Remove.
776 (external_aggregate_decl_p): Likewise.
777 (lto_symtab_compatible): Re-structure. Remove dead code.
778 For variables ignore toplevel qualifiers when comparing types.
779 Issue warnings, not errors for mismatched user-alignment.
781 2009-10-05 Richard Guenther <rguenther@suse.de>
785 * lto-symtab.c (struct lto_symtab_base_def): Remove.
786 (struct lto_symtab_identifier_def): Likewise.
787 (struct lto_symtab_decl_def): Likewise.
788 (struct lto_symtab_entry_def): New.
789 (lto_symtab_identifier_t): Rename to ...
790 (lto_symtab_entry_t): ... this.
791 (lto_symtab_decls): Remove.
792 (lto_symtab_base_hash): Rename to ...
793 (lto_symtab_entry_hash): ... this.
794 (lto_symtab_base_eq): Rename to ...
795 (lto_symtab_entry_eq): ... this.
796 (lto_symtab_base_marked_p): Rename to ...
797 (lto_symtab_entry_marked_p): ... this.
798 (lto_symtab_identifier_marked_p): Remove.
799 (lto_symtab_decl_marked_p): Likewise.
800 (lto_symtab_maybe_init_hash_tables): Rename to ...
801 (lto_symtab_maybe_init_hash_table): ... this.
802 (lto_symtab_set_resolution_and_file_data): Remove.
803 (lto_symtab_register_decl): New function.
804 (lto_symtab_get_identifier): Remove.
805 (lto_symtab_get): New function.
806 (lto_symtab_get_resolution): Adjust.
807 (lto_symtab_get_identifier_decl): Remove.
808 (lto_symtab_set_identifier_decl): Likewise.
809 (lto_symtab_merge_decl): Rename to ...
810 (lto_symtab_merge): ... this. Rewrite.
811 (lto_symtab_merge_var): Remove.
812 (lto_symtab_merge_fn): Likewise.
813 (lto_symtab_prevailing_decl): Adjust.
814 (lto_cgraph_replace_node): New function.
815 (lto_symtab_merge_decls_2): Likewise.
816 (lto_symtab_merge_decls_1): Likewise.
817 (lto_symtab_fixup_var_decls): Likewise.
818 (lto_symtab_resolve_symbols): Likewise.
819 (lto_symtab_merge_decls): Likewise.
820 (lto_symtab_prevailing_decl): Adjust.
821 (lto_symtab_get_symtab_def): Remove.
822 (lto_symtab_get_file_data): Likewise.
823 (lto_symtab_clear_resolution): Adjust.
824 (lto_symtab_clear_resolution): Likewise.
825 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
826 (input_cgraph_1): Likewise.
827 * lto-streamer-in.c (get_resolution): Do not provide fake
828 symbol resolutions here.
829 (deferred_global_decls): Remove.
830 (lto_register_deferred_decls_in_symtab): Likewise.
831 (lto_register_var_decl_in_symtab): Change signature, register
832 variable via lto_symtab_register_decl.
833 (lto_register_function_decl_in_symtab): Likewise.
834 (lto_read_tree): Adjust.
835 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
836 (lto_symtab_merge_var): Likewise.
837 (lto_symtab_merge_fn): Likewise.
838 (lto_symtab_register_decl): Declare.
839 (lto_symtab_merge_decls): Likewise.
841 2009-10-05 Richard Guenther <rguenther@suse.de>
843 PR tree-optimization/23821
844 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
845 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
846 simple IV increments.
848 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
850 * config/arm/arm.c (arm_override_options): Really initialize
851 flag_dwarf2_cfi_asm to 0.
853 2009-10-05 Doug Kwan <dougkwan@google.com>
855 PR rtl-optimization/41574
856 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
857 floating point and we are not doing unsafe math optimizations.
859 2009-10-03 Simon Baldwin <simonb@google.com>
860 Cary Coutant <ccoutant@google.com>
861 Rafael Espindola <espindola@google.com>
862 Richard Guenther <rguenther@suse.de>
863 Jan Hubicka <jh@suse.cz>
864 Doug Kwan <dougkwan@google.com>
865 H.J. Lu <hongjiu.lu@intel.com>
866 Bill Maddox <maddox@google.com>
867 Ryan Mansfield <rmansfield@qnx.com>
868 Diego Novillo <dnovillo@google.com>
869 Ollie Wild <aaw@google.com>
870 Kenneth Zadeck <zadeck@naturalbridge.com>
872 * lto-cgraph.c: New file.
873 * lto-compress.c: New file.
874 * lto-compress.h: New file.
875 * lto-opts.c: New file.
876 * lto-section-in.c: New file.
877 * lto-section-out.c: New file.
878 * lto-streamer-in.c: New file.
879 * lto-streamer-out.c: New file.
880 * lto-streamer.c: New file.
881 * lto-streamer.h: New file.
882 * lto-symtab.c: New file.
883 * lto-wpa-fixup.c: New file.
884 * lto-wrapper.c: New file.
886 2009-10-03 Simon Baldwin <baldwin@google.com>
887 Ben Elliston <bje@au.ibm.com>
888 Rafael Espindola <espindola@google.com>
889 Nathan Froyd <froydnj@codesourcery.com>
890 Jan Hubicka <jh@suse.cz>
891 Doug Kwan <dougkwan@google.com>
892 Diego Novillo <dnovillo@google.com>
893 Kenneth Zadeck <zadeck@naturalbridge.com>
895 * Makefile.in (enable_lto): New.
896 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
897 (LINKER_PLUGIN_API_H): Define.
898 (LTO_SYMTAB_H): Define.
899 (LTO_STREAMER_H): Define.
900 (TREE_VECTORIZER_H): Define.
901 (INCLUDES): Add LIBELFINC.
902 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
903 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
904 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
905 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
906 (native): Add lto-wrapper$(exeext)
907 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
908 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
909 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
910 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
911 (varasm.o): Add dependency on tree-iterator.h.
912 (cgraph.o): Add dependency on cif-code.def.
913 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
914 (ipa-pure-const.o): Likewise.
915 (GTFILES): Add lto-symtab.c.
916 (install-lto-wrapper): New.
917 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
918 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
919 * config.in: Regenerate.
921 2009-10-03 Rafael Espindola <espindola@google.com>
922 Diego Novillo <dnovillo@google.com>
924 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
926 Call execute_ipa_summary_passes for all_regular_ipa_passes and
928 (cgraph_optimize): Make extern.
930 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
931 Kenneth Zadeck <zadeck@naturalbridge.com>
933 * toplev.c (in_lto_p): Declare.
934 * collect2.c (scan_prog_file): Read all the output when reading
936 (enum lto_mode_d): Declare.
938 2009-10-03 Richard Guenther <rguenther@suse.de>
939 Diego Novillo <dnovillo@google.com>
941 * gimple.c: Include target.h and alias.h.
942 (gimple_types): Declare.
943 (type_hash_cache): Declare.
944 (gimple_alloc_stat): Make extern.
945 (gimple_build_eh_must_not_throw): Call
946 gimple_eh_must_not_throw_set_fndecl.
947 (struct type_pair_d): Declare.
948 (type_pair_t): Declare.
949 (type_pair_hash): New.
951 (lookup_type_pair): New.
952 (gimple_force_type_merge): New.
953 (compare_type_names_p): New.
954 (compare_field_offset): New.
955 (gimple_types_compatible_p): New.
956 (struct sccs): Declare.
957 (next_dfs_num): Declare.
958 (iterative_hash_gimple_type): New.
960 (iterative_hash_type_name): New.
961 (iterative_hash_gimple_type): New.
962 (gimple_type_hash): New.
963 (gimple_type_eq): New.
964 (gimple_register_type): New.
965 (print_gimple_types_stats): New.
966 (gimple_signed_or_unsigned_type): New.
967 (gimple_unsigned_type): New.
968 (gimple_signed_type): New.
969 (gimple_get_alias_set): New.
970 (gimple_decl_printable_name): Do not use DMGL_TYPES.
971 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
972 (gimple_force_type_merge): Declare.
973 (gimple_types_compatible_p): Declare.
974 (gimple_register_type): Declare.
975 (print_gimple_types_stats): Declare.
976 (gimple_unsigned_type): Declare.
977 (gimple_signed_type): Declare.
978 (gimple_get_alias_set): Declare.
979 (gimple_eh_must_not_throw_set_fndecl): New.
981 2009-10-03 Jan Hubicka <jh@suse.cz>
982 Kenneth Zadeck <zadeck@naturalbridge.com>
984 * ipa-pure-const.c: Include lto-streamer.h.
985 (register_hooks): Factor out of ...
986 (generate_summary): ... here.
987 (pure_const_write_summary): New.
988 (pure_const_read_summary): New.
989 (pass_ipa_pure_const): Add pure_const_write_summary and
990 pure_const_read_summary.
991 * ipa-reference.c: Include lto-streamer.h.
992 (add_new_function): New.
993 (remove_node_data): New.
994 (duplicate_node_data): New.
995 (ipa_init): Guard against multiple calls.
996 Move hook setup from analyze_function.
997 (write_node_summary_p): New.
998 (ipa_reference_write_summary): New.
999 (ipa_reference_read_summary): New.
1000 (pass_ipa_reference): Add ipa_reference_write_summary and
1001 ipa_reference_read_summary.
1002 * cgraph.h (cgraph_local_info): Add field lto_file_data.
1003 (struct cgraph_edge): Add fields lto_stmt_uid and
1004 call_stmt_cannot_inline_p.
1005 (cgraph_optimize): Declare.
1006 (cgraph_decide_is_function_needed): Declare.
1007 (reset_inline_failed): Declare.
1008 (enum LTO_cgraph_tags): Declare.
1009 (LTO_cgraph_tag_names): Declare.
1010 (LCC_NOT_FOUND): Define.
1012 2009-10-03 Doug Kwan <dougkwan@google.com>
1013 Rafael Espindola <espindola@google.com>
1014 Jan Hubicka <jh@suse.cz>
1015 Diego Novillo <dnovillo@google.com>
1016 Kenneth Zadeck <zadeck@naturalbridge.com>
1018 * passes.c (all_regular_ipa_passes): New.
1019 (all_ipa_passes): Rename to all_small_ipa_passes.
1020 (init_optimization_passes): Init all_regular_ipa_passes.
1021 * tree-pass.h (all_regular_ipa_passes): New.
1022 (all_ipa_passes): Rename to all_small_ipa_passes.
1023 * passes.c (all_lto_gen_passes): New.
1024 (init_optimization_passes): Initialize all_lto_gen_passes.
1025 (execute_ipa_summary_passes): Make non-static.
1026 (ipa_write_summaries_1): New.
1027 (ipa_write_summaries_2): New.
1028 (ipa_write_summaries): New.
1029 (ipa_write_summaries_of_cgraph_node_set): New.
1030 (ipa_read_summaries_1): New.
1031 (ipa_read_summaries): New.
1032 (execute_ipa_pass_list): Call cgraph_process_new_functions.
1033 (execute_regular_ipa_pass_list): Remove.
1034 (init_optimization_passes): Schedule
1035 pass_rebuild_cgraph_edges and pass_early_inline outside
1036 of pass_all_early_optimizations. Document reason.
1037 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
1038 pass_ipa_lto_finish_out): New pass.
1039 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
1040 (execute_all_ipa_transforms): New.
1041 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
1042 (dump_properties, debug_properties): New.
1043 * tree-optimize.c (gate_all_early_local_passes): Return
1044 false if we are in lto1.
1045 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
1046 * tree-pass.h (execute_all_ipa_transforms): Declare.
1047 (pass_ipa_function_and_variable_visibility): Declare.
1048 (pass_ipa_early_inline): Declare.
1049 (pass_ipa_lto_gimple_out): Declare.
1050 (pass_ipa_lto_wpa_fixup): Declare.
1051 (pass_ipa_lto_finish_out): Declare.
1052 (all_small_ipa_passes, all_regular_ipa_passes,
1053 all_lto_gen_passes): Declare.
1054 (execute_ipa_summary_passes): Declare.
1055 (execute_all_ipa_transforms): Declare.
1056 (ipa_write_summaries): Declare
1057 (ipa_write_summaries_of_cgraph_node_set): Declare.
1058 (ipa_read_summaries): Declare.
1060 2009-10-03 Doug Kwan <dougkwan@google.com>
1061 Ollie Wild <aaw@google.com>
1063 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
1065 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
1066 (lto_mode): New variable.
1067 (maybe_run_lto_and_relink): Handle the -fwpa option.
1068 (main): Handle the -fwpa option.
1069 (maybe_unlink_list): New function.
1070 * gcc.c (link_lto_options): Replace -flto with -fwpa.
1071 * common.opt (flto): New flag.
1072 * toplev.c (flag_generate_lto): Declare.
1074 2009-10-03 Simon Baldwin <simonb@google.com>
1076 * common.opt (flto-compression-level): New flag.
1078 * opts.c: Include lto-opts.h.
1079 (handle_option): Call lto_register_user_option for each
1080 valid option handled.
1081 (decode_options): Clear registered options before the options
1084 2009-10-03 Cary Coutant <ccoutant@google.com>
1086 * collect2.c (is_elf): New function.
1087 (scan_prog_file): Require LTO object to be in ELF format.
1089 2009-10-03 Rafael Espindola <espindola@google.com>
1091 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
1092 libgcc to the linker.
1094 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
1096 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
1097 (collect_execute): Add flags argument. Pass flags to pex_run. Update
1099 * collect2.h (collect_execute): Add flags argument.
1100 * tlink.c (tlink_execute): Update call to collect_execute.
1101 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
1102 (use_linker_plugin): New.
1103 (use_linker_plugin_spec_function): New.
1104 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
1105 (linker_plugin_file_spec): New.
1106 (lto_wrapper_spec): New.
1107 (lto_gcc_spec): New.
1108 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
1109 (static_spec_functions): Add use-linker-plugin.
1110 (process_command): Handle -use-linker-plugin.
1111 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
1112 linker_plugin_file_spec and lto_gcc_spec.
1113 (use_linker_plugin_spec_function): New.
1115 2009-10-03 Richard Guenther <rguenther@suse.de>
1119 * tree.h (is_lang_specific): Include LANG_TYPE.
1120 * tree.c (find_decls_types_r): Manually add interesting parts
1121 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
1123 * gimple.c (type_pair_hash): Make symmetric.
1124 (type_pair_eq): Likewise.
1125 (lookup_type_pair): Increase initial hashtable size.
1126 (gimple_force_type_merge): Rely on type-pair symmetry.
1127 (visit): Remove excessive checking code.
1128 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
1129 (gimple_register_type): Remove getenv calls, shrink initial
1133 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
1134 inline functions if not generating lto output.
1137 * toplev.c (finalize): In WPA mode remove the asm file.
1139 2009-10-03 Doug Kwan <dougkwan@google.com>
1141 * ipa-inline.c (cgraph_mark_inline): Check
1142 edge->call_stmt_cannot_inline_p instead of calling
1143 gimple_call_cannot_inline_p.
1144 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
1145 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
1146 (inline_generate_summary): Do nothing in LTRANS.
1147 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
1148 exists before calling gimple_call_cannot_inline_p.
1149 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
1150 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
1151 Update new_edge->lto_stmt_uid.
1152 * cgraphbuild.c (reset_inline_failed): New.
1154 * common.opt (fwpa): New flag.
1155 (fltrans): New option.
1156 * gcc.c (gcc_lto_option_t): New type.
1157 (current_lto_option): New variable.
1158 (lto_single_spec_function): Remove and is replaced by ..
1159 (lto_option_spec_function): New function.
1160 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
1161 passing the -flto flag.
1162 (cc1_options): Separate non-LTO related parts into ..
1163 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
1164 (lto1_options): New spec for lto FE.
1165 (link_lto_options): New spec for handling LTO flags in linker.
1166 (invoke_lto_single): Re-format to fit in 80 column. Replace
1167 lto-single with lto-option.
1168 (static_specs): Add cc1_non_lto_options, lto1_options and
1170 (static_spec_function): Replace lto-single with lto-option.
1171 (process_command): Handle -flto, -fwpa and -fltran by setting
1172 current_lto_option and not passing it to subprocess unconditionally.
1174 2009-10-03 Bill Maddox <maddox@google.com>
1176 Add `gcc' driver support for link-time code generation (LTO).
1178 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
1179 (lto_flag, lto_objects, lto_o_file): New variables.
1180 (struct lto_object, struct lto_object_list): New structures.
1181 (collect_exit, handler): Remove LTO temporary output file on exit.
1182 (add_lto_object): New function.
1183 (maybe_run_lto_and_relink): New function. Perform link time code
1184 generation and relinking for object files containing LTO information.
1185 (main): Invoke maybe_run_lto_and_relink().
1186 (dump_argv): New function. For debugging, currently disabled.
1187 (scan_prog_file): Add LTO information pass.
1188 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
1190 * toplev.c (compile_file): Emit assembler directive to create
1191 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
1193 2009-10-03 Diego Novillo <dnovillo@google.com>
1195 * c.opt: Add LTO to warn_abi and warn_psabi.
1197 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
1198 inline function. Ignore language-specific nodes. Update all users.
1199 (find_decls_types_r): Do not traverse the subtrees of
1200 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
1201 * tree.h (is_lang_specific): New.
1202 * langhooks.h (struct lang_hooks_for_decls): Remove
1203 may_need_assembler_name_p. Update all users.
1205 * c-common.c (set_builtin_user_assembler_name): Move ...
1206 * builtins.c (set_builtin_user_assembler_name): ... here.
1207 (is_builtin_name): Add comment
1208 (is_builtin_fn): New.
1209 * except.c (output_ttype): Only call
1210 lookup_type_for_runtime if TYPE is not a runtime type.
1212 * passes.c (register_pass): Call position_pass on
1213 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
1214 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
1215 (TV_IPA_LTO_DECL_IO): Define.
1216 (TV_IPA_LTO_CGRAPH_IO): Define.
1218 (TV_WHOPR_WPA): Define.
1219 (TV_WHOPR_WPA_IO): Define.
1220 (TV_WHOPR_LTRANS): Define.
1221 (TV_WHOPR_WPA_FIXUP): Define.
1222 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
1223 * tree-cfg.c (tree_node_can_be_shared): Make extern.
1224 * tree-flow.h (tree_node_can_be_shared): Declare.
1225 * tree-inline.c (tree_can_inline_p): Check that E has a
1226 statement associated with it.
1227 * tree.c (free_lang_data_in_binf): Factor out of ...
1228 (free_lang_data_in_type): ... here.
1229 Call RECORD_OR_UNION_TYPE_P.
1230 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
1231 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
1232 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
1233 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
1234 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
1235 (gate_free_lang_data): Return true if flag_generate_lto is set.
1236 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
1237 * c-common.h (set_builtin_user_assembler_name): Move ...
1238 * tree.h (set_builtin_user_assembler_name): ... here.
1240 * common.opt (flto-report): New flag.
1241 * opts.c (complain_wrong_lang): Do not complain if running lto1.
1242 * collect2.c (scan_prog_file): Send the error output of
1243 'nm' to HOST_BIT_BUCKET.
1245 2009-10-03 Ollie Wild <aaw@google.com>
1247 * langhooks-def.h (lhd_begin_section): New function declaration.
1248 (lhd_write_section): New function declaration.
1249 (lhd_end_section): New function declaration.
1250 (LANG_HOOKS_BEGIN_SECTION): New macro.
1251 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
1252 (LANG_HOOKS_END_SECTION): New macro.
1253 (LANG_HOOKS_LTO): New macro.
1254 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
1255 * langhooks.c (output.h): Add include.
1256 (saved_section): New static variable.
1257 (lhd_begin_section): New function.
1258 (lhd_write_section_data): New function.
1259 (lhd_end_section): New function.
1260 * langhooks.h (struct lang_hooks_for_lto): New structure.
1261 (struct lang_hooks): Add member lto.
1262 * Makefile.in (langhooks.o): Add dependency on output.h.
1264 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
1266 2009-10-03 Richard Guenther <rguenther@suse.de>
1268 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1271 2009-10-03 Simon Baldwin <simonb@google.com>
1272 Richard Guenther <rguenther@suse.de>
1273 Janis Johnson <janis187@us.ibm.com>
1274 Doug Kwan <dougkwan@google.com>
1275 Diego Novillo <dnovillo@google.com>
1276 Ramana Radhakrishnan <ramana.r@gmail.com>
1277 Ollie Wild <aaw@google.com>
1279 * doc/install.texi: Add documentation for libelf and --enable-lto.
1280 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
1281 -flto-report, -flto-compression-level and -use-linker-plugin.
1282 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
1283 Add section for LTO Testing.
1285 2009-10-02 Cary Coutant <ccoutant@google.com>
1287 Add support for comdat type sections for DWARF v4.
1288 Merge from dwarf4 branch.
1290 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
1291 (dw_die_ref): Define vector type.
1292 (enum dw_val_class): Add dw_val_class_data8.
1293 (struct dw_val_struct): Add v.val_data8.
1294 (comdat_type_node_ref): New type.
1295 (struct die_struct): Move die_symbol into a union; add new field
1296 die_type_node. Change all uses.
1297 (comdat_type_node): New type.
1298 (skeleton_chain_node): New type.
1299 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
1300 (comdat_type_list): New variable.
1301 (dwarf_tag_name): Add DW_TAG_type_unit.
1302 (dwarf_attr_name): Add DW_AT_signature.
1303 (add_AT_data8): New function.
1304 (replace_child): New function.
1305 (move_all_children): New function.
1306 (print_signature): New function.
1307 (print_die): Print signature information; add dw_val_class_data8.
1308 (attr_checksum): Support dw_val_class_data8.
1309 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
1310 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
1311 (checksum_sleb128, checksum_uleb128): New functions.
1312 (checksum_die_context): New function.
1313 (loc_checksum_ordered): New function.
1314 (attr_checksum_ordered): New function.
1315 (struct checksum_attributes): New structure.
1316 (collect_checksum_attributes): New function.
1317 (die_checksum_ordered): New function.
1318 (generate_type_signature): New function.
1319 (same_dw_val_p): Add dw_val_class_data8.
1320 (is_symbol_die): Use new is_declaration_die function.
1321 (is_declaration_die): New function.
1322 (should_move_die_to_comdat): New function.
1323 (clone_die): New function.
1324 (clone_tree): New function.
1325 (clone_as_declaration): New function.
1326 (copy_declaration_context): New function.
1327 (generate_skeleton_ancestor_tree): New function.
1328 (generate_skeleton_bottom_up): New function.
1329 (generate_skeleton): New function.
1330 (remove_child_or_replace_with_skeleton): New function.
1331 (break_out_comdat_types): New function.
1332 (struct decl_table_entry): New type.
1333 (htab_decl_hash): New function.
1334 (htab_decl_eq): New function.
1335 (htab_decl_del): New function.
1336 (copy_ancestor_tree): New function.
1337 (copy_decls_walk): New function.
1338 (copy_decls_for_unworthy_types): New function.
1339 (build_abbrev_table): Don't assert on missing die_symbol when doing
1340 comdat type sections.
1341 (size_of_die): Use DW_FORM_sig8 for external references. Add
1343 (unmark_dies): Don't assert for unmarked dies when doing comdat
1345 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
1346 (output_signature): New function.
1347 (output_die): Likewise.
1348 (output_compilation_unit_header): Mark output as DWARF version 3
1349 even if generating DWARF 4.
1350 (output_comdat_type_unit): New function.
1351 (output_line_info): Mark output as DWARF version 3 even if generating
1353 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
1355 (dwarf2out_end_source_file): Likewise.
1356 (prune_unused_types_walk_attribs): Don't follow references into
1357 comdat type sections.
1358 (prune_unused_types_mark): When generating type units, do not mark
1359 children of non-defining declarations of types; do mark children of
1361 (prune_unused_types): Process comdat type sections.
1362 (htab_ct_hash): New function.
1363 (htab_ct_eq): New function.
1364 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
1365 Add a pointer to the line table from type unit entries so
1366 DW_AT_decl_file has meaning.
1367 * varasm.c (default_elf_asm_named_section): Use identifier name as
1368 comdat key instead of lang hook.
1370 2009-10-02 Neil Vachharajani <nvachhar@google.com>
1372 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
1374 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
1376 * config/i386/i386.md (SWIM248): New mode iterator.
1377 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
1378 divmodhi4 patterns using SWIM248 macro.
1379 (*divmod<mode>4): Macroize insn_and_split pattern from
1380 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
1381 and their corresponding splitters usign SWIM248 macro. Split SImode
1382 insn to generate cltd and DImode insn to generate cqto instead of
1383 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
1384 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
1385 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
1386 *divmodsi_noext patterns using SWIM248 macro.
1387 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
1388 udivmodhi4 patterns using SWIM248 macro.
1389 (*udivmod<mode>4): Macroize insn_and_split pattern from
1390 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
1391 corresponding splitters using SWIM248 macro.
1392 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
1393 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
1395 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1397 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
1398 of zero-sized element is zero-sized regardless of its extent.
1400 2009-10-02 Jakub Jelinek <jakub@redhat.com>
1403 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
1404 * configure: Regenerated.
1405 * config.in: Regenerated.
1406 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
1407 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
1408 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
1409 not emitting .eh_frame, emit .cfi_sections .debug_frame
1414 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
1415 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
1417 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
1418 vars use DECL_RTL with resetting it back to NULL afterwards.
1419 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
1420 rtx_equal_p instead of asserting it is a SYMBOL_REF.
1421 (value_format): For dw_val_class_addr only use DW_FORM_addr if
1422 the attribute type allows it, otherwise use DW_FORM_dataN.
1423 (mem_loc_descriptor): Handle CONST_STRING.
1424 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
1425 Handle MEM with CONST_STRING address using add_AT_string.
1426 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
1427 CONST_STRING for const arrays initialized with a string literal.
1428 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
1429 (dwarf2out_finish): Call resolve_addr.
1431 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
1432 Maxim Kuvyrkov <maxim@codesourcery.com>
1434 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
1436 2009-10-02 Nick Clifton <nickc@redhat.com>
1438 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
1439 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
1441 2009-10-01 Jan Hubicka <jh@suse.cz>
1443 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
1444 (cgraph_create_virtual_clone): Just pass redirect_callers
1446 * cgraph.h (cgraph_clone_node): Update prototype.
1447 * ipa-pure-const.c (self_recursive_p): New function.
1448 (propagate): Use it.
1449 * ipa-inline.c (cgraph_clone_inlined_nodes,
1450 cgraph_decide_recursive_inlining): Update.
1452 2009-10-01 David Daney <ddaney@caviumnetworks.com>
1454 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
1455 instructions for TARGET_OCTEON.
1457 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1459 * config/arm/arm.c (arm_override_options): Turn off
1460 flag_dwarf2_cfi_asm for AAPCS variants.
1462 2009-10-01 Martin Jambor <mjambor@suse.cz>
1465 * tree-sra.c (convert_callers): Do not call
1466 compute_inline_parameters on one caller more than once.
1468 2009-10-01 Nick Clifton <nickc@redhat.com>
1470 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
1471 an empty string if not already defined.
1473 2009-10-01 Martin Jambor <mjambor@suse.cz>
1476 * tree-sra.c (is_va_list_type): New function.
1477 (find_var_candidates): Call is_va_list_type.
1478 (find_param_candidates): Check that the type or the type pointed
1479 to are not va_list types.
1481 2009-10-01 Martin Jambor <mjambor@suse.cz>
1484 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
1485 DECL_ARTIFICIAL (param_decl) is true.
1487 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
1489 * tree.h (tree_decl_common::lang_flag_8): New.
1490 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
1492 * c-common.h (RID_CONSTEXPR): New.
1494 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
1496 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
1497 Use ref-all pointers.
1498 (alpha_gimplify_va_arg): Ditto.
1500 2009-09-30 Jakub Jelinek <jakub@redhat.com>
1503 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
1504 before insn counting loop now that BB_END (bb) is counted. Ensure
1505 the return value isn't zero.
1507 2009-09-30 Nick Clifton <nickc@redhat.com>
1509 * config.gcc (sh-symbianelf): Replace definition of extra_objs
1510 with separate definitions of c_target_objs and cxx_target_objs.
1511 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
1513 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
1514 sh_symbian_import_export_class.
1515 * config/sh/sh-protos.h: Fix names of exported symbian functions.
1516 * config/sh/symbian.c: Delete, moving code into...
1517 * config/sh/symbian-base.c: ... here
1518 * config/sh/symbian-c.c: ... and here
1519 * config/sh/symbian-cxx.c: ... and here.
1521 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
1524 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
1525 of plus RTX into register.
1527 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1529 * doc/install.texi: Linguistic and markup fixes.
1530 (Configuration) <--disable-cpp>: Remove description.
1531 <--enable-maintainer-mode>: Autotools files are affected, too.
1532 <--with-sysroot>: Improve description.
1533 (Building): Bump required GNU make version.
1535 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
1537 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
1538 (x86_64-*-*): Ditto.
1540 * config/i386/fma4intrin.h: New file, provide common x86 compiler
1541 intrinisics for FMA4.
1542 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
1543 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
1544 Add FMA4 check and fma4intrin.h.
1545 * config/i386/i386-c.c(ix86_target_macros_internal): Check
1547 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
1548 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
1549 constant for FMA4 support.
1550 (UNSPEC_FMA4_FMADDSUB): Ditto.
1551 (UNSPEC_FMA4_FMSUBADD): Ditto.
1552 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
1553 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
1554 (ix86_expand_fma4_multiple_memory): Ditto.
1555 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
1556 (OPTION_MASK_ISA_FMA4_UNSET): New.
1557 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
1558 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
1559 (ix86_handle_option): Handle -mfma4.
1560 (isa_opts): Handle -mfma4.
1561 (enum pta_flags): Add PTA_FMA4.
1562 (override_options): Add FMA4 support.
1563 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
1564 (IX86_BUILTIN_VFMADDSD): Ditto.
1565 (IX86_BUILTIN_VFMADDPS): Ditto.
1566 (IX86_BUILTIN_VFMADDPD): Ditto.
1567 (IX86_BUILTIN_VFMSUBSS): Ditto.
1568 (IX86_BUILTIN_VFMSUBSD): Ditto.
1569 (IX86_BUILTIN_VFMSUBPS): Ditto.
1570 (IX86_BUILTIN_VFMSUBPD): Ditto.
1571 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
1572 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
1573 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
1574 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
1575 (IX86_BUILTIN_VFNMADDSS): Ditto.
1576 (IX86_BUILTIN_VFNMADDSD): Ditto.
1577 (IX86_BUILTIN_VFNMADDPS): Ditto.
1578 (IX86_BUILTIN_VFNMADDPD): Ditto.
1579 (IX86_BUILTIN_VFNMSUBSS): Ditto.
1580 (IX86_BUILTIN_VFNMSUBSD): Ditto.
1581 (IX86_BUILTIN_VFNMSUBPS): Ditto.
1582 (IX86_BUILTIN_VFNMSUBPD): Ditto.
1583 (IX86_BUILTIN_VFMADDPS256): Ditto.
1584 (IX86_BUILTIN_VFMADDPD256): Ditto.
1585 (IX86_BUILTIN_VFMSUBPS256): Ditto.
1586 (IX86_BUILTIN_VFMSUBPD256): Ditto.
1587 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
1588 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
1589 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
1590 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
1591 (IX86_BUILTIN_VFNMADDPS256): Ditto.
1592 (IX86_BUILTIN_VFNMADDPD256): Ditto.
1593 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
1594 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
1595 (enum multi_arg_type): New enum for describing the various FMA4
1596 intrinsic argument types.
1597 (bdesc_multi_arg): New table for FMA4 intrinsics.
1598 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
1599 (ix86_expand_multi_arg_builtin): New function for creating FMA4
1601 (ix86_expand_builtin): Add FMA4 intrinsic support.
1602 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
1603 operand instructions.
1604 (ix86_expand_fma4_multiple_memory): New function to split the
1605 second memory reference from FMA4 instructions.
1606 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
1607 (ssemodesuffixf2s): Ditto.
1608 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
1610 (fma4_fmsub<mode>4): Ditto.
1611 (fma4_fnmadd<mode>4): Ditto.
1612 (fma4_fnmsub<mode>4): Ditto.
1613 (fma4_vmfmadd<mode>4): Ditto.
1614 (fma4_vmfmsub<mode>4): Ditto.
1615 (fma4_vmfnmadd<mode>4): Ditto.
1616 (fma4_vmfnmsub<mode>4): Ditto.
1617 (fma4_fmadd<mode>4256): Ditto.
1618 (fma4_fmsub<mode>4256): Ditto.
1619 (fma4_fnmadd<mode>4256): Ditto.
1620 (fma4_fnmsub<mode>4256): Ditto.
1621 (fma4_fmaddsubv8sf4): Ditto.
1622 (fma4_fmaddsubv4sf4): Ditto.
1623 (fma4_fmaddsubv4df4): Ditto.
1624 (fma4_fmaddsubv2df4): Ditto.
1625 (fma4_fmsubaddv8sf4): Ditto.
1626 (fma4_fmsubaddv4sf4): Ditto.
1627 (fma4_fmsubaddv4df4): Ditto.
1628 (fma4_fmsubaddv2df4): Ditto.
1629 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
1630 instructions for intrinsics.
1631 (fma4i_fmsub<mode>4): Ditto.
1632 (fma4i_fnmadd<mode>4): Ditto.
1633 (fma4i_fnmsub<mode>4): Ditto.
1634 (fma4i_vmfmadd<mode>4): Ditto.
1635 (fma4i_vmfmsub<mode>4): Ditto.
1636 (fma4i_vmfnmadd<mode>4): Ditto.
1637 (fma4i_vmfnmsub<mode>4): Ditto.
1638 (fma4i_fmadd<mode>4256): Ditto.
1639 (fma4i_fmsub<mode>4256): Ditto.
1640 (fma4i_fnmadd<mode>4256): Ditto.
1641 (fma4i_fnmsub<mode>4256): Ditto.
1642 (fma4i_fmaddsubv8sf4): Ditto.
1643 (fma4i_fmaddsubv4sf4): Ditto.
1644 (fma4i_fmaddsubv4df4): Ditto.
1645 (fma4i_fmaddsubv2df4): Ditto.
1646 (fma4i_fmsubaddv8sf4): Ditto.
1647 (fma4i_fmsubaddv4sf4): Ditto.
1648 (fma4i_fmsubaddv4df4): Ditto.
1649 (fma4i_fmsubaddv2df4): Ditto.
1651 * doc/invoke.texi (-mfma4): Add documentation.
1652 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
1654 2009-09-29 Richard Henderson <rth@redhat.com>
1656 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
1657 an edge to the new destination block.
1659 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1662 * pa.c (hppa_profile_hook): Use
1663 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
1665 2009-09-29 Steve Ellcey <sje@cup.hp.com>
1666 Alexander Monakov <amonakov@ispras.ru>
1669 * config/ia64/predicates.md (not_postinc_destination_operand): New.
1670 (not_postinc_memory_operand): New.
1671 (not_postinc_move_operand): New.
1672 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
1673 (*cmovsi_internal): Ditto.
1675 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
1677 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
1678 restrict issue_rate in first pass when scheduling for register
1681 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
1682 Rafael Avila de Espindola <espindola@google.com>
1684 * gengtype.c (plugin_output): New.
1685 (get_output_file_with_visibility): Return plugin_output for plugins.
1686 (main): Parse and use the -P option.
1687 * gty.texi: Update the command line format.
1689 2009-09-29 Jakub Jelinek <jakub@redhat.com>
1692 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
1694 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
1695 out if !const_ok_for_output.
1698 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
1699 case VAR_LOCATION>: Remove gcc_unreachable ().
1701 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
1703 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
1704 (x86_64-*-*): Ditto.
1705 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
1706 back to smmintrin.h.
1707 * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
1708 * config/i386/x86intrin.h: Remove SSE5.
1709 * config/i386/mmintrin-common.h: Delete file.
1710 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
1712 2009-09-29 Richard Guenther <rguenther@suse.de>
1714 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
1715 resulting from stack temporaries on STRICT_ALIGNMENT targets.
1717 2009-09-29 Nick Clifton <nickc@redhat.com>
1719 * function.c (current_function_name): If there is no current
1720 function just return "<none>".
1722 2009-09-28 Sriraman Tallam <tmsriram@google.com>
1724 * tree-pass.h (register_pass_info): New structure.
1725 (pass_positioning_ops): Move enum from gcc-plugin.h.
1726 (register_pass): New function.
1727 * gcc-plugin.h (plugin_pass): Delete structure.
1728 (pass_positioning_ops): Delete enum.
1729 * plugin.c (regsiter_pass): Delete function.
1730 (position_pass): Delete function.
1731 (added_pass_nodes): Delete variable.
1732 (prev_added_pass_nodes): Delete variable.
1733 (pass_list_node): Delete structure.
1734 * passes.c (make_pass_instance): New function.
1735 (next_pass_1): Change to call make_pass_instance.
1736 (pass_list_node): Move structure from gcc-plugin.h.
1737 (added_pass_nodes): Move variable from plugin.c.
1738 (prev_added_pass_nodes): Move variable from plugin.c.
1739 (position_pass): New function.
1740 (register_pass): New function.
1742 2009-09-28 Easwaran Raman <eraman@google.com>
1744 * ifcvt.c (noce_try_abs): Recognize pattern and call
1745 expand_one_cmpl_abs_nojump.
1746 * optabs.c (expand_one_cmpl_abs_nojump): New function.
1747 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
1749 2009-09-28 Ian Lance Taylor <iant@google.com>
1752 * c-opts.c (c_common_handle_option): Don't set
1753 warn_jump_misses_init for -Wall.
1754 * doc/invoke.texi (Warning Options): Update documentation.
1756 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1758 * Makefile.in ($(out_object_file)): Depend on
1759 gt-$(basename $(notdir $(out_file))).h.
1761 2009-09-28 Richard Henderson <rth@redhat.com>
1763 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
1764 * except.c (gen_eh_region): Set it.
1765 (duplicate_eh_regions_1): Copy it.
1766 * tree-eh.c (lower_resx): Use it to determine which function
1769 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
1770 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
1771 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
1772 * tree.c (build_common_builtin_nodes): Remove parameter. Build
1773 BUILT_IN_CXA_END_CLEANUP if necessary.
1775 * c-common.c (c_define_builtins): Update call to
1776 build_common_builtin_nodes.
1778 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
1780 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
1782 2009-09-28 Michael Matz <matz@suse.de>
1784 * builtins.c (interclass_mathfn_icode): New helper.
1785 (expand_builtin_interclass_mathfn): Use it here, and split folding
1787 (fold_builtin_interclass_mathfn): ... this new folder.
1788 (build_call_nofold_loc): New static helper.
1789 (build_call_nofold): New wrapper macro for above.
1790 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
1791 (expand_builtin_pow): Ditto.
1792 (expand_builtin_memset_args): Ditto.
1793 (expand_builtin_printf): Ditto.
1794 (expand_builtin_fprintf): Ditto.
1795 (expand_builtin_sprintf): Ditto.
1796 (expand_builtin_memory_chk): Ditto.
1797 (expand_builtin_mempcpy_args): Ditto and don't call folders.
1798 (expand_builtin_stpcpy): Ditto.
1799 (expand_builtin_strcmp): Ditto.
1800 (expand_builtin_strncmp): Ditto.
1801 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
1802 (expand_builtin_strcpy_args): Don't call folders.
1803 (expand_builtin_memcmp): Ditto.
1804 (expand_builtin_strncpy): Ditto, and use target.
1805 (expand_builtin_memcpy): Ditto.
1806 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
1807 expand_builtin_strpbrk, expand_builtin_memmove,
1808 expand_builtin_memmove_args, expand_builtin_bcopy,
1809 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
1810 expand_builtin_strspn, expand_builtin_strcspn,
1811 expand_builtin_fputs): Remove these.
1812 (expand_builtin): Don't call the above, change calls to other
1813 expanders that changed prototype.
1814 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
1815 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
1816 fold_builtin_interclass_mathfn.
1817 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
1818 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
1820 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
1821 * passes.c (init_optimization_passes): Move pass_fold_builtins
1822 after last phiopt pass.
1823 * tree-inline.c (fold_marked_statements): When folding builtins
1824 iterate over all instruction potentially generated.
1825 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
1827 (fold_gimple_call): Use it to always fold calls (into potentially
1828 multiple instructions).
1829 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
1830 calls into zero at this time.
1831 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
1832 statements generated by builtin folding.
1834 2009-09-28 Nick Clifton <nickc@redhat.com>
1836 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
1838 2009-09-28 Duncan Sands <baldrick@free.fr>
1840 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
1841 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
1842 (register_callback): Dispatch it.
1843 (invoke_plugin_callbacks): Incorporate in sanity check.
1844 * ggc.h (ggc_register_cache_tab): Add declaration.
1845 * ggc-common.c (ggc_register_root_tab): Simplify.
1846 (const_ggc_cache_tab_t): New typedef.
1847 (extra_cache_vec): New vector of dynamically added cache tables.
1848 (ggc_register_cache_tab): New function.
1849 (ggc_scan_cache_tab): New function.
1850 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
1851 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
1853 2009-09-27 Richard Henderson <rth@redhat.com>
1855 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
1856 which we remove __builtin_stack_restore.
1858 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
1860 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
1861 to test for GRD_INVARIANT.
1862 (simple_rhs_p): Anything that's function_invariant_p is fine.
1864 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
1866 * gengtype.c (main): Use plunge_files instead of plugin_output.
1868 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
1869 Rafael Avila de Espindola <espindola@google.com>
1871 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
1872 Don't print pch related info if it is false.
1873 (main): Don't print pch info in plugin mode.
1875 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
1877 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
1878 with dw_val_class_const_double.
1879 (struct dw_val_struct): Replace val_long_long with val_double and
1880 adjust for above change.
1881 (output_loc_operands): Likewise.
1882 (add_AT_long_long): Rename into...
1883 (add_AT_double): ...this.
1884 (print_die): Replace dw_val_class_long_long with
1885 dw_val_class_const_double and adjust.
1886 (attr_checksum): Likewise.
1887 (same_dw_val_p): Likewise.
1888 (size_of_die): Likewise.
1889 (value_format): Likewise.
1890 (output_die): Likewise.
1891 (loc_descriptor) <CONST_DOUBLE>: Likewise.
1892 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
1893 instead of add_AT_long_long.
1894 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
1895 value with the precision of its type.
1897 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
1900 * c-typeck.c (build_conditional_expr): Use the readonly and
1901 volatile flags of the operand types, not of the operands itself.
1903 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
1905 * collect2.c (main): Look for -brtl before adding libraries.
1907 2009-09-27 Jonathan Gray <jsg@openbsd.org>
1909 * config.gcc: Update OpenBSD targets.
1910 * config/openbsd-stdint.h: New file.
1911 * config/openbsd-libpthread.h: New file.
1912 * config/openbsd.h: Update and break out LIB_SPEC definition.
1913 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
1914 * config/i386/openbsdelf.h: Correct types.
1915 * config/m68k/openbsd.h: Likewise.
1916 * config/mips/openbsd.h: Likewise.
1917 * config/vax/openbsd.h: Likewise.
1919 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
1921 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
1922 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
1923 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
1924 of the length and zero.
1926 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1928 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
1929 (FLAGS_H): Add options.h $(REAL_H).
1930 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
1931 (TREE_VECTORIZER_H): New.
1932 (EBITMAP_H): Renamed from EBIMAP_H.
1933 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
1934 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
1935 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
1936 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
1937 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
1938 (graphite-clast-to-gimple.o, graphite-dependences.o)
1939 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
1940 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
1941 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
1942 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
1943 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
1944 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
1945 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
1946 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
1947 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
1948 updated and fixed as per above changes and per
1949 check_makefile_deps.sh output.
1952 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
1953 * configure: Regenerate.
1955 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1957 * doc/install.texi: Update minimum MPC version to 0.7.
1959 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
1961 * doc/install.texi (Binaries): Remove reference to the binary
1962 distribution CD-ROM from the FSF.
1964 2009-09-26 Michael Matz <matz@suse.de>
1968 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
1969 that are mentioned in the body.
1971 2009-09-26 Michael Matz <matz@suse.de>
1973 PR tree-optimization/41454
1974 * tree-ssa-dom (stmts_to_rescan): Remove variable.
1975 (tree_ssa_dominator_optimize): Don't allocate and free it.
1976 (dom_opt_leave_block): Don't iterate over it.
1977 (eliminate_redundant_computations): Don't return a value.
1978 (cprop_operand, cprop_into_stmt): Ditto.
1979 (optimize_stmt): Don't defer updating stmts.
1981 2009-09-25 Dodji Seketeli <dodji@redhat.com>
1983 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
1984 generic_parameter_die, template_parameter_pack_die,
1985 gen_formal_parameter_die, gen_subprogram_die): Adjust after
1986 renaming DW_TAG_formal_parameter_pack and
1987 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
1988 and DW_TAG_GNU_template_parameter_pack.
1990 2009-09-25 Anatoly Sokolov <aesok@post.ru>
1992 * config/v850/v850.h (FUNCTION_VALUE): Remove.
1993 * config/v850/v850.c (v850_function_value): New function.
1994 (TARGET_FUNCTION_VALUE): Define.
1996 2009-09-25 Jakub Jelinek <jakub@redhat.com>
1998 * tree-vect-stmts.c (vectorizable_call): Call
1999 mark_symbols_for_renaming after vect_finish_stmt_generation.
2001 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
2002 to loc_descriptor_from_tree.
2003 (add_location_or_const_value_attribute): Pass 0 instead of 2
2004 for decl_by_reference_p decls.
2006 2009-09-25 Richard Guenther <rguenther@suse.de>
2009 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
2012 2009-09-25 Ben Elliston <bje@au.ibm.com>
2014 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
2017 2009-09-25 Alan Modra <amodra@bigpond.net.au>
2019 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
2020 form of instruction.
2022 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2025 * fold-const.c (const_binop): Handle complex int division.
2026 * tree-complex.c (expand_complex_div_straight,
2027 expand_complex_div_wide): Update comments.
2029 2009-09-24 DJ Delorie <dj@redhat.com>
2032 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
2033 (reg_class): Likewise.
2034 (REG_CLASS_NAMES): Likewise.
2035 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
2036 (m32c_override_options): Disable -fivopts for M32C.
2038 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2040 * config/rs6000/predicates.md (indexed_or_indirect_operand):
2041 Delete VSX load/store with update support.
2042 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
2043 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
2047 (VStype_load_update): Ditto.
2048 (VStype_store_update): Ditto.
2049 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2050 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2052 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
2053 load/store with update builtins.
2055 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
2057 * libgcc2.c (L_trampoline): Prototype for getpagesize
2058 and mprotect in WINNT case.
2060 2009-09-24 Anatoly Sokolov <aesok@post.ru>
2062 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
2063 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
2064 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
2065 'outgoing' argument.
2066 (TARGET_FUNCTION_VALUE): Define.
2068 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2070 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
2072 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2075 * common.opt: Initialize dwarf_strict to -1.
2076 * toplev.c (process_options): Catch unset dwarf_strict
2077 and set to 0 for all targets not overriding.
2078 * config/darwin.c (darwin_override_options): Catch unset
2079 dwarf_strict and override to 1.
2081 2009-09-24 Jeff Law <law@redhat.com>
2083 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
2085 2009-09-24 Richard Guenther <rguenther@suse.de>
2087 PR tree-optimization/36143
2088 PR tree-optimization/38747
2089 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
2090 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
2092 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2095 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
2096 return false instead of gcc_unreachable (). For CONST return the
2097 value returned by recursive call instead of always returning true.
2098 (tree_add_const_value_attribute): Return the value returned by
2099 add_const_value_attribute instead of always returning true if rtl
2102 2009-09-23 Justin Seyster <jrseys@gmail.com>
2104 * Makefile.in (PLUGIN_HEADERS): Include real.h.
2106 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2108 * cgraphunit.c (cgraph_lower_function): Revert last change.
2109 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
2110 instead of DECL_NO_STATIC_CHAIN.
2111 * tree-cfg.c (verify_gimple_call): Likewise.
2112 * tree-nested.c (get_chain_decl, get_chain_field,
2113 convert_tramp_reference_op, convert_gimple_call): Likewise.
2114 (convert_all_function_calls): Likewise. Always set or clear
2115 DECL_STATIC_CHAIN initially, for !n->outer clear it.
2116 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
2117 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
2119 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
2120 DECL_NO_STATIC_CHAIN.
2121 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
2122 instead of DECL_NO_STATIC_CHAIN.
2123 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
2124 decl_function_context.
2125 * varasm.c (initializer_constant_valid_p): Likewise.
2126 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
2127 (DECL_STATIC_CHAIN): ... this.
2128 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
2129 instead of DECL_NO_STATIC_CHAIN.
2131 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
2132 Rafael Avila de Espindola <espindola@google.com>
2134 * gengtype.c (nb_plugin_files): Make it unsigned to match
2135 num_gt_files. Adjust other variables to avoid warnings.
2136 (main): Allocate an all zero lang_bitmap before each plugin file name
2137 to match regular file names.
2139 2009-09-23 Richard Henderson <rth@redhat.com>
2141 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2142 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
2143 static chain passed in memory.
2144 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
2145 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
2146 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
2147 STATIC_CHAIN_REGNUM defined.
2149 * config/picochip/picochip-protos.h: s/class/klass/.
2150 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
2151 (picochip_static_chain): New.
2152 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
2153 (STATIC_CHAIN_INCOMING): Remove.
2155 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
2156 (xtensa_static_chain): New.
2157 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
2158 (STATIC_CHAIN_INCOMING): Remove.
2160 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2162 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
2163 * config/pa/pa-protos.h (function_value): Remove.
2164 * config/pa/pa.c (pa_function_value): Rename from function_value.
2165 Make static, add 'outgoing' argument.
2166 (TARGET_FUNCTION_VALUE): Define.
2168 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2170 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
2171 instead of cfun->machine->is_leaf.
2172 * config/avr/avr.h (machine_function): Remove is_leaf field.
2174 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2177 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
2178 DW_OP_piece after DW_OP_stack_value, adjust size calculations
2179 for it, when DW_OP_stack_value and DW_OP_implicit_value has
2180 the same size, prefer DW_OP_stack_value.
2181 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
2182 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
2184 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2187 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
2189 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2192 * cfgexpand.c (convert_debug_memory_address): New.
2193 (expand_debug_expr): Convert base address and offset to the same
2194 mode. Use it to convert addresses to other modes. Accept
2197 2009-09-23 Richard Guenther <rguenther@suse.de>
2199 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
2200 produced for bigendian targets with promoted subregs.
2202 2009-09-23 Richard Guenther <rguenther@suse.de>
2204 * value-prof.c (gimple_ic): Purge old EH edges only after building
2207 2009-09-23 Nick Clifton <nickc@redhat.com>
2209 * config/arc/arc.c (arc_trampoline_init): Fix typo.
2211 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2214 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
2217 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
2218 on non-nested functions.
2220 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2221 Jan Hubicka <jh@suse.cz>
2223 * dwarf2out.c (loc_list_plus_const): Only define if
2224 DWARF2_DEBUGGING_INFO.
2225 (address_of_int_loc_descriptor): Likewise.
2228 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
2230 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
2233 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
2234 constant is more than zero.
2236 2009-09-23 Alan Modra <amodra@bigpond.net.au>
2239 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
2240 call final to emit non-scheduled prologue, instead insert at entry.
2242 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2243 Joseph S. Myers <joseph@codesourcery.com>
2245 * doc/install.texi (*-*-freebsd*): Add proper format codes.
2247 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2248 Rafael Avila de Espindola <espindola@google.com>
2250 * gengtype.c (is_file_equal): New function.
2251 (close_output_files): Use is_file_equal. Free of->buf.
2253 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2254 Rafael Avila de Espindola <espindola@google.com>
2256 * gengtype.c (write_types, write_local): Add the output_header
2257 argument. Update all callers.
2259 2009-09-22 Dodji Seketeli <dodji@redhat.com>
2261 * dwarf2out.c (template_parameter_pack_die,
2262 gen_formal_parameter_pack_die ): New functions.
2263 (make_ith_pack_parameter_name): Remove this function.
2264 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
2265 DW_TAG_formal_parameter_pack.
2266 (gen_generic_params_dies): Represent each template parameter pack
2267 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
2268 represented by usual DW_TAG_template_*_parameter DIEs that are
2269 children of the DW_TAG_template_parameter_pack element DIE.
2270 (generic_parameter_die): This doesn't deal with parameter pack
2271 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
2272 of parameter pack DIEs.
2273 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
2274 in certain cases, e.g. for pack elements.
2275 (gen_formal_types_die, gen_decl_die): Adjust usage of
2276 gen_formal_parameter_die.
2277 (gen_subprogram_die): Represent each function parameter pack by a
2278 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
2279 represented by usual DW_TAG_formal_parameter DIEs that are children
2280 of the DW_TAG_formal_parameter_pack DIE. Remove references to
2281 ____builtin_va_alist decls as no part of the compiler uses those
2283 * langhooks.h (struct lang_hooks_for_decls): Add
2284 function_parm_expanded_from_pack_p, get_generic_function_decl
2285 and function_parameter_pack_p hooks. Fix comment for
2286 get_innermost_generic_parms hook.
2287 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
2288 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
2289 macros and use them to initialize lang_hook.
2291 2009-09-22 Richard Henderson <rth@redhat.com>
2293 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
2294 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
2295 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
2296 on TRAMPOLINE_TEMPLATE.
2297 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
2298 TRAMPOLINE_ADJUST_ADDRESS.
2299 * targhooks.c (default_asm_trampoline_template): Remove.
2300 (default_trampoline_adjust_address): Remove.
2301 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
2302 * targhooks.h: Update decls.
2304 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
2306 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
2307 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
2308 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2310 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
2313 * reload1.c (reload): Reset debug insns with pseudos without
2316 2009-09-22 Janis Johnson <janis187@us.ibm.com>
2318 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
2319 unconditional true for decimal float modes.
2320 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
2321 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
2323 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2325 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
2326 Enable a new case for __FreeBSD__ >= 7.
2327 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
2328 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
2329 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
2330 and USE_LD_AS_NEEDED.
2332 * doc/install.texi (*-*-freebsd*): Update target information.
2334 2009-09-22 Richard Guenther <rguenther@suse.de>
2337 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
2338 arrays really properly.
2340 2009-09-22 Richard Henderson <rth@redhat.com>
2343 * target.h (struct gcc_target): Add asm_out.trampoline_template,
2344 calls.static_chain, calls.trampoline_init,
2345 calls.trampoline_adjust_address.
2346 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2347 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2348 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2349 * builtins.c (expand_builtin_setjmp_receiver): Use
2350 targetm.calls.static_chain; only clobber registers.
2351 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
2352 set up memory attributes properly for the trampoline block.
2353 (expand_builtin_adjust_trampoline): Use
2354 targetm.calls.trampoline_adjust_address.
2355 * calls.c (prepare_call_address): Add fndecl argument. Use
2356 targetm.calls.static_chain.
2357 * df-scan.c (df_need_static_chain_reg): Remove.
2358 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
2359 consolodate static chain handling.
2360 * doc/tm.texi: Document new hooks.
2361 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
2362 (init_emit_regs): Don't initialize them.
2363 * expr.h (prepare_call_address): Update decl.
2364 * final.c (profile_function): Use targetm.calls.static_chain.
2365 * function.c (expand_function_start): Likewise.
2366 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
2367 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
2368 only clobber registers.
2369 * targhooks.c (default_static_chain): New.
2370 (default_asm_trampoline_template, default_trampoline_init): New.
2371 (default_trampoline_adjust_address): New.
2372 * targhooks.h: Declare them.
2373 * varasm.c (assemble_trampoline_template): Use
2374 targetm.asm_out.trampoline_template. Make the memory block const
2377 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
2378 alpha_initialize_trampoline. Make static. Merge VMS parameter
2379 differences into the TARGET_ABI_OPEN_VMS code block.
2380 (TARGET_TRAMPOLINE_INIT): New.
2381 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
2382 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
2383 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
2384 (INITIALIZE_TRAMPOLINE): Remove.
2386 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
2387 (TRAMPOLINE_TEMPLATE): Merge with ...
2388 (INITIALIZE_TRAMPOLINE): ... this and move ...
2389 * config/arc/arc.c (arc_trampoline_init): ... here.
2390 (TARGET_TRAMPOLINE_INIT): New.
2392 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2393 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2394 (arm_asm_trampoline_template): New.
2395 (arm_trampoline_init, arm_trampoline_adjust_address): New.
2396 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
2397 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
2398 code to arm_asm_trampoline_template.
2399 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
2400 arm_trampoline_adjust_address.
2401 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
2402 adjust for target hook parameters.
2404 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
2407 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
2408 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
2409 (bfin_trampoline_init): Rename from initialize_trampoline;
2410 make static; update for target hook parameters.
2411 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2412 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
2413 bfin_asm_trampoline_template.
2414 (INITIALIZE_TRAMPOLINE): Remove.
2416 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2417 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
2418 cris_trampoline_init): New.
2419 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
2420 cris_asm_trampoline_template.
2421 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
2422 adjust for target hook parameters.
2424 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
2426 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2427 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
2428 fr30_trampoline_init): New.
2429 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
2430 fr30_asm_trampoline_template.
2431 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
2432 adjust for target hook parameters.
2434 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
2435 (frv_trampoline_init): Rename from frv_initialize_trampoline;
2436 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
2437 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
2438 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
2440 * config/h8300/h8300.c (h8300_trampoline_init): New.
2441 (TARGET_TRAMPOLINE_INIT): New.
2442 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
2443 to h8300_trampoline_init and adjust for hook parameters.
2445 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
2446 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
2447 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
2448 make static; adjust for hook parameters.
2449 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
2451 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2452 (TARGET_TRAMPOLINE_INIT): New.
2453 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
2454 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
2455 iq2000_asm_trampoline_template.
2456 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
2457 (TRAMPOLINE_CODE_SIZE): New.
2458 (TRAMPOLINE_SIZE): Use it.
2459 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
2461 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
2462 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
2463 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
2464 adjust for hook parameters.
2465 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
2467 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
2468 (m32r_trampoline_init): New.
2469 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
2470 m32r_trampoline_init.
2472 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
2473 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
2474 make static; update for hook parameters.
2475 * config/m68hc11/m68hc11-protos.h: Update.
2476 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
2478 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2479 (TARGET_TRAMPOLINE_INIT): New.
2480 (mcore_function_value): Fix typo.
2481 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
2482 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
2483 to mcore_asm_trampoline_template.
2484 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
2486 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
2487 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
2488 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
2489 update for hook parameters.
2490 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
2492 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2493 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2494 mips_trampoline_init): New.
2495 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
2496 mips_asm_trampoline_template.
2497 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
2498 update for hook parameters.
2500 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2501 (TARGET_TRAMPOLINE_INIT): New.
2502 (mmix_trampoline_size): Remove.
2503 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
2504 make static. Remove out-of-date tetra vs octa comment.
2505 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
2506 make static; update for hook parameters.
2507 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
2508 (INITIALIZE_TRAMPOLINE): Remove.
2509 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
2510 (TRAMPOLINE_ALIGNMENT): New.
2511 * gcc/config/mmix/mmix-protos.h: Update.
2513 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2514 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2515 mn10300_trampoline_init): New.
2516 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
2517 mn10300_asm_trampoline_template.
2518 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
2520 * config/moxie/moxie.c (moxie_static_chain,
2521 moxie_asm_trampoline_template, moxie_trampoline_init,
2522 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
2523 TARGET_TRAMPOLINE_INIT): New.
2524 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
2525 moxie_trampoline_init.
2526 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
2527 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2529 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2530 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2531 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
2532 pa_trampoline_adjust_address): New.
2533 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
2534 pa_asm_trampoline_template.
2535 (TRAMPOLINE_ALIGNMENT): New.
2536 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
2537 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
2538 adjust for hook parameters.
2539 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
2541 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
2542 (TARGET_TRAMPOLINE_INIT): New.
2543 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
2544 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
2546 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
2548 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
2549 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
2550 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
2551 make static; adjust parameters for the hook.
2552 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
2554 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
2555 s390_trampoline_template; make static.
2556 (s390_trampoline_init): Rename from s390_initialize_trampoline;
2557 make static; adjust for target hook.
2558 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2559 * config/s390/s390-protos.h: Remove trampoline decls.
2560 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
2561 (TRAMPOLINE_TEMPLATE): Remove.
2562 (TRAMPOLINE_ALIGNMENT): New.
2564 * config/score/score-protos.h (score_initialize_trampoline): Remove.
2565 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2566 (TARGET_TRAMPOLINE_INIT): New.
2567 (score_asm_trampoline_template): New.
2568 (score_trampoline_init): Rename from score_initialize_trampoline;
2569 make static; adjust for hook parameters.
2570 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
2571 score[37]_asm_trampoline_template.
2572 (INITIALIZE_TRAMPOLINE): Remove.
2573 * config/score/score3.c (score3_asm_trampoline_template): New.
2574 (score3_trampoline_init): Rename from score3_initialize_trampoline;
2575 adjust for target hook.
2576 * config/score/score7.c (score7_asm_trampoline_template): New.
2577 (score7_trampoline_init): Rename from score7_initialize_trampoline;
2578 adjust for target hook.
2579 * config/score/score3.h, config/score/score7.h: Update.
2581 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
2582 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
2583 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2584 (sh_trampoline_init): Rename from sh_initialize_trampoline;
2585 make static; adjust for target hook parameters.
2586 (sh_trampoline_adjust_address): New.
2587 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
2588 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
2590 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
2591 (sparc32_initialize_trampoline): Rename from
2592 sparc_initialize_trampoline; make static; replace tramp parameter
2593 with m_tramp and update memory accesses.
2594 (sparc64_initialize_trampoline): Similarly.
2595 (sparc_trampoline_init): New.
2596 * config/sparc/sparc-protos.h: Remove trampoline decls.
2597 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
2598 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
2600 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
2601 (array_to_constant): Make ARR parameter const.
2602 (spu_trampoline_init): Rename from spu_initialize_trampoline;
2603 make static; update for hook parameters.
2604 * config/spu/spu-protos.h: Update decls.
2605 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
2607 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
2608 from xstormy16_initialize_trampoline; make static; update for
2610 (TARGET_TRAMPOLINE_INIT): New.
2611 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
2613 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2614 (TARGET_TRAMPOLINE_INIT): New.
2615 (v850_can_eliminate): Make static.
2616 (v850_asm_trampoline_template, v850_trampoline_init): New.
2617 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
2618 v850_asm_trampoline_template.
2619 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
2620 and adjust for target hook parameters.
2622 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2623 (TARGET_TRAMPOLINE_INIT): New.
2624 (vax_asm_trampoline_template, vax_trampoline_init): New.
2625 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
2626 vax_asm_trampoline_template.
2627 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
2629 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2630 (TARGET_TRAMPOLINE_INIT): New.
2631 (xtensa_asm_trampoline_template): Rename from
2632 xtensa_trampoline_template; make static.
2633 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
2634 make static; update for hook parameters.
2635 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
2636 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
2637 (INITIALIZE_TRAMPOLINE): Remove.
2639 * config/i386/i386.c (ix86_function_regparm): Do not issue an
2640 error for nested functions with regparm=3.
2641 (ix86_compute_frame_layout): Adjust frame pointer offset for
2642 ix86_static_chain_on_stack.
2643 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
2644 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
2645 don't reset to UNITS_PER_WORD.
2646 (ix86_emit_leave): Adjust ix86_cfa_state.
2647 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
2648 (ix86_static_chain): New.
2649 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
2650 make static; update for target hook parameters; use ix86_static_chain.
2651 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2652 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
2653 (INITIALIZE_TRAMPOLINE): Remove.
2654 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
2655 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
2656 to the end. Add static_chain_on_stack.
2657 (ix86_static_chain_on_stack): New.
2659 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
2660 (m68k_output_mi_thunk): Don't use static_chain_rtx.
2661 (m68k_trampoline_init): New.
2662 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
2663 m68k_trampoline_init and adjust for hook parameters.
2664 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
2665 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
2667 2009-09-22 Jakub Jelinek <jakub@redhat.com>
2669 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
2670 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
2672 * reload1.c (reload): Call wrap_constant when substituting
2673 reg for equiv inside of DEBUG_INSNs.
2676 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
2677 add_call_src_coords_attributes, add_high_low_attributes,
2678 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
2679 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
2680 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
2681 when -gdwarf-2 -gstrict-dwarf.
2682 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
2683 -gdwarf-[23] -gstrict-dwarf.
2684 (address_of_int_loc_descriptor, loc_descriptor,
2685 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
2686 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
2687 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
2689 2009-09-22 Richard Guenther <rguenther@suse.de>
2691 PR tree-optimization/41428
2692 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
2693 (ccp_finalize): Pass it to substitute_and_fold.
2695 2009-09-22 Richard Guenther <rguenther@suse.de>
2697 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
2698 (substitute_and_fold): Adjust prototype.
2699 * tree-vrp.c (vrp_evaluate_conditional): Make static.
2700 (simplify_stmt_using_ranges): Likewise.
2701 (fold_predicate_in): Move here from tree-ssa-propagate.c.
2702 (vrp_fold_stmt): New function.
2703 (vrp_finalize): Pass it to substitute_and_fold.
2704 * tree-flow.h (vrp_evaluate_conditional): Remove.
2705 (simplify_stmt_using_ranges): Likewise.
2706 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
2707 * tree-ssa-copy.c (fini_copy_prop): Likewise.
2708 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
2710 (fold_predicate_in): Move to tree-vrp.c.
2711 (substitute_and_fold): Use the callback instead of calling into
2712 tree-vrp.c functions directly.
2714 2009-09-22 Jakub Jelinek <jakub@redhat.com>
2716 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
2717 comparison warning on rs6000.
2720 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
2721 GIMPLE_EH_MUST_NOT_THROW cleanup.
2722 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
2724 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
2727 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
2728 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
2729 LIB_SPEC for darwin10 and later since it always uses the unwinder in
2730 libSystem which is derived from the gcc 4.2.1 unwinder.
2732 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
2735 * varasm.c (default_encode_section_info): Copy TLS model into
2736 sym_ref flags regardless of backend support for TLS, for all
2737 model types except TLS_MODEL_EMULATED.
2739 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
2742 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
2743 we can handle it correctly.
2745 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
2747 * doc/install.texi (os2): Remove section.
2749 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
2751 * doc/standards.texi (Objective-C): Adjust two URLs.
2753 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
2755 * tree-tailcall.c (process_assignment): Don't check if a
2756 multiplication or an addition are already present.
2757 (find_tail_calls): Combine multiple additions and multiplications.
2758 (adjust_accumulator_values): Emit accumulators.
2760 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
2762 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
2763 xmm register restore.
2765 2009-09-21 Jan Hubicka <jh@suse.cz>
2767 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
2768 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
2771 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
2773 * stor-layout.c (layout_type): Remove obsolete code.
2775 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
2778 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
2780 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2783 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
2784 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
2785 (fold_builtin_2, do_mpc_arg1): Update accordingly.
2786 * fold-const.c (const_binop): Likewise.
2787 * real.h (do_mpc_arg2): Update prototype.
2789 2009-09-20 Jan Hubicka <jh@suse.cz>
2791 * dwarf2out.c (add_const_value_attribute): Return true if successful.
2792 (add_location_or_const_value_attribute): Rewrite using
2794 (tree_add_const_value_attribute): Return true if successful.
2795 (tree_add_const_value_attribute_for_decl): Likewise.
2797 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
2798 (loc_descriptor): ... here;
2799 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2800 (cst_pool_loc_descr): Break out from ...; do not reffer constant
2801 pool items that was not marked for output.
2802 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
2803 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2804 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2805 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
2806 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
2807 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
2808 DW_OP_stack_value to get address of items that are not available
2810 (dw_loc_list): Handle single element lists correctly.
2812 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
2813 Pascal Obry <obry@adacore.com>
2815 * unwind-dw2-fde.c (classify_object_over_fdes):
2816 Cast the constant 1 to _Unwind_Ptr.
2817 (add_fdes): Likewise.
2818 (linear_search_fdes): Likewise.
2820 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
2822 * stor-layout.c (set_sizetype): Avoid useless type copy.
2824 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
2826 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
2828 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
2829 * configure, config.in: Regenerate.
2830 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
2832 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
2833 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
2834 for global data if the output could be used in a shared library.
2835 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
2836 to 0 if TARGET_WRITABLE_EH_FRAME.
2838 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
2840 PR rtl-optimization/39886
2841 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
2842 just when insn is equal to BB_END (bb).
2844 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
2846 * config/mips/mips.opt (mrelax-pic-calls): New option.
2847 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
2849 (mips_unspec_call): Change "unspec_call" expander into this.
2850 (mips_strip_unspec_call): New function.
2851 (mips_got_load): Call mips_unspec_call instead of
2852 gen_unspec_call<mode>.
2853 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
2855 (mips_cfg_in_reorg): New function.
2856 (mips16_lay_out_constants): Use it to decide whether to call
2857 CFG-aware insn splitting.
2858 (r10k_insert_cache_barriers): Move CFG set-up code from here to
2859 mips_reorg. Move DF set-up code from here ...
2860 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
2862 (mips_reorg): Call mips_df_reorg instead of
2863 r10k_insert_cache_barriers. Move CFG set-up code here from
2864 r10k_insert_cache_barriers.
2865 (mips_call_expr_from_insn): New function.
2866 (mips_pic_call_symbol_from_set): Likewise.
2867 (mips_find_pic_call_symbol): Likewise.
2868 (mips_annotate_pic_call_expr): Likewise.
2869 (mips_get_pic_call_symbol): Likewise.
2870 (mips_annotate_pic_calls): Likewise.
2871 (mips_override_options): Disable -mrelax-pic-calls unless PIC
2873 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
2874 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
2875 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
2877 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
2878 (unspec_call<mode>): Remove it.
2879 (sibcall_internal, sibcall_value_internal,
2880 sibcall_value_multiple_internal, call_internal, call_split,
2881 call_value_internal, call_value_split,
2882 call_value_multiple_internal, call_value_multiple_split): Pass
2883 SIZE_OPNO to MIPS_CALL.
2884 (call_internal_direct, call_direct_split,
2885 call_value_internal_direct, call_value_direct_split): Pass -1 as
2886 SIZE_OPNO to MIPS_CALL.
2887 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
2888 * configure: Regenerate.
2889 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
2890 and -mno-relax-pic-calls.
2891 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
2893 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2896 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
2897 in the directory this rule is called from, rather than the
2898 toplevel 'gcc' directory, to fix in-tree build.
2900 2009-09-19 Chris Demetriou <cgd@google.com>
2902 PR preprocessor/28435:
2903 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
2904 to cpplib that the preprocessor output is needed.
2906 2009-09-19 Jakub Jelinek <jakub@redhat.com>
2908 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
2909 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
2910 *return_and_restore_fpregs_<mode>,
2911 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
2914 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
2915 instead of assuming it has always a REG inside of it.
2917 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
2919 * config/freebsd.h: Update comment on types.
2920 (WINT_TYPE): Define.
2922 2009-09-18 Jason Merrill <jason@redhat.com>
2924 * c.opt: Add -fno-deduce-init-list.
2926 2009-09-18 Neil Vachharajani <nvachhar@google.com>
2928 * value-prof.c (interesting_stringop_to_profile_p): Added output
2929 argument to indicate which parameter is the size parameter.
2930 * value-prof.c (gimple_stringop_fixed_value): Use
2931 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
2932 * value-prof.c (gimple_stringops_transform): Update call sites to
2933 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
2935 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
2938 From David Binderman <dcb314@hotmail.com>:
2939 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
2940 local variable f. Remove stale comments.
2941 (ix86_compute_frame_layout): Remove useless local variable total_size.
2942 Remove #if 0'd code.
2943 (legitimate_address_p): Remove useless local variables
2944 reason_rtx and reason.
2945 (ix86_split_copysign_const): Remove useless local variable op1.
2946 (scale_counter): Remove useless local variable piece_size_mask.
2948 2009-09-18 Jakub Jelinek <jakub@redhat.com>
2950 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
2953 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
2956 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
2958 2009-09-17 Jakub Jelinek <jakub@redhat.com>
2960 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
2963 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
2965 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
2966 DW_OP_implicit_value even without dwarf_version 4.
2968 2009-09-17 Jan Hubicka <jh@suse.cz>
2970 * dwarf2out.c: Include tree-pass.h and gimple.h.
2971 (loc_list_plus_const): New function.
2972 (loc_descriptor_from_tree_1): Rename to ...
2973 (loc_descriptor_from_tree): ... remove original.
2974 (loc_list_from_tree): New function.
2975 (add_AT_location_description): Accept location list.
2976 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
2977 (concatn_mem_loc_descriptor): Remove.
2978 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
2980 (secname_for_decl): Move up.
2981 (hidden_reference_p): New function; break out from ...
2982 (loc_by_refernece): ... here; move up.
2983 (dw_loc_list): New function.
2984 (single_element_loc_list): New function.
2985 (single_element_loc_list_p): New function.
2986 (add_loc_descr_to_each): New function.
2987 (add_loc_list): New function.
2988 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
2989 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
2990 add diagnostics why expansion failed.
2991 (add_location_or_const_value_attribute): Support location lists.
2992 (add_bound_info): Likewise.
2993 (descr_info_loc): Update call of loc_descriptor_from_tree.
2994 (gen_variable_die): Work on location lists.
2995 * final.c (pass_final): Add dump file.
2996 * Makefile.in (dwarf2out.o): Add new dependencies.
2998 2009-09-17 Janis Johnson <janis187@us.ibm.com>
3001 * real.c decimal_from_integer, decimal_integer_string): New.
3002 (real_from_integer): Use them as special case for decimal float.
3003 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
3004 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
3005 Do not append zero after the decimal point in string to convert.
3007 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
3009 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
3010 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
3012 2009-09-17 Martin Jambor <mjambor@suse.cz>
3014 * common.opt (fipa-sra): New switch.
3015 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
3016 * timevar.def (TV_IPA_SRA): New timevar.
3017 * params.def (ipa-sra-ptr-growth-factor): New parameter.
3018 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
3019 * tree-sra.c: Include cgraph.c.
3020 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
3021 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
3022 and grp_not_necessarilly_dereferenced.
3023 (func_param_count): New variable.
3024 (encountered_apply_args): New variable.
3025 (bb_dereferences): New variable.
3026 (final_bbs): New variable.
3027 (no_accesses_representant): New variable.
3028 (no_accesses_p): New function.
3029 (dump_access): Dump the new fields.
3030 (sra_initialize): Set encountered_apply_args to false.
3031 (get_ssa_base_param): New function.
3032 (mark_parm_dereference): New function.
3033 (create_access): Caring for INIDRECT_REFs and different handling of
3034 varialble length accesses in early IPA SRA. Store the stmt - a new
3035 parameter - to the new access.
3036 (build_access_from_expr_1): New parameter stmt, passed to
3037 create_access. Handle INDIRECT_REFs.
3038 (build_access_from_expr): Pass the current statement to
3039 build_access_from_expr_1.
3040 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
3042 (build_accesses_from_assign): Pass the current statement to
3043 build_access_from_expr_1. Do not create assign links in IPA-SRA.
3044 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
3045 final_bbs when necessary. Check for calls to __builtin_apply_args.
3046 Fixup EH info if anythng was changed.
3047 (is_unused_scalar_param): New function.
3048 (ptr_parm_has_direct_uses): New function.
3049 (find_param_candidates): New function.
3050 (mark_maybe_modified): New function.
3051 (analyze_modified_params): New function.
3052 (propagate_dereference_distances): New function.
3053 (dump_dereferences_table): New function.
3054 (analyze_caller_dereference_legality): New function.
3055 (unmodified_by_ref_scalar_representative): New function.
3056 (splice_param_accesses): New function.
3057 (decide_one_param_reduction): New function.
3058 (enum ipa_splicing_result): New type.
3059 (splice_all_param_accesses): New function.
3060 (get_param_index): New function.
3061 (turn_representatives_into_adjustments): New function.
3062 (analyze_all_param_acesses): New function.
3063 (get_replaced_param_substitute): New function.
3064 (get_adjustment_for_base): New function.
3065 (replace_removed_params_ssa_names): New function.
3066 (sra_ipa_reset_debug_stmts): New function.
3067 (sra_ipa_modify_expr): New function.
3068 (sra_ipa_modify_assign): New function.
3069 (convert_callers): New function.
3070 (modify_function): New function.
3071 (ipa_sra_preliminary_function_checks): New function.
3072 (ipa_early_sra): New function.
3073 (ipa_early_sra_gate): New function.
3074 (pass_early_ipa_sra): New variable.
3075 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
3077 2009-09-17 Michael Matz <matz@suse.de>
3080 * tree.c (build_type_attribute_qual_variant): Export.
3081 * tree.h (build_type_attribute_qual_variant): Declare.
3082 * tree-inline.c (remap_type_1): Use it to build variants with
3083 the original qualifiers and attributes.
3085 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3087 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
3088 without a fallthrough edge.
3090 2009-09-16 DJ Delorie <dj@redhat.com>
3092 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
3093 chip and ignore the "fast_interrupt" attribute if so.
3095 2009-09-16 Richard Henderson <rth@redhat.com>
3098 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
3101 2009-09-16 Richard Henderson <rth@redhat.com>
3104 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
3105 is set only if DECL_NO_STATIC_CHAIN is unset.
3106 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
3107 (FOR_EACH_NEST_INFO): New.
3108 (walk_all_functions): Use it.
3109 (finalize_nesting_tree): Likewise.
3110 (unnest_nesting_tree): Likewise.
3111 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
3112 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
3113 (convert_gimple_call): Early out if gimple_call_chain already set.
3114 (convert_all_function_calls): Iterate until no new functions
3115 require a static chain.
3116 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
3117 when building a trampoline. Use dump_function_to_file instead
3119 (lower_nested_functions): Open dump_file. Validate that decls
3120 that have DECL_NO_STATIC_CHAIN from the front end don't have that
3121 bit reset by this pass.
3123 2009-09-16 Michael Matz <matz@suse.de>
3126 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
3127 shorten decl_common_unused.
3128 (DECL_RESTRICTED_P): New accessor.
3129 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
3130 to disambiguate marked decls and restrict pointers.
3132 2009-09-16 Richard Henderson <rth@redhat.com>
3135 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
3137 2009-09-16 Jakub Jelinek <jakub@redhat.com>
3139 * integrate.c (set_block_abstract_flags): Call
3140 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
3142 2009-09-16 Richard Guenther <rguenther@suse.de>
3145 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
3148 2009-09-16 DJ Delorie <dj@redhat.com>
3149 Kaz Kojima <kkojima@gcc.gnu.org>
3151 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
3152 (sh_expand_prologue): Update calls to output_stack_adjust.
3153 (sh_expand_epilogue): Likewise.
3155 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
3158 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
3159 trying to limit the extent of searches in the insn stream.
3161 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
3162 Jakub Jelinek <jakub@redhat.com>
3166 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
3168 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
3169 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
3170 (rs6000_savres_strategy): Always save FP registers inline if the
3171 target doesn't support hardware double-precision. Set the above
3172 bits in return value when needed.
3173 (rs6000_savres_routine_sym): Fix computation for cache selector.
3174 Mark the generated symbol as a function. Rename exitp argument to
3175 lr. Move code for determining the name of the symbol...
3176 (rs6000_savres_routine_name): ...here. New function. Add cases for
3177 getting the names right on AIX and 64-bit Linux.
3178 (savres_routine_name): New variable.
3179 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
3180 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
3181 on what the target routine uses as a base register. If savep && lr
3182 describe saving of r0 into memory slot.
3183 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
3184 line calls for AIX ABI.
3185 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
3186 determine FP save/restore functions.
3187 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
3188 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
3190 (rs6000_emit_epilogue): Adjust computation of restore_lr.
3191 Duplicate restoration of LR and execute the appropriate one
3192 depending on whether GPRs are being restored inline. Set r11 from
3193 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
3194 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
3195 Fix out of line calls for AIX ABI.
3196 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
3198 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
3200 (*restore_gpregs_spe): Likewise.
3201 (*return_and_restore_gpregs_spe): Likewise.
3202 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3203 Define to empty string unconditionally.
3204 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3205 Define to empty string unconditionally.
3206 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
3209 2009-09-15 Jan Hubicka <jh@suse.cz>
3211 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
3212 * params.def (inline-insns-auto): Likewise.
3214 2009-09-15 Martin Jambor <mjambor@suse.cz>
3216 * ipa-inline.c (estimate_function_body_sizes): Dump info about
3217 individual statements only at TDF_DETAILS dump level. Format
3218 source for 80 characters per line.
3220 2009-09-15 Christian Bruel <christian.bruel@st.com>
3222 * regrename.c (do_replace): Update REG_DEAD notes.
3224 2009-09-15 Revital Eres <eres@il.ibm.com>
3226 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
3227 * targhooks.c (default_builtin_support_vector_misalignment):
3228 New builtin function.
3229 * targhooks.h (default_builtin_support_vector_misalignment):
3231 * target.h (builtin_support_vector_misalignment):
3232 New field in struct gcc_target.
3233 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
3234 new builtin function.
3235 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
3237 * config/rs6000/rs6000.c
3238 (rs6000_builtin_support_vector_misalignment): New function.
3239 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
3241 2009-09-15 Jie Zhang <jie.zhang@analog.com>
3243 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
3245 (bfin_optimize_loop): Likewise.
3246 (bfin_gen_bundles): Likewise.
3247 (workaround_speculation): Likewise.
3248 (find_load): Return NULL_RTX for debug_insn.
3250 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
3252 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
3255 2009-09-14 DJ Delorie <dj@redhat.com>
3257 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
3258 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
3261 2009-09-14 Richard Henderson <rth@redhat.com>
3262 Jakub Jelinek <jakub@redhat.com>
3264 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
3265 * cfgbuild.c (make_edges): Handle asm goto.
3266 * cfglayout.c (fixup_reorder_chain): Likewise.
3267 * cfgrtl.c (patch_jump_insn): Likewise.
3268 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
3269 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
3270 (gimple_build_asm_vec): Add and use labels parameter.
3271 (gimple_build_asm): Remove.
3272 (walk_gimple_asm): Walk labels too.
3273 * gimple.def (GIMPLE_ASM): Update docs.
3274 * gimple.h: Update decls.
3275 (struct gimple_statement_asm): Change nc to use unsigned char;
3277 (gimple_asm_nlabels): New.
3278 (gimple_asm_label_op, gimple_asm_set_label_op): New.
3279 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
3280 into gimple_build_asm_vec.
3281 * jump.c (mark_jump_label_asm): New.
3282 (mark_jump_label): Use it.
3283 (redirect_jump_1): Handle asm goto.
3284 (invert_jump_1): Soft fail if X is null.
3285 * recog.c (extract_asm_operands): New.
3286 (asm_noperands): Use it; handle asm labels.
3287 (decode_asm_operands): Use extract_asm_operands.
3288 (asm_operand_ok): Properly handle empty string.
3289 * reg-stack.c (get_asm_operands_in_out): Rename from
3290 get_asm_operand_n_inputs; use extract_asm_operands; return both
3291 inputs and outputs by reference; update all callers.
3292 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
3293 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
3294 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
3295 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
3296 (extract_asm_operands): Declare.
3297 * stmt.c (expand_asm_operands): Add and use labels parameter.
3298 (check_unique_operand_names): Likewise.
3299 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
3300 (expand_asm_stmt): Handle asm labels.
3301 * tree-cfg.c (make_gimple_asm_edges): New.
3302 (make_edges): Use it.
3303 (cleanup_dead_labels): Handle asm labels.
3304 (is_ctrl_altering_stmt): Likewise.
3305 (gimple_redirect_edge_and_branch): Likewise.
3306 * tree.def (ASM_EXPR): Add 5th operand.
3307 * tree.h (ASM_LABELS): New.
3308 (resolve_asm_operand_names): Update decl.
3310 * c-parser.c (c_parser_asm_statement): Parse asm goto.
3311 (c_parser_asm_goto_operands): New.
3312 * c-tree.h (build_asm_expr): Update decl.
3313 * c-typeck.c (build_asm_expr): Add and use labels parameter.
3314 * doc/extend.texi: Document asm goto.
3316 2009-09-14 Richard Henderson <rth@redhat.com>
3318 * except.h: Update declarations.
3319 (struct pointer_map_t): Forward declare.
3320 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
3321 (struct eh_landing_pad_d, eh_landing_pad): New.
3322 (struct eh_catch_d, eh_catch): New.
3323 (struct eh_region_d): Remove next_region_sharing_label, aka,
3324 label, tree_label, landing_pad, post_landing_pad, resume,
3325 may_contain_throw. Rename region_number to index. Remove
3326 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
3327 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
3328 (VEC(eh_landing_pad,gc)): New.
3329 (struct eh_status): Remove last_region_number. Add lp_array,
3330 throw_stmt_table, ttype_data, ehspec_data.
3331 (ehr_next, FOR_ALL_EH_REGION_AT): New.
3332 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
3333 * except.c (lang_protect_cleanup_actions): Return tree.
3334 (struct ehl_map_entry): Remove.
3335 (init_eh_for_function): Push zero entries for region and lp_array.
3336 (gen_eh_region): Add to region_array immediately.
3337 (gen_eh_region_catch): Operate on eh_catch objects.
3338 (gen_eh_landing_pad): New.
3339 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
3340 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
3341 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
3342 (get_eh_landing_pad_from_number_fn): New.
3343 (get_eh_landing_pad_from_number): New.
3344 (get_eh_region_from_lp_number_fn): New.
3345 (get_eh_region_from_lp_number): New.
3346 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
3347 (get_exception_pointer, get_exception_filter): Remove.
3348 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
3349 (current_function_has_exception_handlers): Simplify.
3350 (bring_to_root, eh_region_replaceable_by_p): Remove.
3351 (replace_region, hash_type_list, hash_eh_region): Remove.
3352 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
3353 (label_to_region_map, num_eh_regions): Remove.
3354 (get_next_region_sharing_label, must_not_throw_labels): Remove.
3355 (find_exception_handler_labels): Remove.
3356 (duplicate_eh_regions_0, find_prev_try): Remove.
3357 (struct duplicate_eh_regions_data): New.
3358 (duplicate_eh_regions_1): Rewrite.
3359 (duplicate_eh_regions): Return a pointer map instead of an
3361 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
3362 (redirect_eh_edge_to_label): Remove.
3363 (eh_region_outermost): Rewrite using eh_region pointers
3364 instead of integers.
3365 (add_ttypes_entry): Update for ttype_data move to eh_status.
3366 (add_ehspec_entry): Rewrite with VEC instead of varray.
3367 (assign_filter_values): Likewise. Export.
3368 (build_post_landing_pads, connect_post_landing_pads): Remove.
3369 (dw2_build_landing_pads): Rewrite to use lp_array.
3370 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
3371 (sjlj_assign_call_site_values): Rewrite to use lp_array.
3372 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
3373 (sjlj_mark_call_sites): Update for landing pad numbers.
3374 (finish_eh_generation): Rewrite.
3375 (gate_handle_eh): Do nothing for no eh tree.
3376 (pass_rtl_eh): Move up near finish_eh_generation.
3377 (remove_eh_landing_pad): New.
3378 (remove_eh_handler): Export.
3379 (remove_eh_region, remove_eh_handler_and_replace): Remove.
3380 (for_each_eh_label): Rewrite to use lp_array.
3381 (make_reg_eh_region_note): New.
3382 (make_reg_eh_region_note_nothrow_nononlocal): New.
3383 (insn_could_throw_p): New.
3384 (copy_reg_eh_region_note_forward): New.
3385 (copy_reg_eh_region_note_backward): New.
3386 (check_handled, add_reachable_handler): Remove.
3387 (reachable_next_level, foreach_reachable_handler): Remove.
3388 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
3389 (get_eh_region_and_lp_from_rtx): New.
3390 (get_eh_region_from_rtx): New.
3391 (can_throw_internal_1, can_throw_external_1): Remove.
3392 (can_throw_internal): Use get_eh_region_from_rtx.
3393 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
3394 (insn_nothrow_p, can_nonlocal_goto): New.