OSDN Git Service

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