OSDN Git Service

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