OSDN Git Service

PR tree-optimize/40556
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-10-22  Jan Hubicka  <jh@suse.cz>
2
3         PR tree-optimize/40556                                                                                                                                         
4         * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about global vars.                                                                                
5         (check_call): Handle only indirect calls.                                                                                                                      
6         (propagate_bits): Update comment.                                                                                                                              
7         (write_node_summary_p): Turn bogus check to assert.                                                                                                            
8         (ipa_reference_write_summary): Stream calls_read_all properly.                                                                                                 
9         (ipa_reference_read_summary): Stream in calls_read_all properly.                                                                                               
10         (read_write_all_from_decl): New function.                                                                                                                      
11         (propagate): Handle OVERWRITABLE nodes and external calls here.                                                                                                
12         * ipa-pre-const.c (check_call): In IPA mode handle indirect calls                                                                                              
13         only.                                                                                                                                                          
14         (analyze_function): Do not check visibility here.                                                                                                              
15         (add_new_function): We summary OVERWRITABLE too.                                                                                                               
16         (generate_summary): Stream OVERWRITABLE nodes too.                                                                                                             
17         (propagate): Handle external calls and OVERWRITABLE nodes here.                                                                                                
18         (local_pure_const): Check visibility here.                                                                                                                     
19
20 2009-10-22  Jan Hubicka  <jh@suse.cz>
21
22         * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
23         (pass_ipa_cp): Register them.
24         (ipcp_init_stage): Analyze all functions for whopr/lto.
25         (ipcp_propagate_stage): Skip external calls.
26         (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
27         * ipa-reference.c (write_node_summary_p): Fix thinko about availability.
28         * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
29         when in ltrans, skip executing of ipa passes since everything should've
30         been done.
31         * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
32         (inline_generate_summary): Likewise.
33         (inline_read_summary): New function.
34         (inline_write_summary): New function.
35         (pass_ipa_inline): Register new hooks.
36         * ipa-prop.c: Inlcude lto-streamer.h
37         (ipa_edge_args_vector): Update declaration.
38         (ipa_count_arguments, ipa_compute_jump_functions,
39         ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
40         (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
41         ipa_read_node_info): New static functions.
42         (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
43         (duplicate_array): Use xmalloc.
44         (duplicate_ggc_array): New.
45         (ipa_edge_duplication_hook): Use it.
46         (ipa_update_after_lto_read): New function.
47         * ipa-prop.h (ipa_prop_write_jump_functions,
48         ipa_prop_read_jump_functions): Declare.
49         (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
50         jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
51         (ipa_edge_args_vector): Move into GGC.
52         (ipa_check_create_edge_args): Update.
53         (ipa_update_after_lto_read): New.
54         * passes.c (ipa_write_summaries_1): When in wpa, do not write summaries.
55         (ipa_read_summaries): When in ltrans, so not read summaries.
56         * lto-streamer.c (lto_get_section_name): Add LTO_section_jump_functions.
57         * lto-streamer.h (LTO_section_jump_functions): New section.
58         (produce_asm): Declare.
59         * lto-cgraph.c (output_cgraph): Output edges in reverse order.
60         * lto-streamer-out.c (produce_asm): Export.
61         * lto-streamer-in.c: Include tree-pass.h
62         (input_function): Free dominance info when done.
63         (lto_read_body): Push ipa_inline in ltrans stage.
64         * gengtype.c (open_base_files): Add ipa-prop.h into includes.
65         * Makefile.in (GTFILES): Add ipa-prop.h
66
67 2009-10-22  Matthias Klose  <doko@ubuntu.com>
68
69         * doc/install.texi: Document --enable-browser-plugin.
70
71 2009-10-21  Vladimir Makarov  <vmakarov@redhat.com>
72
73         * doc/invoke.texi (fira-loop-pressure): Update default value.
74         * opts.c (decode_options): Remove default value setting for
75         flag_ira_loop_pressure.
76         * config/ia64/ia64.c (ia64_override_options): Set
77         flag_ira_loop_pressure up for -O3.
78         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
79         
80 2009-10-21  Sebastian Pop  <sebastian.pop@amd.com>
81
82         PR tree-optimization/41497
83         * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
84         chrec_dont_know if the evolution function returned by follow_ssa_edge
85         is constant in the analyzed loop and is not compatible with the
86         initial value before the loop.
87         * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
88
89 2009-10-21  Joseph Myers  <joseph@codesourcery.com>
90
91         * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
92
93 2009-10-21  Jakub Jelinek  <jakub@redhat.com>
94
95         PR other/25507
96         * doc/invoke.texi: Document -print-multi-os-directory.
97
98 2009-10-21  Jack Howarth  <howarth@bromo.med.uc.edu>
99
100         PR c++/41313
101         * gcc/config/darwin10.h: Use default_emit_unwind_label.
102         * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
103         when darwin_emit_unwind_label is used.
104
105 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
106
107         * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
108         order of checks.
109
110 2009-10-20  Richard Henderson  <rth@redhat.com>
111
112         * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
113         before emit_post_landing_pad.
114
115 2009-10-20  Adam Nemet  <anemet@caviumnetworks.com>
116
117         * config/mips/mips.c (mips_binary_cost): Add new argument speed.
118         Use when calling rtx_costs.
119         (mips_rtx_costs): Fix formatting.  Use argument speed rather than the
120         global optimize_size.  Pass speed to mips_binary_cost.
121
122 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
123
124         * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
125         of TREE_CONSTANT.
126
127 2009-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
128
129         * rtl.h (simplify_replace_fn_rtx): Declare.
130         (wrap_constant, unwrap_constant): Delete.
131         * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
132         (expand_debug_expr): Don't call wrap_constant.
133         * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
134         (auto_adjust_pair): Fold into...
135         (propagate_for_debug_subst): ...here.  Only define for AUTO_INC_DEC.
136         Just return a new value.
137         (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
138         otherwise use simplify_replace_rtx.
139         * cselib.c (wrap_constant): Reinstate old definition.
140         (cselib_expand_value_rtx_1): Don't wrap constants.
141         * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
142         simplify_replace_rtx.
143         (bypass_block): Fix formatting in calls to simplify_replace_rtx.
144         * reload1.c (reload): Skip all uses for an insn before adjusting it.
145         Use simplify_replace_rtx.
146         * simplify-rtx.c (simplify_replace_fn_rtx): New function,
147         adapted from...
148         (simplify_replace_rtx): ...here.  Turn into a wrapper for
149         simplify_replace_fn_rtx.
150         (simplify_unary_operation): Don't unwrap CONSTs.
151         * var-tracking.c (check_wrap_constant): Delete.
152         (vt_expand_loc_callback): Don't call it.
153         (vt_expand_loc): Likewise.
154
155 2009-10-20  Pascal Obry  <obry@adacore.com>
156             Eric Botcazou  <ebotcazou@adacore.com>
157
158         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
159
160 2009-10-20  Michael Matz  <matz@suse.de>
161
162         * loop-invariant.c (create_new_invariant): Use different magic number.
163
164 2009-10-20  Richard Earnshaw  <rearnsha@arm.com>
165
166         PR target/39247
167         * arm.c (arm_override_options): Forcibly disable hot/cold block
168         partitioning.
169
170 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
171
172         PR debug/41739
173         * haifa-sched.c (try_ready): Skip debug deps updating speculation
174         status.
175
176 2009-10-20  Richard Guenther  <rguenther@suse.de>
177
178         * ggc-page.c: Include cfgloop.h.
179         (struct max_alignment): Drop long double, add void *.
180         (extra_order_size_table): Add low non-power-of-two multiples
181         of MAX_ALIGNMENT.  Drop small type-based entries, add
182         tree_type, cgraph_node and loop.
183         * alloc-pool.c (struct allocation_object_def): Drop long double
184         aligning element.
185
186 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
187
188         PR debug/41340
189         * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
190         referenced just in DEBUG_INSNs.
191
192 2009-10-20  Richard Guenther  <rguenther@suse.de>
193
194         PR lto/41761
195         * gimple.c (gimple_register_type): Make sure we register
196         the types main variant first.
197
198 2009-10-20  Richard Guenther  <rguenther@suse.de>
199
200         * gimple.c (gimple_types_compatible_p): Simplify.  Move
201         cheap checks before hashtable queries.  Add checks for
202         TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
203
204 2009-10-20  Eric Botcazou  <ebotcazou@adacore.com>
205
206         * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
207         without size or with size that can't be represented as a host integer.
208
209 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
210
211         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
212         the removal of a debug stmt as a significant change.
213
214 2009-10-20  Wolfgang Gellerich  <gellerich@de.ibm.com>
215
216         * config/s390/s390.md: Added agen condition to operand
217         forwarding bypasses. 
218         Added bypass for early address generation use of int results.
219         Updated comments.
220
221 2009-10-20  Stefan Dösinger  <stefan@codeweavers.com>
222
223         * config/i386/i386.c: Remove signal.h #include.
224
225 2009-10-20  Jie Zhang  <jie.zhang@analog.com>
226
227         * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
228         * doc/rtl.texi: Document ss_abs.
229
230 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
231
232         * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
233         * c-lex.c (c_lex_with_flags): Likewise.  Test C_LEX_STRING_NO_JOIN
234         instead of C_LEX_RAW_STRINGS.
235         (lex_string): Handle CPP_UTF8STRING.
236         * c-parser.c (c_parser_postfix_expression): Likewise.
237         * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
238         (C_LEX_STRING_NO_JOIN): ... this.
239
240 2009-10-19  Anatoly Sokolov  <aesok@post.ru>
241
242         * config/cris/cris.c (cris_function_value, cris_libcall_value,
243         cris_function_value_regno_p): New functions.
244         (cris_promote_function_mode): Update comment.
245         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
246         * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
247         (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
248         * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
249
250 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
251
252         * unwind-dw2.c (execute_stack_op): Fix operand order for
253         DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
254
255 2009-10-19  Eric Botcazou  <ebotcazou@adacore.com>
256
257         * gimple-low.c (struct lower_data): Add cannot_fallthru field.
258         (lower_stmt) <GIMPLE_BIND>: Add comment.
259         <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
260         and return.
261         <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
262         Otherwise lower it and set cannot_fallthru to true.
263         <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
264         <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
265         <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
266         to true for a noreturn call.  Do not remove statements.
267         <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
268         Set cannot_fallthru to false on function exit.
269         (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
270         <GIMPLE_ASSIGN>: Remove.
271
272 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
273
274         * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
275
276 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
277
278         * config/s390/s390.c (s390_z10_optimize_cmp): Use
279         next/prev_active_insn to skip DEBUG_INSNs as well.
280
281 2009-10-19  Joseph Myers  <joseph@codesourcery.com>
282
283         * config/arm/arm.c (output_move_neon): Use DImode in call to
284         adjust_address.
285
286 2009-10-19  Matthias Klose  <doko@ubuntu.com>
287
288         PR target/40134
289         * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
290
291 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
292
293         * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
294
295 2009-10-17  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
296
297         PR middle-end/41738
298         * optabs.c (expand_binop): Make mode of shift count expression mode
299         of shift count not target.
300         Remove indent nit.
301
302 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
303
304         * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
305         case.  Force using values to replace references within the statement.
306         (convert_local_reference_stmt): Likewise.
307
308 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
309
310         * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
311         remove a subsequent GOTO or RETURN statement.
312
313 2009-10-17  Andy Hutchinson  <hutchinsonandy@aim.com>
314
315         * config/avr.md (*movqi): Add zero as equally preferable constraint
316         as general register.
317         (*movhi): Ditto.
318
319 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
320
321         * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
322
323 2009-10-17  Richard Guenther  <rguenther@suse.de>
324
325         * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
326
327 2009-10-17  Richard Guenther  <rguenther@suse.de>
328
329         * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
330         operands in COMPONENT_REFs.
331
332 2009-10-17  Anatoly Sokolov  <aesok@post.ru>
333
334         * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
335         if not defined. Change type of second argument to const_rtx.
336         (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
337         macro not defined.
338         * targhooks.h (default_libcall_value): Update prototype.
339         * target.h (struct gcc_target): Change type of second argument of
340         libcall_value to const_rtx.
341         * config/arm/arm.c (arm_libcall_value): Change type of second argument
342         to const_rtx.
343         (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
344         * doc/tm.texi (TARGET_LIBCALL_VALUE):  Revise documentation.
345
346 2009-10-17  Jakub Jelinek  <jakub@redhat.com>
347
348         PR debug/40521
349         * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
350         * cgraphunit.c (cgraph_optimize): Call it.
351         * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
352         (dwarf2out_assembly_start): ... here.  New hook.
353         (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
354         * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
355         hook.
356         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
357         * sdbout.c (sdb_debug_hooks): Likewise.
358         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
359         (vmsdbgout_assembly_start): New hook.
360
361 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
362
363         * rtl.h (RTL_LOCATION): Fix typo.
364
365 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
366
367         * print-rtl.c (print_rtx): Print locators in asm_operands
368         and asm_input.
369
370 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
371
372         PR debug/41535
373         * sched-deps.c (depl_on_debug_p): New.
374         (attach_dep_link): Reject debug deps before nondebug deps.
375         (add_to_deps_list): Insert debug deps after nondebug deps.
376         (sd_lists_empty_p): Stop at first nonempty list.  Disregard debug
377         deps.
378         (sd_add_dep): Do not reject debug deps.
379         (add_insn_mem_dependence): Don't count debug deps.
380         (remove_from_deps): Likewise.
381         (sched_analyze_2): Set up mem deps on debug insns.
382         (sched_analyze_insn): Record reg uses for deps on debug insns.
383         * haifa-sched.c (schedule_insn): Reset deferred debug insn.  Don't
384         try_ready nondebug insn after debug insn.
385         * ddg.c (create_ddg_dep_from_intra_loop_link,
386         create_ddg_dep_no_link): Don't reject debug deps.
387
388 2009-10-16  Richard Guenther  <rguenther@suse.de>
389
390         * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
391         (maybe_merge_incomplete_and_complete_type): Likewise.
392         (lto_symtab_merge): Do not call them.  Do not warn for
393         complete vs. incomplete compatible types.
394         (lto_symtab_merge_decls_2): Simplify.
395         * gimple.c (gimple_force_type_merge): Remove.
396         (gimple_types_compatible_p): Make it static.
397         * gimple.h (gimple_force_type_merge): Remove.
398         (gimple_types_compatible_p): Likewise.
399
400 2009-10-16  Jakub Jelinek  <jakub@redhat.com>
401
402         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
403         DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
404
405 2009-10-16  Richard Guenther  <rguenther@suse.de>
406
407         PR tree-optimization/41728
408         * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
409         if fold_stmt did anything.
410
411 2009-10-16  Richard Guenther  <rguenther@suse.de>
412
413         PR lto/41715
414         * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
415         (maybe_fixup_handled_component): New function.
416         (input_gimple_stmt): Fixup mismatched decl replacements.
417
418 2009-10-16  Richard Guenther  <rguenther@suse.de>
419
420         PR lto/41713
421         * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
422         the same as VAR_DECL.
423
424 2009-10-16  Richard Guenther  <rguenther@suse.de>
425
426         * gimple.c (iterative_hash_gimple_type): For integer types
427         also hash their minimum and maximum values and the string flag.
428         For array types hash their domain and the string flag.
429
430 2009-10-16  Richard Guenther  <rguenther@suse.de>
431
432         * gimple.c (gimple_types_compatible_p): Restrict completing
433         types to record or unions.  Simplify completion.
434         Do not merge records or unions with different
435         TYPE_STRUCTURAL_EQUALITY_P tag.
436         (iterative_hash_gimple_type): Restrict non-recursing into
437         pointer targets for records and unions.
438
439 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
440
441         PR debug/41717
442         * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
443         * dwarf2out.c (mem_loc_descriptor): Don't handle
444         POST_INT/POST_DEC/POST_MODIFY like SUBREG.  For SUBREG
445         punt if it is not lowpart subreg or if inner mode isn't
446         MODE_INT.
447
448 2009-10-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
449
450         * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
451         investigating previous or next insns.
452
453 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
454
455         * tree-sra.c (build_ref_for_offset_1): Update comment.
456
457 2009-10-16  Wolfgang Gellerich  <gellerich@de.ibm.com>
458
459         * config/s390/s390.md (atype): Added missing values.
460
461 2009-10-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
462
463         PR target/41702
464         * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
465         (casesi64p): Update pattern to reflect above.
466
467 2009-10-15  Steve Ellcey  <sje@cup.hp.com>
468
469         PR rtl-optimization/41697
470         * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
471
472 2009-10-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
473
474         PR target/23983
475         * config/rs6000/predicates.md: Update copyright year.
476         * config/rs6000/altivec.md: Ditto.
477         
478         * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
479         (MD_INCLUDES): Add a2.md.
480         
481         * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
482         RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
483         (builtin_classify): New static vector to classify various builtins
484         to get the tree attributes correct.
485         (def_builtin): Set the attributes of builtins based on what the
486         builtin does (i.e. memory operation, floating point, saturation
487         need special attributes, others are pure functions).
488
489         * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
490         the builtins.
491         (enum rs6000_builtins): Include rs6000-builtin.def to define the
492         builtins.  Change the end marker to MAX_RS6000_BUILTINS from
493         RS6000_BUILTIN_COUNT.
494         (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
495         MAX_RS6000_BUILTINS.
496
497         * config/rs6000/rs6000-builtin.def: New file that combines the
498         builtin enumeration name and attributes.
499
500 2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>
501
502         * config/i386/linux.h (ASM_SPEC): Add --32.
503
504 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
505
506         * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
507         and DW_TAG_template_alias.
508         (dwarf_attr_name): Handle DW_AT_main_subprogram,
509         DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
510         DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
511         DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
512         DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
513         and DW_AT_GNU_odr_signature.
514         (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
515         DW_FORM_flag_present and DW_FORM_ref_sig8.
516         (output_signature): Only print name on the first byte.
517         (output_die): Likewise for dw_val_class_data8.
518
519 2009-10-15  Alexander Monakov  <amonakov@ispras.ru>
520
521         * doc/invoke.texi: Clarify that most optimizations are not enabled
522         without -O.
523
524 2009-10-15  Richard Guenther  <rguenther@suse.de>
525
526         PR lto/41668
527         * gimple.c (compare_type_names_p): Handle anonymous names
528         differently based on new mode argument.
529         (gimple_types_compatible_p): For structs also compare the tags.
530         (iterative_hash_type_name): Rename to ...
531         (iterative_hash_name): ... this.  Hash all names.
532         (iterative_hash_gimple_type): Fix hashing the struct tag of
533         pointer targets.  Hash field decl names.
534
535 2009-10-15  Richard Guenther  <rguenther@suse.de>
536
537         PR lto/41669
538         * gimple.c (gimple_get_alias_set): Avoid recursing on
539         invalid type topology.
540
541 2009-10-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
542
543         * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
544
545 2009-10-15  Richard Guenther  <rguenther@suse.de>
546
547         * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
548
549 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
550
551         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
552         add --with-tune{,-32,-64} configured default for -mtune if explicit
553         -mcpu is used.
554
555 2009-10-14  Daniel Gutson  <dgutson@codesourcery.com>
556
557         * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
558
559 2009-10-14  DJ Delorie  <dj@redhat.com>
560         
561         * config/h8300/h8300.c (F): New.
562         (Fpa): New.
563         (h8300_emit_stack_adjustment): Call them.
564         (push): Likewise.
565         (h8300_push_pop): Likewise.
566         (h8300_expand_prologue): Likewise.
567         * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
568         (MUST_USE_SJLJ_EXCEPTIONS): Define.
569         (INCOMING_RETURN_ADDR_RTX): Define.
570         (INCOMING_FRAME_SP_OFFSET): Define.
571         (DWARF_CIE_DATA_ALIGNMENT): Define.
572
573 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
574
575         * stor-layout.c (place_field): Don't emit -Wpadded warnings for
576         fields in builtin structs.
577         (finalize_record_size): Likewise.
578
579 2009-10-14  Richard Guenther  <rguenther@suse.de>
580
581         * gimple.c (gtc_ob): New global.
582         (struct type_pair_d): Replace pointers with type UIDs.
583         (type_pair_hash): Adjust.
584         (type_pair_eq): Likewise.
585         (lookup_type_pair): Likewise.  Allocate from an obstack.
586         (gimple_force_type_merge): Adjust.
587         (gimple_types_compatible_p): Likewise.
588         (free_gimple_type_tables): Free the obstack.
589
590 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
591
592         * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
593         stmts setting DEBUG_EXPR_DECLs.
594
595         * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
596         Don't crash if mode1 is VOIDmode.
597
598 2009-09-26  Vladimir Makarov  <vmakarov@redhat.com>
599
600         * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
601         * params.h (IRA_LOOP_RESERVED_REGS): New.
602         * tree-pass.h (pass_subregs_of_mode_init,
603         pass_subregs_of_mode_finish): Remove.
604         * passes.c (pass_subregs_of_mode_init,
605         pass_subregs_of_mode_finish): Remove.
606         (pass_reginfo_init): Move before loop optimizations.
607         * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
608         * common.opt (fira-loop-pressure): New.
609         * toplev.h (flag_ira_loop_pressure): New.
610         * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
611         * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
612         Make external and void type functions.
613         (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
614         pass_subregs_of_mode_finish): Remove.
615         * ira-costs.c (init_costs): Call init_subregs_of_mode.
616         * regmove.c: Include ira.h.
617         (regmove_optimize): Call ira_set_pseudo_classes after IRA based
618         register pressure calculation in loops.
619         * loop-invariant.c: Include REGS_H and ira.h.
620         (struct loop_data): New members max_reg_pressure, regs_ref, and
621         regs_live.
622         (struct invariant): New member orig_regno.
623         (curr_loop): New variable.
624         (find_exits): Initialize regs_ref and regs_live.
625         (create_new_invariant): Initialize orig_regno.
626         (get_cover_class_and_nregs): New.
627         (get_inv_cost): Make aregs_needed an array.  Use regs_needed as an
628         array.  Add code for flag_ira_loop_pressure.
629         (gain_for_invariant): Make new_regs an array.  Add code for
630         flag_ira_loop_pressure.
631         (best_gain_for_invariant): Ditto.
632         (set_move_mark): New parameter gain.  Use it for debugging output.
633         (find_invariants_to_move): Make regs_needed and new_regs an array.
634         Add code for flag_ira_loop_pressure.
635         (move_invariant_reg): Set up orig_regno.
636         (move_invariants): Set up reg classes for pseudos for
637         flag_ira_loop_pressure.
638         (free_loop_data): Clear regs_ref and regs_live.
639         (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
640         get_regno_cover_class, change_pressure, mark_regno_live,
641         mark_regno_death, mark_reg_store, mark_reg_clobber,
642         mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
643         (move_loop_invariants): Calculate pressure.  Initialize curr_loop.
644         * ira.c (ira): Call ira_set_pseudo_classes after IRA based
645         register pressure calculation in loops if new regs were added.
646         Call finish_subregs_of_mode.
647         * opts.c (decode_options): Set up flag_ira_loop_pressure.
648         * Makefile.in (loop-invariant.o): Add ira.h.
649         (regmove.o): Ditto.
650         * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
651         Describe.
652         * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
653         
654 2009-10-14  Richard Guenther  <rguenther@suse.de>
655
656         * lto-symtab.c (lto_symtab_compatible): Fold in ...
657         (lto_symtab_merge): ... here.  Rewrite both to take the
658         prevailing and a to-be-merged entry and to queue diagnostics properly.
659         (lto_symtab_resolve_replaceable_p): New predicate for
660         symbol resolution.
661         (lto_symtab_resolve_can_prevail_p): Likewise.
662         (lto_symtab_resolve_symbols): Rewrite.  Fold in code that
663         handles merging commons by choosing the largest decl.  Fold
664         in code that gives ODR errors.
665         (lto_symtab_merge_decls_2): Simplify a lot.  Emit queued
666         diagnostics here.
667         (lto_symtab_merge_decls_1): Re-structure.  Deal with the
668         case of no prevailing decl here.  Diagnose mismatches
669         in object types here.  Drop all but the prevailing decls.
670         (lto_symtab_prevailing_decl): Return the single prevailing decl.
671         * lto-streamer-in.c (lto_input_tree_ref): Deal with
672         VIEW_CONVERT_EXPRs in decl slots.  Unshare the tree in this case.
673
674 2009-10-14  Richard Guenther  <rguenther@suse.de>
675
676         PR lto/41521
677         * lto-streamer-in.c (input_bb): Replace debug stmts with
678         nops instead of dropping them.
679
680 2009-10-14  Nick Clifton  <nickc@redhat.com>
681
682         * gcc/doc/extended.texi: Replace the dash character with @minus{}
683         in situations where it is being used as a minus symbol.
684         * gcc/doc/tm.texi: Likewise.
685         * gcc/doc/md.texi: Likewise.
686
687 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
688
689         PR preprocessor/41543
690         * input.h (BUILTINS_LOCATION): Change to 1 from 2.
691         Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
692         * tree.c: Include intl.h.
693         (expand_location): Handle BUILTINS_LOCATION.
694         * Makefile.in (tree.o): Depend on intl.h.
695
696         PR debug/41695
697         * dwarf2out.c (dwarf2out_var_location): Always clear
698         last_postcall_label when changing last_label.
699
700 2009-10-14  Pascal Obry  <obry@adacore.com>
701
702         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
703         (process_command): Handle -E as done with -c and -S.  Do not add
704         the target executable suffix to the output file when -E is used.
705         (main): Adjust error message accordingly.
706
707 2009-10-14  Alexandre Oliva  <aoliva@redhat.com>
708
709         PR debug/41343
710         PR debug/41447
711         PR debug/41264
712         PR debug/41338
713         * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
714         decl with rtl.
715         (tree_code_size): Likewise.
716
717 2009-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
718
719         * builtins.c (fold_builtin_1): Support complex "arc" functions.
720         * real.h (HAVE_mpc_arc): Define.
721
722 2009-10-14  Kaz Kojima  <kkojima@gcc.gnu.org>
723
724         * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
725         (struct builtin_description): Add fndecl field.
726         (bdesc): Remove const qualifier.  Update initializer.
727         (sh_media_init_builtins): Remove const qualifier for d.  Record
728         the result of add_builtin_function to the fndecl field.
729         (sh_builtin_decl): New.
730         (sh_media_builtin_decl): New.
731
732 2009-10-14  Hans-Peter Nilsson  <hp@axis.com>
733
734         PR target/38948
735         * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
736         requests between special registers.
737
738 2009-10-13  Eric Botcazou  <ebotcazou@adacore.com>
739
740         * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
741
742 2009-10-13  Richard Henderson  <rth@redhat.com>
743
744         PR tree-optimization/41377
745         * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
746         (cleanup_empty_eh_merge_phis): New change_region parameter;
747         pass it on to redirect_eh_edge_1.  Update callers.
748         (cleanup_empty_eh_unsplit): Don't require an existing EH label
749         at the destination block.
750
751 2009-10-13  Basile Starynkevitch  <basile@starynkevitch.net>
752
753         * passes.c (register_pass): Replaced gcc_unreachable by
754         fatal_error on failure. Mentions plugins in comments & messages.
755
756 2009-10-13  Jakub Jelinek  <jakub@redhat.com>
757
758         PR target/41693
759         * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
760         * sched-vis.c (print_value): Use it.
761         * cselib.c (cselib_hash_rtx): Likewise.
762         * print-rtl.c (print_rtx): Likewise.
763         * cfgexpand.c (expand_debug_rtx): Likewise.
764         * var-tracking.c (vt_expand_loc_callback): Likewise.
765
766 2009-10-13  Richard Guenther  <rguenther@suse.de>
767
768         PR lto/41565
769         * opts.c (handle_option): Split out code to handle setting
770         the options flag var ...
771         (set_option): ... here.
772         * opts.h (set_option): Declare.
773         * lto-opts.c (register_user_option_p): Include -fexceptions
774         and all position independent code variants.
775         (handle_common_option): Remove.
776         (lto_reissue_options): Use set_option.
777
778 2009-10-13  Martin Jambor  <mjambor@suse.cz>
779
780         PR tree-optimization/41661
781         * ipa-prop.c (compute_complex_pass_through): Allow only operations
782         that are tcc_comparisons or do not change the type in any
783         un-usleless way.
784         * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
785         folding tcc_comparison operations.
786
787 2009-10-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
788
789         * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
790         properly.
791
792 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
793
794         PR debug/41343
795         PR debug/41447
796         PR debug/41264
797         PR debug/41338
798         * tree.def (DEBUG_EXPR_DECL): New.
799         * rtl.def (DEBUG_EXPR): New.
800         * gengtype.c (adjust_field_rtx_def): Handle it.
801         * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
802         (insert_debug_temp_for_var_def): ... this.  Drop support for
803         moving.  Take iterator for def stmt; insert debug stmt before it.
804         Scan early for use count and kind in debug stmts.
805         (propagate_defs_into_debug_stmts): Rename to...
806         (insert_debug_temps_for_defs): ... this.  Likewise.
807         * tree.h (DEBUG_TEMP_UID): New.
808         * tree.c (next_debug_decl_uid): New.
809         (make_node_stat): Count debug decls separately.
810         (copy_node_stat): Likewise.
811         * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
812         * var-tracking.c (dv_is_decl_p): Recognize it.
813         (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
814         (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
815         (vt_expand_loc_callback): Expand DEBUG_EXPRs.
816         (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
817         * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
818         (cselib_hash_rtx): Likewise.
819         (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
820         * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
821         debug bind stmts.
822         * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
823         (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
824         * rtl.c (copy_rtx): Likewise.
825         (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
826         * print-rtl.c (print_rtx): Likewise.
827         * sched-vis.c (print_value): Likewise.
828         (print_insn): Handle DEBUG_EXPR_DECL.
829         * tree-dump.c (dequeue_and_dump): Likewise.
830         * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
831         * gimple-iterator (gsi_replace): Check for same lhs.
832         (gsi_remove): Insert debug temps.
833         * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
834         (move_computations_stmt): Drop explicit propagation into debug stmts.
835         (rewrite_bittest): Likewise.  Use gsi_remove for propagation.
836         * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
837         * tree-ssa-sink.c (statement_sink_location): Likewise.
838         * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
839         * tree-ssanames.c (release_ssa_name): Adjust for rename.
840         * tree-flow.h: Likewise.
841         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
842         debug temps without values.
843         (eliminate_unnecessary_stmts): Don't discard just-inserted
844         debug stmts.
845
846 2009-10-12  Hans-Peter Nilsson  <hp@axis.com>
847
848         PR target/26515
849         * config/cris/cris.md (andu): Check that operand 1 is one of the
850         general registers.  Fix typo in head comment.
851
852 2009-10-12  Stefan Dösinger  <stefan@codeweavers.com>
853
854         * config/i386/i386.md (vswapmov): New.
855         * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
856         (ix86_function_ms_hook_prologue): New.
857         (ix86_expand_prologue): Handle ms_hook_prologue attribute.
858         * configure.ac: Test for swap suffix support in as.
859         * configure: Rebuild.
860
861 2009-10-12  Jakub Jelinek  <jakub@redhat.com>
862
863         PR target/41680
864         * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
865         paradoxical subregs to prevent partial register stalls if the inner
866         mode is integer mode.
867
868 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
869
870         * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
871
872 2009-10-12  Dodji Seketeli  <dodji@redhat.com>
873
874         PR c++/41570
875         * gcc/dwarf2out.c (template_parameter_pack_die,
876         gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
877
878 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
879
880         PR debug/41616
881         * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
882         on updates too.
883         (maybe_register_def): Likewise.  Take stmt iterator.
884         (rewrite_update_stmt): Take stmt iterator and pass it on.
885         (rewrite_update_enter_block): Pass stmt iterator.
886
887 2009-10-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
888
889         * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
890         (spu_builtin_decl): New function.
891
892 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
893
894         * config/i386/i386.md (SWIM): New mode iterator.
895         (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
896         using SWIM mode iterator.
897         (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
898         patterns using SWI48 mode iterator.
899         (*x86_mov<mode>cc_0_m1_se):  Macroize insn from
900         *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
901         (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
902         (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
903         patterns using SWI248 mode iterator.
904         * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
905         gen_x86_movdicc_0_m1_rex64 for renamed function
906
907 2009-10-11  Jose Ruiz  <ruiz@adacore.com>
908             Eric Botcazou  <ebotcazou@adacore.com>
909
910         PR target/33743
911         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
912         * config/sparc/sol2-unwind.h: New file.
913
914 2009-10-11  Olivier Hainque  <hainque@adacore.com>
915             Eric Botcazou  <ebotcazou@adacore.com>
916
917         PR target/33743
918         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
919         * config/i386/sol2-unwind.h: New file.
920
921 2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>
922
923         PR target/41665
924         * config/i386/i386.md (addsi_1_zext): Get the proper second
925         operand for lea.
926
927 2009-10-11  Richard Sandiford  <rdsandiford@googlemail.com>
928
929         * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
930         all OLD_RTXes, not just REGs.  Use copy_rtx to create the
931         replacement value.
932
933 2009-10-11  Richard Guenther  <rguenther@suse.de>
934
935         * gimple.c (iterative_hash_type_name): Do not handle special
936         anonymous names.
937
938 2009-10-11  Uros Bizjak  <ubizjak@gmail.com>
939
940         * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
941         (*setcc_si_1_and): Ditto.
942         (*setcc_si_1_movzbl): Ditto.
943         (*setcc_<mode>_2): Ditto.
944         (*setcc_qi): Rename from *setcc_1.
945         (*setcc_qi_slp): Rename from *setcc_2.
946
947         (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
948         (*zero_extendqisi2_movzbw_and splitter): Ditto.
949
950         * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
951         "if" condition, there is already assert with reload_completed present.
952
953 2009-10-11  Gerald Pfeifer  <gerald@pfeifer.com>
954
955         * plugin.c (try_init_one_plugin): Improve constness of variable err.
956
957 2009-10-10  Gerald Pfeifer  <gerald@pfeifer.com>
958
959         * doc/install.texi (Final install): Refer to
960         http://gcc.gnu.org/bugs/ for bug reporting.
961
962 2009-10-10  Peter Bergner  <bergner@vnet.ibm.com>
963
964         * configure.ac: Add test for dci instruction.
965         * configure: Regenerate.
966         * config.in: Likewise.
967         * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
968         * doc/invoke.texi: Add cpu_type 476 and 476fp.
969         (-mmulhw): Add 476 to description.
970         (-mdlmzb): Likewise.
971         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
972         * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
973         (processor_target_table): Add 476 and 476fp entries.
974         (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
975         (rs6000_issue_rate): Add CPU_PPC476.
976         * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
977         (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
978         (processor_type): Add PROCESSOR_PPC476.
979         (EXTRA_SPECS): Add asm_cpu_476 string.
980         * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
981         (define_attr "cpu"): Add ppc476.
982         Include 476.md.
983         Update comments for 476.
984         (isel_signed, isel_unsigned): Change to use "isel" type attribute.
985         * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
986         Update copyright year.
987         * config/rs6000/476.md: New file.
988         * config/rs6000/40x.md: Add description for "isel" attribute.
989         Update copyright year.
990         * config/rs6000/440.md: Likewise.
991         * config/rs6000/603.md: Likewise.
992         * config/rs6000/6xx.md: Likewise.
993         * config/rs6000/7450.md: Likewise.
994         * config/rs6000/7xx.md: Likewise.
995         * config/rs6000/8540.md: Likewise.
996         * config/rs6000/cell.md: Likewise.
997         * config/rs6000/e300c2c3.md: Likewise.
998         * config/rs6000/e500mc.md: Likewise.
999         * config/rs6000/mpc.md: Likewise.
1000         * config/rs6000/power4.md: Likewise.
1001         * config/rs6000/power5.md: Likewise.
1002         * config/rs6000/power6.md: Likewise.
1003         * config/rs6000/power7.md: Likewise.
1004         * config/rs6000/rios1.md: Likewise.
1005         * config/rs6000/rios2.md: Likewise.
1006         * config/rs6000/rs64.md: Likewise.
1007
1008 2009-10-10  Richard Guenther  <rguenther@suse.de>
1009
1010         PR tree-optimization/41654
1011         * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
1012         a cond expr before calling gimple_cond_set_condition_from_tree.
1013         (ifcombine_iforif): Likewise.
1014
1015 2009-10-09  Ian Lance Taylor  <iant@google.com>
1016
1017         * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
1018         * configure: Rebuild.
1019
1020 2009-10-09  Neil Vachharajani <nvachhar@google.com>
1021
1022         * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
1023         deprecated.
1024
1025 2009-10-09  Richard Guenther  <rguenther@suse.de>
1026
1027         PR lto/41638
1028         * target-def.h (TARGET_BUILTIN_DECL): Define.
1029         (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
1030         * target.h (struct gcc_target): Add builtin_decl target hook.
1031         * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
1032         * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
1033         target builtins.
1034         * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
1035         not gcc_unreachable.
1036         (lto_output_builtin_tree): Sorry if the target does not support
1037         streaming target builtins.
1038         * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
1039         (rs6000_builtin_decl): New function.
1040         * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
1041         (ix86_builtin_decl): New function.
1042
1043 2009-10-09  Jakub Jelinek  <jakub@redhat.com>
1044
1045         PR preprocessor/41445
1046         * c-ppoutput.c (do_line_change): New function.
1047         (cb_line_change): Use it.
1048         (scan_translation_unit): Call do_line_change if
1049         avoid_paste or PREV_WHITE and token location is on a different line
1050         than print.src_line.
1051
1052         PR debug/40521
1053         * dwarf2out.c (dwarf2out_init): Test whether
1054         HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
1055         it is defined.
1056
1057         PR rtl-optimization/41646
1058         * calls.c (expand_call): For BLKmode types returned in registers
1059         avoid likely spilled hard regs in copy_blkmode_from_reg generated
1060         insns.
1061
1062 2009-10-09  Richard Guenther  <rguenther@suse.de>
1063
1064         PR tree-optimization/41634
1065         * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
1066         we remove the correct elements.
1067         (optimize_stmt): Make sure to update stmt operands before
1068         optimizing redundancies.
1069
1070 2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1071
1072         * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
1073
1074 2009-10-09  Richard Guenther  <rguenther@suse.de>
1075
1076         PR driver/41637
1077         * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
1078         globals.
1079         (lto_wrapper_exit): New function.
1080         (fatal): Use it.
1081         (fatal_perror): Likewise.
1082         (fork_execute): Use global args_name, do not free it.
1083         (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
1084         * lto-streamer.h: Remove duplicate prototypes.
1085
1086 2009-10-09  Richard Guenther  <rguenther@suse.de>
1087
1088         * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
1089         before calling stmt_can_throw_external.
1090
1091 2009-10-09  Eric Botcazou  <ebotcazou@adacore.com>
1092
1093         PR tree-optimization/40071
1094         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
1095         pointer if the original data reference doesn't conflict with the
1096         created vector data reference.  Fix long line.
1097
1098 2009-10-09  Uros Bizjak  <ubizjak@gmail.com>
1099
1100         * config/i386/i386.md (any_div): New code iterator.
1101         (u): Handle div and udiv.
1102         (sgnprefix): Ditto.
1103         (<u>divqi3): Macroize insn from {,u}divqi3  using any_div
1104         code iterator.
1105         (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
1106         lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
1107         (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
1108         lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
1109
1110 2009-10-08  Joseph Myers  <joseph@codesourcery.com>
1111
1112         * gcc.c (main): Remove trailing "." from diagnostics.
1113
1114 2009-10-08  Cary Coutant  <ccoutant@google.com>
1115
1116         Add support for debugging with ICF (Identical Code Folding).
1117         * calls.c (debug.h): New #include.
1118         (emit_call_1): Call virtual_call_token debug hook.
1119         * common.opt (-fenable-icf-debug): New option.
1120         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
1121         locations in the source).
1122         (poc_label_num): New variable.
1123         (dcall_entry, vcall_entry): New typedefs.
1124         (dcall_table, vcall_table): New variables.
1125         (struct vcall_insn): New type.
1126         (vcall_insn_table): New variable.
1127         (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
1128         (size_of_dcall_table): New function.
1129         (output_dcall_table): New function.
1130         (size_of_vcall_table): New function.
1131         (output_vcall_table): New function.
1132         (dwarf2out_direct_call): New function.
1133         (vcall_insn_table_hash): New function.
1134         (vcall_insn_table_eq): New function.
1135         (dwarf2out_virtual_call_token): New function.
1136         (dwarf2out_virtual_call): New function.
1137         (dwarf2out_init): Allocate new tables and sections.
1138         (prune_unused_types): Mark DIEs referenced from direct call table.
1139         (dwarf2out_finish): Output direct and virtual call tables.
1140         * final.c (final_scan_insn): Call direct_call and virtual_call
1141         debug hooks.
1142         * debug.h (struct gcc_debug_hooks): Add direct_call,
1143         virtual_call_token, virtual_call hooks.
1144         (debug_nothing_uid): New function.
1145         * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
1146         (debug_nothing_uid): New function.
1147         * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
1148         (xcoff_debug_hooks): Likewise.
1149         * sdbout.c (sdb_debug_hooks): Likewise.
1150         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1151         * doc/invoke.texi (-fenable-icf-debug): New option.
1152
1153 2009-10-08  Alexandre Oliva  <aoliva@redhat.com>
1154
1155         PR debug/41353
1156         * regmove.c (regmove_backward_pass): Replace src with dst in the
1157         debug insn, and check for dst before rather than after.
1158
1159 2009-10-08  Janis Johnson <janis187@us.ibm.com>
1160
1161         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
1162         (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
1163
1164 2009-10-08  Jan Hubicka  <jh@suse.cz>
1165
1166         PR middle-end/41626
1167         * cgraphbuild.c (record_reference): When parameter DATA is NULL,
1168         do not mark cgraph nodes as needed.
1169         (record_references_in_initializer): Add new only_vars parameter.
1170         * cgraph.h (record_references_in_initializer): New parameter.
1171         * varasm.c (assemble_variable): Update call.
1172         * varpool.c (varpool_analyze_pending_decls): Always look for
1173         referenced vars.
1174
1175 2009-10-08  Anatoly Sokolov  <aesok@post.ru>
1176
1177         * config/avr/avr.c (last_insn_address) Remove variable.
1178         (expand_prologue): Don't initialise last_insn_address variable.
1179         (final_prescan_insn): Don't output insn size.
1180         * config/avr/avr.opt (msize): Remove switch.
1181         * doc/invoke.texi (AVR Options): Remove documentation of -msize
1182         switch.
1183
1184 2009-10-08  Adam Nemet  <anemet@caviumnetworks.com>
1185
1186         * combine.c (label_tick_ebb_start): Fix comment.
1187         (combine_instructions): Set label_tick and label_tick_ebb_start before
1188         calling setup_incoming_promotions.  Start them from 1.  Increment
1189         label_tick instead of deriving it from the BB index.  Rather than
1190         comparing ticks use the block from the previous iteration to decide
1191         whether to start a new EBB.  Remove empty lines before function.
1192
1193 2009-10-08  Michael Matz  <matz@suse.de>
1194
1195         PR middle-end/41573
1196         * builtins.c (fold_builtin_isascii): Use fold_build2.
1197         (fold_builtin_isdigit): Ditto.
1198         * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
1199         * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
1200         remove_useless_stmts_cond, remove_useless_stmts_tf,
1201         remove_useless_stmts_tc, remove_useless_stmts_bind,
1202         remove_useless_stmts_goto, remove_useless_stmts_label,
1203         remove_useless_stmts_1, remove_useless_stmts,
1204         pass_remove_useless_stmts): Remove.
1205         * tree-pass.h (pass_remove_useless_stmts): Don't declare.
1206         * passes.c (init_optimization_passes): Don't add
1207         pass_remove_useless_stmts.
1208         * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
1209         * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
1210         static constants.
1211         * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
1212         for static constants.
1213         * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
1214         * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
1215
1216 2009-10-08  Richard Guenther  <rguenther@suse.de>
1217
1218         * gimple.c (free_gimple_type_tables): New function.
1219         * gimple.h (free_gimple_type_tables): Declare.
1220
1221 2009-10-07  Mark Heffernan  <meheff@google.com>
1222
1223         * ipa-prop.c (ipa_print_node_params) Only print
1224         names of named arguments.
1225
1226 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
1227
1228         * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
1229         being statically linked.
1230
1231 2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1232
1233         * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
1234
1235 2009-10-08  Jan Hubicka  <jh@suse.cz>
1236
1237         PR bootstrap/41620
1238         * ipa.c (cgraph_externally_visible_p,
1239         function_and_variable_visibility,
1240         whole_program_function_and_variable_visibility): Skip non-finalized
1241         nodes.
1242
1243 2009-10-08  Nick Clifton  <nickc@redhat.com>
1244
1245         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
1246         CONST_DOUBLEs.
1247
1248 2009-10-08  Andreas Tobler  <a.tobler@schweiz.org>
1249
1250         PR bootstrap/37739
1251         * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
1252
1253 2009-10-07  Joseph Myers  <joseph@codesourcery.com>
1254
1255         PR c/41182
1256         * c-common.c (c_fully_fold_internal): Strip nops from the result
1257         of recursive calls to c_fully_fold_internal.
1258         (c_wrap_maybe_const): New.
1259         (c_save_expr): Use c_wrap_maybe_const.
1260         * c-common.h (c_wrap_maybe_const): Declare.
1261         * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
1262         build_binary_op): Use c_wrap_maybe_const.
1263
1264 2009-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1265
1266         * real.c: Fix comment to reflect actual exponent size.
1267
1268 2009-10-08  Ben Elliston  <bje@au.ibm.com>
1269
1270         * config/rs6000/a2.md: Add FSF comment header.
1271
1272 2009-10-07  Uros Bizjak  <ubizjak@gmail.com>
1273
1274         * config/i386/i386.md (any_extend): New code iterator.
1275         (u, s): New code attributes.
1276         (sgnprefix): Ditto.
1277         (DWIH): Rewrite as code iterator for SI and DI modes.
1278         (DWI): Rewrite as mode attribute.
1279         (dwi): New mode attribute.
1280         (di): Depend on SI mode and DI mode.
1281         (doubleint_general_operand): Remove mode attribute.
1282
1283         (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
1284         DWIH mode iterator.
1285
1286         (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
1287         (*sub<mode>3_doubleword): Ditto.
1288
1289         (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
1290         using SWIM248 mode iterator.
1291         (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
1292         using SWI48 mode iterator.
1293         (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
1294         patterns using DWIH mode iterator and any_extend code iterator.
1295         (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
1296         using any_extend code iterator.
1297         (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
1298         patterns using DWIH mode iterator and any_extend code iterator.
1299         (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
1300         using any_extend code iterator.
1301         (<s>mul<mode>3_highpart): Macroize expander from
1302         {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
1303         and any_extend code iterator.
1304         (*<s>muldi3_highpart_1): Macroize insn from
1305         *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
1306         (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
1307         patterns using any_extend code iterator.
1308         (*<s>mulsi3_highpart_zext): Macroize insn from
1309         *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
1310
1311 2009-10-07  Jakub Jelinek  <jakub@redhat.com>
1312
1313         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
1314         DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
1315         refering to a DIE with DW_AT_const_value.
1316
1317 2009-10-07  Vladimir Makarov  <vmakarov@redhat.com>
1318
1319         PR middle-end/22072
1320         * ira-lives.c (check_and_make_def_conflict): Process all operands.
1321
1322 2009-10-06  Jan Hubicka  <jh@suse.cz>
1323
1324         * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
1325         correctly.
1326
1327 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
1328
1329         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
1330         *lea_2_rex64): Move before *add<mode>_1 pattern.
1331
1332 2009-10-07  Jan Hubicka  <jh@suse.cz>
1333
1334         * collect2.c (main): Add -fno-whole-program.
1335         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
1336
1337 2009-10-07  Jan Hubicka  <jh@suse.cz>
1338
1339         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
1340         has no address taken.
1341         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
1342         never needed.
1343         (cgraph_clone_node): Clear externally_visible flag for clones.
1344         * cgraph.h (cgraph_only_called_directly_p,
1345         cgraph_can_remove_if_no_direct_calls_p): New predicates.
1346         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
1347         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
1348         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
1349         ipcp_insert_stage): Likwise.
1350         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
1351         externally_visible flag.
1352         (verify_cgraph_node): Verify that inline clones look right.
1353         (process_function_and_variable_attributes): Do not set
1354         externally_visible flags.
1355         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
1356         been already run.
1357         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
1358         boundaries.
1359         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
1360         clear externally_visible when turning into inline clones
1361         (cgraph_mark_inline_edge): Use new predicates.
1362         (cgraph_estimate_growth): Likewise.
1363         (cgraph_decide_inlining): Likewise.
1364         * ipa.c (cgraph_postorder): Likewise.
1365         (cgraph_remove_unreachable_nodes): Likewise; sanity check
1366         that inline clones are not needed.
1367         (cgraph_externally_visible_p): New predicate.
1368         (function_and_variable_visibility): Add whole_program parameter;
1369         always set externally_visible flag; handle COMDAT function
1370         privatization.
1371         (local_function_and_variable_visibility): New function.
1372         (gate_whole_program_function_and_variable_visibility): New function.
1373         (whole_program_function_and_variable_visibility): New function.
1374         (pass_ipa_whole_program_visibility): New function.
1375         * passes.c  (init_optimization_passes): Add whole program visibility
1376         pass.
1377         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
1378         not care about needed/reachable flags.
1379         * varpool.c: Include flags.h
1380         (decide_is_variable_needed): When doing LTO assume whole-program mode.
1381         (varpool_finalize_decl): When we are in LTO read-back, all variables
1382         are analyzed.
1383         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
1384
1385 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1386
1387         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
1388         add MASK_HARD_DFP.
1389
1390 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1391
1392         * config.gcc: Don't include the makefile fragments intended for
1393         libgcc.
1394         * config/s390/fixdfdi.h: File removed.
1395         * config/s390/libgcc-glibc.ver: File removed.
1396         * config/s390/s390.h: Remove the fixdfdi.h hack.
1397         * config/s390/t-crtstuff: File moved to libgcc dir.
1398         * config/s390/t-linux: Likewise.
1399         * config/s390/t-tpf: libgcc specific parts removed.
1400         * config/s390/t-linux64: Likewise.
1401
1402 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
1403
1404         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
1405         (lto-compress.o): Likewise.
1406
1407 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
1408
1409         PR target/41512
1410         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
1411         dllexport to class members here.
1412         (i386_pe_determine_dllimport_p): Only check static class data for
1413         definition.
1414         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
1415         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
1416         functions for vague linkage.
1417         (i386_pe_type_dllexport_p): Fix formatting.
1418         (maybe_add_dllexport) New function.
1419         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
1420         to class members.
1421
1422 2009-10-07  Ben Elliston  <bje@au.ibm.com>
1423
1424         * config/rs6000/a2.md: Remove duplicated lines.
1425
1426 2009-10-07  Ben Elliston  <bje@au.ibm.com>
1427
1428         * config.gcc (powerpc*-*-*): Handle a2.
1429         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
1430         * config/rs6000/a2.md: New file.
1431         * config/rs6000/rs6000.opt (mno-update): New.
1432         (mupdate): Return to using a mask, not a var.
1433         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
1434         (enum processor_type): Add PROCESSOR_PPCA2.
1435         * config/rs6000/rs6000.c (ppca2_cost): New costs.
1436         (rs6000_override_options): Add "a2" to processor_target_table.
1437         Update rs6000_always_hint logic.  Correctly set rs6000_cost for a2.
1438         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
1439
1440 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
1441
1442         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
1443         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
1444         reference to nonexistent gen_truncxfxf2 function.
1445
1446 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
1447
1448         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
1449         (DWIH, g, di, doubleint_general_operand): New mode attributes.
1450         (general_operand): Handle TI mode.
1451         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
1452         using SDWIM mode iterator.
1453         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
1454         pattern from *add{di,ti}3_1 patterns and corresponding splitters
1455         using DWI mode iterator.
1456         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
1457         patterns using SWI mode iterator.
1458         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
1459         using SWI48 mode iterator.
1460         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
1461         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
1462         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
1463         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
1464         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
1465         using SDWIM mode iterator.
1466         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
1467         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
1468         using DWI mode iterator.
1469         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
1470         patterns using SWI mode iterator.
1471         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
1472         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
1473         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
1474         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
1475         patterns using plusminus code iterator.
1476         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
1477         sub<mode>3 patterns using plusminus code iterator.
1478         * config/i386/i386.c (override_options): Update the call to
1479         gen_subdi_carry_rex64 for renamed function.
1480         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
1481         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
1482         calls to instruction expanders.
1483
1484 2009-10-06  Martin Jambor  <mjambor@suse.cz>
1485
1486         PR bootstrap/41395
1487         * opts.c (decode_options): Run IPA-SRA at -O2.
1488
1489 2009-10-06  Richard Guenther  <rguenther@suse.de>
1490
1491         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
1492
1493 2009-10-06  Tobias Burnus  <burnus@net-b.de>
1494
1495         PR lto/41591
1496         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
1497         -flto and -fwhole-program flags can be combined.
1498
1499 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
1500
1501         PR driver/41217
1502         * gcc.c (process_command): Check that -o argument was specified.
1503
1504 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
1505
1506         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
1507
1508 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1509
1510         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
1511         * doc/invoke.texi (Warning Options): Annotate allowed languages
1512         for -Wunsuffixed-float-constants.
1513
1514 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
1515
1516         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
1517         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
1518         same name and isn't the main variant.
1519
1520         PR debug/41558
1521         * dwarf2out.c (loc_by_reference): Removed.
1522         (dw_loc_list_1): New function.
1523         (dw_loc_list): Remove toplev argument, add want_address argument.
1524         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
1525         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
1526         want_address == 2 to dw_loc_list.  For successful dw_loc_list
1527         set have_address to 1 only if want_address is not 0.
1528
1529 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
1530
1531         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
1532         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
1533         a code block followed by two pointers.
1534         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
1535         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
1536         (MIPS_MOVE): Likewise.
1537         (MIPS_LUI): Likewise.
1538         (MIPS_JR): Likewise.
1539         (MIPS_BAL): Likewise.
1540         (MIPS_NOP): Likewise.
1541         (mips_asm_trampoline_template): Delete.
1542         (mips_trampoline_code_size): New function.
1543         (mips_trampoline_init): Add shorter sequences for all cases
1544         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
1545         Calculate the opcodes directly, rather than copying from a template.
1546         Only flush the code part of the trampoline.
1547         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
1548
1549 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
1550
1551         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
1552         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
1553         (INCOMING_RETURN_ADDR_RTX): Likewise.
1554         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
1555         with AT_REGNUM.
1556         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
1557         with RETURN_ADDR_REGNUM.
1558         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
1559         * config/mips/mips.c (mips16_build_call_stub): Replace
1560         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
1561         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
1562         (mips_print_operand_punctuation): Likewise.
1563         (mips_frame_set): Likewise.
1564         (mips16e_output_save_restore): Likewise.
1565         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
1566         (mips_save_reg_p): Likewise.
1567         (mips_return_addr): Likewise.
1568         (mips_set_return_address): Likewise.
1569         (mips_direct_save_slot_move_p): Likewise.
1570         (mips_output_function_prologue): Likewise.
1571         (mips_restore_reg): Likewise.
1572         (mips_expand_epilogue): Likewise.
1573         (mips_epilogue_uses): Likewise.
1574         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
1575         (*mov<mode>_ra): Use it instead of a hard-coded 31.
1576         (clear_hazard_<mode>): Likewise.
1577         (call_internal): Likewise.
1578         (call_internal_direct): Likewise.
1579         (call_direct_split): Likewise.
1580         (call_value_internal): Likewise.
1581         (call_value_split): Likewise.
1582         (call_value_internal_direct): Likewise.
1583         (call_value_direct_split): Likewise.
1584         (call_value_multiple_internal): Likewise.
1585         (call_value_multiple_split): Likewise.
1586
1587 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
1588             Jakub Jelinek  <jakub@redhat.com>
1589
1590         PR rtl-optimization/41511
1591         * combine.c (record_value_for_reg): Pass explicit values as argument
1592         to get_last_value_validate.
1593         (get_last_value_validate): Document INSN parameter.
1594         For non-readonly MEMs, assume they might have been modified if INSN
1595         was in another basic block.
1596         (get_last_value): Minor reformatting.
1597
1598 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1599
1600         PR tree-opt/40992
1601         * final.c (asm_str_count): Split out from asm_insn_count.
1602         * rtl.h (asm_str_count): New prototype.
1603         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
1604         asm_str_count.
1605
1606 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
1607
1608         * doc/plugins.texi: Change plugin_pass to register_pass_info.
1609
1610 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
1611             Rafael Espindola  <espindola@google.com>
1612
1613         * gengtype.c (write_types): Moved call to write_func_for_structure
1614         into seperate loops.
1615
1616 2009-10-05  Richard Guenther  <rguenther@suse.de>
1617
1618         PR lto/41281
1619         * lto-cgraph.c (output_cgraph): Output toplevel asms.
1620         (input_cgraph_1): Input toplevel asms.
1621
1622 2009-10-05  Richard Guenther  <rguenther@suse.de>
1623
1624         PR lto/40902
1625         * lto-symtab.c (lto_compatible_attributes_p): Remove.
1626         (external_aggregate_decl_p): Likewise.
1627         (lto_symtab_compatible): Re-structure.  Remove dead code.
1628         For variables ignore toplevel qualifiers when comparing types.
1629         Issue warnings, not errors for mismatched user-alignment.
1630
1631 2009-10-05  Richard Guenther  <rguenther@suse.de>
1632
1633         PR lto/41552
1634         PR lto/41487
1635         * lto-symtab.c (struct lto_symtab_base_def): Remove.
1636         (struct lto_symtab_identifier_def): Likewise.
1637         (struct lto_symtab_decl_def): Likewise.
1638         (struct lto_symtab_entry_def): New.
1639         (lto_symtab_identifier_t): Rename to ...
1640         (lto_symtab_entry_t): ... this.
1641         (lto_symtab_decls): Remove.
1642         (lto_symtab_base_hash): Rename to ...
1643         (lto_symtab_entry_hash): ... this.
1644         (lto_symtab_base_eq): Rename to ...
1645         (lto_symtab_entry_eq): ... this.
1646         (lto_symtab_base_marked_p): Rename to ...
1647         (lto_symtab_entry_marked_p): ... this.
1648         (lto_symtab_identifier_marked_p): Remove.
1649         (lto_symtab_decl_marked_p): Likewise.
1650         (lto_symtab_maybe_init_hash_tables): Rename to ...
1651         (lto_symtab_maybe_init_hash_table): ... this.
1652         (lto_symtab_set_resolution_and_file_data): Remove.
1653         (lto_symtab_register_decl): New function.
1654         (lto_symtab_get_identifier): Remove.
1655         (lto_symtab_get): New function.
1656         (lto_symtab_get_resolution): Adjust.
1657         (lto_symtab_get_identifier_decl): Remove.
1658         (lto_symtab_set_identifier_decl): Likewise.
1659         (lto_symtab_merge_decl): Rename to ...
1660         (lto_symtab_merge): ... this.  Rewrite.
1661         (lto_symtab_merge_var): Remove.
1662         (lto_symtab_merge_fn): Likewise.
1663         (lto_symtab_prevailing_decl): Adjust.
1664         (lto_cgraph_replace_node): New function.
1665         (lto_symtab_merge_decls_2): Likewise.
1666         (lto_symtab_merge_decls_1): Likewise.
1667         (lto_symtab_fixup_var_decls): Likewise.
1668         (lto_symtab_resolve_symbols): Likewise.
1669         (lto_symtab_merge_decls): Likewise.
1670         (lto_symtab_prevailing_decl): Adjust.
1671         (lto_symtab_get_symtab_def): Remove.
1672         (lto_symtab_get_file_data): Likewise.
1673         (lto_symtab_clear_resolution): Adjust.
1674         (lto_symtab_clear_resolution): Likewise.
1675         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
1676         (input_cgraph_1): Likewise.
1677         * lto-streamer-in.c (get_resolution): Do not provide fake
1678         symbol resolutions here.
1679         (deferred_global_decls): Remove.
1680         (lto_register_deferred_decls_in_symtab): Likewise.
1681         (lto_register_var_decl_in_symtab): Change signature, register
1682         variable via lto_symtab_register_decl.
1683         (lto_register_function_decl_in_symtab): Likewise.
1684         (lto_read_tree): Adjust.
1685         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
1686         (lto_symtab_merge_var): Likewise.
1687         (lto_symtab_merge_fn): Likewise.
1688         (lto_symtab_register_decl): Declare.
1689         (lto_symtab_merge_decls): Likewise.
1690
1691 2009-10-05  Richard Guenther  <rguenther@suse.de>
1692
1693         PR tree-optimization/23821
1694         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
1695         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
1696         simple IV increments.
1697
1698 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1699
1700         * config/arm/arm.c (arm_override_options): Really initialize
1701         flag_dwarf2_cfi_asm to 0.
1702
1703 2009-10-05  Doug Kwan  <dougkwan@google.com>
1704
1705         PR rtl-optimization/41574
1706         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
1707         floating point and we are not doing unsafe math optimizations.
1708
1709 2009-10-03  Simon Baldwin  <simonb@google.com>
1710             Cary Coutant  <ccoutant@google.com>
1711             Rafael Espindola  <espindola@google.com>
1712             Richard Guenther  <rguenther@suse.de>
1713             Jan Hubicka  <jh@suse.cz>
1714             Doug Kwan <dougkwan@google.com>
1715             H.J. Lu  <hongjiu.lu@intel.com>
1716             Bill Maddox  <maddox@google.com>
1717             Ryan Mansfield  <rmansfield@qnx.com>
1718             Diego Novillo  <dnovillo@google.com>
1719             Ollie Wild  <aaw@google.com>
1720             Kenneth Zadeck <zadeck@naturalbridge.com>
1721
1722         * lto-cgraph.c: New file.
1723         * lto-compress.c: New file.
1724         * lto-compress.h: New file.
1725         * lto-opts.c: New file.
1726         * lto-section-in.c: New file.
1727         * lto-section-out.c: New file.
1728         * lto-streamer-in.c: New file.
1729         * lto-streamer-out.c: New file.
1730         * lto-streamer.c: New file.
1731         * lto-streamer.h: New file.
1732         * lto-symtab.c: New file.
1733         * lto-wpa-fixup.c: New file.
1734         * lto-wrapper.c: New file.
1735
1736 2009-10-03  Simon Baldwin  <baldwin@google.com>
1737             Ben Elliston  <bje@au.ibm.com>
1738             Rafael Espindola  <espindola@google.com>
1739             Nathan Froyd  <froydnj@codesourcery.com>
1740             Jan Hubicka  <jh@suse.cz>
1741             Doug Kwan  <dougkwan@google.com>
1742             Diego Novillo  <dnovillo@google.com>
1743             Kenneth Zadeck  <zadeck@naturalbridge.com>
1744
1745         * Makefile.in (enable_lto): New.
1746         (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
1747         (LINKER_PLUGIN_API_H): Define.
1748         (LTO_SYMTAB_H): Define.
1749         (LTO_STREAMER_H): Define.
1750         (TREE_VECTORIZER_H): Define.
1751         (INCLUDES): Add LIBELFINC.
1752         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
1753         lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
1754         lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
1755         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
1756         (native): Add lto-wrapper$(exeext)
1757         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
1758         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
1759         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
1760         (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
1761         (varasm.o): Add dependency on tree-iterator.h.
1762         (cgraph.o): Add dependency on cif-code.def.
1763         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
1764         (ipa-pure-const.o): Likewise.
1765         (GTFILES): Add lto-symtab.c.
1766         (install-lto-wrapper): New.
1767         * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
1768         and enable_lto.  If LIBELFLIBS is set, define HAVE_libelf.
1769         * config.in: Regenerate.
1770
1771 2009-10-03  Rafael Espindola  <espindola@google.com>
1772             Diego Novillo  <dnovillo@google.com>
1773
1774         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
1775         ipa_write_summaries.
1776         Call execute_ipa_summary_passes for all_regular_ipa_passes and
1777         all_lto_gen_passes.
1778         (cgraph_optimize): Make extern.
1779
1780 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
1781             Kenneth Zadeck <zadeck@naturalbridge.com>
1782
1783         * toplev.c (in_lto_p): Declare.
1784         * collect2.c (scan_prog_file): Read all the output when reading
1785         information for LTO.
1786         (enum lto_mode_d): Declare.
1787
1788 2009-10-03  Richard Guenther  <rguenther@suse.de>
1789             Diego Novillo  <dnovillo@google.com>
1790
1791         * gimple.c: Include target.h and alias.h.
1792         (gimple_types): Declare.
1793         (type_hash_cache): Declare.
1794         (gimple_alloc_stat): Make extern.
1795         (gimple_build_eh_must_not_throw): Call
1796         gimple_eh_must_not_throw_set_fndecl.
1797         (struct type_pair_d): Declare.
1798         (type_pair_t): Declare.
1799         (type_pair_hash): New.
1800         (type_pair_eq): New.
1801         (lookup_type_pair): New.
1802         (gimple_force_type_merge): New.
1803         (compare_type_names_p): New.
1804         (compare_field_offset): New.
1805         (gimple_types_compatible_p): New.
1806         (struct sccs): Declare.
1807         (next_dfs_num): Declare.
1808         (iterative_hash_gimple_type): New.
1809         (visit): New.
1810         (iterative_hash_type_name): New.
1811         (iterative_hash_gimple_type): New.
1812         (gimple_type_hash): New.
1813         (gimple_type_eq): New.
1814         (gimple_register_type): New.
1815         (print_gimple_types_stats): New.
1816         (gimple_signed_or_unsigned_type): New.
1817         (gimple_unsigned_type): New.
1818         (gimple_signed_type): New.
1819         (gimple_get_alias_set): New.
1820         (gimple_decl_printable_name): Do not use DMGL_TYPES.
1821         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
1822         (gimple_force_type_merge): Declare.
1823         (gimple_types_compatible_p): Declare.
1824         (gimple_register_type): Declare.
1825         (print_gimple_types_stats): Declare.
1826         (gimple_unsigned_type): Declare.
1827         (gimple_signed_type): Declare.
1828         (gimple_get_alias_set): Declare.
1829         (gimple_eh_must_not_throw_set_fndecl): New.
1830
1831 2009-10-03  Jan Hubicka  <jh@suse.cz>
1832             Kenneth Zadeck <zadeck@naturalbridge.com>
1833
1834         * ipa-pure-const.c: Include lto-streamer.h.
1835         (register_hooks): Factor out of ...
1836         (generate_summary): ... here.
1837         (pure_const_write_summary): New.
1838         (pure_const_read_summary): New.
1839         (pass_ipa_pure_const): Add pure_const_write_summary and
1840         pure_const_read_summary.
1841         * ipa-reference.c: Include lto-streamer.h.
1842         (add_new_function): New.
1843         (remove_node_data): New.
1844         (duplicate_node_data): New.
1845         (ipa_init): Guard against multiple calls.
1846         Move hook setup from analyze_function.
1847         (write_node_summary_p): New.
1848         (ipa_reference_write_summary): New.
1849         (ipa_reference_read_summary): New.
1850         (pass_ipa_reference): Add ipa_reference_write_summary and
1851         ipa_reference_read_summary.
1852         * cgraph.h (cgraph_local_info): Add field lto_file_data.
1853         (struct cgraph_edge): Add fields lto_stmt_uid and
1854         call_stmt_cannot_inline_p.
1855         (cgraph_optimize): Declare.
1856         (cgraph_decide_is_function_needed): Declare.
1857         (reset_inline_failed): Declare.
1858         (enum LTO_cgraph_tags): Declare.
1859         (LTO_cgraph_tag_names): Declare.
1860         (LCC_NOT_FOUND): Define.
1861
1862 2009-10-03  Doug Kwan  <dougkwan@google.com>
1863             Rafael Espindola  <espindola@google.com>
1864             Jan Hubicka  <jh@suse.cz>
1865             Diego Novillo  <dnovillo@google.com>
1866             Kenneth Zadeck  <zadeck@naturalbridge.com>
1867
1868         * passes.c (all_regular_ipa_passes): New.
1869         (all_ipa_passes): Rename to all_small_ipa_passes.
1870         (init_optimization_passes): Init all_regular_ipa_passes.
1871         * tree-pass.h (all_regular_ipa_passes): New.
1872         (all_ipa_passes): Rename to all_small_ipa_passes.
1873         * passes.c (all_lto_gen_passes): New.
1874         (init_optimization_passes): Initialize all_lto_gen_passes.
1875         (execute_ipa_summary_passes): Make non-static.
1876         (ipa_write_summaries_1): New.
1877         (ipa_write_summaries_2): New.
1878         (ipa_write_summaries): New.
1879         (ipa_write_summaries_of_cgraph_node_set): New.
1880         (ipa_read_summaries_1): New.
1881         (ipa_read_summaries): New.
1882         (execute_ipa_pass_list): Call cgraph_process_new_functions.
1883         (execute_regular_ipa_pass_list): Remove.
1884         (init_optimization_passes): Schedule
1885         pass_rebuild_cgraph_edges and pass_early_inline outside
1886         of pass_all_early_optimizations.  Document reason.
1887         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
1888         pass_ipa_lto_finish_out): New pass.
1889         (pass_ipa_summary_passes): Start and stop timers if the pass has them.
1890         (execute_all_ipa_transforms): New.
1891         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
1892         (dump_properties, debug_properties): New.
1893         * tree-optimize.c (gate_all_early_local_passes): Return
1894         false if we are in lto1.
1895         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
1896         * tree-pass.h (execute_all_ipa_transforms): Declare.
1897         (pass_ipa_function_and_variable_visibility): Declare.
1898         (pass_ipa_early_inline): Declare.
1899         (pass_ipa_lto_gimple_out): Declare.
1900         (pass_ipa_lto_wpa_fixup): Declare.
1901         (pass_ipa_lto_finish_out): Declare.
1902         (all_small_ipa_passes, all_regular_ipa_passes,
1903         all_lto_gen_passes): Declare.
1904         (execute_ipa_summary_passes): Declare.
1905         (execute_all_ipa_transforms): Declare.
1906         (ipa_write_summaries): Declare
1907         (ipa_write_summaries_of_cgraph_node_set): Declare.
1908         (ipa_read_summaries): Declare.
1909
1910 2009-10-03  Doug Kwan  <dougkwan@google.com>
1911             Ollie Wild  <aaw@google.com>
1912
1913         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
1914
1915         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
1916         (lto_mode): New variable.
1917         (maybe_run_lto_and_relink): Handle the -fwpa option.
1918         (main): Handle the -fwpa option.
1919         (maybe_unlink_list): New function.
1920         * gcc.c (link_lto_options): Replace -flto with -fwpa.
1921         * common.opt (flto): New flag.
1922         * toplev.c (flag_generate_lto): Declare.
1923
1924 2009-10-03  Simon Baldwin  <simonb@google.com>
1925
1926         * common.opt (flto-compression-level): New flag.
1927
1928         * opts.c: Include lto-opts.h.
1929         (handle_option): Call lto_register_user_option for each
1930         valid option handled.
1931         (decode_options): Clear registered options before the options
1932         handling loop.
1933
1934 2009-10-03  Cary Coutant  <ccoutant@google.com>
1935
1936         * collect2.c (is_elf): New function.
1937         (scan_prog_file): Require LTO object to be in ELF format.
1938
1939 2009-10-03  Rafael Espindola  <espindola@google.com>
1940
1941         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
1942         libgcc to the linker.
1943
1944         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
1945
1946         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
1947         (collect_execute): Add flags argument. Pass flags to pex_run. Update
1948         all callers.
1949         * collect2.h (collect_execute): Add flags argument.
1950         * tlink.c (tlink_execute): Update call to collect_execute.
1951         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
1952         (use_linker_plugin): New.
1953         (use_linker_plugin_spec_function): New.
1954         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
1955         (linker_plugin_file_spec): New.
1956         (lto_wrapper_spec): New.
1957         (lto_gcc_spec): New.
1958         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
1959         (static_spec_functions): Add use-linker-plugin.
1960         (process_command): Handle -use-linker-plugin.
1961         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
1962         linker_plugin_file_spec and lto_gcc_spec.
1963         (use_linker_plugin_spec_function): New.
1964
1965 2009-10-03  Richard Guenther  <rguenther@suse.de>
1966
1967         PR lto/41547
1968         PR lto/41548
1969         * tree.h (is_lang_specific): Include LANG_TYPE.
1970         * tree.c (find_decls_types_r): Manually add interesting parts
1971         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
1972
1973         * gimple.c (type_pair_hash): Make symmetric.
1974         (type_pair_eq): Likewise.
1975         (lookup_type_pair): Increase initial hashtable size.
1976         (gimple_force_type_merge): Rely on type-pair symmetry.
1977         (visit): Remove excessive checking code.
1978         (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
1979         (gimple_register_type): Remove getenv calls, shrink initial
1980         hashtable size.
1981
1982         PR middle-end/41502
1983         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
1984         inline functions if not generating lto output.
1985
1986         PR lto/41379
1987         * toplev.c (finalize): In WPA mode remove the asm file.
1988
1989 2009-10-03  Doug Kwan  <dougkwan@google.com>
1990
1991         * ipa-inline.c (cgraph_mark_inline): Check
1992         edge->call_stmt_cannot_inline_p instead of calling
1993         gimple_call_cannot_inline_p.
1994         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
1995         (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
1996         (inline_generate_summary): Do nothing in LTRANS.
1997         * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
1998         exists before calling gimple_call_cannot_inline_p.
1999         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
2000         (cgraph_clone_edge): Add argument STMT_UID.  Modify all callers.
2001         Update new_edge->lto_stmt_uid.
2002         * cgraphbuild.c (reset_inline_failed): New.
2003
2004         * common.opt (fwpa): New flag.
2005         (fltrans): New option.
2006         * gcc.c (gcc_lto_option_t): New type.
2007         (current_lto_option): New variable.
2008         (lto_single_spec_function): Remove and is replaced by ..
2009         (lto_option_spec_function): New function.
2010         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
2011         passing the -flto flag.
2012         (cc1_options): Separate non-LTO related parts into ..
2013         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
2014         (lto1_options): New spec for lto FE.
2015         (link_lto_options): New spec for handling LTO flags in linker.
2016         (invoke_lto_single): Re-format to fit in 80 column.  Replace
2017         lto-single with lto-option.
2018         (static_specs): Add cc1_non_lto_options, lto1_options and
2019         link_lto_options.
2020         (static_spec_function): Replace lto-single with lto-option.
2021         (process_command): Handle -flto, -fwpa and -fltran by setting
2022         current_lto_option and not passing it to subprocess unconditionally.
2023
2024 2009-10-03  Bill Maddox  <maddox@google.com>
2025
2026         Add `gcc' driver support for link-time code generation (LTO).
2027
2028         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
2029         (lto_flag, lto_objects, lto_o_file): New variables.
2030         (struct lto_object, struct lto_object_list): New structures.
2031         (collect_exit, handler): Remove LTO temporary output file on exit.
2032         (add_lto_object): New function.
2033         (maybe_run_lto_and_relink): New function. Perform link time code
2034         generation and relinking for object files containing LTO information.
2035         (main): Invoke maybe_run_lto_and_relink().
2036         (dump_argv): New function.  For debugging, currently disabled.
2037         (scan_prog_file): Add LTO information pass.
2038         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
2039         collect2.
2040         * toplev.c (compile_file): Emit assembler directive to create
2041         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
2042
2043 2009-10-03  Diego Novillo  <dnovillo@google.com>
2044
2045         * c.opt: Add LTO to warn_abi and warn_psabi.
2046
2047         * tree.c (fld_worklist_push): Rename from PUSH.  Convert to static
2048         inline function.  Ignore language-specific nodes.  Update all users.
2049         (find_decls_types_r): Do not traverse the subtrees of
2050         language-specific nodes.  Do not traverse DECL_INITIAL for TYPE_DECLs.
2051         * tree.h (is_lang_specific): New.
2052         * langhooks.h (struct lang_hooks_for_decls): Remove
2053         may_need_assembler_name_p.  Update all users.
2054
2055         * c-common.c (set_builtin_user_assembler_name): Move ...
2056         * builtins.c (set_builtin_user_assembler_name): ... here.
2057         (is_builtin_name): Add comment
2058         (is_builtin_fn): New.
2059         * except.c (output_ttype): Only call
2060         lookup_type_for_runtime if TYPE is not a runtime type.
2061
2062         * passes.c (register_pass): Call position_pass on
2063         all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
2064         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
2065         (TV_IPA_LTO_DECL_IO): Define.
2066         (TV_IPA_LTO_CGRAPH_IO): Define.
2067         (TV_LTO): Define.
2068         (TV_WHOPR_WPA): Define.
2069         (TV_WHOPR_WPA_IO): Define.
2070         (TV_WHOPR_LTRANS): Define.
2071         (TV_WHOPR_WPA_FIXUP): Define.
2072         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
2073         * tree-cfg.c (tree_node_can_be_shared): Make extern.
2074         * tree-flow.h (tree_node_can_be_shared): Declare.
2075         * tree-inline.c (tree_can_inline_p): Check that E has a
2076         statement associated with it.
2077         * tree.c (free_lang_data_in_binf): Factor out of ...
2078         (free_lang_data_in_type): ... here.
2079         Call RECORD_OR_UNION_TYPE_P.
2080         (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
2081         set.  Call lang_hooks.decls.may_need_assembler_name_p if set.
2082         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
2083         (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE.  Set
2084         write_symbols to NO_DEBUG.  Set debug_hooks to do_nothing_debug_hooks.
2085         (gate_free_lang_data): Return true if flag_generate_lto is set.
2086         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
2087         * c-common.h (set_builtin_user_assembler_name): Move ...
2088         * tree.h (set_builtin_user_assembler_name): ... here.
2089
2090         * common.opt (flto-report): New flag.
2091         * opts.c (complain_wrong_lang): Do not complain if running lto1.
2092         * collect2.c (scan_prog_file): Send the error output of
2093         'nm' to HOST_BIT_BUCKET.
2094
2095 2009-10-03  Ollie Wild  <aaw@google.com>
2096
2097         * langhooks-def.h (lhd_begin_section): New function declaration.
2098         (lhd_write_section): New function declaration.
2099         (lhd_end_section): New function declaration.
2100         (LANG_HOOKS_BEGIN_SECTION): New macro.
2101         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
2102         (LANG_HOOKS_END_SECTION): New macro.
2103         (LANG_HOOKS_LTO): New macro.
2104         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
2105         * langhooks.c (output.h): Add include.
2106         (saved_section): New static variable.
2107         (lhd_begin_section): New function.
2108         (lhd_write_section_data): New function.
2109         (lhd_end_section): New function.
2110         * langhooks.h (struct lang_hooks_for_lto): New structure.
2111         (struct lang_hooks): Add member lto.
2112         * Makefile.in (langhooks.o): Add dependency on output.h.
2113
2114         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
2115
2116 2009-10-03  Richard Guenther  <rguenther@suse.de>
2117
2118         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
2119         Handle LTO.
2120
2121 2009-10-03  Simon Baldwin  <simonb@google.com>
2122             Richard Guenther  <rguenther@suse.de>
2123             Janis Johnson  <janis187@us.ibm.com>
2124             Doug Kwan  <dougkwan@google.com>
2125             Diego Novillo  <dnovillo@google.com>
2126             Ramana Radhakrishnan  <ramana.r@gmail.com>
2127             Ollie Wild  <aaw@google.com>
2128
2129         * doc/install.texi: Add documentation for libelf and --enable-lto.
2130         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
2131         -flto-report, -flto-compression-level and -use-linker-plugin.
2132         * doc/sourcebuild.texi: Document use of zlib.  Document lto-plugin.
2133         Add section for LTO Testing.
2134
2135 2009-10-02  Cary Coutant  <ccoutant@google.com>
2136
2137         Add support for comdat type sections for DWARF v4.
2138         Merge from dwarf4 branch.
2139
2140         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
2141         (dw_die_ref): Define vector type.
2142         (enum dw_val_class): Add dw_val_class_data8.
2143         (struct dw_val_struct): Add v.val_data8.
2144         (comdat_type_node_ref): New type.
2145         (struct die_struct): Move die_symbol into a union; add new field
2146         die_type_node.  Change all uses.
2147         (comdat_type_node): New type.
2148         (skeleton_chain_node): New type.
2149         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
2150         (comdat_type_list): New variable.
2151         (dwarf_tag_name): Add DW_TAG_type_unit.
2152         (dwarf_attr_name): Add DW_AT_signature.
2153         (add_AT_data8): New function.
2154         (replace_child): New function.
2155         (move_all_children): New function.
2156         (print_signature): New function.
2157         (print_die): Print signature information; add dw_val_class_data8.
2158         (attr_checksum): Support dw_val_class_data8.
2159         (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
2160         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
2161         (checksum_sleb128, checksum_uleb128): New functions.
2162         (checksum_die_context): New function.
2163         (loc_checksum_ordered): New function.
2164         (attr_checksum_ordered): New function.
2165         (struct checksum_attributes): New structure.
2166         (collect_checksum_attributes): New function.
2167         (die_checksum_ordered): New function.
2168         (generate_type_signature): New function.
2169         (same_dw_val_p): Add dw_val_class_data8.
2170         (is_symbol_die): Use new is_declaration_die function.
2171         (is_declaration_die): New function.
2172         (should_move_die_to_comdat): New function.
2173         (clone_die): New function.
2174         (clone_tree): New function.
2175         (clone_as_declaration): New function.
2176         (copy_declaration_context): New function.
2177         (generate_skeleton_ancestor_tree): New function.
2178         (generate_skeleton_bottom_up): New function.
2179         (generate_skeleton): New function.
2180         (remove_child_or_replace_with_skeleton): New function.
2181         (break_out_comdat_types): New function.
2182         (struct decl_table_entry): New type.
2183         (htab_decl_hash): New function.
2184         (htab_decl_eq): New function.
2185         (htab_decl_del): New function.
2186         (copy_ancestor_tree): New function.
2187         (copy_decls_walk): New function.
2188         (copy_decls_for_unworthy_types): New function.
2189         (build_abbrev_table): Don't assert on missing die_symbol when doing
2190         comdat type sections.
2191         (size_of_die): Use DW_FORM_sig8 for external references.  Add
2192         dw_val_class_data8.
2193         (unmark_dies): Don't assert for unmarked dies when doing comdat
2194         type sections.
2195         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
2196         (output_signature): New function.
2197         (output_die): Likewise.
2198         (output_compilation_unit_header): Mark output as DWARF version 3
2199         even if generating DWARF 4.
2200         (output_comdat_type_unit): New function.
2201         (output_line_info): Mark output as DWARF version 3 even if generating
2202         DWARF 4.
2203         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
2204         DWARF-4.
2205         (dwarf2out_end_source_file): Likewise.
2206         (prune_unused_types_walk_attribs): Don't follow references into
2207         comdat type sections.
2208         (prune_unused_types_mark): When generating type units, do not mark
2209         children of non-defining declarations of types; do mark children of
2210         type entries.
2211         (prune_unused_types): Process comdat type sections.
2212         (htab_ct_hash): New function.
2213         (htab_ct_eq): New function.
2214         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
2215         Add a pointer to the line table from type unit entries so
2216         DW_AT_decl_file has meaning.
2217         * varasm.c (default_elf_asm_named_section): Use identifier name as
2218         comdat key instead of lang hook.
2219
2220 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
2221
2222         * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
2223
2224 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
2225
2226         * config/i386/i386.md (SWIM248): New mode iterator.
2227         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
2228         divmodhi4 patterns using SWIM248 macro.
2229         (*divmod<mode>4): Macroize insn_and_split pattern from
2230         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
2231         and their corresponding splitters usign SWIM248 macro.  Split SImode
2232         insn to generate cltd and DImode insn to generate cqto instead of
2233         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
2234         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
2235         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
2236         *divmodsi_noext patterns using SWIM248 macro.
2237         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
2238         udivmodhi4 patterns using SWIM248 macro.
2239         (*udivmod<mode>4): Macroize insn_and_split pattern from
2240         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
2241         corresponding splitters using SWIM248 macro.
2242         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
2243         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
2244
2245 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
2246
2247         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
2248         of zero-sized element is zero-sized regardless of its extent.
2249
2250 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
2251
2252         PR debug/40521
2253         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
2254         * configure: Regenerated.
2255         * config.in: Regenerated.
2256         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
2257         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
2258         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
2259         not emitting .eh_frame, emit .cfi_sections .debug_frame
2260         directive.
2261
2262         PR debug/41404
2263         PR debug/41353
2264         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
2265         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
2266         with '\0'.
2267         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
2268         vars use DECL_RTL with resetting it back to NULL afterwards.
2269         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
2270         rtx_equal_p instead of asserting it is a SYMBOL_REF.
2271         (value_format): For dw_val_class_addr only use DW_FORM_addr if
2272         the attribute type allows it, otherwise use DW_FORM_dataN.
2273         (mem_loc_descriptor): Handle CONST_STRING.
2274         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
2275         Handle MEM with CONST_STRING address using add_AT_string.
2276         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
2277         CONST_STRING for const arrays initialized with a string literal.
2278         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
2279         (dwarf2out_finish): Call resolve_addr.
2280
2281 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
2282             Maxim Kuvyrkov  <maxim@codesourcery.com>
2283
2284         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
2285
2286 2009-10-02  Nick Clifton  <nickc@redhat.com>
2287
2288         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
2289         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
2290
2291 2009-10-01  Jan Hubicka  <jh@suse.cz>
2292
2293         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
2294         (cgraph_create_virtual_clone): Just pass redirect_callers
2295         around.
2296         * cgraph.h (cgraph_clone_node): Update prototype.
2297         * ipa-pure-const.c (self_recursive_p): New function.
2298         (propagate): Use it.
2299         * ipa-inline.c (cgraph_clone_inlined_nodes,
2300         cgraph_decide_recursive_inlining): Update.
2301
2302 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
2303
2304         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
2305         instructions for TARGET_OCTEON.
2306
2307 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2308
2309         * config/arm/arm.c (arm_override_options): Turn off
2310         flag_dwarf2_cfi_asm for AAPCS variants.
2311
2312 2009-10-01  Martin Jambor  <mjambor@suse.cz>
2313
2314         PR middle-end/12392
2315         * tree-sra.c (convert_callers): Do not call
2316         compute_inline_parameters on one caller more than once.
2317
2318 2009-10-01  Nick Clifton  <nickc@redhat.com>
2319
2320         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
2321         an empty string if not already defined.
2322
2323 2009-10-01  Martin Jambor  <mjambor@suse.cz>
2324
2325         PR bootstrap/41395
2326         * tree-sra.c (is_va_list_type): New function.
2327         (find_var_candidates): Call is_va_list_type.
2328         (find_param_candidates): Check that the type or the type pointed
2329         to are not va_list types.
2330
2331 2009-10-01  Martin Jambor  <mjambor@suse.cz>
2332
2333         PR c++/41503
2334         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
2335         DECL_ARTIFICIAL (param_decl) is true.
2336
2337 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
2338
2339         * tree.h (tree_decl_common::lang_flag_8): New.
2340         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
2341         keyword.
2342         * c-common.h (RID_CONSTEXPR): New.
2343
2344 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
2345
2346         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
2347         Use ref-all pointers.
2348         (alpha_gimplify_va_arg): Ditto.
2349
2350 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
2351
2352         PR target/41279
2353         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
2354         before insn counting loop now that BB_END (bb) is counted.  Ensure
2355         the return value isn't zero.
2356
2357 2009-09-30  Nick Clifton  <nickc@redhat.com>
2358
2359         * config.gcc (sh-symbianelf): Replace definition of extra_objs
2360         with separate definitions of c_target_objs and cxx_target_objs.
2361         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
2362         and symbian-base.o.
2363         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
2364         sh_symbian_import_export_class.
2365         * config/sh/sh-protos.h: Fix names of exported symbian functions.
2366         * config/sh/symbian.c: Delete, moving code into...
2367         * config/sh/symbian-base.c: ... here
2368         * config/sh/symbian-c.c: ... and here
2369         * config/sh/symbian-cxx.c: ... and here.
2370
2371 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
2372
2373         PR target/22093
2374         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
2375         of plus RTX into register.
2376
2377 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2378
2379         * doc/install.texi: Linguistic and markup fixes.
2380         (Configuration) <--disable-cpp>: Remove description.
2381         <--enable-maintainer-mode>: Autotools files are affected, too.
2382         <--with-sysroot>: Improve description.
2383         (Building): Bump required GNU make version.
2384
2385 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
2386
2387         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
2388         (x86_64-*-*): Ditto.
2389
2390         * config/i386/fma4intrin.h: New file, provide common x86 compiler
2391         intrinisics for FMA4.
2392         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
2393         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
2394         Add FMA4 check and fma4intrin.h.
2395         * config/i386/i386-c.c(ix86_target_macros_internal): Check
2396         ISA_FLAG for FMA4.
2397         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
2398         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
2399         constant for FMA4 support.
2400         (UNSPEC_FMA4_FMADDSUB): Ditto.
2401         (UNSPEC_FMA4_FMSUBADD): Ditto.
2402         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
2403         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
2404         (ix86_expand_fma4_multiple_memory): Ditto.
2405         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
2406         (OPTION_MASK_ISA_FMA4_UNSET): New.
2407         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
2408         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
2409         (ix86_handle_option): Handle -mfma4.
2410         (isa_opts): Handle -mfma4.
2411         (enum pta_flags): Add PTA_FMA4.
2412         (override_options): Add FMA4 support.
2413         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
2414         (IX86_BUILTIN_VFMADDSD): Ditto.
2415         (IX86_BUILTIN_VFMADDPS): Ditto.
2416         (IX86_BUILTIN_VFMADDPD): Ditto.
2417         (IX86_BUILTIN_VFMSUBSS): Ditto.
2418         (IX86_BUILTIN_VFMSUBSD): Ditto.
2419         (IX86_BUILTIN_VFMSUBPS): Ditto.
2420         (IX86_BUILTIN_VFMSUBPD): Ditto.
2421         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
2422         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
2423         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
2424         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
2425         (IX86_BUILTIN_VFNMADDSS): Ditto.
2426         (IX86_BUILTIN_VFNMADDSD): Ditto.
2427         (IX86_BUILTIN_VFNMADDPS): Ditto.
2428         (IX86_BUILTIN_VFNMADDPD): Ditto.
2429         (IX86_BUILTIN_VFNMSUBSS): Ditto.
2430         (IX86_BUILTIN_VFNMSUBSD): Ditto.
2431         (IX86_BUILTIN_VFNMSUBPS): Ditto.
2432         (IX86_BUILTIN_VFNMSUBPD): Ditto.
2433         (IX86_BUILTIN_VFMADDPS256): Ditto.
2434         (IX86_BUILTIN_VFMADDPD256): Ditto.
2435         (IX86_BUILTIN_VFMSUBPS256): Ditto.
2436         (IX86_BUILTIN_VFMSUBPD256): Ditto.
2437         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
2438         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
2439         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
2440         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
2441         (IX86_BUILTIN_VFNMADDPS256): Ditto.
2442         (IX86_BUILTIN_VFNMADDPD256): Ditto.
2443         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
2444         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
2445         (enum multi_arg_type): New enum for describing the various FMA4
2446         intrinsic argument types.
2447         (bdesc_multi_arg): New table for FMA4 intrinsics.
2448         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
2449         (ix86_expand_multi_arg_builtin): New function for creating FMA4
2450         intrinsics.
2451         (ix86_expand_builtin): Add FMA4 intrinsic support.
2452         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
2453         operand instructions.
2454         (ix86_expand_fma4_multiple_memory): New function to split the
2455         second memory reference from FMA4 instructions.
2456         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
2457         (ssemodesuffixf2s): Ditto.
2458         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
2459         instructions.
2460         (fma4_fmsub<mode>4): Ditto.
2461         (fma4_fnmadd<mode>4): Ditto.
2462         (fma4_fnmsub<mode>4): Ditto.
2463         (fma4_vmfmadd<mode>4): Ditto.
2464         (fma4_vmfmsub<mode>4): Ditto.
2465         (fma4_vmfnmadd<mode>4): Ditto.
2466         (fma4_vmfnmsub<mode>4): Ditto.
2467         (fma4_fmadd<mode>4256): Ditto.
2468         (fma4_fmsub<mode>4256): Ditto.
2469         (fma4_fnmadd<mode>4256): Ditto.
2470         (fma4_fnmsub<mode>4256): Ditto.
2471         (fma4_fmaddsubv8sf4): Ditto.
2472         (fma4_fmaddsubv4sf4): Ditto.
2473         (fma4_fmaddsubv4df4): Ditto.
2474         (fma4_fmaddsubv2df4): Ditto.
2475         (fma4_fmsubaddv8sf4): Ditto.
2476         (fma4_fmsubaddv4sf4): Ditto.
2477         (fma4_fmsubaddv4df4): Ditto.
2478         (fma4_fmsubaddv2df4): Ditto.
2479         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
2480         instructions for intrinsics.
2481         (fma4i_fmsub<mode>4): Ditto.
2482         (fma4i_fnmadd<mode>4): Ditto.
2483         (fma4i_fnmsub<mode>4): Ditto.
2484         (fma4i_vmfmadd<mode>4): Ditto.
2485         (fma4i_vmfmsub<mode>4): Ditto.
2486         (fma4i_vmfnmadd<mode>4): Ditto.
2487         (fma4i_vmfnmsub<mode>4): Ditto.
2488         (fma4i_fmadd<mode>4256): Ditto.
2489         (fma4i_fmsub<mode>4256): Ditto.
2490         (fma4i_fnmadd<mode>4256): Ditto.
2491         (fma4i_fnmsub<mode>4256): Ditto.
2492         (fma4i_fmaddsubv8sf4): Ditto.
2493         (fma4i_fmaddsubv4sf4): Ditto.
2494         (fma4i_fmaddsubv4df4): Ditto.
2495         (fma4i_fmaddsubv2df4): Ditto.
2496         (fma4i_fmsubaddv8sf4): Ditto.
2497         (fma4i_fmsubaddv4sf4): Ditto.
2498         (fma4i_fmsubaddv4df4): Ditto.
2499         (fma4i_fmsubaddv2df4): Ditto.
2500
2501         * doc/invoke.texi (-mfma4): Add documentation.
2502         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
2503
2504 2009-09-29  Richard Henderson  <rth@redhat.com>
2505
2506         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
2507         an edge to the new destination block.
2508
2509 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2510
2511         PR target/41393
2512         * pa.c (hppa_profile_hook): Use
2513         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
2514
2515 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
2516             Alexander Monakov  <amonakov@ispras.ru>
2517
2518         PR target/41365
2519         * config/ia64/predicates.md (not_postinc_destination_operand): New.
2520         (not_postinc_memory_operand): New.
2521         (not_postinc_move_operand): New.
2522         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
2523         (*cmovsi_internal): Ditto.
2524
2525 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
2526
2527         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
2528         restrict issue_rate in first pass when scheduling for register
2529         pressure.
2530
2531 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
2532             Rafael Avila de Espindola  <espindola@google.com>
2533
2534         * gengtype.c (plugin_output): New.
2535         (get_output_file_with_visibility): Return plugin_output for plugins.
2536         (main): Parse and use the -P option.
2537         * gty.texi: Update the command line format.
2538
2539 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
2540
2541         PR debug/41438
2542         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
2543         functions.
2544         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
2545         out if !const_ok_for_output.
2546
2547         PR debug/41474
2548         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
2549         case VAR_LOCATION>: Remove gcc_unreachable ().
2550
2551 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
2552
2553         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
2554         (x86_64-*-*): Ditto.
2555         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
2556         back to smmintrin.h.
2557         * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
2558         * config/i386/x86intrin.h: Remove SSE5.
2559         * config/i386/mmintrin-common.h: Delete file.
2560         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
2561
2562 2009-09-29  Richard Guenther  <rguenther@suse.de>
2563
2564         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
2565         resulting from stack temporaries on STRICT_ALIGNMENT targets.
2566
2567 2009-09-29  Nick Clifton  <nickc@redhat.com>
2568
2569         * function.c (current_function_name): If there is no current
2570         function just return "<none>".
2571
2572 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
2573
2574         * tree-pass.h (register_pass_info): New structure.
2575         (pass_positioning_ops): Move enum from gcc-plugin.h.
2576         (register_pass): New function.
2577         * gcc-plugin.h (plugin_pass): Delete structure.
2578         (pass_positioning_ops): Delete enum.
2579         * plugin.c (regsiter_pass): Delete function.
2580         (position_pass): Delete function.
2581         (added_pass_nodes): Delete variable.
2582         (prev_added_pass_nodes): Delete variable.
2583         (pass_list_node): Delete structure.
2584         * passes.c (make_pass_instance): New function.
2585         (next_pass_1): Change to call make_pass_instance.
2586         (pass_list_node): Move structure from gcc-plugin.h.
2587         (added_pass_nodes): Move variable from plugin.c.
2588         (prev_added_pass_nodes): Move variable from plugin.c.
2589         (position_pass): New function.
2590         (register_pass): New function.
2591
2592 2009-09-28  Easwaran Raman  <eraman@google.com>
2593
2594         * ifcvt.c (noce_try_abs): Recognize pattern and call
2595         expand_one_cmpl_abs_nojump.
2596         * optabs.c (expand_one_cmpl_abs_nojump): New function.
2597         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
2598
2599 2009-09-28  Ian Lance Taylor  <iant@google.com>
2600
2601         PR middle-end/40500
2602         * c-opts.c (c_common_handle_option): Don't set
2603         warn_jump_misses_init for -Wall.
2604         * doc/invoke.texi (Warning Options): Update documentation.
2605
2606 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2607
2608         * Makefile.in ($(out_object_file)): Depend on
2609         gt-$(basename $(notdir $(out_file))).h.
2610
2611 2009-09-28  Richard Henderson  <rth@redhat.com>
2612
2613         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
2614         * except.c (gen_eh_region): Set it.
2615         (duplicate_eh_regions_1): Copy it.
2616         * tree-eh.c (lower_resx): Use it to determine which function
2617         to call to resume.
2618
2619         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
2620         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
2621         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
2622         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
2623         BUILT_IN_CXA_END_CLEANUP if necessary.
2624
2625         * c-common.c (c_define_builtins): Update call to
2626         build_common_builtin_nodes.
2627
2628 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2629
2630         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
2631
2632 2009-09-28  Michael Matz  <matz@suse.de>
2633
2634         * builtins.c (interclass_mathfn_icode): New helper.
2635         (expand_builtin_interclass_mathfn): Use it here, and split folding
2636         into ...
2637         (fold_builtin_interclass_mathfn): ... this new folder.
2638         (build_call_nofold_loc): New static helper.
2639         (build_call_nofold): New wrapper macro for above.
2640         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
2641         (expand_builtin_pow): Ditto.
2642         (expand_builtin_memset_args): Ditto.
2643         (expand_builtin_printf): Ditto.
2644         (expand_builtin_fprintf): Ditto.
2645         (expand_builtin_sprintf): Ditto.
2646         (expand_builtin_memory_chk): Ditto.
2647         (expand_builtin_mempcpy_args): Ditto and don't call folders.
2648         (expand_builtin_stpcpy): Ditto.
2649         (expand_builtin_strcmp): Ditto.
2650         (expand_builtin_strncmp): Ditto.
2651         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
2652         (expand_builtin_strcpy_args): Don't call folders.
2653         (expand_builtin_memcmp): Ditto.
2654         (expand_builtin_strncpy): Ditto, and use target.
2655         (expand_builtin_memcpy): Ditto.
2656         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
2657         expand_builtin_strpbrk, expand_builtin_memmove,
2658         expand_builtin_memmove_args, expand_builtin_bcopy,
2659         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
2660         expand_builtin_strspn, expand_builtin_strcspn,
2661         expand_builtin_fputs): Remove these.
2662         (expand_builtin): Don't call the above, change calls to other
2663         expanders that changed prototype.
2664         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
2665         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
2666         fold_builtin_interclass_mathfn.
2667         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
2668         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
2669
2670         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
2671         * passes.c (init_optimization_passes): Move pass_fold_builtins
2672         after last phiopt pass.
2673         * tree-inline.c (fold_marked_statements): When folding builtins
2674         iterate over all instruction potentially generated.
2675         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
2676         earlier.
2677         (fold_gimple_call): Use it to always fold calls (into potentially
2678         multiple instructions).
2679         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
2680         calls into zero at this time.
2681         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
2682         statements generated by builtin folding.
2683
2684 2009-09-28  Nick Clifton  <nickc@redhat.com>
2685
2686         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
2687
2688 2009-09-28  Duncan Sands  <baldrick@free.fr>
2689
2690         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
2691         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
2692         (register_callback): Dispatch it.
2693         (invoke_plugin_callbacks): Incorporate in sanity check.
2694         * ggc.h (ggc_register_cache_tab): Add declaration.
2695         * ggc-common.c (ggc_register_root_tab): Simplify.
2696         (const_ggc_cache_tab_t): New typedef.
2697         (extra_cache_vec): New vector of dynamically added cache tables.
2698         (ggc_register_cache_tab): New function.
2699         (ggc_scan_cache_tab): New function.
2700         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
2701         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
2702
2703 2009-09-27  Richard Henderson  <rth@redhat.com>
2704
2705         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
2706         which we remove __builtin_stack_restore.
2707
2708 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
2709
2710         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
2711         to test for GRD_INVARIANT.
2712         (simple_rhs_p): Anything that's function_invariant_p is fine.
2713
2714 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
2715
2716         * gengtype.c (main): Use plunge_files instead of plugin_output.
2717
2718 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
2719             Rafael Avila de Espindola  <espindola@google.com>
2720
2721         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
2722         Don't print pch related info if it is false.
2723         (main): Don't print pch info in plugin mode.
2724
2725 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
2726
2727         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
2728         with dw_val_class_const_double.
2729         (struct dw_val_struct): Replace val_long_long with val_double and
2730         adjust for above change.
2731         (output_loc_operands): Likewise.
2732         (add_AT_long_long): Rename into...
2733         (add_AT_double): ...this.
2734         (print_die): Replace dw_val_class_long_long with
2735         dw_val_class_const_double and adjust.
2736         (attr_checksum): Likewise.
2737         (same_dw_val_p): Likewise.
2738         (size_of_die): Likewise.
2739         (value_format): Likewise.
2740         (output_die): Likewise.
2741         (loc_descriptor) <CONST_DOUBLE>: Likewise.
2742         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
2743         instead of add_AT_long_long.
2744         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
2745         value with the precision of its type.
2746
2747 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
2748
2749         PR c/41476
2750         * c-typeck.c (build_conditional_expr): Use the readonly and
2751         volatile flags of the operand types, not of the operands itself.
2752
2753 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
2754
2755         * collect2.c (main): Look for -brtl before adding libraries.
2756
2757 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
2758
2759         * config.gcc: Update OpenBSD targets.
2760         * config/openbsd-stdint.h: New file.
2761         * config/openbsd-libpthread.h: New file.
2762         * config/openbsd.h: Update and break out LIB_SPEC definition.
2763         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
2764         * config/i386/openbsdelf.h: Correct types.
2765         * config/m68k/openbsd.h: Likewise.
2766         * config/mips/openbsd.h: Likewise.
2767         * config/vax/openbsd.h: Likewise.
2768
2769 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
2770
2771         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
2772         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
2773         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
2774         of the length and zero.
2775
2776 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2777
2778         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
2779         (FLAGS_H): Add options.h $(REAL_H).
2780         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
2781         (TREE_VECTORIZER_H): New.
2782         (EBITMAP_H): Renamed from EBIMAP_H.
2783         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
2784         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
2785         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
2786         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
2787         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
2788         (graphite-clast-to-gimple.o, graphite-dependences.o)
2789         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
2790         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
2791         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
2792         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
2793         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
2794         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
2795         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
2796         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
2797         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
2798         updated and fixed as per above changes and per
2799         check_makefile_deps.sh output.
2800
2801         PR bootstrap/40928
2802         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
2803         * configure: Regenerate.
2804
2805 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2806
2807         * doc/install.texi: Update minimum MPC version to 0.7.
2808
2809 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
2810
2811         * doc/install.texi (Binaries): Remove reference to the binary
2812         distribution CD-ROM from the FSF.
2813
2814 2009-09-26  Michael Matz  <matz@suse.de>
2815
2816         PR lto/40758
2817         PR middle-end/41470
2818         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
2819         that are mentioned in the body.
2820
2821 2009-09-26  Michael Matz  <matz@suse.de>
2822
2823         PR tree-optimization/41454
2824         * tree-ssa-dom (stmts_to_rescan): Remove variable.
2825         (tree_ssa_dominator_optimize): Don't allocate and free it.
2826         (dom_opt_leave_block): Don't iterate over it.
2827         (eliminate_redundant_computations): Don't return a value.
2828         (cprop_operand, cprop_into_stmt): Ditto.
2829         (optimize_stmt): Don't defer updating stmts.
2830
2831 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
2832
2833         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
2834         generic_parameter_die, template_parameter_pack_die,
2835         gen_formal_parameter_die, gen_subprogram_die): Adjust after
2836         renaming DW_TAG_formal_parameter_pack and
2837         DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
2838         and DW_TAG_GNU_template_parameter_pack.
2839
2840 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
2841
2842         * config/v850/v850.h (FUNCTION_VALUE): Remove.
2843         * config/v850/v850.c (v850_function_value): New function.
2844         (TARGET_FUNCTION_VALUE): Define.
2845
2846 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
2847
2848         * tree-vect-stmts.c (vectorizable_call): Call
2849         mark_symbols_for_renaming after vect_finish_stmt_generation.
2850
2851         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
2852         to loc_descriptor_from_tree.
2853         (add_location_or_const_value_attribute): Pass 0 instead of 2
2854         for decl_by_reference_p decls.
2855
2856 2009-09-25  Richard Guenther  <rguenther@suse.de>
2857
2858         PR middle-end/41463
2859         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
2860         arrays again.
2861
2862 2009-09-25  Ben Elliston  <bje@au.ibm.com>
2863
2864         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
2865         after `power7'.
2866
2867 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
2868
2869         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
2870         form of instruction.
2871
2872 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2873
2874         PR middle-end/41435
2875         * fold-const.c (const_binop): Handle complex int division.
2876         * tree-complex.c (expand_complex_div_straight,
2877         expand_complex_div_wide): Update comments.
2878
2879 2009-09-24  DJ Delorie  <dj@redhat.com>
2880
2881         PR target/41456
2882         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
2883         (reg_class): Likewise.
2884         (REG_CLASS_NAMES): Likewise.
2885         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
2886         (m32c_override_options): Disable -fivopts for M32C.
2887
2888 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2889
2890         * config/rs6000/predicates.md (indexed_or_indirect_operand):
2891         Delete VSX load/store with update support.
2892         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
2893         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
2894         (vsx_movti): Ditto.
2895         (VSX_U): Delete.
2896         (VSbit): Ditto.
2897         (VStype_load_update): Ditto.
2898         (VStype_store_update): Ditto.
2899         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2900         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2901
2902         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
2903         load/store with update builtins.
2904
2905 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
2906
2907         * libgcc2.c (L_trampoline): Prototype for getpagesize
2908         and mprotect in WINNT case.
2909
2910 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
2911
2912         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
2913         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
2914         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
2915         'outgoing' argument.
2916         (TARGET_FUNCTION_VALUE): Define.
2917
2918 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2919
2920         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
2921
2922 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2923
2924         PR bootstrap/41405
2925         * common.opt: Initialize dwarf_strict to -1.
2926         * toplev.c (process_options): Catch unset dwarf_strict
2927         and set to 0 for all targets not overriding.
2928         * config/darwin.c (darwin_override_options): Catch unset
2929         dwarf_strict and override to 1.
2930
2931 2009-09-24  Jeff Law  <law@redhat.com>
2932
2933         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
2934
2935 2009-09-24  Richard Guenther  <rguenther@suse.de>
2936
2937         PR tree-optimization/36143
2938         PR tree-optimization/38747
2939         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
2940         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
2941
2942 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
2943
2944         PR bootstrap/41457
2945         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
2946         return false instead of gcc_unreachable ().  For CONST return the
2947         value returned by recursive call instead of always returning true.
2948         (tree_add_const_value_attribute): Return the value returned by
2949         add_const_value_attribute instead of always returning true if rtl
2950         is non-NULL.
2951
2952 2009-09-23  Justin Seyster  <jrseys@gmail.com>
2953
2954         * Makefile.in (PLUGIN_HEADERS): Include real.h.
2955
2956 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
2957
2958         * cgraphunit.c (cgraph_lower_function): Revert last change.
2959         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
2960         instead of DECL_NO_STATIC_CHAIN.
2961         * tree-cfg.c (verify_gimple_call): Likewise.
2962         * tree-nested.c (get_chain_decl, get_chain_field,
2963         convert_tramp_reference_op, convert_gimple_call): Likewise.
2964         (convert_all_function_calls): Likewise.  Always set or clear
2965         DECL_STATIC_CHAIN initially, for !n->outer clear it.
2966         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
2967         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
2968         if nested.
2969         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
2970         DECL_NO_STATIC_CHAIN.
2971         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
2972         instead of DECL_NO_STATIC_CHAIN.
2973         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
2974         decl_function_context.
2975         * varasm.c (initializer_constant_valid_p): Likewise.
2976         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
2977         (DECL_STATIC_CHAIN): ... this.
2978         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
2979         instead of DECL_NO_STATIC_CHAIN.
2980
2981 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
2982             Rafael Avila de Espindola  <espindola@google.com>
2983
2984         * gengtype.c (nb_plugin_files): Make it unsigned to match
2985         num_gt_files. Adjust other variables to avoid warnings.
2986         (main): Allocate an all zero lang_bitmap before each plugin file name
2987         to match regular file names.
2988
2989 2009-09-23  Richard Henderson  <rth@redhat.com>
2990
2991         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2992         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
2993         static chain passed in memory.
2994         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
2995         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
2996         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
2997         STATIC_CHAIN_REGNUM defined.
2998
2999         * config/picochip/picochip-protos.h: s/class/klass/.
3000         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
3001         (picochip_static_chain): New.
3002         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
3003         (STATIC_CHAIN_INCOMING): Remove.
3004
3005         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
3006         (xtensa_static_chain): New.
3007         * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
3008         (STATIC_CHAIN_INCOMING): Remove.
3009
3010 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
3011
3012         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
3013         * config/pa/pa-protos.h (function_value): Remove.
3014         * config/pa/pa.c (pa_function_value): Rename from function_value.
3015         Make static, add 'outgoing' argument.
3016         (TARGET_FUNCTION_VALUE): Define.
3017
3018 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
3019
3020         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
3021         instead of cfun->machine->is_leaf.
3022         * config/avr/avr.h (machine_function): Remove is_leaf field.
3023
3024 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
3025
3026         PR debug/41439
3027         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
3028         DW_OP_piece after DW_OP_stack_value, adjust size calculations
3029         for it, when DW_OP_stack_value and DW_OP_implicit_value has
3030         the same size, prefer DW_OP_stack_value.
3031         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
3032         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
3033
3034 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
3035
3036         PR debug/41353
3037         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
3038
3039 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
3040
3041         PR debug/41248
3042         * cfgexpand.c (convert_debug_memory_address): New.
3043         (expand_debug_expr): Convert base address and offset to the same
3044         mode.  Use it to convert addresses to other modes.  Accept
3045         ptr_mode addresses.
3046
3047 2009-09-23  Richard Guenther  <rguenther@suse.de>
3048
3049         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
3050         produced for bigendian targets with promoted subregs.
3051
3052 2009-09-23  Richard Guenther  <rguenther@suse.de>
3053
3054         * value-prof.c (gimple_ic): Purge old EH edges only after building
3055         the new ones.
3056
3057 2009-09-23  Nick Clifton  <nickc@redhat.com>
3058
3059         * config/arc/arc.c (arc_trampoline_init): Fix typo.
3060
3061 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
3062
3063         PR bootstrap/41405
3064         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
3065
3066         PR bootstrap/41436
3067         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
3068         on non-nested functions.
3069
3070 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
3071             Jan Hubicka  <jh@suse.cz>
3072
3073         * dwarf2out.c (loc_list_plus_const): Only define if
3074         DWARF2_DEBUGGING_INFO.
3075         (address_of_int_loc_descriptor): Likewise.
3076
3077         PR debug/41411
3078         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
3079
3080 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
3081
3082         PR c/39779
3083         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
3084         constant is more than zero.
3085
3086 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
3087
3088         PR target/40473
3089         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
3090         call final to emit non-scheduled prologue, instead insert at entry.
3091
3092 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
3093             Joseph S. Myers  <joseph@codesourcery.com>
3094
3095         * doc/install.texi (*-*-freebsd*): Add proper format codes.
3096
3097 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
3098             Rafael Avila de Espindola  <espindola@google.com>
3099
3100         * gengtype.c (is_file_equal): New function.
3101         (close_output_files): Use is_file_equal. Free of->buf.
3102
3103 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
3104             Rafael Avila de Espindola  <espindola@google.com>
3105
3106         * gengtype.c (write_types, write_local): Add the output_header
3107         argument. Update all callers.
3108
3109 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
3110
3111         * dwarf2out.c (template_parameter_pack_die,
3112         gen_formal_parameter_pack_die ): New functions.
3113         (make_ith_pack_parameter_name): Remove this function.
3114         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
3115         DW_TAG_formal_parameter_pack.
3116         (gen_generic_params_dies): Represent each template parameter pack
3117         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
3118         represented by usual DW_TAG_template_*_parameter DIEs that are
3119         children of the DW_TAG_template_parameter_pack element DIE.
3120         (generic_parameter_die): This doesn't deal with parameter pack
3121         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
3122         of parameter pack DIEs.
3123         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
3124         in certain cases, e.g. for pack elements.
3125         (gen_formal_types_die, gen_decl_die): Adjust usage of
3126         gen_formal_parameter_die.
3127         (gen_subprogram_die): Represent each function parameter pack by a
3128         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
3129         represented by usual DW_TAG_formal_parameter DIEs that are children
3130         of the DW_TAG_formal_parameter_pack DIE. Remove references to
3131         ____builtin_va_alist decls as no part of the compiler uses those
3132         anymore.
3133         * langhooks.h (struct lang_hooks_for_decls): Add
3134         function_parm_expanded_from_pack_p, get_generic_function_decl
3135         and function_parameter_pack_p hooks.  Fix comment for
3136         get_innermost_generic_parms hook.
3137         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
3138         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
3139         macros and use them to initialize lang_hook.
3140
3141 2009-09-22  Richard Henderson  <rth@redhat.com>
3142
3143         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
3144         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
3145         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
3146         on TRAMPOLINE_TEMPLATE.
3147         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
3148         TRAMPOLINE_ADJUST_ADDRESS.
3149         * targhooks.c (default_asm_trampoline_template): Remove.
3150         (default_trampoline_adjust_address): Remove.
3151         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
3152         * targhooks.h: Update decls.
3153
3154 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
3155
3156         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
3157         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
3158         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
3159
3160 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
3161
3162         PR debug/41295
3163         * reload1.c (reload): Reset debug insns with pseudos without
3164         equivalences.
3165
3166 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
3167
3168         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
3169         unconditional true for decimal float modes.
3170         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
3171         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
3172
3173 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
3174
3175         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
3176         Enable a new case for __FreeBSD__ >= 7.
3177         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
3178         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
3179         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
3180         and USE_LD_AS_NEEDED.
3181
3182         * doc/install.texi (*-*-freebsd*): Update target information.
3183
3184 2009-09-22  Richard Guenther  <rguenther@suse.de>
3185
3186         PR middle-end/41395
3187         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
3188         arrays really properly.
3189
3190 2009-09-22  Richard Henderson  <rth@redhat.com>
3191
3192         PR target/41246
3193         * target.h (struct gcc_target): Add asm_out.trampoline_template,
3194         calls.static_chain, calls.trampoline_init,
3195         calls.trampoline_adjust_address.
3196         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3197         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
3198         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
3199         * builtins.c (expand_builtin_setjmp_receiver): Use
3200         targetm.calls.static_chain; only clobber registers.
3201         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
3202         set up memory attributes properly for the trampoline block.
3203         (expand_builtin_adjust_trampoline): Use
3204         targetm.calls.trampoline_adjust_address.
3205         * calls.c (prepare_call_address): Add fndecl argument.  Use
3206         targetm.calls.static_chain.
3207         * df-scan.c (df_need_static_chain_reg): Remove.
3208         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
3209         consolodate static chain handling.
3210         * doc/tm.texi: Document new hooks.
3211         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
3212         (init_emit_regs): Don't initialize them.
3213         * expr.h (prepare_call_address): Update decl.
3214         * final.c (profile_function): Use targetm.calls.static_chain.
3215         * function.c (expand_function_start): Likewise.
3216         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
3217         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
3218         only clobber registers.
3219         * targhooks.c (default_static_chain): New.
3220         (default_asm_trampoline_template, default_trampoline_init): New.
3221         (default_trampoline_adjust_address): New.
3222         * targhooks.h: Declare them.
3223         * varasm.c (assemble_trampoline_template): Use
3224         targetm.asm_out.trampoline_template.  Make the memory block const
3225         and set its size.
3226
3227         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
3228         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
3229         differences into the TARGET_ABI_OPEN_VMS code block.
3230         (TARGET_TRAMPOLINE_INIT): New.
3231         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
3232         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
3233         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
3234         (INITIALIZE_TRAMPOLINE): Remove.
3235
3236         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
3237         (TRAMPOLINE_TEMPLATE): Merge with ...
3238         (INITIALIZE_TRAMPOLINE): ... this and move ...
3239         * config/arc/arc.c (arc_trampoline_init): ... here.
3240         (TARGET_TRAMPOLINE_INIT): New.
3241
3242         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3243         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
3244         (arm_asm_trampoline_template): New.
3245         (arm_trampoline_init, arm_trampoline_adjust_address): New.
3246         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
3247         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
3248         code to arm_asm_trampoline_template.
3249         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
3250         arm_trampoline_adjust_address.
3251         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
3252         adjust for target hook parameters.
3253
3254         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
3255         Remove.
3256
3257         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
3258         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
3259         (bfin_trampoline_init): Rename from initialize_trampoline;
3260         make static; update for target hook parameters.
3261         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
3262         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
3263         bfin_asm_trampoline_template.
3264         (INITIALIZE_TRAMPOLINE): Remove.
3265
3266         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3267         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
3268         cris_trampoline_init): New.
3269         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
3270         cris_asm_trampoline_template.
3271         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
3272         adjust for target hook parameters.
3273
3274         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
3275
3276         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3277         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
3278         fr30_trampoline_init): New.
3279         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
3280         fr30_asm_trampoline_template.
3281         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
3282         adjust for target hook parameters.
3283
3284         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
3285         (frv_trampoline_init): Rename from frv_initialize_trampoline;
3286         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
3287         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
3288         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
3289
3290         * config/h8300/h8300.c (h8300_trampoline_init): New.
3291         (TARGET_TRAMPOLINE_INIT): New.
3292         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
3293         to h8300_trampoline_init and adjust for hook parameters.
3294
3295         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
3296         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
3297         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
3298         make static; adjust for hook parameters.
3299         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
3300
3301         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3302         (TARGET_TRAMPOLINE_INIT): New.
3303         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
3304         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
3305         iq2000_asm_trampoline_template.
3306         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
3307         (TRAMPOLINE_CODE_SIZE): New.
3308         (TRAMPOLINE_SIZE): Use it.
3309         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
3310
3311         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
3312         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
3313         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
3314         adjust for hook parameters.
3315         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
3316
3317         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
3318         (m32r_trampoline_init): New.
3319         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
3320         m32r_trampoline_init.
3321
3322         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
3323         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
3324         make static; update for hook parameters.
3325         * config/m68hc11/m68hc11-protos.h: Update.
3326         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
3327
3328         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3329         (TARGET_TRAMPOLINE_INIT): New.
3330         (mcore_function_value): Fix typo.
3331         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
3332         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
3333         to mcore_asm_trampoline_template.
3334         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
3335
3336         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
3337         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
3338         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
3339         update for hook parameters.
3340         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
3341
3342         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3343         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3344         mips_trampoline_init): New.
3345         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
3346         mips_asm_trampoline_template.
3347         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
3348         update for hook parameters.
3349
3350         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3351         (TARGET_TRAMPOLINE_INIT): New.
3352         (mmix_trampoline_size): Remove.
3353         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
3354         make static.  Remove out-of-date tetra vs octa comment.
3355         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
3356         make static; update for hook parameters.
3357         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
3358         (INITIALIZE_TRAMPOLINE): Remove.
3359         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
3360         (TRAMPOLINE_ALIGNMENT): New.
3361         * gcc/config/mmix/mmix-protos.h: Update.
3362
3363         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3364         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3365         mn10300_trampoline_init): New.
3366         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
3367         mn10300_asm_trampoline_template.
3368         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
3369
3370         * config/moxie/moxie.c (moxie_static_chain,
3371         moxie_asm_trampoline_template, moxie_trampoline_init,
3372         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
3373         TARGET_TRAMPOLINE_INIT): New.
3374         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
3375         moxie_trampoline_init.
3376         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
3377         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
3378
3379         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3380         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3381         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
3382    &