1 2009-10-12 Jakub Jelinek <jakub@redhat.com>
4 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
5 paradoxical subregs to prevent partial register stalls if the inner
8 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
10 * config/i386/i386.md (*setcc_<mode>_2): Do not use ix86_expand_clear
13 2009-10-12 Dodji Seketeli <dodji@redhat.com>
16 * gcc/dwarf2out.c (template_parameter_pack_die,
17 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
19 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
22 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
24 (maybe_register_def): Likewise. Take stmt iterator.
25 (rewrite_update_stmt): Take stmt iterator and pass it on.
26 (rewrite_update_enter_block): Pass stmt iterator.
28 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
30 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
31 (spu_builtin_decl): New function.
33 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
35 * config/i386/i386.md (SWIM): New mode iterator.
36 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
37 using SWIM mode iterator.
38 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
39 patterns using SWI48 mode iterator.
40 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
41 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
42 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
43 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
44 patterns using SWI248 mode iterator.
45 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
46 gen_x86_movdicc_0_m1_rex64 for renamed function
48 2009-10-11 Jose Ruiz <ruiz@adacore.com>
49 Eric Botcazou <ebotcazou@adacore.com>
52 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
53 * config/sparc/sol2-unwind.h: New file.
55 2009-10-11 Olivier Hainque <hainque@adacore.com>
56 Eric Botcazou <ebotcazou@adacore.com>
59 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
60 * config/i386/sol2-unwind.h: New file.
62 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
65 * config/i386/i386.md (addsi_1_zext): Get the proper second
68 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
70 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
71 all OLD_RTXes, not just REGs. Use copy_rtx to create the
74 2009-10-11 Richard Guenther <rguenther@suse.de>
76 * gimple.c (iterative_hash_type_name): Do not handle special
79 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
81 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
82 (*setcc_si_1_and): Ditto.
83 (*setcc_si_1_movzbl): Ditto.
84 (*setcc_<mode>_2): Ditto.
85 (*setcc_qi): Rename from *setcc_1.
86 (*setcc_qi_slp): Rename from *setcc_2.
88 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
89 (*zero_extendqisi2_movzbw_and splitter): Ditto.
91 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
92 "if" condition, there is already assert with reload_completed present.
94 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
96 * plugin.c (try_init_one_plugin): Improve constness of variable err.
98 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
100 * doc/install.texi (Final install): Refer to
101 http://gcc.gnu.org/bugs/ for bug reporting.
103 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
105 * configure.ac: Add test for dci instruction.
106 * configure: Regenerate.
107 * config.in: Likewise.
108 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
109 * doc/invoke.texi: Add cpu_type 476 and 476fp.
110 (-mmulhw): Add 476 to description.
112 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
113 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
114 (processor_target_table): Add 476 and 476fp entries.
115 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
116 (rs6000_issue_rate): Add CPU_PPC476.
117 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
118 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
119 (processor_type): Add PROCESSOR_PPC476.
120 (EXTRA_SPECS): Add asm_cpu_476 string.
121 * config/rs6000/rs6000.md: (define_attr "type"): Add isel attribute.
122 (define_attr "cpu"): Add ppc476.
124 Update comments for 476.
125 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
126 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
127 Update copyright year.
128 * config/rs6000/476.md: New file.
129 * config/rs6000/40x.md: Add description for "isel" attribute.
130 Update copyright year.
131 * config/rs6000/440.md: Likewise.
132 * config/rs6000/603.md: Likewise.
133 * config/rs6000/6xx.md: Likewise.
134 * config/rs6000/7450.md: Likewise.
135 * config/rs6000/7xx.md: Likewise.
136 * config/rs6000/8540.md: Likewise.
137 * config/rs6000/cell.md: Likewise.
138 * config/rs6000/e300c2c3.md: Likewise.
139 * config/rs6000/e500mc.md: Likewise.
140 * config/rs6000/mpc.md: Likewise.
141 * config/rs6000/power4.md: Likewise.
142 * config/rs6000/power5.md: Likewise.
143 * config/rs6000/power6.md: Likewise.
144 * config/rs6000/power7.md: Likewise.
145 * config/rs6000/rios1.md: Likewise.
146 * config/rs6000/rios2.md: Likewise.
147 * config/rs6000/rs64.md: Likewise.
149 2009-10-10 Richard Guenther <rguenther@suse.de>
151 PR tree-optimization/41654
152 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
153 a cond expr before calling gimple_cond_set_condition_from_tree.
154 (ifcombine_iforif): Likewise.
156 2009-10-09 Ian Lance Taylor <iant@google.com>
158 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
159 * configure: Rebuild.
161 2009-10-09 Neil Vachharajani <nvachhar@google.com>
163 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
166 2009-10-09 Richard Guenther <rguenther@suse.de>
169 * target-def.h (TARGET_BUILTIN_DECL): Define.
170 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
171 * target.h (struct gcc_target): Add builtin_decl target hook.
172 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
173 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
175 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
177 (lto_output_builtin_tree): Sorry if the target does not support
178 streaming target builtins.
179 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
180 (rs6000_builtin_decl): New function.
181 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
182 (ix86_builtin_decl): New function.
184 2009-10-09 Jakub Jelinek <jakub@redhat.com>
186 PR preprocessor/41445
187 * c-ppoutput.c (do_line_change): New function.
188 (cb_line_change): Use it.
189 (scan_translation_unit): Call do_line_change if
190 avoid_paste or PREV_WHITE and token location is on a different line
194 * dwarf2out.c (dwarf2out_init): Test whether
195 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
198 PR rtl-optimization/41646
199 * calls.c (expand_call): For BLKmode types returned in registers
200 avoid likely spilled hard regs in copy_blkmode_from_reg generated
203 2009-10-09 Richard Guenther <rguenther@suse.de>
205 PR tree-optimization/41634
206 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
207 we remove the correct elements.
208 (optimize_stmt): Make sure to update stmt operands before
209 optimizing redundancies.
211 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
213 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
215 2009-10-09 Richard Guenther <rguenther@suse.de>
218 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
220 (lto_wrapper_exit): New function.
222 (fatal_perror): Likewise.
223 (fork_execute): Use global args_name, do not free it.
224 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
225 * lto-streamer.h: Remove duplicate prototypes.
227 2009-10-09 Richard Guenther <rguenther@suse.de>
229 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
230 before calling stmt_can_throw_external.
232 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
234 PR tree-optimization/40071
235 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
236 pointer if the original data reference doesn't conflict with the
237 created vector data reference. Fix long line.
239 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
241 * config/i386/i386.md (any_div): New code iterator.
242 (u): Handle div and udiv.
244 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
246 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
247 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
248 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
249 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
251 2009-10-08 Joseph Myers <joseph@codesourcery.com>
253 * gcc.c (main): Remove trailing "." from diagnostics.
255 2009-10-08 Cary Coutant <ccoutant@google.com>
257 Add support for debugging with ICF (Identical Code Folding).
258 * calls.c (debug.h): New #include.
259 (emit_call_1): Call virtual_call_token debug hook.
260 * common.opt (-fenable-icf-debug): New option.
261 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
262 locations in the source).
263 (poc_label_num): New variable.
264 (dcall_entry, vcall_entry): New typedefs.
265 (dcall_table, vcall_table): New variables.
266 (struct vcall_insn): New type.
267 (vcall_insn_table): New variable.
268 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
269 (size_of_dcall_table): New function.
270 (output_dcall_table): New function.
271 (size_of_vcall_table): New function.
272 (output_vcall_table): New function.
273 (dwarf2out_direct_call): New function.
274 (vcall_insn_table_hash): New function.
275 (vcall_insn_table_eq): New function.
276 (dwarf2out_virtual_call_token): New function.
277 (dwarf2out_virtual_call): New function.
278 (dwarf2out_init): Allocate new tables and sections.
279 (prune_unused_types): Mark DIEs referenced from direct call table.
280 (dwarf2out_finish): Output direct and virtual call tables.
281 * final.c (final_scan_insn): Call direct_call and virtual_call
283 * debug.h (struct gcc_debug_hooks): Add direct_call,
284 virtual_call_token, virtual_call hooks.
285 (debug_nothing_uid): New function.
286 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
287 (debug_nothing_uid): New function.
288 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
289 (xcoff_debug_hooks): Likewise.
290 * sdbout.c (sdb_debug_hooks): Likewise.
291 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
292 * doc/invoke.texi (-fenable-icf-debug): New option.
294 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
297 * regmove.c (regmove_backward_pass): Replace src with dst in the
298 debug insn, and check for dst before rather than after.
300 2009-10-08 Janis Johnson <janis187@us.ibm.com>
302 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
303 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
305 2009-10-08 Jan Hubicka <jh@suse.cz>
308 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
309 do not mark cgraph nodes as needed.
310 (record_references_in_initializer): Add new only_vars parameter.
311 * cgraph.h (record_references_in_initializer): New parameter.
312 * varasm.c (assemble_variable): Update call.
313 * varpool.c (varpool_analyze_pending_decls): Always look for
316 2009-10-08 Anatoly Sokolov <aesok@post.ru>
318 * config/avr/avr.c (last_insn_address) Remove variable.
319 (expand_prologue): Don't initialise last_insn_address variable.
320 (final_prescan_insn): Don't output insn size.
321 * config/avr/avr.opt (msize): Remove switch.
322 * doc/invoke.texi (AVR Options): Remove documentation of -msize
325 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
327 * combine.c (label_tick_ebb_start): Fix comment.
328 (combine_instructions): Set label_tick and label_tick_ebb_start before
329 calling setup_incoming_promotions. Start them from 1. Increment
330 label_tick instead of deriving it from the BB index. Rather than
331 comparing ticks use the block from the previous iteration to decide
332 whether to start a new EBB. Remove empty lines before function.
334 2009-10-08 Michael Matz <matz@suse.de>
337 * builtins.c (fold_builtin_isascii): Use fold_build2.
338 (fold_builtin_isdigit): Ditto.
339 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
340 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
341 remove_useless_stmts_cond, remove_useless_stmts_tf,
342 remove_useless_stmts_tc, remove_useless_stmts_bind,
343 remove_useless_stmts_goto, remove_useless_stmts_label,
344 remove_useless_stmts_1, remove_useless_stmts,
345 pass_remove_useless_stmts): Remove.
346 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
347 * passes.c (init_optimization_passes): Don't add
348 pass_remove_useless_stmts.
349 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
350 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
352 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
353 for static constants.
354 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
355 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
357 2009-10-08 Richard Guenther <rguenther@suse.de>
359 * gimple.c (free_gimple_type_tables): New function.
360 * gimple.h (free_gimple_type_tables): Declare.
362 2009-10-07 Mark Heffernan <meheff@google.com>
364 * ipa-prop.c (ipa_print_node_params) Only print
365 names of named arguments.
367 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
369 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
370 being statically linked.
372 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
374 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
376 2009-10-08 Jan Hubicka <jh@suse.cz>
379 * ipa.c (cgraph_externally_visible_p,
380 function_and_variable_visibility,
381 whole_program_function_and_variable_visibility): Skip non-finalized
384 2009-10-08 Nick Clifton <nickc@redhat.com>
386 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
389 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
392 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
394 2009-10-07 Joseph Myers <joseph@codesourcery.com>
397 * c-common.c (c_fully_fold_internal): Strip nops from the result
398 of recursive calls to c_fully_fold_internal.
399 (c_wrap_maybe_const): New.
400 (c_save_expr): Use c_wrap_maybe_const.
401 * c-common.h (c_wrap_maybe_const): Declare.
402 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
403 build_binary_op): Use c_wrap_maybe_const.
405 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
407 * real.c: Fix comment to reflect actual exponent size.
409 2009-10-08 Ben Elliston <bje@au.ibm.com>
411 * config/rs6000/a2.md: Add FSF comment header.
413 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
415 * config/i386/i386.md (any_extend): New code iterator.
416 (u, s): New code attributes.
418 (DWIH): Rewrite as code iterator for SI and DI modes.
419 (DWI): Rewrite as mode attribute.
420 (dwi): New mode attribute.
421 (di): Depend on SI mode and DI mode.
422 (doubleint_general_operand): Remove mode attribute.
424 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
427 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
428 (*sub<mode>3_doubleword): Ditto.
430 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
431 using SWIM248 mode iterator.
432 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
433 using SWI48 mode iterator.
434 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
435 patterns using DWIH mode iterator and any_extend code iterator.
436 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
437 using any_extend code iterator.
438 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
439 patterns using DWIH mode iterator and any_extend code iterator.
440 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
441 using any_extend code iterator.
442 (<s>mul<mode>3_highpart): Macroize expander from
443 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
444 and any_extend code iterator.
445 (*<s>muldi3_highpart_1): Macroize insn from
446 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
447 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
448 patterns using any_extend code iterator.
449 (*<s>mulsi3_highpart_zext): Macroize insn from
450 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
452 2009-10-07 Jakub Jelinek <jakub@redhat.com>
454 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
455 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
456 refering to a DIE with DW_AT_const_value.
458 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
461 * ira-lives.c (check_and_make_def_conflict): Process all operands.
463 2009-10-06 Jan Hubicka <jh@suse.cz>
465 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
468 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
470 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
471 *lea_2_rex64): Move before *add<mode>_1 pattern.
473 2009-10-07 Jan Hubicka <jh@suse.cz>
475 * collect2.c (main): Add -fno-whole-program.
476 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
478 2009-10-07 Jan Hubicka <jh@suse.cz>
480 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
481 has no address taken.
482 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
484 (cgraph_clone_node): Clear externally_visible flag for clones.
485 * cgraph.h (cgraph_only_called_directly_p,
486 cgraph_can_remove_if_no_direct_calls_p): New predicates.
487 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
488 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
489 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
490 ipcp_insert_stage): Likwise.
491 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
492 externally_visible flag.
493 (verify_cgraph_node): Verify that inline clones look right.
494 (process_function_and_variable_attributes): Do not set
495 externally_visible flags.
496 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
498 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
500 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
501 clear externally_visible when turning into inline clones
502 (cgraph_mark_inline_edge): Use new predicates.
503 (cgraph_estimate_growth): Likewise.
504 (cgraph_decide_inlining): Likewise.
505 * ipa.c (cgraph_postorder): Likewise.
506 (cgraph_remove_unreachable_nodes): Likewise; sanity check
507 that inline clones are not needed.
508 (cgraph_externally_visible_p): New predicate.
509 (function_and_variable_visibility): Add whole_program parameter;
510 always set externally_visible flag; handle COMDAT function
512 (local_function_and_variable_visibility): New function.
513 (gate_whole_program_function_and_variable_visibility): New function.
514 (whole_program_function_and_variable_visibility): New function.
515 (pass_ipa_whole_program_visibility): New function.
516 * passes.c (init_optimization_passes): Add whole program visibility
518 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
519 not care about needed/reachable flags.
520 * varpool.c: Include flags.h
521 (decide_is_variable_needed): When doing LTO assume whole-program mode.
522 (varpool_finalize_decl): When we are in LTO read-back, all variables
524 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
526 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
528 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
531 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
533 * config.gcc: Don't include the makefile fragments intended for
535 * config/s390/fixdfdi.h: File removed.
536 * config/s390/libgcc-glibc.ver: File removed.
537 * config/s390/s390.h: Remove the fixdfdi.h hack.
538 * config/s390/t-crtstuff: File moved to libgcc dir.
539 * config/s390/t-linux: Likewise.
540 * config/s390/t-tpf: libgcc specific parts removed.
541 * config/s390/t-linux64: Likewise.
543 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
545 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
546 (lto-compress.o): Likewise.
548 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
551 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
552 dllexport to class members here.
553 (i386_pe_determine_dllimport_p): Only check static class data for
555 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
556 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
557 functions for vague linkage.
558 (i386_pe_type_dllexport_p): Fix formatting.
559 (maybe_add_dllexport) New function.
560 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
563 2009-10-07 Ben Elliston <bje@au.ibm.com>
565 * config/rs6000/a2.md: Remove duplicated lines.
567 2009-10-07 Ben Elliston <bje@au.ibm.com>
569 * config.gcc (powerpc*-*-*): Handle a2.
570 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
571 * config/rs6000/a2.md: New file.
572 * config/rs6000/rs6000.opt (mno-update): New.
573 (mupdate): Return to using a mask, not a var.
574 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
575 (enum processor_type): Add PROCESSOR_PPCA2.
576 * config/rs6000/rs6000.c (ppca2_cost): New costs.
577 (rs6000_override_options): Add "a2" to processor_target_table.
578 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
579 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
581 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
583 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
584 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
585 reference to nonexistent gen_truncxfxf2 function.
587 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
589 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
590 (DWIH, g, di, doubleint_general_operand): New mode attributes.
591 (general_operand): Handle TI mode.
592 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
593 using SDWIM mode iterator.
594 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
595 pattern from *add{di,ti}3_1 patterns and corresponding splitters
596 using DWI mode iterator.
597 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
598 patterns using SWI mode iterator.
599 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
600 using SWI48 mode iterator.
601 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
602 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
603 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
604 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
605 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
606 using SDWIM mode iterator.
607 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
608 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
609 using DWI mode iterator.
610 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
611 patterns using SWI mode iterator.
612 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
613 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
614 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
615 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
616 patterns using plusminus code iterator.
617 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
618 sub<mode>3 patterns using plusminus code iterator.
619 * config/i386/i386.c (override_options): Update the call to
620 gen_subdi_carry_rex64 for renamed function.
621 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
622 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
623 calls to instruction expanders.
625 2009-10-06 Martin Jambor <mjambor@suse.cz>
628 * opts.c (decode_options): Run IPA-SRA at -O2.
630 2009-10-06 Richard Guenther <rguenther@suse.de>
632 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
634 2009-10-06 Tobias Burnus <burnus@net-b.de>
637 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
638 -flto and -fwhole-program flags can be combined.
640 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
643 * gcc.c (process_command): Check that -o argument was specified.
645 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
647 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
649 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
651 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
652 * doc/invoke.texi (Warning Options): Annotate allowed languages
653 for -Wunsuffixed-float-constants.
655 2009-10-05 Jakub Jelinek <jakub@redhat.com>
657 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
658 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
659 same name and isn't the main variant.
662 * dwarf2out.c (loc_by_reference): Removed.
663 (dw_loc_list_1): New function.
664 (dw_loc_list): Remove toplev argument, add want_address argument.
665 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
666 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
667 want_address == 2 to dw_loc_list. For successful dw_loc_list
668 set have_address to 1 only if want_address is not 0.
670 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
672 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
673 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
674 a code block followed by two pointers.
675 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
676 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
677 (MIPS_MOVE): Likewise.
678 (MIPS_LUI): Likewise.
680 (MIPS_BAL): Likewise.
681 (MIPS_NOP): Likewise.
682 (mips_asm_trampoline_template): Delete.
683 (mips_trampoline_code_size): New function.
684 (mips_trampoline_init): Add shorter sequences for all cases
685 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
686 Calculate the opcodes directly, rather than copying from a template.
687 Only flush the code part of the trampoline.
688 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
690 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
692 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
693 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
694 (INCOMING_RETURN_ADDR_RTX): Likewise.
695 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
697 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
698 with RETURN_ADDR_REGNUM.
699 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
700 * config/mips/mips.c (mips16_build_call_stub): Replace
701 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
702 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
703 (mips_print_operand_punctuation): Likewise.
704 (mips_frame_set): Likewise.
705 (mips16e_output_save_restore): Likewise.
706 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
707 (mips_save_reg_p): Likewise.
708 (mips_return_addr): Likewise.
709 (mips_set_return_address): Likewise.
710 (mips_direct_save_slot_move_p): Likewise.
711 (mips_output_function_prologue): Likewise.
712 (mips_restore_reg): Likewise.
713 (mips_expand_epilogue): Likewise.
714 (mips_epilogue_uses): Likewise.
715 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
716 (*mov<mode>_ra): Use it instead of a hard-coded 31.
717 (clear_hazard_<mode>): Likewise.
718 (call_internal): Likewise.
719 (call_internal_direct): Likewise.
720 (call_direct_split): Likewise.
721 (call_value_internal): Likewise.
722 (call_value_split): Likewise.
723 (call_value_internal_direct): Likewise.
724 (call_value_direct_split): Likewise.
725 (call_value_multiple_internal): Likewise.
726 (call_value_multiple_split): Likewise.
728 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
729 Jakub Jelinek <jakub@redhat.com>
731 PR rtl-optimization/41511
732 * combine.c (record_value_for_reg): Pass explicit values as argument
733 to get_last_value_validate.
734 (get_last_value_validate): Document INSN parameter.
735 For non-readonly MEMs, assume they might have been modified if INSN
736 was in another basic block.
737 (get_last_value): Minor reformatting.
739 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
742 * final.c (asm_str_count): Split out from asm_insn_count.
743 * rtl.h (asm_str_count): New prototype.
744 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
747 2009-10-05 Sriraman Tallam <tmsriram@google.com>
749 * doc/plugins.texi: Change plugin_pass to register_pass_info.
751 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
752 Rafael Espindola <espindola@google.com>
754 * gengtype.c (write_types): Moved call to write_func_for_structure
757 2009-10-05 Richard Guenther <rguenther@suse.de>
760 * lto-cgraph.c (output_cgraph): Output toplevel asms.
761 (input_cgraph_1): Input toplevel asms.
763 2009-10-05 Richard Guenther <rguenther@suse.de>
766 * lto-symtab.c (lto_compatible_attributes_p): Remove.
767 (external_aggregate_decl_p): Likewise.
768 (lto_symtab_compatible): Re-structure. Remove dead code.
769 For variables ignore toplevel qualifiers when comparing types.
770 Issue warnings, not errors for mismatched user-alignment.
772 2009-10-05 Richard Guenther <rguenther@suse.de>
776 * lto-symtab.c (struct lto_symtab_base_def): Remove.
777 (struct lto_symtab_identifier_def): Likewise.
778 (struct lto_symtab_decl_def): Likewise.
779 (struct lto_symtab_entry_def): New.
780 (lto_symtab_identifier_t): Rename to ...
781 (lto_symtab_entry_t): ... this.
782 (lto_symtab_decls): Remove.
783 (lto_symtab_base_hash): Rename to ...
784 (lto_symtab_entry_hash): ... this.
785 (lto_symtab_base_eq): Rename to ...
786 (lto_symtab_entry_eq): ... this.
787 (lto_symtab_base_marked_p): Rename to ...
788 (lto_symtab_entry_marked_p): ... this.
789 (lto_symtab_identifier_marked_p): Remove.
790 (lto_symtab_decl_marked_p): Likewise.
791 (lto_symtab_maybe_init_hash_tables): Rename to ...
792 (lto_symtab_maybe_init_hash_table): ... this.
793 (lto_symtab_set_resolution_and_file_data): Remove.
794 (lto_symtab_register_decl): New function.
795 (lto_symtab_get_identifier): Remove.
796 (lto_symtab_get): New function.
797 (lto_symtab_get_resolution): Adjust.
798 (lto_symtab_get_identifier_decl): Remove.
799 (lto_symtab_set_identifier_decl): Likewise.
800 (lto_symtab_merge_decl): Rename to ...
801 (lto_symtab_merge): ... this. Rewrite.
802 (lto_symtab_merge_var): Remove.
803 (lto_symtab_merge_fn): Likewise.
804 (lto_symtab_prevailing_decl): Adjust.
805 (lto_cgraph_replace_node): New function.
806 (lto_symtab_merge_decls_2): Likewise.
807 (lto_symtab_merge_decls_1): Likewise.
808 (lto_symtab_fixup_var_decls): Likewise.
809 (lto_symtab_resolve_symbols): Likewise.
810 (lto_symtab_merge_decls): Likewise.
811 (lto_symtab_prevailing_decl): Adjust.
812 (lto_symtab_get_symtab_def): Remove.
813 (lto_symtab_get_file_data): Likewise.
814 (lto_symtab_clear_resolution): Adjust.
815 (lto_symtab_clear_resolution): Likewise.
816 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
817 (input_cgraph_1): Likewise.
818 * lto-streamer-in.c (get_resolution): Do not provide fake
819 symbol resolutions here.
820 (deferred_global_decls): Remove.
821 (lto_register_deferred_decls_in_symtab): Likewise.
822 (lto_register_var_decl_in_symtab): Change signature, register
823 variable via lto_symtab_register_decl.
824 (lto_register_function_decl_in_symtab): Likewise.
825 (lto_read_tree): Adjust.
826 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
827 (lto_symtab_merge_var): Likewise.
828 (lto_symtab_merge_fn): Likewise.
829 (lto_symtab_register_decl): Declare.
830 (lto_symtab_merge_decls): Likewise.
832 2009-10-05 Richard Guenther <rguenther@suse.de>
834 PR tree-optimization/23821
835 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
836 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
837 simple IV increments.
839 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
841 * config/arm/arm.c (arm_override_options): Really initialize
842 flag_dwarf2_cfi_asm to 0.
844 2009-10-05 Doug Kwan <dougkwan@google.com>
846 PR rtl-optimization/41574
847 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
848 floating point and we are not doing unsafe math optimizations.
850 2009-10-03 Simon Baldwin <simonb@google.com>
851 Cary Coutant <ccoutant@google.com>
852 Rafael Espindola <espindola@google.com>
853 Richard Guenther <rguenther@suse.de>
854 Jan Hubicka <jh@suse.cz>
855 Doug Kwan <dougkwan@google.com>
856 H.J. Lu <hongjiu.lu@intel.com>
857 Bill Maddox <maddox@google.com>
858 Ryan Mansfield <rmansfield@qnx.com>
859 Diego Novillo <dnovillo@google.com>
860 Ollie Wild <aaw@google.com>
861 Kenneth Zadeck <zadeck@naturalbridge.com>
863 * lto-cgraph.c: New file.
864 * lto-compress.c: New file.
865 * lto-compress.h: New file.
866 * lto-opts.c: New file.
867 * lto-section-in.c: New file.
868 * lto-section-out.c: New file.
869 * lto-streamer-in.c: New file.
870 * lto-streamer-out.c: New file.
871 * lto-streamer.c: New file.
872 * lto-streamer.h: New file.
873 * lto-symtab.c: New file.
874 * lto-wpa-fixup.c: New file.
875 * lto-wrapper.c: New file.
877 2009-10-03 Simon Baldwin <baldwin@google.com>
878 Ben Elliston <bje@au.ibm.com>
879 Rafael Espindola <espindola@google.com>
880 Nathan Froyd <froydnj@codesourcery.com>
881 Jan Hubicka <jh@suse.cz>
882 Doug Kwan <dougkwan@google.com>
883 Diego Novillo <dnovillo@google.com>
884 Kenneth Zadeck <zadeck@naturalbridge.com>
886 * Makefile.in (enable_lto): New.
887 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
888 (LINKER_PLUGIN_API_H): Define.
889 (LTO_SYMTAB_H): Define.
890 (LTO_STREAMER_H): Define.
891 (TREE_VECTORIZER_H): Define.
892 (INCLUDES): Add LIBELFINC.
893 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
894 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
895 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
896 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
897 (native): Add lto-wrapper$(exeext)
898 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
899 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
900 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
901 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
902 (varasm.o): Add dependency on tree-iterator.h.
903 (cgraph.o): Add dependency on cif-code.def.
904 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
905 (ipa-pure-const.o): Likewise.
906 (GTFILES): Add lto-symtab.c.
907 (install-lto-wrapper): New.
908 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
909 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
910 * config.in: Regenerate.
912 2009-10-03 Rafael Espindola <espindola@google.com>
913 Diego Novillo <dnovillo@google.com>
915 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
917 Call execute_ipa_summary_passes for all_regular_ipa_passes and
919 (cgraph_optimize): Make extern.
921 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
922 Kenneth Zadeck <zadeck@naturalbridge.com>
924 * toplev.c (in_lto_p): Declare.
925 * collect2.c (scan_prog_file): Read all the output when reading
927 (enum lto_mode_d): Declare.
929 2009-10-03 Richard Guenther <rguenther@suse.de>
930 Diego Novillo <dnovillo@google.com>
932 * gimple.c: Include target.h and alias.h.
933 (gimple_types): Declare.
934 (type_hash_cache): Declare.
935 (gimple_alloc_stat): Make extern.
936 (gimple_build_eh_must_not_throw): Call
937 gimple_eh_must_not_throw_set_fndecl.
938 (struct type_pair_d): Declare.
939 (type_pair_t): Declare.
940 (type_pair_hash): New.
942 (lookup_type_pair): New.
943 (gimple_force_type_merge): New.
944 (compare_type_names_p): New.
945 (compare_field_offset): New.
946 (gimple_types_compatible_p): New.
947 (struct sccs): Declare.
948 (next_dfs_num): Declare.
949 (iterative_hash_gimple_type): New.
951 (iterative_hash_type_name): New.
952 (iterative_hash_gimple_type): New.
953 (gimple_type_hash): New.
954 (gimple_type_eq): New.
955 (gimple_register_type): New.
956 (print_gimple_types_stats): New.
957 (gimple_signed_or_unsigned_type): New.
958 (gimple_unsigned_type): New.
959 (gimple_signed_type): New.
960 (gimple_get_alias_set): New.
961 (gimple_decl_printable_name): Do not use DMGL_TYPES.
962 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
963 (gimple_force_type_merge): Declare.
964 (gimple_types_compatible_p): Declare.
965 (gimple_register_type): Declare.
966 (print_gimple_types_stats): Declare.
967 (gimple_unsigned_type): Declare.
968 (gimple_signed_type): Declare.
969 (gimple_get_alias_set): Declare.
970 (gimple_eh_must_not_throw_set_fndecl): New.
972 2009-10-03 Jan Hubicka <jh@suse.cz>
973 Kenneth Zadeck <zadeck@naturalbridge.com>
975 * ipa-pure-const.c: Include lto-streamer.h.
976 (register_hooks): Factor out of ...
977 (generate_summary): ... here.
978 (pure_const_write_summary): New.
979 (pure_const_read_summary): New.
980 (pass_ipa_pure_const): Add pure_const_write_summary and
981 pure_const_read_summary.
982 * ipa-reference.c: Include lto-streamer.h.
983 (add_new_function): New.
984 (remove_node_data): New.
985 (duplicate_node_data): New.
986 (ipa_init): Guard against multiple calls.
987 Move hook setup from analyze_function.
988 (write_node_summary_p): New.
989 (ipa_reference_write_summary): New.
990 (ipa_reference_read_summary): New.
991 (pass_ipa_reference): Add ipa_reference_write_summary and
992 ipa_reference_read_summary.
993 * cgraph.h (cgraph_local_info): Add field lto_file_data.
994 (struct cgraph_edge): Add fields lto_stmt_uid and
995 call_stmt_cannot_inline_p.
996 (cgraph_optimize): Declare.
997 (cgraph_decide_is_function_needed): Declare.
998 (reset_inline_failed): Declare.
999 (enum LTO_cgraph_tags): Declare.
1000 (LTO_cgraph_tag_names): Declare.
1001 (LCC_NOT_FOUND): Define.
1003 2009-10-03 Doug Kwan <dougkwan@google.com>
1004 Rafael Espindola <espindola@google.com>
1005 Jan Hubicka <jh@suse.cz>
1006 Diego Novillo <dnovillo@google.com>
1007 Kenneth Zadeck <zadeck@naturalbridge.com>
1009 * passes.c (all_regular_ipa_passes): New.
1010 (all_ipa_passes): Rename to all_small_ipa_passes.
1011 (init_optimization_passes): Init all_regular_ipa_passes.
1012 * tree-pass.h (all_regular_ipa_passes): New.
1013 (all_ipa_passes): Rename to all_small_ipa_passes.
1014 * passes.c (all_lto_gen_passes): New.
1015 (init_optimization_passes): Initialize all_lto_gen_passes.
1016 (execute_ipa_summary_passes): Make non-static.
1017 (ipa_write_summaries_1): New.
1018 (ipa_write_summaries_2): New.
1019 (ipa_write_summaries): New.
1020 (ipa_write_summaries_of_cgraph_node_set): New.
1021 (ipa_read_summaries_1): New.
1022 (ipa_read_summaries): New.
1023 (execute_ipa_pass_list): Call cgraph_process_new_functions.
1024 (execute_regular_ipa_pass_list): Remove.
1025 (init_optimization_passes): Schedule
1026 pass_rebuild_cgraph_edges and pass_early_inline outside
1027 of pass_all_early_optimizations. Document reason.
1028 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
1029 pass_ipa_lto_finish_out): New pass.
1030 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
1031 (execute_all_ipa_transforms): New.
1032 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
1033 (dump_properties, debug_properties): New.
1034 * tree-optimize.c (gate_all_early_local_passes): Return
1035 false if we are in lto1.
1036 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
1037 * tree-pass.h (execute_all_ipa_transforms): Declare.
1038 (pass_ipa_function_and_variable_visibility): Declare.
1039 (pass_ipa_early_inline): Declare.
1040 (pass_ipa_lto_gimple_out): Declare.
1041 (pass_ipa_lto_wpa_fixup): Declare.
1042 (pass_ipa_lto_finish_out): Declare.
1043 (all_small_ipa_passes, all_regular_ipa_passes,
1044 all_lto_gen_passes): Declare.
1045 (execute_ipa_summary_passes): Declare.
1046 (execute_all_ipa_transforms): Declare.
1047 (ipa_write_summaries): Declare
1048 (ipa_write_summaries_of_cgraph_node_set): Declare.
1049 (ipa_read_summaries): Declare.
1051 2009-10-03 Doug Kwan <dougkwan@google.com>
1052 Ollie Wild <aaw@google.com>
1054 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
1056 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
1057 (lto_mode): New variable.
1058 (maybe_run_lto_and_relink): Handle the -fwpa option.
1059 (main): Handle the -fwpa option.
1060 (maybe_unlink_list): New function.
1061 * gcc.c (link_lto_options): Replace -flto with -fwpa.
1062 * common.opt (flto): New flag.
1063 * toplev.c (flag_generate_lto): Declare.
1065 2009-10-03 Simon Baldwin <simonb@google.com>
1067 * common.opt (flto-compression-level): New flag.
1069 * opts.c: Include lto-opts.h.
1070 (handle_option): Call lto_register_user_option for each
1071 valid option handled.
1072 (decode_options): Clear registered options before the options
1075 2009-10-03 Cary Coutant <ccoutant@google.com>
1077 * collect2.c (is_elf): New function.
1078 (scan_prog_file): Require LTO object to be in ELF format.
1080 2009-10-03 Rafael Espindola <espindola@google.com>
1082 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
1083 libgcc to the linker.
1085 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
1087 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
1088 (collect_execute): Add flags argument. Pass flags to pex_run. Update
1090 * collect2.h (collect_execute): Add flags argument.
1091 * tlink.c (tlink_execute): Update call to collect_execute.
1092 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
1093 (use_linker_plugin): New.
1094 (use_linker_plugin_spec_function): New.
1095 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
1096 (linker_plugin_file_spec): New.
1097 (lto_wrapper_spec): New.
1098 (lto_gcc_spec): New.
1099 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
1100 (static_spec_functions): Add use-linker-plugin.
1101 (process_command): Handle -use-linker-plugin.
1102 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
1103 linker_plugin_file_spec and lto_gcc_spec.
1104 (use_linker_plugin_spec_function): New.
1106 2009-10-03 Richard Guenther <rguenther@suse.de>
1110 * tree.h (is_lang_specific): Include LANG_TYPE.
1111 * tree.c (find_decls_types_r): Manually add interesting parts
1112 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
1114 * gimple.c (type_pair_hash): Make symmetric.
1115 (type_pair_eq): Likewise.
1116 (lookup_type_pair): Increase initial hashtable size.
1117 (gimple_force_type_merge): Rely on type-pair symmetry.
1118 (visit): Remove excessive checking code.
1119 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
1120 (gimple_register_type): Remove getenv calls, shrink initial
1124 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
1125 inline functions if not generating lto output.
1128 * toplev.c (finalize): In WPA mode remove the asm file.
1130 2009-10-03 Doug Kwan <dougkwan@google.com>
1132 * ipa-inline.c (cgraph_mark_inline): Check
1133 edge->call_stmt_cannot_inline_p instead of calling
1134 gimple_call_cannot_inline_p.
1135 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
1136 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
1137 (inline_generate_summary): Do nothing in LTRANS.
1138 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
1139 exists before calling gimple_call_cannot_inline_p.
1140 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
1141 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
1142 Update new_edge->lto_stmt_uid.
1143 * cgraphbuild.c (reset_inline_failed): New.
1145 * common.opt (fwpa): New flag.
1146 (fltrans): New option.
1147 * gcc.c (gcc_lto_option_t): New type.
1148 (current_lto_option): New variable.
1149 (lto_single_spec_function): Remove and is replaced by ..
1150 (lto_option_spec_function): New function.
1151 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
1152 passing the -flto flag.
1153 (cc1_options): Separate non-LTO related parts into ..
1154 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
1155 (lto1_options): New spec for lto FE.
1156 (link_lto_options): New spec for handling LTO flags in linker.
1157 (invoke_lto_single): Re-format to fit in 80 column. Replace
1158 lto-single with lto-option.
1159 (static_specs): Add cc1_non_lto_options, lto1_options and
1161 (static_spec_function): Replace lto-single with lto-option.
1162 (process_command): Handle -flto, -fwpa and -fltran by setting
1163 current_lto_option and not passing it to subprocess unconditionally.
1165 2009-10-03 Bill Maddox <maddox@google.com>
1167 Add `gcc' driver support for link-time code generation (LTO).
1169 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
1170 (lto_flag, lto_objects, lto_o_file): New variables.
1171 (struct lto_object, struct lto_object_list): New structures.
1172 (collect_exit, handler): Remove LTO temporary output file on exit.
1173 (add_lto_object): New function.
1174 (maybe_run_lto_and_relink): New function. Perform link time code
1175 generation and relinking for object files containing LTO information.
1176 (main): Invoke maybe_run_lto_and_relink().
1177 (dump_argv): New function. For debugging, currently disabled.
1178 (scan_prog_file): Add LTO information pass.
1179 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
1181 * toplev.c (compile_file): Emit assembler directive to create
1182 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
1184 2009-10-03 Diego Novillo <dnovillo@google.com>
1186 * c.opt: Add LTO to warn_abi and warn_psabi.
1188 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
1189 inline function. Ignore language-specific nodes. Update all users.
1190 (find_decls_types_r): Do not traverse the subtrees of
1191 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
1192 * tree.h (is_lang_specific): New.
1193 * langhooks.h (struct lang_hooks_for_decls): Remove
1194 may_need_assembler_name_p. Update all users.
1196 * c-common.c (set_builtin_user_assembler_name): Move ...
1197 * builtins.c (set_builtin_user_assembler_name): ... here.
1198 (is_builtin_name): Add comment
1199 (is_builtin_fn): New.
1200 * except.c (output_ttype): Only call
1201 lookup_type_for_runtime if TYPE is not a runtime type.
1203 * passes.c (register_pass): Call position_pass on
1204 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
1205 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
1206 (TV_IPA_LTO_DECL_IO): Define.
1207 (TV_IPA_LTO_CGRAPH_IO): Define.
1209 (TV_WHOPR_WPA): Define.
1210 (TV_WHOPR_WPA_IO): Define.
1211 (TV_WHOPR_LTRANS): Define.
1212 (TV_WHOPR_WPA_FIXUP): Define.
1213 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
1214 * tree-cfg.c (tree_node_can_be_shared): Make extern.
1215 * tree-flow.h (tree_node_can_be_shared): Declare.
1216 * tree-inline.c (tree_can_inline_p): Check that E has a
1217 statement associated with it.
1218 * tree.c (free_lang_data_in_binf): Factor out of ...
1219 (free_lang_data_in_type): ... here.
1220 Call RECORD_OR_UNION_TYPE_P.
1221 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
1222 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
1223 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
1224 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
1225 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
1226 (gate_free_lang_data): Return true if flag_generate_lto is set.
1227 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
1228 * c-common.h (set_builtin_user_assembler_name): Move ...
1229 * tree.h (set_builtin_user_assembler_name): ... here.
1231 * common.opt (flto-report): New flag.
1232 * opts.c (complain_wrong_lang): Do not complain if running lto1.
1233 * collect2.c (scan_prog_file): Send the error output of
1234 'nm' to HOST_BIT_BUCKET.
1236 2009-10-03 Ollie Wild <aaw@google.com>
1238 * langhooks-def.h (lhd_begin_section): New function declaration.
1239 (lhd_write_section): New function declaration.
1240 (lhd_end_section): New function declaration.
1241 (LANG_HOOKS_BEGIN_SECTION): New macro.
1242 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
1243 (LANG_HOOKS_END_SECTION): New macro.
1244 (LANG_HOOKS_LTO): New macro.
1245 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
1246 * langhooks.c (output.h): Add include.
1247 (saved_section): New static variable.
1248 (lhd_begin_section): New function.
1249 (lhd_write_section_data): New function.
1250 (lhd_end_section): New function.
1251 * langhooks.h (struct lang_hooks_for_lto): New structure.
1252 (struct lang_hooks): Add member lto.
1253 * Makefile.in (langhooks.o): Add dependency on output.h.
1255 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
1257 2009-10-03 Richard Guenther <rguenther@suse.de>
1259 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1262 2009-10-03 Simon Baldwin <simonb@google.com>
1263 Richard Guenther <rguenther@suse.de>
1264 Janis Johnson <janis187@us.ibm.com>
1265 Doug Kwan <dougkwan@google.com>
1266 Diego Novillo <dnovillo@google.com>
1267 Ramana Radhakrishnan <ramana.r@gmail.com>
1268 Ollie Wild <aaw@google.com>
1270 * doc/install.texi: Add documentation for libelf and --enable-lto.
1271 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
1272 -flto-report, -flto-compression-level and -use-linker-plugin.
1273 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
1274 Add section for LTO Testing.
1276 2009-10-02 Cary Coutant <ccoutant@google.com>
1278 Add support for comdat type sections for DWARF v4.
1279 Merge from dwarf4 branch.
1281 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
1282 (dw_die_ref): Define vector type.
1283 (enum dw_val_class): Add dw_val_class_data8.
1284 (struct dw_val_struct): Add v.val_data8.
1285 (comdat_type_node_ref): New type.
1286 (struct die_struct): Move die_symbol into a union; add new field
1287 die_type_node. Change all uses.
1288 (comdat_type_node): New type.
1289 (skeleton_chain_node): New type.
1290 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
1291 (comdat_type_list): New variable.
1292 (dwarf_tag_name): Add DW_TAG_type_unit.
1293 (dwarf_attr_name): Add DW_AT_signature.
1294 (add_AT_data8): New function.
1295 (replace_child): New function.
1296 (move_all_children): New function.
1297 (print_signature): New function.
1298 (print_die): Print signature information; add dw_val_class_data8.
1299 (attr_checksum): Support dw_val_class_data8.
1300 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
1301 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
1302 (checksum_sleb128, checksum_uleb128): New functions.
1303 (checksum_die_context): New function.
1304 (loc_checksum_ordered): New function.
1305 (attr_checksum_ordered): New function.
1306 (struct checksum_attributes): New structure.
1307 (collect_checksum_attributes): New function.
1308 (die_checksum_ordered): New function.
1309 (generate_type_signature): New function.
1310 (same_dw_val_p): Add dw_val_class_data8.
1311 (is_symbol_die): Use new is_declaration_die function.
1312 (is_declaration_die): New function.
1313 (should_move_die_to_comdat): New function.
1314 (clone_die): New function.
1315 (clone_tree): New function.
1316 (clone_as_declaration): New function.
1317 (copy_declaration_context): New function.
1318 (generate_skeleton_ancestor_tree): New function.
1319 (generate_skeleton_bottom_up): New function.
1320 (generate_skeleton): New function.
1321 (remove_child_or_replace_with_skeleton): New function.
1322 (break_out_comdat_types): New function.
1323 (struct decl_table_entry): New type.
1324 (htab_decl_hash): New function.
1325 (htab_decl_eq): New function.
1326 (htab_decl_del): New function.
1327 (copy_ancestor_tree): New function.
1328 (copy_decls_walk): New function.
1329 (copy_decls_for_unworthy_types): New function.
1330 (build_abbrev_table): Don't assert on missing die_symbol when doing
1331 comdat type sections.
1332 (size_of_die): Use DW_FORM_sig8 for external references. Add
1334 (unmark_dies): Don't assert for unmarked dies when doing comdat
1336 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
1337 (output_signature): New function.
1338 (output_die): Likewise.
1339 (output_compilation_unit_header): Mark output as DWARF version 3
1340 even if generating DWARF 4.
1341 (output_comdat_type_unit): New function.
1342 (output_line_info): Mark output as DWARF version 3 even if generating
1344 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
1346 (dwarf2out_end_source_file): Likewise.
1347 (prune_unused_types_walk_attribs): Don't follow references into
1348 comdat type sections.
1349 (prune_unused_types_mark): When generating type units, do not mark
1350 children of non-defining declarations of types; do mark children of
1352 (prune_unused_types): Process comdat type sections.
1353 (htab_ct_hash): New function.
1354 (htab_ct_eq): New function.
1355 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
1356 Add a pointer to the line table from type unit entries so
1357 DW_AT_decl_file has meaning.
1358 * varasm.c (default_elf_asm_named_section): Use identifier name as
1359 comdat key instead of lang hook.
1361 2009-10-02 Neil Vachharajani <nvachhar@google.com>
1363 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
1365 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
1367 * config/i386/i386.md (SWIM248): New mode iterator.
1368 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
1369 divmodhi4 patterns using SWIM248 macro.
1370 (*divmod<mode>4): Macroize insn_and_split pattern from
1371 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
1372 and their corresponding splitters usign SWIM248 macro. Split SImode
1373 insn to generate cltd and DImode insn to generate cqto instead of
1374 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
1375 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
1376 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
1377 *divmodsi_noext patterns using SWIM248 macro.
1378 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
1379 udivmodhi4 patterns using SWIM248 macro.
1380 (*udivmod<mode>4): Macroize insn_and_split pattern from
1381 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
1382 corresponding splitters using SWIM248 macro.
1383 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
1384 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
1386 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1388 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
1389 of zero-sized element is zero-sized regardless of its extent.
1391 2009-10-02 Jakub Jelinek <jakub@redhat.com>
1394 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
1395 * configure: Regenerated.
1396 * config.in: Regenerated.
1397 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
1398 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
1399 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
1400 not emitting .eh_frame, emit .cfi_sections .debug_frame
1405 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
1406 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
1408 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
1409 vars use DECL_RTL with resetting it back to NULL afterwards.
1410 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
1411 rtx_equal_p instead of asserting it is a SYMBOL_REF.
1412 (value_format): For dw_val_class_addr only use DW_FORM_addr if
1413 the attribute type allows it, otherwise use DW_FORM_dataN.
1414 (mem_loc_descriptor): Handle CONST_STRING.
1415 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
1416 Handle MEM with CONST_STRING address using add_AT_string.
1417 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
1418 CONST_STRING for const arrays initialized with a string literal.
1419 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
1420 (dwarf2out_finish): Call resolve_addr.
1422 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
1423 Maxim Kuvyrkov <maxim@codesourcery.com>
1425 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
1427 2009-10-02 Nick Clifton <nickc@redhat.com>
1429 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
1430 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
1432 2009-10-01 Jan Hubicka <jh@suse.cz>
1434 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
1435 (cgraph_create_virtual_clone): Just pass redirect_callers
1437 * cgraph.h (cgraph_clone_node): Update prototype.
1438 * ipa-pure-const.c (self_recursive_p): New function.
1439 (propagate): Use it.
1440 * ipa-inline.c (cgraph_clone_inlined_nodes,
1441 cgraph_decide_recursive_inlining): Update.
1443 2009-10-01 David Daney <ddaney@caviumnetworks.com>
1445 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
1446 instructions for TARGET_OCTEON.
1448 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1450 * config/arm/arm.c (arm_override_options): Turn off
1451 flag_dwarf2_cfi_asm for AAPCS variants.
1453 2009-10-01 Martin Jambor <mjambor@suse.cz>
1456 * tree-sra.c (convert_callers): Do not call
1457 compute_inline_parameters on one caller more than once.
1459 2009-10-01 Nick Clifton <nickc@redhat.com>
1461 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
1462 an empty string if not already defined.
1464 2009-10-01 Martin Jambor <mjambor@suse.cz>
1467 * tree-sra.c (is_va_list_type): New function.
1468 (find_var_candidates): Call is_va_list_type.
1469 (find_param_candidates): Check that the type or the type pointed
1470 to are not va_list types.
1472 2009-10-01 Martin Jambor <mjambor@suse.cz>
1475 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
1476 DECL_ARTIFICIAL (param_decl) is true.
1478 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
1480 * tree.h (tree_decl_common::lang_flag_8): New.
1481 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
1483 * c-common.h (RID_CONSTEXPR): New.
1485 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
1487 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
1488 Use ref-all pointers.
1489 (alpha_gimplify_va_arg): Ditto.
1491 2009-09-30 Jakub Jelinek <jakub@redhat.com>
1494 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
1495 before insn counting loop now that BB_END (bb) is counted. Ensure
1496 the return value isn't zero.
1498 2009-09-30 Nick Clifton <nickc@redhat.com>
1500 * config.gcc (sh-symbianelf): Replace definition of extra_objs
1501 with separate definitions of c_target_objs and cxx_target_objs.
1502 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
1504 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
1505 sh_symbian_import_export_class.
1506 * config/sh/sh-protos.h: Fix names of exported symbian functions.
1507 * config/sh/symbian.c: Delete, moving code into...
1508 * config/sh/symbian-base.c: ... here
1509 * config/sh/symbian-c.c: ... and here
1510 * config/sh/symbian-cxx.c: ... and here.
1512 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
1515 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
1516 of plus RTX into register.
1518 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1520 * doc/install.texi: Linguistic and markup fixes.
1521 (Configuration) <--disable-cpp>: Remove description.
1522 <--enable-maintainer-mode>: Autotools files are affected, too.
1523 <--with-sysroot>: Improve description.
1524 (Building): Bump required GNU make version.
1526 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
1528 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
1529 (x86_64-*-*): Ditto.
1531 * config/i386/fma4intrin.h: New file, provide common x86 compiler
1532 intrinisics for FMA4.
1533 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
1534 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
1535 Add FMA4 check and fma4intrin.h.
1536 * config/i386/i386-c.c(ix86_target_macros_internal): Check
1538 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
1539 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
1540 constant for FMA4 support.
1541 (UNSPEC_FMA4_FMADDSUB): Ditto.
1542 (UNSPEC_FMA4_FMSUBADD): Ditto.
1543 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
1544 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
1545 (ix86_expand_fma4_multiple_memory): Ditto.
1546 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
1547 (OPTION_MASK_ISA_FMA4_UNSET): New.
1548 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
1549 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
1550 (ix86_handle_option): Handle -mfma4.
1551 (isa_opts): Handle -mfma4.
1552 (enum pta_flags): Add PTA_FMA4.
1553 (override_options): Add FMA4 support.
1554 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
1555 (IX86_BUILTIN_VFMADDSD): Ditto.
1556 (IX86_BUILTIN_VFMADDPS): Ditto.
1557 (IX86_BUILTIN_VFMADDPD): Ditto.
1558 (IX86_BUILTIN_VFMSUBSS): Ditto.
1559 (IX86_BUILTIN_VFMSUBSD): Ditto.
1560 (IX86_BUILTIN_VFMSUBPS): Ditto.
1561 (IX86_BUILTIN_VFMSUBPD): Ditto.
1562 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
1563 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
1564 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
1565 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
1566 (IX86_BUILTIN_VFNMADDSS): Ditto.
1567 (IX86_BUILTIN_VFNMADDSD): Ditto.
1568 (IX86_BUILTIN_VFNMADDPS): Ditto.
1569 (IX86_BUILTIN_VFNMADDPD): Ditto.
1570 (IX86_BUILTIN_VFNMSUBSS): Ditto.
1571 (IX86_BUILTIN_VFNMSUBSD): Ditto.
1572 (IX86_BUILTIN_VFNMSUBPS): Ditto.
1573 (IX86_BUILTIN_VFNMSUBPD): Ditto.
1574 (IX86_BUILTIN_VFMADDPS256): Ditto.
1575 (IX86_BUILTIN_VFMADDPD256): Ditto.
1576 (IX86_BUILTIN_VFMSUBPS256): Ditto.
1577 (IX86_BUILTIN_VFMSUBPD256): Ditto.
1578 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
1579 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
1580 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
1581 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
1582 (IX86_BUILTIN_VFNMADDPS256): Ditto.
1583 (IX86_BUILTIN_VFNMADDPD256): Ditto.
1584 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
1585 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
1586 (enum multi_arg_type): New enum for describing the various FMA4
1587 intrinsic argument types.
1588 (bdesc_multi_arg): New table for FMA4 intrinsics.
1589 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
1590 (ix86_expand_multi_arg_builtin): New function for creating FMA4
1592 (ix86_expand_builtin): Add FMA4 intrinsic support.
1593 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
1594 operand instructions.
1595 (ix86_expand_fma4_multiple_memory): New function to split the
1596 second memory reference from FMA4 instructions.
1597 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
1598 (ssemodesuffixf2s): Ditto.
1599 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
1601 (fma4_fmsub<mode>4): Ditto.
1602 (fma4_fnmadd<mode>4): Ditto.
1603 (fma4_fnmsub<mode>4): Ditto.
1604 (fma4_vmfmadd<mode>4): Ditto.
1605 (fma4_vmfmsub<mode>4): Ditto.
1606 (fma4_vmfnmadd<mode>4): Ditto.
1607 (fma4_vmfnmsub<mode>4): Ditto.
1608 (fma4_fmadd<mode>4256): Ditto.
1609 (fma4_fmsub<mode>4256): Ditto.
1610 (fma4_fnmadd<mode>4256): Ditto.
1611 (fma4_fnmsub<mode>4256): Ditto.
1612 (fma4_fmaddsubv8sf4): Ditto.
1613 (fma4_fmaddsubv4sf4): Ditto.
1614 (fma4_fmaddsubv4df4): Ditto.
1615 (fma4_fmaddsubv2df4): Ditto.
1616 (fma4_fmsubaddv8sf4): Ditto.
1617 (fma4_fmsubaddv4sf4): Ditto.
1618 (fma4_fmsubaddv4df4): Ditto.
1619 (fma4_fmsubaddv2df4): Ditto.
1620 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
1621 instructions for intrinsics.
1622 (fma4i_fmsub<mode>4): Ditto.
1623 (fma4i_fnmadd<mode>4): Ditto.
1624 (fma4i_fnmsub<mode>4): Ditto.
1625 (fma4i_vmfmadd<mode>4): Ditto.
1626 (fma4i_vmfmsub<mode>4): Ditto.
1627 (fma4i_vmfnmadd<mode>4): Ditto.
1628 (fma4i_vmfnmsub<mode>4): Ditto.
1629 (fma4i_fmadd<mode>4256): Ditto.
1630 (fma4i_fmsub<mode>4256): Ditto.
1631 (fma4i_fnmadd<mode>4256): Ditto.
1632 (fma4i_fnmsub<mode>4256): Ditto.
1633 (fma4i_fmaddsubv8sf4): Ditto.
1634 (fma4i_fmaddsubv4sf4): Ditto.
1635 (fma4i_fmaddsubv4df4): Ditto.
1636 (fma4i_fmaddsubv2df4): Ditto.
1637 (fma4i_fmsubaddv8sf4): Ditto.
1638 (fma4i_fmsubaddv4sf4): Ditto.
1639 (fma4i_fmsubaddv4df4): Ditto.
1640 (fma4i_fmsubaddv2df4): Ditto.
1642 * doc/invoke.texi (-mfma4): Add documentation.
1643 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
1645 2009-09-29 Richard Henderson <rth@redhat.com>
1647 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
1648 an edge to the new destination block.
1650 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1653 * pa.c (hppa_profile_hook): Use
1654 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
1656 2009-09-29 Steve Ellcey <sje@cup.hp.com>
1657 Alexander Monakov <amonakov@ispras.ru>
1660 * config/ia64/predicates.md (not_postinc_destination_operand): New.
1661 (not_postinc_memory_operand): New.
1662 (not_postinc_move_operand): New.
1663 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
1664 (*cmovsi_internal): Ditto.
1666 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
1668 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
1669 restrict issue_rate in first pass when scheduling for register
1672 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
1673 Rafael Avila de Espindola <espindola@google.com>
1675 * gengtype.c (plugin_output): New.
1676 (get_output_file_with_visibility): Return plugin_output for plugins.
1677 (main): Parse and use the -P option.
1678 * gty.texi: Update the command line format.
1680 2009-09-29 Jakub Jelinek <jakub@redhat.com>
1683 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
1685 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
1686 out if !const_ok_for_output.
1689 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
1690 case VAR_LOCATION>: Remove gcc_unreachable ().
1692 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
1694 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
1695 (x86_64-*-*): Ditto.
1696 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
1697 back to smmintrin.h.
1698 * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
1699 * config/i386/x86intrin.h: Remove SSE5.
1700 * config/i386/mmintrin-common.h: Delete file.
1701 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
1703 2009-09-29 Richard Guenther <rguenther@suse.de>
1705 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
1706 resulting from stack temporaries on STRICT_ALIGNMENT targets.
1708 2009-09-29 Nick Clifton <nickc@redhat.com>
1710 * function.c (current_function_name): If there is no current
1711 function just return "<none>".
1713 2009-09-28 Sriraman Tallam <tmsriram@google.com>
1715 * tree-pass.h (register_pass_info): New structure.
1716 (pass_positioning_ops): Move enum from gcc-plugin.h.
1717 (register_pass): New function.
1718 * gcc-plugin.h (plugin_pass): Delete structure.
1719 (pass_positioning_ops): Delete enum.
1720 * plugin.c (regsiter_pass): Delete function.
1721 (position_pass): Delete function.
1722 (added_pass_nodes): Delete variable.
1723 (prev_added_pass_nodes): Delete variable.
1724 (pass_list_node): Delete structure.
1725 * passes.c (make_pass_instance): New function.
1726 (next_pass_1): Change to call make_pass_instance.
1727 (pass_list_node): Move structure from gcc-plugin.h.
1728 (added_pass_nodes): Move variable from plugin.c.
1729 (prev_added_pass_nodes): Move variable from plugin.c.
1730 (position_pass): New function.
1731 (register_pass): New function.
1733 2009-09-28 Easwaran Raman <eraman@google.com>
1735 * ifcvt.c (noce_try_abs): Recognize pattern and call
1736 expand_one_cmpl_abs_nojump.
1737 * optabs.c (expand_one_cmpl_abs_nojump): New function.
1738 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
1740 2009-09-28 Ian Lance Taylor <iant@google.com>
1743 * c-opts.c (c_common_handle_option): Don't set
1744 warn_jump_misses_init for -Wall.
1745 * doc/invoke.texi (Warning Options): Update documentation.
1747 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1749 * Makefile.in ($(out_object_file)): Depend on
1750 gt-$(basename $(notdir $(out_file))).h.
1752 2009-09-28 Richard Henderson <rth@redhat.com>
1754 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
1755 * except.c (gen_eh_region): Set it.
1756 (duplicate_eh_regions_1): Copy it.
1757 * tree-eh.c (lower_resx): Use it to determine which function
1760 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
1761 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
1762 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
1763 * tree.c (build_common_builtin_nodes): Remove parameter. Build
1764 BUILT_IN_CXA_END_CLEANUP if necessary.
1766 * c-common.c (c_define_builtins): Update call to
1767 build_common_builtin_nodes.
1769 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
1771 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
1773 2009-09-28 Michael Matz <matz@suse.de>
1775 * builtins.c (interclass_mathfn_icode): New helper.
1776 (expand_builtin_interclass_mathfn): Use it here, and split folding
1778 (fold_builtin_interclass_mathfn): ... this new folder.
1779 (build_call_nofold_loc): New static helper.
1780 (build_call_nofold): New wrapper macro for above.
1781 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
1782 (expand_builtin_pow): Ditto.
1783 (expand_builtin_memset_args): Ditto.
1784 (expand_builtin_printf): Ditto.
1785 (expand_builtin_fprintf): Ditto.
1786 (expand_builtin_sprintf): Ditto.
1787 (expand_builtin_memory_chk): Ditto.
1788 (expand_builtin_mempcpy_args): Ditto and don't call folders.
1789 (expand_builtin_stpcpy): Ditto.
1790 (expand_builtin_strcmp): Ditto.
1791 (expand_builtin_strncmp): Ditto.
1792 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
1793 (expand_builtin_strcpy_args): Don't call folders.
1794 (expand_builtin_memcmp): Ditto.
1795 (expand_builtin_strncpy): Ditto, and use target.
1796 (expand_builtin_memcpy): Ditto.
1797 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
1798 expand_builtin_strpbrk, expand_builtin_memmove,
1799 expand_builtin_memmove_args, expand_builtin_bcopy,
1800 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
1801 expand_builtin_strspn, expand_builtin_strcspn,
1802 expand_builtin_fputs): Remove these.
1803 (expand_builtin): Don't call the above, change calls to other
1804 expanders that changed prototype.
1805 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
1806 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
1807 fold_builtin_interclass_mathfn.
1808 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
1809 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
1811 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
1812 * passes.c (init_optimization_passes): Move pass_fold_builtins
1813 after last phiopt pass.
1814 * tree-inline.c (fold_marked_statements): When folding builtins
1815 iterate over all instruction potentially generated.
1816 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
1818 (fold_gimple_call): Use it to always fold calls (into potentially
1819 multiple instructions).
1820 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
1821 calls into zero at this time.
1822 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
1823 statements generated by builtin folding.
1825 2009-09-28 Nick Clifton <nickc@redhat.com>
1827 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
1829 2009-09-28 Duncan Sands <baldrick@free.fr>
1831 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
1832 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
1833 (register_callback): Dispatch it.
1834 (invoke_plugin_callbacks): Incorporate in sanity check.
1835 * ggc.h (ggc_register_cache_tab): Add declaration.
1836 * ggc-common.c (ggc_register_root_tab): Simplify.
1837 (const_ggc_cache_tab_t): New typedef.
1838 (extra_cache_vec): New vector of dynamically added cache tables.
1839 (ggc_register_cache_tab): New function.
1840 (ggc_scan_cache_tab): New function.
1841 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
1842 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
1844 2009-09-27 Richard Henderson <rth@redhat.com>
1846 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
1847 which we remove __builtin_stack_restore.
1849 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
1851 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
1852 to test for GRD_INVARIANT.
1853 (simple_rhs_p): Anything that's function_invariant_p is fine.
1855 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
1857 * gengtype.c (main): Use plunge_files instead of plugin_output.
1859 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
1860 Rafael Avila de Espindola <espindola@google.com>
1862 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
1863 Don't print pch related info if it is false.
1864 (main): Don't print pch info in plugin mode.
1866 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
1868 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
1869 with dw_val_class_const_double.
1870 (struct dw_val_struct): Replace val_long_long with val_double and
1871 adjust for above change.
1872 (output_loc_operands): Likewise.
1873 (add_AT_long_long): Rename into...
1874 (add_AT_double): ...this.
1875 (print_die): Replace dw_val_class_long_long with
1876 dw_val_class_const_double and adjust.
1877 (attr_checksum): Likewise.
1878 (same_dw_val_p): Likewise.
1879 (size_of_die): Likewise.
1880 (value_format): Likewise.
1881 (output_die): Likewise.
1882 (loc_descriptor) <CONST_DOUBLE>: Likewise.
1883 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
1884 instead of add_AT_long_long.
1885 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
1886 value with the precision of its type.
1888 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
1891 * c-typeck.c (build_conditional_expr): Use the readonly and
1892 volatile flags of the operand types, not of the operands itself.
1894 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
1896 * collect2.c (main): Look for -brtl before adding libraries.
1898 2009-09-27 Jonathan Gray <jsg@openbsd.org>
1900 * config.gcc: Update OpenBSD targets.
1901 * config/openbsd-stdint.h: New file.
1902 * config/openbsd-libpthread.h: New file.
1903 * config/openbsd.h: Update and break out LIB_SPEC definition.
1904 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
1905 * config/i386/openbsdelf.h: Correct types.
1906 * config/m68k/openbsd.h: Likewise.
1907 * config/mips/openbsd.h: Likewise.
1908 * config/vax/openbsd.h: Likewise.
1910 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
1912 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
1913 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
1914 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
1915 of the length and zero.
1917 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1919 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
1920 (FLAGS_H): Add options.h $(REAL_H).
1921 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
1922 (TREE_VECTORIZER_H): New.
1923 (EBITMAP_H): Renamed from EBIMAP_H.
1924 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
1925 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
1926 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
1927 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
1928 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
1929 (graphite-clast-to-gimple.o, graphite-dependences.o)
1930 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
1931 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
1932 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
1933 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
1934 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
1935 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
1936 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
1937 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
1938 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
1939 updated and fixed as per above changes and per
1940 check_makefile_deps.sh output.
1943 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
1944 * configure: Regenerate.
1946 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1948 * doc/install.texi: Update minimum MPC version to 0.7.
1950 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
1952 * doc/install.texi (Binaries): Remove reference to the binary
1953 distribution CD-ROM from the FSF.
1955 2009-09-26 Michael Matz <matz@suse.de>
1959 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
1960 that are mentioned in the body.
1962 2009-09-26 Michael Matz <matz@suse.de>
1964 PR tree-optimization/41454
1965 * tree-ssa-dom (stmts_to_rescan): Remove variable.
1966 (tree_ssa_dominator_optimize): Don't allocate and free it.
1967 (dom_opt_leave_block): Don't iterate over it.
1968 (eliminate_redundant_computations): Don't return a value.
1969 (cprop_operand, cprop_into_stmt): Ditto.
1970 (optimize_stmt): Don't defer updating stmts.
1972 2009-09-25 Dodji Seketeli <dodji@redhat.com>
1974 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
1975 generic_parameter_die, template_parameter_pack_die,
1976 gen_formal_parameter_die, gen_subprogram_die): Adjust after
1977 renaming DW_TAG_formal_parameter_pack and
1978 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
1979 and DW_TAG_GNU_template_parameter_pack.
1981 2009-09-25 Anatoly Sokolov <aesok@post.ru>
1983 * config/v850/v850.h (FUNCTION_VALUE): Remove.
1984 * config/v850/v850.c (v850_function_value): New function.
1985 (TARGET_FUNCTION_VALUE): Define.
1987 2009-09-25 Jakub Jelinek <jakub@redhat.com>
1989 * tree-vect-stmts.c (vectorizable_call): Call
1990 mark_symbols_for_renaming after vect_finish_stmt_generation.
1992 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
1993 to loc_descriptor_from_tree.
1994 (add_location_or_const_value_attribute): Pass 0 instead of 2
1995 for decl_by_reference_p decls.
1997 2009-09-25 Richard Guenther <rguenther@suse.de>
2000 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
2003 2009-09-25 Ben Elliston <bje@au.ibm.com>
2005 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
2008 2009-09-25 Alan Modra <amodra@bigpond.net.au>
2010 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
2011 form of instruction.
2013 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2016 * fold-const.c (const_binop): Handle complex int division.
2017 * tree-complex.c (expand_complex_div_straight,
2018 expand_complex_div_wide): Update comments.
2020 2009-09-24 DJ Delorie <dj@redhat.com>
2023 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
2024 (reg_class): Likewise.
2025 (REG_CLASS_NAMES): Likewise.
2026 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
2027 (m32c_override_options): Disable -fivopts for M32C.
2029 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2031 * config/rs6000/predicates.md (indexed_or_indirect_operand):
2032 Delete VSX load/store with update support.
2033 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
2034 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
2038 (VStype_load_update): Ditto.
2039 (VStype_store_update): Ditto.
2040 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2041 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2043 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
2044 load/store with update builtins.
2046 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
2048 * libgcc2.c (L_trampoline): Prototype for getpagesize
2049 and mprotect in WINNT case.
2051 2009-09-24 Anatoly Sokolov <aesok@post.ru>
2053 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
2054 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
2055 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
2056 'outgoing' argument.
2057 (TARGET_FUNCTION_VALUE): Define.
2059 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2061 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
2063 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2066 * common.opt: Initialize dwarf_strict to -1.
2067 * toplev.c (process_options): Catch unset dwarf_strict
2068 and set to 0 for all targets not overriding.
2069 * config/darwin.c (darwin_override_options): Catch unset
2070 dwarf_strict and override to 1.
2072 2009-09-24 Jeff Law <law@redhat.com>
2074 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
2076 2009-09-24 Richard Guenther <rguenther@suse.de>
2078 PR tree-optimization/36143
2079 PR tree-optimization/38747
2080 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
2081 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
2083 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2086 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
2087 return false instead of gcc_unreachable (). For CONST return the
2088 value returned by recursive call instead of always returning true.
2089 (tree_add_const_value_attribute): Return the value returned by
2090 add_const_value_attribute instead of always returning true if rtl
2093 2009-09-23 Justin Seyster <jrseys@gmail.com>
2095 * Makefile.in (PLUGIN_HEADERS): Include real.h.
2097 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2099 * cgraphunit.c (cgraph_lower_function): Revert last change.
2100 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
2101 instead of DECL_NO_STATIC_CHAIN.
2102 * tree-cfg.c (verify_gimple_call): Likewise.
2103 * tree-nested.c (get_chain_decl, get_chain_field,
2104 convert_tramp_reference_op, convert_gimple_call): Likewise.
2105 (convert_all_function_calls): Likewise. Always set or clear
2106 DECL_STATIC_CHAIN initially, for !n->outer clear it.
2107 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
2108 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
2110 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
2111 DECL_NO_STATIC_CHAIN.
2112 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
2113 instead of DECL_NO_STATIC_CHAIN.
2114 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
2115 decl_function_context.
2116 * varasm.c (initializer_constant_valid_p): Likewise.
2117 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
2118 (DECL_STATIC_CHAIN): ... this.
2119 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
2120 instead of DECL_NO_STATIC_CHAIN.
2122 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
2123 Rafael Avila de Espindola <espindola@google.com>
2125 * gengtype.c (nb_plugin_files): Make it unsigned to match
2126 num_gt_files. Adjust other variables to avoid warnings.
2127 (main): Allocate an all zero lang_bitmap before each plugin file name
2128 to match regular file names.
2130 2009-09-23 Richard Henderson <rth@redhat.com>
2132 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2133 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
2134 static chain passed in memory.
2135 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
2136 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
2137 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
2138 STATIC_CHAIN_REGNUM defined.
2140 * config/picochip/picochip-protos.h: s/class/klass/.
2141 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
2142 (picochip_static_chain): New.
2143 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
2144 (STATIC_CHAIN_INCOMING): Remove.
2146 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
2147 (xtensa_static_chain): New.
2148 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
2149 (STATIC_CHAIN_INCOMING): Remove.
2151 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2153 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
2154 * config/pa/pa-protos.h (function_value): Remove.
2155 * config/pa/pa.c (pa_function_value): Rename from function_value.
2156 Make static, add 'outgoing' argument.
2157 (TARGET_FUNCTION_VALUE): Define.
2159 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2161 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
2162 instead of cfun->machine->is_leaf.
2163 * config/avr/avr.h (machine_function): Remove is_leaf field.
2165 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2168 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
2169 DW_OP_piece after DW_OP_stack_value, adjust size calculations
2170 for it, when DW_OP_stack_value and DW_OP_implicit_value has
2171 the same size, prefer DW_OP_stack_value.
2172 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
2173 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
2175 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2178 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
2180 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2183 * cfgexpand.c (convert_debug_memory_address): New.
2184 (expand_debug_expr): Convert base address and offset to the same
2185 mode. Use it to convert addresses to other modes. Accept
2188 2009-09-23 Richard Guenther <rguenther@suse.de>
2190 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
2191 produced for bigendian targets with promoted subregs.
2193 2009-09-23 Richard Guenther <rguenther@suse.de>
2195 * value-prof.c (gimple_ic): Purge old EH edges only after building
2198 2009-09-23 Nick Clifton <nickc@redhat.com>
2200 * config/arc/arc.c (arc_trampoline_init): Fix typo.
2202 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2205 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
2208 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
2209 on non-nested functions.
2211 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2212 Jan Hubicka <jh@suse.cz>
2214 * dwarf2out.c (loc_list_plus_const): Only define if
2215 DWARF2_DEBUGGING_INFO.
2216 (address_of_int_loc_descriptor): Likewise.
2219 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
2221 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
2224 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
2225 constant is more than zero.
2227 2009-09-23 Alan Modra <amodra@bigpond.net.au>
2230 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
2231 call final to emit non-scheduled prologue, instead insert at entry.
2233 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2234 Joseph S. Myers <joseph@codesourcery.com>
2236 * doc/install.texi (*-*-freebsd*): Add proper format codes.
2238 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2239 Rafael Avila de Espindola <espindola@google.com>
2241 * gengtype.c (is_file_equal): New function.
2242 (close_output_files): Use is_file_equal. Free of->buf.
2244 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2245 Rafael Avila de Espindola <espindola@google.com>
2247 * gengtype.c (write_types, write_local): Add the output_header
2248 argument. Update all callers.
2250 2009-09-22 Dodji Seketeli <dodji@redhat.com>
2252 * dwarf2out.c (template_parameter_pack_die,
2253 gen_formal_parameter_pack_die ): New functions.
2254 (make_ith_pack_parameter_name): Remove this function.
2255 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
2256 DW_TAG_formal_parameter_pack.
2257 (gen_generic_params_dies): Represent each template parameter pack
2258 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
2259 represented by usual DW_TAG_template_*_parameter DIEs that are
2260 children of the DW_TAG_template_parameter_pack element DIE.
2261 (generic_parameter_die): This doesn't deal with parameter pack
2262 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
2263 of parameter pack DIEs.
2264 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
2265 in certain cases, e.g. for pack elements.
2266 (gen_formal_types_die, gen_decl_die): Adjust usage of
2267 gen_formal_parameter_die.
2268 (gen_subprogram_die): Represent each function parameter pack by a
2269 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
2270 represented by usual DW_TAG_formal_parameter DIEs that are children
2271 of the DW_TAG_formal_parameter_pack DIE. Remove references to
2272 ____builtin_va_alist decls as no part of the compiler uses those
2274 * langhooks.h (struct lang_hooks_for_decls): Add
2275 function_parm_expanded_from_pack_p, get_generic_function_decl
2276 and function_parameter_pack_p hooks. Fix comment for
2277 get_innermost_generic_parms hook.
2278 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
2279 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
2280 macros and use them to initialize lang_hook.
2282 2009-09-22 Richard Henderson <rth@redhat.com>
2284 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
2285 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
2286 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
2287 on TRAMPOLINE_TEMPLATE.
2288 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
2289 TRAMPOLINE_ADJUST_ADDRESS.
2290 * targhooks.c (default_asm_trampoline_template): Remove.
2291 (default_trampoline_adjust_address): Remove.
2292 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
2293 * targhooks.h: Update decls.
2295 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
2297 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
2298 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
2299 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2301 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
2304 * reload1.c (reload): Reset debug insns with pseudos without
2307 2009-09-22 Janis Johnson <janis187@us.ibm.com>
2309 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
2310 unconditional true for decimal float modes.
2311 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
2312 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
2314 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2316 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
2317 Enable a new case for __FreeBSD__ >= 7.
2318 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
2319 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
2320 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
2321 and USE_LD_AS_NEEDED.
2323 * doc/install.texi (*-*-freebsd*): Update target information.
2325 2009-09-22 Richard Guenther <rguenther@suse.de>
2328 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
2329 arrays really properly.
2331 2009-09-22 Richard Henderson <rth@redhat.com>
2334 * target.h (struct gcc_target): Add asm_out.trampoline_template,
2335 calls.static_chain, calls.trampoline_init,
2336 calls.trampoline_adjust_address.
2337 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2338 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2339 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2340 * builtins.c (expand_builtin_setjmp_receiver): Use
2341 targetm.calls.static_chain; only clobber registers.
2342 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
2343 set up memory attributes properly for the trampoline block.
2344 (expand_builtin_adjust_trampoline): Use
2345 targetm.calls.trampoline_adjust_address.
2346 * calls.c (prepare_call_address): Add fndecl argument. Use
2347 targetm.calls.static_chain.
2348 * df-scan.c (df_need_static_chain_reg): Remove.
2349 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
2350 consolodate static chain handling.
2351 * doc/tm.texi: Document new hooks.
2352 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
2353 (init_emit_regs): Don't initialize them.
2354 * expr.h (prepare_call_address): Update decl.
2355 * final.c (profile_function): Use targetm.calls.static_chain.
2356 * function.c (expand_function_start): Likewise.
2357 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
2358 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
2359 only clobber registers.
2360 * targhooks.c (default_static_chain): New.
2361 (default_asm_trampoline_template, default_trampoline_init): New.
2362 (default_trampoline_adjust_address): New.
2363 * targhooks.h: Declare them.
2364 * varasm.c (assemble_trampoline_template): Use
2365 targetm.asm_out.trampoline_template. Make the memory block const
2368 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
2369 alpha_initialize_trampoline. Make static. Merge VMS parameter
2370 differences into the TARGET_ABI_OPEN_VMS code block.
2371 (TARGET_TRAMPOLINE_INIT): New.
2372 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
2373 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
2374 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
2375 (INITIALIZE_TRAMPOLINE): Remove.
2377 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
2378 (TRAMPOLINE_TEMPLATE): Merge with ...
2379 (INITIALIZE_TRAMPOLINE): ... this and move ...
2380 * config/arc/arc.c (arc_trampoline_init): ... here.
2381 (TARGET_TRAMPOLINE_INIT): New.
2383 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2384 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2385 (arm_asm_trampoline_template): New.
2386 (arm_trampoline_init, arm_trampoline_adjust_address): New.
2387 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
2388 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
2389 code to arm_asm_trampoline_template.
2390 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
2391 arm_trampoline_adjust_address.
2392 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
2393 adjust for target hook parameters.
2395 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
2398 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
2399 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
2400 (bfin_trampoline_init): Rename from initialize_trampoline;
2401 make static; update for target hook parameters.
2402 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2403 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
2404 bfin_asm_trampoline_template.
2405 (INITIALIZE_TRAMPOLINE): Remove.
2407 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2408 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
2409 cris_trampoline_init): New.
2410 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
2411 cris_asm_trampoline_template.
2412 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
2413 adjust for target hook parameters.
2415 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
2417 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2418 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
2419 fr30_trampoline_init): New.
2420 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
2421 fr30_asm_trampoline_template.
2422 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
2423 adjust for target hook parameters.
2425 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
2426 (frv_trampoline_init): Rename from frv_initialize_trampoline;
2427 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
2428 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
2429 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
2431 * config/h8300/h8300.c (h8300_trampoline_init): New.
2432 (TARGET_TRAMPOLINE_INIT): New.
2433 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
2434 to h8300_trampoline_init and adjust for hook parameters.
2436 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
2437 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
2438 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
2439 make static; adjust for hook parameters.
2440 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
2442 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2443 (TARGET_TRAMPOLINE_INIT): New.
2444 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
2445 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
2446 iq2000_asm_trampoline_template.
2447 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
2448 (TRAMPOLINE_CODE_SIZE): New.
2449 (TRAMPOLINE_SIZE): Use it.
2450 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
2452 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
2453 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
2454 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
2455 adjust for hook parameters.
2456 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
2458 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
2459 (m32r_trampoline_init): New.
2460 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
2461 m32r_trampoline_init.
2463 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
2464 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
2465 make static; update for hook parameters.
2466 * config/m68hc11/m68hc11-protos.h: Update.
2467 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
2469 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2470 (TARGET_TRAMPOLINE_INIT): New.
2471 (mcore_function_value): Fix typo.
2472 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
2473 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
2474 to mcore_asm_trampoline_template.
2475 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
2477 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
2478 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
2479 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
2480 update for hook parameters.
2481 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
2483 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2484 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2485 mips_trampoline_init): New.
2486 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
2487 mips_asm_trampoline_template.
2488 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
2489 update for hook parameters.
2491 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2492 (TARGET_TRAMPOLINE_INIT): New.
2493 (mmix_trampoline_size): Remove.
2494 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
2495 make static. Remove out-of-date tetra vs octa comment.
2496 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
2497 make static; update for hook parameters.
2498 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
2499 (INITIALIZE_TRAMPOLINE): Remove.
2500 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
2501 (TRAMPOLINE_ALIGNMENT): New.
2502 * gcc/config/mmix/mmix-protos.h: Update.
2504 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2505 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2506 mn10300_trampoline_init): New.
2507 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
2508 mn10300_asm_trampoline_template.
2509 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
2511 * config/moxie/moxie.c (moxie_static_chain,
2512 moxie_asm_trampoline_template, moxie_trampoline_init,
2513 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
2514 TARGET_TRAMPOLINE_INIT): New.
2515 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
2516 moxie_trampoline_init.
2517 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
2518 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2520 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2521 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2522 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
2523 pa_trampoline_adjust_address): New.
2524 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
2525 pa_asm_trampoline_template.
2526 (TRAMPOLINE_ALIGNMENT): New.
2527 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
2528 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
2529 adjust for hook parameters.
2530 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
2532 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
2533 (TARGET_TRAMPOLINE_INIT): New.
2534 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
2535 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
2537 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
2539 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
2540 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
2541 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
2542 make static; adjust parameters for the hook.
2543 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
2545 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
2546 s390_trampoline_template; make static.
2547 (s390_trampoline_init): Rename from s390_initialize_trampoline;
2548 make static; adjust for target hook.
2549 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2550 * config/s390/s390-protos.h: Remove trampoline decls.
2551 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
2552 (TRAMPOLINE_TEMPLATE): Remove.
2553 (TRAMPOLINE_ALIGNMENT): New.
2555 * config/score/score-protos.h (score_initialize_trampoline): Remove.
2556 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2557 (TARGET_TRAMPOLINE_INIT): New.
2558 (score_asm_trampoline_template): New.
2559 (score_trampoline_init): Rename from score_initialize_trampoline;
2560 make static; adjust for hook parameters.
2561 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
2562 score[37]_asm_trampoline_template.
2563 (INITIALIZE_TRAMPOLINE): Remove.
2564 * config/score/score3.c (score3_asm_trampoline_template): New.
2565 (score3_trampoline_init): Rename from score3_initialize_trampoline;
2566 adjust for target hook.
2567 * config/score/score7.c (score7_asm_trampoline_template): New.
2568 (score7_trampoline_init): Rename from score7_initialize_trampoline;
2569 adjust for target hook.
2570 * config/score/score3.h, config/score/score7.h: Update.
2572 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
2573 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
2574 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2575 (sh_trampoline_init): Rename from sh_initialize_trampoline;
2576 make static; adjust for target hook parameters.
2577 (sh_trampoline_adjust_address): New.
2578 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
2579 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
2581 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
2582 (sparc32_initialize_trampoline): Rename from
2583 sparc_initialize_trampoline; make static; replace tramp parameter
2584 with m_tramp and update memory accesses.
2585 (sparc64_initialize_trampoline): Similarly.
2586 (sparc_trampoline_init): New.
2587 * config/sparc/sparc-protos.h: Remove trampoline decls.
2588 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
2589 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
2591 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
2592 (array_to_constant): Make ARR parameter const.
2593 (spu_trampoline_init): Rename from spu_initialize_trampoline;
2594 make static; update for hook parameters.
2595 * config/spu/spu-protos.h: Update decls.
2596 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
2598 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
2599 from xstormy16_initialize_trampoline; make static; update for
2601 (TARGET_TRAMPOLINE_INIT): New.
2602 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
2604 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2605 (TARGET_TRAMPOLINE_INIT): New.
2606 (v850_can_eliminate): Make static.
2607 (v850_asm_trampoline_template, v850_trampoline_init): New.
2608 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
2609 v850_asm_trampoline_template.
2610 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
2611 and adjust for target hook parameters.
2613 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2614 (TARGET_TRAMPOLINE_INIT): New.
2615 (vax_asm_trampoline_template, vax_trampoline_init): New.
2616 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
2617 vax_asm_trampoline_template.
2618 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
2620 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2621 (TARGET_TRAMPOLINE_INIT): New.
2622 (xtensa_asm_trampoline_template): Rename from
2623 xtensa_trampoline_template; make static.
2624 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
2625 make static; update for hook parameters.
2626 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
2627 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
2628 (INITIALIZE_TRAMPOLINE): Remove.
2630 * config/i386/i386.c (ix86_function_regparm): Do not issue an
2631 error for nested functions with regparm=3.
2632 (ix86_compute_frame_layout): Adjust frame pointer offset for
2633 ix86_static_chain_on_stack.
2634 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
2635 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
2636 don't reset to UNITS_PER_WORD.
2637 (ix86_emit_leave): Adjust ix86_cfa_state.
2638 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
2639 (ix86_static_chain): New.
2640 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
2641 make static; update for target hook parameters; use ix86_static_chain.
2642 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2643 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
2644 (INITIALIZE_TRAMPOLINE): Remove.
2645 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
2646 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
2647 to the end. Add static_chain_on_stack.
2648 (ix86_static_chain_on_stack): New.
2650 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
2651 (m68k_output_mi_thunk): Don't use static_chain_rtx.
2652 (m68k_trampoline_init): New.
2653 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
2654 m68k_trampoline_init and adjust for hook parameters.
2655 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
2656 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
2658 2009-09-22 Jakub Jelinek <jakub@redhat.com>
2660 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
2661 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
2663 * reload1.c (reload): Call wrap_constant when substituting
2664 reg for equiv inside of DEBUG_INSNs.
2667 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
2668 add_call_src_coords_attributes, add_high_low_attributes,
2669 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
2670 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
2671 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
2672 when -gdwarf-2 -gstrict-dwarf.
2673 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
2674 -gdwarf-[23] -gstrict-dwarf.
2675 (address_of_int_loc_descriptor, loc_descriptor,
2676 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
2677 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
2678 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
2680 2009-09-22 Richard Guenther <rguenther@suse.de>
2682 PR tree-optimization/41428
2683 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
2684 (ccp_finalize): Pass it to substitute_and_fold.
2686 2009-09-22 Richard Guenther <rguenther@suse.de>
2688 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
2689 (substitute_and_fold): Adjust prototype.
2690 * tree-vrp.c (vrp_evaluate_conditional): Make static.
2691 (simplify_stmt_using_ranges): Likewise.
2692 (fold_predicate_in): Move here from tree-ssa-propagate.c.
2693 (vrp_fold_stmt): New function.
2694 (vrp_finalize): Pass it to substitute_and_fold.
2695 * tree-flow.h (vrp_evaluate_conditional): Remove.
2696 (simplify_stmt_using_ranges): Likewise.
2697 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
2698 * tree-ssa-copy.c (fini_copy_prop): Likewise.
2699 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
2701 (fold_predicate_in): Move to tree-vrp.c.
2702 (substitute_and_fold): Use the callback instead of calling into
2703 tree-vrp.c functions directly.
2705 2009-09-22 Jakub Jelinek <jakub@redhat.com>
2707 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
2708 comparison warning on rs6000.
2711 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
2712 GIMPLE_EH_MUST_NOT_THROW cleanup.
2713 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
2715 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
2718 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
2719 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
2720 LIB_SPEC for darwin10 and later since it always uses the unwinder in
2721 libSystem which is derived from the gcc 4.2.1 unwinder.
2723 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
2726 * varasm.c (default_encode_section_info): Copy TLS model into
2727 sym_ref flags regardless of backend support for TLS, for all
2728 model types except TLS_MODEL_EMULATED.
2730 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
2733 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
2734 we can handle it correctly.
2736 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
2738 * doc/install.texi (os2): Remove section.
2740 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
2742 * doc/standards.texi (Objective-C): Adjust two URLs.
2744 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
2746 * tree-tailcall.c (process_assignment): Don't check if a
2747 multiplication or an addition are already present.
2748 (find_tail_calls): Combine multiple additions and multiplications.
2749 (adjust_accumulator_values): Emit accumulators.
2751 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
2753 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
2754 xmm register restore.
2756 2009-09-21 Jan Hubicka <jh@suse.cz>
2758 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
2759 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
2762 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
2764 * stor-layout.c (layout_type): Remove obsolete code.
2766 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
2769 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
2771 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2774 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
2775 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
2776 (fold_builtin_2, do_mpc_arg1): Update accordingly.
2777 * fold-const.c (const_binop): Likewise.
2778 * real.h (do_mpc_arg2): Update prototype.
2780 2009-09-20 Jan Hubicka <jh@suse.cz>
2782 * dwarf2out.c (add_const_value_attribute): Return true if successful.
2783 (add_location_or_const_value_attribute): Rewrite using
2785 (tree_add_const_value_attribute): Return true if successful.
2786 (tree_add_const_value_attribute_for_decl): Likewise.
2788 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
2789 (loc_descriptor): ... here;
2790 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2791 (cst_pool_loc_descr): Break out from ...; do not reffer constant
2792 pool items that was not marked for output.
2793 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
2794 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2795 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2796 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
2797 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
2798 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
2799 DW_OP_stack_value to get address of items that are not available
2801 (dw_loc_list): Handle single element lists correctly.
2803 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
2804 Pascal Obry <obry@adacore.com>
2806 * unwind-dw2-fde.c (classify_object_over_fdes):
2807 Cast the constant 1 to _Unwind_Ptr.
2808 (add_fdes): Likewise.
2809 (linear_search_fdes): Likewise.
2811 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
2813 * stor-layout.c (set_sizetype): Avoid useless type copy.
2815 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
2817 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
2819 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
2820 * configure, config.in: Regenerate.
2821 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
2823 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
2824 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
2825 for global data if the output could be used in a shared library.
2826 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
2827 to 0 if TARGET_WRITABLE_EH_FRAME.
2829 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
2831 PR rtl-optimization/39886
2832 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
2833 just when insn is equal to BB_END (bb).
2835 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
2837 * config/mips/mips.opt (mrelax-pic-calls): New option.
2838 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
2840 (mips_unspec_call): Change "unspec_call" expander into this.
2841 (mips_strip_unspec_call): New function.
2842 (mips_got_load): Call mips_unspec_call instead of
2843 gen_unspec_call<mode>.
2844 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
2846 (mips_cfg_in_reorg): New function.
2847 (mips16_lay_out_constants): Use it to decide whether to call
2848 CFG-aware insn splitting.
2849 (r10k_insert_cache_barriers): Move CFG set-up code from here to
2850 mips_reorg. Move DF set-up code from here ...
2851 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
2853 (mips_reorg): Call mips_df_reorg instead of
2854 r10k_insert_cache_barriers. Move CFG set-up code here from
2855 r10k_insert_cache_barriers.
2856 (mips_call_expr_from_insn): New function.
2857 (mips_pic_call_symbol_from_set): Likewise.
2858 (mips_find_pic_call_symbol): Likewise.
2859 (mips_annotate_pic_call_expr): Likewise.
2860 (mips_get_pic_call_symbol): Likewise.
2861 (mips_annotate_pic_calls): Likewise.
2862 (mips_override_options): Disable -mrelax-pic-calls unless PIC
2864 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
2865 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
2866 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
2868 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
2869 (unspec_call<mode>): Remove it.
2870 (sibcall_internal, sibcall_value_internal,
2871 sibcall_value_multiple_internal, call_internal, call_split,
2872 call_value_internal, call_value_split,
2873 call_value_multiple_internal, call_value_multiple_split): Pass
2874 SIZE_OPNO to MIPS_CALL.
2875 (call_internal_direct, call_direct_split,
2876 call_value_internal_direct, call_value_direct_split): Pass -1 as
2877 SIZE_OPNO to MIPS_CALL.
2878 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
2879 * configure: Regenerate.
2880 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
2881 and -mno-relax-pic-calls.
2882 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
2884 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2887 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
2888 in the directory this rule is called from, rather than the
2889 toplevel 'gcc' directory, to fix in-tree build.
2891 2009-09-19 Chris Demetriou <cgd@google.com>
2893 PR preprocessor/28435:
2894 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
2895 to cpplib that the preprocessor output is needed.
2897 2009-09-19 Jakub Jelinek <jakub@redhat.com>
2899 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
2900 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
2901 *return_and_restore_fpregs_<mode>,
2902 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
2905 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
2906 instead of assuming it has always a REG inside of it.
2908 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
2910 * config/freebsd.h: Update comment on types.
2911 (WINT_TYPE): Define.
2913 2009-09-18 Jason Merrill <jason@redhat.com>
2915 * c.opt: Add -fno-deduce-init-list.
2917 2009-09-18 Neil Vachharajani <nvachhar@google.com>
2919 * value-prof.c (interesting_stringop_to_profile_p): Added output
2920 argument to indicate which parameter is the size parameter.
2921 * value-prof.c (gimple_stringop_fixed_value): Use
2922 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
2923 * value-prof.c (gimple_stringops_transform): Update call sites to
2924 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
2926 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
2929 From David Binderman <dcb314@hotmail.com>:
2930 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
2931 local variable f. Remove stale comments.
2932 (ix86_compute_frame_layout): Remove useless local variable total_size.
2933 Remove #if 0'd code.
2934 (legitimate_address_p): Remove useless local variables
2935 reason_rtx and reason.
2936 (ix86_split_copysign_const): Remove useless local variable op1.
2937 (scale_counter): Remove useless local variable piece_size_mask.
2939 2009-09-18 Jakub Jelinek <jakub@redhat.com>
2941 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
2944 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
2947 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
2949 2009-09-17 Jakub Jelinek <jakub@redhat.com>
2951 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
2954 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
2956 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
2957 DW_OP_implicit_value even without dwarf_version 4.
2959 2009-09-17 Jan Hubicka <jh@suse.cz>
2961 * dwarf2out.c: Include tree-pass.h and gimple.h.
2962 (loc_list_plus_const): New function.
2963 (loc_descriptor_from_tree_1): Rename to ...
2964 (loc_descriptor_from_tree): ... remove original.
2965 (loc_list_from_tree): New function.
2966 (add_AT_location_description): Accept location list.
2967 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
2968 (concatn_mem_loc_descriptor): Remove.
2969 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
2971 (secname_for_decl): Move up.
2972 (hidden_reference_p): New function; break out from ...
2973 (loc_by_refernece): ... here; move up.
2974 (dw_loc_list): New function.
2975 (single_element_loc_list): New function.
2976 (single_element_loc_list_p): New function.
2977 (add_loc_descr_to_each): New function.
2978 (add_loc_list): New function.
2979 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
2980 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
2981 add diagnostics why expansion failed.
2982 (add_location_or_const_value_attribute): Support location lists.
2983 (add_bound_info): Likewise.
2984 (descr_info_loc): Update call of loc_descriptor_from_tree.
2985 (gen_variable_die): Work on location lists.
2986 * final.c (pass_final): Add dump file.
2987 * Makefile.in (dwarf2out.o): Add new dependencies.
2989 2009-09-17 Janis Johnson <janis187@us.ibm.com>
2992 * real.c decimal_from_integer, decimal_integer_string): New.
2993 (real_from_integer): Use them as special case for decimal float.
2994 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
2995 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
2996 Do not append zero after the decimal point in string to convert.
2998 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
3000 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
3001 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
3003 2009-09-17 Martin Jambor <mjambor@suse.cz>
3005 * common.opt (fipa-sra): New switch.
3006 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
3007 * timevar.def (TV_IPA_SRA): New timevar.
3008 * params.def (ipa-sra-ptr-growth-factor): New parameter.
3009 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
3010 * tree-sra.c: Include cgraph.c.
3011 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
3012 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
3013 and grp_not_necessarilly_dereferenced.
3014 (func_param_count): New variable.
3015 (encountered_apply_args): New variable.
3016 (bb_dereferences): New variable.
3017 (final_bbs): New variable.
3018 (no_accesses_representant): New variable.
3019 (no_accesses_p): New function.
3020 (dump_access): Dump the new fields.
3021 (sra_initialize): Set encountered_apply_args to false.
3022 (get_ssa_base_param): New function.
3023 (mark_parm_dereference): New function.
3024 (create_access): Caring for INIDRECT_REFs and different handling of
3025 varialble length accesses in early IPA SRA. Store the stmt - a new
3026 parameter - to the new access.
3027 (build_access_from_expr_1): New parameter stmt, passed to
3028 create_access. Handle INDIRECT_REFs.
3029 (build_access_from_expr): Pass the current statement to
3030 build_access_from_expr_1.
3031 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
3033 (build_accesses_from_assign): Pass the current statement to
3034 build_access_from_expr_1. Do not create assign links in IPA-SRA.
3035 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
3036 final_bbs when necessary. Check for calls to __builtin_apply_args.
3037 Fixup EH info if anythng was changed.
3038 (is_unused_scalar_param): New function.
3039 (ptr_parm_has_direct_uses): New function.
3040 (find_param_candidates): New function.
3041 (mark_maybe_modified): New function.
3042 (analyze_modified_params): New function.
3043 (propagate_dereference_distances): New function.
3044 (dump_dereferences_table): New function.
3045 (analyze_caller_dereference_legality): New function.
3046 (unmodified_by_ref_scalar_representative): New function.
3047 (splice_param_accesses): New function.
3048 (decide_one_param_reduction): New function.
3049 (enum ipa_splicing_result): New type.
3050 (splice_all_param_accesses): New function.
3051 (get_param_index): New function.
3052 (turn_representatives_into_adjustments): New function.
3053 (analyze_all_param_acesses): New function.
3054 (get_replaced_param_substitute): New function.
3055 (get_adjustment_for_base): New function.
3056 (replace_removed_params_ssa_names): New function.
3057 (sra_ipa_reset_debug_stmts): New function.
3058 (sra_ipa_modify_expr): New function.
3059 (sra_ipa_modify_assign): New function.
3060 (convert_callers): New function.
3061 (modify_function): New function.
3062 (ipa_sra_preliminary_function_checks): New function.
3063 (ipa_early_sra): New function.
3064 (ipa_early_sra_gate): New function.
3065 (pass_early_ipa_sra): New variable.
3066 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
3068 2009-09-17 Michael Matz <matz@suse.de>
3071 * tree.c (build_type_attribute_qual_variant): Export.
3072 * tree.h (build_type_attribute_qual_variant): Declare.
3073 * tree-inline.c (remap_type_1): Use it to build variants with
3074 the original qualifiers and attributes.
3076 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3078 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
3079 without a fallthrough edge.
3081 2009-09-16 DJ Delorie <dj@redhat.com>
3083 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
3084 chip and ignore the "fast_interrupt" attribute if so.
3086 2009-09-16 Richard Henderson <rth@redhat.com>
3089 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
3092 2009-09-16 Richard Henderson <rth@redhat.com>
3095 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
3096 is set only if DECL_NO_STATIC_CHAIN is unset.
3097 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
3098 (FOR_EACH_NEST_INFO): New.
3099 (walk_all_functions): Use it.
3100 (finalize_nesting_tree): Likewise.
3101 (unnest_nesting_tree): Likewise.
3102 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
3103 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
3104 (convert_gimple_call): Early out if gimple_call_chain already set.
3105 (convert_all_function_calls): Iterate until no new functions
3106 require a static chain.
3107 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
3108 when building a trampoline. Use dump_function_to_file instead
3110 (lower_nested_functions): Open dump_file. Validate that decls
3111 that have DECL_NO_STATIC_CHAIN from the front end don't have that
3112 bit reset by this pass.
3114 2009-09-16 Michael Matz <matz@suse.de>
3117 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
3118 shorten decl_common_unused.
3119 (DECL_RESTRICTED_P): New accessor.
3120 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
3121 to disambiguate marked decls and restrict pointers.
3123 2009-09-16 Richard Henderson <rth@redhat.com>
3126 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
3128 2009-09-16 Jakub Jelinek <jakub@redhat.com>
3130 * integrate.c (set_block_abstract_flags): Call
3131 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
3133 2009-09-16 Richard Guenther <rguenther@suse.de>
3136 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
3139 2009-09-16 DJ Delorie <dj@redhat.com>
3140 Kaz Kojima <kkojima@gcc.gnu.org>
3142 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
3143 (sh_expand_prologue): Update calls to output_stack_adjust.
3144 (sh_expand_epilogue): Likewise.
3146 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
3149 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
3150 trying to limit the extent of searches in the insn stream.
3152 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
3153 Jakub Jelinek <jakub@redhat.com>
3157 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
3159 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
3160 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
3161 (rs6000_savres_strategy): Always save FP registers inline if the
3162 target doesn't support hardware double-precision. Set the above
3163 bits in return value when needed.
3164 (rs6000_savres_routine_sym): Fix computation for cache selector.
3165 Mark the generated symbol as a function. Rename exitp argument to
3166 lr. Move code for determining the name of the symbol...
3167 (rs6000_savres_routine_name): ...here. New function. Add cases for
3168 getting the names right on AIX and 64-bit Linux.
3169 (savres_routine_name): New variable.
3170 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
3171 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
3172 on what the target routine uses as a base register. If savep && lr
3173 describe saving of r0 into memory slot.
3174 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
3175 line calls for AIX ABI.
3176 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
3177 determine FP save/restore functions.
3178 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
3179 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
3181 (rs6000_emit_epilogue): Adjust computation of restore_lr.
3182 Duplicate restoration of LR and execute the appropriate one
3183 depending on whether GPRs are being restored inline. Set r11 from
3184 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
3185 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
3186 Fix out of line calls for AIX ABI.
3187 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
3189 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
3191 (*restore_gpregs_spe): Likewise.
3192 (*return_and_restore_gpregs_spe): Likewise.
3193 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3194 Define to empty string unconditionally.
3195 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3196 Define to empty string unconditionally.
3197 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
3200 2009-09-15 Jan Hubicka <jh@suse.cz>
3202 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
3203 * params.def (inline-insns-auto): Likewise.
3205 2009-09-15 Martin Jambor <mjambor@suse.cz>
3207 * ipa-inline.c (estimate_function_body_sizes): Dump info about
3208 individual statements only at TDF_DETAILS dump level. Format
3209 source for 80 characters per line.
3211 2009-09-15 Christian Bruel <christian.bruel@st.com>
3213 * regrename.c (do_replace): Update REG_DEAD notes.
3215 2009-09-15 Revital Eres <eres@il.ibm.com>
3217 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
3218 * targhooks.c (default_builtin_support_vector_misalignment):
3219 New builtin function.
3220 * targhooks.h (default_builtin_support_vector_misalignment):
3222 * target.h (builtin_support_vector_misalignment):
3223 New field in struct gcc_target.
3224 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
3225 new builtin function.
3226 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
3228 * config/rs6000/rs6000.c
3229 (rs6000_builtin_support_vector_misalignment): New function.
3230 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
3232 2009-09-15 Jie Zhang <jie.zhang@analog.com>
3234 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
3236 (bfin_optimize_loop): Likewise.
3237 (bfin_gen_bundles): Likewise.
3238 (workaround_speculation): Likewise.
3239 (find_load): Return NULL_RTX for debug_insn.
3241 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
3243 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
3246 2009-09-14 DJ Delorie <dj@redhat.com>
3248 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
3249 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
3252 2009-09-14 Richard Henderson <rth@redhat.com>
3253 Jakub Jelinek <jakub@redhat.com>
3255 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
3256 * cfgbuild.c (make_edges): Handle asm goto.
3257 * cfglayout.c (fixup_reorder_chain): Likewise.
3258 * cfgrtl.c (patch_jump_insn): Likewise.
3259 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
3260 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
3261 (gimple_build_asm_vec): Add and use labels parameter.
3262 (gimple_build_asm): Remove.
3263 (walk_gimple_asm): Walk labels too.
3264 * gimple.def (GIMPLE_ASM): Update docs.
3265 * gimple.h: Update decls.
3266 (struct gimple_statement_asm): Change nc to use unsigned char;
3268 (gimple_asm_nlabels): New.
3269 (gimple_asm_label_op, gimple_asm_set_label_op): New.
3270 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
3271 into gimple_build_asm_vec.
3272 * jump.c (mark_jump_label_asm): New.
3273 (mark_jump_label): Use it.
3274 (redirect_jump_1): Handle asm goto.
3275 (invert_jump_1): Soft fail if X is null.
3276 * recog.c (extract_asm_operands): New.
3277 (asm_noperands): Use it; handle asm labels.
3278 (decode_asm_operands): Use extract_asm_operands.
3279 (asm_operand_ok): Properly handle empty string.
3280 * reg-stack.c (get_asm_operands_in_out): Rename from
3281 get_asm_operand_n_inputs; use extract_asm_operands; return both
3282 inputs and outputs by reference; update all callers.
3283 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
3284 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
3285 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
3286 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
3287 (extract_asm_operands): Declare.
3288 * stmt.c (expand_asm_operands): Add and use labels parameter.
3289 (check_unique_operand_names): Likewise.
3290 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
3291 (expand_asm_stmt): Handle asm labels.
3292 * tree-cfg.c (make_gimple_asm_edges): New.
3293 (make_edges): Use it.
3294 (cleanup_dead_labels): Handle asm labels.
3295 (is_ctrl_altering_stmt): Likewise.
3296 (gimple_redirect_edge_and_branch): Likewise.
3297 * tree.def (ASM_EXPR): Add 5th operand.
3298 * tree.h (ASM_LABELS): New.
3299 (resolve_asm_operand_names): Update decl.
3301 * c-parser.c (c_parser_asm_statement): Parse asm goto.
3302 (c_parser_asm_goto_operands): New.
3303 * c-tree.h (build_asm_expr): Update decl.
3304 * c-typeck.c (build_asm_expr): Add and use labels parameter.
3305 * doc/extend.texi: Document asm goto.
3307 2009-09-14 Richard Henderson <rth@redhat.com>
3309 * except.h: Update declarations.
3310 (struct pointer_map_t): Forward declare.
3311 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
3312 (struct eh_landing_pad_d, eh_landing_pad): New.
3313 (struct eh_catch_d, eh_catch): New.
3314 (struct eh_region_d): Remove next_region_sharing_label, aka,
3315 label, tree_label, landing_pad, post_landing_pad, resume,
3316 may_contain_throw. Rename region_number to index. Remove
3317 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
3318 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
3319 (VEC(eh_landing_pad,gc)): New.
3320 (struct eh_status): Remove last_region_number. Add lp_array,
3321 throw_stmt_table, ttype_data, ehspec_data.
3322 (ehr_next, FOR_ALL_EH_REGION_AT): New.
3323 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
3324 * except.c (lang_protect_cleanup_actions): Return tree.
3325 (struct ehl_map_entry): Remove.
3326 (init_eh_for_function): Push zero entries for region and lp_array.
3327 (gen_eh_region): Add to region_array immediately.
3328 (gen_eh_region_catch): Operate on eh_catch objects.
3329 (gen_eh_landing_pad): New.
3330 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
3331 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
3332 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
3333 (get_eh_landing_pad_from_number_fn): New.
3334 (get_eh_landing_pad_from_number): New.
3335 (get_eh_region_from_lp_number_fn): New.
3336 (get_eh_region_from_lp_number): New.
3337 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
3338 (get_exception_pointer, get_exception_filter): Remove.
3339 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
3340 (current_function_has_exception_handlers): Simplify.
3341 (bring_to_root, eh_region_replaceable_by_p): Remove.
3342 (replace_region, hash_type_list, hash_eh_region): Remove.
3343 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
3344 (label_to_region_map, num_eh_regions): Remove.
3345 (get_next_region_sharing_label, must_not_throw_labels): Remove.
3346 (find_exception_handler_labels): Remove.
3347 (duplicate_eh_regions_0, find_prev_try): Remove.
3348 (struct duplicate_eh_regions_data): New.
3349 (duplicate_eh_regions_1): Rewrite.
3350 (duplicate_eh_regions): Return a pointer map instead of an
3352 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
3353 (redirect_eh_edge_to_label): Remove.
3354 (eh_region_outermost): Rewrite using eh_region pointers
3355 instead of integers.
3356 (add_ttypes_entry): Update for ttype_data move to eh_status.
3357 (add_ehspec_entry): Rewrite with VEC instead of varray.
3358 (assign_filter_values): Likewise. Export.
3359 (build_post_landing_pads, connect_post_landing_pads): Remove.
3360 (dw2_build_landing_pads): Rewrite to use lp_array.
3361 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
3362 (sjlj_assign_call_site_values): Rewrite to use lp_array.
3363 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
3364 (sjlj_mark_call_sites): Update for landing pad numbers.
3365 (finish_eh_generation): Rewrite.
3366 (gate_handle_eh): Do nothing for no eh tree.
3367 (pass_rtl_eh): Move up near finish_eh_generation.
3368 (remove_eh_landing_pad): New.
3369 (remove_eh_handler): Export.
3370 (remove_eh_region, remove_eh_handler_and_replace): Remove.
3371 (for_each_eh_label): Rewrite to use lp_array.
3372 (make_reg_eh_region_note): New.
3373 (make_reg_eh_region_note_nothrow_nononlocal): New.
3374 (insn_could_throw_p): New.
3375 (copy_reg_eh_region_note_forward): New.
3376 (copy_reg_eh_region_note_backward): New.
3377 (check_handled, add_reachable_handler): Remove.
3378 (reachable_next_level, foreach_reachable_handler): Remove.
3379 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
3380 (get_eh_region_and_lp_from_rtx): New.
3381 (get_eh_region_from_rtx): New.
3382 (can_throw_internal_1, can_throw_external_1): Remove.
3383 (can_throw_internal): Use get_eh_region_from_rtx.
3384 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
3385 (insn_nothrow_p, can_nonlocal_goto): New.
3386 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
3387 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
3388 (add_action_record): Use VEC not varray.
3389 (collect_one_action_chain): Update for eh_region changes.
3390 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
3391 Use get_eh_region_and_lp_from_rtx.
3392 (gate_convert_to_eh_region_ranges): New.
3393 (pass_convert_to_eh_region_ranges): Use it.
3394 (push_uleb128, push_sleb128): Use VEC not varray.
3395 (output_one_function_exception_table): Likewise.
3396 (dump_eh_tree): Update for eh_region changes.
3397 (verify_eh_tree): Likewise.
3398 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
3399 * tree-eh.c: Include target.h.
3400 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
3401 Don't disallow GIMPLE_RESX; adjust argument check.
3402 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
3403 (record_stmt_eh_region): Update for landing pad numbers;
3404 generate a landing pad if necessary.
3405 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
3406 (remove_stmt_from_eh_lp_fn): Similarly.
3407 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
3408 Update for lp numbers; don't special case missing throw_stmt_table.
3409 (lookup_expr_eh_lp): Similarly.
3410 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
3411 (eh_seq, eh_region_may_contain_throw): New.
3412 (struct leh_state): Add ehp_region.
3413 (struct leh_tf_state): Remove eh_label.
3414 (emit_post_landing_pad): New.
3415 (emit_resx, emit_eh_dispatch): New.
3416 (note_eh_region_may_contain_throw): New.
3417 (frob_into_branch_around): Take eh_region not eh label;
3418 emit eh code into eh_seq.
3419 (honor_protect_cleanup_actions): Early exit for no actions. Don't
3420 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
3421 lower_eh_must_not_throw. Emit code to eh_seq.
3422 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
3423 (lower_try_finally_onedest): Likewise.
3424 (lower_try_finally_copy): Likewise.
3425 (lower_try_finally_switch): Likewise.
3426 (lower_try_finally): Initialize ehp_region.
3427 (lower_catch): Update for eh_catch objects.
3428 (lower_eh_filter): Don't handle must_not_throw.
3429 (lower_eh_must_not_throw): New.
3430 (lower_cleanup): Don't set eh_label.
3431 (lower_eh_constructs_2): Resolve eh builtins.
3432 Handle GIMPLE_EH_MUST_NOT_THROW.
3433 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
3434 Add eh_seq to the end of the function body.
3435 (make_eh_dispatch_edges): New.
3436 (make_eh_edge): Remove.
3437 (make_eh_edges): Simplify for landing pads.
3438 (redirect_eh_edge_1): New.
3439 (redirect_eh_edge): Use it.
3440 (redirect_eh_dispatch_edge): New.
3441 (stmt_could_throw_p): Use a switch. Allow RESX.
3442 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
3443 (stmt_can_throw_internal): Likewise.
3444 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
3445 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
3446 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
3447 (gate_refactor_eh): New.
3448 (pass_refactor_eh): Use it.
3449 (lower_resx, execute_lower_resx, pass_lower_resx): New.
3450 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
3451 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
3452 (remove_unreachable_handlers): Rename from
3453 tree_remove_unreachable_handlers; rewrite for landing pads;
3454 call remove_eh_handler directly.
3455 (remove_unreachable_handlers_no_lp): New.
3456 (unsplit_eh, unsplit_all_eh): New.
3457 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
3458 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
3459 (cleanup_empty_eh_unsplit): New.
3460 (cleanup_empty_eh): Rewrite.
3461 (cleanup_all_empty_eh): New.
3462 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
3463 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
3464 (gate_cleanup_eh): New.
3465 (pass_cleanup_eh): Use it.
3466 (verify_eh_edges): Move later in file. Expect one EH edge.
3467 (verify_eh_dispatch_edge): New.
3469 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
3470 (gtype-desc.o): Add TARGET_H.
3471 (tree.o): Use EXCEPT_H, not except.h.
3472 (cfgbuild.o): Add EXPR_H.
3473 (GTFILES): Add vecprim.h.
3474 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
3475 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
3476 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
3477 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
3478 * calls.c (emit_call_1): Use make_reg_eh_region_note.
3479 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
3480 calls to can_throw_internal.
3481 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
3482 (make_edges): Don't handle RESX; use can_nonlocal_goto.
3483 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
3484 (expand_gimple_stmt): Use make_reg_eh_region_note.
3485 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
3486 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
3487 or find_exception_handler_labels.
3488 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
3489 there is exacly one EH edge. Use can_nonlocal_goto and
3491 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
3492 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
3493 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
3494 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
3495 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
3496 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
3497 * dse.c (scan_insn): Use insn_could_throw_p.
3498 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
3499 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
3500 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
3501 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
3502 EXC_PTR_EXPR or FILTER_EXPR.
3503 (tree_expr_nonzero_warnv_p): Likewise.
3504 * function.h: Include vecprim.h, not varray.h
3505 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
3506 move ttype_data and ehspec_data members to struct eh_status; change
3507 action_record_data member to a VEC.
3508 * gcse.c (hash_scan_set): Use can_throw_internal.
3509 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
3510 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
3511 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3512 (block_may_fallthru): Don't handle RESX_EXPR.
3513 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
3514 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
3515 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
3516 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
3517 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
3518 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
3519 (gimple_size): Likewise.
3520 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
3521 (gimple_build_resx): Use gimple_build_with_ops.
3522 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
3523 (is_gimple_val): Likewise.
3524 (is_gimple_stmt): Remove RESX_EXPR.
3525 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
3526 (GIMPLE_RESX): Reorder with other EH constructs.
3527 * gimple.h (struct gimple_statement_eh_mnt): New.
3528 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
3529 (gimple_eh_filter_must_not_throw): Remove.
3530 (gimple_eh_filter_set_must_not_throw): Remove.
3531 (gimple_eh_must_not_throw_fndecl): New.
3532 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
3533 (is_gimple_resx): New.
3534 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
3535 Don't copy EH_FILTER_MUST_NOT_THROW.
3536 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
3537 * ipa-inline.c (estimate_function_body_sizes): Don't try to
3538 handle must_not_throw_labels specially.
3539 * ipa-pure-const.c (check_call): Update debug statement for LP.
3540 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
3541 * ipa-utils.c (get_base_var): Likewise.
3542 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
3543 * lower-subreg.c (move_eh_region_note): Remove.
3544 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
3545 * omp-low.c (new_omp_context): Update for eh_lp_nr.
3546 (create_task_copyfn): Likewise.
3547 (maybe_catch_exception): Use gimple_build_eh_filter.
3548 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
3549 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
3550 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
3551 and pass_lower_resx.
3552 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
3553 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
3554 can_throw_internal, can_nonlocal_goto.
3555 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
3556 copy_reg_eh_region_note_forward.
3557 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
3558 (emit_output_reload_insns): Likewise.
3559 (copy_eh_notes): Remove.
3560 * rtl.def (RESX): Remove.
3561 * rtl.h: Update declarations.
3562 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
3563 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
3564 (update_eh_label): Remove.
3565 (cleanup_dead_labels_eh): New.
3566 (cleanup_deal_labels): Use it instead of update_eh_label.
3567 (gimple_merge_blocks): Update landing pad data structure when
3568 removing a landing pad label.
3569 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
3570 test; handle GIMPLE_EH_MUST_NOT_THROW.
3571 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
3572 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
3573 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
3574 (verify_stmt): Likewise. Verify landing pads.
3575 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
3576 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
3577 (struct move_stmt_d): Add eh_map.
3578 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
3579 (move_stmt_r): Remap eh region numbers in builtin calls,
3580 resx and eh_dispatch.
3581 (move_block_to_fn): Remove eh_offset parameter. Use
3582 maybe_duplicate_eh_stmt_fn.
3583 (find_outermost_region_in_block): Operate on eh_region pointers
3584 instead of region numbers.
3585 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
3586 duplicate_eh_regions.
3587 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
3588 test earlier. Disallow EH landing pads.
3589 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
3590 * tree-flow.h: Update declarations.
3591 (struct tree_ann_common_d): Replace rn with lp_nr.
3592 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
3593 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
3594 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
3595 resx and eh_dispatch.
3596 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
3597 (copy_edges_for_bb): Use make_eh_dispatch_edges.
3598 (copy_cfg_body): Expect eh_map instead of eh_region_offset
3599 from duplicate_eh_regions.
3600 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
3601 update RESX; handle EH_DISPATCH.
3602 (expand_call_inline): Set eh_lp_nr, not eh_region.
3603 (maybe_inline_call_in_expr): Likewise.
3604 * tree-inline.h (struct copy_body_data): Replace eh_region with
3605 eh_lp_nr, eh_region_offset with eh_map.
3606 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
3607 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
3608 * tree-pretty-print.c (dump_generic_node): Don't handle
3609 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
3610 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
3611 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
3612 EXC_PTR_EXPR, FILTER_EXPR.
3613 * tree-ssa-operands.c (get_expr_operands): Likewise.
3614 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
3615 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3616 (ao_ref_init_from_vn_reference): Likewise.
3617 * tree-ssa-sink.c (statement_sink_location): Likewise.
3618 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3619 (mark_virtual_phi_result_for_renaming): Export. Tidy.
3620 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
3621 EXC_PTR_EXPR, FILTER_EXPR.
3622 (is_exception_related): Remove.
3623 (compute_avail): Don't call it.
3624 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
3625 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
3626 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
3627 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
3629 (build_resx): Remove.
3630 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
3631 * tree.h: Update declarations.
3632 (EH_FILTER_MUST_NOT_THROW): Remove.
3633 (struct tree_label_decl): Add eh_landing_pad_nr.
3634 (EH_LANDING_PAD_NR): New.
3635 * value-prof.c (gimple_ic): Tidy variable names. Update for
3636 landing pad numbers.
3637 (gimple_stringop_fixed_value): Tidy variable names. Assert
3638 that neither call stmt can throw.
3639 * vecprim.h (uchar): New.
3640 (VEC(uchar,heap), VEC(uchar,gc)): New.
3642 * c-common.c (c_define_builtins): Update call to
3643 build_common_builtin_nodes.
3644 * c-parser.c (c_parse_file): Don't call
3645 default_init_unwind_resume_libfunc.
3647 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
3649 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
3650 (mips_cprestore_address_p): Likewise.
3651 (mips_save_gp_to_cprestore_slot): Likewise.
3652 (mips_restore_gp): Rename to...
3653 (mips_restore_gp_from_cprestore_slot): ...this.
3654 (mips_must_initialize_gp_p): Declare.
3655 (mips_emit_save_slot_move): Likewise.
3656 (mips_output_load_label): Return nothing.
3657 (mips_eh_uses): Declare.
3658 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
3659 (TARGET_CPRESTORE_DIRECTIVE): New macro.
3660 (TARGET_ABSOLUTE_JUMPS): Likewise.
3661 (EH_USES): Likewise.
3662 (FIRST_PSEUDO_REGISTER): Update comment.
3663 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
3664 (MIPS_CALL): ...here.
3665 (REGISTER_NAMES): Add $cprestore.
3666 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
3667 Add load_label_length, has_inflexible_gp_insn_p,
3668 has_flexible_gp_insn_p, must_initialize_gp_p and
3669 must_restore_gp_when_clobbered_p.
3670 (mips_expand_call): Don't generate split instructions here.
3671 (mips_split_call): Update the call to mips_restore_gp after
3672 the above name change.
3673 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
3674 (mips_find_gp_ref): New function.
3675 (mips_insn_has_inflexible_gp_ref_p): Likewise.
3676 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
3677 (mips_insn_has_flexible_gp_ref_p): Likewise.
3678 (mips_cfun_has_flexible_gp_ref_p): Likewise.
3679 (mips_function_has_gp_insn): Delete.
3680 (mips_global_pointer): Drop the df_regs_ever_live_p check.
3681 Use the new functions above. Only return INVALID_REGNUM
3682 for TARGET_ABSOLUTE_JUMPS.
3683 (mips_must_initialize_gp_p): New function.
3684 (mips_get_cprestore_base_and_offset): New function, extracted from...
3685 (mips_cprestore_slot): ...here. Take a bool parameter.
3686 (mips_cfun_has_cprestore_slot_p): New function.
3687 (mips_cprestore_address_p): Likewise.
3688 (mips_save_gp_to_cprestore_slot): Likewise.
3689 (mips_restore_gp): Rename to...
3690 (mips_restore_gp_from_cprestore_slot): ...this. Assert
3691 epilogue_completed. Update the call to mips_cprestore_slot.
3692 Test cfun->machine->must_restore_gp_when_clobbered_p.
3693 (mips_direct_save_slot_move_p): New function.
3694 (mips_emit_save_slot_move): Likewise.
3695 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
3696 of cfun->machine->global_pointer.
3697 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
3698 (mips_save_reg): Use mips_emit_save_slot_move.
3699 (mips_expand_prologue): Set must_initialize_gp_p.
3700 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
3701 for all cprestore saves. Emit a use_cprestore instruction after
3702 setting up the cprestore slot.
3703 (mips_restore_reg): Use mips_emit_save_slot_move.
3704 (mips_process_load_label): New function.
3705 (mips_load_label_length): Likewise.
3706 (mips_output_load_label): Don't return asm: output it here instead.
3707 Use mips_process_load_label.
3708 (mips_adjust_insn_length): Adjust the length of branch instructions
3709 that have length MAX_PIC_BRANCH_LENGTH.
3710 (mips_output_conditional_branch): Update the call to
3711 mips_output_load_label. Assume the branch target is OPERANDS[0]
3712 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
3713 (mips_output_order_conditional_branch): Swap the meaning of
3714 OPERANDS[0] and OPERANDS[1].
3715 (mips_variable_issue): Don't count ghost instructions.
3716 (mips_expand_ghost_gp_insns): New function.
3717 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
3718 (mips_output_mi_thunk): Set must_initialize_gp_p.
3719 (mips_eh_uses): New function.
3720 * config/mips/predicates.md (cprestore_save_slot_operand)
3721 (cprestore_load_slot_operand): New predicates.
3722 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
3723 (UNSPEC_MOVE_GP): Likewise.
3724 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
3725 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
3726 (CPRESTORE_SLOT_REGNUM): New register.
3727 (MAX_PIC_BRANCH_LENGTH): New constant.
3728 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
3729 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
3730 branches. Fix commentary.
3731 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
3732 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
3733 Change type to "ghost".
3734 (loadgp_absolute_<mode>): Likewise.
3735 (loadgp_rtp_<mode>): Likewise.
3736 (copygp_mips16): Likewise.
3737 (loadgp_blockage): Remove redundant mode attribute.
3738 (potential_cprestore): New instruction.
3739 (cprestore): Turn into an unspec set.
3740 (use_cprestore): New instruction.
3741 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
3742 (*branch_fp_inverted): Likewise.
3743 (*branch_order<mode>): Likewise.
3744 (*branch_order<mode>_inverted): Likewise.
3745 (*branch_equality<mode>): Likewise.
3746 (*branch_equality<mode>_inverted): Likewise.
3747 (*branch_bit<bbv><mode>): Likewise.
3748 (*branch_bit<bbv><mode>_inverted): Likewise.
3749 (*branch_equality<mode>_mips16): Remove redundant mode.
3750 (jump): Turn into a define_expand.
3751 (*jump_absolute): New instruction.
3752 (*jump_pic): Likewise.
3753 (*jump_mips16): Rename previously-unnamed pattern. Remove
3754 redundant mode attribute.
3755 (restore_gp): Split on epilogue_completed rather than
3756 reload_completed. Change type to "ghost".
3757 (move_gp<mode>): New instruction.
3758 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
3759 Remove redundant mode attribute.
3760 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
3761 (bc1any4f, bc1any2t, bc1any2f): Likewise.
3762 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
3764 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3767 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
3768 are returned in the same register (vs34 or v2) that Altivec vector
3769 types are returned in.
3770 (rs6000_libcall_value): Ditto.
3773 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
3774 instead of explicit addsi3/adddi3 calls.
3775 (rs6000_split_multireg_move): Ditto.
3776 (rs6000_emit_allocate_stack): Ditto.
3777 (rs6000_emit_prologue): Ditto.
3778 (rs6000_output_mi_thunk): Ditto.
3780 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
3781 size is 64 bits if we can use 64-bit registers.
3783 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
3785 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
3788 From Jie Zhang <jie.zhang@analog.com>:
3789 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
3790 save FP and RETS with saveall attribute.
3791 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
3792 with saveall attribute.
3794 * config/bfin/bfin.c (bfin_expand_builtin,
3795 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
3798 From Jie Zhang <jie.zhang@analog.com>:
3799 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
3800 before use in two places.
3801 * config/bfin/bfin.md (AREG): Define mode iterator.
3802 (reload_in, reload_out): Use mode iterator AREG.
3804 2009-09-14 Richard Guenther <rguenther@suse.de>
3807 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
3808 EH personality path.
3810 2009-09-13 Richard Guenther <rguenther@suse.de>
3811 Rafael Avila de Espindola <espindola@google.com>
3813 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
3814 (LANG_HOOKS_EH_PERSONALITY): Likewise.
3815 (LANG_HOOKS_INITIALIZER): Adjust.
3816 (lhd_pass_through_t): Declare.
3817 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
3819 * langhooks.c (lhd_pass_through_t): New function.
3820 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
3821 dwarf2out_begin_prologue): Use personality from current_function_decl.
3822 * expr.h (get_personality_function): Declare.
3823 * expr.c (get_personality_function): New function.
3824 (build_personality_function): Likewise.
3825 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
3826 (eh_personality_libfunc): Remove.
3827 * optabs.c (build_libfunc_function): New function split out from ...
3828 (init_one_libfunc): ... here.
3829 * tree.h (DECL_FUNCTION_PERSONALITY): New.
3830 (tree_function_decl): Add personality.
3831 (lhd_gcc_personality): Declare.
3832 (build_personality_function): Likewise.
3833 * tree.c (gcc_eh_personality_decl): New.
3834 (lhd_gcc_personality): New function.
3835 * except.h (lang_eh_runtime_type): Remove.
3836 (enum eh_personality_kind): New.
3837 (build_personality_function): Declare.
3838 (function_needs_eh_personality): Declare.
3839 * except.c (lang_eh_runtime_type): Remove.
3840 (function_needs_eh_personality): New function.
3841 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
3842 (sjlj_emit_function_enter, output_function_exception_table):
3843 Use personality from current_function_decl.
3844 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
3845 * tree-inline.c (tree_can_inline_p): Do not inline across different
3847 (expand_call_inline): Likewise. Adjust the callers EH personality.
3848 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
3849 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
3850 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
3851 (c-parser.o): Likewise
3852 * c-tree.h (c_eh_initialized_p): Remove.
3853 (c_maybe_initialize_eh): Likewise.
3854 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
3855 (finish_decl): Don't call c_maybe_initialize_eh.
3856 (c_eh_initialized_p): Remove.
3857 (c_maybe_initialize_eh): Likewise.
3858 * c-parser.c (c_parser_omp_construct): Likewise.
3859 (c_parse_file): Initialize exception handling.
3861 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
3863 * config.gcc (tm_file): Remove i386/biarch32.h
3864 for i?86-w64-mingw* case.
3865 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
3867 * config.host: Set for x64 mingw the option
3868 use_long_long_for_widest_fast_int to yes.
3870 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
3872 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
3873 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
3874 (dbxout_begin_function): Likewise.
3875 * final.c (dwarf2_debug_info_emitted_p): New predicate.
3876 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
3877 set on the function.
3878 (final_end_function): Likewise.
3879 (final_scan_insn): Likewise.
3880 (rest_of_handle_final): Likewise.
3881 * varasm.c (assemble_start_function): Likewise.
3882 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3884 2009-09-12 Jason Merrill <jason@redhat.com>
3886 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
3887 * opts.c (common_handle_option): constify.
3889 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
3891 * doc/install.texi (avr): Remove obsolete reference site.
3893 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
3895 * doc/install.texi (Binaries): Adjust AIX link.
3897 2009-09-12 Akim Demaille <demaille@gostai.com>
3899 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
3900 Use an imperative sentence.
3902 2009-09-11 Richard Henderson <rth@redhat.com>
3904 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
3905 structure-name and has-tree-operands arguments; update all entries.
3906 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
3908 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
3909 (gsstruct_code_size): New.
3910 (gss_for_code_): New.
3911 (gss_for_code): Remove.
3912 (gimple_size): Rewrite using gsstruct_code_size.
3913 (gimple_statement_structure): Move to gimple.h.
3914 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
3915 (gss_for_code, gimple_statement_structure): New.
3916 (gimple_ops): Use new arrays; tidy.
3918 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3920 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
3921 operand to be a PLUS expression.
3922 * config/pa/pa.c (pa_secondary_reload): Likewise.
3924 2009-09-11 Jakub Jelinek <jakub@redhat.com>
3926 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
3928 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
3931 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
3933 From Jie Zhang <jie.zhang@analog.com>:
3934 * doc/extend.texi (node Function Attributes): Document l2
3936 (node Blackfin Variable Attributes): Document l2 variable attributes.
3938 2009-09-11 Loren J. Rittle <ljrittle@acm.org>