OSDN Git Service

PR debug/40521
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
2
3         PR debug/40521
4         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
5         * configure: Regenerated.
6         * config.in: Regenerated.
7         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
8         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
9         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
10         not emitting .eh_frame, emit .cfi_sections .debug_frame
11         directive.
12
13         PR debug/41404
14         PR debug/41353
15         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
16         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end with
17         '\0'.
18         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
19         vars use DECL_RTL with resetting it back to NULL afterwards.
20         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
21         rtx_equal_p instead of asserting it is a SYMBOL_REF.
22         (value_format): For dw_val_class_addr only use DW_FORM_addr if
23         the attribute type allows it, otherwise use DW_FORM_dataN.
24         (mem_loc_descriptor): Handle CONST_STRING.
25         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
26         Handle MEM with CONST_STRING address using add_AT_string.
27         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
28         CONST_STRING for const arrays initialized with a string literal.
29         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
30         (dwarf2out_finish): Call resolve_addr.
31
32 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
33             Maxim Kuvyrkov  <maxim@codesourcery.com>
34  
35         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
36
37 2009-10-02  Nick Clifton  <nickc@redhat.com>
38
39         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
40         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
41
42 2009-10-01  Jan Hubicka  <jh@suse.cz>
43
44         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
45         (cgraph_create_virtual_clone): Just pass redirect_callers
46         around.
47         * cgraph.h (cgraph_clone_node): Update prototype.
48         * ipa-pure-const.c (self_recursive_p): New function.
49         (propagate): Use it.
50         * ipa-inline.c (cgraph_clone_inlined_nodes,
51         cgraph_decide_recursive_inlining): Update.
52
53 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
54
55         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
56         instructions for TARGET_OCTEON.
57
58 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
59
60         * config/arm/arm.c (arm_override_options): Turn off
61         flag_dwarf2_cfi_asm for AAPCS variants.
62
63 2009-10-01  Martin Jambor  <mjambor@suse.cz>
64
65         PR middle-end/12392
66         * tree-sra.c (convert_callers): Do not call
67         compute_inline_parameters on one caller more than once.
68
69 2009-10-01  Nick Clifton  <nickc@redhat.com>
70
71         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
72         an empty string if not already defined.
73
74 2009-10-01  Martin Jambor  <mjambor@suse.cz>
75
76         PR bootstrap/41395
77         * tree-sra.c (is_va_list_type): New function.
78         (find_var_candidates): Call is_va_list_type.
79         (find_param_candidates): Check that the type or the type pointed
80         to are not va_list types.
81
82 2009-10-01  Martin Jambor  <mjambor@suse.cz>
83
84         PR c++/41503
85         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
86         DECL_ARTIFICIAL (param_decl) is true.
87         
88 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
89
90         * tree.h (tree_decl_common::lang_flag_8): New.
91         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
92         keyword. 
93         * c-common.h (RID_CONSTEXPR): New.
94
95 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
96
97         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
98         Use ref-all pointers.
99         (alpha_gimplify_va_arg): Ditto.
100
101 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
102
103         PR target/41279
104         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
105         before insn counting loop now that BB_END (bb) is counted.  Ensure
106         the return value isn't zero.
107
108 2009-09-30  Nick Clifton  <nickc@redhat.com>
109
110         * config.gcc (sh-symbianelf): Replace definition of extra_objs
111         with separate definitions of c_target_objs and cxx_target_objs.
112         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
113         and symbian-base.o.
114         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
115         sh_symbian_import_export_class.
116         * config/sh/sh-protos.h: Fix names of exported symbian functions.
117         * config/sh/symbian.c: Delete, moving code into...
118         * config/sh/symbian-base.c: ... here
119         * config/sh/symbian-c.c: ... and here
120         * config/sh/symbian-cxx.c: ... and here.
121
122 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
123
124         PR target/22093
125         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
126         of plus RTX into register.
127
128 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
129
130         * doc/install.texi: Linguistic and markup fixes.
131         (Configuration) <--disable-cpp>: Remove description.
132         <--enable-maintainer-mode>: Autotools files are affected, too.
133         <--with-sysroot>: Improve description.
134         (Building): Bump required GNU make version.
135
136 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
137
138         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
139         (x86_64-*-*): Ditto.
140
141         * config/i386/fma4intrin.h: New file, provide common x86 compiler
142         intrinisics for FMA4.
143         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
144         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
145         Add FMA4 check and fma4intrin.h.
146         * config/i386/i386-c.c(ix86_target_macros_internal): Check
147         ISA_FLAG for FMA4.
148         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
149         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
150         constant for FMA4 support.
151         (UNSPEC_FMA4_FMADDSUB): Ditto.
152         (UNSPEC_FMA4_FMSUBADD): Ditto.
153         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
154         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
155         (ix86_expand_fma4_multiple_memory): Ditto.
156         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
157         (OPTION_MASK_ISA_FMA4_UNSET): New.
158         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
159         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
160         (ix86_handle_option): Handle -mfma4.
161         (isa_opts): Handle -mfma4.
162         (enum pta_flags): Add PTA_FMA4.
163         (override_options): Add FMA4 support.
164         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
165         (IX86_BUILTIN_VFMADDSD): Ditto.
166         (IX86_BUILTIN_VFMADDPS): Ditto.
167         (IX86_BUILTIN_VFMADDPD): Ditto.
168         (IX86_BUILTIN_VFMSUBSS): Ditto.
169         (IX86_BUILTIN_VFMSUBSD): Ditto.
170         (IX86_BUILTIN_VFMSUBPS): Ditto.
171         (IX86_BUILTIN_VFMSUBPD): Ditto.
172         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
173         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
174         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
175         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
176         (IX86_BUILTIN_VFNMADDSS): Ditto.
177         (IX86_BUILTIN_VFNMADDSD): Ditto.
178         (IX86_BUILTIN_VFNMADDPS): Ditto.
179         (IX86_BUILTIN_VFNMADDPD): Ditto.
180         (IX86_BUILTIN_VFNMSUBSS): Ditto.
181         (IX86_BUILTIN_VFNMSUBSD): Ditto.
182         (IX86_BUILTIN_VFNMSUBPS): Ditto.
183         (IX86_BUILTIN_VFNMSUBPD): Ditto.
184         (IX86_BUILTIN_VFMADDPS256): Ditto.
185         (IX86_BUILTIN_VFMADDPD256): Ditto.
186         (IX86_BUILTIN_VFMSUBPS256): Ditto.
187         (IX86_BUILTIN_VFMSUBPD256): Ditto.
188         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
189         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
190         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
191         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
192         (IX86_BUILTIN_VFNMADDPS256): Ditto.
193         (IX86_BUILTIN_VFNMADDPD256): Ditto.
194         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
195         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
196         (enum multi_arg_type): New enum for describing the various FMA4
197         intrinsic argument types.
198         (bdesc_multi_arg): New table for FMA4 intrinsics.
199         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
200         (ix86_expand_multi_arg_builtin): New function for creating FMA4
201         intrinsics.
202         (ix86_expand_builtin): Add FMA4 intrinsic support.
203         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
204         operand instructions.
205         (ix86_expand_fma4_multiple_memory): New function to split the
206         second memory reference from FMA4 instructions.
207         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
208         (ssemodesuffixf2s): Ditto.
209         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
210         instructions.
211         (fma4_fmsub<mode>4): Ditto.
212         (fma4_fnmadd<mode>4): Ditto.
213         (fma4_fnmsub<mode>4): Ditto.
214         (fma4_vmfmadd<mode>4): Ditto.
215         (fma4_vmfmsub<mode>4): Ditto.
216         (fma4_vmfnmadd<mode>4): Ditto.
217         (fma4_vmfnmsub<mode>4): Ditto.
218         (fma4_fmadd<mode>4256): Ditto.
219         (fma4_fmsub<mode>4256): Ditto.
220         (fma4_fnmadd<mode>4256): Ditto.
221         (fma4_fnmsub<mode>4256): Ditto.
222         (fma4_fmaddsubv8sf4): Ditto.
223         (fma4_fmaddsubv4sf4): Ditto.
224         (fma4_fmaddsubv4df4): Ditto.
225         (fma4_fmaddsubv2df4): Ditto.
226         (fma4_fmsubaddv8sf4): Ditto.
227         (fma4_fmsubaddv4sf4): Ditto.
228         (fma4_fmsubaddv4df4): Ditto.
229         (fma4_fmsubaddv2df4): Ditto.
230         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
231         instructions for intrinsics.
232         (fma4i_fmsub<mode>4): Ditto.
233         (fma4i_fnmadd<mode>4): Ditto.
234         (fma4i_fnmsub<mode>4): Ditto.
235         (fma4i_vmfmadd<mode>4): Ditto.
236         (fma4i_vmfmsub<mode>4): Ditto.
237         (fma4i_vmfnmadd<mode>4): Ditto.
238         (fma4i_vmfnmsub<mode>4): Ditto.
239         (fma4i_fmadd<mode>4256): Ditto.
240         (fma4i_fmsub<mode>4256): Ditto.
241         (fma4i_fnmadd<mode>4256): Ditto.
242         (fma4i_fnmsub<mode>4256): Ditto.
243         (fma4i_fmaddsubv8sf4): Ditto.
244         (fma4i_fmaddsubv4sf4): Ditto.
245         (fma4i_fmaddsubv4df4): Ditto.
246         (fma4i_fmaddsubv2df4): Ditto.
247         (fma4i_fmsubaddv8sf4): Ditto.
248         (fma4i_fmsubaddv4sf4): Ditto.
249         (fma4i_fmsubaddv4df4): Ditto.
250         (fma4i_fmsubaddv2df4): Ditto.
251
252         * doc/invoke.texi (-mfma4): Add documentation.
253         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
254
255 2009-09-29  Richard Henderson  <rth@redhat.com>
256
257         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
258         an edge to the new destination block.
259
260 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
261
262         PR target/41393
263         * pa.c (hppa_profile_hook): Use
264         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
265
266 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
267             Alexander Monakov  <amonakov@ispras.ru>
268
269         PR target/41365
270         * config/ia64/predicates.md (not_postinc_destination_operand): New.
271         (not_postinc_memory_operand): New.
272         (not_postinc_move_operand): New.
273         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
274         (*cmovsi_internal): Ditto.
275
276 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
277
278         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
279         restrict issue_rate in first pass when scheduling for register
280         pressure.
281
282 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
283             Rafael Avila de Espindola  <espindola@google.com>
284
285         * gengtype.c (plugin_output): New.
286         (get_output_file_with_visibility): Return plugin_output for plugins.
287         (main): Parse and use the -P option.
288         * gty.texi: Update the command line format.
289
290 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
291
292         PR debug/41438
293         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
294         functions.
295         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
296         out if !const_ok_for_output.
297
298         PR debug/41474
299         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
300         case VAR_LOCATION>: Remove gcc_unreachable ().
301
302 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
303
304         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
305         (x86_64-*-*): Ditto.
306         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
307         back to smmintrin.h.
308         * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
309         * config/i386/x86intrin.h: Remove SSE5.
310         * config/i386/mmintrin-common.h: Delete file.
311         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
312
313 2009-09-29  Richard Guenther  <rguenther@suse.de>
314
315         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
316         resulting from stack temporaries on STRICT_ALIGNMENT targets.
317
318 2009-09-29  Nick Clifton  <nickc@redhat.com>
319
320         * function.c (current_function_name): If there is no current
321         function just return "<none>".
322
323 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
324
325         * tree-pass.h (register_pass_info): New structure.
326         (pass_positioning_ops): Move enum from gcc-plugin.h.
327         (register_pass): New function.
328         * gcc-plugin.h (plugin_pass): Delete structure.
329         (pass_positioning_ops): Delete enum.
330         * plugin.c (regsiter_pass): Delete function.
331         (position_pass): Delete function.
332         (added_pass_nodes): Delete variable.
333         (prev_added_pass_nodes): Delete variable.
334         (pass_list_node): Delete structure.
335         * passes.c (make_pass_instance): New function.
336         (next_pass_1): Change to call make_pass_instance.
337         (pass_list_node): Move structure from gcc-plugin.h.
338         (added_pass_nodes): Move variable from plugin.c.
339         (prev_added_pass_nodes): Move variable from plugin.c.
340         (position_pass): New function.
341         (register_pass): New function.
342
343 2009-09-28  Easwaran Raman  <eraman@google.com>
344
345         * ifcvt.c (noce_try_abs): Recognize pattern and call
346         expand_one_cmpl_abs_nojump.
347         * optabs.c (expand_one_cmpl_abs_nojump): New function.
348         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
349
350 2009-09-28  Ian Lance Taylor  <iant@google.com>
351
352         PR middle-end/40500
353         * c-opts.c (c_common_handle_option): Don't set
354         warn_jump_misses_init for -Wall.
355         * doc/invoke.texi (Warning Options): Update documentation.
356
357 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
358
359         * Makefile.in ($(out_object_file)): Depend on
360         gt-$(basename $(notdir $(out_file))).h.
361
362 2009-09-28  Richard Henderson  <rth@redhat.com>
363
364         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
365         * except.c (gen_eh_region): Set it.
366         (duplicate_eh_regions_1): Copy it.
367         * tree-eh.c (lower_resx): Use it to determine which function
368         to call to resume.
369
370         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
371         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
372         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
373         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
374         BUILT_IN_CXA_END_CLEANUP if necessary.
375
376         * c-common.c (c_define_builtins): Update call to
377         build_common_builtin_nodes.
378
379 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
380
381         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
382
383 2009-09-28  Michael Matz  <matz@suse.de>
384
385         * builtins.c (interclass_mathfn_icode): New helper.
386         (expand_builtin_interclass_mathfn): Use it here, and split folding
387         into ...
388         (fold_builtin_interclass_mathfn): ... this new folder.
389         (build_call_nofold_loc): New static helper.
390         (build_call_nofold): New wrapper macro for above.
391         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
392         (expand_builtin_pow): Ditto.
393         (expand_builtin_memset_args): Ditto.
394         (expand_builtin_printf): Ditto.
395         (expand_builtin_fprintf): Ditto.
396         (expand_builtin_sprintf): Ditto.
397         (expand_builtin_memory_chk): Ditto.
398         (expand_builtin_mempcpy_args): Ditto and don't call folders.
399         (expand_builtin_stpcpy): Ditto.
400         (expand_builtin_strcmp): Ditto.
401         (expand_builtin_strncmp): Ditto.
402         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
403         (expand_builtin_strcpy_args): Don't call folders.
404         (expand_builtin_memcmp): Ditto.
405         (expand_builtin_strncpy): Ditto, and use target.
406         (expand_builtin_memcpy): Ditto.
407         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
408         expand_builtin_strpbrk, expand_builtin_memmove,
409         expand_builtin_memmove_args, expand_builtin_bcopy,
410         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
411         expand_builtin_strspn, expand_builtin_strcspn,
412         expand_builtin_fputs): Remove these.
413         (expand_builtin): Don't call the above, change calls to other
414         expanders that changed prototype.
415         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
416         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
417         fold_builtin_interclass_mathfn.
418         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
419         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
420
421         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
422         * passes.c (init_optimization_passes): Move pass_fold_builtins
423         after last phiopt pass.
424         * tree-inline.c (fold_marked_statements): When folding builtins
425         iterate over all instruction potentially generated.
426         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
427         earlier.
428         (fold_gimple_call): Use it to always fold calls (into potentially
429         multiple instructions).
430         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
431         calls into zero at this time.
432         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
433         statements generated by builtin folding.
434
435 2009-09-28  Nick Clifton  <nickc@redhat.com>
436
437         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging
438         insns.
439
440 2009-09-28  Duncan Sands  <baldrick@free.fr>
441
442         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
443         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
444         (register_callback): Dispatch it.
445         (invoke_plugin_callbacks): Incorporate in sanity check.
446         * ggc.h (ggc_register_cache_tab): Add declaration.
447         * ggc-common.c (ggc_register_root_tab): Simplify.
448         (const_ggc_cache_tab_t): New typedef.
449         (extra_cache_vec): New vector of dynamically added cache tables.
450         (ggc_register_cache_tab): New function.
451         (ggc_scan_cache_tab): New function.
452         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
453         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
454
455 2009-09-27  Richard Henderson  <rth@redhat.com>
456
457         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
458         which we remove __builtin_stack_restore.
459
460 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
461
462         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
463         to test for GRD_INVARIANT.
464         (simple_rhs_p): Anything that's function_invariant_p is fine.
465
466 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
467
468         * gengtype.c (main): Use plunge_files instead of plugin_output.
469
470 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
471             Rafael Avila de Espindola  <espindola@google.com>
472
473         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
474         Don't print pch related info if it is false.
475         (main): Don't print pch info in plugin mode.
476
477 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
478
479         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
480         with dw_val_class_const_double.
481         (struct dw_val_struct): Replace val_long_long with val_double and
482         adjust for above change.
483         (output_loc_operands): Likewise.
484         (add_AT_long_long): Rename into...
485         (add_AT_double): ...this.
486         (print_die): Replace dw_val_class_long_long with
487         dw_val_class_const_double and adjust.
488         (attr_checksum): Likewise.
489         (same_dw_val_p): Likewise.
490         (size_of_die): Likewise.
491         (value_format): Likewise.
492         (output_die): Likewise.
493         (loc_descriptor) <CONST_DOUBLE>: Likewise.
494         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
495         instead of add_AT_long_long.
496         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
497         value with the precision of its type.
498
499 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
500
501         PR c/41476
502         * c-typeck.c (build_conditional_expr): Use the readonly and
503         volatile flags of the operand types, not of the operands itself.
504
505 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
506
507         collect2.c (main): Look for -brtl before adding libraries.
508
509 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
510
511         * config.gcc: Update OpenBSD targets.
512         * config/openbsd-stdint.h: New file.
513         * config/openbsd-libpthread.h: New file.
514         * config/openbsd.h: Update and break out LIB_SPEC definition.
515         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
516         * config/i386/openbsdelf.h: Correct types.
517         * config/m68k/openbsd.h: Likewise.
518         * config/mips/openbsd.h: Likewise.
519         * config/vax/openbsd.h: Likewise.
520
521 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
522
523         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
524         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
525         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
526         of the length and zero.
527
528 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
529
530         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
531         (FLAGS_H): Add options.h $(REAL_H).
532         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
533         (TREE_VECTORIZER_H): New.
534         (EBITMAP_H): Renamed from EBIMAP_H.
535         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
536         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
537         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
538         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
539         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
540         (graphite-clast-to-gimple.o, graphite-dependences.o)
541         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
542         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
543         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
544         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
545         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
546         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
547         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
548         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
549         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
550         updated and fixed as per above changes and per
551         check_makefile_deps.sh output.
552
553         PR bootstrap/40928
554         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
555         * configure: Regenerate.
556
557 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
558
559         * doc/install.texi: Update minimum MPC version to 0.7.
560
561 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
562
563         * doc/install.texi (Binaries): Remove reference to the binary
564         distribution CD-ROM from the FSF.
565
566 2009-09-26  Michael Matz  <matz@suse.de>
567
568         PR lto/40758
569         PR middle-end/41470
570         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
571         that are mentioned in the body.
572
573 2009-09-26  Michael Matz  <matz@suse.de>
574
575         PR tree-optimization/41454
576         * tree-ssa-dom (stmts_to_rescan): Remove variable.
577         (tree_ssa_dominator_optimize): Don't allocate and free it.
578         (dom_opt_leave_block): Don't iterate over it.
579         (eliminate_redundant_computations): Don't return a value.
580         (cprop_operand, cprop_into_stmt): Ditto.
581         (optimize_stmt): Don't defer updating stmts.
582
583 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
584
585         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
586         generic_parameter_die, template_parameter_pack_die,
587         gen_formal_parameter_die, gen_subprogram_die): Adjust after renaming
588         DW_TAG_formal_parameter_pack and DW_TAG_template_parameter_pack into
589         DW_TAG_GNU_formal_parameter_pack and DW_TAG_GNU_template_parameter_pack.
590
591 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
592
593         * config/v850/v850.h (FUNCTION_VALUE): Remove.
594         * config/v850/v850.c (v850_function_value): New function.
595         (TARGET_FUNCTION_VALUE): Define.
596
597 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
598
599         * tree-vect-stmts.c (vectorizable_call): Call
600         mark_symbols_for_renaming after vect_finish_stmt_generation.
601
602         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
603         to loc_descriptor_from_tree.
604         (add_location_or_const_value_attribute): Pass 0 instead of 2
605         for decl_by_reference_p decls.
606
607 2009-09-25  Richard Guenther  <rguenther@suse.de>
608
609         PR middle-end/41463
610         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
611         arrays again.
612
613 2009-09-25  Ben Elliston  <bje@au.ibm.com>
614
615         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
616         after `power7'.
617
618 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
619
620         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
621         form of instruction.
622
623 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
624
625         PR middle-end/41435
626         * fold-const.c (const_binop): Handle complex int division.
627         * tree-complex.c (expand_complex_div_straight,
628         expand_complex_div_wide): Update comments.
629
630 2009-09-24  DJ Delorie  <dj@redhat.com>
631
632         PR target/41456
633         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
634         (reg_class): Likewise.
635         (REG_CLASS_NAMES): Likewise.
636         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
637
638         * config/m32c/m32c.c (m32c_override_options): Disable -fivopts for
639         M32C.
640
641 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
642
643         * config/rs6000/predicates.md (indexed_or_indirect_operand):
644         Delete VSX load/store with update support.
645         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
646         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
647         (vsx_movti): Ditto.
648         (VSX_U): Delete.
649         (VSbit): Ditto.
650         (VStype_load_update): Ditto.
651         (VStype_store_update): Ditto.
652         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
653         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
654
655         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
656         load/store with update builtins.
657
658 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
659
660         * libgcc2.c (L_trampoline): Prototype for getpagesize
661         and mprotect in WINNT case.
662
663 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
664
665         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
666         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
667         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
668         'outgoing' argument.
669         (TARGET_FUNCTION_VALUE): Define.
670
671 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
672
673         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
674
675 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
676
677         PR bootstrap/41405
678         * common.opt: Initialize dwarf_strict to -1.
679         * toplev.c (process_options): Catch unset dwarf_strict
680         and set to 0 for all targets not overriding.
681         * config/darwin.c (darwin_override_options): Catch unset
682         dwarf_strict and override to 1.
683
684 2009-09-24  Jeff Law  <law@redhat.com>
685
686         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
687
688 2009-09-24  Richard Guenther  <rguenther@suse.de>
689
690         PR tree-optimization/36143
691         PR tree-optimization/38747
692         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
693         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
694
695 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
696
697         PR bootstrap/41457
698         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
699         return false instead of gcc_unreachable ().  For CONST return the
700         value returned by recursive call instead of always returning true.
701         (tree_add_const_value_attribute): Return the value returned by
702         add_const_value_attribute instead of always returning true if rtl
703         is non-NULL.
704
705 2009-09-23  Justin Seyster  <jrseys@gmail.com>
706
707         * Makefile.in (PLUGIN_HEADERS): Include real.h.
708
709 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
710
711         * cgraphunit.c (cgraph_lower_function): Revert last change.
712         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
713         instead of DECL_NO_STATIC_CHAIN.
714         * tree-cfg.c (verify_gimple_call): Likewise.
715         * tree-nested.c (get_chain_decl, get_chain_field,
716         convert_tramp_reference_op, convert_gimple_call): Likewise.
717         (convert_all_function_calls): Likewise.  Always set or clear
718         DECL_STATIC_CHAIN initially, for !n->outer clear it.
719         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
720         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
721         if nested.
722         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
723         DECL_NO_STATIC_CHAIN.
724         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
725         instead of DECL_NO_STATIC_CHAIN.
726         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
727         decl_function_context.
728         * varasm.c (initializer_constant_valid_p): Likewise.
729         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
730         (DECL_STATIC_CHAIN): ... this.
731         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
732         instead of DECL_NO_STATIC_CHAIN.
733
734 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
735             Rafael Avila de Espindola  <espindola@google.com>
736
737         * gengtype.c (nb_plugin_files): Make it unsigned to match
738         num_gt_files. Adjust other variables to avoid warnings.
739         (main): Allocate an all zero lang_bitmap before each plugin file name
740         to match regular file names.
741
742 2009-09-23  Richard Henderson  <rth@redhat.com>
743
744         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
745         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
746         static chain passed in memory.
747         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
748         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
749         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
750         STATIC_CHAIN_REGNUM defined.
751
752         * config/picochip/picochip-protos.h: s/class/klass/.
753         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
754         (picochip_static_chain): New.
755         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
756         (STATIC_CHAIN_INCOMING): Remove.
757
758         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
759         (xtensa_static_chain): New.
760         * config/xtensa/xtensa.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
761
762 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
763
764         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
765         * config/pa/pa-protos.h (function_value): Remove.
766         * config/pa/pa.c (pa_function_value): Rename from function_value.
767         Make static, add 'outgoing' argument.
768         (TARGET_FUNCTION_VALUE): Define.
769
770 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
771
772         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
773         instead of cfun->machine->is_leaf.
774         * config/avr/avr.h (machine_function): Remove is_leaf field.
775
776 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
777
778         PR debug/41439
779         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
780         DW_OP_piece after DW_OP_stack_value, adjust size calculations
781         for it, when DW_OP_stack_value and DW_OP_implicit_value has
782         the same size, prefer DW_OP_stack_value.
783         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
784         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
785
786 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
787
788         PR debug/41353
789         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
790
791 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
792
793         PR debug/41248
794         * cfgexpand.c (convert_debug_memory_address): New.
795         (expand_debug_expr): Convert base address and offset to the same
796         mode.  Use it to convert addresses to other modes.  Accept
797         ptr_mode addresses.
798
799 2009-09-23  Richard Guenther  <rguenther@suse.de>
800
801         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
802         produced for bigendian targets with promoted subregs.
803
804 2009-09-23  Richard Guenther  <rguenther@suse.de>
805
806         * value-prof.c (gimple_ic): Purge old EH edges only after building
807         the new ones.
808
809 2009-09-23  Nick Clifton  <nickc@redhat.com>
810
811         * config/arc/arc.c (arc_trampoline_init): Fix typo.
812
813 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
814
815         PR bootstrap/41405
816         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
817
818         PR bootstrap/41436
819         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
820         on non-nested functions.
821
822 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
823             Jan Hubicka  <jh@suse.cz>
824
825         * dwarf2out.c (loc_list_plus_const): Only define if
826         DWARF2_DEBUGGING_INFO.
827         (address_of_int_loc_descriptor): Likewise.
828
829         PR debug/41411
830         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
831
832 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
833
834         PR c/39779
835         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
836         constant is more than zero.
837
838 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
839
840         PR target/40473
841         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
842         call final to emit non-scheduled prologue, instead insert at entry.
843
844 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
845             Joseph S. Myers  <joseph@codesourcery.com>
846
847         * doc/install.texi (*-*-freebsd*): Add proper format codes.
848
849 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
850             Rafael Avila de Espindola  <espindola@google.com>
851
852         * gengtype.c (is_file_equal): New function.
853         (close_output_files): Use is_file_equal. Free of->buf.
854
855 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
856             Rafael Avila de Espindola  <espindola@google.com>
857
858         * gengtype.c (write_types, write_local): Add the output_header
859         argument. Update all callers.
860
861 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
862
863         * dwarf2out.c (template_parameter_pack_die,
864         gen_formal_parameter_pack_die ): New functions.
865         (make_ith_pack_parameter_name): Remove this function.
866         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
867         DW_TAG_formal_parameter_pack.
868         (gen_generic_params_dies): Represent each template parameter pack
869         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
870         represented by usual DW_TAG_template_*_parameter DIEs that are
871         children of the DW_TAG_template_parameter_pack element DIE.
872         (generic_parameter_die): This doesn't deal with parameter pack
873         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
874         of parameter pack DIEs.
875         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
876         in certain cases, e.g. for pack elements.
877         (gen_formal_types_die, gen_decl_die): Adjust usage of
878         gen_formal_parameter_die.
879         (gen_subprogram_die): Represent each function parameter pack by a
880         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
881         represented by usual DW_TAG_formal_parameter DIEs that are children
882         of the DW_TAG_formal_parameter_pack DIE. Remove references to
883         ____builtin_va_alist decls as no part of the compiler uses those
884         anymore.
885         * langhooks.h (struct lang_hooks_for_decls): Add
886         function_parm_expanded_from_pack_p, get_generic_function_decl
887         and function_parameter_pack_p hooks.  Fix comment for
888         get_innermost_generic_parms hook.
889         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
890         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
891         macros and use them to initialize lang_hook.
892
893 2009-09-22  Richard Henderson  <rth@redhat.com>
894
895         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
896         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
897         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
898         on TRAMPOLINE_TEMPLATE.
899         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
900         TRAMPOLINE_ADJUST_ADDRESS.
901         * targhooks.c (default_asm_trampoline_template): Remove.
902         (default_trampoline_adjust_address): Remove.
903         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
904         * targhooks.h: Update decls.
905
906 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
907
908         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
909         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
910         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
911
912 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
913
914         PR debug/41295
915         * reload1.c (reload): Reset debug insns with pseudos without
916         equivalences.
917
918 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
919
920         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
921         unconditional true for decimal float modes.
922         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
923         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
924
925 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
926
927         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
928         Enable a new case for __FreeBSD__ >= 7.
929         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
930         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
931         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
932         and USE_LD_AS_NEEDED.
933
934         * doc/install.texi (*-*-freebsd*): Update target information.
935
936 2009-09-22  Richard Guenther  <rguenther@suse.de>
937
938         PR middle-end/41395
939         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
940         arrays really properly.
941
942 2009-09-22  Richard Henderson  <rth@redhat.com>
943
944         PR target/41246
945         * target.h (struct gcc_target): Add asm_out.trampoline_template,
946         calls.static_chain, calls.trampoline_init,
947         calls.trampoline_adjust_address.
948         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
949         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
950         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
951         * builtins.c (expand_builtin_setjmp_receiver): Use
952         targetm.calls.static_chain; only clobber registers.
953         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
954         set up memory attributes properly for the trampoline block.
955         (expand_builtin_adjust_trampoline): Use
956         targetm.calls.trampoline_adjust_address.
957         * calls.c (prepare_call_address): Add fndecl argument.  Use
958         targetm.calls.static_chain.
959         * df-scan.c (df_need_static_chain_reg): Remove.
960         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
961         consolodate static chain handling.
962         * doc/tm.texi: Document new hooks.
963         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
964         (init_emit_regs): Don't initialize them.
965         * expr.h (prepare_call_address): Update decl.
966         * final.c (profile_function): Use targetm.calls.static_chain.
967         * function.c (expand_function_start): Likewise.
968         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
969         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
970         only clobber registers.
971         * targhooks.c (default_static_chain): New.
972         (default_asm_trampoline_template, default_trampoline_init): New.
973         (default_trampoline_adjust_address): New.
974         * targhooks.h: Declare them.
975         * varasm.c (assemble_trampoline_template): Use
976         targetm.asm_out.trampoline_template.  Make the memory block const
977         and set its size.
978
979         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
980         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
981         differences into the TARGET_ABI_OPEN_VMS code block.
982         (TARGET_TRAMPOLINE_INIT): New.
983         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
984         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
985         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
986         (INITIALIZE_TRAMPOLINE): Remove.
987
988         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
989         (TRAMPOLINE_TEMPLATE): Merge with ...
990         (INITIALIZE_TRAMPOLINE): ... this and move ...
991         * config/arc/arc.c (arc_trampoline_init): ... here.
992         (TARGET_TRAMPOLINE_INIT): New.
993
994         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
995         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
996         (arm_asm_trampoline_template): New.
997         (arm_trampoline_init, arm_trampoline_adjust_address): New.
998         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
999         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
1000         code to arm_asm_trampoline_template.
1001         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
1002         arm_trampoline_adjust_address.
1003         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
1004         adjust for target hook parameters.
1005
1006         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
1007         Remove.
1008
1009         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
1010         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
1011         (bfin_trampoline_init): Rename from initialize_trampoline;
1012         make static; update for target hook parameters.
1013         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
1014         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
1015         bfin_asm_trampoline_template.
1016         (INITIALIZE_TRAMPOLINE): Remove.
1017
1018         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1019         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
1020         cris_trampoline_init): New.
1021         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
1022         cris_asm_trampoline_template.
1023         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
1024         adjust for target hook parameters.
1025
1026         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
1027
1028         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1029         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
1030         fr30_trampoline_init): New.
1031         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
1032         fr30_asm_trampoline_template.
1033         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
1034         adjust for target hook parameters.
1035
1036         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
1037         (frv_trampoline_init): Rename from frv_initialize_trampoline;
1038         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
1039         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
1040         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
1041
1042         * config/h8300/h8300.c (h8300_trampoline_init): New.
1043         (TARGET_TRAMPOLINE_INIT): New.
1044         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
1045         to h8300_trampoline_init and adjust for hook parameters.
1046
1047         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
1048         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
1049         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
1050         make static; adjust for hook parameters.
1051         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
1052
1053         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1054         (TARGET_TRAMPOLINE_INIT): New.
1055         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
1056         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
1057         iq2000_asm_trampoline_template.
1058         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
1059         (TRAMPOLINE_CODE_SIZE): New.
1060         (TRAMPOLINE_SIZE): Use it.
1061         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
1062
1063         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
1064         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
1065         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
1066         adjust for hook parameters.
1067         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
1068
1069         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
1070         (m32r_trampoline_init): New.
1071         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
1072         m32r_trampoline_init.
1073
1074         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
1075         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
1076         make static; update for hook parameters.
1077         * config/m68hc11/m68hc11-protos.h: Update.
1078         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
1079
1080         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1081         (TARGET_TRAMPOLINE_INIT): New.
1082         (mcore_function_value): Fix typo.
1083         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
1084         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
1085         to mcore_asm_trampoline_template.
1086         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
1087
1088         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
1089         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
1090         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
1091         update for hook parameters.
1092         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
1093
1094         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1095         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
1096         mips_trampoline_init): New.
1097         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
1098         mips_asm_trampoline_template.
1099         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
1100         update for hook parameters.
1101
1102         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1103         (TARGET_TRAMPOLINE_INIT): New.
1104         (mmix_trampoline_size): Remove.
1105         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
1106         make static.  Remove out-of-date tetra vs octa comment.
1107         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
1108         make static; update for hook parameters.
1109         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
1110         (INITIALIZE_TRAMPOLINE): Remove.
1111         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
1112         (TRAMPOLINE_ALIGNMENT): New.
1113         * gcc/config/mmix/mmix-protos.h: Update.
1114
1115         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1116         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
1117         mn10300_trampoline_init): New.
1118         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
1119         mn10300_asm_trampoline_template.
1120         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
1121
1122         * config/moxie/moxie.c (moxie_static_chain,
1123         moxie_asm_trampoline_template, moxie_trampoline_init,
1124         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
1125         TARGET_TRAMPOLINE_INIT): New.
1126         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
1127         moxie_trampoline_init.
1128         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
1129         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
1130
1131         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1132         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
1133         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
1134         pa_trampoline_adjust_address): New.
1135         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
1136         pa_asm_trampoline_template.
1137         (TRAMPOLINE_ALIGNMENT): New.
1138         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
1139         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
1140         adjust for hook parameters.
1141         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
1142
1143         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
1144         (TARGET_TRAMPOLINE_INIT): New.
1145         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
1146         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
1147
1148         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
1149
1150         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
1151         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
1152         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
1153         make static; adjust parameters for the hook.
1154         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
1155
1156         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
1157         s390_trampoline_template; make static.
1158         (s390_trampoline_init): Rename from s390_initialize_trampoline;
1159         make static; adjust for target hook.
1160         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
1161         * config/s390/s390-protos.h: Remove trampoline decls.
1162         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
1163         (TRAMPOLINE_TEMPLATE): Remove.
1164         (TRAMPOLINE_ALIGNMENT): New.
1165
1166         * config/score/score-protos.h (score_initialize_trampoline): Remove.
1167         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1168         (TARGET_TRAMPOLINE_INIT): New.
1169         (score_asm_trampoline_template): New.
1170         (score_trampoline_init): Rename from score_initialize_trampoline;
1171         make static; adjust for hook parameters.
1172         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
1173         score[37]_asm_trampoline_template.
1174         (INITIALIZE_TRAMPOLINE): Remove.
1175         * config/score/score3.c (score3_asm_trampoline_template): New.
1176         (score3_trampoline_init): Rename from score3_initialize_trampoline;
1177         adjust for target hook.
1178         * config/score/score7.c (score7_asm_trampoline_template): New.
1179         (score7_trampoline_init): Rename from score7_initialize_trampoline;
1180         adjust for target hook.
1181         * config/score/score3.h, config/score/score7.h: Update.
1182
1183         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
1184         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
1185         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
1186         (sh_trampoline_init): Rename from sh_initialize_trampoline;
1187         make static; adjust for target hook parameters.
1188         (sh_trampoline_adjust_address): New.
1189         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
1190         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
1191
1192         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
1193         (sparc32_initialize_trampoline): Rename from
1194         sparc_initialize_trampoline; make static; replace tramp parameter
1195         with m_tramp and update memory accesses.
1196         (sparc64_initialize_trampoline): Similarly.
1197         (sparc_trampoline_init): New.
1198         * config/sparc/sparc-protos.h: Remove trampoline decls.
1199         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
1200         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
1201
1202         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
1203         (array_to_constant): Make ARR parameter const.
1204         (spu_trampoline_init): Rename from spu_initialize_trampoline;
1205         make static; update for hook parameters.
1206         * config/spu/spu-protos.h: Update decls.
1207         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
1208
1209         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
1210         from xstormy16_initialize_trampoline; make static; update for
1211         hook parameters.
1212         (TARGET_TRAMPOLINE_INIT): New.
1213         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
1214
1215         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1216         (TARGET_TRAMPOLINE_INIT): New.
1217         (v850_can_eliminate): Make static.
1218         (v850_asm_trampoline_template, v850_trampoline_init): New.
1219         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
1220         v850_asm_trampoline_template.
1221         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
1222         and adjust for target hook parameters.
1223
1224         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1225         (TARGET_TRAMPOLINE_INIT): New.
1226         (vax_asm_trampoline_template, vax_trampoline_init): New.
1227         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
1228         vax_asm_trampoline_template.
1229         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
1230
1231         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1232         (TARGET_TRAMPOLINE_INIT): New.
1233         (xtensa_asm_trampoline_template): Rename from
1234         xtensa_trampoline_template; make static.
1235         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
1236         make static; update for hook parameters.
1237         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
1238         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
1239         (INITIALIZE_TRAMPOLINE): Remove.
1240
1241         * config/i386/i386.c (ix86_function_regparm): Do not issue an
1242         error for nested functions with regparm=3.
1243         (ix86_compute_frame_layout): Adjust frame pointer offset for
1244         ix86_static_chain_on_stack.
1245         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
1246         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
1247         don't reset to UNITS_PER_WORD.
1248         (ix86_emit_leave): Adjust ix86_cfa_state.
1249         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
1250         (ix86_static_chain): New.
1251         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
1252         make static; update for target hook parameters; use ix86_static_chain.
1253         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
1254         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
1255         (INITIALIZE_TRAMPOLINE): Remove.
1256         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
1257         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
1258         to the end.  Add static_chain_on_stack.
1259         (ix86_static_chain_on_stack): New.
1260
1261         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
1262         (m68k_output_mi_thunk): Don't use static_chain_rtx.
1263         (m68k_trampoline_init): New.
1264         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
1265         m68k_trampoline_init and adjust for hook parameters.
1266         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
1267         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
1268
1269 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
1270
1271         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
1272         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
1273
1274         * reload1.c (reload): Call wrap_constant when substituting
1275         reg for equiv inside of DEBUG_INSNs.
1276
1277         PR bootstrap/41405
1278         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
1279         add_call_src_coords_attributes, add_high_low_attributes,
1280         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
1281         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
1282         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
1283         when -gdwarf-2 -gstrict-dwarf.
1284         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
1285         -gdwarf-[23] -gstrict-dwarf.
1286         (address_of_int_loc_descriptor, loc_descriptor,
1287         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
1288         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
1289         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
1290
1291 2009-09-22  Richard Guenther  <rguenther@suse.de>
1292
1293         PR tree-optimization/41428
1294         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
1295         (ccp_finalize): Pass it to substitute_and_fold.
1296
1297 2009-09-22  Richard Guenther  <rguenther@suse.de>
1298
1299         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
1300         (substitute_and_fold): Adjust prototype.
1301         * tree-vrp.c (vrp_evaluate_conditional): Make static.
1302         (simplify_stmt_using_ranges): Likewise.
1303         (fold_predicate_in): Move here from tree-ssa-propagate.c.
1304         (vrp_fold_stmt): New function.
1305         (vrp_finalize): Pass it to substitute_and_fold.
1306         * tree-flow.h (vrp_evaluate_conditional): Remove.
1307         (simplify_stmt_using_ranges): Likewise.
1308         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
1309         * tree-ssa-copy.c (fini_copy_prop): Likewise.
1310         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
1311         member.
1312         (fold_predicate_in): Move to tree-vrp.c.
1313         (substitute_and_fold): Use the callback instead of calling into
1314         tree-vrp.c functions directly.
1315
1316 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
1317
1318         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
1319         comparison warning on rs6000.
1320
1321         PR middle-end/41429
1322         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
1323         GIMPLE_EH_MUST_NOT_THROW cleanup.
1324         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
1325
1326 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
1327
1328         PR middle-end/41260
1329         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
1330         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
1331         LIB_SPEC for darwin10 and later since it always uses the unwinder in
1332         libSystem which is derived from the gcc 4.2.1 unwinder.
1333
1334 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
1335
1336         PR middle-end/41357
1337         * varasm.c (default_encode_section_info): Copy TLS model into
1338         sym_ref flags regardless of backend support for TLS, for all
1339         model types except TLS_MODEL_EMULATED.
1340
1341 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
1342
1343         PR bootstrap/41404
1344         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
1345         we can handle it correctly.
1346
1347 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
1348
1349         * doc/install.texi (os2): Remove section.
1350
1351 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
1352
1353         * doc/standards.texi (Objective-C): Adjust two URLs.
1354
1355 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
1356
1357         * tree-tailcall.c (process_assignment): Don't check if a
1358         multiplication or an addition are already present.
1359         (find_tail_calls): Combine multiple additions and multiplications.
1360         (adjust_accumulator_values): Emit accumulators.
1361
1362 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
1363
1364         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
1365         xmm register restore.
1366
1367 2009-09-21  Jan Hubicka  <jh@suse.cz>
1368
1369         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
1370         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
1371         restore at the end.
1372
1373 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
1374
1375         * stor-layout.c (layout_type): Remove obsolete code.
1376
1377 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
1378
1379         PR middle-end/41395
1380         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
1381
1382 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1383
1384         PR middle-end/30789
1385         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
1386         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
1387         (fold_builtin_2, do_mpc_arg1): Update accordingly.
1388         * fold-const.c (const_binop): Likewise.
1389         * real.h (do_mpc_arg2): Update prototype.
1390
1391 2009-09-20  Jan Hubicka  <jh@suse.cz>
1392
1393         * dwarf2out.c (add_const_value_attribute): Return true if successful.
1394         (add_location_or_const_value_attribute): Rewrite using
1395         loc_list_from_tree.
1396         (tree_add_const_value_attribute): Return true if successful.
1397         (tree_add_const_value_attribute_for_decl): Likewise.
1398
1399         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
1400         (loc_descriptor): ... here;
1401         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
1402         (cst_pool_loc_descr): Break out from ...; do not reffer constant
1403         pool items that was not marked for output.
1404         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
1405         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
1406         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
1407         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
1408         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
1409         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
1410         DW_OP_stack_value to get address of items that are not available
1411         as addresses.
1412         (dw_loc_list): Handle single element lists correctly.
1413
1414 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
1415             Pascal Obry  <obry@adacore.com>
1416
1417         * unwind-dw2-fde.c (classify_object_over_fdes):
1418         Cast the constant 1 to _Unwind_Ptr.
1419         (add_fdes): Likewise.
1420         (linear_search_fdes): Likewise.
1421
1422 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
1423
1424         * stor-layout.c (set_sizetype): Avoid useless type copy.
1425
1426 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
1427
1428         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
1429         feature check.
1430         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
1431         * configure, config.in: Regenerate.
1432         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
1433         DW_EH_PE_absptr.
1434         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
1435         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
1436         for global data if the output could be used in a shared library.
1437         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
1438         to 0 if TARGET_WRITABLE_EH_FRAME.
1439
1440 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
1441
1442         PR rtl-optimization/39886
1443         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
1444         just when insn is equal to BB_END (bb).
1445
1446 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
1447
1448         * config/mips/mips.opt (mrelax-pic-calls): New option.
1449         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
1450         the file.
1451         (mips_unspec_call): Change "unspec_call" expander into this.
1452         (mips_strip_unspec_call): New function.
1453         (mips_got_load): Call mips_unspec_call instead of
1454         gen_unspec_call<mode>.
1455         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
1456         MIPS_CALL.
1457         (mips_cfg_in_reorg): New function.
1458         (mips16_lay_out_constants): Use it to decide whether to call
1459         CFG-aware insn splitting.
1460         (r10k_insert_cache_barriers): Move CFG set-up code from here to
1461         mips_reorg.  Move DF set-up code from here ...
1462         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
1463         from here.
1464         (mips_reorg): Call mips_df_reorg instead of
1465         r10k_insert_cache_barriers.  Move CFG set-up code here from
1466         r10k_insert_cache_barriers.
1467         (mips_call_expr_from_insn): New function.
1468         (mips_pic_call_symbol_from_set): Likewise.
1469         (mips_find_pic_call_symbol): Likewise.
1470         (mips_annotate_pic_call_expr): Likewise.
1471         (mips_get_pic_call_symbol): Likewise.
1472         (mips_annotate_pic_calls): Likewise.
1473         (mips_override_options): Disable -mrelax-pic-calls unless PIC
1474         calls are used.
1475         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
1476         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
1477         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
1478         directive.
1479         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
1480         (unspec_call<mode>): Remove it.
1481         (sibcall_internal, sibcall_value_internal,
1482         sibcall_value_multiple_internal, call_internal, call_split,
1483         call_value_internal, call_value_split,
1484         call_value_multiple_internal, call_value_multiple_split): Pass
1485         SIZE_OPNO to MIPS_CALL.
1486         (call_internal_direct, call_direct_split,
1487         call_value_internal_direct, call_value_direct_split): Pass -1 as
1488         SIZE_OPNO to MIPS_CALL.
1489         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
1490         * configure: Regenerate.
1491         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
1492         and -mno-relax-pic-calls.
1493         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
1494
1495 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1496
1497         PR bootstrap/35619
1498         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
1499         in the directory this rule is called from, rather than the
1500         toplevel 'gcc' directory, to fix in-tree build.
1501
1502 2009-09-19  Chris Demetriou  <cgd@google.com>
1503
1504         PR preprocessor/28435:
1505         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
1506         to cpplib that the preprocessor output is needed.
1507
1508 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
1509
1510         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
1511         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
1512         *return_and_restore_fpregs_<mode>,
1513         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
1514
1515         PR bootstrap/41397
1516         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
1517         instead of assuming it has always a REG inside of it.
1518
1519 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
1520
1521         * config/freebsd.h: Update comment on types.
1522         (WINT_TYPE): Define.
1523
1524 2009-09-18  Jason Merrill  <jason@redhat.com>
1525
1526         * c.opt: Add -fno-deduce-init-list.
1527
1528 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
1529
1530         * value-prof.c (interesting_stringop_to_profile_p): Added output
1531         argument to indicate which parameter is the size parameter.
1532         * value-prof.c (gimple_stringop_fixed_value): Use
1533         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
1534         * value-prof.c (gimple_stringops_transform): Update call sites to
1535         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
1536
1537 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
1538
1539         PR target/38288
1540         From David Binderman <dcb314@hotmail.com>:
1541         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
1542         local variable f.  Remove stale comments.
1543         (ix86_compute_frame_layout): Remove useless local variable total_size.
1544         Remove #if 0'd code.
1545         (legitimate_address_p): Remove useless local variables
1546         reason_rtx and reason.
1547         (ix86_split_copysign_const): Remove useless local variable op1.
1548         (scale_counter): Remove useless local variable piece_size_mask.
1549
1550 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
1551
1552         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
1553         output decl.
1554
1555 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
1556
1557         PR target/40913
1558         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
1559
1560 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
1561
1562         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
1563         TYPE_STUB_DECL.
1564
1565 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
1566
1567         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
1568         DW_OP_implicit_value even without dwarf_version 4.
1569
1570 2009-09-17  Jan Hubicka  <jh@suse.cz>
1571
1572         * dwarf2out.c: Include tree-pass.h and gimple.h.
1573         (loc_list_plus_const): New function.
1574         (loc_descriptor_from_tree_1): Rename to ...
1575         (loc_descriptor_from_tree): ... remove original.
1576         (loc_list_from_tree): New function.
1577         (add_AT_location_description): Accept location list.
1578         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
1579         (concatn_mem_loc_descriptor): Remove.
1580         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
1581         returning NULL.
1582         (secname_for_decl): Move up.
1583         (hidden_reference_p): New function; break out from ...
1584         (loc_by_refernece): ... here; move up.
1585         (dw_loc_list): New function.
1586         (single_element_loc_list): New function.
1587         (single_element_loc_list_p): New function.
1588         (add_loc_descr_to_each): New function.
1589         (add_loc_list): New function.
1590         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
1591         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
1592         add diagnostics why expansion failed.
1593         (add_location_or_const_value_attribute): Support location lists.
1594         (add_bound_info): Likewise.
1595         (descr_info_loc): Update call of loc_descriptor_from_tree.
1596         (gen_variable_die): Work on location lists.
1597         * final.c (pass_final): Add dump file.
1598         * Makefile.in (dwarf2out.o): Add new dependencies.
1599
1600 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
1601
1602         PR c/41049
1603         * real.c decimal_from_integer, decimal_integer_string): New.
1604         (real_from_integer): Use them as special case for decimal float.
1605         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
1606         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
1607         Do not append zero after the decimal point in string to convert.
1608
1609 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
1610
1611         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
1612         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
1613
1614 2009-09-17  Martin Jambor  <mjambor@suse.cz>
1615
1616         * common.opt (fipa-sra): New switch.
1617         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
1618         * timevar.def (TV_IPA_SRA): New timevar.
1619         * params.def (ipa-sra-ptr-growth-factor): New parameter.
1620         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
1621         * tree-sra.c: Include cgraph.c.
1622         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
1623         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
1624         and grp_not_necessarilly_dereferenced.
1625         (func_param_count): New variable.
1626         (encountered_apply_args): New variable.
1627         (bb_dereferences): New variable.
1628         (final_bbs): New variable.
1629         (no_accesses_representant): New variable.
1630         (no_accesses_p): New function.
1631         (dump_access): Dump the new fields.
1632         (sra_initialize): Set encountered_apply_args to false.
1633         (get_ssa_base_param): New function.
1634         (mark_parm_dereference): New function.
1635         (create_access): Caring for INIDRECT_REFs and different handling of
1636         varialble length accesses in early IPA SRA.  Store the stmt - a new
1637         parameter - to the new access.
1638         (build_access_from_expr_1): New parameter stmt, passed to
1639         create_access.  Handle INDIRECT_REFs.
1640         (build_access_from_expr): Pass the current statement to
1641         build_access_from_expr_1.
1642         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
1643         passes.
1644         (build_accesses_from_assign): Pass the current statement to
1645         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
1646         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
1647         final_bbs when necessary.  Check for calls to __builtin_apply_args.
1648         Fixup EH info if anythng was changed.
1649         (is_unused_scalar_param): New function.
1650         (ptr_parm_has_direct_uses): New function.
1651         (find_param_candidates): New function.
1652         (mark_maybe_modified): New function.
1653         (analyze_modified_params): New function.
1654         (propagate_dereference_distances): New function.
1655         (dump_dereferences_table): New function.
1656         (analyze_caller_dereference_legality): New function.
1657         (unmodified_by_ref_scalar_representative): New function.
1658         (splice_param_accesses): New function.
1659         (decide_one_param_reduction): New function.
1660         (enum ipa_splicing_result): New type.
1661         (splice_all_param_accesses): New function.
1662         (get_param_index): New function.
1663         (turn_representatives_into_adjustments): New function.
1664         (analyze_all_param_acesses): New function.
1665         (get_replaced_param_substitute): New function.
1666         (get_adjustment_for_base): New function.
1667         (replace_removed_params_ssa_names): New function.
1668         (sra_ipa_reset_debug_stmts): New function.
1669         (sra_ipa_modify_expr): New function.
1670         (sra_ipa_modify_assign): New function.
1671         (convert_callers): New function.
1672         (modify_function): New function.
1673         (ipa_sra_preliminary_function_checks): New function.
1674         (ipa_early_sra): New function.
1675         (ipa_early_sra_gate): New function.
1676         (pass_early_ipa_sra): New variable.
1677         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
1678
1679 2009-09-17  Michael Matz  <matz@suse.de>
1680
1681         PR middle-end/41347
1682         * tree.c (build_type_attribute_qual_variant): Export.
1683         * tree.h (build_type_attribute_qual_variant): Declare.
1684         * tree-inline.c (remap_type_1): Use it to build variants with
1685         the original qualifiers and attributes.
1686
1687 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1688
1689         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
1690         without a fallthrough edge.
1691
1692 2009-09-16  DJ Delorie  <dj@redhat.com>
1693
1694         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
1695         chip and ignore the "fast_interrupt" attribute if so.
1696
1697 2009-09-16  Richard Henderson  <rth@redhat.com>
1698
1699         PR middle-end/41360
1700         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
1701         barrier fix.
1702
1703 2009-09-16  Richard Henderson  <rth@redhat.com>
1704
1705         PR target/41246
1706         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
1707         is set only if DECL_NO_STATIC_CHAIN is unset.
1708         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
1709         (FOR_EACH_NEST_INFO): New.
1710         (walk_all_functions): Use it.
1711         (finalize_nesting_tree): Likewise.
1712         (unnest_nesting_tree): Likewise.
1713         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
1714         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
1715         (convert_gimple_call): Early out if gimple_call_chain already set.
1716         (convert_all_function_calls): Iterate until no new functions
1717         require a static chain.
1718         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
1719         when building a trampoline.  Use dump_function_to_file instead
1720         of dump_function.
1721         (lower_nested_functions): Open dump_file.  Validate that decls
1722         that have DECL_NO_STATIC_CHAIN from the front end don't have that
1723         bit reset by this pass.
1724
1725 2009-09-16  Michael Matz  <matz@suse.de>
1726
1727         PR fortran/41212
1728         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
1729         shorten decl_common_unused.
1730         (DECL_RESTRICTED_P): New accessor.
1731         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
1732         to disambiguate marked decls and restrict pointers.
1733
1734 2009-09-16  Richard Henderson  <rth@redhat.com>
1735
1736         PR middle-end/41360
1737         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
1738
1739 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
1740
1741         * integrate.c (set_block_abstract_flags): Call
1742         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
1743
1744 2009-09-16  Richard Guenther  <rguenther@suse.de>
1745
1746         PR middle-end/34011
1747         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
1748         as non-aliased.
1749
1750 2009-09-16  DJ Delorie  <dj@redhat.com>
1751             Kaz Kojima  <kkojima@gcc.gnu.org>
1752
1753         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
1754         (sh_expand_prologue): Update calls to output_stack_adjust.
1755         (sh_expand_epilogue): Likewise.
1756
1757 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
1758
1759         PR bootstrap/41349
1760         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
1761         trying to limit the extent of searches in the insn stream.
1762
1763 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
1764             Jakub Jelinek  <jakub@redhat.com>
1765
1766         PR target/41175
1767         PR target/40677
1768         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
1769         problem.
1770         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
1771         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
1772         (rs6000_savres_strategy): Always save FP registers inline if the
1773         target doesn't support hardware double-precision.  Set the above
1774         bits in return value when needed.
1775         (rs6000_savres_routine_sym): Fix computation for cache selector.
1776         Mark the generated symbol as a function.  Rename exitp argument to
1777         lr.  Move code for determining the name of the symbol...
1778         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
1779         getting the names right on AIX and 64-bit Linux.
1780         (savres_routine_name): New variable.
1781         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
1782         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
1783         on what the target routine uses as a base register.  If savep && lr
1784         describe saving of r0 into memory slot.
1785         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
1786         line calls for AIX ABI.
1787         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
1788         determine FP save/restore functions.
1789         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
1790         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
1791         gen_addsi3.
1792         (rs6000_emit_epilogue): Adjust computation of restore_lr.
1793         Duplicate restoration of LR and execute the appropriate one
1794         depending on whether GPRs are being restored inline.  Set r11 from
1795         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
1796         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
1797         Fix out of line calls for AIX ABI.
1798         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
1799         New insn.
1800         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
1801         register 11.
1802         (*restore_gpregs_spe): Likewise.
1803         (*return_and_restore_gpregs_spe): Likewise.
1804         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
1805         Define to empty string unconditionally.
1806         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
1807         Define to empty string unconditionally.
1808         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
1809         !TARGET_64BIT.
1810
1811 2009-09-15  Jan Hubicka  <jh@suse.cz>
1812
1813         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
1814         * params.def (inline-insns-auto): Likewise.
1815
1816 2009-09-15  Martin Jambor  <mjambor@suse.cz>
1817
1818         * ipa-inline.c (estimate_function_body_sizes): Dump info about
1819         individual statements only at TDF_DETAILS dump level.  Format
1820         source for 80 characters per line.
1821
1822 2009-09-15  Christian Bruel  <christian.bruel@st.com>
1823
1824         * regrename.c (do_replace): Update REG_DEAD notes.
1825
1826 2009-09-15  Revital Eres  <eres@il.ibm.com>
1827
1828         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
1829         * targhooks.c (default_builtin_support_vector_misalignment):
1830         New builtin function.
1831         * targhooks.h (default_builtin_support_vector_misalignment):
1832         Declare.
1833         * target.h (builtin_support_vector_misalignment):
1834         New field in struct gcc_target.
1835         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
1836         new builtin function.
1837         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
1838         Define.
1839         * config/rs6000/rs6000.c
1840         (rs6000_builtin_support_vector_misalignment): New function.
1841         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
1842
1843 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
1844
1845         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
1846         instead of INSN_P.
1847         (bfin_optimize_loop): Likewise.
1848         (bfin_gen_bundles): Likewise.
1849         (workaround_speculation): Likewise.
1850         (find_load): Return NULL_RTX for debug_insn.
1851
1852 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
1853
1854         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
1855         (sminsf3): Ditto.
1856
1857 2009-09-14  DJ Delorie  <dj@redhat.com>
1858
1859         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
1860         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
1861         VLIW mode.
1862
1863 2009-09-14  Richard Henderson  <rth@redhat.com>
1864             Jakub Jelinek  <jakub@redhat.com>
1865
1866         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
1867         * cfgbuild.c (make_edges): Handle asm goto.
1868         * cfglayout.c (fixup_reorder_chain): Likewise.
1869         * cfgrtl.c (patch_jump_insn): Likewise.
1870         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
1871         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
1872         (gimple_build_asm_vec): Add and use labels parameter.
1873         (gimple_build_asm): Remove.
1874         (walk_gimple_asm): Walk labels too.
1875         * gimple.def (GIMPLE_ASM): Update docs.
1876         * gimple.h: Update decls.
1877         (struct gimple_statement_asm): Change nc to use unsigned char;
1878         add nl member.
1879         (gimple_asm_nlabels): New.
1880         (gimple_asm_label_op, gimple_asm_set_label_op): New.
1881         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
1882         into gimple_build_asm_vec.
1883         * jump.c (mark_jump_label_asm): New.
1884         (mark_jump_label): Use it.
1885         (redirect_jump_1): Handle asm goto.
1886         (invert_jump_1): Soft fail if X is null.
1887         * recog.c (extract_asm_operands): New.
1888         (asm_noperands): Use it; handle asm labels.
1889         (decode_asm_operands): Use extract_asm_operands.
1890         (asm_operand_ok): Properly handle empty string.
1891         * reg-stack.c (get_asm_operands_in_out): Rename from
1892         get_asm_operand_n_inputs; use extract_asm_operands; return both
1893         inputs and outputs by reference; update all callers.
1894         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
1895         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
1896         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
1897         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
1898         (extract_asm_operands): Declare.
1899         * stmt.c (expand_asm_operands): Add and use labels parameter.
1900         (check_unique_operand_names): Likewise.
1901         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
1902         (expand_asm_stmt): Handle asm labels.
1903         * tree-cfg.c (make_gimple_asm_edges): New.
1904         (make_edges): Use it.
1905         (cleanup_dead_labels): Handle asm labels.
1906         (is_ctrl_altering_stmt): Likewise.
1907         (gimple_redirect_edge_and_branch): Likewise.
1908         * tree.def (ASM_EXPR): Add 5th operand.
1909         * tree.h (ASM_LABELS): New.
1910         (resolve_asm_operand_names): Update decl.
1911
1912         * c-parser.c (c_parser_asm_statement): Parse asm goto.
1913         (c_parser_asm_goto_operands): New.
1914         * c-tree.h (build_asm_expr): Update decl.
1915         * c-typeck.c (build_asm_expr): Add and use labels parameter.
1916         * doc/extend.texi: Document asm goto.
1917
1918 2009-09-14  Richard Henderson  <rth@redhat.com>
1919
1920         * except.h: Update declarations.
1921         (struct pointer_map_t): Forward declare.
1922         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
1923         (struct eh_landing_pad_d, eh_landing_pad): New.
1924         (struct eh_catch_d, eh_catch): New.
1925         (struct eh_region_d): Remove next_region_sharing_label, aka,
1926         label, tree_label, landing_pad, post_landing_pad, resume,
1927         may_contain_throw.  Rename region_number to index.  Remove
1928         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
1929         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
1930         (VEC(eh_landing_pad,gc)): New.
1931         (struct eh_status): Remove last_region_number.  Add lp_array,
1932         throw_stmt_table, ttype_data, ehspec_data.
1933         (ehr_next, FOR_ALL_EH_REGION_AT): New.
1934         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
1935         * except.c (lang_protect_cleanup_actions): Return tree.
1936         (struct ehl_map_entry): Remove.
1937         (init_eh_for_function): Push zero entries for region and lp_array.
1938         (gen_eh_region): Add to region_array immediately.
1939         (gen_eh_region_catch): Operate on eh_catch objects.
1940         (gen_eh_landing_pad): New.
1941         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
1942         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
1943         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
1944         (get_eh_landing_pad_from_number_fn): New.
1945         (get_eh_landing_pad_from_number): New.
1946         (get_eh_region_from_lp_number_fn): New.
1947         (get_eh_region_from_lp_number): New.
1948         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
1949         (get_exception_pointer, get_exception_filter): Remove.
1950         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
1951         (current_function_has_exception_handlers): Simplify.
1952         (bring_to_root, eh_region_replaceable_by_p): Remove.
1953         (replace_region, hash_type_list, hash_eh_region): Remove.
1954         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
1955         (label_to_region_map, num_eh_regions): Remove.
1956         (get_next_region_sharing_label, must_not_throw_labels): Remove.
1957         (find_exception_handler_labels): Remove.
1958         (duplicate_eh_regions_0, find_prev_try): Remove.
1959         (struct duplicate_eh_regions_data): New.
1960         (duplicate_eh_regions_1): Rewrite.
1961         (duplicate_eh_regions): Return a pointer map instead of an
1962         integer offset.
1963         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
1964         (redirect_eh_edge_to_label): Remove.
1965         (eh_region_outermost): Rewrite using eh_region pointers
1966         instead of integers.
1967         (add_ttypes_entry): Update for ttype_data move to eh_status.
1968         (add_ehspec_entry): Rewrite with VEC instead of varray.
1969         (assign_filter_values): Likewise.  Export.
1970         (build_post_landing_pads, connect_post_landing_pads): Remove.
1971         (dw2_build_landing_pads): Rewrite to use lp_array.
1972         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
1973         (sjlj_assign_call_site_values): Rewrite to use lp_array.
1974         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
1975         (sjlj_mark_call_sites): Update for landing pad numbers.
1976         (finish_eh_generation): Rewrite.
1977         (gate_handle_eh): Do nothing for no eh tree.
1978         (pass_rtl_eh): Move up near finish_eh_generation.
1979         (remove_eh_landing_pad): New.
1980         (remove_eh_handler): Export.
1981         (remove_eh_region, remove_eh_handler_and_replace): Remove.
1982         (for_each_eh_label): Rewrite to use lp_array.
1983         (make_reg_eh_region_note): New.
1984         (make_reg_eh_region_note_nothrow_nononlocal): New.
1985         (insn_could_throw_p): New.
1986         (copy_reg_eh_region_note_forward): New.
1987         (copy_reg_eh_region_note_backward): New.
1988         (check_handled, add_reachable_handler): Remove.
1989         (reachable_next_level, foreach_reachable_handler): Remove.
1990         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
1991         (get_eh_region_and_lp_from_rtx): New.
1992         (get_eh_region_from_rtx): New.
1993         (can_throw_internal_1, can_throw_external_1): Remove.
1994         (can_throw_internal): Use get_eh_region_from_rtx.
1995         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
1996         (insn_nothrow_p, can_nonlocal_goto): New.
1997         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
1998         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
1999         (add_action_record): Use VEC not varray.
2000         (collect_one_action_chain): Update for eh_region changes.
2001         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
2002         Use get_eh_region_and_lp_from_rtx.
2003         (gate_convert_to_eh_region_ranges): New.
2004         (pass_convert_to_eh_region_ranges): Use it.
2005         (push_uleb128, push_sleb128): Use VEC not varray.
2006         (output_one_function_exception_table): Likewise.
2007         (dump_eh_tree): Update for eh_region changes.
2008         (verify_eh_tree): Likewise.
2009         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
2010         * tree-eh.c: Include target.h.
2011         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
2012         Don't disallow GIMPLE_RESX; adjust argument check.
2013         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
2014         (record_stmt_eh_region): Update for landing pad numbers;
2015         generate a landing pad if necessary.
2016         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
2017         (remove_stmt_from_eh_lp_fn): Similarly.
2018         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
2019         Update for lp numbers; don't special case missing throw_stmt_table.
2020         (lookup_expr_eh_lp): Similarly.
2021         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
2022         (eh_seq, eh_region_may_contain_throw): New.
2023         (struct leh_state): Add ehp_region.
2024         (struct leh_tf_state): Remove eh_label.
2025         (emit_post_landing_pad): New.
2026         (emit_resx, emit_eh_dispatch): New.
2027         (note_eh_region_may_contain_throw): New.
2028         (frob_into_branch_around): Take eh_region not eh label;
2029         emit eh code into eh_seq.
2030         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
2031         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
2032         lower_eh_must_not_throw.  Emit code to eh_seq.
2033         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
2034         (lower_try_finally_onedest): Likewise.
2035         (lower_try_finally_copy): Likewise.
2036         (lower_try_finally_switch): Likewise.
2037         (lower_try_finally): Initialize ehp_region.
2038         (lower_catch): Update for eh_catch objects.
2039         (lower_eh_filter): Don't handle must_not_throw.
2040         (lower_eh_must_not_throw): New.
2041         (lower_cleanup): Don't set eh_label.
2042         (lower_eh_constructs_2): Resolve eh builtins.
2043         Handle GIMPLE_EH_MUST_NOT_THROW.
2044         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
2045         Add eh_seq to the end of the function body.
2046         (make_eh_dispatch_edges): New.
2047         (make_eh_edge): Remove.
2048         (make_eh_edges): Simplify for landing pads.
2049         (redirect_eh_edge_1): New.
2050         (redirect_eh_edge): Use it.
2051         (redirect_eh_dispatch_edge): New.
2052         (stmt_could_throw_p): Use a switch.  Allow RESX.
2053         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
2054         (stmt_can_throw_internal): Likewise.
2055         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
2056         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
2057         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
2058         (gate_refactor_eh): New.
2059         (pass_refactor_eh): Use it.
2060         (lower_resx, execute_lower_resx, pass_lower_resx): New.
2061         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
2062         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
2063         (remove_unreachable_handlers): Rename from
2064         tree_remove_unreachable_handlers; rewrite for landing pads;
2065         call remove_eh_handler directly.
2066         (remove_unreachable_handlers_no_lp): New.
2067         (unsplit_eh, unsplit_all_eh): New.
2068         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
2069         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
2070         (cleanup_empty_eh_unsplit): New.
2071         (cleanup_empty_eh): Rewrite.
2072         (cleanup_all_empty_eh): New.
2073         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
2074         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
2075         (gate_cleanup_eh): New.
2076         (pass_cleanup_eh): Use it.
2077         (verify_eh_edges): Move later in file.  Expect one EH edge.
2078         (verify_eh_dispatch_edge): New.
2079
2080         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
2081         (gtype-desc.o): Add TARGET_H.
2082         (tree.o): Use EXCEPT_H, not except.h.
2083         (cfgbuild.o): Add EXPR_H.
2084         (GTFILES): Add vecprim.h.
2085         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
2086         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
2087         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
2088         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
2089         * calls.c (emit_call_1): Use make_reg_eh_region_note.
2090         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
2091         calls to can_throw_internal.
2092         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
2093         (make_edges): Don't handle RESX; use can_nonlocal_goto.
2094         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
2095         (expand_gimple_stmt): Use make_reg_eh_region_note.
2096         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
2097         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
2098         or find_exception_handler_labels.
2099         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
2100         there is exacly one EH edge.  Use can_nonlocal_goto and
2101         can_throw_internal.
2102         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
2103         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
2104         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
2105         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
2106         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
2107         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
2108         * dse.c (scan_insn): Use insn_could_throw_p.
2109         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
2110         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
2111         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
2112         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
2113         EXC_PTR_EXPR or FILTER_EXPR.
2114         (tree_expr_nonzero_warnv_p): Likewise.
2115         * function.h: Include vecprim.h, not varray.h
2116         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
2117         move ttype_data and ehspec_data members to struct eh_status; change
2118         action_record_data member to a VEC.
2119         * gcse.c (hash_scan_set): Use can_throw_internal.
2120         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
2121         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
2122         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
2123         (block_may_fallthru): Don't handle RESX_EXPR.
2124         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
2125         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
2126         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
2127         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
2128         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
2129         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
2130         (gimple_size): Likewise.
2131         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
2132         (gimple_build_resx): Use gimple_build_with_ops.
2133         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
2134         (is_gimple_val): Likewise.
2135         (is_gimple_stmt): Remove RESX_EXPR.
2136         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
2137         (GIMPLE_RESX): Reorder with other EH constructs.
2138         * gimple.h (struct gimple_statement_eh_mnt): New.
2139         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
2140         (gimple_eh_filter_must_not_throw): Remove.
2141         (gimple_eh_filter_set_must_not_throw): Remove.
2142         (gimple_eh_must_not_throw_fndecl): New.
2143         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
2144         (is_gimple_resx): New.
2145         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
2146         Don't copy EH_FILTER_MUST_NOT_THROW.
2147         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
2148         * ipa-inline.c (estimate_function_body_sizes): Don't try to
2149         handle must_not_throw_labels specially.
2150         * ipa-pure-const.c (check_call): Update debug statement for LP.
2151         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
2152         * ipa-utils.c (get_base_var): Likewise.
2153         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
2154         * lower-subreg.c (move_eh_region_note): Remove.
2155         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
2156         * omp-low.c (new_omp_context): Update for eh_lp_nr.
2157         (create_task_copyfn): Likewise.
2158         (maybe_catch_exception): Use gimple_build_eh_filter.
2159         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
2160         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
2161         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
2162         and pass_lower_resx.
2163         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
2164         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
2165         can_throw_internal, can_nonlocal_goto.
2166         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
2167         copy_reg_eh_region_note_forward.
2168         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
2169         (emit_output_reload_insns): Likewise.
2170         (copy_eh_notes): Remove.
2171         * rtl.def (RESX): Remove.
2172         * rtl.h: Update declarations.
2173         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
2174         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
2175         (update_eh_label): Remove.
2176         (cleanup_dead_labels_eh): New.
2177         (cleanup_deal_labels): Use it instead of update_eh_label.
2178         (gimple_merge_blocks): Update landing pad data structure when
2179         removing a landing pad label.
2180         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
2181         test; handle GIMPLE_EH_MUST_NOT_THROW.
2182         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
2183         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
2184         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
2185         (verify_stmt): Likewise.  Verify landing pads.
2186         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
2187         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
2188         (struct move_stmt_d): Add eh_map.
2189         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
2190         (move_stmt_r): Remap eh region numbers in builtin calls,
2191         resx and eh_dispatch.
2192         (move_block_to_fn): Remove eh_offset parameter.  Use
2193         maybe_duplicate_eh_stmt_fn.
2194         (find_outermost_region_in_block): Operate on eh_region pointers
2195         instead of region numbers.
2196         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
2197         duplicate_eh_regions.
2198         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
2199         test earlier.  Disallow EH landing pads.
2200         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
2201         * tree-flow.h: Update declarations.
2202         (struct tree_ann_common_d): Replace rn with lp_nr.
2203         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
2204         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
2205         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
2206         resx and eh_dispatch.
2207         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
2208         (copy_edges_for_bb): Use make_eh_dispatch_edges.
2209         (copy_cfg_body): Expect eh_map instead of eh_region_offset
2210         from duplicate_eh_regions.
2211         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
2212         update RESX; handle EH_DISPATCH.
2213         (expand_call_inline): Set eh_lp_nr, not eh_region.
2214         (maybe_inline_call_in_expr): Likewise.
2215         * tree-inline.h (struct copy_body_data): Replace eh_region with
2216         eh_lp_nr, eh_region_offset with eh_map.
2217         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
2218         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
2219         * tree-pretty-print.c (dump_generic_node): Don't handle
2220         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
2221         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
2222         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
2223         EXC_PTR_EXPR, FILTER_EXPR.
2224         * tree-ssa-operands.c (get_expr_operands): Likewise.
2225         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
2226         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2227         (ao_ref_init_from_vn_reference): Likewise.
2228         * tree-ssa-sink.c (statement_sink_location): Likewise.
2229         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
2230         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
2231         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
2232         EXC_PTR_EXPR, FILTER_EXPR.
2233         (is_exception_related): Remove.
2234         (compute_avail): Don't call it.
2235         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
2236         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
2237         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
2238         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
2239         Build EH builtins.
2240         (build_resx): Remove.
2241         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
2242         * tree.h: Update declarations.
2243         (EH_FILTER_MUST_NOT_THROW): Remove.
2244         (struct tree_label_decl): Add eh_landing_pad_nr.
2245         (EH_LANDING_PAD_NR): New.
2246         * value-prof.c (gimple_ic): Tidy variable names.  Update for
2247         landing pad numbers.
2248         (gimple_stringop_fixed_value): Tidy variable names.  Assert
2249         that neither call stmt can throw.
2250         * vecprim.h (uchar): New.
2251         (VEC(uchar,heap), VEC(uchar,gc)): New.
2252
2253         * c-common.c (c_define_builtins): Update call to
2254         build_common_builtin_nodes.
2255         * c-parser.c (c_parse_file): Don't call
2256         default_init_unwind_resume_libfunc.
2257
2258 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2259
2260         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
2261         (mips_cprestore_address_p): Likewise.
2262         (mips_save_gp_to_cprestore_slot): Likewise.
2263         (mips_restore_gp): Rename to...
2264         (mips_restore_gp_from_cprestore_slot): ...this.
2265         (mips_must_initialize_gp_p): Declare.
2266         (mips_emit_save_slot_move): Likewise.
2267         (mips_output_load_label): Return nothing.
2268         (mips_eh_uses): Declare.
2269         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
2270         (TARGET_CPRESTORE_DIRECTIVE): New macro.
2271         (TARGET_ABSOLUTE_JUMPS): Likewise.
2272         (EH_USES): Likewise.
2273         (FIRST_PSEUDO_REGISTER): Update comment.
2274         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
2275         (MIPS_CALL): ...here.
2276         (REGISTER_NAMES): Add $cprestore.
2277         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
2278         Add load_label_length, has_inflexible_gp_insn_p,
2279         has_flexible_gp_insn_p, must_initialize_gp_p and
2280         must_restore_gp_when_clobbered_p.
2281         (mips_expand_call): Don't generate split instructions here.
2282         (mips_split_call): Update the call to mips_restore_gp after
2283         the above name change.
2284         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
2285         (mips_find_gp_ref): New function.
2286         (mips_insn_has_inflexible_gp_ref_p): Likewise.
2287         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
2288         (mips_insn_has_flexible_gp_ref_p): Likewise.
2289         (mips_cfun_has_flexible_gp_ref_p): Likewise.
2290         (mips_function_has_gp_insn): Delete.
2291         (mips_global_pointer): Drop the df_regs_ever_live_p check.
2292         Use the new functions above.  Only return INVALID_REGNUM
2293         for TARGET_ABSOLUTE_JUMPS.
2294         (mips_must_initialize_gp_p): New function.
2295         (mips_get_cprestore_base_and_offset): New function, extracted from...
2296         (mips_cprestore_slot): ...here.  Take a bool parameter.
2297         (mips_cfun_has_cprestore_slot_p): New function.
2298         (mips_cprestore_address_p): Likewise.
2299         (mips_save_gp_to_cprestore_slot): Likewise.
2300         (mips_restore_gp): Rename to...
2301         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
2302         epilogue_completed.  Update the call to mips_cprestore_slot.
2303         Test cfun->machine->must_restore_gp_when_clobbered_p.
2304         (mips_direct_save_slot_move_p): New function.
2305         (mips_emit_save_slot_move): Likewise.
2306         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
2307         of cfun->machine->global_pointer.
2308         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
2309         (mips_save_reg): Use mips_emit_save_slot_move.
2310         (mips_expand_prologue): Set must_initialize_gp_p.
2311         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
2312         for all cprestore saves.  Emit a use_cprestore instruction after
2313         setting up the cprestore slot.
2314         (mips_restore_reg): Use mips_emit_save_slot_move.
2315         (mips_process_load_label): New function.
2316         (mips_load_label_length): Likewise.
2317         (mips_output_load_label): Don't return asm: output it here instead.
2318         Use mips_process_load_label.
2319         (mips_adjust_insn_length): Adjust the length of branch instructions
2320         that have length MAX_PIC_BRANCH_LENGTH.
2321         (mips_output_conditional_branch): Update the call to
2322         mips_output_load_label.  Assume the branch target is OPERANDS[0]
2323         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
2324         (mips_output_order_conditional_branch): Swap the meaning of
2325         OPERANDS[0] and OPERANDS[1].
2326         (mips_variable_issue): Don't count ghost instructions.
2327         (mips_expand_ghost_gp_insns): New function.
2328         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
2329         (mips_output_mi_thunk): Set must_initialize_gp_p.
2330         (mips_eh_uses): New function.
2331         * config/mips/predicates.md (cprestore_save_slot_operand)
2332         (cprestore_load_slot_operand): New predicates.
2333         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
2334         (UNSPEC_MOVE_GP): Likewise.
2335         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
2336         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
2337         (CPRESTORE_SLOT_REGNUM): New register.
2338         (MAX_PIC_BRANCH_LENGTH): New constant.
2339         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
2340         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
2341         branches.  Fix commentary.
2342         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
2343         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
2344         Change type to "ghost".
2345         (loadgp_absolute_<mode>): Likewise.
2346         (loadgp_rtp_<mode>): Likewise.
2347         (copygp_mips16): Likewise.
2348         (loadgp_blockage): Remove redundant mode attribute.
2349         (potential_cprestore): New instruction.
2350         (cprestore): Turn into an unspec set.
2351         (use_cprestore): New instruction.
2352         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
2353         (*branch_fp_inverted): Likewise.
2354         (*branch_order<mode>): Likewise.
2355         (*branch_order<mode>_inverted): Likewise.
2356         (*branch_equality<mode>): Likewise.
2357         (*branch_equality<mode>_inverted): Likewise.
2358         (*branch_bit<bbv><mode>): Likewise.
2359         (*branch_bit<bbv><mode>_inverted): Likewise.
2360         (*branch_equality<mode>_mips16): Remove redundant mode.
2361         (jump): Turn into a define_expand.
2362         (*jump_absolute): New instruction.
2363         (*jump_pic): Likewise.
2364         (*jump_mips16): Rename previously-unnamed pattern.  Remove
2365         redundant mode attribute.
2366         (restore_gp): Split on epilogue_completed rather than
2367         reload_completed.  Change type to "ghost".
2368         (move_gp<mode>): New instruction.
2369         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
2370         Remove redundant mode attribute.
2371         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
2372         (bc1any4f, bc1any2t, bc1any2f): Likewise.
2373         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
2374
2375 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
2376
2377         PR target/41210
2378         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
2379         are returned in the same register (vs34 or v2) that Altivec vector
2380         types are returned in.
2381         (rs6000_libcall_value): Ditto.
2382
2383         PR target/41331
2384         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
2385         instead of explicit addsi3/adddi3 calls.
2386         (rs6000_split_multireg_move): Ditto.
2387         (rs6000_emit_allocate_stack): Ditto.
2388         (rs6000_emit_prologue): Ditto.
2389         (rs6000_output_mi_thunk): Ditto.
2390
2391         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
2392         size is 64 bits if we can use 64-bit registers.
2393
2394 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
2395
2396         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
2397         symbols.
2398
2399         From Jie Zhang <jie.zhang@analog.com>:
2400         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
2401         save FP and RETS with saveall attribute.
2402         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
2403         with saveall attribute.
2404
2405         * config/bfin/bfin.c (bfin_expand_builtin,
2406         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
2407         operands.
2408
2409         From Jie Zhang <jie.zhang@analog.com>:
2410         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
2411         before use in two places.
2412         * config/bfin/bfin.md (AREG): Define mode iterator.
2413         (reload_in, reload_out): Use mode iterator AREG.
2414
2415 2009-09-14  Richard Guenther  <rguenther@suse.de>
2416
2417         PR middle-end/41350
2418         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
2419         EH personality path.
2420
2421 2009-09-13  Richard Guenther  <rguenther@suse.de>
2422             Rafael Avila de Espindola  <espindola@google.com>
2423
2424         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
2425         (LANG_HOOKS_EH_PERSONALITY): Likewise.
2426         (LANG_HOOKS_INITIALIZER): Adjust.
2427         (lhd_pass_through_t): Declare.
2428         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
2429         eh_personality.
2430         * langhooks.c (lhd_pass_through_t): New function.
2431         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
2432         dwarf2out_begin_prologue): Use personality from current_function_decl.
2433         * expr.h (get_personality_function): Declare.
2434         * expr.c (get_personality_function): New function.
2435         (build_personality_function): Likewise.
2436         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
2437         (eh_personality_libfunc): Remove.
2438         * optabs.c (build_libfunc_function): New function split out from ...
2439         (init_one_libfunc): ... here.
2440         * tree.h (DECL_FUNCTION_PERSONALITY): New.
2441         (tree_function_decl): Add personality.
2442         (lhd_gcc_personality): Declare.
2443         (build_personality_function): Likewise.
2444         * tree.c (gcc_eh_personality_decl): New.
2445         (lhd_gcc_personality): New function.
2446         * except.h (lang_eh_runtime_type): Remove.
2447         (enum eh_personality_kind): New.
2448         (build_personality_function): Declare.
2449         (function_needs_eh_personality): Declare.
2450         * except.c (lang_eh_runtime_type): Remove.
2451         (function_needs_eh_personality): New function.
2452         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
2453         (sjlj_emit_function_enter, output_function_exception_table):
2454         Use personality from current_function_decl.
2455         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
2456         * tree-inline.c (tree_can_inline_p): Do not inline across different
2457         EH personalities.
2458         (expand_call_inline): Likewise.  Adjust the callers EH personality.
2459         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
2460         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
2461         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
2462         (c-parser.o): Likewise
2463         * c-tree.h (c_eh_initialized_p): Remove.
2464         (c_maybe_initialize_eh): Likewise.
2465         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
2466         (finish_decl): Don't call c_maybe_initialize_eh.
2467         (c_eh_initialized_p): Remove.
2468         (c_maybe_initialize_eh): Likewise.
2469         * c-parser.c (c_parser_omp_construct): Likewise.
2470         (c_parse_file): Initialize exception handling.
2471
2472 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
2473
2474         * config.gcc (tm_file): Remove i386/biarch32.h
2475         for i?86-w64-mingw* case.
2476         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
2477         support.
2478         * config.host: Set for x64 mingw the option
2479         use_long_long_for_widest_fast_int to yes.
2480
2481 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
2482
2483         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
2484         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
2485         (dbxout_begin_function): Likewise.
2486         * final.c (dwarf2_debug_info_emitted_p): New predicate.
2487         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
2488         set on the function.
2489         (final_end_function): Likewise.
2490         (final_scan_insn): Likewise.
2491         (rest_of_handle_final): Likewise.
2492         * varasm.c (assemble_start_function): Likewise.
2493         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2494
2495 2009-09-12  Jason Merrill  <jason@redhat.com>
2496
2497         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
2498         * opts.c (common_handle_option): constify.
2499
2500 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
2501
2502         * doc/install.texi (avr): Remove obsolete reference site.
2503
2504 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
2505
2506         * doc/install.texi (Binaries): Adjust AIX link.
2507
2508 2009-09-12  Akim Demaille  <demaille@gostai.com>
2509
2510         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
2511         Use an imperative sentence.
2512
2513 2009-09-11  Richard Henderson  <rth@redhat.com>
2514
2515         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
2516         structure-name and has-tree-operands arguments; update all entries.
2517         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
2518         update all entries.
2519         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
2520         (gsstruct_code_size): New.
2521         (gss_for_code_): New.
2522         (gss_for_code): Remove.
2523         (gimple_size): Rewrite using gsstruct_code_size.
2524         (gimple_statement_structure): Move to gimple.h.
2525         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
2526         (gss_for_code, gimple_statement_structure): New.
2527         (gimple_ops): Use new arrays; tidy.
2528
2529 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2530
2531         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
2532         operand to be a PLUS expression.
2533         * config/pa/pa.c (pa_secondary_reload): Likewise.
2534
2535 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
2536
2537         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
2538
2539         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
2540         XEXP (in_rtx, 8).
2541
2542 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
2543
2544         From Jie Zhang <jie.zhang@analog.com>:
2545         * doc/extend.texi (node Function Attributes): Document l2
2546         function attribute.
2547         (node Blackfin Variable Attributes): Document l2 variable attributes.
2548
2549 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
2550
2551         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
2552         to match the system compiler's configuration at inflection point.
2553         Add comment to remark a remaining difference with system compiler.
2554
2555         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
2556         * configure: Regenerate.
2557
2558 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
2559
2560         From Jie Zhang <jie.zhang@analog.com>:
2561         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
2562         (bfin_handle_l2_attribute): New.
2563         (bfin_attribute_table): Add l2 attribute.
2564
2565 2009-09-11  Michael Matz  <matz@suse.de>
2566
2567         PR middle-end/41275
2568         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
2569         on the local_decls list.
2570
2571 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
2572
2573         PR debug/41276
2574         PR debug/41307
2575         * cselib.c (cselib_expand_value_rtx_cb): Document callback
2576         interface.
2577         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
2578         for VALUEs, to implement the documented interface.
2579         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
2580         Adjust for VALUEs and anything else, to implement the
2581         documented interface.
2582
2583 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
2584
2585         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
2586         with actual SPE/paired vector modes before using 64-bit alignment.
2587         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
2588
2589 2009-09-10  DJ Delorie  <dj@redhat.com>
2590
2591         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
2592         emitted.
2593
2594         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
2595         * config/mep/mep.c (mep_legitimate_constant_p): New.
2596         * config/mep/mep-protos.h: Prototype it.
2597
2598 2009-09-10  Richard Henderson  <rth@redhat.com>
2599
2600         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
2601
2602 2009-09-10  Jason Merrill  <jason@redhat.com>
2603
2604         * tree.c (chain_index): New fn.
2605         * tree.h: Declare it.
2606
2607 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2608
2609         * config/sol2-c.c (cmn_err_length_specs): Initialize
2610         scalar_identity_flag.
2611
2612 2009-09-10  Richard Henderson  <rth@redhat.com>
2613
2614         * tree.h (struct tree_decl_common): Move align member earlier;
2615         move label_decl_uid member ...
2616         (struct tree_label_decl): ... here.
2617         (LABEL_DECL_UID): Update to match.
2618
2619         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
2620         not TDF_DETAILS.
2621
2622         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
2623         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
2624
2625         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
2626         dest_prev if the edge is complex.
2627
2628         * tree-cfg.c (is_ctrl_stmt): Use a switch.
2629
2630         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
2631         loop latch tests earlier.
2632
2633         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
2634         before GIMPLE_RETURN, not after its predecessor; insert
2635         before GIMPLE_RESX.
2636
2637         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
2638         gimple_seq_empty_p to test for no PHI nodes.
2639         * tree-cfg.c (split_critical_edges): Likewise.
2640
2641         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
2642
2643 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
2644
2645         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
2646         introduced by the VTA branch merge.
2647
2648 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
2649
2650         * ira-conflicts.c: Use fputs or putc instead of fprintf
2651         where appropriate.
2652         * cfg.c: Ditto.
2653         * toplev.c: Ditto.
2654         * tree-switch-conversion.c: Ditto.
2655
2656 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
2657
2658         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
2659         introduced by the VTA branch merge.
2660
2661 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
2662
2663         Revert:
2664         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
2665
2666         PR rtl-optimization/39779
2667         * expr.c (convert_modes): Return when mode == oldmode after
2668         CONST_INTs are processed.
2669
2670 2009-09-10  Nick Clifton  <nickc@redhat.com>
2671
2672         * config/mep/mep.c (mep_encode_section_info): Copy weakness
2673         attribute and referring decl when creating renamed symbol.
2674
2675 2009-09-10  Richard Guenther  <rguenther@suse.de>
2676
2677         PR middle-end/41257
2678         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
2679         reachable nodes.
2680         (cgraph_finalize_compilation_unit): Compute reachability
2681         before emitting thunks.  Properly process aliases before
2682         possibly removing unreachable nodes.
2683
2684 2009-09-10  Richard Guenther  <rguenther@suse.de>
2685
2686         PR middle-end/41254
2687         * tree.c (struct free_lang_data_d): Add worklist member.
2688         (find_decls_types_r): Push onto the worklist instead of recursing.
2689         Handle TREE_BINFOs properly.
2690         (find_decls_types): New function wrapped around find_decls_types_r
2691         to process the worklist.
2692         (find_decls_types_in_eh_region): Use it.
2693         (find_decls_types_in_node): Likewise.
2694         (find_decls_types_in_var): Likewise.
2695         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
2696         * tree.h (RECORD_OR_UNION_TYPE_P): New.
2697         (AGGREGATE_TYPE_P): Adjust.
2698
2699 2009-09-09  Jason Merrill  <jason@redhat.com>
2700
2701         * configure.ac: Check glibc version even if we have an in-tree
2702         assembler.
2703
2704 2009-09-09  Anthony Green  <green@moxielogic.com>
2705
2706         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
2707         the constant 0 when appropriate.
2708         * config/moxie/constraints.md: Add constraint O.
2709
2710         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
2711         to pass up to 6 32-bit argument values in registers.
2712         (moxie_function_arg): Ditto.
2713         (moxie_arg_partial_bytes): Ditto.
2714         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
2715         (REG_PARM_STACK_SPACE): Ditto.
2716         (FUNCTION_ARG_REGNO_P): Ditto.
2717
2718         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
2719         instruction to allocate stack space.
2720
2721 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
2722
2723         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
2724         unnecessarily stringent constraints.  Fix address
2725         calculation in the splitters.
2726
2727 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
2728
2729         PR rtl-optimization/39779
2730         * expr.c (convert_modes): Return when mode == oldmode after
2731         CONST_INTs are processed.
2732
2733 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
2734
2735         PR/41315
2736         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
2737         (ix86_expand_prologue): Take frame.padding0 into logic of
2738         to_allocate checks.
2739         (ix86_expand_epilogue): Likewise.
2740
2741 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
2742
2743         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
2744         New variables.
2745         (SHLIB_LINK, SHLIB_INSTALL): Use them.
2746         * config/t-slibgcc-libgcc: New file.
2747         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
2748
2749 2009-09-09  Martin Jambor  <mjambor@suse.cz>
2750
2751         PR tree-optimization/41089
2752         * tree-sra.c (find_var_candidates): Do not consider va_lists in
2753         early SRA.
2754
2755 2009-09-09  Richard Henderson  <rth@redhat.com>
2756
2757         * gimple.h (CASE_GIMPLE_OMP): New.
2758         (is_gimple_omp): Use it.
2759         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
2760         (verify_gimple_debug): Likewise.
2761
2762 2009-09-09  Richard Guenther  <rguenther@suse.de>
2763
2764         PR tree-optimization/41101
2765         * tree-ssa-pre.c (maximal_set): Remove.
2766         (compute_antic_aux): Treat the maximal set as implicitly all ones.
2767         Defer all blocks we didn't visit at least one successor.
2768         (add_to_exp_gen): Do not add to the maximal set.
2769         (make_values_for_phi): Likewise.
2770         (compute_avail): Likewise.
2771         (init_pre): Do not allocate the maximal set.
2772         (execute_pre): Do not dump it.
2773
2774 2009-09-09  Martin Jambor  <mjambor@suse.cz>
2775
2776         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
2777         an SSA_NAME rather than a is_gimple_variable.
2778
2779 2009-09-09  Richard Guenther  <rguenther@suse.de>
2780
2781         PR middle-end/41317
2782         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
2783         code dealing with plain pointer bases.
2784         (maybe_fold_offset_to_reference): Likewise.
2785         (maybe_fold_stmt_addition): Adjust.
2786
2787 2009-09-09  Richard Guenther  <rguenther@suse.de>
2788
2789         * tree.c (free_lang_data_in_type): Do not free the type variant
2790         chains.
2791         (free_lang_data): Merge char_type_node with its properly signed
2792         variant.
2793         (pass_ipa_free): Collect after freeing language specific data.
2794
2795 2009-09-09  Michael Matz  <matz@suse.de>
2796
2797         PR middle-end/41268
2798         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
2799         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
2800         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
2801         to reflect reality.
2802
2803 2009-09-08  DJ Delorie  <dj@redhat.com>
2804
2805         * config/mep/mep.c (conversions[]): Add "ml" pattern.
2806
2807 2009-09-04  Jason Merrill  <jason@redhat.com>
2808
2809         * tree.c (tree_find_value): Remove.
2810         * tree.h: Remove prototype.
2811         * varasm.c (assemble_external): Use value_member instead.
2812
2813 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
2814
2815         * toplev.c (process_options): Choose default debugging type when
2816         gtoggle enables debug info and type is unset.
2817
2818 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
2819
2820         PR debug/41276
2821         PR debug/41307
2822         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
2823         invalid subreg.
2824
2825 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
2826
2827         * configure: Rebuilt with modified libtool.m4.
2828
2829 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
2830
2831         PR debug/41229
2832         PR debug/41291
2833         PR debug/41300
2834         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
2835
2836 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
2837
2838         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
2839         (remove_statement): Likewise.
2840         (rewrite_use_nonlinear_expr): Adjust.
2841         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
2842         * tree-ssa.c (release_defs_bitset): ... this.  New.
2843         * tree-flow.h (release_defs_bitset): Declare.
2844
2845 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
2846
2847         PR debug/41232
2848         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
2849         in the middle block.
2850
2851 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
2852
2853         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
2854         via intptr_t to long type.
2855         (insert_operand_rank): Cast long type via intptr_t to
2856         pointer type.
2857         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
2858         pointer to scalar.
2859         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
2860         from pointer to unsigned via uintptr_t.
2861
2862         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
2863         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
2864         and HAVE_INTPTR_T.
2865         * configure: Regenerated.
2866         * config.in: Regenerated
2867         * system.h (stdint.h): Add include.
2868         (inttypes.h): Likewise.
2869         * Makefile.in (aclocal): Add config/stdint.m4.
2870         * aclocal.m4: Regenerated.
2871
2872 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
2873
2874         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
2875         variables.
2876         (note_np_check_stores): New function.
2877         (harmless_null_pointer_p): New function.
2878         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
2879         changed.  Take into account whether we're in the shadow of a condjump
2880         that tested NP_REG for NULL.
2881         Lose all code that tested for SEQUENCEs.
2882         (workaround_speculation): Avoid inserting NOPs for loads that are
2883         either always executed or a NULL pointer.
2884
2885 2009-09-08  Jan Hubicka  <jh@suse.cz>
2886
2887         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
2888         * params.def (early-inlining-insns): Likewise.
2889
2890 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
2891
2892         PR rtl-optimization/41239
2893         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
2894         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
2895         lists.
2896         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
2897         across calls, as the calls might not always return normally.
2898         (call_may_noreturn_p): New function.
2899         (deps_analyze_insn): Update last_function_call_may_noreturn list.
2900         (init_deps): Initialize it.
2901         (remove_from_deps): Also remove calls from
2902         last_function_call_may_noreturn list.
2903
2904 2009-09-07  Richard Henderson  <rth@redhat.com>
2905
2906         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
2907         more VR->OPERANDS than LHS operands.  Free LHS before returning.
2908
2909 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
2910
2911         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
2912         (attr "addrtype"): New member "spreg".
2913         Use it if mem_spfp_address_operand is true for the address.
2914         (attr "type"): New entry "stall".
2915         (cpu_unit "load"): New.
2916         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
2917         "load".
2918         (insn_reservation "loadsp"): New.
2919         (insn_reservation "load_stall1"): New.
2920         (insn_reservation "load_stall3"): New.
2921         (stall): New insn.
2922         * config/bfin/predicates.md (const1_operand, const3_operand): New.
2923         (mem_p_address_operand): Exclude stack and frame pointer based
2924         addresses.
2925         (mem_spfp_address_operand): New; match them here.
2926         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
2927         (bfin_reorg): Call it if scheduling insns.
2928         (bfin_gen_bundles): Remove dummy insns created by
2929         add_sched_insns_for_speculation.
2930
2931         From Jie Zhang <jie.zhang@analog.com>:
2932         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
2933         bfin_si_revision, bfin_workarounds): Move these ...
2934         * config/bfin/bfin.h: ... here.
2935
2936         From Mike Frysinger  <michael.frysinger@analog.com>
2937         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
2938         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
2939         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
2940         bf547m, bf548m, and bf549m.
2941         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
2942         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
2943         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
2944         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
2945         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2946         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
2947         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2948         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2949         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
2950         bf542m, bf544m, bf547m, bf548m, and bf549m.
2951
2952         From Jie Zhang <jie.zhang@analog.com>:
2953         * config/bfin/predicates.md (p_register_operand): New predicate.
2954         (dp_register_operand): New predicate.
2955         * config/bfin/bfin-protos.h (WA_05000074): Define.
2956         (ENABLE_WA_05000074): Define.
2957         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
2958         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
2959         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
2960         (define_attr addrtype): Allow load/store register to be P register.
2961         (define_attr storereg): New.
2962         (define_cpu_unit anomaly_05000074): New.
2963         (define_insn_reservation dsp32shiftimm): New.
2964         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
2965         (define_insn_reservation loadp): Cannot use slot2.
2966         (define_insn_reservation loadsp): Cannot use slot2.
2967         (define_insn_reservation storep): Cannot use slot2. Does not
2968         apply when working around 05000074.
2969         (define_insn_reservation storep_anomaly_05000074): New.
2970         (define_insn_reservation storei): Does not apply when working
2971         around 05000074.
2972         (define_insn_reservation storei_anomaly_05000074): New.
2973         (define_attr length): Add dsp32shiftimm case.
2974         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
2975         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
2976         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
2977         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
2978         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
2979
2980 2009-09-07  Martin Jambor  <mjambor@suse.cz>
2981
2982         PR middle-end/41282
2983         * tree-sra.c (create_artificial_child_access): Return NULL if
2984         build_ref_for_offset fails.
2985         (propagate_subacesses_accross_link): Allow build_ref_for_offset
2986         and create_artificial_child_access to fail.
2987
2988 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
2989
2990         PR c++/41214
2991         * unwind-dw2.c (uw_init_context_1): Mark noinline.
2992         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
2993         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
2994
2995 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
2996
2997         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
2998         block, ensure it has an exit edge.  Emit a barrier after a jump.
2999
3000 2009-09-07  Nick Clifton  <nickc@redhat.com>
3001
3002         * gcc.c (this_is_linker_script): New variable.  Like
3003         this_is_library_file but for the %T constructor.
3004         (end_going_arg): If this_is_linker_script is set then locate the
3005         script and insert a --script switch before it
3006         (do_spec_2): Initialise this_is_linker_script.
3007         (do_spec_1): Likewise.  Handle %T construct.
3008         (eval_spec_function): Preserve this_is_linker_script.
3009         * doc/invoke.texi: Document %T construct in spec files.
3010         * config/m32c/m32c.h (LIB_SPEC): Use it.
3011
3012 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3013
3014         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
3015         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
3016         when volatile flag is set.
3017         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
3018
3019 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
3020
3021         PR bootstrap/41241
3022         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
3023         (combine_stack_adjustments_for_block): Allow insns between stack
3024         adjustments and stores with corresponding pre-(dec|inc)rement or
3025         pre-modify operation.
3026
3027 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
3028
3029         PR bootstrap/41241
3030         * combine-stack-adj.c (struct csa_memlist): Rename to...
3031         (struct csa_reflist): ... this.  Rename mem field to ref.
3032         (free_csa_memlist): Rename to...
3033         (free_csa_reflist): ... this.
3034         (record_one_stack_memref): Rename to...
3035         (record_one_stack_ref): ... this.  Handle also REG_P.
3036         (try_apply_stack_adjustment): Handle also REG_P.
3037         (struct record_stack_memrefs_data): Rename to...
3038         (struct record_stack_refs_data): ... this.  Rename memlist field to
3039         reflist.
3040         (record_stack_memrefs): Rename to...
3041         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
3042         subexpressions instead of failing when a MEM contains SP references.
3043         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
3044         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
3045
3046 2009-09-06  Richard Guenther  <rguenther@suse.de>
3047
3048         PR middle-end/41144
3049         * tree.c (build_array_type): Do not record types marked
3050         with structural equality in the canonical type hashtable.
3051
3052 2009-09-06  Richard Guenther  <rguenther@suse.de>
3053
3054         PR middle-end/41261
3055         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
3056
3057 2009-09-05  Richard Guenther  <rguenther@suse.de>
3058
3059         PR middle-end/41181
3060         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
3061
3062 2009-09-05  Richard Guenther  <rguenther@suse.de>
3063
3064         PR debug/41273
3065         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
3066
3067 2009-09-05  Richard Guenther  <rguenther@suse.de>
3068
3069         PR middle-end/41271
3070         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
3071         before comparing function argument types.
3072
3073 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3074
3075         PR target/41024
3076         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
3077         the assembler.
3078
3079 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
3080
3081         Revert:
3082         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
3083
3084         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
3085         locators before emit_insn is called.
3086
3087 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
3088
3089         PR bootstrap/41241
3090         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
3091         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
3092         (reginfo_init): Don't call allocate_reg_info.
3093
3094 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
3095
3096         PR target/41262
3097         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
3098         NONDEBUG_INSN_P instead of INSN_P.
3099
3100 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
3101
3102         PR debug/41225
3103         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
3104
3105 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
3106
3107         PR target/41252
3108         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
3109         pattern of the split.
3110
3111 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
3112
3113         * toplev.c (process_options): Move setter of flag_var_tracking
3114         before other tests that depend on it.  Move down setter of
3115         flag_rename_registers.  Don't enable var-tracking-assignments
3116         by default if selective scheduling is enabled.  Warn if both
3117         are enabled.
3118
3119 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
3120
3121         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
3122         comment.  Use switch statement to catch overlaps between rtx
3123         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
3124         (IS_DECL_CODE): ... here. Remove.
3125         (check_value_is_not_decl): Remove.
3126         (dv_from_decl, dv_from_value): Check after conversion.
3127
3128 2009-09-04  Richard Guenther  <rguenther@suse.de>
3129
3130         PR middle-end/41257
3131         * (cgraph_finalize_compilation_unit): Move finalizing aliases
3132         after emitting tunks.  Move emitting thunks and ctors from ...
3133         (cgraph_optimize): ... here.  Remove redundant
3134         cgraph_analyze_functions.
3135         * varasm.c (find_decl_and_mark_needed): Remove no longer
3136         necessary check.
3137         (finish_aliases_1): Adjust check for thunk aliases.
3138
3139 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
3140
3141         * config/arm/arm.md (ctzsi2): Added braces
3142         to avoid warning that broke booststrap.
3143
3144 2009-09-04  Martin Jambor  <mjambor@suse.cz>
3145
3146         PR tree-optimization/41112
3147         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
3148         handle variable-bounded arrays.
3149         (expr_with_var_bounded_array_refs_p): New function.
3150         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
3151
3152 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
3153
3154         * config/s390/2097.md: Removed two incorrect bypasses.
3155         (z10_fsimpdf): Fixed latency.
3156         (z10_fhex): New insn_reservation.
3157         (z10_floaddf): Fixed latency.
3158         (z10_floadsf): Fixed latency.
3159         (z10_ftrunctf): Fixed latency.
3160         (z10_ftruncdf): Fixed latency.
3161         * config/s390/s390.c (z10_cost): Fixed values.
3162         (s390_adjust_priority): Added z10 path.
3163         * config/s390/s390.md (type): Added fhex.
3164         (*mov<mode>_64dfp): Updated type attribute.
3165         (*mov<mode>_64): Updated type attribute.
3166         (*mov<mode>_31): Updated type attribute.
3167         (*mov<mode>"): Likewise.
3168         * config/s390/2084.md (x_fsimpdf): Updated condition.
3169
3170 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
3171
3172         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
3173         RTXs in the predicate for operand 1.
3174
3175 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
3176
3177         * config/arm/arm.md (UNSPEC_RBIT): New constant.
3178         (rbitsi2): New insn.
3179         (ctzsi2): New expand.
3180         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
3181
3182 2009-09-03  Martin Jambor  <mjambor@suse.cz>
3183
3184         * tree-sra.c (duplicate_expr_for_different_base): Removed.
3185         (create_artificial_child_access): Use build_ref_for_offset instead
3186         of duplicate_expr_for_different_base.
3187         (propagate_subacesses_accross_link): Likewise.
3188
3189 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
3190
3191         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
3192         of INSN_P.
3193         (mips16e_collect_argument_saves): Skip debug instructions.
3194         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
3195         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
3196         (r10k_insert_cache_barriers): Likewise.
3197         (mips_reorg_process_insns): Likewise.
3198
3199 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
3200
3201         PR bootstrap/41241
3202         * ira.c (update_equiv_reg): Remove check on class likely spill.
3203
3204 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
3205
3206         PR debug/41236
3207         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
3208         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
3209         it or SUBREG.
3210
3211         PR debug/41238
3212         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
3213         the stack slot if it is passed by invisible reference.
3214         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
3215         by invisible reference.
3216
3217 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
3218
3219         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
3220         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
3221         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
3222         0.
3223         * config/bfin/sync.md: New file.
3224         * config/bfin/bfin.md: Include it.
3225         (UNSPEC_ATOMIC): New.
3226         (UNSPEC_ONES): Provide a unique number.
3227
3228         From Jie Zhang <jie.zhang@analog.com>:
3229         * config/bfin/bfin.c (ret_regs): New.
3230         (must_save_fp_p): Don't return true because of frame_pointer_needed.
3231         (must_save_rets_p): New.
3232         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
3233         current_function_is_leaf.
3234         (do_link): Likewise.
3235         (do_unlink): Likewise.
3236         (expand_interrupt_handler_prologue): Use ret_regs array.
3237         (expand_interrupt_handler_epilogue): Use ret_regs array and
3238         pass return register to gen_return_internal.
3239         (bfin_expand_epilogue): Pass return register to
3240         gen_return_internal.
3241         (bfin_expand_call): Explicitly clobber RETS.
3242         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
3243         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
3244         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
3245         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
3246         RETS.
3247         (return_internal): Take a reg rtx rather than the register number.
3248
3249 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
3250
3251         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
3252         when comparing against estimated_loop_iterations_int return.
3253
3254 2009-09-03  Richard Guenther  <rguenther@suse.de>
3255
3256         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
3257         eh_personality_libfunc.
3258
3259 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
3260
3261         * tree-parloops.c (separate_decls_in_region): Add space.
3262
3263 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
3264
3265         * tree-parloops.c (separate_decls_in_region): Change the condition
3266         checking if there are reductions in the loop.
3267
3268 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
3269
3270         PR tree-optimization/38275
3271         * tree-parloops.c (parallelize_loops): Replace profitability condition
3272         for expected number of iterations.
3273
3274 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
3275
3276         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
3277         (bootstrap-debug): Explain conditions in which it becomes default.
3278         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
3279         make it add to it.
3280
3281 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
3282
3283         * doc/invoke.texi (Optimize Options): Move
3284         -finline-small-functions to the -O2 list.
3285
3286 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
3287
3288         * toplev.c (process_options): Enable var-tracking-assignments
3289         by default if var-tracking is enabled.
3290
3291 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
3292
3293         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
3294         barrier.
3295         * emit-rtl.c (prev_nonnote_insn_bb): New function.
3296         * rtl.h (prev_nonnote_insn_bb): Declare it.
3297
3298 2009-09-03  Diego Novillo  <dnovillo@google.com>
3299
3300         * cgraph.c (cgraph_node_for_decl): New.
3301         * cgraph.h (cgraph_node_for_decl): Declare.
3302         * tree.c (host_integerp): Return 0 if T is NULL.
3303
3304 2009-09-03  Diego Novillo  <dnovillo@google.com>
3305
3306         * tree.h (struct alias_pair): Move from varasm.c.
3307         (alias_pairs): Likewise.
3308         (TYPE_MAXVAL): Define.
3309         (TYPE_MINVAL): Define.
3310         (iterative_hash_host_wide_int): Declare.
3311         (remove_unreachable_alias_pairs): Declare.
3312         * tree-pass.h (pass_ipa_free_lang_data): Declare.
3313         * diagnostic.c (default_diagnostic_starter): Make extern.
3314         (default_diagnostic_finalizer): Make extern.
3315         * diagnostic.h (default_diagnostic_starter): Declare.
3316         (default_diagnostic_finalizer): Declare.
3317         (default_tree_printer): Declare.
3318         * toplev.c (default_tree_printer): Make extern.
3319
3320 2009-09-03  Richard Guenther  <rguenther@suse.de>
3321             Diego Novillo  <dnovillo@google.com>
3322
3323         * cgraph.c (cgraph_add_new_function): Remove gimplification.
3324         * cgraphunit.c (cgraph_expand_function): Do not emit
3325         associated thunks from here.
3326         (cgraph_emit_thunks): New.
3327         (cgraph_optimize): Call it.
3328         Return if any IPA pass finds an error.
3329         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
3330         by thunks.
3331
3332 2009-09-03  Simon Baldwin  <simonb@google.com>
3333             Rafael Espindola  <espindola@google.com>
3334             Richard Guenther  <rguenther@suse.de>
3335             Doug Kwan  <dougkwan@google.com>
3336             Diego Novillo  <dnovillo@google.com>
3337
3338         * tree.c: Include tree-pass.h, langhooks-def.h,
3339         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
3340         (free_lang_data_in_type): New.
3341         (need_assembler_name_p): New.
3342         (free_lang_data_in_block): New.
3343         (free_lang_data_in_decl): New.
3344         (struct free_lang_data_d): New.
3345         (add_tree_to_fld_list): New.
3346         (find_decls_types_r): New.
3347         (get_eh_types_for_runtime): New.
3348         (find_decls_types_in_eh_region): New.
3349         (find_decls_types_in_node): New.
3350         (find_decls_types_in_var): New.
3351         (free_lang_data_in_cgraph): New.
3352         (free_lang_data): New.
3353         (gate_free_lang_data): New.
3354         (pass_ipa_free_lang_data): New.
3355
3356 2009-09-03  Diego Novillo  <dnovillo@google.com>
3357
3358         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
3359         * langhooks.h (struct lang_hooks): Add field free_lang_data.
3360         (lang_hooks): Remove const qualifier.
3361         * ipa.c (cgraph_remove_unreachable_nodes): Call
3362         remove_unreachable_alias_pairs.
3363         * except.c (add_type_for_runtime): Check if TYPE has
3364         already been converted.
3365         (lookup_type_for_runtime): Likewise.
3366         (check_handled): Handle converted types.
3367         * varasm.c (remove_unreachable_alias_pairs): New.
3368         * gimple.c: Include demangle.h.
3369         (gimple_decl_printable_name): New.
3370         (gimple_fold_obj_type_ref): New.
3371         * gimple.h (gimple_decl_printable_name): Declare.
3372         (gimple_fold_obj_type_ref): Declare.
3373         * passes.c (init_optimization_passes): Add pass
3374         pass_ipa_free_lang_data.
3375         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
3376         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
3377
3378 2009-09-03  Diego Novillo  <dnovillo@google.com>
3379
3380         * c-lang.c (lang_hooks): Remove const qualifier.
3381
3382 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
3383
3384         * doc/install.texi (*-*-freebsd*): Update target information.
3385
3386 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
3387
3388         * hard-reg-set.h (call_fixed_regs): Remove.
3389         * reginfo.c (call_fixed_regs): Remove.
3390         (init_reg_sets_1): Remove initialization of call_fixed_regs.
3391         (globalize_reg): Don't use call_fixed_regs.
3392         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
3393         call_fixed_regs.
3394
3395 2009-09-01  Michael Matz  <matz@suse.de>
3396
3397         * expr.h (emit_storent_insn, expand_expr_real_1,
3398         expand_expr_real_2): Declare.
3399         * expr.c (emit_storent_insn, expand_expr_real_1,