OSDN Git Service

00a6055e1add4f99f085eb17491a5eaa19eb9f16
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
2
3         PR debug/41404
4         PR debug/41353
5         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
6         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end with
7         '\0'.
8         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
9         vars use DECL_RTL with resetting it back to NULL afterwards.
10         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
11         rtx_equal_p instead of asserting it is a SYMBOL_REF.
12         (value_format): For dw_val_class_addr only use DW_FORM_addr if
13         the attribute type allows it, otherwise use DW_FORM_dataN.
14         (mem_loc_descriptor): Handle CONST_STRING.
15         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
16         Handle MEM with CONST_STRING address using add_AT_string.
17         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
18         CONST_STRING for const arrays initialized with a string literal.
19         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
20         (dwarf2out_finish): Call resolve_addr.
21
22 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
23             Maxim Kuvyrkov  <maxim@codesourcery.com>
24  
25         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
26
27 2009-10-02  Nick Clifton  <nickc@redhat.com>
28
29         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
30         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
31
32 2009-10-01  Jan Hubicka  <jh@suse.cz>
33
34         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
35         (cgraph_create_virtual_clone): Just pass redirect_callers
36         around.
37         * cgraph.h (cgraph_clone_node): Update prototype.
38         * ipa-pure-const.c (self_recursive_p): New function.
39         (propagate): Use it.
40         * ipa-inline.c (cgraph_clone_inlined_nodes,
41         cgraph_decide_recursive_inlining): Update.
42
43 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
44
45         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
46         instructions for TARGET_OCTEON.
47
48 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
49
50         * config/arm/arm.c (arm_override_options): Turn off
51         flag_dwarf2_cfi_asm for AAPCS variants.
52
53 2009-10-01  Martin Jambor  <mjambor@suse.cz>
54
55         PR middle-end/12392
56         * tree-sra.c (convert_callers): Do not call
57         compute_inline_parameters on one caller more than once.
58
59 2009-10-01  Nick Clifton  <nickc@redhat.com>
60
61         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
62         an empty string if not already defined.
63
64 2009-10-01  Martin Jambor  <mjambor@suse.cz>
65
66         PR bootstrap/41395
67         * tree-sra.c (is_va_list_type): New function.
68         (find_var_candidates): Call is_va_list_type.
69         (find_param_candidates): Check that the type or the type pointed
70         to are not va_list types.
71
72 2009-10-01  Martin Jambor  <mjambor@suse.cz>
73
74         PR c++/41503
75         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
76         DECL_ARTIFICIAL (param_decl) is true.
77         
78 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
79
80         * tree.h (tree_decl_common::lang_flag_8): New.
81         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
82         keyword. 
83         * c-common.h (RID_CONSTEXPR): New.
84
85 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
86
87         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
88         Use ref-all pointers.
89         (alpha_gimplify_va_arg): Ditto.
90
91 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
92
93         PR target/41279
94         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
95         before insn counting loop now that BB_END (bb) is counted.  Ensure
96         the return value isn't zero.
97
98 2009-09-30  Nick Clifton  <nickc@redhat.com>
99
100         * config.gcc (sh-symbianelf): Replace definition of extra_objs
101         with separate definitions of c_target_objs and cxx_target_objs.
102         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
103         and symbian-base.o.
104         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
105         sh_symbian_import_export_class.
106         * config/sh/sh-protos.h: Fix names of exported symbian functions.
107         * config/sh/symbian.c: Delete, moving code into...
108         * config/sh/symbian-base.c: ... here
109         * config/sh/symbian-c.c: ... and here
110         * config/sh/symbian-cxx.c: ... and here.
111
112 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
113
114         PR target/22093
115         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
116         of plus RTX into register.
117
118 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
119
120         * doc/install.texi: Linguistic and markup fixes.
121         (Configuration) <--disable-cpp>: Remove description.
122         <--enable-maintainer-mode>: Autotools files are affected, too.
123         <--with-sysroot>: Improve description.
124         (Building): Bump required GNU make version.
125
126 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
127
128         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
129         (x86_64-*-*): Ditto.
130
131         * config/i386/fma4intrin.h: New file, provide common x86 compiler
132         intrinisics for FMA4.
133         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
134         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
135         Add FMA4 check and fma4intrin.h.
136         * config/i386/i386-c.c(ix86_target_macros_internal): Check
137         ISA_FLAG for FMA4.
138         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
139         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
140         constant for FMA4 support.
141         (UNSPEC_FMA4_FMADDSUB): Ditto.
142         (UNSPEC_FMA4_FMSUBADD): Ditto.
143         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
144         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
145         (ix86_expand_fma4_multiple_memory): Ditto.
146         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
147         (OPTION_MASK_ISA_FMA4_UNSET): New.
148         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
149         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
150         (ix86_handle_option): Handle -mfma4.
151         (isa_opts): Handle -mfma4.
152         (enum pta_flags): Add PTA_FMA4.
153         (override_options): Add FMA4 support.
154         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
155         (IX86_BUILTIN_VFMADDSD): Ditto.
156         (IX86_BUILTIN_VFMADDPS): Ditto.
157         (IX86_BUILTIN_VFMADDPD): Ditto.
158         (IX86_BUILTIN_VFMSUBSS): Ditto.
159         (IX86_BUILTIN_VFMSUBSD): Ditto.
160         (IX86_BUILTIN_VFMSUBPS): Ditto.
161         (IX86_BUILTIN_VFMSUBPD): Ditto.
162         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
163         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
164         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
165         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
166         (IX86_BUILTIN_VFNMADDSS): Ditto.
167         (IX86_BUILTIN_VFNMADDSD): Ditto.
168         (IX86_BUILTIN_VFNMADDPS): Ditto.
169         (IX86_BUILTIN_VFNMADDPD): Ditto.
170         (IX86_BUILTIN_VFNMSUBSS): Ditto.
171         (IX86_BUILTIN_VFNMSUBSD): Ditto.
172         (IX86_BUILTIN_VFNMSUBPS): Ditto.
173         (IX86_BUILTIN_VFNMSUBPD): Ditto.
174         (IX86_BUILTIN_VFMADDPS256): Ditto.
175         (IX86_BUILTIN_VFMADDPD256): Ditto.
176         (IX86_BUILTIN_VFMSUBPS256): Ditto.
177         (IX86_BUILTIN_VFMSUBPD256): Ditto.
178         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
179         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
180         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
181         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
182         (IX86_BUILTIN_VFNMADDPS256): Ditto.
183         (IX86_BUILTIN_VFNMADDPD256): Ditto.
184         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
185         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
186         (enum multi_arg_type): New enum for describing the various FMA4
187         intrinsic argument types.
188         (bdesc_multi_arg): New table for FMA4 intrinsics.
189         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
190         (ix86_expand_multi_arg_builtin): New function for creating FMA4
191         intrinsics.
192         (ix86_expand_builtin): Add FMA4 intrinsic support.
193         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
194         operand instructions.
195         (ix86_expand_fma4_multiple_memory): New function to split the
196         second memory reference from FMA4 instructions.
197         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
198         (ssemodesuffixf2s): Ditto.
199         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
200         instructions.
201         (fma4_fmsub<mode>4): Ditto.
202         (fma4_fnmadd<mode>4): Ditto.
203         (fma4_fnmsub<mode>4): Ditto.
204         (fma4_vmfmadd<mode>4): Ditto.
205         (fma4_vmfmsub<mode>4): Ditto.
206         (fma4_vmfnmadd<mode>4): Ditto.
207         (fma4_vmfnmsub<mode>4): Ditto.
208         (fma4_fmadd<mode>4256): Ditto.
209         (fma4_fmsub<mode>4256): Ditto.
210         (fma4_fnmadd<mode>4256): Ditto.
211         (fma4_fnmsub<mode>4256): Ditto.
212         (fma4_fmaddsubv8sf4): Ditto.
213         (fma4_fmaddsubv4sf4): Ditto.
214         (fma4_fmaddsubv4df4): Ditto.
215         (fma4_fmaddsubv2df4): Ditto.
216         (fma4_fmsubaddv8sf4): Ditto.
217         (fma4_fmsubaddv4sf4): Ditto.
218         (fma4_fmsubaddv4df4): Ditto.
219         (fma4_fmsubaddv2df4): Ditto.
220         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
221         instructions for intrinsics.
222         (fma4i_fmsub<mode>4): Ditto.
223         (fma4i_fnmadd<mode>4): Ditto.
224         (fma4i_fnmsub<mode>4): Ditto.
225         (fma4i_vmfmadd<mode>4): Ditto.
226         (fma4i_vmfmsub<mode>4): Ditto.
227         (fma4i_vmfnmadd<mode>4): Ditto.
228         (fma4i_vmfnmsub<mode>4): Ditto.
229         (fma4i_fmadd<mode>4256): Ditto.
230         (fma4i_fmsub<mode>4256): Ditto.
231         (fma4i_fnmadd<mode>4256): Ditto.
232         (fma4i_fnmsub<mode>4256): Ditto.
233         (fma4i_fmaddsubv8sf4): Ditto.
234         (fma4i_fmaddsubv4sf4): Ditto.
235         (fma4i_fmaddsubv4df4): Ditto.
236         (fma4i_fmaddsubv2df4): Ditto.
237         (fma4i_fmsubaddv8sf4): Ditto.
238         (fma4i_fmsubaddv4sf4): Ditto.
239         (fma4i_fmsubaddv4df4): Ditto.
240         (fma4i_fmsubaddv2df4): Ditto.
241
242         * doc/invoke.texi (-mfma4): Add documentation.
243         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
244
245 2009-09-29  Richard Henderson  <rth@redhat.com>
246
247         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
248         an edge to the new destination block.
249
250 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
251
252         PR target/41393
253         * pa.c (hppa_profile_hook): Use
254         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
255
256 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
257             Alexander Monakov  <amonakov@ispras.ru>
258
259         PR target/41365
260         * config/ia64/predicates.md (not_postinc_destination_operand): New.
261         (not_postinc_memory_operand): New.
262         (not_postinc_move_operand): New.
263         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
264         (*cmovsi_internal): Ditto.
265
266 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
267
268         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
269         restrict issue_rate in first pass when scheduling for register
270         pressure.
271
272 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
273             Rafael Avila de Espindola  <espindola@google.com>
274
275         * gengtype.c (plugin_output): New.
276         (get_output_file_with_visibility): Return plugin_output for plugins.
277         (main): Parse and use the -P option.
278         * gty.texi: Update the command line format.
279
280 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
281
282         PR debug/41438
283         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
284         functions.
285         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
286         out if !const_ok_for_output.
287
288         PR debug/41474
289         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
290         case VAR_LOCATION>: Remove gcc_unreachable ().
291
292 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
293
294         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
295         (x86_64-*-*): Ditto.
296         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
297         back to smmintrin.h.
298         * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
299         * config/i386/x86intrin.h: Remove SSE5.
300         * config/i386/mmintrin-common.h: Delete file.
301         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
302
303 2009-09-29  Richard Guenther  <rguenther@suse.de>
304
305         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
306         resulting from stack temporaries on STRICT_ALIGNMENT targets.
307
308 2009-09-29  Nick Clifton  <nickc@redhat.com>
309
310         * function.c (current_function_name): If there is no current
311         function just return "<none>".
312
313 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
314
315         * tree-pass.h (register_pass_info): New structure.
316         (pass_positioning_ops): Move enum from gcc-plugin.h.
317         (register_pass): New function.
318         * gcc-plugin.h (plugin_pass): Delete structure.
319         (pass_positioning_ops): Delete enum.
320         * plugin.c (regsiter_pass): Delete function.
321         (position_pass): Delete function.
322         (added_pass_nodes): Delete variable.
323         (prev_added_pass_nodes): Delete variable.
324         (pass_list_node): Delete structure.
325         * passes.c (make_pass_instance): New function.
326         (next_pass_1): Change to call make_pass_instance.
327         (pass_list_node): Move structure from gcc-plugin.h.
328         (added_pass_nodes): Move variable from plugin.c.
329         (prev_added_pass_nodes): Move variable from plugin.c.
330         (position_pass): New function.
331         (register_pass): New function.
332
333 2009-09-28  Easwaran Raman  <eraman@google.com>
334
335         * ifcvt.c (noce_try_abs): Recognize pattern and call
336         expand_one_cmpl_abs_nojump.
337         * optabs.c (expand_one_cmpl_abs_nojump): New function.
338         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
339
340 2009-09-28  Ian Lance Taylor  <iant@google.com>
341
342         PR middle-end/40500
343         * c-opts.c (c_common_handle_option): Don't set
344         warn_jump_misses_init for -Wall.
345         * doc/invoke.texi (Warning Options): Update documentation.
346
347 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
348
349         * Makefile.in ($(out_object_file)): Depend on
350         gt-$(basename $(notdir $(out_file))).h.
351
352 2009-09-28  Richard Henderson  <rth@redhat.com>
353
354         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
355         * except.c (gen_eh_region): Set it.
356         (duplicate_eh_regions_1): Copy it.
357         * tree-eh.c (lower_resx): Use it to determine which function
358         to call to resume.
359
360         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
361         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
362         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
363         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
364         BUILT_IN_CXA_END_CLEANUP if necessary.
365
366         * c-common.c (c_define_builtins): Update call to
367         build_common_builtin_nodes.
368
369 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
370
371         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
372
373 2009-09-28  Michael Matz  <matz@suse.de>
374
375         * builtins.c (interclass_mathfn_icode): New helper.
376         (expand_builtin_interclass_mathfn): Use it here, and split folding
377         into ...
378         (fold_builtin_interclass_mathfn): ... this new folder.
379         (build_call_nofold_loc): New static helper.
380         (build_call_nofold): New wrapper macro for above.
381         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
382         (expand_builtin_pow): Ditto.
383         (expand_builtin_memset_args): Ditto.
384         (expand_builtin_printf): Ditto.
385         (expand_builtin_fprintf): Ditto.
386         (expand_builtin_sprintf): Ditto.
387         (expand_builtin_memory_chk): Ditto.
388         (expand_builtin_mempcpy_args): Ditto and don't call folders.
389         (expand_builtin_stpcpy): Ditto.
390         (expand_builtin_strcmp): Ditto.
391         (expand_builtin_strncmp): Ditto.
392         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
393         (expand_builtin_strcpy_args): Don't call folders.
394         (expand_builtin_memcmp): Ditto.
395         (expand_builtin_strncpy): Ditto, and use target.
396         (expand_builtin_memcpy): Ditto.
397         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
398         expand_builtin_strpbrk, expand_builtin_memmove,
399         expand_builtin_memmove_args, expand_builtin_bcopy,
400         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
401         expand_builtin_strspn, expand_builtin_strcspn,
402         expand_builtin_fputs): Remove these.
403         (expand_builtin): Don't call the above, change calls to other
404         expanders that changed prototype.
405         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
406         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
407         fold_builtin_interclass_mathfn.
408         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
409         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
410
411         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
412         * passes.c (init_optimization_passes): Move pass_fold_builtins
413         after last phiopt pass.
414         * tree-inline.c (fold_marked_statements): When folding builtins
415         iterate over all instruction potentially generated.
416         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
417         earlier.
418         (fold_gimple_call): Use it to always fold calls (into potentially
419         multiple instructions).
420         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
421         calls into zero at this time.
422         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
423         statements generated by builtin folding.
424
425 2009-09-28  Nick Clifton  <nickc@redhat.com>
426
427         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging
428         insns.
429
430 2009-09-28  Duncan Sands  <baldrick@free.fr>
431
432         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
433         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
434         (register_callback): Dispatch it.
435         (invoke_plugin_callbacks): Incorporate in sanity check.
436         * ggc.h (ggc_register_cache_tab): Add declaration.
437         * ggc-common.c (ggc_register_root_tab): Simplify.
438         (const_ggc_cache_tab_t): New typedef.
439         (extra_cache_vec): New vector of dynamically added cache tables.
440         (ggc_register_cache_tab): New function.
441         (ggc_scan_cache_tab): New function.
442         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
443         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
444
445 2009-09-27  Richard Henderson  <rth@redhat.com>
446
447         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
448         which we remove __builtin_stack_restore.
449
450 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
451
452         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
453         to test for GRD_INVARIANT.
454         (simple_rhs_p): Anything that's function_invariant_p is fine.
455
456 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
457
458         * gengtype.c (main): Use plunge_files instead of plugin_output.
459
460 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
461             Rafael Avila de Espindola  <espindola@google.com>
462
463         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
464         Don't print pch related info if it is false.
465         (main): Don't print pch info in plugin mode.
466
467 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
468
469         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
470         with dw_val_class_const_double.
471         (struct dw_val_struct): Replace val_long_long with val_double and
472         adjust for above change.
473         (output_loc_operands): Likewise.
474         (add_AT_long_long): Rename into...
475         (add_AT_double): ...this.
476         (print_die): Replace dw_val_class_long_long with
477         dw_val_class_const_double and adjust.
478         (attr_checksum): Likewise.
479         (same_dw_val_p): Likewise.
480         (size_of_die): Likewise.
481         (value_format): Likewise.
482         (output_die): Likewise.
483         (loc_descriptor) <CONST_DOUBLE>: Likewise.
484         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
485         instead of add_AT_long_long.
486         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
487         value with the precision of its type.
488
489 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
490
491         PR c/41476
492         * c-typeck.c (build_conditional_expr): Use the readonly and
493         volatile flags of the operand types, not of the operands itself.
494
495 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
496
497         collect2.c (main): Look for -brtl before adding libraries.
498
499 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
500
501         * config.gcc: Update OpenBSD targets.
502         * config/openbsd-stdint.h: New file.
503         * config/openbsd-libpthread.h: New file.
504         * config/openbsd.h: Update and break out LIB_SPEC definition.
505         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
506         * config/i386/openbsdelf.h: Correct types.
507         * config/m68k/openbsd.h: Likewise.
508         * config/mips/openbsd.h: Likewise.
509         * config/vax/openbsd.h: Likewise.
510
511 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
512
513         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
514         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
515         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
516         of the length and zero.
517
518 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
519
520         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
521         (FLAGS_H): Add options.h $(REAL_H).
522         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
523         (TREE_VECTORIZER_H): New.
524         (EBITMAP_H): Renamed from EBIMAP_H.
525         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
526         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
527         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
528         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
529         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
530         (graphite-clast-to-gimple.o, graphite-dependences.o)
531         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
532         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
533         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
534         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
535         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
536         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
537         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
538         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
539         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
540         updated and fixed as per above changes and per
541         check_makefile_deps.sh output.
542
543         PR bootstrap/40928
544         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
545         * configure: Regenerate.
546
547 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
548
549         * doc/install.texi: Update minimum MPC version to 0.7.
550
551 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
552
553         * doc/install.texi (Binaries): Remove reference to the binary
554         distribution CD-ROM from the FSF.
555
556 2009-09-26  Michael Matz  <matz@suse.de>
557
558         PR lto/40758
559         PR middle-end/41470
560         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
561         that are mentioned in the body.
562
563 2009-09-26  Michael Matz  <matz@suse.de>
564
565         PR tree-optimization/41454
566         * tree-ssa-dom (stmts_to_rescan): Remove variable.
567         (tree_ssa_dominator_optimize): Don't allocate and free it.
568         (dom_opt_leave_block): Don't iterate over it.
569         (eliminate_redundant_computations): Don't return a value.
570         (cprop_operand, cprop_into_stmt): Ditto.
571         (optimize_stmt): Don't defer updating stmts.
572
573 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
574
575         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
576         generic_parameter_die, template_parameter_pack_die,
577         gen_formal_parameter_die, gen_subprogram_die): Adjust after renaming
578         DW_TAG_formal_parameter_pack and DW_TAG_template_parameter_pack into
579         DW_TAG_GNU_formal_parameter_pack and DW_TAG_GNU_template_parameter_pack.
580
581 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
582
583         * config/v850/v850.h (FUNCTION_VALUE): Remove.
584         * config/v850/v850.c (v850_function_value): New function.
585         (TARGET_FUNCTION_VALUE): Define.
586
587 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
588
589         * tree-vect-stmts.c (vectorizable_call): Call
590         mark_symbols_for_renaming after vect_finish_stmt_generation.
591
592         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
593         to loc_descriptor_from_tree.
594         (add_location_or_const_value_attribute): Pass 0 instead of 2
595         for decl_by_reference_p decls.
596
597 2009-09-25  Richard Guenther  <rguenther@suse.de>
598
599         PR middle-end/41463
600         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
601         arrays again.
602
603 2009-09-25  Ben Elliston  <bje@au.ibm.com>
604
605         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
606         after `power7'.
607
608 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
609
610         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
611         form of instruction.
612
613 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
614
615         PR middle-end/41435
616         * fold-const.c (const_binop): Handle complex int division.
617         * tree-complex.c (expand_complex_div_straight,
618         expand_complex_div_wide): Update comments.
619
620 2009-09-24  DJ Delorie  <dj@redhat.com>
621
622         PR target/41456
623         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
624         (reg_class): Likewise.
625         (REG_CLASS_NAMES): Likewise.
626         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
627
628         * config/m32c/m32c.c (m32c_override_options): Disable -fivopts for
629         M32C.
630
631 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
632
633         * config/rs6000/predicates.md (indexed_or_indirect_operand):
634         Delete VSX load/store with update support.
635         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
636         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
637         (vsx_movti): Ditto.
638         (VSX_U): Delete.
639         (VSbit): Ditto.
640         (VStype_load_update): Ditto.
641         (VStype_store_update): Ditto.
642         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
643         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
644
645         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
646         load/store with update builtins.
647
648 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
649
650         * libgcc2.c (L_trampoline): Prototype for getpagesize
651         and mprotect in WINNT case.
652
653 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
654
655         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
656         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
657         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
658         'outgoing' argument.
659         (TARGET_FUNCTION_VALUE): Define.
660
661 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
662
663         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
664
665 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
666
667         PR bootstrap/41405
668         * common.opt: Initialize dwarf_strict to -1.
669         * toplev.c (process_options): Catch unset dwarf_strict
670         and set to 0 for all targets not overriding.
671         * config/darwin.c (darwin_override_options): Catch unset
672         dwarf_strict and override to 1.
673
674 2009-09-24  Jeff Law  <law@redhat.com>
675
676         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
677
678 2009-09-24  Richard Guenther  <rguenther@suse.de>
679
680         PR tree-optimization/36143
681         PR tree-optimization/38747
682         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
683         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
684
685 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
686
687         PR bootstrap/41457
688         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
689         return false instead of gcc_unreachable ().  For CONST return the
690         value returned by recursive call instead of always returning true.
691         (tree_add_const_value_attribute): Return the value returned by
692         add_const_value_attribute instead of always returning true if rtl
693         is non-NULL.
694
695 2009-09-23  Justin Seyster  <jrseys@gmail.com>
696
697         * Makefile.in (PLUGIN_HEADERS): Include real.h.
698
699 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
700
701         * cgraphunit.c (cgraph_lower_function): Revert last change.
702         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
703         instead of DECL_NO_STATIC_CHAIN.
704         * tree-cfg.c (verify_gimple_call): Likewise.
705         * tree-nested.c (get_chain_decl, get_chain_field,
706         convert_tramp_reference_op, convert_gimple_call): Likewise.
707         (convert_all_function_calls): Likewise.  Always set or clear
708         DECL_STATIC_CHAIN initially, for !n->outer clear it.
709         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
710         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
711         if nested.
712         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
713         DECL_NO_STATIC_CHAIN.
714         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
715         instead of DECL_NO_STATIC_CHAIN.
716         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
717         decl_function_context.
718         * varasm.c (initializer_constant_valid_p): Likewise.
719         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
720         (DECL_STATIC_CHAIN): ... this.
721         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
722         instead of DECL_NO_STATIC_CHAIN.
723
724 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
725             Rafael Avila de Espindola  <espindola@google.com>
726
727         * gengtype.c (nb_plugin_files): Make it unsigned to match
728         num_gt_files. Adjust other variables to avoid warnings.
729         (main): Allocate an all zero lang_bitmap before each plugin file name
730         to match regular file names.
731
732 2009-09-23  Richard Henderson  <rth@redhat.com>
733
734         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
735         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
736         static chain passed in memory.
737         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
738         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
739         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
740         STATIC_CHAIN_REGNUM defined.
741
742         * config/picochip/picochip-protos.h: s/class/klass/.
743         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
744         (picochip_static_chain): New.
745         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
746         (STATIC_CHAIN_INCOMING): Remove.
747
748         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
749         (xtensa_static_chain): New.
750         * config/xtensa/xtensa.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
751
752 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
753
754         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
755         * config/pa/pa-protos.h (function_value): Remove.
756         * config/pa/pa.c (pa_function_value): Rename from function_value.
757         Make static, add 'outgoing' argument.
758         (TARGET_FUNCTION_VALUE): Define.
759
760 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
761
762         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
763         instead of cfun->machine->is_leaf.
764         * config/avr/avr.h (machine_function): Remove is_leaf field.
765
766 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
767
768         PR debug/41439
769         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
770         DW_OP_piece after DW_OP_stack_value, adjust size calculations
771         for it, when DW_OP_stack_value and DW_OP_implicit_value has
772         the same size, prefer DW_OP_stack_value.
773         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
774         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
775
776 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
777
778         PR debug/41353
779         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
780
781 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
782
783         PR debug/41248
784         * cfgexpand.c (convert_debug_memory_address): New.
785         (expand_debug_expr): Convert base address and offset to the same
786         mode.  Use it to convert addresses to other modes.  Accept
787         ptr_mode addresses.
788
789 2009-09-23  Richard Guenther  <rguenther@suse.de>
790
791         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
792         produced for bigendian targets with promoted subregs.
793
794 2009-09-23  Richard Guenther  <rguenther@suse.de>
795
796         * value-prof.c (gimple_ic): Purge old EH edges only after building
797         the new ones.
798
799 2009-09-23  Nick Clifton  <nickc@redhat.com>
800
801         * config/arc/arc.c (arc_trampoline_init): Fix typo.
802
803 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
804
805         PR bootstrap/41405
806         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
807
808         PR bootstrap/41436
809         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
810         on non-nested functions.
811
812 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
813             Jan Hubicka  <jh@suse.cz>
814
815         * dwarf2out.c (loc_list_plus_const): Only define if
816         DWARF2_DEBUGGING_INFO.
817         (address_of_int_loc_descriptor): Likewise.
818
819         PR debug/41411
820         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
821
822 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
823
824         PR c/39779
825         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
826         constant is more than zero.
827
828 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
829
830         PR target/40473
831         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
832         call final to emit non-scheduled prologue, instead insert at entry.
833
834 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
835             Joseph S. Myers  <joseph@codesourcery.com>
836
837         * doc/install.texi (*-*-freebsd*): Add proper format codes.
838
839 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
840             Rafael Avila de Espindola  <espindola@google.com>
841
842         * gengtype.c (is_file_equal): New function.
843         (close_output_files): Use is_file_equal. Free of->buf.
844
845 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
846             Rafael Avila de Espindola  <espindola@google.com>
847
848         * gengtype.c (write_types, write_local): Add the output_header
849         argument. Update all callers.
850
851 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
852
853         * dwarf2out.c (template_parameter_pack_die,
854         gen_formal_parameter_pack_die ): New functions.
855         (make_ith_pack_parameter_name): Remove this function.
856         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
857         DW_TAG_formal_parameter_pack.
858         (gen_generic_params_dies): Represent each template parameter pack
859         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
860         represented by usual DW_TAG_template_*_parameter DIEs that are
861         children of the DW_TAG_template_parameter_pack element DIE.
862         (generic_parameter_die): This doesn't deal with parameter pack
863         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
864         of parameter pack DIEs.
865         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
866         in certain cases, e.g. for pack elements.
867         (gen_formal_types_die, gen_decl_die): Adjust usage of
868         gen_formal_parameter_die.
869         (gen_subprogram_die): Represent each function parameter pack by a
870         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
871         represented by usual DW_TAG_formal_parameter DIEs that are children
872         of the DW_TAG_formal_parameter_pack DIE. Remove references to
873         ____builtin_va_alist decls as no part of the compiler uses those
874         anymore.
875         * langhooks.h (struct lang_hooks_for_decls): Add
876         function_parm_expanded_from_pack_p, get_generic_function_decl
877         and function_parameter_pack_p hooks.  Fix comment for
878         get_innermost_generic_parms hook.
879         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
880         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
881         macros and use them to initialize lang_hook.
882
883 2009-09-22  Richard Henderson  <rth@redhat.com>
884
885         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
886         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
887         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
888         on TRAMPOLINE_TEMPLATE.
889         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
890         TRAMPOLINE_ADJUST_ADDRESS.
891         * targhooks.c (default_asm_trampoline_template): Remove.
892         (default_trampoline_adjust_address): Remove.
893         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
894         * targhooks.h: Update decls.
895
896 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
897
898         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
899         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
900         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
901
902 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
903
904         PR debug/41295
905         * reload1.c (reload): Reset debug insns with pseudos without
906         equivalences.
907
908 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
909
910         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
911         unconditional true for decimal float modes.
912         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
913         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
914
915 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
916
917         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
918         Enable a new case for __FreeBSD__ >= 7.
919         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
920         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
921         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
922         and USE_LD_AS_NEEDED.
923
924         * doc/install.texi (*-*-freebsd*): Update target information.
925
926 2009-09-22  Richard Guenther  <rguenther@suse.de>
927
928         PR middle-end/41395
929         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
930         arrays really properly.
931
932 2009-09-22  Richard Henderson  <rth@redhat.com>
933
934         PR target/41246
935         * target.h (struct gcc_target): Add asm_out.trampoline_template,
936         calls.static_chain, calls.trampoline_init,
937         calls.trampoline_adjust_address.
938         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
939         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
940         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
941         * builtins.c (expand_builtin_setjmp_receiver): Use
942         targetm.calls.static_chain; only clobber registers.
943         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
944         set up memory attributes properly for the trampoline block.
945         (expand_builtin_adjust_trampoline): Use
946         targetm.calls.trampoline_adjust_address.
947         * calls.c (prepare_call_address): Add fndecl argument.  Use
948         targetm.calls.static_chain.
949         * df-scan.c (df_need_static_chain_reg): Remove.
950         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
951         consolodate static chain handling.
952         * doc/tm.texi: Document new hooks.
953         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
954         (init_emit_regs): Don't initialize them.
955         * expr.h (prepare_call_address): Update decl.
956         * final.c (profile_function): Use targetm.calls.static_chain.
957         * function.c (expand_function_start): Likewise.
958         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
959         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
960         only clobber registers.
961         * targhooks.c (default_static_chain): New.
962         (default_asm_trampoline_template, default_trampoline_init): New.
963         (default_trampoline_adjust_address): New.
964         * targhooks.h: Declare them.
965         * varasm.c (assemble_trampoline_template): Use
966         targetm.asm_out.trampoline_template.  Make the memory block const
967         and set its size.
968
969         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
970         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
971         differences into the TARGET_ABI_OPEN_VMS code block.
972         (TARGET_TRAMPOLINE_INIT): New.
973         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
974         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
975         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
976         (INITIALIZE_TRAMPOLINE): Remove.
977
978         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
979         (TRAMPOLINE_TEMPLATE): Merge with ...
980         (INITIALIZE_TRAMPOLINE): ... this and move ...
981         * config/arc/arc.c (arc_trampoline_init): ... here.
982         (TARGET_TRAMPOLINE_INIT): New.
983
984         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
985         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
986         (arm_asm_trampoline_template): New.
987         (arm_trampoline_init, arm_trampoline_adjust_address): New.
988         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
989         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
990         code to arm_asm_trampoline_template.
991         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
992         arm_trampoline_adjust_address.
993         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
994         adjust for target hook parameters.
995
996         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
997         Remove.
998
999         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
1000         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
1001         (bfin_trampoline_init): Rename from initialize_trampoline;
1002         make static; update for target hook parameters.
1003         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
1004         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
1005         bfin_asm_trampoline_template.
1006         (INITIALIZE_TRAMPOLINE): Remove.
1007
1008         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1009         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
1010         cris_trampoline_init): New.
1011         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
1012         cris_asm_trampoline_template.
1013         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
1014         adjust for target hook parameters.
1015
1016         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
1017
1018         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1019         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
1020         fr30_trampoline_init): New.
1021         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
1022         fr30_asm_trampoline_template.
1023         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
1024         adjust for target hook parameters.
1025
1026         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
1027         (frv_trampoline_init): Rename from frv_initialize_trampoline;
1028         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
1029         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
1030         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
1031
1032         * config/h8300/h8300.c (h8300_trampoline_init): New.
1033         (TARGET_TRAMPOLINE_INIT): New.
1034         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
1035         to h8300_trampoline_init and adjust for hook parameters.
1036
1037         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
1038         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
1039         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
1040         make static; adjust for hook parameters.
1041         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
1042
1043         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1044         (TARGET_TRAMPOLINE_INIT): New.
1045         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
1046         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
1047         iq2000_asm_trampoline_template.
1048         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
1049         (TRAMPOLINE_CODE_SIZE): New.
1050         (TRAMPOLINE_SIZE): Use it.
1051         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
1052
1053         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
1054         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
1055         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
1056         adjust for hook parameters.
1057         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
1058
1059         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
1060         (m32r_trampoline_init): New.
1061         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
1062         m32r_trampoline_init.
1063
1064         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
1065         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
1066         make static; update for hook parameters.
1067         * config/m68hc11/m68hc11-protos.h: Update.
1068         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
1069
1070         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1071         (TARGET_TRAMPOLINE_INIT): New.
1072         (mcore_function_value): Fix typo.
1073         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
1074         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
1075         to mcore_asm_trampoline_template.
1076         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
1077
1078         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
1079         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
1080         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
1081         update for hook parameters.
1082         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
1083
1084         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1085         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
1086         mips_trampoline_init): New.
1087         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
1088         mips_asm_trampoline_template.
1089         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
1090         update for hook parameters.
1091
1092         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1093         (TARGET_TRAMPOLINE_INIT): New.
1094         (mmix_trampoline_size): Remove.
1095         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
1096         make static.  Remove out-of-date tetra vs octa comment.
1097         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
1098         make static; update for hook parameters.
1099         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
1100         (INITIALIZE_TRAMPOLINE): Remove.
1101         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
1102         (TRAMPOLINE_ALIGNMENT): New.
1103         * gcc/config/mmix/mmix-protos.h: Update.
1104
1105         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1106         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
1107         mn10300_trampoline_init): New.
1108         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
1109         mn10300_asm_trampoline_template.
1110         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
1111
1112         * config/moxie/moxie.c (moxie_static_chain,
1113         moxie_asm_trampoline_template, moxie_trampoline_init,
1114         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
1115         TARGET_TRAMPOLINE_INIT): New.
1116         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
1117         moxie_trampoline_init.
1118         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
1119         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
1120
1121         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1122         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
1123         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
1124         pa_trampoline_adjust_address): New.
1125         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
1126         pa_asm_trampoline_template.
1127         (TRAMPOLINE_ALIGNMENT): New.
1128         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
1129         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
1130         adjust for hook parameters.
1131         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
1132
1133         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
1134         (TARGET_TRAMPOLINE_INIT): New.
1135         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
1136         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
1137
1138         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
1139
1140         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
1141         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
1142         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
1143         make static; adjust parameters for the hook.
1144         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
1145
1146         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
1147         s390_trampoline_template; make static.
1148         (s390_trampoline_init): Rename from s390_initialize_trampoline;
1149         make static; adjust for target hook.
1150         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
1151         * config/s390/s390-protos.h: Remove trampoline decls.
1152         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
1153         (TRAMPOLINE_TEMPLATE): Remove.
1154         (TRAMPOLINE_ALIGNMENT): New.
1155
1156         * config/score/score-protos.h (score_initialize_trampoline): Remove.
1157         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1158         (TARGET_TRAMPOLINE_INIT): New.
1159         (score_asm_trampoline_template): New.
1160         (score_trampoline_init): Rename from score_initialize_trampoline;
1161         make static; adjust for hook parameters.
1162         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
1163         score[37]_asm_trampoline_template.
1164         (INITIALIZE_TRAMPOLINE): Remove.
1165         * config/score/score3.c (score3_asm_trampoline_template): New.
1166         (score3_trampoline_init): Rename from score3_initialize_trampoline;
1167         adjust for target hook.
1168         * config/score/score7.c (score7_asm_trampoline_template): New.
1169         (score7_trampoline_init): Rename from score7_initialize_trampoline;
1170         adjust for target hook.
1171         * config/score/score3.h, config/score/score7.h: Update.
1172
1173         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
1174         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
1175         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
1176         (sh_trampoline_init): Rename from sh_initialize_trampoline;
1177         make static; adjust for target hook parameters.
1178         (sh_trampoline_adjust_address): New.
1179         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
1180         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
1181
1182         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
1183         (sparc32_initialize_trampoline): Rename from
1184         sparc_initialize_trampoline; make static; replace tramp parameter
1185         with m_tramp and update memory accesses.
1186         (sparc64_initialize_trampoline): Similarly.
1187         (sparc_trampoline_init): New.
1188         * config/sparc/sparc-protos.h: Remove trampoline decls.
1189         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
1190         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
1191
1192         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
1193         (array_to_constant): Make ARR parameter const.
1194         (spu_trampoline_init): Rename from spu_initialize_trampoline;
1195         make static; update for hook parameters.
1196         * config/spu/spu-protos.h: Update decls.
1197         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
1198
1199         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
1200         from xstormy16_initialize_trampoline; make static; update for
1201         hook parameters.
1202         (TARGET_TRAMPOLINE_INIT): New.
1203         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
1204
1205         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1206         (TARGET_TRAMPOLINE_INIT): New.
1207         (v850_can_eliminate): Make static.
1208         (v850_asm_trampoline_template, v850_trampoline_init): New.
1209         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
1210         v850_asm_trampoline_template.
1211         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
1212         and adjust for target hook parameters.
1213
1214         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1215         (TARGET_TRAMPOLINE_INIT): New.
1216         (vax_asm_trampoline_template, vax_trampoline_init): New.
1217         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
1218         vax_asm_trampoline_template.
1219         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
1220
1221         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1222         (TARGET_TRAMPOLINE_INIT): New.
1223         (xtensa_asm_trampoline_template): Rename from
1224         xtensa_trampoline_template; make static.
1225         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
1226         make static; update for hook parameters.
1227         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
1228         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
1229         (INITIALIZE_TRAMPOLINE): Remove.
1230
1231         * config/i386/i386.c (ix86_function_regparm): Do not issue an
1232         error for nested functions with regparm=3.
1233         (ix86_compute_frame_layout): Adjust frame pointer offset for
1234         ix86_static_chain_on_stack.
1235         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
1236         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
1237         don't reset to UNITS_PER_WORD.
1238         (ix86_emit_leave): Adjust ix86_cfa_state.
1239         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
1240         (ix86_static_chain): New.
1241         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
1242         make static; update for target hook parameters; use ix86_static_chain.
1243         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
1244         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
1245         (INITIALIZE_TRAMPOLINE): Remove.
1246         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
1247         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
1248         to the end.  Add static_chain_on_stack.
1249         (ix86_static_chain_on_stack): New.
1250
1251         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
1252         (m68k_output_mi_thunk): Don't use static_chain_rtx.
1253         (m68k_trampoline_init): New.
1254         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
1255         m68k_trampoline_init and adjust for hook parameters.
1256         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
1257         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
1258
1259 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
1260
1261         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
1262         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
1263
1264         * reload1.c (reload): Call wrap_constant when substituting
1265         reg for equiv inside of DEBUG_INSNs.
1266
1267         PR bootstrap/41405
1268         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
1269         add_call_src_coords_attributes, add_high_low_attributes,
1270         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
1271         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
1272         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
1273         when -gdwarf-2 -gstrict-dwarf.
1274         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
1275         -gdwarf-[23] -gstrict-dwarf.
1276         (address_of_int_loc_descriptor, loc_descriptor,
1277         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
1278         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
1279         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
1280
1281 2009-09-22  Richard Guenther  <rguenther@suse.de>
1282
1283         PR tree-optimization/41428
1284         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
1285         (ccp_finalize): Pass it to substitute_and_fold.
1286
1287 2009-09-22  Richard Guenther  <rguenther@suse.de>
1288
1289         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
1290         (substitute_and_fold): Adjust prototype.
1291         * tree-vrp.c (vrp_evaluate_conditional): Make static.
1292         (simplify_stmt_using_ranges): Likewise.
1293         (fold_predicate_in): Move here from tree-ssa-propagate.c.
1294         (vrp_fold_stmt): New function.
1295         (vrp_finalize): Pass it to substitute_and_fold.
1296         * tree-flow.h (vrp_evaluate_conditional): Remove.
1297         (simplify_stmt_using_ranges): Likewise.
1298         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
1299         * tree-ssa-copy.c (fini_copy_prop): Likewise.
1300         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
1301         member.
1302         (fold_predicate_in): Move to tree-vrp.c.
1303         (substitute_and_fold): Use the callback instead of calling into
1304         tree-vrp.c functions directly.
1305
1306 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
1307
1308         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
1309         comparison warning on rs6000.
1310
1311         PR middle-end/41429
1312         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
1313         GIMPLE_EH_MUST_NOT_THROW cleanup.
1314         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
1315
1316 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
1317
1318         PR middle-end/41260
1319         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
1320         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
1321         LIB_SPEC for darwin10 and later since it always uses the unwinder in
1322         libSystem which is derived from the gcc 4.2.1 unwinder.
1323
1324 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
1325
1326         PR middle-end/41357
1327         * varasm.c (default_encode_section_info): Copy TLS model into
1328         sym_ref flags regardless of backend support for TLS, for all
1329         model types except TLS_MODEL_EMULATED.
1330
1331 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
1332
1333         PR bootstrap/41404
1334         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
1335         we can handle it correctly.
1336
1337 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
1338
1339         * doc/install.texi (os2): Remove section.
1340
1341 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
1342
1343         * doc/standards.texi (Objective-C): Adjust two URLs.
1344
1345 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
1346
1347         * tree-tailcall.c (process_assignment): Don't check if a
1348         multiplication or an addition are already present.
1349         (find_tail_calls): Combine multiple additions and multiplications.
1350         (adjust_accumulator_values): Emit accumulators.
1351
1352 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
1353
1354         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
1355         xmm register restore.
1356
1357 2009-09-21  Jan Hubicka  <jh@suse.cz>
1358
1359         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
1360         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
1361         restore at the end.
1362
1363 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
1364
1365         * stor-layout.c (layout_type): Remove obsolete code.
1366
1367 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
1368
1369         PR middle-end/41395
1370         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
1371
1372 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1373
1374         PR middle-end/30789
1375         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
1376         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
1377         (fold_builtin_2, do_mpc_arg1): Update accordingly.
1378         * fold-const.c (const_binop): Likewise.
1379         * real.h (do_mpc_arg2): Update prototype.
1380
1381 2009-09-20  Jan Hubicka  <jh@suse.cz>
1382
1383         * dwarf2out.c (add_const_value_attribute): Return true if successful.
1384         (add_location_or_const_value_attribute): Rewrite using
1385         loc_list_from_tree.
1386         (tree_add_const_value_attribute): Return true if successful.
1387         (tree_add_const_value_attribute_for_decl): Likewise.
1388
1389         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
1390         (loc_descriptor): ... here;
1391         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
1392         (cst_pool_loc_descr): Break out from ...; do not reffer constant
1393         pool items that was not marked for output.
1394         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
1395         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
1396         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
1397         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
1398         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
1399         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
1400         DW_OP_stack_value to get address of items that are not available
1401         as addresses.
1402         (dw_loc_list): Handle single element lists correctly.
1403
1404 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
1405             Pascal Obry  <obry@adacore.com>
1406
1407         * unwind-dw2-fde.c (classify_object_over_fdes):
1408         Cast the constant 1 to _Unwind_Ptr.
1409         (add_fdes): Likewise.
1410         (linear_search_fdes): Likewise.
1411
1412 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
1413
1414         * stor-layout.c (set_sizetype): Avoid useless type copy.
1415
1416 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
1417
1418         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
1419         feature check.
1420         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
1421         * configure, config.in: Regenerate.
1422         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
1423         DW_EH_PE_absptr.
1424         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
1425         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
1426         for global data if the output could be used in a shared library.
1427         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
1428         to 0 if TARGET_WRITABLE_EH_FRAME.
1429
1430 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
1431
1432         PR rtl-optimization/39886
1433         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
1434         just when insn is equal to BB_END (bb).
1435
1436 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
1437
1438         * config/mips/mips.opt (mrelax-pic-calls): New option.
1439         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
1440         the file.
1441         (mips_unspec_call): Change "unspec_call" expander into this.
1442         (mips_strip_unspec_call): New function.
1443         (mips_got_load): Call mips_unspec_call instead of
1444         gen_unspec_call<mode>.
1445         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
1446         MIPS_CALL.
1447         (mips_cfg_in_reorg): New function.
1448         (mips16_lay_out_constants): Use it to decide whether to call
1449         CFG-aware insn splitting.
1450         (r10k_insert_cache_barriers): Move CFG set-up code from here to
1451         mips_reorg.  Move DF set-up code from here ...
1452         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
1453         from here.
1454         (mips_reorg): Call mips_df_reorg instead of
1455         r10k_insert_cache_barriers.  Move CFG set-up code here from
1456         r10k_insert_cache_barriers.
1457         (mips_call_expr_from_insn): New function.
1458         (mips_pic_call_symbol_from_set): Likewise.
1459         (mips_find_pic_call_symbol): Likewise.
1460         (mips_annotate_pic_call_expr): Likewise.
1461         (mips_get_pic_call_symbol): Likewise.
1462         (mips_annotate_pic_calls): Likewise.
1463         (mips_override_options): Disable -mrelax-pic-calls unless PIC
1464         calls are used.
1465         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
1466         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
1467         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
1468         directive.
1469         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
1470         (unspec_call<mode>): Remove it.
1471         (sibcall_internal, sibcall_value_internal,
1472         sibcall_value_multiple_internal, call_internal, call_split,
1473         call_value_internal, call_value_split,
1474         call_value_multiple_internal, call_value_multiple_split): Pass
1475         SIZE_OPNO to MIPS_CALL.
1476         (call_internal_direct, call_direct_split,
1477         call_value_internal_direct, call_value_direct_split): Pass -1 as
1478         SIZE_OPNO to MIPS_CALL.
1479         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
1480         * configure: Regenerate.
1481         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
1482         and -mno-relax-pic-calls.
1483         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
1484
1485 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1486
1487         PR bootstrap/35619
1488         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
1489         in the directory this rule is called from, rather than the
1490         toplevel 'gcc' directory, to fix in-tree build.
1491
1492 2009-09-19  Chris Demetriou  <cgd@google.com>
1493
1494         PR preprocessor/28435:
1495         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
1496         to cpplib that the preprocessor output is needed.
1497
1498 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
1499
1500         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
1501         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
1502         *return_and_restore_fpregs_<mode>,
1503         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
1504
1505         PR bootstrap/41397
1506         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
1507         instead of assuming it has always a REG inside of it.
1508
1509 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
1510
1511         * config/freebsd.h: Update comment on types.
1512         (WINT_TYPE): Define.
1513
1514 2009-09-18  Jason Merrill  <jason@redhat.com>
1515
1516         * c.opt: Add -fno-deduce-init-list.
1517
1518 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
1519
1520         * value-prof.c (interesting_stringop_to_profile_p): Added output
1521         argument to indicate which parameter is the size parameter.
1522         * value-prof.c (gimple_stringop_fixed_value): Use
1523         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
1524         * value-prof.c (gimple_stringops_transform): Update call sites to
1525         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
1526
1527 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
1528
1529         PR target/38288
1530         From David Binderman <dcb314@hotmail.com>:
1531         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
1532         local variable f.  Remove stale comments.
1533         (ix86_compute_frame_layout): Remove useless local variable total_size.
1534         Remove #if 0'd code.
1535         (legitimate_address_p): Remove useless local variables
1536         reason_rtx and reason.
1537         (ix86_split_copysign_const): Remove useless local variable op1.
1538         (scale_counter): Remove useless local variable piece_size_mask.
1539
1540 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
1541
1542         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
1543         output decl.
1544
1545 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
1546
1547         PR target/40913
1548         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
1549
1550 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
1551
1552         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
1553         TYPE_STUB_DECL.
1554
1555 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
1556
1557         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
1558         DW_OP_implicit_value even without dwarf_version 4.
1559
1560 2009-09-17  Jan Hubicka  <jh@suse.cz>
1561
1562         * dwarf2out.c: Include tree-pass.h and gimple.h.
1563         (loc_list_plus_const): New function.
1564         (loc_descriptor_from_tree_1): Rename to ...
1565         (loc_descriptor_from_tree): ... remove original.
1566         (loc_list_from_tree): New function.
1567         (add_AT_location_description): Accept location list.
1568         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
1569         (concatn_mem_loc_descriptor): Remove.
1570         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
1571         returning NULL.
1572         (secname_for_decl): Move up.
1573         (hidden_reference_p): New function; break out from ...
1574         (loc_by_refernece): ... here; move up.
1575         (dw_loc_list): New function.
1576         (single_element_loc_list): New function.
1577         (single_element_loc_list_p): New function.
1578         (add_loc_descr_to_each): New function.
1579         (add_loc_list): New function.
1580         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
1581         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
1582         add diagnostics why expansion failed.
1583         (add_location_or_const_value_attribute): Support location lists.
1584         (add_bound_info): Likewise.
1585         (descr_info_loc): Update call of loc_descriptor_from_tree.
1586         (gen_variable_die): Work on location lists.
1587         * final.c (pass_final): Add dump file.
1588         * Makefile.in (dwarf2out.o): Add new dependencies.
1589
1590 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
1591
1592         PR c/41049
1593         * real.c decimal_from_integer, decimal_integer_string): New.
1594         (real_from_integer): Use them as special case for decimal float.
1595         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
1596         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
1597         Do not append zero after the decimal point in string to convert.
1598
1599 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
1600
1601         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
1602         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
1603
1604 2009-09-17  Martin Jambor  <mjambor@suse.cz>
1605
1606         * common.opt (fipa-sra): New switch.
1607         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
1608         * timevar.def (TV_IPA_SRA): New timevar.
1609         * params.def (ipa-sra-ptr-growth-factor): New parameter.
1610         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
1611         * tree-sra.c: Include cgraph.c.
1612         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
1613         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
1614         and grp_not_necessarilly_dereferenced.
1615         (func_param_count): New variable.
1616         (encountered_apply_args): New variable.
1617         (bb_dereferences): New variable.
1618         (final_bbs): New variable.
1619         (no_accesses_representant): New variable.
1620         (no_accesses_p): New function.
1621         (dump_access): Dump the new fields.
1622         (sra_initialize): Set encountered_apply_args to false.
1623         (get_ssa_base_param): New function.
1624         (mark_parm_dereference): New function.
1625         (create_access): Caring for INIDRECT_REFs and different handling of
1626         varialble length accesses in early IPA SRA.  Store the stmt - a new
1627         parameter - to the new access.
1628         (build_access_from_expr_1): New parameter stmt, passed to
1629         create_access.  Handle INDIRECT_REFs.
1630         (build_access_from_expr): Pass the current statement to
1631         build_access_from_expr_1.
1632         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
1633         passes.
1634         (build_accesses_from_assign): Pass the current statement to
1635         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
1636         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
1637         final_bbs when necessary.  Check for calls to __builtin_apply_args.
1638         Fixup EH info if anythng was changed.
1639         (is_unused_scalar_param): New function.
1640         (ptr_parm_has_direct_uses): New function.
1641         (find_param_candidates): New function.
1642         (mark_maybe_modified): New function.
1643         (analyze_modified_params): New function.
1644         (propagate_dereference_distances): New function.
1645         (dump_dereferences_table): New function.
1646         (analyze_caller_dereference_legality): New function.
1647         (unmodified_by_ref_scalar_representative): New function.
1648         (splice_param_accesses): New function.
1649         (decide_one_param_reduction): New function.
1650         (enum ipa_splicing_result): New type.
1651         (splice_all_param_accesses): New function.
1652         (get_param_index): New function.
1653         (turn_representatives_into_adjustments): New function.
1654         (analyze_all_param_acesses): New function.
1655         (get_replaced_param_substitute): New function.
1656         (get_adjustment_for_base): New function.
1657         (replace_removed_params_ssa_names): New function.
1658         (sra_ipa_reset_debug_stmts): New function.
1659         (sra_ipa_modify_expr): New function.
1660         (sra_ipa_modify_assign): New function.
1661         (convert_callers): New function.
1662         (modify_function): New function.
1663         (ipa_sra_preliminary_function_checks): New function.
1664         (ipa_early_sra): New function.
1665         (ipa_early_sra_gate): New function.
1666         (pass_early_ipa_sra): New variable.
1667         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
1668
1669 2009-09-17  Michael Matz  <matz@suse.de>
1670
1671         PR middle-end/41347
1672         * tree.c (build_type_attribute_qual_variant): Export.
1673         * tree.h (build_type_attribute_qual_variant): Declare.
1674         * tree-inline.c (remap_type_1): Use it to build variants with
1675         the original qualifiers and attributes.
1676
1677 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1678
1679         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
1680         without a fallthrough edge.
1681
1682 2009-09-16  DJ Delorie  <dj@redhat.com>
1683
1684         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
1685         chip and ignore the "fast_interrupt" attribute if so.
1686
1687 2009-09-16  Richard Henderson  <rth@redhat.com>
1688
1689         PR middle-end/41360
1690         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
1691         barrier fix.
1692
1693 2009-09-16  Richard Henderson  <rth@redhat.com>
1694
1695         PR target/41246
1696         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
1697         is set only if DECL_NO_STATIC_CHAIN is unset.
1698         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
1699         (FOR_EACH_NEST_INFO): New.
1700         (walk_all_functions): Use it.
1701         (finalize_nesting_tree): Likewise.
1702         (unnest_nesting_tree): Likewise.
1703         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
1704         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
1705         (convert_gimple_call): Early out if gimple_call_chain already set.
1706         (convert_all_function_calls): Iterate until no new functions
1707         require a static chain.
1708         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
1709         when building a trampoline.  Use dump_function_to_file instead
1710         of dump_function.
1711         (lower_nested_functions): Open dump_file.  Validate that decls
1712         that have DECL_NO_STATIC_CHAIN from the front end don't have that
1713         bit reset by this pass.
1714
1715 2009-09-16  Michael Matz  <matz@suse.de>
1716
1717         PR fortran/41212
1718         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
1719         shorten decl_common_unused.
1720         (DECL_RESTRICTED_P): New accessor.
1721         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
1722         to disambiguate marked decls and restrict pointers.
1723
1724 2009-09-16  Richard Henderson  <rth@redhat.com>
1725
1726         PR middle-end/41360
1727         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
1728
1729 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
1730
1731         * integrate.c (set_block_abstract_flags): Call
1732         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
1733
1734 2009-09-16  Richard Guenther  <rguenther@suse.de>
1735
1736         PR middle-end/34011
1737         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
1738         as non-aliased.
1739
1740 2009-09-16  DJ Delorie  <dj@redhat.com>
1741             Kaz Kojima  <kkojima@gcc.gnu.org>
1742
1743         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
1744         (sh_expand_prologue): Update calls to output_stack_adjust.
1745         (sh_expand_epilogue): Likewise.
1746
1747 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
1748
1749         PR bootstrap/41349
1750         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
1751         trying to limit the extent of searches in the insn stream.
1752
1753 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
1754             Jakub Jelinek  <jakub@redhat.com>
1755
1756         PR target/41175
1757         PR target/40677
1758         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
1759         problem.
1760         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
1761         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
1762         (rs6000_savres_strategy): Always save FP registers inline if the
1763         target doesn't support hardware double-precision.  Set the above
1764         bits in return value when needed.
1765         (rs6000_savres_routine_sym): Fix computation for cache selector.
1766         Mark the generated symbol as a function.  Rename exitp argument to
1767         lr.  Move code for determining the name of the symbol...
1768         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
1769         getting the names right on AIX and 64-bit Linux.
1770         (savres_routine_name): New variable.
1771         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
1772         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
1773         on what the target routine uses as a base register.  If savep && lr
1774         describe saving of r0 into memory slot.
1775         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
1776         line calls for AIX ABI.
1777         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
1778         determine FP save/restore functions.
1779         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
1780         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
1781         gen_addsi3.
1782         (rs6000_emit_epilogue): Adjust computation of restore_lr.
1783         Duplicate restoration of LR and execute the appropriate one
1784         depending on whether GPRs are being restored inline.  Set r11 from
1785         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
1786         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
1787         Fix out of line calls for AIX ABI.
1788         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
1789         New insn.
1790         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
1791         register 11.
1792         (*restore_gpregs_spe): Likewise.
1793         (*return_and_restore_gpregs_spe): Likewise.
1794         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
1795         Define to empty string unconditionally.
1796         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
1797         Define to empty string unconditionally.
1798         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
1799         !TARGET_64BIT.
1800
1801 2009-09-15  Jan Hubicka  <jh@suse.cz>
1802
1803         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
1804         * params.def (inline-insns-auto): Likewise.
1805
1806 2009-09-15  Martin Jambor  <mjambor@suse.cz>
1807
1808         * ipa-inline.c (estimate_function_body_sizes): Dump info about
1809         individual statements only at TDF_DETAILS dump level.  Format
1810         source for 80 characters per line.
1811
1812 2009-09-15  Christian Bruel  <christian.bruel@st.com>
1813
1814         * regrename.c (do_replace): Update REG_DEAD notes.
1815
1816 2009-09-15  Revital Eres  <eres@il.ibm.com>
1817
1818         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
1819         * targhooks.c (default_builtin_support_vector_misalignment):
1820         New builtin function.
1821         * targhooks.h (default_builtin_support_vector_misalignment):
1822         Declare.
1823         * target.h (builtin_support_vector_misalignment):
1824         New field in struct gcc_target.
1825         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
1826         new builtin function.
1827         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
1828         Define.
1829         * config/rs6000/rs6000.c
1830         (rs6000_builtin_support_vector_misalignment): New function.
1831         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
1832
1833 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
1834
1835         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
1836         instead of INSN_P.
1837         (bfin_optimize_loop): Likewise.
1838         (bfin_gen_bundles): Likewise.
1839         (workaround_speculation): Likewise.
1840         (find_load): Return NULL_RTX for debug_insn.
1841
1842 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
1843
1844         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
1845         (sminsf3): Ditto.
1846
1847 2009-09-14  DJ Delorie  <dj@redhat.com>
1848
1849         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
1850         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
1851         VLIW mode.
1852
1853 2009-09-14  Richard Henderson  <rth@redhat.com>
1854             Jakub Jelinek  <jakub@redhat.com>
1855
1856         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
1857         * cfgbuild.c (make_edges): Handle asm goto.
1858         * cfglayout.c (fixup_reorder_chain): Likewise.
1859         * cfgrtl.c (patch_jump_insn): Likewise.
1860         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
1861         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
1862         (gimple_build_asm_vec): Add and use labels parameter.
1863         (gimple_build_asm): Remove.
1864         (walk_gimple_asm): Walk labels too.
1865         * gimple.def (GIMPLE_ASM): Update docs.
1866         * gimple.h: Update decls.
1867         (struct gimple_statement_asm): Change nc to use unsigned char;
1868         add nl member.
1869         (gimple_asm_nlabels): New.
1870         (gimple_asm_label_op, gimple_asm_set_label_op): New.
1871         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
1872         into gimple_build_asm_vec.
1873         * jump.c (mark_jump_label_asm): New.
1874         (mark_jump_label): Use it.
1875         (redirect_jump_1): Handle asm goto.
1876         (invert_jump_1): Soft fail if X is null.
1877         * recog.c (extract_asm_operands): New.
1878         (asm_noperands): Use it; handle asm labels.
1879         (decode_asm_operands): Use extract_asm_operands.
1880         (asm_operand_ok): Properly handle empty string.
1881         * reg-stack.c (get_asm_operands_in_out): Rename from
1882         get_asm_operand_n_inputs; use extract_asm_operands; return both
1883         inputs and outputs by reference; update all callers.
1884         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
1885         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
1886         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
1887         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
1888         (extract_asm_operands): Declare.
1889         * stmt.c (expand_asm_operands): Add and use labels parameter.
1890         (check_unique_operand_names): Likewise.
1891         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
1892         (expand_asm_stmt): Handle asm labels.
1893         * tree-cfg.c (make_gimple_asm_edges): New.
1894         (make_edges): Use it.
1895         (cleanup_dead_labels): Handle asm labels.
1896         (is_ctrl_altering_stmt): Likewise.
1897         (gimple_redirect_edge_and_branch): Likewise.
1898         * tree.def (ASM_EXPR): Add 5th operand.
1899         * tree.h (ASM_LABELS): New.
1900         (resolve_asm_operand_names): Update decl.
1901
1902         * c-parser.c (c_parser_asm_statement): Parse asm goto.
1903         (c_parser_asm_goto_operands): New.
1904         * c-tree.h (build_asm_expr): Update decl.
1905         * c-typeck.c (build_asm_expr): Add and use labels parameter.
1906         * doc/extend.texi: Document asm goto.
1907
1908 2009-09-14  Richard Henderson  <rth@redhat.com>
1909
1910         * except.h: Update declarations.
1911         (struct pointer_map_t): Forward declare.
1912         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
1913         (struct eh_landing_pad_d, eh_landing_pad): New.
1914         (struct eh_catch_d, eh_catch): New.
1915         (struct eh_region_d): Remove next_region_sharing_label, aka,
1916         label, tree_label, landing_pad, post_landing_pad, resume,
1917         may_contain_throw.  Rename region_number to index.  Remove
1918         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
1919         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
1920         (VEC(eh_landing_pad,gc)): New.
1921         (struct eh_status): Remove last_region_number.  Add lp_array,
1922         throw_stmt_table, ttype_data, ehspec_data.
1923         (ehr_next, FOR_ALL_EH_REGION_AT): New.
1924         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
1925         * except.c (lang_protect_cleanup_actions): Return tree.
1926         (struct ehl_map_entry): Remove.
1927         (init_eh_for_function): Push zero entries for region and lp_array.
1928         (gen_eh_region): Add to region_array immediately.
1929         (gen_eh_region_catch): Operate on eh_catch objects.
1930         (gen_eh_landing_pad): New.
1931         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
1932         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
1933         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
1934         (get_eh_landing_pad_from_number_fn): New.
1935         (get_eh_landing_pad_from_number): New.
1936         (get_eh_region_from_lp_number_fn): New.
1937         (get_eh_region_from_lp_number): New.
1938         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
1939         (get_exception_pointer, get_exception_filter): Remove.
1940         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
1941         (current_function_has_exception_handlers): Simplify.
1942         (bring_to_root, eh_region_replaceable_by_p): Remove.
1943         (replace_region, hash_type_list, hash_eh_region): Remove.
1944         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
1945         (label_to_region_map, num_eh_regions): Remove.
1946         (get_next_region_sharing_label, must_not_throw_labels): Remove.
1947         (find_exception_handler_labels): Remove.
1948         (duplicate_eh_regions_0, find_prev_try): Remove.
1949         (struct duplicate_eh_regions_data): New.
1950         (duplicate_eh_regions_1): Rewrite.
1951         (duplicate_eh_regions): Return a pointer map instead of an
1952         integer offset.
1953         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
1954         (redirect_eh_edge_to_label): Remove.
1955         (eh_region_outermost): Rewrite using eh_region pointers
1956         instead of integers.
1957         (add_ttypes_entry): Update for ttype_data move to eh_status.
1958         (add_ehspec_entry): Rewrite with VEC instead of varray.
1959         (assign_filter_values): Likewise.  Export.
1960         (build_post_landing_pads, connect_post_landing_pads): Remove.
1961         (dw2_build_landing_pads): Rewrite to use lp_array.
1962         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
1963         (sjlj_assign_call_site_values): Rewrite to use lp_array.
1964         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
1965         (sjlj_mark_call_sites): Update for landing pad numbers.
1966         (finish_eh_generation): Rewrite.
1967         (gate_handle_eh): Do nothing for no eh tree.
1968         (pass_rtl_eh): Move up near finish_eh_generation.
1969         (remove_eh_landing_pad): New.
1970         (remove_eh_handler): Export.
1971         (remove_eh_region, remove_eh_handler_and_replace): Remove.
1972         (for_each_eh_label): Rewrite to use lp_array.
1973         (make_reg_eh_region_note): New.
1974         (make_reg_eh_region_note_nothrow_nononlocal): New.
1975         (insn_could_throw_p): New.
1976         (copy_reg_eh_region_note_forward): New.
1977         (copy_reg_eh_region_note_backward): New.
1978         (check_handled, add_reachable_handler): Remove.
1979         (reachable_next_level, foreach_reachable_handler): Remove.
1980         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
1981         (get_eh_region_and_lp_from_rtx): New.
1982         (get_eh_region_from_rtx): New.
1983         (can_throw_internal_1, can_throw_external_1): Remove.
1984         (can_throw_internal): Use get_eh_region_from_rtx.
1985         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
1986         (insn_nothrow_p, can_nonlocal_goto): New.
1987         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
1988         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
1989         (add_action_record): Use VEC not varray.
1990         (collect_one_action_chain): Update for eh_region changes.
1991         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
1992         Use get_eh_region_and_lp_from_rtx.
1993         (gate_convert_to_eh_region_ranges): New.
1994         (pass_convert_to_eh_region_ranges): Use it.
1995         (push_uleb128, push_sleb128): Use VEC not varray.
1996         (output_one_function_exception_table): Likewise.
1997         (dump_eh_tree): Update for eh_region changes.
1998         (verify_eh_tree): Likewise.
1999         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
2000         * tree-eh.c: Include target.h.
2001         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
2002         Don't disallow GIMPLE_RESX; adjust argument check.
2003         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
2004         (record_stmt_eh_region): Update for landing pad numbers;
2005         generate a landing pad if necessary.
2006         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
2007         (remove_stmt_from_eh_lp_fn): Similarly.
2008         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
2009         Update for lp numbers; don't special case missing throw_stmt_table.
2010         (lookup_expr_eh_lp): Similarly.
2011         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
2012         (eh_seq, eh_region_may_contain_throw): New.
2013         (struct leh_state): Add ehp_region.
2014         (struct leh_tf_state): Remove eh_label.
2015         (emit_post_landing_pad): New.
2016         (emit_resx, emit_eh_dispatch): New.
2017         (note_eh_region_may_contain_throw): New.
2018         (frob_into_branch_around): Take eh_region not eh label;
2019         emit eh code into eh_seq.
2020         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
2021         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
2022         lower_eh_must_not_throw.  Emit code to eh_seq.
2023         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
2024         (lower_try_finally_onedest): Likewise.
2025         (lower_try_finally_copy): Likewise.
2026         (lower_try_finally_switch): Likewise.
2027         (lower_try_finally): Initialize ehp_region.
2028         (lower_catch): Update for eh_catch objects.
2029         (lower_eh_filter): Don't handle must_not_throw.
2030         (lower_eh_must_not_throw): New.
2031         (lower_cleanup): Don't set eh_label.
2032         (lower_eh_constructs_2): Resolve eh builtins.
2033         Handle GIMPLE_EH_MUST_NOT_THROW.
2034         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
2035         Add eh_seq to the end of the function body.
2036         (make_eh_dispatch_edges): New.
2037         (make_eh_edge): Remove.
2038         (make_eh_edges): Simplify for landing pads.
2039         (redirect_eh_edge_1): New.
2040         (redirect_eh_edge): Use it.
2041         (redirect_eh_dispatch_edge): New.
2042         (stmt_could_throw_p): Use a switch.  Allow RESX.
2043         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
2044         (stmt_can_throw_internal): Likewise.
2045         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
2046         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
2047         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
2048         (gate_refactor_eh): New.
2049         (pass_refactor_eh): Use it.
2050         (lower_resx, execute_lower_resx, pass_lower_resx): New.
2051         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
2052         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
2053         (remove_unreachable_handlers): Rename from
2054         tree_remove_unreachable_handlers; rewrite for landing pads;
2055         call remove_eh_handler directly.
2056         (remove_unreachable_handlers_no_lp): New.
2057         (unsplit_eh, unsplit_all_eh): New.
2058         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
2059         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
2060         (cleanup_empty_eh_unsplit): New.
2061         (cleanup_empty_eh): Rewrite.
2062         (cleanup_all_empty_eh): New.
2063         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
2064         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
2065         (gate_cleanup_eh): New.
2066         (pass_cleanup_eh): Use it.
2067         (verify_eh_edges): Move later in file.  Expect one EH edge.
2068         (verify_eh_dispatch_edge): New.
2069
2070         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
2071         (gtype-desc.o): Add TARGET_H.
2072         (tree.o): Use EXCEPT_H, not except.h.
2073         (cfgbuild.o): Add EXPR_H.
2074         (GTFILES): Add vecprim.h.
2075         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
2076         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
2077         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
2078         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
2079         * calls.c (emit_call_1): Use make_reg_eh_region_note.
2080         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
2081         calls to can_throw_internal.
2082         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
2083         (make_edges): Don't handle RESX; use can_nonlocal_goto.
2084         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
2085         (expand_gimple_stmt): Use make_reg_eh_region_note.
2086         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
2087         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
2088         or find_exception_handler_labels.
2089         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
2090         there is exacly one EH edge.  Use can_nonlocal_goto and
2091         can_throw_internal.
2092         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
2093         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
2094         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
2095         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
2096         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
2097         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
2098         * dse.c (scan_insn): Use insn_could_throw_p.
2099         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
2100         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
2101         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
2102         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
2103         EXC_PTR_EXPR or FILTER_EXPR.
2104         (tree_expr_nonzero_warnv_p): Likewise.
2105         * function.h: Include vecprim.h, not varray.h
2106         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
2107         move ttype_data and ehspec_data members to struct eh_status; change
2108         action_record_data member to a VEC.
2109         * gcse.c (hash_scan_set): Use can_throw_internal.
2110         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
2111         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
2112         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
2113         (block_may_fallthru): Don't handle RESX_EXPR.
2114         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
2115         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
2116         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
2117         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
2118         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
2119         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
2120         (gimple_size): Likewise.
2121         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
2122         (gimple_build_resx): Use gimple_build_with_ops.
2123         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
2124         (is_gimple_val): Likewise.
2125         (is_gimple_stmt): Remove RESX_EXPR.
2126         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
2127         (GIMPLE_RESX): Reorder with other EH constructs.
2128         * gimple.h (struct gimple_statement_eh_mnt): New.
2129         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
2130         (gimple_eh_filter_must_not_throw): Remove.
2131         (gimple_eh_filter_set_must_not_throw): Remove.
2132         (gimple_eh_must_not_throw_fndecl): New.
2133         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
2134         (is_gimple_resx): New.
2135         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
2136         Don't copy EH_FILTER_MUST_NOT_THROW.
2137         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
2138         * ipa-inline.c (estimate_function_body_sizes): Don't try to
2139         handle must_not_throw_labels specially.
2140         * ipa-pure-const.c (check_call): Update debug statement for LP.
2141         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
2142         * ipa-utils.c (get_base_var): Likewise.
2143         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
2144         * lower-subreg.c (move_eh_region_note): Remove.
2145         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
2146         * omp-low.c (new_omp_context): Update for eh_lp_nr.
2147         (create_task_copyfn): Likewise.
2148         (maybe_catch_exception): Use gimple_build_eh_filter.
2149         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
2150         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
2151         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
2152         and pass_lower_resx.
2153         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
2154         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
2155         can_throw_internal, can_nonlocal_goto.
2156         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
2157         copy_reg_eh_region_note_forward.
2158         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
2159         (emit_output_reload_insns): Likewise.
2160         (copy_eh_notes): Remove.
2161         * rtl.def (RESX): Remove.
2162         * rtl.h: Update declarations.
2163         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
2164         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
2165         (update_eh_label): Remove.
2166         (cleanup_dead_labels_eh): New.
2167         (cleanup_deal_labels): Use it instead of update_eh_label.
2168         (gimple_merge_blocks): Update landing pad data structure when
2169         removing a landing pad label.
2170         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
2171         test; handle GIMPLE_EH_MUST_NOT_THROW.
2172         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
2173         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
2174         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
2175         (verify_stmt): Likewise.  Verify landing pads.
2176         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
2177         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
2178         (struct move_stmt_d): Add eh_map.
2179         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
2180         (move_stmt_r): Remap eh region numbers in builtin calls,
2181         resx and eh_dispatch.
2182         (move_block_to_fn): Remove eh_offset parameter.  Use
2183         maybe_duplicate_eh_stmt_fn.
2184         (find_outermost_region_in_block): Operate on eh_region pointers
2185         instead of region numbers.
2186         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
2187         duplicate_eh_regions.
2188         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
2189         test earlier.  Disallow EH landing pads.
2190         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
2191         * tree-flow.h: Update declarations.
2192         (struct tree_ann_common_d): Replace rn with lp_nr.
2193         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
2194         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
2195         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
2196         resx and eh_dispatch.
2197         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
2198         (copy_edges_for_bb): Use make_eh_dispatch_edges.
2199         (copy_cfg_body): Expect eh_map instead of eh_region_offset
2200         from duplicate_eh_regions.
2201         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
2202         update RESX; handle EH_DISPATCH.
2203         (expand_call_inline): Set eh_lp_nr, not eh_region.
2204         (maybe_inline_call_in_expr): Likewise.
2205         * tree-inline.h (struct copy_body_data): Replace eh_region with
2206         eh_lp_nr, eh_region_offset with eh_map.
2207         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
2208         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
2209         * tree-pretty-print.c (dump_generic_node): Don't handle
2210         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
2211         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
2212         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
2213         EXC_PTR_EXPR, FILTER_EXPR.
2214         * tree-ssa-operands.c (get_expr_operands): Likewise.
2215         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
2216         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2217         (ao_ref_init_from_vn_reference): Likewise.
2218         * tree-ssa-sink.c (statement_sink_location): Likewise.
2219         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
2220         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
2221         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
2222         EXC_PTR_EXPR, FILTER_EXPR.
2223         (is_exception_related): Remove.
2224         (compute_avail): Don't call it.
2225         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
2226         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
2227         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
2228         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
2229         Build EH builtins.
2230         (build_resx): Remove.
2231         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
2232         * tree.h: Update declarations.
2233         (EH_FILTER_MUST_NOT_THROW): Remove.
2234         (struct tree_label_decl): Add eh_landing_pad_nr.
2235         (EH_LANDING_PAD_NR): New.
2236         * value-prof.c (gimple_ic): Tidy variable names.  Update for
2237         landing pad numbers.
2238         (gimple_stringop_fixed_value): Tidy variable names.  Assert
2239         that neither call stmt can throw.
2240         * vecprim.h (uchar): New.
2241         (VEC(uchar,heap), VEC(uchar,gc)): New.
2242
2243         * c-common.c (c_define_builtins): Update call to
2244         build_common_builtin_nodes.
2245         * c-parser.c (c_parse_file): Don't call
2246         default_init_unwind_resume_libfunc.
2247
2248 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2249
2250         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
2251         (mips_cprestore_address_p): Likewise.
2252         (mips_save_gp_to_cprestore_slot): Likewise.
2253         (mips_restore_gp): Rename to...
2254         (mips_restore_gp_from_cprestore_slot): ...this.
2255         (mips_must_initialize_gp_p): Declare.
2256         (mips_emit_save_slot_move): Likewise.
2257         (mips_output_load_label): Return nothing.
2258         (mips_eh_uses): Declare.
2259         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
2260         (TARGET_CPRESTORE_DIRECTIVE): New macro.
2261         (TARGET_ABSOLUTE_JUMPS): Likewise.
2262         (EH_USES): Likewise.
2263         (FIRST_PSEUDO_REGISTER): Update comment.
2264         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
2265         (MIPS_CALL): ...here.
2266         (REGISTER_NAMES): Add $cprestore.
2267         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
2268         Add load_label_length, has_inflexible_gp_insn_p,
2269         has_flexible_gp_insn_p, must_initialize_gp_p and
2270         must_restore_gp_when_clobbered_p.
2271         (mips_expand_call): Don't generate split instructions here.
2272         (mips_split_call): Update the call to mips_restore_gp after
2273         the above name change.
2274         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
2275         (mips_find_gp_ref): New function.
2276         (mips_insn_has_inflexible_gp_ref_p): Likewise.
2277         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
2278         (mips_insn_has_flexible_gp_ref_p): Likewise.
2279         (mips_cfun_has_flexible_gp_ref_p): Likewise.
2280         (mips_function_has_gp_insn): Delete.
2281         (mips_global_pointer): Drop the df_regs_ever_live_p check.
2282         Use the new functions above.  Only return INVALID_REGNUM
2283         for TARGET_ABSOLUTE_JUMPS.
2284         (mips_must_initialize_gp_p): New function.
2285         (mips_get_cprestore_base_and_offset): New function, extracted from...
2286         (mips_cprestore_slot): ...here.  Take a bool parameter.
2287         (mips_cfun_has_cprestore_slot_p): New function.
2288         (mips_cprestore_address_p): Likewise.
2289         (mips_save_gp_to_cprestore_slot): Likewise.
2290         (mips_restore_gp): Rename to...
2291         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
2292         epilogue_completed.  Update the call to mips_cprestore_slot.
2293         Test cfun->machine->must_restore_gp_when_clobbered_p.
2294         (mips_direct_save_slot_move_p): New function.
2295         (mips_emit_save_slot_move): Likewise.
2296         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
2297         of cfun->machine->global_pointer.
2298         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
2299         (mips_save_reg): Use mips_emit_save_slot_move.
2300         (mips_expand_prologue): Set must_initialize_gp_p.
2301         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
2302         for all cprestore saves.  Emit a use_cprestore instruction after
2303         setting up the cprestore slot.
2304         (mips_restore_reg): Use mips_emit_save_slot_move.
2305         (mips_process_load_label): New function.
2306         (mips_load_label_length): Likewise.
2307         (mips_output_load_label): Don't return asm: output it here instead.
2308         Use mips_process_load_label.
2309         (mips_adjust_insn_length): Adjust the length of branch instructions
2310         that have length MAX_PIC_BRANCH_LENGTH.
2311         (mips_output_conditional_branch): Update the call to
2312         mips_output_load_label.  Assume the branch target is OPERANDS[0]
2313         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
2314         (mips_output_order_conditional_branch): Swap the meaning of
2315         OPERANDS[0] and OPERANDS[1].
2316         (mips_variable_issue): Don't count ghost instructions.
2317         (mips_expand_ghost_gp_insns): New function.
2318         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
2319         (mips_output_mi_thunk): Set must_initialize_gp_p.
2320         (mips_eh_uses): New function.
2321         * config/mips/predicates.md (cprestore_save_slot_operand)
2322         (cprestore_load_slot_operand): New predicates.
2323         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
2324         (UNSPEC_MOVE_GP): Likewise.
2325         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
2326         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
2327         (CPRESTORE_SLOT_REGNUM): New register.
2328         (MAX_PIC_BRANCH_LENGTH): New constant.
2329         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
2330         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
2331         branches.  Fix commentary.
2332         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
2333         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
2334         Change type to "ghost".
2335         (loadgp_absolute_<mode>): Likewise.
2336         (loadgp_rtp_<mode>): Likewise.
2337         (copygp_mips16): Likewise.
2338         (loadgp_blockage): Remove redundant mode attribute.
2339         (potential_cprestore): New instruction.
2340         (cprestore): Turn into an unspec set.
2341         (use_cprestore): New instruction.
2342         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
2343         (*branch_fp_inverted): Likewise.
2344         (*branch_order<mode>): Likewise.
2345         (*branch_order<mode>_inverted): Likewise.
2346         (*branch_equality<mode>): Likewise.
2347         (*branch_equality<mode>_inverted): Likewise.
2348         (*branch_bit<bbv><mode>): Likewise.
2349         (*branch_bit<bbv><mode>_inverted): Likewise.
2350         (*branch_equality<mode>_mips16): Remove redundant mode.
2351         (jump): Turn into a define_expand.
2352         (*jump_absolute): New instruction.
2353         (*jump_pic): Likewise.
2354         (*jump_mips16): Rename previously-unnamed pattern.  Remove
2355         redundant mode attribute.
2356         (restore_gp): Split on epilogue_completed rather than
2357         reload_completed.  Change type to "ghost".
2358         (move_gp<mode>): New instruction.
2359         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
2360         Remove redundant mode attribute.
2361         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
2362         (bc1any4f, bc1any2t, bc1any2f): Likewise.
2363         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
2364
2365 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
2366
2367         PR target/41210
2368         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
2369         are returned in the same register (vs34 or v2) that Altivec vector
2370         types are returned in.
2371         (rs6000_libcall_value): Ditto.
2372
2373         PR target/41331
2374         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
2375         instead of explicit addsi3/adddi3 calls.
2376         (rs6000_split_multireg_move): Ditto.
2377         (rs6000_emit_allocate_stack): Ditto.
2378         (rs6000_emit_prologue): Ditto.
2379         (rs6000_output_mi_thunk): Ditto.
2380
2381         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
2382         size is 64 bits if we can use 64-bit registers.
2383
2384 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
2385
2386         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
2387         symbols.
2388
2389         From Jie Zhang <jie.zhang@analog.com>:
2390         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
2391         save FP and RETS with saveall attribute.
2392         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
2393         with saveall attribute.
2394
2395         * config/bfin/bfin.c (bfin_expand_builtin,
2396         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
2397         operands.
2398
2399         From Jie Zhang <jie.zhang@analog.com>:
2400         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
2401         before use in two places.
2402         * config/bfin/bfin.md (AREG): Define mode iterator.
2403         (reload_in, reload_out): Use mode iterator AREG.
2404
2405 2009-09-14  Richard Guenther  <rguenther@suse.de>
2406
2407         PR middle-end/41350
2408         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
2409         EH personality path.
2410
2411 2009-09-13  Richard Guenther  <rguenther@suse.de>
2412             Rafael Avila de Espindola  <espindola@google.com>
2413
2414         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
2415         (LANG_HOOKS_EH_PERSONALITY): Likewise.
2416         (LANG_HOOKS_INITIALIZER): Adjust.
2417         (lhd_pass_through_t): Declare.
2418         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
2419         eh_personality.
2420         * langhooks.c (lhd_pass_through_t): New function.
2421         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
2422         dwarf2out_begin_prologue): Use personality from current_function_decl.
2423         * expr.h (get_personality_function): Declare.
2424         * expr.c (get_personality_function): New function.
2425         (build_personality_function): Likewise.
2426         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
2427         (eh_personality_libfunc): Remove.
2428         * optabs.c (build_libfunc_function): New function split out from ...
2429         (init_one_libfunc): ... here.
2430         * tree.h (DECL_FUNCTION_PERSONALITY): New.
2431         (tree_function_decl): Add personality.
2432         (lhd_gcc_personality): Declare.
2433         (build_personality_function): Likewise.
2434         * tree.c (gcc_eh_personality_decl): New.
2435         (lhd_gcc_personality): New function.
2436         * except.h (lang_eh_runtime_type): Remove.
2437         (enum eh_personality_kind): New.
2438         (build_personality_function): Declare.
2439         (function_needs_eh_personality): Declare.
2440         * except.c (lang_eh_runtime_type): Remove.
2441         (function_needs_eh_personality): New function.
2442         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
2443         (sjlj_emit_function_enter, output_function_exception_table):
2444         Use personality from current_function_decl.
2445         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
2446         * tree-inline.c (tree_can_inline_p): Do not inline across different
2447         EH personalities.
2448         (expand_call_inline): Likewise.  Adjust the callers EH personality.
2449         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
2450         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
2451         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
2452         (c-parser.o): Likewise
2453         * c-tree.h (c_eh_initialized_p): Remove.
2454         (c_maybe_initialize_eh): Likewise.
2455         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
2456         (finish_decl): Don't call c_maybe_initialize_eh.
2457         (c_eh_initialized_p): Remove.
2458         (c_maybe_initialize_eh): Likewise.
2459         * c-parser.c (c_parser_omp_construct): Likewise.
2460         (c_parse_file): Initialize exception handling.
2461
2462 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
2463
2464         * config.gcc (tm_file): Remove i386/biarch32.h
2465         for i?86-w64-mingw* case.
2466         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
2467         support.
2468         * config.host: Set for x64 mingw the option
2469         use_long_long_for_widest_fast_int to yes.
2470
2471 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
2472
2473         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
2474         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
2475         (dbxout_begin_function): Likewise.
2476         * final.c (dwarf2_debug_info_emitted_p): New predicate.
2477         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
2478         set on the function.
2479         (final_end_function): Likewise.
2480         (final_scan_insn): Likewise.
2481         (rest_of_handle_final): Likewise.
2482         * varasm.c (assemble_start_function): Likewise.
2483         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2484
2485 2009-09-12  Jason Merrill  <jason@redhat.com>
2486
2487         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
2488         * opts.c (common_handle_option): constify.
2489
2490 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
2491
2492         * doc/install.texi (avr): Remove obsolete reference site.
2493
2494 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
2495
2496         * doc/install.texi (Binaries): Adjust AIX link.
2497
2498 2009-09-12  Akim Demaille  <demaille@gostai.com>
2499
2500         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
2501         Use an imperative sentence.
2502
2503 2009-09-11  Richard Henderson  <rth@redhat.com>
2504
2505         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
2506         structure-name and has-tree-operands arguments; update all entries.
2507         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
2508         update all entries.
2509         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
2510         (gsstruct_code_size): New.
2511         (gss_for_code_): New.
2512         (gss_for_code): Remove.
2513         (gimple_size): Rewrite using gsstruct_code_size.
2514         (gimple_statement_structure): Move to gimple.h.
2515         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
2516         (gss_for_code, gimple_statement_structure): New.
2517         (gimple_ops): Use new arrays; tidy.
2518
2519 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2520
2521         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
2522         operand to be a PLUS expression.
2523         * config/pa/pa.c (pa_secondary_reload): Likewise.
2524
2525 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
2526
2527         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
2528
2529         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
2530         XEXP (in_rtx, 8).
2531
2532 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
2533
2534         From Jie Zhang <jie.zhang@analog.com>:
2535         * doc/extend.texi (node Function Attributes): Document l2
2536         function attribute.
2537         (node Blackfin Variable Attributes): Document l2 variable attributes.
2538
2539 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
2540
2541         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
2542         to match the system compiler's configuration at inflection point.
2543         Add comment to remark a remaining difference with system compiler.
2544
2545         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
2546         * configure: Regenerate.
2547
2548 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
2549
2550         From Jie Zhang <jie.zhang@analog.com>:
2551         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
2552         (bfin_handle_l2_attribute): New.
2553         (bfin_attribute_table): Add l2 attribute.
2554
2555 2009-09-11  Michael Matz  <matz@suse.de>
2556
2557         PR middle-end/41275
2558         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
2559         on the local_decls list.
2560
2561 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
2562
2563         PR debug/41276
2564         PR debug/41307
2565         * cselib.c (cselib_expand_value_rtx_cb): Document callback
2566         interface.
2567         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
2568         for VALUEs, to implement the documented interface.
2569         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
2570         Adjust for VALUEs and anything else, to implement the
2571         documented interface.
2572
2573 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
2574
2575         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
2576         with actual SPE/paired vector modes before using 64-bit alignment.
2577         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
2578
2579 2009-09-10  DJ Delorie  <dj@redhat.com>
2580
2581         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
2582         emitted.
2583
2584         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
2585         * config/mep/mep.c (mep_legitimate_constant_p): New.
2586         * config/mep/mep-protos.h: Prototype it.
2587
2588 2009-09-10  Richard Henderson  <rth@redhat.com>
2589
2590         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
2591
2592 2009-09-10  Jason Merrill  <jason@redhat.com>
2593
2594         * tree.c (chain_index): New fn.
2595         * tree.h: Declare it.
2596
2597 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2598
2599         * config/sol2-c.c (cmn_err_length_specs): Initialize
2600         scalar_identity_flag.
2601
2602 2009-09-10  Richard Henderson  <rth@redhat.com>
2603
2604         * tree.h (struct tree_decl_common): Move align member earlier;
2605         move label_decl_uid member ...
2606         (struct tree_label_decl): ... here.
2607         (LABEL_DECL_UID): Update to match.
2608
2609         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
2610         not TDF_DETAILS.
2611
2612         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
2613         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
2614
2615         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
2616         dest_prev if the edge is complex.
2617
2618         * tree-cfg.c (is_ctrl_stmt): Use a switch.
2619
2620         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
2621         loop latch tests earlier.
2622
2623         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
2624         before GIMPLE_RETURN, not after its predecessor; insert
2625         before GIMPLE_RESX.
2626
2627         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
2628         gimple_seq_empty_p to test for no PHI nodes.
2629         * tree-cfg.c (split_critical_edges): Likewise.
2630
2631         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
2632
2633 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
2634
2635         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
2636         introduced by the VTA branch merge.
2637
2638 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
2639
2640         * ira-conflicts.c: Use fputs or putc instead of fprintf
2641         where appropriate.
2642         * cfg.c: Ditto.
2643         * toplev.c: Ditto.
2644         * tree-switch-conversion.c: Ditto.
2645
2646 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
2647
2648         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
2649         introduced by the VTA branch merge.
2650
2651 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
2652
2653         Revert:
2654         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
2655
2656         PR rtl-optimization/39779
2657         * expr.c (convert_modes): Return when mode == oldmode after
2658         CONST_INTs are processed.
2659
2660 2009-09-10  Nick Clifton  <nickc@redhat.com>
2661
2662         * config/mep/mep.c (mep_encode_section_info): Copy weakness
2663         attribute and referring decl when creating renamed symbol.
2664
2665 2009-09-10  Richard Guenther  <rguenther@suse.de>
2666
2667         PR middle-end/41257
2668         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
2669         reachable nodes.
2670         (cgraph_finalize_compilation_unit): Compute reachability
2671         before emitting thunks.  Properly process aliases before
2672         possibly removing unreachable nodes.
2673
2674 2009-09-10  Richard Guenther  <rguenther@suse.de>
2675
2676         PR middle-end/41254
2677         * tree.c (struct free_lang_data_d): Add worklist member.
2678         (find_decls_types_r): Push onto the worklist instead of recursing.
2679         Handle TREE_BINFOs properly.
2680         (find_decls_types): New function wrapped around find_decls_types_r
2681         to process the worklist.
2682         (find_decls_types_in_eh_region): Use it.
2683         (find_decls_types_in_node): Likewise.
2684         (find_decls_types_in_var): Likewise.
2685         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
2686         * tree.h (RECORD_OR_UNION_TYPE_P): New.
2687         (AGGREGATE_TYPE_P): Adjust.
2688
2689 2009-09-09  Jason Merrill  <jason@redhat.com>
2690
2691         * configure.ac: Check glibc version even if we have an in-tree
2692         assembler.
2693
2694 2009-09-09  Anthony Green  <green@moxielogic.com>
2695
2696         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
2697         the constant 0 when appropriate.
2698         * config/moxie/constraints.md: Add constraint O.
2699
2700         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
2701         to pass up to 6 32-bit argument values in registers.
2702         (moxie_function_arg): Ditto.
2703         (moxie_arg_partial_bytes): Ditto.
2704         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
2705         (REG_PARM_STACK_SPACE): Ditto.
2706         (FUNCTION_ARG_REGNO_P): Ditto.
2707
2708         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
2709         instruction to allocate stack space.
2710
2711 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
2712
2713         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
2714         unnecessarily stringent constraints.  Fix address
2715         calculation in the splitters.
2716
2717 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
2718
2719         PR rtl-optimization/39779
2720         * expr.c (convert_modes): Return when mode == oldmode after
2721         CONST_INTs are processed.
2722
2723 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
2724
2725         PR/41315
2726         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
2727         (ix86_expand_prologue): Take frame.padding0 into logic of
2728         to_allocate checks.
2729         (ix86_expand_epilogue): Likewise.
2730
2731 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
2732
2733         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
2734         New variables.
2735         (SHLIB_LINK, SHLIB_INSTALL): Use them.
2736         * config/t-slibgcc-libgcc: New file.
2737         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
2738
2739 2009-09-09  Martin Jambor  <mjambor@suse.cz>
2740
2741         PR tree-optimization/41089
2742         * tree-sra.c (find_var_candidates): Do not consider va_lists in
2743         early SRA.
2744
2745 2009-09-09  Richard Henderson  <rth@redhat.com>
2746
2747         * gimple.h (CASE_GIMPLE_OMP): New.
2748         (is_gimple_omp): Use it.
2749         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
2750         (verify_gimple_debug): Likewise.
2751
2752 2009-09-09  Richard Guenther  <rguenther@suse.de>
2753
2754         PR tree-optimization/41101
2755         * tree-ssa-pre.c (maximal_set): Remove.
2756         (compute_antic_aux): Treat the maximal set as implicitly all ones.
2757         Defer all blocks we didn't visit at least one successor.
2758         (add_to_exp_gen): Do not add to the maximal set.
2759         (make_values_for_phi): Likewise.
2760         (compute_avail): Likewise.
2761         (init_pre): Do not allocate the maximal set.
2762         (execute_pre): Do not dump it.
2763
2764 2009-09-09  Martin Jambor  <mjambor@suse.cz>
2765
2766         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
2767         an SSA_NAME rather than a is_gimple_variable.
2768
2769 2009-09-09  Richard Guenther  <rguenther@suse.de>
2770
2771         PR middle-end/41317
2772         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
2773         code dealing with plain pointer bases.
2774         (maybe_fold_offset_to_reference): Likewise.
2775         (maybe_fold_stmt_addition): Adjust.
2776
2777 2009-09-09  Richard Guenther  <rguenther@suse.de>
2778
2779         * tree.c (free_lang_data_in_type): Do not free the type variant
2780         chains.
2781         (free_lang_data): Merge char_type_node with its properly signed
2782         variant.
2783         (pass_ipa_free): Collect after freeing language specific data.
2784
2785 2009-09-09  Michael Matz  <matz@suse.de>
2786
2787         PR middle-end/41268
2788         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
2789         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
2790         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
2791         to reflect reality.
2792
2793 2009-09-08  DJ Delorie  <dj@redhat.com>
2794
2795         * config/mep/mep.c (conversions[]): Add "ml" pattern.
2796
2797 2009-09-04  Jason Merrill  <jason@redhat.com>
2798
2799         * tree.c (tree_find_value): Remove.
2800         * tree.h: Remove prototype.
2801         * varasm.c (assemble_external): Use value_member instead.
2802
2803 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
2804
2805         * toplev.c (process_options): Choose default debugging type when
2806         gtoggle enables debug info and type is unset.
2807
2808 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
2809
2810         PR debug/41276
2811         PR debug/41307
2812         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
2813         invalid subreg.
2814
2815 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
2816
2817         * configure: Rebuilt with modified libtool.m4.
2818
2819 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
2820
2821         PR debug/41229
2822         PR debug/41291
2823         PR debug/41300
2824         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
2825
2826 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
2827
2828         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
2829         (remove_statement): Likewise.
2830         (rewrite_use_nonlinear_expr): Adjust.
2831         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
2832         * tree-ssa.c (release_defs_bitset): ... this.  New.
2833         * tree-flow.h (release_defs_bitset): Declare.
2834
2835 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
2836
2837         PR debug/41232
2838         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
2839         in the middle block.
2840
2841 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
2842
2843         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
2844         via intptr_t to long type.
2845         (insert_operand_rank): Cast long type via intptr_t to
2846         pointer type.
2847         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
2848         pointer to scalar.
2849         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
2850         from pointer to unsigned via uintptr_t.
2851
2852         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
2853         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
2854         and HAVE_INTPTR_T.
2855         * configure: Regenerated.
2856         * config.in: Regenerated
2857         * system.h (stdint.h): Add include.
2858         (inttypes.h): Likewise.
2859         * Makefile.in (aclocal): Add config/stdint.m4.
2860         * aclocal.m4: Regenerated.
2861
2862 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
2863
2864         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
2865         variables.
2866         (note_np_check_stores): New function.
2867         (harmless_null_pointer_p): New function.
2868         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
2869         changed.  Take into account whether we're in the shadow of a condjump
2870         that tested NP_REG for NULL.
2871         Lose all code that tested for SEQUENCEs.
2872         (workaround_speculation): Avoid inserting NOPs for loads that are
2873         either always executed or a NULL pointer.
2874
2875 2009-09-08  Jan Hubicka  <jh@suse.cz>
2876
2877         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
2878         * params.def (early-inlining-insns): Likewise.
2879
2880 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
2881
2882         PR rtl-optimization/41239
2883         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
2884         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
2885         lists.
2886         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
2887         across calls, as the calls might not always return normally.
2888         (call_may_noreturn_p): New function.
2889         (deps_analyze_insn): Update last_function_call_may_noreturn list.
2890         (init_deps): Initialize it.
2891         (remove_from_deps): Also remove calls from
2892         last_function_call_may_noreturn list.
2893
2894 2009-09-07  Richard Henderson  <rth@redhat.com>
2895
2896         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
2897         more VR->OPERANDS than LHS operands.  Free LHS before returning.
2898
2899 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
2900
2901         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
2902         (attr "addrtype"): New member "spreg".
2903         Use it if mem_spfp_address_operand is true for the address.
2904         (attr "type"): New entry "stall".
2905         (cpu_unit "load"): New.
2906         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
2907         "load".
2908         (insn_reservation "loadsp"): New.
2909         (insn_reservation "load_stall1"): New.
2910         (insn_reservation "load_stall3"): New.
2911         (stall): New insn.
2912         * config/bfin/predicates.md (const1_operand, const3_operand): New.
2913         (mem_p_address_operand): Exclude stack and frame pointer based
2914         addresses.
2915         (mem_spfp_address_operand): New; match them here.
2916         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
2917         (bfin_reorg): Call it if scheduling insns.
2918         (bfin_gen_bundles): Remove dummy insns created by
2919         add_sched_insns_for_speculation.
2920
2921         From Jie Zhang <jie.zhang@analog.com>:
2922         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
2923         bfin_si_revision, bfin_workarounds): Move these ...
2924         * config/bfin/bfin.h: ... here.
2925
2926         From Mike Frysinger  <michael.frysinger@analog.com>
2927         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
2928         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
2929         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
2930         bf547m, bf548m, and bf549m.
2931         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
2932         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
2933         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
2934         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
2935         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2936         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
2937         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2938         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2939         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
2940         bf542m, bf544m, bf547m, bf548m, and bf549m.
2941
2942         From Jie Zhang <jie.zhang@analog.com>:
2943         * config/bfin/predicates.md (p_register_operand): New predicate.
2944         (dp_register_operand): New predicate.
2945         * config/bfin/bfin-protos.h (WA_05000074): Define.
2946         (ENABLE_WA_05000074): Define.
2947         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
2948         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
2949         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
2950         (define_attr addrtype): Allow load/store register to be P register.
2951         (define_attr storereg): New.
2952         (define_cpu_unit anomaly_05000074): New.
2953         (define_insn_reservation dsp32shiftimm): New.
2954         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
2955         (define_insn_reservation loadp): Cannot use slot2.
2956         (define_insn_reservation loadsp): Cannot use slot2.
2957         (define_insn_reservation storep): Cannot use slot2. Does not
2958         apply when working around 05000074.
2959         (define_insn_reservation storep_anomaly_05000074): New.
2960         (define_insn_reservation storei): Does not apply when working
2961         around 05000074.
2962         (define_insn_reservation storei_anomaly_05000074): New.
2963         (define_attr length): Add dsp32shiftimm case.
2964         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
2965         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
2966         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
2967         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
2968         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
2969
2970 2009-09-07  Martin Jambor  <mjambor@suse.cz>
2971
2972         PR middle-end/41282
2973         * tree-sra.c (create_artificial_child_access): Return NULL if
2974         build_ref_for_offset fails.
2975         (propagate_subacesses_accross_link): Allow build_ref_for_offset
2976         and create_artificial_child_access to fail.
2977
2978 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
2979
2980         PR c++/41214
2981         * unwind-dw2.c (uw_init_context_1): Mark noinline.
2982         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
2983         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
2984
2985 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
2986
2987         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
2988         block, ensure it has an exit edge.  Emit a barrier after a jump.
2989
2990 2009-09-07  Nick Clifton  <nickc@redhat.com>
2991
2992         * gcc.c (this_is_linker_script): New variable.  Like
2993         this_is_library_file but for the %T constructor.
2994         (end_going_arg): If this_is_linker_script is set then locate the
2995         script and insert a --script switch before it
2996         (do_spec_2): Initialise this_is_linker_script.
2997         (do_spec_1): Likewise.  Handle %T construct.
2998         (eval_spec_function): Preserve this_is_linker_script.
2999         * doc/invoke.texi: Document %T construct in spec files.
3000         * config/m32c/m32c.h (LIB_SPEC): Use it.
3001
3002 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3003
3004         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
3005         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
3006         when volatile flag is set.
3007         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
3008
3009 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
3010
3011         PR bootstrap/41241
3012         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
3013         (combine_stack_adjustments_for_block): Allow insns between stack
3014         adjustments and stores with corresponding pre-(dec|inc)rement or
3015         pre-modify operation.
3016
3017 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
3018
3019         PR bootstrap/41241
3020         * combine-stack-adj.c (struct csa_memlist): Rename to...
3021         (struct csa_reflist): ... this.  Rename mem field to ref.
3022         (free_csa_memlist): Rename to...
3023         (free_csa_reflist): ... this.
3024         (record_one_stack_memref): Rename to...
3025         (record_one_stack_ref): ... this.  Handle also REG_P.
3026         (try_apply_stack_adjustment): Handle also REG_P.
3027         (struct record_stack_memrefs_data): Rename to...
3028         (struct record_stack_refs_data): ... this.  Rename memlist field to
3029         reflist.
3030         (record_stack_memrefs): Rename to...
3031         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
3032         subexpressions instead of failing when a MEM contains SP references.
3033         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
3034         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
3035
3036 2009-09-06  Richard Guenther  <rguenther@suse.de>
3037
3038         PR middle-end/41144
3039         * tree.c (build_array_type): Do not record types marked
3040         with structural equality in the canonical type hashtable.
3041
3042 2009-09-06  Richard Guenther  <rguenther@suse.de>
3043
3044         PR middle-end/41261
3045         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
3046
3047 2009-09-05  Richard Guenther  <rguenther@suse.de>
3048
3049         PR middle-end/41181
3050         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
3051
3052 2009-09-05  Richard Guenther  <rguenther@suse.de>
3053
3054         PR debug/41273
3055         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
3056
3057 2009-09-05  Richard Guenther  <rguenther@suse.de>
3058
3059         PR middle-end/41271
3060         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
3061         before comparing function argument types.
3062
3063 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3064
3065         PR target/41024
3066         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
3067         the assembler.
3068
3069 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
3070
3071         Revert:
3072         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
3073
3074         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
3075         locators before emit_insn is called.
3076
3077 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
3078
3079         PR bootstrap/41241
3080         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
3081         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
3082         (reginfo_init): Don't call allocate_reg_info.
3083
3084 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
3085
3086         PR target/41262
3087         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
3088         NONDEBUG_INSN_P instead of INSN_P.
3089
3090 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
3091
3092         PR debug/41225
3093         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
3094
3095 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
3096
3097         PR target/41252
3098         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
3099         pattern of the split.
3100
3101 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
3102
3103         * toplev.c (process_options): Move setter of flag_var_tracking
3104         before other tests that depend on it.  Move down setter of
3105         flag_rename_registers.  Don't enable var-tracking-assignments
3106         by default if selective scheduling is enabled.  Warn if both
3107         are enabled.
3108
3109 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
3110
3111         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
3112         comment.  Use switch statement to catch overlaps between rtx
3113         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
3114         (IS_DECL_CODE): ... here. Remove.
3115         (check_value_is_not_decl): Remove.
3116         (dv_from_decl, dv_from_value): Check after conversion.
3117
3118 2009-09-04  Richard Guenther  <rguenther@suse.de>
3119
3120         PR middle-end/41257
3121         * (cgraph_finalize_compilation_unit): Move finalizing aliases
3122         after emitting tunks.  Move emitting thunks and ctors from ...
3123         (cgraph_optimize): ... here.  Remove redundant
3124         cgraph_analyze_functions.
3125         * varasm.c (find_decl_and_mark_needed): Remove no longer
3126         necessary check.
3127         (finish_aliases_1): Adjust check for thunk aliases.
3128
3129 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
3130
3131         * config/arm/arm.md (ctzsi2): Added braces
3132         to avoid warning that broke booststrap.
3133
3134 2009-09-04  Martin Jambor  <mjambor@suse.cz>
3135
3136         PR tree-optimization/41112
3137         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
3138         handle variable-bounded arrays.
3139         (expr_with_var_bounded_array_refs_p): New function.
3140         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
3141
3142 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
3143
3144         * config/s390/2097.md: Removed two incorrect bypasses.
3145         (z10_fsimpdf): Fixed latency.
3146         (z10_fhex): New insn_reservation.
3147         (z10_floaddf): Fixed latency.
3148         (z10_floadsf): Fixed latency.
3149         (z10_ftrunctf): Fixed latency.
3150         (z10_ftruncdf): Fixed latency.
3151         * config/s390/s390.c (z10_cost): Fixed values.
3152         (s390_adjust_priority): Added z10 path.
3153         * config/s390/s390.md (type): Added fhex.
3154         (*mov<mode>_64dfp): Updated type attribute.
3155         (*mov<mode>_64): Updated type attribute.
3156         (*mov<mode>_31): Updated type attribute.
3157         (*mov<mode>"): Likewise.
3158         * config/s390/2084.md (x_fsimpdf): Updated condition.
3159
3160 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
3161
3162         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
3163         RTXs in the predicate for operand 1.
3164
3165 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
3166
3167         * config/arm/arm.md (UNSPEC_RBIT): New constant.
3168         (rbitsi2): New insn.
3169         (ctzsi2): New expand.
3170         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
3171
3172 2009-09-03  Martin Jambor  <mjambor@suse.cz>
3173
3174         * tree-sra.c (duplicate_expr_for_different_base): Removed.
3175         (create_artificial_child_access): Use build_ref_for_offset instead
3176         of duplicate_expr_for_different_base.
3177         (propagate_subacesses_accross_link): Likewise.
3178
3179 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
3180
3181         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
3182         of INSN_P.
3183         (mips16e_collect_argument_saves): Skip debug instructions.
3184         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
3185         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
3186         (r10k_insert_cache_barriers): Likewise.
3187         (mips_reorg_process_insns): Likewise.
3188
3189 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
3190
3191         PR bootstrap/41241
3192         * ira.c (update_equiv_reg): Remove check on class likely spill.
3193
3194 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
3195
3196         PR debug/41236
3197         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
3198         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
3199         it or SUBREG.
3200
3201         PR debug/41238
3202         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
3203         the stack slot if it is passed by invisible reference.
3204         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
3205         by invisible reference.
3206
3207 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
3208
3209         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
3210         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
3211         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
3212         0.
3213         * config/bfin/sync.md: New file.
3214         * config/bfin/bfin.md: Include it.
3215         (UNSPEC_ATOMIC): New.
3216         (UNSPEC_ONES): Provide a unique number.
3217
3218         From Jie Zhang <jie.zhang@analog.com>:
3219         * config/bfin/bfin.c (ret_regs): New.
3220         (must_save_fp_p): Don't return true because of frame_pointer_needed.
3221         (must_save_rets_p): New.
3222         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
3223         current_function_is_leaf.
3224         (do_link): Likewise.
3225         (do_unlink): Likewise.
3226         (expand_interrupt_handler_prologue): Use ret_regs array.
3227         (expand_interrupt_handler_epilogue): Use ret_regs array and
3228         pass return register to gen_return_internal.
3229         (bfin_expand_epilogue): Pass return register to
3230         gen_return_internal.
3231         (bfin_expand_call): Explicitly clobber RETS.
3232         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
3233         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
3234         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
3235         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
3236         RETS.
3237         (return_internal): Take a reg rtx rather than the register number.
3238
3239 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
3240
3241         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
3242         when comparing against estimated_loop_iterations_int return.
3243
3244 2009-09-03  Richard Guenther  <rguenther@suse.de>
3245
3246         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
3247         eh_personality_libfunc.
3248
3249 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
3250
3251         * tree-parloops.c (separate_decls_in_region): Add space.
3252
3253 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
3254
3255         * tree-parloops.c (separate_decls_in_region): Change the condition
3256         checking if there are reductions in the loop.
3257
3258 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
3259
3260         PR tree-optimization/38275
3261         * tree-parloops.c (parallelize_loops): Replace profitability condition
3262         for expected number of iterations.
3263
3264 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
3265
3266         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
3267         (bootstrap-debug): Explain conditions in which it becomes default.
3268         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
3269         make it add to it.
3270
3271 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
3272
3273         * doc/invoke.texi (Optimize Options): Move
3274         -finline-small-functions to the -O2 list.
3275
3276 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
3277
3278         * toplev.c (process_options): Enable var-tracking-assignments
3279         by default if var-tracking is enabled.
3280
3281 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
3282
3283         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
3284         barrier.
3285         * emit-rtl.c (prev_nonnote_insn_bb): New function.
3286         * rtl.h (prev_nonnote_insn_bb): Declare it.
3287
3288 2009-09-03  Diego Novillo  <dnovillo@google.com>
3289
3290         * cgraph.c (cgraph_node_for_decl): New.
3291         * cgraph.h (cgraph_node_for_decl): Declare.
3292         * tree.c (host_integerp): Return 0 if T is NULL.
3293
3294 2009-09-03  Diego Novillo  <dnovillo@google.com>
3295
3296         * tree.h (struct alias_pair): Move from varasm.c.
3297         (alias_pairs): Likewise.
3298         (TYPE_MAXVAL): Define.
3299         (TYPE_MINVAL): Define.
3300         (iterative_hash_host_wide_int): Declare.
3301         (remove_unreachable_alias_pairs): Declare.
3302         * tree-pass.h (pass_ipa_free_lang_data): Declare.
3303         * diagnostic.c (default_diagnostic_starter): Make extern.
3304         (default_diagnostic_finalizer): Make extern.
3305         * diagnostic.h (default_diagnostic_starter): Declare.
3306         (default_diagnostic_finalizer): Declare.
3307         (default_tree_printer): Declare.
3308         * toplev.c (default_tree_printer): Make extern.
3309
3310 2009-09-03  Richard Guenther  <rguenther@suse.de>
3311             Diego Novillo  <dnovillo@google.com>
3312
3313         * cgraph.c (cgraph_add_new_function): Remove gimplification.
3314         * cgraphunit.c (cgraph_expand_function): Do not emit
3315         associated thunks from here.
3316         (cgraph_emit_thunks): New.
3317         (cgraph_optimize): Call it.
3318         Return if any IPA pass finds an error.
3319         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
3320         by thunks.
3321
3322 2009-09-03  Simon Baldwin  <simonb@google.com>
3323             Rafael Espindola  <espindola@google.com>
3324             Richard Guenther  <rguenther@suse.de>
3325             Doug Kwan  <dougkwan@google.com>
3326             Diego Novillo  <dnovillo@google.com>
3327
3328         * tree.c: Include tree-pass.h, langhooks-def.h,
3329         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
3330         (free_lang_data_in_type): New.
3331         (need_assembler_name_p): New.
3332         (free_lang_data_in_block): New.
3333         (free_lang_data_in_decl): New.
3334         (struct free_lang_data_d): New.
3335         (add_tree_to_fld_list): New.
3336         (find_decls_types_r): New.
3337         (get_eh_types_for_runtime): New.
3338         (find_decls_types_in_eh_region): New.
3339         (find_decls_types_in_node): New.
3340         (find_decls_types_in_var): New.
3341         (free_lang_data_in_cgraph): New.
3342         (free_lang_data): New.
3343         (gate_free_lang_data): New.
3344         (pass_ipa_free_lang_data): New.
3345
3346 2009-09-03  Diego Novillo  <dnovillo@google.com>
3347
3348         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
3349         * langhooks.h (struct lang_hooks): Add field free_lang_data.
3350         (lang_hooks): Remove const qualifier.
3351         * ipa.c (cgraph_remove_unreachable_nodes): Call
3352         remove_unreachable_alias_pairs.
3353         * except.c (add_type_for_runtime): Check if TYPE has
3354         already been converted.
3355         (lookup_type_for_runtime): Likewise.
3356         (check_handled): Handle converted types.
3357         * varasm.c (remove_unreachable_alias_pairs): New.
3358         * gimple.c: Include demangle.h.
3359         (gimple_decl_printable_name): New.
3360         (gimple_fold_obj_type_ref): New.
3361         * gimple.h (gimple_decl_printable_name): Declare.
3362         (gimple_fold_obj_type_ref): Declare.
3363         * passes.c (init_optimization_passes): Add pass
3364         pass_ipa_free_lang_data.
3365         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
3366         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
3367
3368 2009-09-03  Diego Novillo  <dnovillo@google.com>
3369
3370         * c-lang.c (lang_hooks): Remove const qualifier.
3371
3372 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
3373
3374         * doc/install.texi (*-*-freebsd*): Update target information.
3375
3376 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
3377
3378         * hard-reg-set.h (call_fixed_regs): Remove.
3379         * reginfo.c (call_fixed_regs): Remove.
3380         (init_reg_sets_1): Remove initialization of call_fixed_regs.
3381         (globalize_reg): Don't use call_fixed_regs.
3382         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
3383         call_fixed_regs.
3384
3385 2009-09-01  Michael Matz  <matz@suse.de>
3386
3387         * expr.h (emit_storent_insn, expand_expr_real_1,
3388         expand_expr_real_2): Declare.
3389         * expr.c (emit_storent_insn, expand_expr_real_1,
3390         expand_expr_real_2): Export.
3391         (store_expr): Setting and evaluating dont_return_target is useless.
3392         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
3393         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
3394         * except.c (expand_resx_expr): Rename to ...
3395         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
3396         * except.h (expand_resx_stmt): Declare.
3397         * stmt.c: Add include gimple.h
3398         (expand_asm_expr): Rename to ...
3399         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
3400         (expand_case): Rewrite to take gimple statement.
3401         * tree.h (expand_asm_stmt): Declare.
3402         (expand_case): Change prototype.
3403         * Makefile.in (stmt.o): Depend on gimple.h.
3404         * builtins.c (expand_builtin_synchronize): Build gimple asm
3405         statement, not an ASM_EXPR.
3406         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
3407         gimple_to_tree, release_stmt_tree): Remove.
3408         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
3409         ggc_free, but hold comparison code and operands separately.
3410         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
3411         (expand_call_stmt, expand_gimple_stmt_1,
3412         expand_gimple_stmt): New helpers.
3413         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
3414         release_stmt_tree.  Call expand_gimple_stmt instead.
3415         (expand_gimple_basic_block): Ditto.
3416
3417         * calls.c (emit_call_1): Don't look at EH regions here, make
3418         fntree parameter useless.
3419         (expand_call): New local rettype for TREE_TYPE(exp), use it
3420         throughout.  Remove local p, use addr instead.
3421         Don't look at EH regions here.
3422
3423 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
3424
3425         * doc/invoke.texi (-fsched-pressure): Document it.
3426         (-fsched-reg-pressure-heuristic): Remove it.
3427
3428         * reload.c (ira.h): Include.
3429         (find_reloads): Add choosing reload on number of small spilled
3430         classes.
3431
3432         * haifa-sched.c (ira.h): Include.
3433         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
3434         saved_reg_pressure, curr_reg_live, saved_reg_live,
3435         region_ref_regs): New variables.
3436         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
3437         initiate_reg_pressure_info, setup_ref_regs,
3438         initiate_bb_reg_pressure_info, save_reg_pressure,
3439         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
3440         functions.
3441         (setup_insn_reg_pressure_info): New function.
3442         (rank_for_schedule): Add pressure checking and insn issue time.
3443         Remove comparison of insn reg weights.
3444         (ready_sort): Set insn reg pressure info.
3445         (update_register_pressure, setup_insn_max_reg_pressure,
3446         update_reg_and_insn_max_reg_pressure,
3447         sched_setup_bb_reg_pressure_info): New functions.
3448         (schedule_insn): Add code for printing and updating reg pressure info.
3449         (find_set_reg_weight, find_insn_reg_weight): Remove.
3450         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
3451         (debug_ready_list): Print reg pressure info.
3452         (schedule_block): Ditto.  Check insn issue time.
3453         (sched_init): Set up sched_pressure_p.  Allocate and set up some
3454         reg pressure related info.
3455         (sched_finish): Free some reg pressure related info.
3456         (fix_tick_ready): Make insn always ready if pressure_p.
3457         (init_h_i_d): Don't call find_insn_reg_weight.
3458         (haifa_finish_h_i_d): Free insn reg pressure info.
3459
3460         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
3461         ira_memory_move_cost, ira_class_hard_regs,
3462         ira_class_hard_regs_num, ira_no_alloc_regs,
3463         ira_available_class_regs, ira_reg_class_cover_size,
3464         ira_reg_class_cover, ira_class_translate): Move to ira.h.
3465
3466         * ira-lives.c (single_reg_class): Check mode to find how many
3467         registers are necessary for operand.
3468         (ira_implicitly_set_insn_hard_regs): New.
3469
3470         * common.opt (fsched-pressure): New options.
3471         (fsched-reg-pressure-heuristic): Remove.
3472
3473         * ira.c (setup_eliminable_regset): Rename to
3474         ira_setup_eliminable_regset.  Make it external.
3475         (expand_reg_info): Pass cover class to setup_reg_classes.
3476         (ira): Call resize_reg_info instead of allocate_reg_info.
3477
3478         * sched-deps.c: Include ira.h.
3479         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
3480         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
3481         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
3482         mark_insn_hard_regno_birth, mark_insn_reg_birth,
3483         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
3484         mark_insn_reg_store, mark_insn_reg_clobber,
3485         setup_insn_reg_pressure_info): New.
3486         (sched_analyze_1): Update implicit_reg_pending_uses.
3487         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
3488         Use them to create dependencies.  Set insn reg uses and pressure
3489         info.  Process reg_pending_uses in one place.
3490         (free_deps): Free implicit sets.
3491         (remove_from_deps): Remove implicit sets if necessary.  Check
3492         implicit sets when clearing reg_last_in_use.
3493         (init_deps_global): Clear implicit_reg_pending_clobbers and
3494         implicit_reg_pending_uses.
3495
3496         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
3497         ira_memory_move_cost, ira_class_hard_regs,
3498         ira_class_hard_regs_num, ira_no_alloc_regs,
3499         ira_available_class_regs, ira_reg_class_cover_size,
3500         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
3501         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
3502         ira_implicitly_set_insn_hard_regs): New prototypes.
3503
3504         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
3505         cost_elements_num): New variables.
3506         (allocno_costs, total_costs): Rename to costs and
3507         total_allocno_costs.
3508         (COSTS_OF_ALLOCNO): Rename to COSTS.
3509         (allocno_pref): Rename to pref.
3510         (allocno_pref_buffer): Rename to pref_buffer.
3511         (common_classes): Rename to regno_cover_class.
3512         (COST_INDEX): New.
3513         (record_reg_classes): Set allocno attributes only if allocno_p.
3514         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
3515         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
3516         and COSTS_OF_ALLOCNO.
3517         (print_costs): Rename to print_allocno_costs.
3518         (print_pseudo_costs): New.
3519         (process_bb_node_for_costs): Split into 2 functions with new
3520         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
3521         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
3522         new parameter dump_file.  Use cost_elements_num instead of
3523         ira_allocnos_num.  Make one iteration if preferred classes were
3524         already calculated for scheduler.  Make 2 versions of code
3525         depending on allocno_p.
3526         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
3527         regno_cover_class and COSTS instead of common_classes and
3528         COSTS_OF_ALLOCNO.
3529         (init_costs, finish_costs): New.
3530         (ira_costs): Set up allocno_p and cost_elements_num.  Call
3531         init_costs and finish_costs.
3532         (ira_set_pseudo_classes): New.
3533
3534         * rtl.h (allocate_reg_info): Remove.
3535         (resize_reg_info): Change return type.
3536         (reg_cover_class): New.
3537         (setup_reg_classes): Add new parameter.
3538
3539         * sched-int.h (struct deps_reg): New member implicit_sets.
3540         (sched_pressure_p, sched_regno_cover_class): New external definitions.
3541         (INCREASE_BITS): New macro.
3542         (struct reg_pressure_data, struct reg_use_data): New.
3543         (struct _haifa_insn_data): Remove reg_weight.  Add members
3544         reg_pressure, reg_use_list, reg_set_list, and
3545         reg_pressure_excess_cost_change.
3546         (struct deps): New member implicit_sets.
3547         (pressure_p): New variable.
3548         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
3549         (struct reg_pressure_data, struct reg_use_data): New.
3550         (INSN_REG_WEIGHT): Remove.
3551         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
3552         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
3553         (sched_init_region_reg_pressure_info,
3554         sched_setup_bb_reg_pressure_info): New prototypes.
3555
3556         * reginfo.c (struct reg_pref): New member coverclass.
3557         (reg_cover_class): New function.
3558         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
3559         (reg_info_size): New variable.
3560         (allocate_reg_info): Make static.  Setup reg_info_size.
3561         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
3562         (setup_reg_classes): Add a new parameter.  Setup cover class too.
3563
3564         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
3565         the dependencies.
3566
3567         * sched-rgn.c (deps_join): Set up implicit_sets.
3568         (schedule_region): Set up region and basic blocks pressure
3569         relative info.
3570
3571         * passes.c (init_optimization_passes): Move
3572         pass_subregs_of_mode_init before pass_sched.
3573
3574 2009-09-02  Martin Jambor  <mjambor@suse.cz>
3575
3576         * tree-sra.c (struct access): New field grp_hint.
3577         (dump_access): Dump grp_hint.
3578         (sort_and_splice_var_accesses): Set grp_hint if a group is read
3579         multiple times.
3580         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
3581         those which have been specifically read and somehow written to.
3582         (propagate_subacesses_accross_link): Set grp_hint of right child and
3583         also possibly of the left child.
3584
3585 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
3586
3587         * tree-object-size.c (addr_object_size): Always use object_size_type
3588         0 or 2 when determining the pointer pointed object size.
3589
3590 2009-09-02  Richard Guenther  <rguenther@suse.de>
3591
3592         Revert
3593         2009-08-31  Richard Guenther  <rguenther@suse.de>
3594
3595         * builtins.c (fold_builtin_memory_op): Use the alias oracle
3596         to query if the memory regions for memmove overlap.
3597         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
3598         asserts on pointers, instead deal with odd trees.
3599         (ptr_derefs_may_alias_p): Likewise.
3600         (refs_may_alias_p_1): Constructor bases also never alias.
3601
3602 2009-08-01  Christian Bruel  <christian.bruel@st.com>
3603
3604         Revert:
3605         2009-07-31  Christian Bruel  <christian.bruel@st.com>
3606         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
3607
3608 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
3609
3610         * doc/invoke.texi (-fvar-tracking-assignments): New.
3611         (-fvar-tracking-assignments-toggle): New.
3612         (-fdump-final-insns=file): Mark filename as optional.
3613         (--param min-nondebug-insn-uid): New.
3614         (-gdwarf-@{version}): Mention version 4.
3615         * opts.c (common_handle_option): Accept it.
3616         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
3617         * regrename.c (regrename_optimize): Drop last.  Don't count debug
3618         insns as uses.  Don't reject change because of debug insn.
3619         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
3620         from the chain starter, and check for inexact matches in DEBUG_INSNS.
3621         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
3622         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
3623         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
3624         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
3625         * doc/gimple.texi (is_gimple_debug): New.
3626         (gimple_debug_bind_p): New.
3627         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
3628         * doc/install.texi (bootstrap-debug): More details.
3629         (bootstrap-debug-big, bootstrap-debug-lean): Document.
3630         (bootstrap-debug-lib): More details.
3631         (bootstrap-debug-ckovw): Update.
3632         (bootstrap-time): New.
3633         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
3634         (insert_phi_nodes_for): Insert debug stmts.
3635         (rewrite_stmt): Take iterator.  Insert debug stmts.
3636         (rewrite_enter_block): Adjust.
3637         (maybe_replace_use_in_debug_stmt): New.
3638         (rewrite_update_stmt): Use it.
3639         (mark_use_interesting): Return early for debug stmts.
3640         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
3641         stmts before replacing stmt.
3642         (move_computations_stmt): Likewise.
3643         * ira-conflicts.c (add_copies): Skip debug insns.
3644         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
3645         (regstat_bb_compute_ri): Skip debug insns.
3646         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
3647         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
3648         check_loop_closed_ssa_stmt): Skip debug stmts.
3649         * tree-tailcall.c (find_tail_calls): Likewise.
3650         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
3651         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
3652         (build_var_debug_value_stat): Declare.
3653         (build_var_debug_value): Define.
3654         (target_for_debug_bind): Declare.
3655         * reload.c (find_equiv_reg): Skip debug insns.
3656         * rtlanal.c (reg_used_between_p): Skip debug insns.
3657         (side_effects_p): Likewise.
3658         (canonicalize_condition): Likewise.
3659         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
3660         insns never depend on debug insns.
3661         (create_ddg_dep_no_link): Likewise.
3662         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
3663         Don't add inter-loop dependencies for debug insns.
3664         (build_intra_loop_deps): Likewise.
3665         (create_ddg): Count debug insns.
3666         * ddg.h (struct ddg::num_debug): New.
3667         (num_backargs): Pair up with previous int field.
3668         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
3669         -fcompare-debug-second.
3670         * final.c (get_attr_length_1): Skip debug insns.
3671         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
3672         * gcc.c (invoke_as): Call compare-debug-dump-opt.
3673         (driver_self_specs): Map -fdump-final-insns to
3674         -fdump-final-insns=..
3675         (get_local_tick): New.
3676         (compare_debug_dump_opt_spec_function): Test for . argument and
3677         compute output name.  Compute temp output spec without flag name.
3678         Compute -frandom-seed.
3679         (OPT): Undef after use.
3680         * cfgloopanal.c (num_loop_insns): Skip debug insns.
3681         (average_num_loop_insns): Likewise.
3682         * params.h (MIN_NONDEBUG_INSN_UID): New.
3683         * gimple.def (GIMPLE_DEBUG): New.
3684         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
3685         * auto-inc-dec.c (merge_in_block): Skip debug insns.
3686         (merge_in_block): Fix whitespace.
3687         * toplev.c (flag_var_tracking): Update comment.
3688         (flag_var_tracking_assignments): New.
3689         (flag_var_tracking_assignments_toggle): New.
3690         (process_options): Don't open final insns dump file if we're not
3691         going to write to it.  Compute defaults for var_tracking.
3692         * df-scan.c (df_insn_rescan_debug_internal): New.
3693         (df_uses_record): Handle debug insns.
3694         * haifa-sched.c (ready): Initialize n_debug.
3695         (contributes_to_priority): Skip debug insns.
3696         (dep_list_size): New.
3697         (priority): Use it.
3698         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
3699         they're ready.  Disregard previous debug insns to make decisions.
3700         (queue_insn): Never queue debug insns.
3701         (ready_add, ready_remove_first, ready_remove): Count debug insns.
3702         (schedule_insn): Don't reject debug insns because of issue rate.
3703         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
3704         (queue_to_ready): Skip and discount debug insns.
3705         (choose_ready): Let debug insns through.
3706         (schedule_block): Check boundary debug insns.  Discount debug
3707         insns, schedule them early.  Adjust whitespace.
3708         (set_priorities): Check for boundary debug insns.
3709         (add_jump_dependencies): Use dep_list_size.
3710         (prev_non_location_insn): New.
3711         (check_cfg): Use it.
3712         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
3713         stmts.
3714         (remove_unused_ivs): Reset debug stmts.
3715         * modulo-sched.c (const_iteration_count): Skip debug insns.
3716         (res_MII): Discount debug insns.
3717         (loop_single_full_bb_p): Skip debug insns.
3718         (sms_schedule): Likewise.
3719         (sms_schedule_by_order): Likewise.
3720         (ps_has_conflicts): Likewise.
3721         * caller-save.c (refmarker_fn): New.
3722         (save_call_clobbered_regs): Replace regs with saved mem in
3723         debug insns.
3724         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
3725         Call refmarker_fn mark for hardregnos.
3726         (mark_reg_as_referenced): New.
3727         (replace_reg_with_saved_mem): New.
3728         * ipa-pure-const.c (check_stmt): Skip debug stmts.
3729         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
3730         searching back.
3731         (cse_extended_basic_block): Skip debug insns.
3732         (count_reg_usage): Likewise.
3733         (is_dead_reg): New, split out of...
3734         (set_live_p): ... here.
3735         (insn_live_p): Use it for debug insns.
3736         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
3737         (execute_optimize_stdarg): Likewise.
3738         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
3739         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
3740         changes in debug stmts as changes.
3741         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
3742         (moveup_expr): Don't move across debug insns.  Don't move
3743         debug insn if it would create a bookkeeping block.
3744         (moveup_expr_cached): Don't use cache for debug insns that
3745         are heads of blocks.
3746         (compute_av_set_inside_bb): Skip debug insns.
3747         (sel_rank_for_schedule): Schedule debug insns first.  Remove
3748         dead code.
3749         (block_valid_for_bookkeeping_p); Support lax searches.
3750         (create_block_for_bookkeeping): Adjust block numbers when
3751         encountering debug-only blocks.
3752         (find_place_for_bookkeeping): Deal with debug-only blocks.
3753         (generate_bookkeeping_insn): Accept no place to insert.
3754         (remove_temp_moveop_nops): New argument full_tidying.
3755         (prepare_place_to_insert): Deal with debug insns.
3756         (advance_state_on_fence): Debug insns don't start cycles.
3757         (update_boundaries): Take fence as argument.  Deal with
3758         debug insns.
3759         (schedule_expr_on_boundary): No full_tidying on debug insns.
3760         (fill_insns): Deal with debug insns.
3761         (track_scheduled_insns_and_blocks): Don't count debug insns.
3762         (need_nop_to_preserve_insn_bb): New, split out of...
3763         (remove_insn_from_stream): ... this.
3764         (fur_orig_expr_not_found): Skip debug insns.
3765         * rtl.def (VALUE): Move up.
3766         (DEBUG_INSN): New.
3767         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
3768         (nearest_common_dominator_of_uses): Take debug_stmts argument.
3769         Set it if debug stmts are found.
3770         (statement_sink_location): Skip debug stmts.  Propagate
3771         moving defs into debug stmts.
3772         * ifcvt.c (first_active_insn): Skip debug insns.
3773         (last_active_insns): Likewise.
3774         (cond_exec_process_insns): Likewise.
3775         (noce_process_if_block): Likewise.
3776         (check_cond_move_block): Likewise.
3777         (cond_move_convert_if_block): Likewise.
3778         (block_jumps_and_fallthru_p): Likewise.
3779         (dead_or_predicable): Likewise.
3780         * dwarf2out.c (debug_str_hash_forced): New.
3781         (find_AT_string): Add comment.
3782         (gen_label_for_indirect_string): New.
3783         (get_debug_string_label): New.
3784         (AT_string_form): Use it.
3785         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
3786         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
3787         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
3788         several operations that cannot be represented with DWARF opcodes.
3789         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
3790         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
3791         (dwarf2out_var_location): Take during-call mark into account.
3792         (output_indirect_string): Update comment.  Output if there are
3793         label and references.
3794         (prune_indirect_string): New.
3795         (prune_unused_types): Call it if debug_str_hash_forced.
3796         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
3797         (dw_long_long_const): Remove.
3798         (struct dw_val_struct): Change val_long_long type to rtx.
3799         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
3800         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
3801         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
3802         component instead of HOST_BITS_PER_LONG.
3803         (output_loc_operands): Likewise.  For const8* assert
3804         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
3805         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
3806         rather than HOST_BITS_PER_LONG is >= 64.
3807         (add_AT_long_long): Remove val_hi and val_lo arguments, add
3808         val_const_double.
3809         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
3810         HOST_BITS_PER_LONG for dw_val_class_long_long.
3811         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
3812         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
3813         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
3814         DW_OP_stack_value.
3815         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
3816         Handle DW_OP_implicit_value.
3817         (extract_int): Move prototype earlier.
3818         (mem_loc_descriptor): For SUBREG punt if inner
3819         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
3820         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
3821         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
3822         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
3823         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
3824         instead of Pmode size.
3825         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
3826         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
3827         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
3828         (concat_loc_descriptor, concatn_loc_descriptor,
3829         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
3830         (add_location_or_const_value_attribute): Likewise.  For single
3831         location loc_lists attempt to use add_const_value_attribute
3832         for constant decls.  Add DW_AT_const_value even if
3833         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
3834         in its expression.
3835         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
3836         (control_flow_insn_p): Likewise.
3837         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
3838         (separate_decls_in_region_debug_bind): New.
3839         (separate_decls_in_region): Process debug bind stmts afterwards.
3840         * recog.c (verify_changes): Handle debug insns.
3841         (extract_insn): Likewise.
3842         (peephole2_optimize): Skip debug insns.
3843         * dse.c (scan_insn): Skip debug insns.
3844         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
3845         Pass it on.
3846         (setup_id_for_insn): Handle debug insns.
3847         (maybe_tidy_empty_bb): Adjust whitespace.
3848         (tidy_control_flow): Skip debug insns.
3849         (sel_remove_insn): Adjust for debug insns.
3850         (sel_estimate_number_of_insns): Skip debug insns.
3851         (create_insn_rtx_from_pattern): Handle debug insns.
3852         (create_copy_of_insn_rtx): Likewise.
3853         * sel-sched-.h (sel_bb_end): Declare.
3854         (sel_bb_empty_or_nop_p): New.
3855         (get_all_loop_exits): Use it.
3856         (_eligible_successor_edge_p): Likewise.
3857         (return_nop_to_pool): Adjust.
3858         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
3859         * ira-lives.c (process_bb_node_lives): Skip debug insns.
3860         * gimple-pretty-print.c (dump_gimple_debug): New.
3861         (dump_gimple_stmt): Use it.
3862         (dump_bb_header): Skip gimple debug stmts.
3863         * regmove.c (optimize_reg_copy_1): Discount debug insns.
3864         (fixup_match_2): Likewise.
3865         (regmove_backward_pass): Likewise.  Simplify combined
3866         replacement.  Handle debug insns.
3867         * function.c (instantiate_virtual_regs): Handle debug insns.
3868         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
3869         * print-rtl.h: Include cselib.h.
3870         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
3871         * df.h (df_inns_rescan_debug_internal): Declare.
3872         * gcse.c (alloc_hash_table): Estimate n_insns.
3873         (cprop_insn): Don't regard debug insns as changes.
3874         (bypass_conditional_jumps): Skip debug insns.
3875         (one_pre_gcse_pass): Adjust.
3876         (one_code_hoisting_pass): Likewise.
3877         (compute_ld_motion_mems): Skip debug insns.
3878         (one_cprop_pass): Adjust.
3879         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
3880         (if_convertible_stmt_p): Handle debug stmts.
3881         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
3882         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
3883         * ira-build.c (create_bb_allocnos): Skip debug insns.
3884         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
3885         (has_single_use): Likewise.
3886         (single_imm_use): Likewise.
3887         (num_imm_uses): Likewise.
3888         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
3889         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
3890         (create_outofssa_var_map): Likewise.
3891         * lower-subreg.c (adjust_decomposed_uses): New.
3892         (resolve_debug): New.
3893         (decompose_multiword_subregs): Use it.
3894         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
3895         * emit-rtl.c: Include params.h.
3896         (cur_debug_insn_uid): Define.
3897         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
3898         (copy_rtx_if_shared_1): Handle debug insns.
3899         (reset_used_flags): Likewise.
3900         (set_used_flags): LIkewise.
3901         (get_max_insn_count): New.
3902         (next_nondebug_insn): New.
3903         (prev_nondebug_insn): New.
3904         (make_debug_insn_raw): New.
3905         (emit_insn_before_noloc): Handle debug insns.
3906         (emit_jump_insn_before_noloc): Likewise.
3907         (emit_call_insn_before_noloc): Likewise.
3908         (emit_debug_insn_before_noloc): New.
3909         (emit_insn_after_noloc): Handle debug insns.
3910         (emit_jump_insn_after_noloc): Likewise.
3911         (emit_call_insn_after_noloc): Likewise.
3912         (emit_debug_insn_after_noloc): Likewise.
3913         (emit_insn_after): Take loc from earlier non-debug insn.
3914         (emit_jump_insn_after): Likewise.
3915         (emit_call_insn_after): Likewise.
3916         (emit_debug_insn_after_setloc): New.
3917         (emit_debug_insn_after): New.
3918         (emit_insn_before): Take loc from later non-debug insn.
3919         (emit_jump_insn_before): Likewise.
3920         (emit_call_insn_before): Likewise.
3921         (emit_debug_insn_before_setloc): New.
3922         (emit_debug_insn_before): New.
3923         (emit_insn): Handle debug insns.
3924         (emit_debug_insn): New.
3925         (emit_jump_insn): Handle debug insns.
3926         (emit_call_insn): Likewise.
3927         (emit): Likewise.
3928         (init_emit): Take min-nondebug-insn-uid into account.
3929         Initialize cur_debug_insn_uid.
3930         (emit_copy_of_insn_after): Handle debug insns.
3931         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
3932         location of single rhs in place.
3933         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
3934         (floor_sdiv_adjust): New.
3935         (cell_sdiv_adjust): New.
3936         (cell_udiv_adjust): New.
3937         (round_sdiv_adjust): New.
3938         (round_udiv_adjust): New.
3939         (wrap_constant): Moved from cselib.
3940         (unwrap_constant): New.
3941         (expand_debug_expr): New.
3942         (expand_debug_locations): New.
3943         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
3944         debug bind stmts.
3945         (gimple_expand_cfg): Expand debug locations.
3946         * cselib.c: Include tree-pass.h.
3947         (struct expand_value_data): New.
3948         (cselib_record_sets_hook): New.
3949         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
3950         (cselib_clear_table): Move, and implemnet in terms of...
3951         (cselib_reset_table_with_next_value): ... this.
3952         (cselib_get_next_unknown_value): New.
3953         (discard_useless_locs): Don't discard preserved values.
3954         (cselib_preserve_value): New.
3955         (cselib_preserved_value_p): New.
3956         (cselib_preserve_definitely): New.
3957         (cselib_clear_preserve): New.
3958         (cselib_preserve_only_values): New.
3959         (new_cselib_val): Take rtx argument.  Dump it in details.
3960         (cselib_lookup_mem): Adjust.
3961         (expand_loc): Take regs_active in struct.  Adjust.  Silence
3962         dumps unless details are requested.
3963         (cselib_expand_value_rtx_cb): New.
3964         (cselib_expand_value_rtx): Rename and reimplment in terms of...
3965         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
3966         without details.  Copy more subregs.  Try to resolve values
3967         using a callback.  Wrap constants.
3968         (cselib_subst_to_values): Adjust.
3969         (cselib_log_lookup): New.
3970         (cselib_lookup): Call it.
3971         (cselib_invalidate_regno): Don't count preserved values as useless.
3972         (cselib_invalidate_mem): Likewise.
3973         (cselib_record_set): Likewise.
3974         (struct set): Renamed to cselib_set, moved to cselib.h.
3975         (cselib_record_sets): Adjust.  Call hook.
3976         (cselib_process_insn): Reset table when it would be cleared.
3977         (dump_cselib_val): New.
3978         (dump_cselib_table): New.
3979         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
3980         (remove_forwarder_block): Support moving debug stmts.
3981         * cselib.h (cselib_record_sets_hook): Declare.
3982         (cselib_expand_callback): New type.
3983         (cselib_expand_value_rtx_cb): Declare.
3984         (cselib_reset_table_with_next_value): Declare.
3985         (cselib_get_next_unknown_value): Declare.
3986         (cselib_preserve_value): Declare.
3987         (cselib_preserved_value_p): Declare.
3988         (cselib_preserve_only_values): Declare.
3989         (dump_cselib_table): Declare.
3990         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
3991         (try_crossjump_to_edge): Likewise.
3992         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
3993         dominated blocks when debug stmts are present.
3994         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
3995         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
3996         (set_var_live_on_entry): Likewise.
3997         * loop-invariant.c (find_invariants_bb): Skip debug insns.
3998         * cfglayout.c (curr_location, last_location): Make static.
3999         (set_curr_insn_source_location): Don't avoid bouncing.
4000         (get_curr_insn_source_location): New.
4001         (get_curr_insn_block): New.
4002         (duplicate_insn_chain): Handle debug insns.
4003         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
4004         into debug stmts.
4005         * common.opt (fcompare-debug): Move to sort order.
4006         (fdump-unnumbered-links): Likewise.
4007         (fvar-tracking-assignments): New.
4008         (fvar-tracking-assignments-toggle): New.
4009         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
4010         because of debug stmts.
4011         (mark_stmt_if_obviously_necessary): Mark debug stmts.
4012         (eliminate_unnecessary_stmts): Walk dominated blocks before
4013         dominators.
4014         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
4015         * ira.c (memref_used_between_p): Skip debug insns.
4016         (update_equiv_regs): Likewise.
4017         * sched-deps.c (sd_lists_size): Accept empty list.
4018         (sd_init_insn): Mark debug insns.
4019         (sd_finish_insn): Unmark them.
4020         (sd_add_dep): Reject non-debug deps on debug insns.
4021         (fixup_sched_groups): Give debug insns group treatment.
4022         Skip debug insns.
4023         (sched_analyze_reg): Don't mark debug insns for sched before call.
4024         (sched_analyze_2): Handle debug insns.
4025         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
4026         insns.
4027         (deps_analyze_insn): Handle debug insns.
4028         (deps_start_bb): Skip debug insns.
4029         (init_deps): Initialize last_debug_insn.
4030         * tree-ssa.c (target_for_debug_bind): New.
4031         (find_released_ssa_name): New.
4032         (propagate_var_def_into_debug_stmts): New.
4033         (propagate_defs_into_debug_stmts): New.
4034         (verify_ssa): Skip debug bind stmts without values.
4035         (warn_uninialized_vars): Skip debug stmts.
4036         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
4037         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
4038         (rtx_equal_p): Likewise.
4039         * ira-costs.c (scan_one_insn): Skip debug insns.
4040         (process_bb_node_for_hard_reg_moves): Likewise.
4041         * rtl.h (DEBUG_INSN_P): New.
4042         (NONDEBUG_INSN_P): New.
4043         (MAY_HAVE_DEBUG_INSNS): New.
4044         (INSN_P): Accept debug insns.
4045         (RTX_FRAME_RELATED_P): Likewise.
4046         (INSN_DELETED_P): Likewise
4047         (PAT_VAR_LOCATION_DECL): New.
4048         (PAT_VAR_LOCATION_LOC): New.
4049         (PAT_VAR_OCATION_STATUS): New.
4050         (NOTE_VAR_LOCATION_DECL): Reimplement.
4051         (NOTE_VAR_LOCATION_LOC): Likewise.
4052         (NOTE_VAR_LOCATION_STATUS): Likewise.
4053         (INSN_VAR_LOCATION): New.
4054         (INSN_VAR_LOCATION_DECL): New.
4055         (INSN_VAR_LOCATION_LOC): New.
4056         (INSN_VAR_LOCATION_STATUS): New.
4057         (gen_rtx_UNKNOWN_VAR_LOC): New.
4058         (VAR_LOC_UNKNOWN_P): New.
4059         (NOTE_DURING_CALL_P): New.
4060         (SCHED_GROUP_P): Accept debug insns.
4061         (emit_debug_insn_before): Declare.
4062         (emit_debug_insn_before_noloc): Declare.
4063         (emit_debug_insn_beore_setloc): Declare.
4064         (emit_debug_insn_after): Declare.
4065         (emit_debug_insn_after_noloc): Declare.
4066         (emit_debug_insn_after_setloc): Declare.
4067         (emit_debug_insn): Declare.
4068         (make_debug_insn_raw): Declare.
4069         (prev_nondebug_insn): Declare.
4070         (next_nondebug_insn): Declare.
4071         (delegitimize_mem_from_attrs): Declare.
4072         (get_max_insn_count): Declare.
4073         (wrap_constant): Declare.
4074         (unwrap_constant): Declare.
4075         (get_curr_insn_source_location): Declare.
4076         (get_curr_insn_block): Declare.
4077         * tree-inline.c (insert_debug_decl_map): New.
4078         (processing_debug_stmt): New.
4079         (remap_decl): Don't create new mappings in debug stmts.
4080         (remap_gimple_op_r): Don't add references in debug stmts.
4081         (copy_tree_body_r): Likewise.
4082         (remap_gimple_stmt): Handle debug bind stmts.
4083         (copy_bb): Skip debug stmts.
4084         (copy_edges_for_bb): Likewise.
4085         (copy_debug_stmt): New.
4086         (copy_debug_stmts): New.
4087         (copy_body): Copy debug stmts at the end.
4088         (insert_init_debug_bind): New.
4089         (insert_init_stmt): Take id.  Skip and emit debug stmts.
4090         (setup_one_parameter): Remap variable earlier, register debug mapping.
4091         (estimate_num_insns): Skip debug stmts.
4092         (expand_call_inline): Preserve debug_map.
4093         (optimize_inline_calls): Check for no debug_stmts left-overs.
4094         (unsave_expr_now): Preserve debug_map.
4095         (copy_gimple_seq_and_replace_locals): Likewise.
4096         (tree_function_versioning): Check for no debug_stmts left-overs.
4097         Init and destroy debug_map as needed.  Split edges unconditionally.
4098         (build_duplicate_type): Init and destroy debug_map as needed.
4099         * tree-inline.h: Include gimple.h instead of pointer-set.h.
4100         (struct copy_body_data): Add debug_stmts and debug_map.
4101         * sched-int.h (struct ready_list): Add n_debug.
4102         (struct deps): Add last_debug_insn.
4103         (DEBUG_INSN_SCHED_P): New.
4104         (BOUNDARY_DEBUG_INSN_P): New.
4105         (SCHEDULE_DEBUG_INSN_P): New.
4106         (sd_iterator_cond): Accept empty list.
4107         * combine.c (create_log_links): Skip debug insns.
4108         (combine_instructions): Likewise.
4109         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
4110         return value is always unshared.
4111         (struct rtx_subst_pair): New.
4112         (auto_adjust_pair): New.
4113         (propagate_for_debug_subst): New.
4114         (propagate_for_debug): New.
4115         (try_combine): Skip debug insns.  Propagate removed defs into
4116         debug insns.
4117         (next_nonnote_nondebug_insn): New.
4118         (distribute_notes): Use it.  Skip debug insns.
4119         (distribute_links): Skip debug insns.
4120         * tree-outof-ssa.c (set_location_for_edge): Likewise.
4121         * resource.c (mark_target_live_regs): Likewise.
4122         * var-tracking.c: Include cselib.h and target.h.
4123         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
4124         MO_VAL_SET.
4125         (micro_operation_type_name): New.
4126         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
4127         (struct micro_operation_def): Update comments.
4128         (decl_or_value): New type.  Use instead of decls.
4129         (struct emit_note_data_def): Add vars.
4130         (struct attrs_def): Use decl_or_value.
4131         (struct variable_tracking_info_def): Add permp, flooded.
4132         (struct location_chain_def): Update comment.
4133         (struct variable_part_def): Use decl_or_value.
4134         (struct variable_def): Make var_part a variable length array.
4135         (valvar_pool): New.
4136         (scratch_regs): New.
4137         (cselib_hook_called): New.
4138         (dv_is_decl_p): New.
4139         (dv_is_value_p): New.
4140         (dv_as_decl): New.
4141         (dv_as_value): New.
4142         (dv_as_opaque): New.
4143         (dv_onepart_p): New.
4144         (dv_pool): New.
4145         (IS_DECL_CODE): New.
4146         (check_value_is_not_decl): New.
4147         (dv_from_decl): New.
4148         (dv_from_value): New.
4149         (dv_htab_hash): New.
4150         (variable_htab_hash): Use it.
4151         (variable_htab_eq): Support values.
4152         (variable_htab_free): Free from the right pool.
4153         (attrs_list_member, attrs_list_insert): Use decl_or_value.
4154         (attrs_list_union): Adjust.
4155         (attrs_list_mpdv_union): New.
4156         (tie_break_pointers): New.
4157         (canon_value_cmp): New.
4158         (unshare_variable): Return possibly-modified slot.
4159         (vars_copy_1): Adjust.
4160         (var_reg_decl_set): Adjust.  Split out of...
4161         (var_reg_set): ... this.
4162         (get_init_value): Adjust.
4163         (var_reg_delete_and_set): Adjust.
4164         (var_reg_delete): Adjust.
4165         (var_regno_delete): Adjust.
4166         (var_mem_decl_set): Split out of...
4167         (var_mem_set): ... this.
4168         (var_mem_delete_and_set): Adjust.
4169         (var_mem_delete): Adjust.
4170         (val_store): New.
4171         (val_reset): New.
4172         (val_resolve): New.
4173         (variable_union): Adjust.  Speed up merge of 1-part vars.
4174         (variable_canonicalize): Use unshared slot.
4175         (VALUED_RECURSED_INTO): New.
4176         (find_loc_in_1pdv): New.
4177         (struct dfset_merge): New.
4178         (insert_into_intersection): New.
4179         (intersect_loc_chains): New.
4180         (loc_cmp): New.
4181         (canonicalize_loc_order_check): New.
4182         (canonicalize_values_mark): New.
4183         (canonicalize_values_star): New.
4184         (variable_merge_over_cur): New.
4185         (variable_merge_over_src): New.
4186         (dataflow_set_merge): New.
4187         (dataflow_set_equiv_regs): New.
4188         (remove_duplicate_values): New.
4189         (struct dfset_post_merge): New.
4190         (variable_post_merge_new_vals): New.
4191         (variable_post_merge_perm_vals): New.
4192         (dataflow_post_merge_adjust): New.
4193         (find_mem_expr_in_1pdv): New.
4194         (dataflow_set_preserve_mem_locs): New.
4195         (dataflow_set_remove_mem_locs): New.
4196         (dataflow_set_clear_at_call): New.
4197         (onepart_variable_different_p): New.
4198         (variable_different_p): Use it.
4199         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
4200         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
4201         if not needed.
4202         (track_loc_p): Pass it true.
4203         (struct count_use_info): New.
4204         (find_use_val): New.
4205         (replace_expr_with_values): New.
4206         (log_op_type): New.
4207         (use_type): New, partially split out of...
4208         (count_uses): ... this.  Count new micro-ops.
4209         (count_uses_1): Adjust.
4210         (count_stores): Adjust.
4211         (count_with_sets): New.
4212         (VAL_NEEDS_RESOLUTION): New.
4213         (VAL_HOLDS_TRACK_EXPR): New.
4214         (VAL_EXPR_IS_COPIED): New.
4215         (VAL_EXPR_IS_CLOBBERED): New.
4216         (add_uses): Adjust.  Generate new micro-ops.
4217         (add_uses_1): Adjust.
4218         (add_stores): Generate new micro-ops.
4219         (add_with_sets): New.
4220         (find_src_status): Adjust.
4221         (find_src_set_src): Adjust.
4222         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
4223         Handle new micro-ops.  Canonicalize value equivalances.
4224         (vt_find_locations): Compute total size of hash tables for
4225         dumping.  Perform merge for var-tracking-assignments.  Don't
4226         disregard single-block loops.
4227         (dump_attrs_list): Handle decl_or_value.
4228         (dump_variable): Take variable.  Deal with decl_or_value.
4229         (dump_variable_slot): New.
4230         (dump_vars): Use it.
4231         (dump_dataflow_sets): Adjust.
4232         (set_slot_part): New, extended to support one-part variables
4233         after splitting out of...
4234         (set_variable_part): ... this.
4235         (clobber_slot_part): New, split out of...
4236         (clobber_variable_part): ... this.
4237         (delete_slot_part): New, split out of...
4238         (delete_variable_part): .... this.
4239         (check_wrap_constant): New.
4240         (vt_expand_loc_callback): New.
4241         (vt_expand_loc): New.
4242         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
4243         EMIT_NOTE_AFTER_CALL_INSN.
4244         (emit_notes_for_differences_1): Adjust.  Handle values.
4245         (emit_notes_for_differences_2): Likewise.
4246         (emit_notes_for_differences): Adjust.
4247         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
4248         Adjust.  Handle new micro-ops.
4249         (vt_add_function_parameters): Adjust.  Create and bind values.
4250         (vt_initialize): Adjust.  Initialize scratch_regs and
4251         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
4252         operations.  Move some code to count_with_sets and add_with_sets.
4253         (delete_debug_insns): New.
4254         (vt_debug_insns_local): New.
4255         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
4256         cselib.
4257         (var_tracking_main): If var-tracking-assignments is enabled
4258         but var-tracking isn't, delete debug insns and leave.  Likewise
4259         if we exceed limits or fail the stack adjustments tests, and
4260         after all var-tracking processing.
4261         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
4262         (dataflow_set): Add traversed_vars.
4263         (value_chain, const_value_chain): New typedefs.
4264         (value_chain_pool, value_chains): New variables.
4265         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
4266         add_value_chains, add_cselib_value_chains, remove_value_chain,
4267         remove_value_chains, remove_cselib_value_chains): New functions.
4268         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
4269         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
4270         static inlines.
4271         (shared_hash_find_slot_unshare, shared_hash_find_slot,
4272         shared_hash_find_slot_noinsert, shared_hash_find): Update.
4273         (dst_can_be_shared): New variable.
4274         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
4275         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
4276         different from set->vars, look up slot again instead of using the
4277         passed in slot.
4278         (dataflow_set_init): Initialize traversed_vars.
4279         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
4280         lookup if set->vars is shared.  Don't keep slot cleared before
4281         calling unshare_variable.  Unshare set->vars if needed.  Adjust
4282         unshare_variable callers.  Clear dst_can_be_shared if needed.
4283         Even ->refcount == 1 vars must be unshared if set->vars is shared
4284         and var needs to be modified.
4285         (dataflow_set_union): Set traversed_vars during canonicalization.
4286         (VALUE_CHANGED, DECL_CHANGED): Define.
4287         (set_dv_changed, dv_changed_p): New static inlines.
4288         (track_expr_p): Clear DECL_CHANGED.
4289         (dump_dataflow_sets): Set it.
4290         (variable_was_changed): Call set_dv_changed.
4291         (emit_note_insn_var_location): Likewise.
4292         (changed_variables_stack): New variable.
4293         (check_changed_vars_1, check_changed_vars_2): New functions.
4294         (emit_notes_for_changes): Do nothing if changed_variables is
4295         empty.  Traverse changed_variables with check_changed_vars_1,
4296         call check_changed_vars_2 on each changed_variables_stack entry.
4297         (emit_notes_in_bb): Add SET argument.  Just clear it at the
4298         beginning, use it instead of local &set, don't destroy it at the end.
4299         (vt_emit_notes): Call dataflow_set_clear early on all
4300         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
4301         computed set, dataflow_set_clear also VTI(bb)->in when we are
4302         done with the basic block.  Initialize changed_variables_stack,
4303         free it afterwards.  If ENABLE_CHECKING verify that after noting
4304         differences to an empty set value_chains hash table is empty.
4305         (vt_initialize): Initialize value_chains and value_chain_pool.
4306         (vt_finalize): Delete value_chains htab, free value_chain_pool.
4307         (variable_tracking_main): Call dump_dataflow_sets before calling
4308         vt_emit_notes, not after it.
4309         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
4310         (propagate_var_def_into_debug_stmts): Declare.
4311         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
4312         (df_set_note): Reject debug insns.
4313         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
4314         add notes to debug insns.
4315         (df_note_bb_compute): Adjust.  Likewise.
4316         (df_simulate_uses): Skip debug insns.
4317         (df_simulate_initialize_backwards): Likewise.
4318         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
4319         (subst_stack_regs_pat): Reject debug insns.
4320         (convert_regs_1): Handle debug insns.
4321         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
4322         (print-rtl.o): Depend on cselib.h.
4323         (cselib.o): Depend on TREE_PASS_H.
4324         (var-tracking.o): Depend on cselib.h and TARGET_H.
4325         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
4326         (init_ready_list): Skip boundary debug insns.
4327         (add_branch_dependences): Skip debug insns.
4328         (free_block_dependencies): Check for blocks with only debug insns.
4329         (compute_priorities): Likewise.
4330         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
4331         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
4332         all callers.
4333         (gimple_build_debug_bind_stat): New.
4334         (empty_body_p): Skip debug stmts.
4335         (gimple_has_side_effects): Likewise.
4336         (gimple_rhs_has_side_effects): Likewise.
4337         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
4338         (gimple_build_debug_bind_stat): Declare.
4339         (gimple_build_debug_bind): Define.
4340         (is_gimple_debug): New.
4341         (gimple_debug_bind_p): New.
4342         (gimple_debug_bind_get_var): New.
4343         (gimple_debug_bind_get_value): New.
4344         (gimple_debug_bind_get_value_ptr): New.
4345         (gimple_debug_bind_set_var): New.
4346         (gimple_debug_bind_set_value): New.
4347         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
4348         (gimple_debug_bind_reset_value): New.
4349         (gimple_debug_bind_has_value_p): New.
4350         (gsi_next_nondebug): New.
4351         (gsi_prev_nondebug): New.
4352         (gsi_start_nondebug_bb): New.
4353         (gsi_last_nondebug_bb): New.
4354         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
4355         (print_insn): Handle DEBUG_INSN.
4356         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
4357         of first insn prevail.
4358         (first_stmt): Skip debug stmts.
4359         (first_non_label_stmt): Likewise.
4360         (last_stmt): Likewise.
4361         (has_zero_uses_1): New.
4362         (single_imm_use_1): New.
4363         (verify_gimple_debug): New.
4364         (verify_types_in_gimple_stmt): Handle debug stmts.
4365         (verify_stmt): Likewise.
4366         (debug_loop_num): Skip debug stmts.
4367         (remove_edge_and_dominated_blocks): Remove dominators last.
4368         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
4369         (linearize_expr): Likewise.
4370         * config/i386/i386.c (ix86_delegitimize_address): Call
4371         default implementation.
4372         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
4373         (group_barrier_needed): Skip debug insns.
4374         (emit_insn_group_barriers): Likewise.
4375         (emit_all_insn_group_barriers): Likewise.
4376         (ia64_variable_issue): Handle debug insns.
4377         (ia64_dfa_new_cycle): Likewise.
4378         (final_emit_insn_group_barriers): Skip debug insns.
4379         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
4380         def cfa without frame.
4381         (process_set): Likewise.
4382         (process_for_unwind_directive): Pass frame on.
4383         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
4384         (rs6000_delegitimize_address): New.
4385         (rs6000_debug_adjust_cost): Handle debug insns.
4386         (is_microcoded_insn): Likewise.
4387         (is_cracked_insn): Likewise.
4388         (is_nonpipeline_insn): Likewise.
4389         (insn_must_be_first_in_group): Likewise.
4390         (insn_must_be_last_in_group): Likewise.
4391         (force_new_group): Likewise.
4392         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
4393         contains only debug insns.
4394         (rtl_merge_blocks): Skip debug insns.
4395         (purge_dead_edges): Likewise.
4396         (rtl_block_ends_with_call_p): Skip debug insns.
4397         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
4398         (mark_reg_dependencies): Skip debug insns.
4399         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
4400         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
4401         * tree-ssa-threadedge.c
4402         (record_temporary_equivalences_from_stmts): Skip debug stmts.
4403         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
4404         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
4405         (copyprop_hardreg_forward_1): Handle debug insns.
4406         * reload1.c (reload): Skip debug insns.  Replace unassigned
4407         pseudos in debug insns with their equivalences.
4408         (eliminate_regs_in_insn): Skip debug insns.
4409         (emit_input_reload_insns): Skip debug insns at first, adjust
4410         them later.
4411         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
4412         (get_indirect_ref_operands): Pass opf_no_vops on.
4413         (get_expr_operands): Likewise.  Skip debug stmts.
4414         (parse_ssa_operands): Scan debug insns with opf_no_vops.
4415
4416 2009-09-01  Richard Henderson  <rth@redhat.com>
4417
4418         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
4419         stmt_ends_pp_p statements at least once.
4420         * tree-vrp.c (vrp_initialize): Likewise.
4421         (vrp_visit_stmt): Be prepared for non-interesting stmts.
4422
4423 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
4424
4425         PR bootstrap/41205
4426         Fix AIX bootstrap after PR debug/30161
4427         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
4428         that is a GNU extension.
4429         (tmpl_value_parm_die_table): Move the definition of this global
4430         outside #ifdef DWARF2_DEBUGGING_INFO region.
4431
4432 2009-09-01  Richard Guenther  <rguenther@suse.de>
4433
4434         * tree.c (tree_expr_size): New function.
4435         * tree.h (tree_expr_size): Declare.
4436         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
4437         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
4438         * langhooks.c (lhd_expr_size): Remove.
4439         * langhooks.h (struct lang_hooks): Remove expr_size.
4440         * explow.c (expr_size): Use tree_expr_size.
4441         (int_expr_size): Likewise.
4442         * langhooks-def.h (lhd_expr_size): Remove.
4443         (LANG_HOOKS_EXPR_SIZE): Likewise.
4444         (LANG_HOOKS_INITIALIZER): Adjust.
4445
4446 2009-09-01  Richard Guenther  <rguenther@suse.de>
4447
4448         * tree-flow.h (mark_addressable): Move declaration ...
4449         * tree.h (mark_addressable): ... here.
4450         * stmt.c (expand_asm_operands): Use mark_addressable, not
4451         lang_hooks.mark_addressable.
4452         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
4453         LANG_HOOKS_MARK_ADDRESSABLE.
4454         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
4455         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
4456
4457 2009-08-31  Chris Demetriou  <cgd@google.com>
4458
4459         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
4460         vectorize if not TARGET_SSE2.
4461
4462 2009-08-31  DJ Delorie  <dj@redhat.com>
4463
4464         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
4465         registers if no coprocessor is enabled.
4466
4467 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
4468
4469         PR debug/30161
4470         * cgraph.h (cgraph_get_node): Declare ...
4471         * cgraph.c (cgraph_get_node): ... new function.
4472         * dwarf2out.c (gen_generic_params_dies,
4473         generic_parameter_die, tree_add_const_value_attribute_for_decl,
4474         make_ith_pack_parameter_name,
4475         append_entry_to_tmpl_value_parm_die_table,
4476         gen_remaining_tmpl_value_param_die_attribute): New functions.
4477         (gen_subprogram_die): Generate debug info for template parameters
4478         if debug info level is higher than DINFO_LEVEL_TERSE.
4479         Use tree_add_const_value_attribute_for_decl instead of
4480         tree_add_const_value_attribute.
4481         (gen_const_die): Use tree_add_const_value_attribute_for_decl
4482         instead of tree_add_const_value_attribute.
4483         (gen_struct_or_union_type_die): Generate debug
4484         info for template parameters if debug info level is higher than
4485         DINFO_LEVEL_TERSE.
4486         (tree_add_const_value_attribute): Handle integral and pointer
4487         constants. Update comment.
4488         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
4489         (dwarf_attr_name): Support DW_AT_GNU_template_name.
4490         (reference_to_unused): Fix thinko. Remove redundant predicates from
4491         tests.
4492         (tree_add_const_value_attribute): Make this work for constant
4493         expressions only.
4494         tree_add_const_value_attribute_for_decl is to be used for variable
4495         DECLs now.
4496         (add_location_or_const_value_attribute): Use
4497         tree_add_const_value_attribute_for_decl now.
4498         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
4499         DW_TAG_template_value_param DIEs after function DIEs have been
4500         emitted.
4501         * langhooks.h (lang_hooks_for_types): Add
4502         get_argument_pack_elems.
4503         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
4504         (lang_hooks): Added get_innermost_generic_parms,
4505         get_innermost_generic_args.
4506         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
4507         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
4508         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
4509         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
4510
4511 2009-08-31  DJ Delorie  <dj@redhat.com>
4512
4513         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
4514         it once we start generating the prologue or epilogue.
4515         (mep_call_saves_register): If the frame is locked, re-use
4516         cached values.
4517         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
4518         (mep_expand_prologue): Call it.
4519         (mep_expand_epilogue): Likewise.
4520         (mep_start_function): Use the same logic as mep_expand_prologue.
4521         (mep_pass_by_reference): Make logic more readable.
4522         (mep_return_in_memory): Zero-sized objects are passed in memory.
4523         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
4524
4525 2009-08-31  Richard Guenther  <rguenther@suse.de>
4526
4527         * builtins.c (fold_builtin_memory_op): Use the alias oracle
4528         to query if the memory regions for memmove overlap.
4529         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
4530         asserts on pointers, instead deal with odd trees.
4531         (ptr_derefs_may_alias_p): Likewise.
4532         (refs_may_alias_p_1): Constructor bases also never alias.
4533
4534 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
4535
4536         * doc/install.texi (Final install): Adjust reference on where to
4537         order printed manuals.
4538
4539 2009-08-30  Olivier Hainque  <hainque@adacore.com>
4540
4541         * dwarf2out.c (switch_to_frame_table_section): Move
4542         definition prior to first use.
4543
4544 2009-08-30  Richard Guenther  <rguenther@suse.de>
4545
4546         PR tree-optimization/41186
4547         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
4548         (ao_ref_init_from_ptr_and_size): New function.
4549         (ref_maybe_used_by_call_p_1): Be more precise tracking
4550         used ranges for builtin functions.
4551         (ref_maybe_used_by_call_p): Adjust.
4552         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
4553         ranges for builtin functions.
4554         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
4555
4556 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
4557
4558         PR target/41081
4559         * fwprop.c (get_reg_use_in): Delete.
4560         (free_load_extend): New function.
4561         (forward_propagate_subreg): Use it.
4562
4563 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
4564
4565         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
4566
4567 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
4568
4569         PR/41184
4570         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
4571         padding.
4572
4573 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
4574
4575         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
4576         fini or fini_array section.
4577
4578 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4579
4580         * graphite-dependences.c (graphite_legal_transform_bb): Call
4581         pbb_remove_duplicate_pdrs.
4582         * graphite-poly.c (can_collapse_pdr): Removed.
4583         (pdr_find_duplicate): Removed.
4584         (can_collapse_pdrs): New.
4585         (pbb_remove_duplicate_pdrs): New.
4586         (new_poly_dr): Do not look for duplicates.
4587         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
4588         (PBB_PDR_DUPLICATES_REMOVED): New.
4589         (pbb_remove_duplicate_pdrs): Declared.
4590
4591 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4592
4593         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
4594         the strides by multiplying by PDR_NB_REFS.
4595         * graphite-poly.c (can_collapse_pdr): New.
4596         (pdr_find_duplicate): New.
4597         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
4598         Initialize PDR_NB_REFS.
4599         * graphite-poly.h (struct poly_dr): Add field nb_refs.
4600         (PDR_NB_REFS): New.
4601         (new_poly_dr): Number of subscripts is a graphite_dim_t.
4602
4603 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4604
4605         PR middle-end/40965
4606         * graphite-poly.c (apply_poly_transforms): Remove legality test before
4607         any transform.
4608
4609 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4610
4611         * graphite-dependences.c (pddr_original_scattering): Return NULL
4612         for read-read dependence relations.
4613         * graphite-poly.h (enum poly_dr_type): Fix comment.
4614         (pdr_read_p): New.
4615         (pdr_write_p): New.
4616         (pdr_may_write_p): New.
4617
4618 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4619
4620         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
4621         (struct poly_dr): Same.
4622         (new_poly_dr): Same.
4623         * graphite-poly.c (new_poly_dr): Same.
4624         * graphite-dependences.c (dot_deps): Disable call to system.
4625
4626 2009-08-28  Cary Coutant  <ccoutant@google.com>
4627
4628         PR debug/41063
4629         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
4630         struct/union/enum types local to a function.
4631
4632 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
4633             Sebastian Pop  <sebastian.pop@amd.com>
4634
4635         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
4636         pbb_strip_mine_time_depth.  Changed the implementation so that
4637         transformation is expressed as a transformation on
4638         time (scatttering) dimensions.  Also, ensures that the 2d+1
4639         scheduling format is preserved.
4640         (pbb_strip_mine_profitable_p): Profitability is based on the
4641         iteration number of a given time (scattering) dimension,
4642         and not on a original loop depth dimension.
4643         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
4644         (pbb_do_strip_mine): Call psct_dynamic_dim.
4645         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
4646         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
4647         (pbb_nb_dynamic_scattering_transform): New.
4648         (psct_dynamic_dim): New.
4649
4650 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
4651
4652         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
4653         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
4654         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
4655         * graphite-interchange.c (build_linearized_memory_access): Same.
4656         (memory_stride_in_loop): Same.
4657
4658 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4659
4660         * graphite-dependences.c (pddr_original_scattering): New.
4661         (graphite_legal_transform_dr): Call pddr_original_scattering.
4662         (dot_deps_1): New.
4663         (dot_deps): New.
4664         * graphite-dependences.h (dot_deps): Declared.
4665         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
4666         (print_pdr): Print PDR_ID.
4667         * graphite-poly.h (struct poly_dr): Add field id.
4668         (PDR_ID): New.
4669         (pbb_index): New.
4670         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
4671
4672 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4673
4674         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
4675         not delete the original dependence relation.
4676
4677 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4678
4679         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
4680         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
4681         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
4682         (free_poly_ddr): New.
4683         (pddr_is_empty): New.
4684         (dependence_polyhedron_1): Now returns a poly_ddr_p.
4685         (dependence_polyhedron): Same.  Remove useless gcc_assert.
4686         Remove fprintfs.
4687         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
4688         (graphite_carried_dependence_level_k): Call pddr_is_empty.
4689         * graphite-dependences.h (enum poly_dependence_kind): New.
4690         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
4691         (PDRP_SOURCE): Renamed PDDR_SOURCE.
4692         (PDRP_SINK): Renamed PDDR_SINK.
4693         (PDRP_DDP): Renamed PDDR_DDP.
4694         (PDDR_KIND): New.
4695         (free_poly_ddr): Declared.
4696         * graphite-poly.c (new_scop): Use the new hash function names.
4697         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
4698         into original_pddrs.
4699         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
4700
4701 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4702
4703         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
4704         bounds with LT_EXPR to make niter analysis more precise on code
4705         generated by Graphite.
4706
4707 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4708
4709         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
4710         (graphite_legal_transform_bb): Same.
4711         (poly_drs_may_alias_p): Same.
4712
4713 2009-08-28  Richard Guenther  <rguenther@suse.de>
4714
4715         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
4716
4717 2009-08-28  Jan Beulich  <jbeulich@novell.com>
4718
4719         * config/i386/netware.c: Include langhooks.h.
4720         (i386_nlm_encode_section_info): Simplify.
4721         (netware_override_options): Delete.
4722         * config/i386/netware.h (netware_override_options): Delete
4723         declaration.
4724         (OVERRIDE_OPTIONS): Delete definition.
4725         (SUBTARGET_OVERRIDE_OPTIONS): Define.
4726         (ASM_COMMENT_START): Define.
4727         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
4728
4729 2009-08-28  Jan Beulich  <jbeulich@novell.com>
4730
4731         * configure.ac: For in-tree ld, do a plain version check to
4732         determine whether comdat groups are supported.
4733         * configure: Regenerate.
4734
4735 2009-08-28  Olivier Hainque  <hainque@adacore.com>
4736
4737         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
4738         always defined.  Reflect definition or absence of such for
4739         COLLECT_EXPORT_LIST.  Readability helper.
4740         (scanfilter): New enum, to help control what symbols
4741         are to be considered or ignored by scan_prog_file.
4742         (enum pass): Rename as "scanpass", moved together with scanfilter
4743         prior to scan_prog_file's prototype.
4744         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
4745         Group prototype with the scanpass/scanfilter definitions, factorize
4746         head comments for the several implementations at the prototype.
4747         (main): Reorganize the first pass link control to let AIX
4748         drag only the needed frame tables in executables.  Prevent
4749         frame tables collection during the scan aimed at static ctors.
4750         Pre-link and scan for frame tables later to compensate.
4751         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
4752         A C statement to issue assembly directives that create a reference
4753         to the given DWARF table identifier label from the current function
4754         section.
4755         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
4756         to differentiate first time section entry.  Only emit a .data
4757         tables start identifier label the first time around.
4758         (switch_to_frame_table_section): New function.  Helper for
4759         output_call_frame_info to switch possibly BACK into the eh_frame
4760         or the debug_frame section depending on FOR_EH.
4761         (output_call_frame_info): Use helper to first enter the proper
4762         frame section.
4763         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
4764         emit a link to the frame table start label from each function
4765         section.
4766         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
4767         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
4768         * config/rs6000/rs6000-protos.h: Declare it.
4769         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
4770
4771 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
4772
4773         * config/sh/sh.c (split_branches): Check the result of
4774         next_active_insn.
4775
4776 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
4777
4778         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
4779         using -pthread -fopenmp
4780
4781 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
4782
4783         * doc/service.texi (service directory): Update URL.
4784
4785 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
4786
4787         PR rtl-optimization/40861
4788         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
4789         extract word from a multi-word subreg for negative byte positions.
4790
4791 2009-08-27  Tristan Gingold  <gingold@adacore.com>
4792             Douglas B Rupp  <rupp@gnat.com>
4793
4794         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
4795         (SECTION_VMS_OVERLAY): Define.
4796         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
4797         attribute.
4798         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
4799         for common_object.
4800         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
4801         common_object declarations.
4802         (ia64_section_type_flags): Set section flag for common_object.
4803         * config/ia64/ia64-protos.h
4804         (ia64_vms_output_aligned_decl_common): Declare.
4805         (ia64_vms_elf_asm_named_section): Declare.
4806
4807 2009-08-27  Michael Matz  <matz@suse.de>
4808
4809         * expr.c (expand_expr_real_2): New function taking exploded
4810         unary or binary expression, split out from ...
4811         (expand_expr_real_1): ... here.  Move over all unary/binary
4812         switch parts to above function, in particular these codes:
4813         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
4814         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
4815         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
4816         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
4817         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
4818         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
4819         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
4820         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
4821         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
4822         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
4823         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
4824         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
4825         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
4826         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
4827         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
4828         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
4829         VEC_PACK_FIX_TRUNC_EXPR.
4830         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
4831         full expression.
4832
4833 2009-08-27  Richard Guenther  <rguenther@suse.de>
4834
4835         * gengtype.c (main): Handle uint64_t.
4836         * ipa-utils.c (get_base_var): Indent properly.
4837         * tree-ssa-live.c (debug_scope_block): New function.
4838         * tree-flow.h (debug_scope_block): Declare.
4839         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
4840         * basic-block.h (enum profile_status): Rename to
4841         enum profile_status_d.
4842         (x_profile_status): Adjust type.
4843
4844 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
4845
4846         PR debug/41170
4847         * dwarf2out.c (get_context_die): Declare this static function.
4848         (gen_type_die_with_usage): Make sure a DIE is a generated for
4849         the context of a typedef.
4850
4851 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
4852
4853         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
4854         switch.
4855
4856 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
4857
4858         * config/mips/mips-protos.h (mips_output_sync): Declare.
4859         (mips_sync_loop_insns): Likewise.
4860         (mips_output_sync_loop): Replace first two parameters with an rtx.
4861         * config/mips/mips.c (mips_multi_member): New structure.
4862         (mips_multi_members): New variable.
4863         (mips_multi_start): New function.
4864         (mips_multi_add): Likewise.
4865         (mips_multi_add_insn): Likewise.
4866         (mips_multi_add_label): Likewise.
4867         (mips_multi_last_index): Likewise.
4868         (mips_multi_copy_insn): Likewise.
4869         (mips_multi_set_operand): Likewise.
4870         (mips_multi_write): Likewise.
4871         (mips_print_operand_punctuation): Remove '%|' and '%-'.
4872         (mips_init_print_operand_punct): Update accordingly.
4873         (mips_start_ll_sc_sync_block): New function.
4874         (mips_end_ll_sc_sync_block): Likewise.
4875         (mips_output_sync): Likewise.
4876         (mips_sync_insn1_template): Likewise.
4877         (mips_sync_insn2_template): Likewise.
4878         (mips_get_sync_operand): Likewise.
4879         (mips_process_sync_loop): Likewise.
4880         (mips_output_sync_loop): Use mips_process_sync_loop.
4881         (mips_sync_loop_insns): New function.
4882         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
4883         (MIPS_COMPARE_AND_SWAP_12): Likewise.
4884         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
4885         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
4886         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
4887         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
4888         (MIPS_SYNC_OLD_OP_12): Likewise.
4889         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
4890         (MIPS_SYNC_NEW_OP_12): Likewise.
4891         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
4892         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
4893         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
4894         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
4895         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
4896         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
4897         * config/mips/mips.md (sync_mem): New attribute.
4898         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
4899         (sync_exclusive_mask, sync_required_oldval): Likewise.
4900         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
4901         (sync_release_barrier): Likewise.
4902         (length): Handle sync loops.
4903         (sync): Use mips_output_sync.
4904         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
4905         (sync_compare_and_swap<mode>): Set the new sync_* attributes
4906         and use mips_output_sync_loop.
4907         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
4908         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
4909         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
4910         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
4911         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
4912         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
4913         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
4914         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
4915         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
4916
4917 2009-08-26  Richard Guenther  <rguenther@suse.de>
4918
4919         PR middle-end/41163
4920         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
4921         the types to not match.
4922         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
4923         verification.
4924         * tree-ssa.c (useless_type_conversion_p): Conversions to
4925         pointers to unprototyped functions are useless.
4926
4927 2009-08-26  Richard Guenther  <rguenther@suse.de>
4928
4929         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
4930         whole-program condition, prepare to be called for non-globals.
4931         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
4932         params build a representative with known type and track its fields.
4933
4934 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
4935
4936         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
4937         clearing by a taken branch.
4938         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
4939         effectively after bbro pass.
4940         (sync_nand<mode>): Ditto.
4941         (sync_old_<fetchop_name><mode>): Ditto.
4942         (sync_old_nand<mode>): Ditto.
4943         (sync_new_<fetchop_name><mode>): Dito.
4944         (sync_new_nand<mode>): Ditto.
4945         (sync_compare_and_swap<mode>_1): Ditto.
4946         (*sync_compare_and_swap<mode>): Ditto.
4947         (sync_lock_test_and_set<mode>_1): Ditto.
4948         ("sync_lock_test_and_set<mode>): Ditto.
4949
4950 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
4951
4952         * hwint.h (HOST_LONG_FORMAT): New macro
4953         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
4954         Use HOST_PTR_PRINTF.
4955         * system.h (HOST_PTR_PRINTF): Resurrect old macro
4956         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
4957         (HOST_PTR_PRINTF): Document.
4958
4959 2009-08-25 Jan Hubicka  <jh@suse.cz>
4960
4961         * config/i386/bmmintrin.h: Replace by #error.
4962
4963         Revert:
4964         Michael Meissner  <michael.meissner@amd.com>
4965         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4966         Tony Linthicum  <tony.linthicum@amd.com>
4967
4968         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
4969         (TARGET_ROUND): New macro for the round/ptest instructions which
4970         are shared between SSE4.1 and SSE5.
4971         (OPTION_MASK_ISA_ROUND): Ditto.
4972         (OPTION_ISA_ROUND): Ditto.
4973         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
4974         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
4975
4976         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
4977         (-mfused-madd): New switch to give users control over whether the
4978         compiler optimizes to use the multiply/add SSE5 instructions.
4979
4980         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
4981         (ix86_handle_option): Turn off 3dnow if -msse5.
4982         (override_options): Add SSE5 support.
4983         (print_operand): %Y prints comparison codes for SSE5 com/pcom
4984         instructions.
4985         (ix86_expand_sse_movcc): Add SSE5 support.
4986         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
4987         vector type to the next largest size.
4988         (ix86_expand_sse5_pack): New function to use pperm to pack a
4989         vector type to the next smallest size.
4990         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
4991         (IX86_BUILTIN_FMADDSD): Ditto.
4992         (IX86_BUILTIN_FMADDPS): Ditto.
4993         (IX86_BUILTIN_FMADDPD): Ditto.
4994         (IX86_BUILTIN_FMSUBSS): Ditto.
4995         (IX86_BUILTIN_FMSUBSD): Ditto.
4996         (IX86_BUILTIN_FMSUBPS): Ditto.
4997         (IX86_BUILTIN_FMSUBPD): Ditto.
4998         (IX86_BUILTIN_FNMADDSS): Ditto.
4999         (IX86_BUILTIN_FNMADDSD): Ditto.
5000         (IX86_BUILTIN_FNMADDPS): Ditto.
5001         (IX86_BUILTIN_FNMADDPD): Ditto.
5002         (IX86_BUILTIN_FNMSUBSS): Ditto.
5003         (IX86_BUILTIN_FNMSUBSD): Ditto.
5004         (IX86_BUILTIN_FNMSUBPS): Ditto.
5005         (IX86_BUILTIN_FNMSUBPD): Ditto.
5006         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
5007         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
5008         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
5009         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
5010         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
5011         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
5012         (IX86_BUILTIN_PPERM): Ditto.
5013         (IX86_BUILTIN_PERMPS): Ditto.
5014         (IX86_BUILTIN_PERMPD): Ditto.
5015         (IX86_BUILTIN_PMACSSWW): Ditto.
5016         (IX86_BUILTIN_PMACSWW): Ditto.
5017         (IX86_BUILTIN_PMACSSWD): Ditto.
5018         (IX86_BUILTIN_PMACSWD): Ditto.
5019         (IX86_BUILTIN_PMACSSDD): Ditto.
5020         (IX86_BUILTIN_PMACSDD): Ditto.
5021         (IX86_BUILTIN_PMACSSDQL): Ditto.
5022         (IX86_BUILTIN_PMACSSDQH): Ditto.
5023         (IX86_BUILTIN_PMACSDQL): Ditto.
5024         (IX86_BUILTIN_PMACSDQH): Ditto.
5025         (IX86_BUILTIN_PMADCSSWD): Ditto.
5026         (IX86_BUILTIN_PMADCSWD): Ditto.
5027         (IX86_BUILTIN_PHADDBW): Ditto.
5028         (IX86_BUILTIN_PHADDBD): Ditto.
5029         (IX86_BUILTIN_PHADDBQ): Ditto.
5030         (IX86_BUILTIN_PHADDWD): Ditto.
5031         (IX86_BUILTIN_PHADDWQ): Ditto.
5032         (IX86_BUILTIN_PHADDDQ): Ditto.
5033         (IX86_BUILTIN_PHADDUBW): Ditto.
5034         (IX86_BUILTIN_PHADDUBD): Ditto.
5035         (IX86_BUILTIN_PHADDUBQ): Ditto.
5036         (IX86_BUILTIN_PHADDUWD): Ditto.
5037         (IX86_BUILTIN_PHADDUWQ): Ditto.
5038         (IX86_BUILTIN_PHADDUDQ): Ditto.
5039         (IX86_BUILTIN_PHSUBBW): Ditto.
5040         (IX86_BUILTIN_PHSUBWD): Ditto.
5041         (IX86_BUILTIN_PHSUBDQ): Ditto.
5042         (IX86_BUILTIN_PROTB): Ditto.
5043         (IX86_BUILTIN_PROTW): Ditto.
5044         (IX86_BUILTIN_PROTD): Ditto.
5045         (IX86_BUILTIN_PROTQ): Ditto.
5046         (IX86_BUILTIN_PROTB_IMM): Ditto.
5047         (IX86_BUILTIN_PROTW_IMM): Ditto.
5048         (IX86_BUILTIN_PROTD_IMM): Ditto.
5049         (IX86_BUILTIN_PROTQ_IMM): Ditto.
5050         (IX86_BUILTIN_PSHLB): Ditto.
5051         (IX86_BUILTIN_PSHLW): Ditto.
5052         (IX86_BUILTIN_PSHLD): Ditto.
5053         (IX86_BUILTIN_PSHLQ): Ditto.
5054         (IX86_BUILTIN_PSHAB): Ditto.
5055         (IX86_BUILTIN_PSHAW): Ditto.
5056         (IX86_BUILTIN_PSHAD): Ditto.
5057         (IX86_BUILTIN_PSHAQ): Ditto.
5058         (IX86_BUILTIN_FRCZSS): Ditto.
5059         (IX86_BUILTIN_FRCZSD): Ditto.
5060         (IX86_BUILTIN_FRCZPS): Ditto.
5061         (IX86_BUILTIN_FRCZPD): Ditto.
5062         (IX86_BUILTIN_CVTPH2PS): Ditto.
5063         (IX86_BUILTIN_CVTPS2PH): Ditto.
5064         (IX86_BUILTIN_COMEQSS): Ditto.
5065         (IX86_BUILTIN_COMNESS): Ditto.
5066         (IX86_BUILTIN_COMLTSS): Ditto.
5067         (IX86_BUILTIN_COMLESS): Ditto.
5068         (IX86_BUILTIN_COMGTSS): Ditto.
5069         (IX86_BUILTIN_COMGESS): Ditto.
5070         (IX86_BUILTIN_COMUEQSS): Ditto.
5071         (IX86_BUILTIN_COMUNESS): Ditto.
5072         (IX86_BUILTIN_COMULTSS): Ditto.
5073         (IX86_BUILTIN_COMULESS): Ditto.
5074         (IX86_BUILTIN_COMUGTSS): Ditto.
5075         (IX86_BUILTIN_COMUGESS): Ditto.
5076         (IX86_BUILTIN_COMORDSS): Ditto.
5077         (IX86_BUILTIN_COMUNORDSS): Ditto.
5078         (IX86_BUILTIN_COMFALSESS): Ditto.
5079         (IX86_BUILTIN_COMTRUESS): Ditto.
5080         (IX86_BUILTIN_COMEQSD): Ditto.
5081         (IX86_BUILTIN_COMNESD): Ditto.
5082         (IX86_BUILTIN_COMLTSD): Ditto.
5083         (IX86_BUILTIN_COMLESD): Ditto.
5084         (IX86_BUILTIN_COMGTSD): Ditto.
5085         (IX86_BUILTIN_COMGESD): Ditto.
5086         (IX86_BUILTIN_COMUEQSD): Ditto.
5087         (IX86_BUILTIN_COMUNESD): Ditto.
5088         (IX86_BUILTIN_COMULTSD): Ditto.
5089         (IX86_BUILTIN_COMULESD): Ditto.
5090         (IX86_BUILTIN_COMUGTSD): Ditto.
5091         (IX86_BUILTIN_COMUGESD): Ditto.
5092         (IX86_BUILTIN_COMORDSD): Ditto.
5093         (IX86_BUILTIN_COMUNORDSD): Ditto.
5094         (IX86_BUILTIN_COMFALSESD): Ditto.
5095         (IX86_BUILTIN_COMTRUESD): Ditto.
5096         (IX86_BUILTIN_COMEQPS): Ditto.
5097         (IX86_BUILTIN_COMNEPS): Ditto.
5098         (IX86_BUILTIN_COMLTPS): Ditto.
5099         (IX86_BUILTIN_COMLEPS): Ditto.
5100         (IX86_BUILTIN_COMGTPS): Ditto.
5101         (IX86_BUILTIN_COMGEPS): Ditto.
5102         (IX86_BUILTIN_COMUEQPS): Ditto.
5103         (IX86_BUILTIN_COMUNEPS): Ditto.
5104         (IX86_BUILTIN_COMULTPS): Ditto.
5105         (IX86_BUILTIN_COMULEPS): Ditto.
5106         (IX86_BUILTIN_COMUGTPS): Ditto.
5107         (IX86_BUILTIN_COMUGEPS): Ditto.
5108         (IX86_BUILTIN_COMORDPS): Ditto.
5109         (IX86_BUILTIN_COMUNORDPS): Ditto.
5110         (IX86_BUILTIN_COMFALSEPS): Ditto.
5111         (IX86_BUILTIN_COMTRUEPS): Ditto.
5112         (IX86_BUILTIN_COMEQPD): Ditto.
5113         (IX86_BUILTIN_COMNEPD): Ditto.
5114         (IX86_BUILTIN_COMLTPD): Ditto.
5115         (IX86_BUILTIN_COMLEPD): Ditto.
5116         (IX86_BUILTIN_COMGTPD): Ditto.
5117         (IX86_BUILTIN_COMGEPD): Ditto.
5118         (IX86_BUILTIN_COMUEQPD): Ditto.
5119         (IX86_BUILTIN_COMUNEPD): Ditto.
5120         (IX86_BUILTIN_COMULTPD): Ditto.
5121         (IX86_BUILTIN_COMULEPD): Ditto.
5122         (IX86_BUILTIN_COMUGTPD): Ditto.
5123         (IX86_BUILTIN_COMUGEPD): Ditto.
5124         (IX86_BUILTIN_COMORDPD): Ditto.
5125         (IX86_BUILTIN_COMUNORDPD): Ditto.
5126         (IX86_BUILTIN_COMFALSEPD): Ditto.
5127         (IX86_BUILTIN_COMTRUEPD): Ditto.
5128         (IX86_BUILTIN_PCOMEQUB): Ditto.
5129         (IX86_BUILTIN_PCOMNEUB): Ditto.
5130         (IX86_BUILTIN_PCOMLTUB): Ditto.
5131         (IX86_BUILTIN_PCOMLEUB): Ditto.
5132         (IX86_BUILTIN_PCOMGTUB): Ditto.
5133         (IX86_BUILTIN_PCOMGEUB): Ditto.
5134         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
5135         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
5136         (IX86_BUILTIN_PCOMEQUW): Ditto.
5137         (IX86_BUILTIN_PCOMNEUW): Ditto.
5138         (IX86_BUILTIN_PCOMLTUW): Ditto.
5139         (IX86_BUILTIN_PCOMLEUW): Ditto.
5140         (IX86_BUILTIN_PCOMGTUW): Ditto.
5141         (IX86_BUILTIN_PCOMGEUW): Ditto.
5142         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
5143         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
5144         (IX86_BUILTIN_PCOMEQUD): Ditto.
5145         (IX86_BUILTIN_PCOMNEUD): Ditto.
5146         (IX86_BUILTIN_PCOMLTUD): Ditto.
5147         (IX86_BUILTIN_PCOMLEUD): Ditto.
5148         (IX86_BUILTIN_PCOMGTUD): Ditto.
5149         (IX86_BUILTIN_PCOMGEUD): Ditto.
5150         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
5151         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
5152         (IX86_BUILTIN_PCOMEQUQ): Ditto.
5153         (IX86_BUILTIN_PCOMNEUQ): Ditto.
5154         (IX86_BUILTIN_PCOMLTUQ): Ditto.
5155         (IX86_BUILTIN_PCOMLEUQ): Ditto.
5156         (IX86_BUILTIN_PCOMGTUQ): Ditto.
5157         (IX86_BUILTIN_PCOMGEUQ): Ditto.
5158         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
5159         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
5160         (IX86_BUILTIN_PCOMEQB): Ditto.
5161         (IX86_BUILTIN_PCOMNEB): Ditto.
5162         (IX86_BUILTIN_PCOMLTB): Ditto.
5163         (IX86_BUILTIN_PCOMLEB): Ditto.
5164         (IX86_BUILTIN_PCOMGTB): Ditto.
5165         (IX86_BUILTIN_PCOMGEB): Ditto.
5166         (IX86_BUILTIN_PCOMFALSEB): Ditto.
5167         (IX86_BUILTIN_PCOMTRUEB): Ditto.
5168         (IX86_BUILTIN_PCOMEQW): Ditto.
5169         (IX86_BUILTIN_PCOMNEW): Ditto.
5170         (IX86_BUILTIN_PCOMLTW): Ditto.
5171         (IX86_BUILTIN_PCOMLEW): Ditto.
5172         (IX86_BUILTIN_PCOMGTW): Ditto.
5173         (IX86_BUILTIN_PCOMGEW): Ditto.
5174         (IX86_BUILTIN_PCOMFALSEW): Ditto.
5175         (IX86_BUILTIN_PCOMTRUEW): Ditto.
5176         (IX86_BUILTIN_PCOMEQD): Ditto.
5177         (IX86_BUILTIN_PCOMNED): Ditto.
5178         (IX86_BUILTIN_PCOMLTD): Ditto.
5179         (IX86_BUILTIN_PCOMLED): Ditto.
5180         (IX86_BUILTIN_PCOMGTD): Ditto.
5181         (IX86_BUILTIN_PCOMGED): Ditto.
5182         (IX86_BUILTIN_PCOMFALSED): Ditto.
5183         (IX86_BUILTIN_PCOMTRUED): Ditto.
5184         (IX86_BUILTIN_PCOMEQQ): Ditto.
5185         (IX86_BUILTIN_PCOMNEQ): Ditto.
5186         (IX86_BUILTIN_PCOMLTQ): Ditto.
5187         (IX86_BUILTIN_PCOMLEQ): Ditto.
5188         (IX86_BUILTIN_PCOMGTQ): Ditto.
5189         (IX86_BUILTIN_PCOMGEQ): Ditto.
5190         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
5191         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
5192         (enum multi_arg_type): New enum for describing the various SSE5
5193         intrinsic argument types.
5194         (bdesc_multi_arg): New table for SSE5 intrinsics.
5195         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
5196         (ix86_expand_multi_arg_builtin): New function for creating SSE5
5197         intrinsics.
5198         (ix86_expand_builtin): Add SSE5 intrinsic support.
5199         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
5200         operand instructions.
5201         (ix86_expand_sse5_multiple_memory): New function to split the
5202         second memory reference from SSE5 instructions.
5203         (type_has_variadic_args_p): Delete in favor of stdarg_p.
5204         (ix86_return_pops_args): Use stdarg_p to determine if the function
5205         has variable arguments.
5206         (ix86_setup_incoming_varargs): Ditto.
5207         (x86_this_parameter): Ditto.
5208
5209         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
5210         declaration.
5211         (ix86_expand_sse5_pack): Ditto.
5212         (ix86_sse5_valid_op_p): Ditto.
5213         (ix86_expand_sse5_multiple_memory): Ditto.
5214
5215         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
5216         constant for SSE5 support.
5217         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
5218         (UNSPEC_SSE5_TRUEFALSE): Ditto.
5219         (UNSPEC_SSE5_PERMUTE): Ditto.
5220         (UNSPEC_SSE5_ASHIFT): Ditto.
5221         (UNSPEC_SSE5_LSHIFT): Ditto.
5222         (UNSPEC_FRCZ): Ditto.
5223         (UNSPEC_CVTPH2PS): Ditto.
5224         (UNSPEC_CVTPS2PH): Ditto.
5225         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
5226         (PCOM_TRUE): Ditto.
5227         (COM_FALSE_S): Ditto.
5228         (COM_FALSE_P): Ditto.
5229         (COM_TRUE_S): Ditto.
5230         (COM_TRUE_P): Ditto.
5231         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
5232         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
5233         types.
5234         (memory attribute): Ditto.
5235         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
5236         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
5237         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
5238         (floor<mode>2): Ditto.
5239         (ceil<mode>2): Ditto.
5240         (btrunc<mode>2): Ditto.
5241         (nearbyintdf2): Ditto.
5242         (nearbyintsf2): Ditto.
5243         (sse_setccsf): Disable if SSE5.
5244         (sse_setccdf): Ditto.
5245         (sse5_setcc<mode>): New support for SSE5 conditional move.
5246         (sse5_pcmov_<mode>): Ditto.
5247
5248         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
5249         (SSEMODEF4): Ditto.
5250         (SSEMODEF2P): Ditto.
5251         (ssemodesuffixf4): New mode attribute for SSE5.
5252         (ssemodesuffixf2s): Ditto.
5253         (ssemodesuffixf2c): Ditto.
5254         (sserotatemax): Ditto.
5255         (ssescalarmode): Ditto.
5256         (sse_maskcmpv4sf3): Disable if SSE5.
5257         (sse_maskcmpv2df3): Ditto.
5258         (sse_vmmaskcmpv4sf3): Ditto.
5259         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
5260         (sse5_vmfmadd<mode>4): Ditto.
5261         (sse5_fmsub<mode>4): Ditto.
5262         (sse5_vmfmsub<mode>4): Ditto.
5263         (sse5_fnmadd<mode>4): Ditto.
5264         (sse5_vmfnmadd<mode>4): Ditto.
5265         (sse5_fnmsub<mode>4): Ditto.
5266         (sse5_vmfnmsub<mode>4): Ditto.
5267         (sse5i_fmadd<mode>4): Ditto.
5268         (sse5i_fmsub<mode>4): Ditto.
5269         (sse5i_fnmadd<mode>4): Ditto.
5270         (sse5i_fnmsub<mode>4): Ditto.
5271         (sse5i_vmfmadd<mode>4): Ditto.
5272         (sse5i_vmfmsub<mode>4): Ditto.
5273         (sse5i_vmfnmadd<mode>4): Ditto.
5274         (sse5i_vmfnmsub<mode>4): Ditto.
5275         (mulv16qi3): Add SSE5 support.
5276         (mulv4si3): Ditto.
5277         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
5278         (sse2_mulv4si3): Disable if SSE5.
5279         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
5280         (sse4_1_roundps): Ditto.
5281         (sse4_1_roundsd): Ditto.
5282         (sse4_1_roundss): Ditto.
5283         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
5284         be generated.
5285         (sse_maskcmpsf3): Ditto.
5286         (sse_vmmaskcmpv4sf3): Ditto.
5287         (sse2_maskcmpv2df3): Ditto.
5288         (sse2_maskcmpdf3): Ditto.
5289         (sse2_vmmaskcmpv2df3): Ditto.
5290         (sse2_eq<mode>3): Ditto.
5291         (sse2_gt<mode>3): Ditto.
5292         (sse5_pcmov_<mode>): Add SSE5 support.
5293         (vec_unpacku_hi_v16qi): Ditto.
5294         (vec_unpacks_hi_v16qi): Ditto.
5295         (vec_unpacku_lo_v16qi): Ditto.
5296         (vec_unpacks_lo_v16qi): Ditto.
5297         (vec_unpacku_hi_v8hi): Ditto.
5298         (vec_unpacks_hi_v8hi): Ditto.
5299         (vec_unpacku_lo_v8hi): Ditto.
5300         (vec_unpacks_lo_v8hi): Ditto.
5301         (vec_unpacku_hi_v4si): Ditto.
5302         (vec_unpacks_hi_v4si): Ditto.
5303         (vec_unpacku_lo_v4si): Ditto.
5304         (vec_unpacks_lo_v4si): Ditto.
5305         (sse5_pmacsww): New SSE5 intrinsic insn.
5306         (sse5_pmacssww): Ditto.
5307         (sse5_pmacsdd): Ditto.
5308         (sse5_pmacssdd): Ditto.
5309         (sse5_pmacssdql): Ditto.
5310         (sse5_pmacssdqh): Ditto.
5311         (sse5_pmacsdqh): Ditto.
5312         (sse5_pmacsswd): Ditto.
5313         (sse5_pmacswd): Ditto.
5314         (sse5_pmadcsswd): Ditto.
5315         (sse5_pmadcswd): Ditto.
5316         (sse5_pcmov_<move>): Conditional move support on SSE5.
5317         (sse5_phaddbw): New SSE5 intrinsic insn.
5318         (sse5_phaddbd): Ditto.
5319         (sse5_phaddbq): Ditto.
5320         (sse5_phaddwd): Ditto.
5321         (sse5_phaddwq): Ditto.
5322         (sse5_phadddq): Ditto.
5323         (sse5_phaddubw): Ditto.
5324         (sse5_phaddubd): Ditto.
5325         (sse5_phaddubq): Ditto.
5326         (sse5_phadduwd): Ditto.
5327         (sse5_phadduwq): Ditto.
5328         (sse5_phaddudq): Ditto.
5329         (sse5_phsubbw): Ditto.
5330         (sse5_phsubwd): Ditto.
5331         (sse5_phsubdq): Ditto.
5332         (sse5_pperm): Ditto.
5333         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
5334         (sse5_pperm_zero_v16qi_v8hi): Ditto.
5335         (sse5_pperm_sign_v8hi_v4si): Ditto.
5336         (sse5_pperm_zero_v8hi_v4si): Ditto.
5337         (sse5_pperm_sign_v4si_v2di): Ditto.
5338         (sse5_pperm_sign_v4si_v2di): Ditto.
5339         (sse5_pperm_pack_v2di_v4si): Ditto.
5340         (sse5_pperm_pack_v4si_v8hi): Ditto.
5341         (sse5_pperm_pack_v8hi_v16qi): Ditto.
5342         (sse5_perm<mode>): New SSE5 intrinsic insn.
5343         (rotl<mode>3): Ditto.
5344         (sse5_rotl<mode>3): Ditto.
5345         (sse5_ashl<mode>3): Ditto.
5346         (sse5_lshl<mode>3): Ditto.
5347         (sse5_frcz<mode>2): Ditto.
5348         (sse5s_frcz<mode>2): Ditto.
5349         (sse5_cvtph2ps): Ditto.
5350         (sse5_cvtps2ph): Ditto.
5351         (sse5_vmmaskcmp<mode>3): Ditto.
5352         (sse5_com_tf<mode>3): Ditto.
5353         (sse5_maskcmp<mode>3): Ditto.
5354         (sse5_maskcmp_uns<mode>3): Ditto.
5355         (sse5_maskcmp_uns2<mode>3): Ditto.
5356         (sse5_pcom_tf<mode>3): Ditto.
5357
5358         * config/i386/predicates.md (sse5_comparison_float_operator):
5359         New predicate to match the comparison operators supported by
5360         the SSE5 com instruction.
5361         (ix86_comparison_int_operator): New predicate to match just the
5362         signed int comparisons.
5363         (ix86_comparison_uns_operator): New predicate to match just the
5364         unsigned int comparisons.
5365
5366         * doc/invoke.texi (-msse5): Add documentation.
5367         (-mfused-madd): Ditto.
5368
5369         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
5370
5371         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
5372         mmintrin-common.h.
5373         (x86_64-*-*): Ditto.
5374
5375         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
5376
5377         * config/i386/bmmintrin.h: New file, provide common x86 compiler
5378         intrinisics for SSE5.
5379
5380         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
5381         mmintrin-common.h.
5382
5383         * config/i386/mmintrin-common.h: New file, to contain common
5384         instructions between SSE4.1 and SSE5.
5385
5386         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
5387         FOREACH_FUNCTION_ARGS to iterate over the argument list.
5388         (gen_regparm_prefix): Ditto.
5389
5390         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
5391         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
5392         prototype_p to determine if a function is prototyped.
5393
5394 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
5395
5396         * c-common.c (c_common_reswords) add the alignof keyword,
5397         with same RID as __alignof and __alignof__
5398
5399 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
5400
5401         * hooks.h (hook_bool_const_int_const_int_true): Declare.
5402         * hooks.c (hook_bool_const_int_const_int_true): New function.
5403         * target.h (struct gcc_target): Add can_eliminate field.
5404         * target-def.h (TARGET_CAN_ELIMINATE): Define.
5405         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
5406         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
5407         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
5408         (elim_table): Revise comment.
5409         * system.h (CAN_ELIMINATE): Poison.
5410         * defaults.h (CAN_ELIMINATE): Remove.
5411         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
5412
5413         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
5414         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
5415         Define macro.
5416         (alpha_vms_can_eliminate): Declare as static, change return type to
5417         bool.
5418         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
5419
5420         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
5421         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
5422         (arm_can_eliminate): New function.
5423
5424         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
5425         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
5426         (avr_can_eliminate): Declare as static.
5427         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
5428
5429         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
5430         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
5431         (bfin_can_eliminate): New function.
5432
5433         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
5434         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
5435         (crx_can_eliminate): New function.
5436
5437         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
5438         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
5439         (fr30_can_eliminate): New function.
5440
5441         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
5442         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
5443         (frv_can_eliminate): New function.
5444
5445         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
5446         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
5447         (h8300_can_eliminate): New function.
5448
5449         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
5450         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
5451         (i386_can_eliminate): Declare as static, change return type to bool.
5452         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
5453
5454         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
5455         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
5456         (ia64_can_eliminate): New function.
5457
5458         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
5459         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
5460         (iq2000_can_eliminate): New function.
5461
5462         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
5463         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
5464         (m32r_can_eliminate): New function.
5465
5466         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
5467         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
5468         (m68hc11_can_eliminate): New function.
5469
5470         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
5471         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
5472         (m68k_can_eliminate): New function.
5473
5474         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
5475         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
5476         (mep_can_eliminate): New function.
5477
5478         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
5479         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
5480         (mips_can_eliminate): New function.
5481
5482         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
5483         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
5484         (rs6000_can_eliminate): New function.
5485
5486         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
5487         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
5488         (s390_can_eliminate): Declare as static.
5489         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
5490
5491         * config/score/score.h (CAN_ELIMINATE): Remove macro.
5492         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
5493         (score_can_eliminate): New function.
5494
5495         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
5496         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
5497         (sparc_can_eliminate): Declare as static.
5498         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
5499
5500         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
5501         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
5502         (xstormy16_can_eliminate): New function.
5503
5504         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
5505         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
5506         (v850_can_eliminate): New function.
5507
5508 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
5509
5510         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
5511         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
5512         (*movdfcc_ext[1234]): Disable for IEEE mode.
5513
5514 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
5515
5516         * gimplify.c (prepare_gimple_addressable): New static function.
5517         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
5518         it addressable.
5519         (gimplify_addr_expr): Invoke it similarly on the operand instead of
5520         manually fiddling with it.
5521
5522 2009-08-25  Michael Matz  <matz@suse.de>
5523
5524         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
5525         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
5526         full expression.
5527         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
5528         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
5529         (do_jump): Split out code for simple binary comparisons into ...
5530         (do_jump_1): ... this, taking the individual operands and code.
5531         Change callers to helper function above accordingly.
5532         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
5533         comparisons.
5534
5535 2009-08-25  Michael Matz  <matz@suse.de>
5536
5537         * expr.h (struct separate_ops, sepops): New type for passing
5538         around an exploded simple expression.
5539         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
5540         Use this structure instead of expression tree.
5541         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
5542         expression, only its type.
5543         (expand_vec_cond_expr): Take type and individual operands instead
5544         of full expression.
5545         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
5546         expand_vec_shift_expr): Change prototype accordingly.
5547         * tree-vect-stmts.c (vectorizable_condition): Change call of
5548         expand_vec_cond_expr_p to pass only type.
5549         * expr.c (do_store_flags): Change prototype and implementation
5550         to take an exploded expression.
5551         (expand_expr_real_1): New local ops initialized with details
5552         of the full expression.  Use it instead of full
5553         expression in calls to do_store_flags, expand_vec_cond_expr,
5554         expand_widen_pattern_expr and expand_vec_shift_expr.
5555
5556 2009-08-25  Michael Matz  <matz@suse.de>
5557
5558         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
5559         treeop2 initialized with first three operands of the full expression.
5560         Substitute all TREE_OPERAND (exp, [012]) calls with them.
5561
5562 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
5563
5564         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
5565         (__gthread_objc_condition_allocate): Mark arguments as unused.
5566         (__gthread_objc_condition_deallocate): Likewise.
5567         (__gthread_objc_condition_wait): Likewise.
5568         (__gthread_objc_condition_broadcast): Likewise.
5569         (__gthread_objc_condition_signal): Likewise.
5570         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
5571         (__gthread_objc_thread_id): Likewise.
5572
5573 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
5574
5575         PR middle-end/41149
5576         * tree-pretty-print.c (print_call_name): Print the correct call name
5577         for procedure pointer components.
5578
5579 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
5580
5581         * config/ia64/ia64.c (ia64_promote_function_mode): Call
5582         default_promote_function_mode when not VMS.
5583
5584 2009-08-24  Olivier Hainque  <hainque@adacore.com>
5585
5586         * convert.c (convert_to_integer): Don't assume an input pointer is
5587         POINTER_SIZE wide.  Fetch from the type instead.
5588
5589 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5590
5591         * configure.ac (AC_PREREQ): Bump to 2.64.
5592
5593 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
5594
5595         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
5596         (process_command): Don't search standard_exec_prefix_1 and
5597         standard_exec_prefix_2.
5598
5599 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5600
5601         * config/arm/arm.c (output_return_instruction): Handle for
5602         unified syntax.
5603
5604 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5605
5606         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
5607
5608 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5609
5610         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
5611         (*arm_movdf_vfp): Likewise.
5612
5613 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5614
5615         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
5616         (vashr<mode>3): Rename from ashr<mode>3.
5617         (vlshr<mode>3): Rename from lshr<mode>3.
5618
5619 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
5620
5621         PR/40786
5622         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
5623         (check_format_info_main): Use scalar_identify_flag.
5624         (check_format_types): Check for scalar size identity if
5625         scalar_identify_flag is set.
5626         (printf_length_specs): Extend by new field.
5627         (asm_fprintf_length_specs): Likewise.
5628         (gcc_diag_length_specs): Likewise.
5629         (scanf_length_specs): Likewise.
5630         (strfmon_length_specs): Likewise.
5631         (gcc_gfc_length_specs): Likewise.
5632         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
5633         (ms_printf_flag_specs): Likewise.
5634         * c-format.h (format_length_info): Add new member scalar_identity_flag.
5635
5636 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
5637
5638         PR target/40718
5639         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
5640         (*call_value_pop_1): Ditto.
5641         (*sibcall_pop_1): New insn pattern.
5642         (*sibcall_value_pop_1): Ditto.
5643
5644 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
5645
5646         PR target/41081
5647         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
5648         ashrsi3_64): New.
5649
5650 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
5651
5652         PR target/41081
5653         * fwprop.c (try_fwprop_subst): Allow multiple sets.
5654         (get_reg_use_in): New function.
5655         (forward_propagate_subreg): Propagate through subreg of zero_extend
5656         or sign_extend.
5657
5658 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
5659
5660         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
5661         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
5662
5663 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5664
5665         * configure.ac: Remove --with-datarootdir, --with-docdir,
5666         --with-htmldir switches.  No need to call AC_SUBST for
5667         datarootdir, docdir, htmldir any more.
5668         * configure: Regenerate.
5669         * doc/install.texi (Configuration): Document --datarootdir,
5670         --docdir, --htmldir, --pdfdir; update documentation for
5671         --infodir, --mandir.
5672         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
5673         M4 to 1.4.6.
5674
5675         * aclocal.m4: Regenerate.
5676         * config.in: Regenerate.
5677         * configure: Regenerate.
5678
5679 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
5680             Olivier Hainque  <hainque@adacore.com>
5681
5682         * config/ia64/ia64.c: Include libfuncs.h.
5683         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
5684         (ia64_expand_call): Use reg 25 on VMS.
5685         (ia64_initialize_trampoline): Fix for VMS ABI.
5686         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
5687         (ia64_function_arg): Initialize reg 25 on VMS.
5688         Fix OpenVMS ABI issues for varargs.
5689         For OpenVMS, emit the Argument Information register set in the
5690         incoming/sibcall case as well.
5691         (ia64_arg_type): New function.
5692         (ia64_function_arg_advance): Keep track of cum->words.
5693         Fix OpenVMS ABI issues for varargs.
5694         (ia64_function_value): On VMS, promote mode of non-aggregate types.
5695         (ia64_override_options): Set flag_no_common on VMS.
5696         (ia64_init_builtins): Disable FWRITE builtin.
5697         (ia64_asm_output_external): Call DO_CRTL_NAMES.
5698         (ia64_vms_init_libfuncs): Add decc$ routines.
5699         (ia64_vms_valid_pointer_mode): New function.
5700         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
5701         (ia64_promote_function_mode): New function
5702         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
5703         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
5704         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
5705         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
5706         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
5707         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
5708         Suppress trailing '#' if VALUE is numeric.
5709         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
5710         ia64_promote_function_mode.
5711         (TARGET_VALID_POINTER_MODE): Define.
5712
5713 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
5714
5715         PR target/40671
5716         * config/rs6000/rs6000.c (rs6000_override_options): Use
5717         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
5718
5719         PR target/41145
5720         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
5721         reporting of vector + decimal/boolean/complex error.
5722
5723 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
5724
5725         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
5726         __vector double TYPE_DECL.
5727
5728 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
5729
5730         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
5731         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
5732         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
5733         to pointer to enum machine_mode.  Update all callers as needed.
5734
5735 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
5736
5737         * config/alpha/alpha.md (exception_receiver): Emit alternative
5738         GP load sequence if flag_reorder_blocks_and_partition is set.
5739         (*exception_receiver_2): Also enable when
5740         flag_reorder_blocks_and_partition is set.
5741
5742 2009-08-20  Matt Rice  <ratmice@gmail.com>
5743             Diego Novillo  <dnovillo@google.com>
5744
5745         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
5746         tree-ssa-sccvn.h.
5747
5748 2009-08-20  Richard Guenther  <rguenther@suse.de>
5749
5750         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
5751         * c-tree.h (c_dup_lang_specific_decl): Remove.
5752         (struct lang_decl, struct lang_type): Move definitions ...
5753         * c-lang.h: ... here.  New file.
5754         * c-decl.c: Include c-lang.h.
5755         (c_dup_lang_specific_decl): Remove.
5756         * c-typeck.c: Include c-lang.h.
5757         * Makefile.in (c-decl.o): Add c-lang.h dependency.
5758         (c-typeck.o): Likewise.
5759         * c-config-lang.in (gtfiles): Add c-lang.h.
5760         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
5761         like c-tree.h.
5762
5763 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
5764
5765         * config/alpha/alpha.c (alpha_end_function): Do not clear
5766         crtl->emit structure and free insn locators if cfun->is_thunk is true,
5767         this is now handled in generic code.
5768
5769 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
5770
5771         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
5772         (s390_z10_fix_long_loop_prediction): New function.
5773         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
5774         (s390_reorg): Walk over the INSNs and invoke
5775         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
5776
5777 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
5778
5779         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
5780         "*brx_64bit", "*brx_31bit"): New patterns.
5781         * config/s390/s390.c ('E'): New output modifier.
5782
5783 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5784             Richard Earnshaw  <richard.earnshaw@arm.com>
5785
5786         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
5787         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
5788
5789 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5790
5791         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
5792         patterns.
5793         * pa.c (emit_move_sequence): Check if address of operand1 is valid
5794         for mode mode of operand0 when doing secondary reload for SAR.
5795
5796 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
5797
5798         PR middle-end/41123
5799         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
5800         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
5801
5802 2009-08-19  Jason Merrill  <jason@redhat.com>
5803
5804         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
5805         supported template depth in C++0x.
5806
5807 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
5808
5809         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
5810         free_after_compilation.
5811         * config/score/score7.c (score7_output_mi_thunk): Likewise.
5812         * config/score/score3.c (score3_output_mi_thunk): Likewise.
5813         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
5814         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
5815         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
5816         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
5817         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5818
5819 2009-08-19  Ian Lance Taylor  <iant@google.com>
5820
5821         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
5822         of (plus (mult (neg B) C) A).
5823
5824 2009-08-18  Michael Matz  <matz@suse.de>
5825
5826         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
5827         instead of comparing TYPE_MAIN_VARIANT for equality.
5828         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
5829         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
5830         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
5831         * gimplify.c (goa_lhs_expr_p): Ditto and use
5832         STRIP_USELESS_TYPE_CONVERSION.
5833
5834 2009-08-18  Michael Matz  <matz@suse.de>
5835
5836         * tree-ssa-structalias.c (create_variable_info_for): Also mark
5837         first field in a struct.
5838         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
5839
5840 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
5841
5842         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
5843         locators before emit_insn is called.  Remove assert that
5844         cfun->is_thunk.
5845         (alpha_end_function): Clear crtl->emit structure and free insn
5846         locators if cfun->is_thunk is true.
5847
5848 2009-08-18  Jason Merrill  <jason@redhat.com>
5849
5850         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
5851         type if available.
5852         * configure.ac: Test for it.
5853         * configure, config.in: Regenerate.
5854         * doc/install.texi: Document --enable-gnu-unique-object.
5855
5856 2009-08-18  Richard Guenther  <rguenther@suse.de>
5857
5858         PR middle-end/41094
5859         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
5860         pow(x,y*z) only if x is nonnegative.
5861
5862 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
5863
5864         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
5865         on jumps.
5866
5867         PR target/40971
5868         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
5869         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
5870
5871 2009-08-17  DJ Delorie  <dj@redhat.com>
5872
5873         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
5874         * config/m32c/prologue.md (epilogue_freit): New.
5875         (fset_b): New.
5876         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
5877         (bank_switch_p): Likewise.
5878         (fast_interrupt_p): Likewise.
5879         (interrupt_p): Likewise.
5880         (m32c_conditional_register_usage): Round memregs size up.
5881         (need_to_save): We only need to save $a0 when we use ENTER.
5882         (interrupt_p): Check for fast_interrupt too.
5883         (bank_switch_p): New.
5884         (fast_interrupt_p): New.
5885         (m32c_attribute_table): Add bank_switch and fast_interrupt.
5886         (m32c_emit_prolog): Support bank switching and fast interrupts.
5887         * doc/extend.texi (Function Attributes): Add bank_switch and
5888         fast_interrupt.
5889
5890 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
5891
5892         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
5893         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
5894
5895 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
5896
5897         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
5898         (menu): Add IA-64/VMS Options.
5899         (IA-64/VMS Options): Likewise.
5900
5901 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
5902
5903         PR target/38599
5904         * config/mips/mips.md (*lwxs): Use :P for pointer values.
5905
5906 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
5907
5908         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
5909         (mips_pop_asm_switch): Likewise.
5910         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
5911         with...
5912         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
5913         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
5914         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
5915         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
5916         instead of set_noreorder.
5917         (mips_output_function_prologue): Use the new functions.
5918         (mips_output_function_epilogue): Likewise.
5919         (mips_need_noat_wrapper_p): New function, split out from...
5920         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
5921         Use mips_push_asm_switch and mips_pop_asm_switch.
5922         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
5923         and mips_pop_asm_switch.
5924         (ASM_OUTPUT_REG_POP): Likewise.
5925         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
5926         Use mips_pop_asm_switch.
5927         (mips_asm_switch): New structure.
5928         (set_noreorder, set_nomacro): Replace with...
5929         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
5930         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
5931         instead of set_nomacro.
5932         (fix_truncsfsi2_macro): Likewise.
5933         (cprestore): Likewise.
5934         (hazard): Use mips_noreorder instead of set_noreorder.
5935         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
5936
5937 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
5938
5939         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
5940         from prev_active_insn.
5941
5942 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
5943
5944         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
5945         * config/avr/avr.c (avr_override_options): Initialize
5946         avr_current_arch variable.
5947         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
5948         __AVR_HAVE_16BIT_SP__ according to the device type.
5949         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
5950         TARGET_TINY_STACK.
5951         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
5952         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
5953
5954 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
5955
5956         PR debug/37801
5957         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
5958         generating inlined subroutine die only. We shouldn't be
5959         called for anything else.
5960         (gen_block_die): Don't generate inline subroutine debug info for
5961         abstract blocks.
5962
5963 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
5964
5965         * graphite-poly.c (print_pbb): Print PBB index.
5966
5967 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
5968
5969         PR middle-end/40981
5970         * graphite-interchange.c (ppl_max_for_le): Moved...
5971         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
5972         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
5973         ppl_Pointset_Powerset_C_Polyhedron_maximize.
5974         * graphite-ppl.h (ppl_max_for_le): Declared.
5975
5976 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
5977
5978         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
5979         supported on all platforms.
5980         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
5981         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
5982         * c-pragma.c: Likewise.
5983         * target-def.h (TARGET_INITIALIZER): Remove
5984         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
5985         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
5986
5987 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
5988
5989         * config/ia64/fde-vms.c: New file.
5990         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
5991         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
5992         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
5993         (uw_frame_state_for): Only register a personality routine if it is
5994         known to be compatible with our expectations.
5995         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
5996         Declare unw_table_entry stack variable and
5997         mod all calls to _Unwind_FindTableEntry to add arg.
5998         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
5999         (_Unwind_FindTableEntry): Add arg to prototype.
6000
6001 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
6002
6003         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
6004         field 'signal_pfs_loc'.
6005         (uw_frame_state_for): Remove duplicate code dealing with leaf
6006         procedures without unwind info.
6007         If in the frame after unwinding through a signal handler, restore
6008         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
6009         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
6010         'pfs_loc' to the AR.PFS location in the signal context; instead
6011         set 'signal_pfs_loc'.
6012         Manually generate the unwind info for the AR.PFS register.
6013         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
6014         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
6015         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
6016         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
6017         instead set 'signal_pfs_loc'.
6018         Remove code preventing the AR.PFS register from being restored
6019         from the signal context.
6020
6021 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
6022             Tristan Gingold  <gingold@adacore.com>
6023
6024         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
6025         * config/ia64/t-vms: New file.
6026         * config/ia64/vms64.h: New file.
6027         * config/ia64/vms.h: New file.
6028         * config/ia64/vms-crtinit.asm: New file.
6029         * config/ia64/vms_symvec_libgcc_s.opt: New file.
6030         * config/ia64/vms-unwind.h: New file.
6031
6032 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
6033
6034         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
6035         TFmode compares.
6036
6037 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6038
6039         PR middle-end/30789
6040         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
6041         Move declaration...
6042         * real.h (do_mpc_arg2): ... here.
6043         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
6044         and RDIV_EXPR.
6045
6046 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
6047
6048         * final.c (add_debug_prefix_map): Don't use GC memory for
6049         old_prefix and new_prefix.
6050
6051 2009-08-14  Richard Guenther  <rguenther@suse.de>
6052
6053         * ipa-prop.c (compute_complex_pass_through): If we cannot
6054         compute a non-varying offset for IPA_JF_ANCESTOR punt.
6055
6056 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6057
6058         * c-lex.c (c_lex_with_flags): Increase size of local variable
6059         to avoid memory clobber.
6060
6061 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
6062
6063         PR target/40934
6064         * config/i386/i386.c (ix86_fp_comparison_strategy):
6065         Only enable/disable sahf at function granularity.
6066
6067 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
6068
6069         PR rtl-optimization/41064
6070         * reload1.c (reload_as_needed): Don't call extract_insn
6071         for known invalid replacements after calling
6072         validate_replace_rtx_group and verify_changes.
6073
6074 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
6075
6076         PR target/41019
6077         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
6078         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
6079         ix86_expand_fp_vcond.
6080         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
6081         Assert that operation is supported by ix86_expand_int_vcond.
6082         (vcondu<SSEMODE124C8:mode>): Ditto.
6083
6084 2009-08-13  DJ Delorie  <dj@redhat.com>
6085
6086         * config/i386/djgpp-stdint.h: New.
6087         * config.gcc (djgpp): Use it.
6088
6089 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
6090
6091         * config/sh/sh.c (sh_override_options): When flag_exceptions or
6092         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
6093
6094 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
6095
6096         * tree-ssa-loop-prefetch.c
6097         (prune_ref_by_group_reuse): Enhance probabilistic analysis
6098         for long-stride pruning.
6099         (compute_miss_rate): New function to compute the probability
6100         that two memory references access different cache lines.
6101
6102 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
6103
6104         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
6105
6106 2009-08-13  Richard Guenther  <rguenther@suse.de>
6107
6108         PR middle-end/41047
6109         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
6110         use the constant pointer type.
6111         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
6112         of CV qualifiers on the target pointer type.
6113         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
6114         conversion check before restrict check.
6115
6116 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
6117
6118         PR target/41029
6119         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
6120
6121 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
6122
6123         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
6124
6125 2009-08-12  Richard Guenther  <rguenther@suse.de>
6126
6127         PR tree-optimization/41011
6128         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
6129         and reference constructing.
6130
6131 2009-08-12  Xinliang David Li  <davidxl@google.com>
6132
6133         PR tree-optimization/41012
6134         * tree-flow.h : New external interface.
6135         * gimple-low.c (check_call_arg): Change to public function.
6136         Remove argument mismatch check in lowering.
6137         * tree-inline.h (tree_can_inline_p): Interface change.
6138         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
6139         into this function.
6140         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
6141         Call change to tree_can_inline_p function.
6142         (cgraph_decide_inlining_incrementally): Ditto.
6143
6144 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
6145
6146         PR tree-optimization/41031
6147         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
6148         on the partition variable rather than promote_mode on the source
6149         type.  Assert that the partition variable's type has the same
6150         mode as the source value's.
6151
6152 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
6153
6154         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
6155         for for_return == 2.
6156         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
6157         comments.
6158         * calls.c (expand_call): Fix typo.
6159         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
6160         and PARM_DECL.
6161         * stmt.c (expand_value_return): Use promote_function_mode to copy out
6162         of pseudo.
6163         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
6164         * config/cris/cris.c (cris_promote_function_mode): Likewise.
6165         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
6166         * config/pa/pa.c (pa_promote_function_mode): Likewise.
6167
6168 2009-08-12  Andrew Haley  <aph@redhat.com>
6169
6170         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
6171
6172 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6173
6174         PR bootstrap/40103
6175         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
6176
6177 2009-08-12  Richard Guenther  <rguenther@suse.de>
6178
6179         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
6180         * gimplify.c (gimplify_modify_expr): Do not use
6181         lang_hooks.types_compatible_p.
6182         * tree-ssa.c (useless_type_conversion_p): For aggregates
6183         just return false if the canonical types differ.
6184
6185 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6186
6187         PR middle-end/40980
6188         * sese.c (convert_for_phi_arg): New.
6189         (add_guard_exit_phis): Use convert_for_phi_arg.
6190
6191 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6192
6193         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
6194         unknown subscript upper bounds.
6195
6196 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6197             Pranav Garg  <pranav.garg2107@gmail.com>
6198
6199         * graphite-interchange.c (gather_access_strides): Removed.
6200         (ppl_max_for_le): New.
6201         (build_linearized_memory_access): New.
6202         (memory_stride_in_loop): New.
6203         (pbb_interchange_profitable_p): Reimplemented.
6204         * graphite-ppl.h (ppl_new_id_map): New.
6205         (ppl_interchange): New.
6206
6207 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6208
6209         * graphite-interchange.c (compute_subscript): Removed.
6210         (compute_array_size_cstr): Removed.
6211         (compute_array_size_poly): Removed.
6212         (compute_array_size): Removed.
6213         (gather_access_strides_poly): Removed.
6214         (gather_access_strides): Empty.
6215
6216 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6217
6218         * graphite-dependences.c (dependence_polyhedron_1): Replace
6219         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
6220         (graphite_legal_transform_dr): Same.
6221         (graphite_carried_dependence_level_k): Same.
6222         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
6223         Initialize PDR_NB_SUBSCRIPTS.
6224         (print_pdr_access_layout): Replace pdr_nb_subscripts with
6225         PDR_NB_SUBSCRIPTS.
6226         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
6227         (PDR_NB_SUBSCRIPTS): New.
6228         (pdr_nb_subscripts): Removed.
6229         (pdr_dim): Simplified.
6230         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
6231         with PDR_NB_SUBSCRIPTS.
6232
6233 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6234
6235         * graphite-interchange.c (compute_array_size): Remove use of
6236         PDR_DATA_CONTAINER.
6237         * graphite-poly.c (new_poly_dr): Remove argument data_container.
6238         Do not initialize PDR_DATA_CONTAINER.
6239         (print_pdr): Do not print PDR_DATA_CONTAINER.
6240         * graphite-poly.h (struct poly_dr): Remove data_container field.
6241         (PDR_DATA_CONTAINER): Removed.
6242         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
6243         PDR_DATA_CONTAINER.
6244         (build_poly_dr): Same.
6245
6246 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
6247             Sebastian Pop  <sebastian.pop@amd.com>
6248
6249         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
6250         copy of the dependence polyhedron.  Free the temporary objects.
6251         (graphite_carried_dependence_level_k): Free unused objects before
6252         returning.
6253
6254 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6255
6256         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
6257         Early return without analyzing the data dependences if no
6258         transform has been done.  Call restore_scattering if the transform
6259         is not legal.
6260         (graphite-interchange.c): Same.
6261         * graphite-poly.c (print_scattering_function): Test for
6262         PBB_TRANSFORMED.
6263         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
6264         (apply_poly_transforms): Do not gcc_assert that
6265         the transform is legal.
6266         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
6267         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
6268         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
6269         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
6270         * graphite-poly.h (struct poly_scattering): New.
6271         (struct poly_bb): Add original, transformed, and saved fields.
6272         Remove transformed_scattering, original_scattering,
6273         nb_local_variables and nb_scattering_transform fields.
6274         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
6275         (poly_scattering_new): New.
6276         (poly_scattering_free): New.
6277         (poly_scattering_copy): New.
6278         (store_scattering_pbb): New.
6279         (store_scattering): New.
6280         (restore_scattering_pbb): New.
6281         (restore_scattering): New.
6282         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
6283         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
6284
6285 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6286
6287         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
6288         (print_scop): Same.
6289
6290 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6291
6292         * Makefile.in (graphite.o): Depends on PREDICT_H.
6293         * graphite.c: Include predict.h.
6294         (graphite_finalize): Call tree_estimate_probability.
6295         * predict.c (predict_loops): Do not call scev_initialize and
6296         scev_finalize.
6297         (tree_estimate_probability_bb): New.
6298         (tree_estimate_probability): Do not initialize loops: move that
6299         code to the driver.  Call tree_estimate_probability_bb.
6300         (tree_estimate_probability_driver): New.
6301         (pass_profile): Use tree_estimate_probability_driver.
6302         * predict.h (tree_estimate_probability): Declared.
6303
6304 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6305
6306         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
6307         * graphite-dependences.c (graphite_legal_transform): Add time to
6308         TV_GRAPHITE_DATA_DEPS.
6309         (dependency_between_pbbs_p): Same.
6310         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
6311
6312 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
6313
6314         PR rtl-optimization/41033
6315         * alias.c (nonoverlapping_component_refs_p): Punt when strict
6316         aliasing is disabled.
6317
6318 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
6319
6320         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
6321         si_mask_operand, and_load_operand, low_bitmask_operand,
6322         and_reg_operand, and_operand): New predicates.
6323         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
6324         * config/mips/mips.c (and_operands_ok): New function.
6325         * config/mips/mips-protos.h (and_operands_ok): Declare it.
6326         * config/mips/mips.md (move_type): Add ext_ins and logical.
6327         (type): Handle them.
6328         (and<mode>3): Use and_reg_operand as the second operand's predicate.
6329         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
6330         shift_shift.  Remove commutative constraint modifier.
6331         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
6332         shift_shift.
6333         (*clear_upper32_dext): Remove define_insn_and_split.
6334         (*clear_upper32): Turn this define_insn_and_split ...
6335         (splitter for ANDing register with 0xffff_ffff): .. into this.
6336
6337 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
6338
6339         * combine.c (try_widen_shift_mode): Factor out code to check if an
6340         integer constant is a low-order bitmask from here ...
6341         * rtlanal.c (low_bitmask_len): ... to here.
6342         * rtl.h (low_bitmask_len): Declare.
6343
6344 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
6345
6346         PR target/8603
6347         * config/alpha/alpha.md (addsi3): Remove expander.
6348         (addsi3): Rename from *addsi3_internal insn pattern.
6349         (subsi3): Remove expander.
6350         (subsi3): Rename from *subsi3_internal insn pattern.
6351
6352 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
6353
6354         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
6355         FWRITE_UNLOCKED.
6356
6357 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
6358             Eric Botcazou  <botcazou@adacore.com>
6359             Douglas B Rupp  <rupp@gnat.com>
6360
6361         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
6362         that records that fit in 64 bits are returned by immediate value,
6363         as required by OpenVMS Calling Standard.
6364         (function_value): Adjust for above modification.
6365         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
6366         virtual_incoming_args_rtx as base object, not next_arg.
6367         * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6368
6369 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6370
6371         * reload.c (find_reloads_subreg_address): Check the original
6372         req_equiv_mem address to detect the case where an address is
6373         not valid in the outer mode.
6374
6375 2009-08-11  Richard Guenther  <rguenther@suse.de>
6376
6377         PR bootstrap/40788
6378         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
6379
6380 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
6381
6382         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
6383         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
6384
6385 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
6386             Douglas B Rupp  <rupp@gnat.com>
6387
6388         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
6389         PT_STACK when frame_pointer_needed on OpenVMS.
6390         (alpha_pv_save_size, alpha_using_fp): Remove.
6391         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
6392         with proper processing for PT_NULL.
6393         (alpha_vms_initial_elimination_offset): New function. Support for
6394         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
6395         (alpha_sa_size): Force procedure type to PT_STACK when
6396         frame_pointer_needed on OpenVMS.
6397         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
6398         (alpha_using_fp): Likewise.
6399         (alpha_vms_can_eliminate): Add prototype.
6400         (alpha_vms_initial_elimination_offset): Likewise.
6401         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
6402         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
6403
6404 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
6405             Douglas B Rupp  <rupp@gnat.com>
6406
6407         * config/alpha/alpha.c (common_object_handler): New function.
6408         (vms_attribute_table): Declare a single attribute "common_object".
6409         (vms_output_aligned_decl_common): New global function.
6410         (SECTION_VMS_OVERLAY): Delete.
6411         (SECTION_VMS_GLOBAL): Likewise.
6412         (SECTION_VMS_INITIALIZE): Likewise.
6413         (vms_asm_named_section): Remove support for above flags.
6414         (vms_section_type_flags): Delete.
6415         (TARGET_SECTION_TYPE_FLAGS): Likewise.
6416         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
6417         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
6418         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
6419
6420 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
6421
6422         PR target/41015
6423         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
6424         (sub_ddmmss): Likewise.
6425
6426 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
6427
6428         PR bootstrap/41018
6429         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
6430         year.
6431
6432 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6433
6434         PR target/37053
6435         * reload1.c (reload_as_needed): Use cancel_changes to completely
6436         undo a failed replacement attempt.
6437
6438 2009-08-10  Richard Guenther  <rguenther@suse.de>
6439
6440         PR middle-end/41006
6441         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
6442         (useless_type_conversion_p): ... here.  Require pointer targets
6443         to be compatible.
6444
6445 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
6446
6447         PR c++/40866
6448         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
6449         loose the original type of the statement list.
6450
6451 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
6452
6453         * config/alpha/alpha.c: Include libfuncs.h
6454         (avms_asm_output_extern): New function.
6455         (alpha_init_libfuncs): Init some decc libfuncs.
6456         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
6457         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
6458         (DO_CRTL_NAMES): Define.
6459         (LIB_SPEC): Remove.
6460         * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
6461         (LONG_TYPE_SIZE): Define.
6462         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
6463         (SUBTARGET_SWITCHES): Define malloc64 switch.
6464         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
6465         (MASK_RETURN_ADDR): Define.
6466         doc/invoke.texi (mmalloc64): Document switch.
6467
6468 2009-08-09  Olivier Hainque  <hainque@adacore.com>
6469             Douglas B Rupp  <rupp@gnat.com>
6470
6471         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
6472         uses_condition_handler.
6473         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
6474         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
6475         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
6476         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
6477         (code_for_builtin): New insn codes for the new alpha_builtins.
6478         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
6479         (alpha_sa_size): Account for uses_condition_handler.
6480         (alpha_expand_prologue): Likewise.
6481         (alpha_start_function): Likewise.
6482         (alpha_expand_epilogue): Likewise.
6483         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
6484         establish/revert expanders.
6485         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
6486         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
6487         New expander, resorting to the alpha.c associated function.
6488         (builtin_revert_vms_condition_handler): Likewise.
6489         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
6490         __gcc_shell_handler, the static VMS condition handler used as
6491         an indirection wrapper to the current dynamically established
6492         handler.
6493         * config/alpha/vms-unwind.h: Complete rewrite.
6494         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
6495         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
6496
6497 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
6498             Douglas B Rupp  <rupp@gnat.com>
6499
6500         * config/alpha/alpha.c (alpha_links): Add 'target' field.
6501         (alpha_need_linkage): Handle aliases.  Return function symbol.
6502         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
6503         Use ultimate alias target for the linkage name.
6504         * config/alpha/alpha.md (movmemdi): Use the symbol returned
6505         by alpha_need_linkage for the function symbol.
6506         (setmemdi): Likewise.
6507
6508 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
6509
6510         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
6511         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
6512         (ASM_WEAKEN_LABEL): Define.
6513         (CRT_CALL_STATIC_FUNCTION): Define.
6514         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
6515         (ENDFILE_SPEC): Define.
6516         (INIT_SECTION_ASM_OP): Define.
6517         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
6518         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
6519         crtend.o crtendS.o.
6520         (MULTILIB_OSDIRNAMES): Define.
6521         (shlib_version): Define.
6522         (SHLIB_EXT): Define.
6523         (SHLIB_OBJS): Define.
6524         (SHLIB_NAME): Define.
6525         (SHLIB_MULTILIB): Define.
6526         (SHLIB_INSTALL): Define.
6527         (SHLIB_SYMVEC): Define.
6528         (SHLIB_SYMVECX2): Define.
6529         (SHLIB_LINK): Define.
6530
6531 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
6532
6533         * config/alpha/alpha.c (alpha_initialize_trampoline):
6534         Initialize VMS trampoline IAW ABI for bounded procedure calls.
6535         (alpha_start_function): Emit transfer address on nested functions
6536         for VMS trampoline call.
6537         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
6538         since no longer used.
6539         * config/alpha/vms-tramp.asm: Remove.
6540         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
6541         since now only data initialized at runtime.
6542
6543 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
6544
6545         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
6546         (LINK_GCC_C_SEQUENCE_SPEC): Define.
6547         (MD_EXEC_PREFIX): Remove, no longer used.
6548         (MD_STARTFILE_PREFIX): Likewise.
6549         (INCLUDE_DEFAULTS): Likewise.
6550         * config/alpha/t-vms:
6551         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
6552
6553 2009-08-09  Richard Guenther  <rguenther@suse.de>
6554
6555         PR tree-optimization/41016
6556         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
6557         (operand_precision): Remove.
6558         (integral_operand_p): Likewise.
6559         (recognize_single_bit_test): Adjust.
6560
6561 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
6562
6563         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
6564         operation overflows.  Likewise non-cast unary arithmetic.
6565         If one arm of a conditional expression is always taken,
6566         inhibit evaluation warnings for the other arm.  Likewise inhibit
6567         evaluation warnings for the second && or || operand if the first
6568         operand is enough to determine the result.
6569         * c-typeck.c (build_conditional_expr): Apply the same inhibition
6570         rules here.
6571         (build_binary_op): Prevent duplicate evaluation warnings.
6572
6573 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
6574
6575         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
6576         and destination have different modes, Use promote_mode to
6577         determine the signedness of the conversion.  Assert that the
6578         promoted source mode matches the destination mode.  Don't pass
6579         the destination and destination mode to expand_expr if the source
6580         mode is different.  Simplify conversion logic.
6581
6582 2009-08-09  Ira Rosen  <irar@il.ibm.com>
6583
6584         PR tree-optimization/41008
6585         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
6586         from condition only in case it's a comparison. Adjust checks.
6587
6588 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
6589
6590         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
6591         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
6592         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
6593         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
6594         (dump_cand): Handle them.
6595         (struct iv_cand): New members COST_STEP and AINC_USE.
6596         (stmt_after_increment): Likewise.
6597         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
6598         callers changed.  Use gimple_uid comparison instead of scanning.
6599         (add_candidate_1): When looking for identical candidates, take
6600         AINC_USE into account.  Set it for new candidates.
6601         (force_expr_to_var_cost): Cast target_spill_cost to int.
6602         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
6603         All callers changed.  Check for availability of autoinc addressing
6604         modes, both in general for a given mode, and in the specific use case.
6605         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
6606         changed.
6607         (get_computation_cost): Likewise.
6608         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
6609         add_autoinc_candidates): New static functions.
6610         (add_candidate): Call add_autoinc_candidates for candidates based on
6611         a USE_ADDRESS use.
6612         (find_iv_candidates): Call set_autoinc_for_original_candidates.
6613         (determine_use_iv_cost_address): If we have an autoinc candidate at
6614         the matching use, verify autoinc is possible and subtract the cost
6615         of the candidate's step from the cost.
6616         (determine_iv_cost): Record the cost of the increment in the COST_STEP
6617         member of the candidate.
6618         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
6619         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
6620
6621 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
6622
6623         * config.build (ia64-hp-*vms*): New target.
6624         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
6625         with ia64-hp-*vms*.
6626         * config.gcc (ia64-hp-*vms*): New target.
6627         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
6628         with ia64-hp-*vms*.
6629         * config.host (ia64-hp-*vms*): New target.
6630         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
6631         with ia64-hp-*vms*.
6632
6633 2009-08-08  Richard Guenther  <rguenther@suse.de>
6634
6635         PR tree-optimization/40991
6636         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
6637
6638 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
6639
6640         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
6641         mode check.  Do truncations in an integer mode.
6642         (force_to_mode): Handle subregs for all mode types.  Only do
6643         arithmetic simplifications on integer modes.
6644
6645 2009-08-07  Richard Guenther  <rguenther@suse.de>
6646
6647         PR tree-optimization/40999
6648         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
6649         (maybe_fold_reference): Lookup constant initializers.
6650         (fold_gimple_assign): Likewise.
6651
6652 2009-08-07  Richard Guenther  <rguenther@suse.de>
6653
6654         * tree-ssa.c (useless_type_conversion_p_1): Only for types
6655         that require structural equality defer to the langhook.
6656
6657 2009-08-07  Martin Jambor  <mjambor@suse.cz>
6658
6659         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
6660         comments.
6661         (struct ipa_pass_through_data): New type.
6662         (struct ipa_ancestor_jf_data): New type.
6663         (union jump_func_value): Removed field formal_id, added fields
6664         pass_through and ancestor.
6665         (struct ipa_param_call_note): Changed type of formal_id to int from
6666         unsigned.
6667         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
6668         operations jump functions and ancestor jump functions.
6669         (compute_complex_pass_through): New function.
6670         (compute_scalar_jump_functions): Call compute_complex_pass_through,
6671         reflect changes in the jump function strucutre.
6672         (update_jump_functions_after_inlining): Ignore complex pass-through
6673         and ancestor jump functions.
6674         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
6675         polynomial pass-through with operation jump functions.
6676
6677 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
6678
6679         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
6680         fde->dw_fde_begin as begin label instead of hot/cold label.
6681         Use LLSDAC label instead of LLSDA for second section lsda.
6682         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
6683         label instead of LLSDA if it is true.
6684         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
6685         callers.
6686         * except.c (add_call_site, dw2_size_of_call_site_table): Add
6687         SECTION argument.  Use it as index into crtl->eh.call_site_record
6688         array.
6689         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
6690         use it to determine how to print table entries instead of using
6691         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
6692         label instead of normal begin label as base.
6693         (sjlj_assign_call_site_values): Adjust add_call_site caller.
6694         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
6695         ensure no EH range spans between sections and that landing pads
6696         are always in the corresponding section.
6697         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
6698         for crtl->eh.call_site_record being an array rather than scalar.
6699         (output_one_function_exception_table): New function, copied
6700         from output_function_exception_table.  Adjust
6701         dw2_size_of_call_site_table, dw2_output_call_site_table
6702         callers.  For SECOND section use *C suffixed labels.
6703         (output_function_exception_table): Call
6704         output_one_function_exception_table and, when doing hot/cold
6705         partitioning, also another time for the second section.
6706         * opts.c: Include except.h.
6707         (decode_options): Allow -freorder-blocks-and-partition with
6708         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
6709         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
6710         * function.h (struct rtl_eh): Change call_site_record from
6711         scalar into array of 2 elements.
6712
6713 2009-08-07  Martin Jambor  <mjambor@suse.cz>
6714
6715         * ipa-prop.c (count_formal_params_1): New function.
6716         (ipa_get_vector_of_formal_parms): New function.
6717         (get_vector_of_formal_parm_types): New function.
6718         (ipa_modify_formal_parameters): New function.
6719         (ipa_modify_call_arguments): New function.
6720         (index_in_adjustments_multiple_times_p): New function.
6721         (ipa_combine_adjustments): New function.
6722         (ipa_dump_param_adjustments): New function.
6723         * ipa-prop.h (struct ipa_parm_adjustment): New type.
6724         (ipa_get_vector_of_formal_parms): Declare.
6725         (ipa_modify_formal_parameters): Declare.
6726         (ipa_modify_call_arguments): Declare.
6727         (ipa_combine_adjustments): Declare.
6728         (ipa_dump_param_adjustments): Declare.
6729         (build_ref_for_offset): Declare.
6730         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
6731         * tree-sra.c: Include ipa-prop.c.
6732         (build_ref_for_offset): Make public.
6733
6734 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
6735
6736         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
6737
6738 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
6739
6740         * gcc/doc/extend.texi (__builtin_extract_return_address)
6741         (__builtin_frob_return_address): Document.
6742
6743 2009-08-06  Paul Brook  <paul@codesourcery.com>
6744
6745         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
6746         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
6747         implementation on ARMv6-M.
6748
6749 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
6750
6751         * doc/extend.texi (pcs): Document new attribute for ARM.
6752
6753 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
6754
6755         * arm.c (pcs_attribute_args): Comment out unsupported attribute
6756         variants.
6757
6758 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
6759
6760         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
6761         warning ().
6762
6763 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
6764
6765         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
6766
6767 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
6768
6769         Merge ARM/hard_vfp_branch to trunk.
6770
6771         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
6772
6773         * arm.c (libcall_eq): New function.
6774         (libcall_hash): New function.
6775         (add_libcall): New function.
6776         (arm_libcall_uses_aapcs_base): New function.
6777         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
6778         libcalls using the base PCS.
6779         (arm_init_cumulative_args): Likewise.
6780
6781         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
6782
6783         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
6784         Use base ABI for conversion libfuncs between HFmode and SFmode.
6785
6786         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
6787
6788         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
6789         V4SImode as representatives of all 64-bit and 128-bit vector
6790         types.  Allow vector types without vector modes.
6791         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
6792         without vector modes like BLKmode.
6793         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
6794         BLKmode.  Avoid unsupported vector modes or TImode moves for
6795         non-TARGET_NEON.
6796         (aapcs_vfp_allocate_return_reg): Likewise.
6797         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
6798         V8QImode if TARGET_NEON || TARGET_IWMMXT.
6799
6800         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
6801
6802         * config/arm/arm.c (arm_handle_pcs_attribute): New.
6803         (arm_get_pcs_model): Pass attribute arguments to
6804         arm_pcs_from_attribute.
6805         (arm_init_cumulative_args): Use base AAPCS for conversions from
6806         floating-point types to DImode.
6807         (arm_attribute_table): Add pcs attribute.
6808         (arm_handle_pcs_attribute): New.
6809         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
6810         conversions from floating-point types to DImode, also declare them
6811         to use base AAPCS and declare functions they call to use base
6812         AAPCS and their RTABI names.
6813
6814         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
6815
6816         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
6817         -mfloat-abi=hard not being supported for VFP.
6818
6819         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
6820
6821         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
6822         SYMBOL_REF to hard_libcall_value.
6823
6824         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
6825             Richard Earnshaw  <rearnsha@arm.com>
6826
6827         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
6828         has been put on the stack, all remaining co-processory arguments for
6829         that co-processor also go on the stack.
6830
6831         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
6832
6833         * config/arm/arm.c (arm_return_in_memory): Handle returning
6834         vectors of suitable size in registers also for AAPCS case.
6835
6836         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
6837
6838         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
6839
6840         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
6841
6842         ARM Hard-VFP calling convention
6843         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
6844         * target.h (gcc_target): Add libcall_value to table of call hooks.
6845         * targhooks.h (default_libcall_value): Default implementation.
6846         * targhooks.c (default_libcall_value): Likewise.
6847         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
6848         * optabs.c (expand_unop): Use it.
6849         * expr.h (hard_libcall_value): Pass the function RTX through.
6850         * calls.c (emit_library_call_value_1): Update call to
6851         hard_libcall_value.
6852         * explow.c (hard_libcall_value): Use new target hook.
6853         * testsuite/lib/target-supports.exp
6854         (check_effective_target_arm_hard_vfp_ok): New hook.
6855         (check_effective_target_arm_neon_ok): Improve test for neon
6856         availability.
6857         * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
6858         * config/arm/arm.c: Include cgraph.h
6859         (TARGET_FUNCTION_VALUE): Override default hook.
6860         (arm_pcs_default): New variable.
6861         (arm_override_options): Don't fault hard calling convention with VFP.
6862         Add support for AAPCS variants.
6863         (arm_function_value): Make static.  Handle AAPCS variants.
6864         (arm_libcall_value): New function.
6865         (arm_apply_result_size): Handle VFP registers in results.
6866         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
6867         conventions.
6868         (pcs_attribute_args): New variable.
6869         (arm_pcs_from_attribute): New function.
6870         (arm_get_pcs_model): New function.
6871         (aapcs_vfp_cum_init): New function.
6872         (aapcs_vfp_sub_candidate): New function.
6873         (aapcs_vfp_is_return_candidate): New function.
6874         (aapcs_vfp_is_call_candidate): New function.
6875         (aapcs_vfp_allocate): New function.
6876         (aapcs_vfp_allocate_return_reg): New function.
6877         (aapcs_vfp_advance): New function.
6878         (aapcs_cp_arg_layout): New variable.
6879         (aapcs_select_call_coproc): New function.
6880         (aapcs_select_return_coproc): New function.
6881         (aapcs_allocate_return_reg): New function.
6882         (aapcs_libcall_value): New function.
6883         (aapcs_layout_arg): New function.
6884         (arm_init_cumulative_args): Initialize AAPCS args data.
6885         (arm_function_arg): Handle AAPCS variants using new interface.
6886         (arm_arg_parital_bytes): Likewise.
6887         (arm_function_arg_advance): New function.
6888         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
6889         calling conventions.
6890         (arm_setup_incoming_varargs): Handle new AAPCS args data.
6891         * arm.h (NUM_VFP_ARG_REGS): Define.
6892         (LIBCALL_VALUE): Update.
6893         (FUNCTION_VALUE): Delete.
6894         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
6895         (arm_pcs): New enum.
6896         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
6897         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
6898         (FUNCTION_ARG_REGNO_P): Add VFP regs.
6899         * arm-protos.h (arm_function_arg_advance): Add.
6900         (aapcs_libcall_value): Add.
6901         (arm_function_value): Delete.
6902
6903 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
6904             H.J. Lu  <hongjiu.lu@intel.com>
6905
6906         PR target/40957
6907         * config/i386/i386.c (standard_sse_mode_p): Remove.
6908         (standard_sse_constant_p): Return 2 for integer mode
6909         vector_all_ones_operand when SSE2 is enabled.
6910         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
6911         (ix86_expand_vector_move): Do not check for negative values from
6912         standard_sse_constant_p.
6913
6914 2009-08-06  Richard Guenther  <rguenther@suse.de>
6915
6916         * tree-ssa.c (useless_type_conversion_p_1): Make function and
6917         array type comparisons frontend independent.
6918         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
6919         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
6920         out array reference lower bound and element size operands.
6921         (ao_ref_init_from_vn_reference): Properly compute the offset
6922         for ARRAY_RANGE_REF.
6923         (vn_reference_fold_indirect): Fill out array reference lower
6924         bound and element size operands.
6925         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
6926         a non gimple valued reference operand which can happen for
6927         array reference lower bound or element size.
6928         (create_component_ref_by_pieces_1): Properly generate the
6929         element size operand for array references.
6930
6931 2009-08-06  Richard Guenther  <rguenther@suse.de>
6932
6933         PR tree-optimization/40964
6934         * tree.c (iterative_hash_host_wide_int): Export.
6935         * tree.h (iterative_hash_host_wide_int): Declare.
6936         * tree-ssa-structalias.c (heapvar_map): New struct.
6937         (heapvar_map_eq): New function.
6938         (heapvar_map_hash): Likewise.
6939         (heapvar_lookup): Adjust.
6940         (heapvar_insert): Likewise.
6941         (make_constraint_from_heapvar): Allow multiple heap variables
6942         per decl at different offsets.
6943         (init_alias_heapvars): Adjust.
6944
6945 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
6946
6947         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
6948         * mips_output_sync_loop (mips_output_sync_loop): Only emit
6949         trailing sync if TARGET_SYNC_AFTER_SC.
6950
6951 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
6952
6953         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
6954         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
6955         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
6956         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
6957         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
6958         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
6959         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
6960         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
6961         test_and_set_12): Rewrite calls to mips_output_sync_loop.
6962         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
6963         the prototype declaration match the definition.
6964         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
6965         instructions explicitly.  Add barrier_before and operands
6966         parameters.
6967         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
6968         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
6969         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
6970         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
6971         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
6972         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
6973
6974 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
6975
6976         * tree-ssa-alias.c: Fix intervals to use [) syntax.
6977
6978 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
6979             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
6980
6981         PR target/40906
6982         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
6983         source operand.
6984
6985 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
6986
6987         PR rtl-optimization/40924
6988         * dse.c (canon_address): Before calling cselib_expand_value_rtx
6989         make sure canon_rtx (mem_address) isn't simpler than
6990         canon_rtx (expanded_mem_address).
6991
6992 2009-08-05  Li Feng  <nemokingdom@gmail.com>
6993
6994         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
6995         for each poly_bb_p.
6996         (build_scop_drs): Build alias set for each SCoP.
6997
6998 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
6999
7000         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
7001         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
7002         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
7003         (MIPS_ARCH_FLOAT_SPEC): Likewise.
7004         (BASE_DRIVER_SELF_SPECS): Likewise.
7005
7006 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
7007
7008         * tree-ssa-alias.c: Fix some comment typos.
7009
7010 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
7011
7012         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
7013         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
7014
7015 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
7016
7017         PR c/39902
7018         * simplify-rtx.c (simplify_binary_operation_1): Disable
7019         simplifications for decimal float operations.
7020
7021 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
7022
7023         PR middle-end/40943
7024         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
7025         operand of INDIRECT_REF.
7026
7027 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
7028
7029         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
7030         constants referencing TLS symbols.
7031
7032 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7033
7034         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
7035         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
7036
7037 2009-08-03  Richard Guenther  <rguenther@suse.de>
7038
7039         * tree.c (make_vector_type): Build a main variant first,
7040         get the canonical one and then build the variant.
7041         * tree-ssa.c (useless_type_conversion_p_1): Handle
7042         fixed-point types.
7043         (useless_type_conversion_p): Conversions to pointers to
7044         incomplete record types are useless.
7045
7046 2009-08-03  Richard Guenther  <rguenther@suse.de>
7047
7048         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
7049         file will be created.
7050         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
7051         * toplev.c (compile_file): Adjust comment.
7052
7053 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
7054
7055         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
7056         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
7057         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7058         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
7059         (sh_promote_function_mode): Fix typo.
7060
7061 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
7062
7063         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
7064
7065 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7066
7067         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
7068         declaration arguments.
7069
7070 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
7071
7072         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
7073         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
7074         (ix86_split_ashl): Ditto.
7075         (ix86_expand_vector_init_one_nonzero): Ditto.
7076         (ix86_expand_vector_set): Ditto.
7077         (ix86_expand_reduc_v4sf): Ditto.
7078
7079 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
7080
7081         * explow.c (promote_function_mode): Remove assert.
7082         * config/sh/sh.c (sh_promote_function_mode): Declare.
7083
7084 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7085
7086         * config/pa/pa.c (pa_promote_function_mode): Declare.
7087         Change to static.  Fix promote_mode call.
7088
7089         * gthr-dce.h (CONST_CAST2): Define if not defined.
7090         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
7091
7092         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
7093
7094 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
7095
7096         * expr.c (store_constructor): Use promote_decl_mode.  Remove
7097         now write-only variable unsignedp.
7098         (expand_expr_real_1): Use promote_decl_mode.
7099         * expr.h (promote_function_mode, promote_decl_mode): New.
7100         (promote_mode): Remove last argument.
7101         * function.c (assign_temp): Drop last argument of promote_mode.
7102         (assign_parm_find_data_types): Use promote_function_mode.
7103         (assign_parm_setup_reg): Likewise.
7104         (expand_function_end): Use promote_function_mode.
7105         * calls.c (initialize_argument_information): Use promote_function_mode.
7106         (precompute_arguments): Use promote_mode instead of checking if
7107         only PROMOTE_FUNCTION_MODE is defined.
7108         (expand_call): When making sibcall decisions, use promote_function_mode.
7109         Below, remove an if for targetm.calls.promote_function_return and
7110         and use promote_function_mode.
7111         (emit_library_call_value_1): Use promote_function_mode, fix bug
7112         where promote_mode was passed FOR_CALL == 0 for a return value in an
7113         assertion.
7114         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
7115         * explow.c (promote_function_mode, promote_decl_mode): New.
7116         (promote_mode): Keep only the FOR_CALL == 0 case.
7117         * combine.c (setup_incoming_promotion): Remove test of
7118         promote_function_args.  Use promote_function_mode.
7119         * stmt.c (expand_value_return): Use promote_decl_mode.
7120         (expand_decl): Use promote_decl_mode.
7121
7122         * expr.c (store_constructor): Use promote_decl_mode.  Remove
7123         now write-only variable unsignedp.
7124         (expand_expr_real_1): Use promote_decl_mode.
7125         * expr.h (promote_function_mode, promote_decl_mode): New.
7126         (promote_mode): Remove last argument.
7127         * function.c (assign_temp): Drop last argument of promote_mode.
7128         (assign_parm_find_data_types): Use promote_function_mode.
7129         (assign_parm_setup_reg): Likewise.
7130         (expand_function_end): Use promote_function_mode.
7131         * calls.c (initialize_argument_information): Use promote_function_mode.
7132         (precompute_arguments): Use promote_mode instead of checking if
7133         only PROMOTE_FUNCTION_MODE is defined.
7134         (expand_call): When making sibcall decisions, use promote_function_mode.
7135         Below, remove an if for targetm.calls.promote_function_return and
7136         and use promote_function_mode.
7137         (emit_library_call_value_1): Use promote_function_mode, fix bug
7138         where promote_mode was passed FOR_CALL == 0 for a return value in an
7139         assertion.
7140         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
7141         * explow.c (promote_function_mode, promote_decl_mode): New.
7142         (promote_mode): Keep only the FOR_CALL == 0 case.
7143         * combine.c (setup_incoming_promotion): Remove test of
7144         promote_function_args.  Use promote_function_mode.
7145         * stmt.c (expand_value_return): Use promote_decl_mode.
7146         (expand_decl): Use promote_decl_mode.
7147
7148         * explow.c (promote_function_mode): Just call the target hook.
7149         * targhooks.c (default_promote_function_mode,
7150         default_promote_function_mode_always_promote): New.
7151         * targhooks.h (default_promote_function_mode,
7152         default_promote_function_mode_always_promote): Declare.
7153         * target.h (promote_function_args, promote_function_return): Remove.
7154         (promote_function_mode): New.
7155         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
7156         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7157         (TARGET_PROMOTE_FUNCTION_MODE): New.
7158         (TARGET_CALLS): Adjust.
7159         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
7160         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
7161
7162         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
7163         * config/s390/s390.c (s390_promote_function_mode): ... here,
7164         with pointer handling.
7165         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7166         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7167
7168         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
7169         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
7170         with pointer handling.
7171         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7172         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7173
7174         * config/sh/sh-protos.h (sh_promote_function_mode): New.
7175         * config/sh/sh.c (sh_promote_function_mode): New.
7176         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7177         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7178
7179         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
7180         * config/cris/cris.c (cris_promote_function_mode): ... here.
7181         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7182         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
7183
7184         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
7185         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
7186         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7187         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
7188
7189         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
7190         * config/arm/arm.c (arm_promote_function_mode): ... here, without
7191         complex type handling.
7192         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7193         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7194
7195         * config/pa/pa.c (pa_promote_function_mode): New.
7196         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7197         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7198
7199         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
7200         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7201         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
7202         * config/xtensa/xtensa.c: Likewise.
7203         * config/stormy16/stormy16.c: Likewise.
7204         * config/iq2000/iq2000.c: Likewise.
7205         * config/rs6000/rs6000.c: Likewise.
7206         * config/picochip/picochip.c: Likewise.
7207         * config/arc/arc.c: Likewise.
7208         * config/mcore/mcore.c: Likewise.
7209         * config/score/score.c: Likewise.
7210         * config/mips/mips.c: Likewise.
7211         * config/bfin/bfin.c: Likewise.
7212         * config/ia64/ia64.c: Likewise (disabled though).
7213
7214         * config/frv/frv.h: Remove pointless remark.
7215
7216         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
7217         TARGET_PROMOTE_FUNCTION_ARGS,
7218         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
7219         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
7220
7221 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
7222
7223         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
7224         -floop-parallelize-all.
7225         * toplev.c (process_options): Rename flag_graphite_force_parallel to
7226         flag_loop_parallelize_all.
7227         * tree-ssa-loop.c (gate_graphite_transforms): Same.
7228         * graphite.c (graphite_transform_loops): Same.
7229         * common.opt: Same.
7230         * graphite-poly.c (apply_poly_transforms): Same.
7231
7232 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
7233
7234         PR tree-optimization/40914
7235         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
7236         if set, then check the delta field of the PMF record.
7237         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
7238         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
7239         call is stored in the delta.
7240
7241 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
7242
7243         * config/mips/mips.md (*clear_upper32_dext): New pattern.
7244
7245 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
7246
7247         * config/i386/bsd.h (ASM_BYTE): New define.
7248         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
7249         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
7250         .byte.  Use fputs or putc instead of fprintf where appropriate.
7251         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
7252         fputs or putc instead of fprintf where appropriate.
7253         * config/i386/i386elf.h: Ditto.
7254         * config/i386/sysv4.h: Ditto.
7255
7256         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
7257         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
7258         (*tls_global_dynamic_64): Ditto.
7259
7260 2009-07-31  Christian Bruel  <christian.bruel@st.com>
7261
7262         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
7263
7264 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7265
7266         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
7267         Remove dead code for MINUS.
7268
7269 2009-07-31  Anthony Green  <green@moxielogic.com>
7270
7271         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
7272         $r12 in prologue.
7273         (moxie_expand_epilogue): Ditto for epilogue.
7274         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
7275         incoming arguments.
7276         (moxie_function_arg): Ditto.
7277         (moxie_pass_by_reference): Ditto.
7278         (moxie_arg_partial_bytes): Ditto.
7279         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
7280         (FUNCTION_ARG_ADVANCE) Ditto.
7281         (REG_PARM_STACK_SPACE) Ditto.
7282         (FUNCTION_ARG_REGNO_P) Dito.
7283
7284         * config.gcc: Add moxie linux config support.
7285         * gcc/config/moxie/uclinux.h: New file.
7286
7287 2009-07-31  DJ Delorie  <dj@redhat.com>
7288
7289         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
7290         (UNSPECV_SP_SWITCH_E): New.
7291         (sp_switch_1): Change to an unspec.
7292         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
7293         replace $r15.
7294         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
7295         reference the new stack's address
7296
7297 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7298
7299         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
7300         graphite-clast-to-gimple.o, graphite-dependences.o,
7301         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
7302         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
7303         (graphite-blocking.o,
7304         graphite-clast-to-gimple.o, graphite-dependences.o,
7305         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
7306         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
7307         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
7308         * cfgloop.h (struct loop): Add can_be_parallel field.
7309         * common.opt (fgraphite-identity): Moved up.
7310         (fgraphite-force-parallel): New flag.
7311         * graphite.c: Rewrite.
7312         * graphite.h: Rewrite.
7313         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
7314         after Graphite.
7315         * toplev.c (graphite_out_file): New file descriptor.
7316         (graphite_in_file): New.
7317         (process_options): flag_graphite_force_parallel cannot be used without
7318         Graphite.
7319         * tree-ssa-loop.c: Include toplev.h.
7320         (gate_graphite_transforms): Enable flag_graphite for
7321         flag_graphite_force_parallel.
7322
7323 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7324
7325         * ChangeLog.graphite: New.
7326         * graphite-blocking.c: New.
7327         * graphite-clast-to-gimple.c: New.
7328         * graphite-clast-to-gimple.h: New.
7329         * graphite-dependences.c: New.
7330         * graphite-dependences.h: New.
7331         * graphite-interchange.c: New.
7332         * graphite-poly.c: New.
7333         * graphite-poly.h: New.
7334         * graphite-ppl.c: New.
7335         * graphite-ppl.h: New.
7336         * graphite-scop-detection.c: New.
7337         * graphite-scop-detection.h: New.
7338         * graphite-sese-to-poly.c: New.
7339         * graphite-sese-to-poly.h: New.
7340         * sese.c: New.
7341         * sese.h: New.
7342
7343 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7344
7345         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
7346         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
7347
7348 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7349
7350         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
7351         (scev_is_linear_expression): Return false if the evolution is not
7352         affine multivariate.
7353
7354 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7355
7356         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
7357         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
7358
7359 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7360
7361         * tree-data-ref.c (debug_data_references): New.
7362         (debug_data_reference): New.
7363         * tree-data-ref.h (debug_data_references): Declared.
7364         (debug_data_reference): Declared.
7365
7366 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7367
7368         * tree-data-ref.c (stmt_simple_memref_p: Removed.
7369         * tree-data-ref.h (scop_p): Removed.
7370         (struct data_reference): Remove field scop.
7371         (DR_SCOP): Removed.
7372         (stmt_simple_memref_p): Removed.
7373
7374 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7375
7376         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
7377         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
7378         basic block empty.
7379
7380 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7381
7382         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
7383
7384 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7385
7386         * doc/invoke.texi (-fgraphite-identity): Documented.
7387
7388 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7389
7390         * tree-scalar-evolution.c: Fix comment.
7391         (instantiate_scev_1): Return unknow from scev instantiation if the
7392         result is not above instantiate_below.
7393
7394 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7395
7396         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
7397         static anymore.  Instantiate the symbols that may have been introduced
7398         by chrec_apply.
7399         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
7400         Declared.
7401
7402 2009-07-30  DJ Delorie  <dj@redhat.com>
7403
7404         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
7405         .vliw directive to VLIW sections.
7406
7407 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7408
7409         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
7410         New variables.
7411         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
7412         (AUTOHEADER): New variable.
7413         ($(srcdir)/cstamp-h.in): Use it.
7414
7415 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
7416             Pat Haugen  <pthaugen@us.ibm.com>
7417             Revital Eres <ERES@il.ibm.com>
7418
7419         * config/rs6000/vector.md (VEC_F): Add VSX support.
7420         (VEC_A): Ditto.
7421         (VEC_N): Ditto.
7422         (mov<mode>): Ditto.
7423         (vector_load_<mode>): Ditto.
7424         (vector_store_<mode>): Ditto.
7425         (vector GPR move split): Ditto.
7426         (vec_reload_and_plus_<mptrsize>): Ditto.
7427         (vec_reload_and_reg_<mptrsize>): Ditto.
7428         (add<mode>3): Ditto.
7429         (sub<mode>3): Ditto.
7430         (mul<mode>3): Ditto.
7431         (neg<mode>2): Ditto.
7432         (abs<mode>2): Ditto.
7433         (smin<mode>3): Ditto.
7434         (smax<mode>3): Ditto.
7435         (vector_eq<mode>): Ditto.
7436         (vector_gt<mode>): Ditto.
7437         (vector_ge<mode>): Ditto.
7438         (vector_gtu<mode>): Ditto.
7439         (vector_select_<mode>_uns): Ditto.
7440         (vector_eq_<mode>_p): Ditto.
7441         (vector_gt_<mode>_p): Ditto.
7442         (vector_ge_<mode>_p): Ditto.
7443         (vector_gtu_<mode>_p): Ditto.
7444         (cr6_test_for_zero): Ditto.
7445         (cr6_test_for_zero_reverse): Ditto.
7446         (cr6_test_for_lt): Ditto.
7447         (cr6_test_for_lt_reverse): Ditto.
7448         (xor<mode>3): Ditto.
7449         (ior<mode>3): Ditto.
7450         (and<mode>3): Ditto.
7451         (one_cmpl<mode>2): Ditto.
7452         (nor<mode>2): Ditto.
7453         (andc<mode>2): Ditto.
7454         (float<VEC_int<mode>2): Ditto.
7455         (unsigned_float<VEC_int><mode>2): Ditto.
7456         (fix_trunc<mode><VEC_int>2): Ditto.
7457         (fixuns_trunc<mode><VEC_int>2): Ditto.
7458         (vec_init<mode>):
7459         (vec_set<mode>): Ditto.
7460         (vec_extract<mode>): Ditto.
7461         (vec_interleave_highv4sf): Ditto.
7462         (vec_interleave_lowv4sf): Ditto.
7463         (vec_realign_load_<mode>): Ditto.
7464         (vec_shl_<mode>): Ditto.
7465         (vec_shr_<mode>): Ditto.
7466         (div<mode>3): New patterns for VSX.
7467         (vec_interleave_highv2df): Ditto.
7468         (vec_interleave_lowv2df): Ditto.
7469         (vec_pack_trunc_v2df): Ditto.
7470         (vec_pack_sfix_trunc_v2df): Ditto.
7471         (vec_pack_ufix_trunc_v2df): Ditto.
7472         (vec_unpacks_hi_v4sf): Ditto.
7473         (vec_unpacks_lo_v4sf): Ditto.
7474         (vec_unpacks_float_hi_v4si): Ditto.
7475         (vec_unpacks_float_lo_v4si): Ditto.
7476         (vec_unpacku_float_hi_v4si): Ditto.
7477         (vec_unpacku_float_lo_v4si): Ditto.
7478         (movmisalign<mode>): Ditto.
7479         (vector_ceil<mode>2): New patterns for vectorizing math library.
7480         (vector_floor<mode>2): Ditto.
7481         (vector_btrunc<mode>2): Ditto.
7482         (vector_copysign<mode>3): Ditto.
7483
7484         * config/rs6000/predicates.md (easy_vector_constant_msb): New
7485         predicate for setting the high bit in each word, used for copysign.
7486
7487         * config/rs6000/ppc-asm.h (f19): Whitespace.
7488         (f32-f63): Define if VSX.
7489         (v0-v31): Define if Altivec.
7490         (vs0-vs63): Define if VSX.
7491
7492         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
7493
7494         * config/rs6000/power7.md: New file, provide tuning parameters for
7495         -mcpu=power7.
7496
7497         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
7498         (rs6000_cpu_cpp_builtins): Ditto.
7499         (altivec_overloaded_builtins): Ditto.
7500         (altivec_resolve_overloaded_builtin): Ditto.
7501
7502         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
7503         debug switch to disable vectorizing simple math builtin
7504         functions.
7505
7506         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
7507         Vectorize simple math builtin functions.
7508         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
7509         hook to vectorize math builtins.
7510         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
7511         (rs6000_builtin_conversion): Add VSX/power7 support.
7512         (rs6000_builtin_vec_perm): Ditto.
7513         (vsplits_constant): Add support for loading up a vector constant
7514         with just the high bit set in each part.
7515         (rs6000_expand_vector_init): Add VSX/power7 support.
7516         (rs6000_expand_vector_set): Ditto.
7517         (rs6000_expand_vector_extract): Ditto.
7518         (rs6000_emit_move): Ditto.
7519         (bdesc_3arg): Ditto.
7520         (bdesc_2arg): Ditto.
7521         (bdesc_1arg): Ditto.
7522         (rs6000_expand_ternop_builtin): Ditto.
7523         (altivec_expand_builtin): Ditto.
7524         (rs6000_expand_unop_builtin): Ditto.
7525         (rs6000_init_builtins): Ditto.
7526         (altivec_init_builtins): Ditto.
7527         (builtin_function_type): Ditto.
7528         (rs6000_common_init_builtins): Ditto.
7529         (rs6000_handle_altivec_attribute); Ditto.
7530         (rs6000_mangle_type): Ditto.
7531         (rs6000_vector_mode_supported_p): Ditto.
7532         (rs6000_mode_dependent_address): Altivec addresses with AND -16
7533         are mode dependent.
7534
7535         * config/rs6000/vsx.md: New file for VSX support.
7536
7537         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
7538         identifing values with just the most significant bit set.
7539         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
7540         vectorized builtins.
7541
7542         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
7543         (UNSPEC_VRFIM): Delete.
7544         (splitter for loading up vector with most significant bit): New
7545         splitter for vectorizing copysign.
7546         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
7547         vectorizing simple math functions.
7548         (altivec_vrfip): Add support for vectorizing simple math functions.
7549         (altivec_vrfim): Ditto.
7550         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
7551
7552         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
7553         (power7.md, vsx.md): Include for power7 support.
7554         (copysigndf3): Use VSX instructions if -mvsx.
7555         (negdf2_fpr): Ditto.
7556         (absdf2_fpr): Ditto.
7557         (nabsdf2_fpr): Ditto.
7558         (adddf3_fpr): Ditto.
7559         (subdf3_fpr): Ditto.
7560         (muldf3_fpr): Ditto.
7561         (divdf3_fpr): Ditto.
7562         (fix_truncdfdi2_fpr): Ditto.
7563         (cmpdf_internal1): Ditto.
7564         (fred, fred_fpr): Convert into expander/insn to add VSX support.
7565         (btruncdf2, btruncdf2_fpr): Ditto.
7566         (ceildf2, ceildf2_fpr): Ditto.
7567         (floordf2, floordf2_fpr): Ditto.
7568         (floatdidf2, floatdidf2_fpr): Ditto.
7569         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
7570         (fmsubdf4_fpr): Ditto.
7571         (fnmadddf4_fpr_1): Ditto.
7572         (fnmadddf4_fpr_2): Ditto.
7573         (fnmsubdf4_fpr_1): Ditto.
7574         (fnmsubdf4_fpr_2): Ditto.
7575         (fixuns_truncdfdi2): Add expander for VSX support.
7576         (fix_truncdfdi2): Ditto.
7577         (fix_truncdfsi2): Ditto.
7578         (ftruncdf2): Ditto.
7579         (btruncsf2): Whitespace.
7580         (movdf_hardfloat32): Add support for VSX registers.
7581         (movdf_softfloat32): Ditto.
7582         (movdf_hardfloat64): Ditto.
7583         (movdf_hardfloat64_mfpgpr): Ditto.
7584         (movdf_softfloat64): Ditto.
7585         (movti splitters): Add check for vector registers supporting
7586         TImode in the future.
7587         (bpermd): Add power7 bpermd instruction.
7588
7589         * config/rs6000/altivec.h (vec_div): Define if VSX.
7590         (vec_mul): Ditto.
7591         (vec_msub): Ditto.
7592         (vec_nmadd): Ditto.
7593         (vec_nearbyint): Ditto.
7594         (vec_rint): Ditto.
7595         (vec_sqrt): Ditto.
7596         (all predicates): Use the generic builtin function, and not the V4SF
7597         specific function so that the predicates will work with VSX's V2DF.
7598         (vec_all_*): Ditto.
7599         (vec_any_*): Ditto.
7600
7601         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
7602         Document new VSX functions and types.
7603
7604         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
7605         switches.
7606
7607         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
7608         "wa", and "j" constraints.  Modify "v" to talk about Altivec
7609         instead of just vector.
7610
7611 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
7612
7613         PR debug/26475
7614         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
7615         location for phi arguments.
7616         (rewrite_update_phi_arguments): Find locations for reaching defs.
7617         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
7618         Add location to add_phi_arg calls.
7619         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
7620         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
7621         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
7622         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
7623         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
7624         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
7625         * tree-phinodes.c (make_phi_node): Initialize location.
7626         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
7627         (add_phi_arg): Add location parameter.
7628         (remove_phi_arg_num): Move location when moving phi argument.
7629         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
7630         location.
7631         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
7632         slpeel_update_phi_nodes_for_guard1,
7633         slpeel_update_phi_nodes_for_guard2,
7634         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
7635         vect_loop_versioning): Set locations.
7636         * tree-parloops.c (create_phi_for_local_result,
7637         transform_to_exit_first_loop, create_parallel_loop): Add locations.
7638         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
7639         * tree-vect-loop.c (get_initial_def_for_induction,
7640         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
7641         locations.
7642         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
7643         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
7644         (gimple_phi_arg_set_location): New.  Set locus.
7645         (gimple_phi_arg_has_location): New.  Check for locus.
7646         (redirect_edge_var_map_location): New.  Return locus from var_map.
7647         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
7648         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
7649         combining PHI arguments.
7650         (cond_store_replacement): Set location.
7651         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
7652         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
7653         scop_add_exit_phis_edge): Add locations.
7654         * tree-cfgcleanup.c (remove_forwarder_block,
7655         remove_forwarder_block_with_phi): Add locations.
7656         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
7657         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
7658         locations.
7659         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
7660         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
7661         flush_pending_stmts): Add source location.
7662         * lambda-code.c (perfect_nestify): Maintain location stack with argument
7663         stack to preserve locations.
7664         * tree-vect-stmts.c (vectorizable_load): Add location.
7665         * tree-inline.c (copy_phis_for_bb): Copy locus.
7666         (setup_one_parameter): Add call locus to inlined parameter stmts.
7667         (initialize_inlined_parameters): Pass in call location as parameter
7668         assignment locus.
7669         (tree_function_versioning): Pass location to setup_one_parameter.
7670         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
7671         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
7672         copy and edge lists.
7673         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
7674         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
7675         locus parameter and override the stmt default if provided.
7676         (new_elim_graph, clear_elim_graph, delete_elim_graph,
7677         elim_graph_add_edge, elim_graph_remove_succ_edge,
7678         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
7679         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
7680         eliminate_phi):  Add locus info in elimination graph for each edge and
7681         value copy.
7682         (insert_backedge_copies): Copy locus if present.
7683         * tree-flow.h (struct _edge_var_map): Add locus field.
7684         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
7685         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
7686         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
7687         locations.
7688         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
7689
7690 2009-07-30  Martin Jambor  <mjambor@suse.cz>
7691
7692         PR tree-optimization/40570
7693         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
7694         use inlining loops.
7695
7696 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
7697
7698         * ssa-loop-manip.c: Include langhooks.h.
7699         (rewrite_phi_with_iv): New.
7700         (rewrite_all_phi_nodes_with_iv): New.
7701         (canonicalize_loop_ivs): Move here from tree-parloops.c.
7702         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
7703         * tree-parloops.c (loop_parallel_p): Move out all conditions
7704         except dependency check.
7705         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
7706         (gen_parallel_loop): Call canonicalize_loop_ivs without
7707         reduction_list argument.
7708         (build_new_reduction): New.
7709         (gather_scalar_reductions): New.
7710         (try_get_loop_niter): New.
7711         (try_create_reduction_list): New.
7712         (parallleize_loops): Change the parallel conditions check.
7713         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
7714         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
7715
7716 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
7717
7718         * opt-functions.awk (opt_args): Allow argument to be enclosed in
7719         curly braces.
7720         * doc/options.texi (Option properties):  Mention new quoting syntax.
7721
7722 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
7723
7724         * config/alpha/alpha.c (alpha_start_function):
7725         Handle VMS_DEBUG_MAIN_POINTER
7726         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
7727         * doc/invoke.texi: Document -mdebug-main switch.
7728
7729 2009-07-29  Richard Henderson  <rth@redhat.com>
7730
7731         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
7732         (cgraph_create_edge_including_clones): Likewise.
7733         * tree-inline.c (copy_bb): Operate on the correct edges
7734         when updating the callgraph.
7735
7736 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
7737
7738         * config/alpha/vms-cc.c: Deleted.
7739         * config/alpha/vms-ld.c: Deleted.
7740         * config/alpha/t-vms64: Moved to config/vms
7741         * config/alpha/vms-crt0-64.c: Moved to config/vms
7742         * config/alpha/vms-crt0.c: Moved to config/vms
7743         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
7744         * config/alpha/vms-psxcrt0.c: Moved to config/vms
7745         * config/alpha/xm-vms.h: Moved to config/vms
7746         * config/alpha/x-vms: Moved to config/vms
7747         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
7748         config/vms/t-vms.
7749         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
7750         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
7751         (version): Set.
7752         * config/vms/t-vms64: Moved here from config/alpha
7753         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
7754         (argc,argv,envp): Enforce 32bit malloc'ing.
7755         * config/vms/vms-psxcrt0-64.c: Likewise.
7756         * config/vms/vms-crt0.c: Moved here from config/alpha.
7757         * config/vms/vms-psxcrt0.c: Likewise.
7758         * config/vms/vms-crtl-64.h: New file.
7759         * config/vms/vms-crtl.h: New file.
7760         * config/vms/vms.opt: New file.
7761         * config/vms/xm-vms64.h: New file.
7762         * config/vms/xm-vms.h: Moved here from config/alpha.
7763         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
7764         Set.
7765         * config/vms/x-vms: Moved here from config/alpha.
7766         (version, VMS_EXTRA_PARTS): Moved to t-vms.
7767         (vms-ld.o, vms-cc.o): Removed.
7768         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
7769
7770 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
7771
7772         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
7773         correct stack (obvious VMS fix).
7774
7775 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
7776
7777         * dwarf2out.c (output_file_names): Output VMS style file name, size,
7778         date, version info if VMS_DEBUGGING_INFO defined.
7779         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
7780         size, date calculating code moved here.
7781
7782 2009-07-29  Paul Brook  <paul@codesourcery.com>
7783
7784         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
7785         do_push/do_pop.
7786
7787 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
7788
7789         PR target/40577
7790         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
7791         to DImode when generating insq_le insn.
7792
7793 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
7794
7795         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
7796         New macro set for VMS_DEBUGGGING_INFO.
7797         (AT_string_form): Use it.
7798
7799 2009-07-28  DJ Delorie  <dj@redhat.com>
7800
7801         * config/mep/mep.c (vtext_section): New.
7802         (vftext_section): New.
7803         (ftext_section): New.
7804         (mep_select_section): Add support for functions.
7805         (mep_unique_section): Likewise.
7806         (mep_asm_init_sections): Likewise.
7807         (mep_encode_section_info): Remove it from here.
7808
7809         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
7810
7811 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
7812
7813         * tree.h (TREE_DEPRECATED): Document it is used for types too.
7814         (TYPE_VECTOR_OPAQUE): Use default_def_flag
7815
7816 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
7817
7818         * dwarf2out.c (output_file_names): Test new macro
7819         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
7820         (add_comp_dir_attribute): Likewise.
7821
7822 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
7823
7824         * config/i386/mingw-w64.h (LINK_SPEC): Add
7825         separating space between commands.
7826
7827 2009-07-28  Jan Hubicka  <jh@suse.cz>
7828
7829         PR tree-optimization/40759
7830         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
7831         for renaming.
7832
7833 2009-07-27  DJ Delorie  <dj@redhat.com>
7834
7835         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
7836         types are dword-aligned.
7837         (mep_expand_va_start): Likewise.
7838
7839 2009-07-27  Olivier Hainque  <hainque@adacore.com>
7840             Douglas B Rupp  <rupp@gnat.com>
7841
7842         * convert.c (convert_to_pointer): Don't assume the target
7843         pointer type is POINTER_SIZE long. Fetch its precision instead.
7844
7845 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
7846
7847         * system.h (fopen): Undefine if macro.
7848
7849 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
7850
7851         * dwarf2out.c (output_cfi_p): Removed.
7852         (output_cfis): New function.
7853         (output_fde): New function, split from output_call_frame_info.
7854         (output_call_frame_info): Use it.
7855         (dwarf2out_switch_text_section): Use output_cfis.
7856
7857 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
7858
7859         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
7860         TARGET_BI_ARCH is specified without enabling SJLJ.
7861         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
7862         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
7863
7864 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
7865
7866         * arm.md (negdi2): Use DImode if forcing a value into a register.
7867
7868 2009-07-26  Ira Rosen  <irar@il.ibm.com>
7869
7870         PR tree-optimization/40801
7871         * tree-vect-stmts.c (vectorizable_call): Get previous copy
7872         of vector operand from the previous copy of vector statement.
7873         Pass the correct definition type value to
7874         vect_get_vec_def_for_stmt_copy().
7875
7876 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7877
7878         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
7879         const char ** conversion.
7880
7881 2009-07-25 David Daney <ddaney@caviumnetworks.com>
7882
7883         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
7884         fancy_abort() if !ENABLE_ASSERT_CHECKING.
7885         (gcc_unreachable): Invoke __builtin_unreachable() if
7886         !ENABLE_ASSERT_CHECKING.
7887
7888 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
7889
7890         PR rtl-optimization/40445
7891         * emit-rtl.c (next_nonnote_insn_bb): New function.
7892         * rtl.h (next_nonnote_insn_bb): Declare new function.
7893         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
7894         with no successors that is the successor of the ENTRY_BLOCK.
7895         Continue from the top after removing an empty fallthrough block.
7896         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
7897         of next_nonnote_insn.
7898
7899 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
7900
7901         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
7902
7903 2009-07-25  Martin Jambor  <mjambor@suse.cz>
7904
7905         * c-common.c (c_common_attribute_table): New element for noclone.
7906         (handle_noclone_attribute): New function. Forward-declare.
7907         * tree-inline.c (tree_versionable_function_p): Check for noclone
7908         attribute.
7909         * doc/extend.texi (Labels as Values): Document need for noclone.
7910         (Function Attributes): Document noclone attribute.
7911
7912 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
7913
7914         PR rtl-optimization/34999
7915         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
7916         and dw_fde_switched_cold_to_hot fields.
7917         (output_cfi_p): New function.
7918         (output_call_frame_info): If fde->dw_fde_switched_sections,
7919         output 2 FDEs instead of one with corrupted header.
7920         (dwarf2out_do_cfi_startproc): New function.
7921         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
7922         and fde->dw_fde_switched_cold_to_hot.
7923         (dwarf2out_switch_text_section): Compute
7924         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
7925         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
7926         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
7927         Otherwise, compute fde->dw_fde_switch_cfi.
7928
7929 2009-07-24  Cary Coutant  <ccoutant@google.com>
7930
7931         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
7932
7933 2009-07-24  Cary Coutant  <ccoutant@google.com>
7934
7935         * cfghooks.c (split_block): Copy discriminator to new block.
7936         * tree-cfg.c (assign_discriminator): Check location of last
7937         instruction in block as well as first.
7938
7939 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
7940
7941         * config/i386/linux.c: Use fputs or putc instead of fprintf
7942         where appropriate.
7943         * config/i386/gas.h: Ditto.
7944         * config/i386/x86-64.h: Ditto.
7945         * config/i386/att.h: Ditto.
7946
7947 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7948
7949         * expmed.c (emit_store_flag): Use a recursive call to optimize the
7950         xor case.
7951
7952 2009-07-24  Martin Jambor  <mjambor@suse.cz>
7953
7954         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
7955         (ipa_push_func_to_list_1): Declare.
7956         (ipa_push_func_to_list): New function.
7957
7958         * ipa-prop.c (ipa_push_func_to_list_1): New function.
7959         (ipa_init_func_list): Call ipa_push_func_to_list_1.
7960         (ipa_push_func_to_list): Removed.
7961         (ipa_pop_func_from_list): Clear node_enqueued flag.
7962
7963 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
7964
7965         * config/s390/s390.c (override_options): Default
7966         max-unrolled-insns to 100 for z10 tuning.
7967
7968 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
7969
7970         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
7971         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
7972         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
7973         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
7974         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
7975         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
7976         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
7977
7978 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
7979
7980         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
7981         use default set in mingw32.h header.
7982         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
7983         64-bit /mingw/include path.
7984         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
7985         path.
7986
7987 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
7988
7989         PR rtl-optimization/40209
7990         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
7991
7992 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
7993
7994         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
7995         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
7996         with the rest of string where appropriate.  Use fputs or putc
7997         instead of fprintf where appropriate.
7998
7999 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
8000             Pat Haugen  <pthaugen@us.ibm.com>
8001             Revital Eres <ERES@il.ibm.com>
8002
8003         * config/rs6000/vector.md: New file.  Move most of the vector
8004         expander support here from altivec.md to allow for the VSX vector
8005         unit in the future.  Add support for secondary_reload patterns.
8006         Rewrite the patterns for vector comparison, and vector comparison
8007         predicate instructions so that the RTL expresses the desired
8008         behavior, instead of using unspec.
8009
8010         * config/rs6000/constraints.md ("f" constraint): Use
8011         rs6000_constraints to hold the precalculated register class.
8012         ("d" constraint): Ditto.
8013         ("wd" constraint): New constraint for VSX.
8014         ("wf" constraint): Ditto.
8015         ("ws" constraint): Ditto.
8016         ("wa" constraint): Ditto.
8017         ("wZ" constraint): Ditto.
8018         ("j" constraint): Ditto.
8019
8020         * config/rs6000/predicates.md (vsx_register_operand): New
8021         predicate for VSX.
8022         (vfloat_operand): New predicate for vector.md.
8023         (vint_operand): Ditto.
8024         (vlogical_operand): Ditto.
8025         (easy_fp_constant): If VSX, 0.0 is an easy constant.
8026         (easy_vector_constant): Add VSX support.
8027         (altivec_indexed_or_indirect_operand): New predicate for
8028         recognizing Altivec style memory references with AND -16.
8029
8030         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
8031         for vector secondary reload support.
8032         (rs6000_vector_reg_class): Delete, replacing it with
8033         rs6000_constraints.
8034         (rs6000_vsx_reg_class): Ditto.
8035         (rs6000_constraints): New array to hold the register classes of
8036         each of the register constraints that can vary at runtime.
8037         (builtin_mode_to_type): New static array for builtin function type
8038         creation.
8039         (builtin_hash_table): New static hash table for builtin function
8040         type creation.
8041         (TARGET_SECONDARY_RELOAD): Define target hook.
8042         (TARGET_IRA_COVER_CLASSES): Ditto.
8043         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
8044         registers are 128 bits if VSX memory reference instructions are used.
8045         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
8046         unit is being used.
8047         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
8048         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
8049         Print several of the scheduling related parameters.
8050         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
8051         rs6000_constraints instead of rs6000_vector_reg_class.  Move
8052         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
8053         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
8054         Altivec.  Add VSX support.  Setup for secondary reload support on
8055         Altivec/VSX registers.
8056         (rs6000_override_options): Make power7 set the scheduling groups
8057         like the power5.  Add support for new debug switches to override
8058         the scheduling defaults.  Temporarily disable -mcpu=power7 from
8059         setting -mvsx.  Add support for debug switches -malways-hint,
8060         -msched-groups, and -malign-branch-targets.
8061         (rs6000_buitlin_conversion): Add support for returning unsigned
8062         vector conversion functions to fix regressions due to stricter
8063         type checking.
8064         (rs6000_builtin_mul_widen_even): Ditto.
8065         (rs6000_builtin_mul_widen_odd): Ditto.
8066         (rs6000_builtin_vec_perm): Ditto.
8067         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
8068         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
8069         to zero a register.
8070         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
8071         generated upstream.
8072         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
8073         VSX types for bit operations.  Changes to accomidate vector.md.
8074         (bdesc_2arg): Ditto.
8075         (bdesc_1arg): Ditto.
8076         (struct builtin_description_predicates): Rewrite predicate
8077         handling so that RTL describes the operation, instead of passing
8078         the instruction to be used as a string argument.
8079         (bdesc_altivec_preds): Ditto.
8080         (altivec_expand_predicate_builtin): Ditto.
8081         (altivec_expand_builtin): Ditto.
8082         (rs6000_expand_ternop_builtin): Use a switch instead of an if
8083         statement for vsldoi support.
8084         (altivec_expand_ld_builtin): Change to use new names from vector.md.
8085         (altivec_expand_st_builtin): Ditto.
8086         (paired_expand_builtin): Whitespace changes.
8087         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
8088         builtin_mode_to_type table for secondary reload.  Call
8089         builtin_function_type to build random builtin functions.
8090         (altivec_init_builtins): Change to use builtin_function_type to
8091         create builtin function types dynamically as we need them.
8092         (builtin_hash_function): New support for hashing the tree types
8093         for builtin function as we need it, rather than trying to build
8094         all of the trees that we need.  Add initial preliminary VSX support.
8095         (builtin_function_type): Ditto.
8096         (builtin_function_eq): Ditto.
8097         (builtin_hash_struct): Ditto.
8098         (rs6000_init_builtins): Ditto.
8099         (rs6000_common_init_builtins): Ditto.
8100         (altivec_init_builtins): Ditto.
8101         (rs6000_common_init_builtins): Ditto.
8102         (enum reload_reg_type): New enum for simplifing reg classes.
8103         (rs6000_reload_register_type): Simplify register classes into GPR,
8104         Vector, and other registers.  Altivec and VSX addresses in reload.
8105         (rs6000_secondary_reload_inner): Ditto.
8106         (rs6000_ira_cover_classes): New target hook, that returns the
8107         appropriate cover classes, based on -mvsx being used or not.
8108         (rs6000_secondary_reload_class): Add VSX support.
8109         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
8110         (get_vsel_insn): Ditto.
8111         (rs6000_emit_vector_compare): Rewrite vector conditional support
8112         so that where we can, we use RTL operators, instead of blindly use
8113         UNSPEC.
8114         (rs6000_emit_vector_select): Ditto.
8115         (rs6000_emit_vector_cond_expr): Ditto.
8116         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
8117         (create_TOC_reference): Add -mdebug=addr support.
8118         (emit_frame_save): VSX loads/stores need register indexed addressing.
8119
8120         * config/rs6000/rs6000.md: Include vector.md.
8121
8122         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
8123
8124         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8125         support for V2DI, V2DF in logical, permute, select operations.
8126
8127         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
8128         switch for vsx/power7.
8129         (-mvsx-scalar-memory): Ditto.
8130         (-mvsx-align-128): Ditto.
8131         (-mallow-movmisalign): Ditto.
8132         (-mallow-df-permute): Ditto.
8133         (-msched-groups): Ditto.
8134         (-malways-hint): Ditto.
8135         (-malign-branch-targets): Ditto.
8136
8137         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
8138         hook instead.
8139         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
8140         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
8141         (rs6000_vector_reg_class): Delete.
8142         (rs6000_vsx_reg_class): Ditto.
8143         (enum rs6000_reg_class_enum): New enum for the constraints that
8144         vary based on target switches.
8145         (rs6000_constraints): New array to hold the register class for all
8146         of the register constraints that vary based on the switches used.
8147         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
8148         (enum rs6000_builtins): Add unsigned varients for the builtin
8149         declarations returned by target hooks for expanding multiplies,
8150         select, and permute operations.  Add VSX builtins.
8151         (enum rs6000_builtin_type_index): Add entries for VSX.
8152         (V2DI_type_node): Ditto.
8153         (V2DF_type_node): Ditto.
8154         (unsigned_V2DI_type_node): Ditto.
8155         (bool_long_type_node): Ditto.
8156         (intDI_type_internal_node): Ditto.
8157         (uintDI_type_internal_node): Ditto.
8158         (double_type_internal_node): Ditto.
8159
8160         * config/rs6000/altivec.md (whole file): Move all expanders to
8161         vector.md from altivec.md.  Rename insn matching functions to be
8162         altivec_foo.
8163         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
8164         (altivec_vcmp*): Ditto.
8165         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
8166         (VM): New iterator for moves that includes the VSX types.
8167         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
8168         (altivec_vperm_<mode>_uns): New, for unsigned types.
8169         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
8170         (altivec_eq<mode>): Ditto.
8171         (altivec_gt<mode>): Ditto.
8172         (altivec_gtu<mode>): Ditto.
8173         (altivec_eqv4sf): Ditto.
8174         (altivec_gev4sf): Ditto.
8175         (altivec_gtv4sf): Ditto.
8176         (altivec_vcmpbfp_p): Ditto.
8177
8178 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
8179
8180         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
8181         unsigned HWI.
8182
8183 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
8184
8185         PR target/40832
8186         * config/i386/i386.c (output_387_ffreep): Rewrite to use
8187         ASM_SHORT instead of .word.
8188         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
8189         instead of .word in asm template.
8190
8191 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
8192
8193         PR target/37488
8194         * ira-lives.c (bb_has_abnormal_call_pred): New function.
8195         (process_bb_node_lives): Use it.
8196
8197         * ira.c (setup_cover_and_important_classes): Don't setup
8198         ira_important_class_nums.  Add cover classes to the end of
8199         important classes.
8200         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
8201         New.
8202         (find_reg_class_closure): Use reorder_important_classes.
8203
8204         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
8205
8206         * config/i386/i386.c (i386_ira_cover_classes): New function.
8207         (TARGET_IRA_COVER_CLASSES): Redefine.
8208
8209         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
8210         importance of order of cover classes in the array.
8211
8212 2009-07-22  Diego Novillo  <dnovillo@google.com>
8213
8214         * tree-pass.h (TDF_EH): Define.
8215         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
8216         contains TDF_EH, print the EH region number holding GS.
8217         * tree-dump.c (dump_options): Add "eh".
8218         * doc/invoke.texi: Document it.
8219
8220 2009-07-22  Doug Kwan  <dougkwan@google.com>
8221
8222         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
8223
8224 2009-07-22  Michael Matz  <matz@suse.de>
8225
8226         PR tree-optimization/35229
8227         PR tree-optimization/39300
8228
8229         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
8230         (inhibit_phi_insertion): New function.
8231         (insert_into_preds_of_block): Call it for REFERENCEs.
8232         (init_pre): Initialize and finalize scalar evolutions.
8233         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
8234
8235 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
8236
8237         * config/i386/predicates.md (zero_extended_scalar_load_operand):
8238         Use CONST_VECTOR_NUNITS to determine number of elements.
8239
8240 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
8241
8242         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
8243         (U, W): Constraints are now deprecated and will be removed if we
8244         run out of letters.
8245         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
8246         the file.
8247         ("prefetch"): Add the stcmh instruction for prefetching.
8248         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
8249         changes.
8250         (s390_short_displacement): Return always true if compiling for
8251         machines not providing the long displacement facility.
8252         (s390_mem_constraint): Support the new constraint letter Z.
8253         (s390_check_qrst_address): New function.
8254
8255 2009-07-21  DJ Delorie  <dj@redhat.com>
8256
8257         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
8258         alone too.
8259
8260 2009-07-21  Jason Merrill  <jason@redhat.com>
8261
8262         * c-common.c (max_tinst_depth): Increase default to 1024.
8263
8264 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
8265
8266         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
8267         (vec_unpacku_float_lo_v4si): Ditto.
8268
8269 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
8270
8271         PR target/40811
8272         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
8273         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
8274         (builtin_description): Add __builtin_ia32_cvtudq2ps.
8275         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
8276
8277 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
8278
8279         PR tree-optimization/40813
8280         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
8281         it.
8282
8283 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
8284
8285         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
8286         with a NOP_EXPR if needed.
8287
8288 2009-07-21  Paul Brook <paul@codesourcery.com>
8289
8290         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
8291         Terminate debug dump with newline.
8292
8293 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8294
8295         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
8296         Cast "1" to unsigned HOST_WIDE_INT.
8297         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
8298         deposit length to the maximum length - lsb.  Extend length if
8299         HOST_BITS_PER_WIDE_INT is 32.
8300
8301 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
8302
8303         * cgraph.h (constant_pool_htab): New function.
8304         (constant_descriptor_tree): Move from varasm.c.
8305         * varasm.c (constant_pool_htab): New function.
8306         (constant_descriptor_tree): Move to cgraph.h.
8307
8308 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
8309
8310         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
8311
8312 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
8313
8314         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
8315         $(VARRAY_H).
8316
8317 2009-07-20  Xinliang David Li  <davidxl@google.com>
8318
8319         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
8320
8321 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
8322
8323         * config/mips/mips.md (move_type): Add arith.
8324         (type): Handle arith.
8325         (zero_extendsidi2): Rename this into ...
8326         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
8327         (zero_extendsidi2): New expander.
8328         (*zero_extendsidi2_dext): New pattern.
8329
8330 2009-07-20  Nick Clifton  <nickc@redhat.com>
8331
8332         * config.gcc (mips64-*-*): Add definition of tm_defines in order
8333         to set MIPS_ABI_DEFAULT.
8334         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
8335
8336 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
8337
8338         * tree-object-size.c (addr_object_size): Handle unions with
8339         array in it as last field of structs in __bos (, 1) as __bos (, 0).
8340
8341         PR tree-optimization/40792
8342         * tree.c (build_function_type_skip_args): Remove bogus assert.
8343
8344 2009-07-20  Jan Hubicka  <jh@suse.cz>
8345             Martin Jambor  <mjambor@suse.cz>
8346
8347         * cgraph.h (combined_args_to_skip): New field.
8348         * cgraph.c (cgraph_create_virtual_clone): Properly handle
8349         combined_args_to_skip and args_to_skip.
8350         * tree-inline.c (update_clone_info): New function.
8351         (tree_function_versioning): Call update_clone_info.
8352         * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
8353         functions.
8354         (cgraph_materialize_all_clones): More extensive dumping, working
8355         with combined_args_to_skip rather than args_to_skip.
8356
8357 2009-07-20  Ira Rosen  <irar@il.ibm.com>
8358
8359         * tree-vectorizer.h (vectorizable_condition): Add parameters.
8360         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
8361         (get_initial_def_for_reduction): Likewise.
8362         (vectorizable_reduction): Skip the check of first operand in case
8363         of COND_EXPR. Add check that it is outer loop vectorization if
8364         nested cycle was detected. Call vectorizable_condition() for
8365         COND_EXPR. If reduction epilogue cannot be created do not fail for
8366         nested cycles (if it is not double reduction). Assert that there
8367         is only one type in the loop in case of COND_EXPR. Call
8368         vectorizable_condition() to vectorize COND_EXPR.
8369         * tree-vect-stmts.c (vectorizable_condition): Update comment.
8370         Add parameters. Allow nested cycles if called from
8371         vectorizable_reduction(). Use reduction vector variable if provided.
8372         (vect_analyze_stmt): Call vectorizable_reduction() before
8373         vectorizable_condition().
8374         (vect_transform_stmt): Update call to vectorizable_condition().
8375
8376 2009-07-20  Christian Bruel  <christian.bruel@st.com>
8377
8378         * config/sh/sh.opt (-mfmovd): Resurrect and document.
8379         * doc/invoke.texi (-mfmovd): Likewise.
8380         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
8381
8382 2009-07-20  Jan Hubicka  <jh@suse.cz>
8383
8384         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
8385         when handling SSA name.
8386
8387 2009-07-19  Jan Hubicka  <jh@suse.cz>
8388
8389         PR tree-optimization/40676
8390         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
8391         virtual PHIs in empty BBs.
8392
8393 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
8394
8395         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
8396         re-expanded the compound use gen_lowpart instead to convert to the
8397         desired mode.
8398
8399 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
8400
8401         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
8402         OUTER_CONST arguments.
8403         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
8404         the new wider mode will be masked off.
8405         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
8406
8407 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
8408
8409         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
8410         high-order bits are zero.
8411
8412 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
8413
8414         * combine.c (simplify_shift_const_1): Split code to determine
8415         shift_mode into ...
8416         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
8417         new bits shifted in are identical to the old sign bit.
8418
8419 2009-07-18  Richard Guenther  <rguenther@suse.de>
8420
8421         PR c/40787
8422         * gimplify.c (gimplify_call_expr): Reject code using results from
8423         functions returning void.
8424
8425 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
8426
8427         * doc/md.texi: Document the new PowerPC "es" constraint.
8428         Document that "m" can include automodified addresses on this target,
8429         and explain how %U must be used.  Extend the "Q" and "Z" documentation
8430         to suggest "es" as well as "m".
8431         * config/rs6000/constraints.md (es): New memory constraint.
8432         (Q, Z): Update strings to match new documentation.
8433
8434 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
8435
8436         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
8437         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
8438         * config/rs6000/predicates.md (volatile_mem_operand): Use
8439         offsettable_nonstrict_memref_p.
8440         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
8441         (*floatunssidf2_internal): Likewise.
8442         (*fix_truncdfsi2_internal): Likewise.
8443         (*fix_trunctfsi2_internal): Likewise.
8444
8445 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
8446
8447         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
8448         atmega32u2 devices.
8449         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
8450
8451 2009-07-17  Richard Guenther  <rguenther@suse.de>
8452
8453         PR c/40401
8454         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
8455         (pass_warn_unused_result): Likewise.
8456         (TODO_set_props): Remove.
8457         * omp-low.c (diagnose_omp_structured_block_errors): Change to
8458         run as a pass.
8459         (pass_diagnose_omp_blocks): Define.
8460         * c-decl.c (pop_file_scope): Do not finalize the CU here.
8461         (c_gimple_diagnostics_recursively): Remove.
8462         (finish_function): Do not call it.
8463         (c_write_global_declarations): Continue after errors.
8464         Finalize the CU here.
8465         * c-gimplify.c (c_genericize): Do not gimplify here.
8466         * c-common.c (c_warn_unused_result): Move ...
8467         * tree-cfg.c (do_warn_unused_result): ... here.
8468         (run_warn_unused_result): New function.
8469         (gate_warn_unused_result): New function.
8470         (pass_warn_unused_result): New pass.
8471         * c-common.h (c_warn_unused_result): Remove.
8472         * flags.h (flag_warn_unused_result): Declare.
8473         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
8474         * opts.c (flag_warn_unused_result): Initialize to false.
8475         * toplev.c (compile_file): Add comment.
8476         * omp-low.c (create_omp_child_function): Do not register
8477         the function with the frontend.
8478         (diagnose_omp_structured_block_errors): Prepare to be
8479         called as optimization pass.
8480         (gate_diagnose_omp_blocks): New function.
8481         (pass_diagnose_omp_blocks): New pass.
8482         * cgraph.h (cgraph_optimize): Remove.
8483         (cgraph_analyze_function): Likewise.
8484         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
8485         * cgraphunit.c (cgraph_lower_function): Lower nested functions
8486         before their parents here.
8487         (cgraph_finalize_function): Not here.
8488         (cgraph_analyze_function): Gimplify functions here.
8489         (cgraph_finalize_compilation_unit): Continue after errors.
8490         Optimize the callgraph from here.
8491         (cgraph_optimize): Make static.
8492         * langhooks.c (write_global_declarations): Finalize the CU.
8493         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
8494         (gimplify_function_tree): Assert we gimplify only once.
8495         Set PROP_gimple_any property.
8496         * tree-nested.c (gimplify_all_functions): New function.
8497         (lower_nested_functions): Gimplify all nested functions.
8498         * gimple.h (diagnose_omp_structured_block_errors): Remove.
8499         * passes.c (init_optimization_passes): Add pass_warn_unused_result
8500         and pass_diagnose_omp_blocks after gimplification.  Do not
8501         set TODO_set_props on all_lowering_passes.
8502         (execute_one_pass): Do not handle TODO_set_props.
8503         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
8504         (gimplify.o): Add tree-pass.h dependency.
8505         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
8506         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
8507         (unsave_r): Likewise.
8508         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
8509         temporary variable.
8510
8511 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
8512
8513         * doc/service.texi (Service): Restore previously removed link,
8514         which isn't broken after all.
8515
8516 2009-07-17  Richard Guenther  <rguenther@suse.de>
8517
8518         PR tree-optimization/40321
8519         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
8520         PHI nodes to the maximal set.
8521         (make_values_for_phi): Add PHI arguments to the maximal set.
8522         (execute_pre): Dump PHI_GEN and the maximal set.
8523
8524 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
8525
8526         PR c++/40780
8527         * gimplify.c (gimplify_conversion): Don't change non-conversions into
8528         VIEW_CONVERT_EXPR.
8529
8530 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
8531
8532         * doc/extend.texi (Nested Functions): Replace broken link with
8533         textual reference.
8534         * doc/service.texi (Service): Remove broken link.
8535
8536 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
8537
8538         PR bootstrap/40781
8539         * builtins.c (expand_builtin_memcmp): Use loc instead of
8540         EXPR_LOCATION (exp).
8541         (expand_builtin_strncmp): Likewise.
8542
8543 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
8544             Manuel López-Ibáñez  <manu@gcc.gnu.org>
8545
8546         PR 40435
8547         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
8548         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
8549         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
8550         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
8551         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
8552         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
8553         tree-inline.c, c-common.c, c-common.h, gimple.c,
8554         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
8555         convert.c: Add location argument to fold_{unary,binary,ternary},
8556         fold_build[123], build_call_expr, build_size_arg,
8557         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
8558         fold_build1_initializer, fold_build2_initializer,
8559         fold_build3_initializer, fold_build_call_array,
8560         fold_build_call_array_initializer, fold_single_bit_test,
8561         omit_one_operand, omit_two_operands, invert_truthvalue,
8562         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
8563         combine_comparisons, fold_builtin_*, fold_call_expr,
8564         build_range_check, maybe_fold_offset_to_address, round_up,
8565         round_down.
8566
8567 2009-07-16  Jason Merrill  <jason@redhat.com>
8568
8569         PR libstdc++/37907
8570         * c-common.c (c_common_reswords): Add __is_standard_layout
8571         and __is_trivial.
8572         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
8573         * doc/implement-cxx.texi: New.
8574         * doc/gcc.texi: Include it.
8575
8576 2009-07-16  DJ Delorie  <dj@redhat.com>
8577
8578         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
8579         compares that may be indirectly affected by previous instructions.
8580
8581 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8582
8583         * builtins.c (do_mpc_arg2): New.
8584         (fold_builtin_2): Fold builtin cpow.
8585         * real.h (HAVE_mpc_pow): New.
8586
8587 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
8588
8589         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
8590         comparison to skip unprofitable schedule
8591
8592 2009-07-16  Simon Baldwin  <simonb@google.com>
8593
8594         * gcc.c (option_map): New flag -no-canonical-prefixes.
8595         * (display_help): Print help text for new flag.
8596         * (process_command): Move options translation and language specifics
8597         and handle new flag early.  Use it to set a function pointer to a
8598         prefix builder.  Replace make_relative_prefix calls with calls to
8599         the function pointed to.  Ignore new flag in regular options handling.
8600         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
8601
8602 2009-07-15  DJ Delorie  <dj@redhat.com>
8603
8604         * config/mep/mep.md (sibcall_internal): Change register to avoid
8605         argument registers.
8606         (sibcall_value_internal): Likewise.
8607
8608 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
8609
8610         PR rtl-optimization/40710
8611         * resource.c (mark_target_live_regs): Reset DF problem to LR.
8612
8613 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
8614
8615         * config/mips/mips.md (*extenddi_truncate<mode>,
8616         *extendsi_truncate<mode>): Change type attribute to move_type
8617         with shift_shift.  Split out code handling exts from here ...
8618         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
8619         pattern.
8620         (*extendhi_truncateqi): Change type attribute to move_type with
8621         shift_shift.  Split out code handling exts from here ...
8622         (*extendhi_truncateqi_exts): ... to this new pattern.
8623
8624 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
8625
8626         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
8627         instead of "and" with inverted sign bit mask value.  Use
8628         "nonimmediate_operand" for operand 1 and operand 2 predicate.
8629         Allocate registers only for operand 4 and operand 5.
8630
8631 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
8632
8633         PR middle-end/40747
8634         * fold-const.c (fold_cond_expr_with_comparison): When folding
8635         < and <= to MIN, make sure the MIN uses the same type as the
8636         comparison's operands.
8637
8638 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
8639
8640         * arm.md (ior_xor): New code iterator.
8641         (split for ior/xor with shift and zero-extend): New split pattern.
8642         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
8643
8644 2009-07-15  Richard Guenther  <rguenther@suse.de>
8645
8646         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
8647         offset member.
8648
8649 2009-07-15  Richard Guenther  <rguenther@suse.de>
8650
8651         PR middle-end/40753
8652         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
8653
8654 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
8655
8656         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
8657         handle 2.6.30 kernel.
8658
8659 2009-07-15  DJ Delorie  <dj@redhat.com>
8660
8661         * config/mep/mep.md (sibcall_internal): Change register to allow
8662         for 24-bit addresses.
8663         (sibcall_value_internal): Likewise.
8664
8665 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
8666
8667         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
8668         that are enabled/disabled by the flags introduced by a previous patch.
8669
8670 2009-07-14  DJ Delorie  <dj@redhat.com>
8671
8672         * config/mep/mep.md (sibcall_internal): Include non-toggling
8673         non-jmp case.
8674         (sibcall_value_internal): Likewise.
8675
8676 2009-07-14  Taras Glek  <tglek@mozilla.com>
8677             Rafael Espindola  <espindola@google.com>
8678
8679         * doc/sourcebuild.texi: Document install-plugin target.
8680         * configure.ac: Added install-plugin target to language makefiles.
8681         * configure: Regenerate.
8682         * Makefile.in: (install-plugin): Install more headers,
8683         depend on lang.install-plugin.
8684
8685 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8686
8687         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
8688         translation.
8689
8690 2009-07-14  DJ Delorie  <dj@redhat.com>
8691
8692         * config/mep/mep.c (mep_vliw_jmp_match): New function.
8693         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
8694         * config/mep/mep.md (sibcall_internal): Change test from
8695         mep_vliw_mode_match to mep_vliw_jmp_match.
8696         (sibcall_value_internal): Likewise.
8697
8698 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
8699
8700         * config/i386/sse.md (copysign<mode>3): New expander.
8701         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
8702         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
8703         Use ix86_build_const_vector.
8704         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
8705         IX86_BUILTIN_CPYSGNPD.
8706         (builtin_description): Add __builtin_ia32_copysignps and
8707         __builtin_ia32_copysignpd.
8708         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
8709         and BUILT_IN_COPYSIGNF.
8710
8711 2009-07-13  Jason Merrill  <jason@redhat.com>
8712
8713         * builtins.c (can_trust_pointer_alignment): New fn.
8714         (get_pointer_alignment): Factor it out from here.
8715         * tree.h: Declare it.
8716
8717 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
8718
8719         * config/rs6000/predicates.md (offsettable_mem_operand): Test
8720         RTX_AUTOINC class.
8721
8722 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
8723
8724         PR debug/40705
8725         PR c++/403057
8726         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
8727
8728 2009-07-14  Richard Guenther  <rguenther@suse.de>
8729             Andrey Belevantsev <abel@ispras.ru>
8730
8731         PR middle-end/40745
8732         * cfgexpand.c (partition_stack_vars): Do not bother to update
8733         alias information when not optimizing.
8734
8735 2009-07-14  Richard Guenther  <rguenther@suse.de>
8736             Andrey Belevantsev <abel@ispras.ru>
8737
8738         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
8739         (pt_solution_set): Likewise.
8740         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
8741         * tree-ssa-structalias.c (pt_solution_set): New function.
8742         * final.c (rest_of_clean_state): Free SSA data structures.
8743         * print-rtl.c (print_decl_name): Remove.
8744         (print_mem_expr): Implement in terms of print_generic_expr.
8745         * alias.c (ao_ref_from_mem): New function.
8746         (rtx_refs_may_alias_p): Likewise.
8747         (true_dependence): Query alias-export info.
8748         (canon_true_dependence): Likewise.
8749         (write_dependence_p): Likewise.
8750         * tree-dfa.c (get_ref_base_and_extent): For void types leave
8751         size unknown.
8752         * emit-rtl.c (component_ref_for_mem_expr): Remove.
8753         (mem_expr_equal_p): Use operand_equal_p.
8754         (set_mem_attributes_minus_bitpos): Do not use
8755         component_ref_for_mem_expr.
8756         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
8757         (update_alias_info_with_stack_vars): Likewise.
8758         (partition_stack_vars): Call update_alias_info_with_stack_vars.
8759         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
8760         explicitly nor clear stmt operands.
8761         Free the decl-to-pointer map.
8762         * tree-optimize.c (execute_free_datastructures): Do not free
8763         SSA data structures here.
8764         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
8765         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
8766         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
8767         dependencies.
8768         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
8769
8770 2009-07-13  DJ Delorie  <dj@redhat.com>
8771
8772         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
8773         unrolling at the right iteration count.
8774
8775         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
8776         calculations.
8777
8778 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
8779
8780         * haifa-sched.c (rank_for_schedule): Introduced flags to
8781         enable/disable individual scheduling heuristics.
8782         * common.opt: Introduced flags to enable/disable individual
8783         heuristics in the scheduler.
8784         * doc/invoke.texi: Introduced flags to enable/disable individual
8785         heuristics in the scheduler.
8786
8787 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
8788
8789         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
8790         config/i386/mingw-tls.c.
8791         * config/i386/mingw-tls.c: Removed.
8792
8793 2009-07-13  Ira Rosen  <irar@il.ibm.com>
8794
8795         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
8796         checks access only relevant statements.
8797         (vectorizable_reduction): Likewise.
8798
8799 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
8800
8801         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
8802         just for 32-bit case.
8803
8804 2009-07-12  Jan Hubicka  <jh@suse.cz>
8805
8806         PR tree-optimization/40585
8807         * except.c (expand_resx_expr): When there already is resume
8808         instruction, produce linked list.
8809         (build_post_landing_pads): Assert that resume is empty.
8810         (connect_post_landing_pads): Handle resume lists.
8811         (dump_eh_tree): Dump resume list.
8812
8813 2009-07-12  Ira Rosen  <irar@il.ibm.com>
8814
8815         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
8816         with additional argument.
8817         * tree-vectorizer.h (enum vect_def_type): Add
8818         vect_double_reduction_def.
8819         (vect_is_simple_reduction): Add argument.
8820         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
8821         indentation.
8822         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
8823         vect_is_simple_reduction with additional argument.
8824         (vect_analyze_loop_operations): Handle exit phi nodes in case of
8825         double reduction.
8826         (reduction_code_for_scalar_code): Handle additional codes by
8827         returning ERROR_MARK for them. Fix comment and indentation.
8828         (vect_is_simple_reduction): Fix comment, add argument to specify
8829         double reduction. Detect double reduction.
8830         (get_initial_def_for_induction): Fix indentation.
8831         (get_initial_def_for_reduction): Fix comment and indentation.
8832         Handle double reduction. Create initial definitions that do not
8833         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
8834         (vect_create_epilog_for_reduction): Fix comment, add argument to
8835         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
8836         epilogue result extraction. Create double reduction phi node and
8837         replace relevant uses.
8838         (vectorizable_reduction): Call vect_is_simple_reduction with
8839         additional argument. Fix indentation. Update epilogue code treatment
8840         according to the changes in reduction_code_for_scalar_code. Check
8841         for double reduction. Call vect_create_epilog_for_reduction with
8842         additional argument.
8843         * tree-vect-stmts.c (process_use): Handle double reduction, update
8844         documentation.
8845         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
8846         (vect_get_vec_def_for_operand): Likewise.
8847
8848 2009-07-12  Danny Smith  <dansmister@gmail.com>
8849
8850         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
8851         dllexport if !TREE_PUBLIC.
8852         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
8853
8854 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
8855
8856         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
8857         (avr_extra_arch_macro) Remove declatation.
8858         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
8859         (avr_extra_arch_macro) Declare as static.
8860         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
8861
8862 2009-07-11  Jan Hubicka  <jh@suse.cz>
8863
8864         PR middle-end/48388
8865         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
8866
8867 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
8868
8869         PR debug/40713
8870         * dwarf2out.c (dw_fde_struct): Add in_std_section and
8871         cold_in_std_section bits.
8872         (dwarf2out_begin_prologue): Initialize them.
8873         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
8874         if already covered by text_section or cold_text_section range.
8875
8876         PR rtl-optimization/40667
8877         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
8878         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
8879         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
8880         * config/i386/i386.c (ix86_minimum_alignment): New function.
8881         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
8882         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
8883         * emit-rtl.c (gen_reg_rtx): Likewise.
8884         * function.c (assign_parms): Likewise.  If nominal_type needs
8885         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
8886         rather than passed_type's alignment.
8887
8888         PR target/40668
8889         * function.c (assign_parm_setup_stack): Adjust
8890         MEM_OFFSET (data->stack_parm) if promoted_mode is different
8891         from nominal_mode on big endian.
8892
8893 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
8894
8895         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
8896
8897 2009-07-10  DJ Delorie  <dj@redhat.com>
8898
8899         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
8900
8901 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
8902
8903         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
8904         attribute.
8905         (thumb2_cbnz): Likewise.
8906
8907 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
8908
8909         PR target/39079
8910         * config.gcc (supported_defaults): Add synci.
8911         (with_synci): Add validation.
8912         (all_defaults): Add synci.
8913         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
8914         ISA_HAS_SYNCI.
8915         (synci): Same.
8916         * config/mips/mips.opt (msynci): New option.
8917         * config/mips/mips.c (mips_override_options): Warn on use of
8918         -msynci for targets that do now support it.
8919         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
8920         msynci.
8921         * gcc/doc/invoke.texi (-msynci): Document the new option.
8922         * doc/install.texi (--with-synci): Document the new option.
8923
8924 2009-07-10  Richard Guenther  <rguenther@suse.de>
8925
8926         PR tree-optimization/40496
8927         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
8928         the PHI result with a compatible type.
8929
8930 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8931
8932         PR 25509
8933         PR 40614
8934         * c.opt (Wunused-result): New.
8935         * doc/invoke.texi: Document it.
8936         * c-common.c (c_warn_unused_result): Use it.
8937
8938 2009-07-09  DJ Delorie  <dj@redhat.com>
8939
8940         * targhooks.c (default_target_can_inline_p): Rename from
8941         default_target_option_can_inline_p.
8942         * targhooks.h (default_target_can_inline_p): Likewise.
8943         * target-def.h (TARGET_CAN_INLINE_P): Rename from
8944         TARGET_OPTION_CAN_INLINE_P.
8945         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
8946         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
8947         (mep_target_can_inline_p): Rename from
8948         mep_target_option_can_inline_p.
8949
8950         PR target/40626
8951         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
8952         registers used to pass vectors.
8953
8954         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
8955
8956 2009-07-09  Tom Tromey  <tromey@redhat.com>
8957
8958         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
8959         * config/mmix/mmix.c: Include dwarf2.h.
8960         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
8961         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
8962         * config/sh/sh.c: Include dwarf2.h.
8963         * config/i386/i386.c: Include dwarf2.h.
8964         * Makefile.in (DWARF2_H): Remove 'elf'.
8965         * except.c: Include dwarf2.h.
8966         * unwind-dw2.c: Include dwarf2.h.
8967         * dwarf2out.c: Include dwarf2.h.
8968         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
8969         * unwind-dw2-fde.c: Include dwarf2.h.
8970         * dwarf2asm.c: Include dwarf2.h.
8971
8972 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
8973
8974         * haifa-sched.c (insn_finishes_cycle_p): New static function.
8975         (max_issue): Use it.
8976         * sched-int.h (struct sched_info: insn_finishes_block_p): New
8977         scheduler hook.
8978         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
8979         (region_sched_info): Update.
8980         * sched-ebb.c (ebb_sched_info): Update.
8981         * modulo-sched.c (sms_sched_info): Update.
8982         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
8983
8984 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
8985
8986         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
8987
8988 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
8989
8990         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
8991
8992 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
8993
8994         PR middle-end/40692
8995         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
8996         arg1 with arg01 if arg1 is already INTEGER_CST.
8997
8998 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
8999
9000         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
9001         Transform (and (truncate)) into (truncate (and)).
9002
9003 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
9004
9005         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
9006         creating LHS paradoxical subregs.  Fix surrounding returns to
9007         use NULL_RTX rather than 0.
9008
9009 2009-07-08  DJ Delorie  <dj@redhat.com>
9010
9011         * config/mep/mep.c: (mep_option_can_inline_p): New.
9012         (TARGET_OPTION_CAN_INLINE_P): Define.
9013
9014 2009-07-08  Mark Wielaard  <mjw@redhat.com>
9015
9016         PR debug/40659
9017         * dwarf2out.c (add_data_member_location_attribute): When we have
9018         only a constant offset don't emit a new location description using
9019         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
9020         dwarf_version > 2.
9021
9022 2009-07-08  Richard Henderson  <rth@redhat.com>
9023
9024         PR target/38900
9025         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
9026         (enum reg_class): Add CLOBBERED_REGS.
9027         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
9028         * config/i386/i386.c (ix86_conditional_register_usage): Moved
9029         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
9030         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
9031         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
9032         force 64-bit sibcalls into R11.
9033         * config/i386/constraints.md (U): New constraint.
9034         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
9035         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
9036         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
9037
9038 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
9039
9040         * basic-block.h (dump_regset, debug_regset): Remove duplicate
9041         prototypes.
9042         * c-objc-common.h (c_initialize_diagnostics): Ditto.
9043         * ebitmap.h (dump_ebitmap): Ditto.
9044         * optabs.h (optab_libfunc): Ditto.
9045         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
9046         * tree-flow.h (vect_can_force_dr_alignment_p,
9047         get_vectype_for_scalar_type): Ditto.
9048         (vectorize_loops): Move prototype to ...
9049         * tree-vectorizer.h: ... here. Also, adjust comment.
9050         (vect_set_verbosity_level): Remove duplicate prototype.
9051         * tree-ssa-loop.c: Include tree-vectorizer.h.
9052         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
9053
9054 2009-07-08  Nick Clifton  <nickc@redhat.com>
9055
9056         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
9057         forward slash.
9058
9059 2009-07-08  DJ Delorie  <dj@redhat.com>
9060
9061         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
9062         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
9063         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
9064         written to.
9065         * config/mep/intrinsics.md: Regenerated.
9066         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
9067         registers when asm() or calls are detected.
9068
9069 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9070
9071         PR c++/31246
9072         * gimplify.c (gimplify_expr): Propagate no_warning flag when
9073         gimplifying.
9074         * gimple (gimple_build_call_from_tree): Likewise.
9075         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
9076         no_warning flag before warning.
9077
9078 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9079
9080         * tree.c (set_expr_locus): Remove.
9081         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
9082         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
9083         EXPR_LOCATION.
9084         * gimplify.c (internal_get_tmp_var): Likewise.
9085         (gimplify_call_expr): Likewise.
9086         (gimplify_one_sizepos): Likewise.
9087
9088 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
9089
9090         PR debug/40666
9091         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
9092         to variables for debugging purposes.
9093
9094 2009-06-23  Mark Loeser  <mark@halcy0n.com>
9095
9096         PR build/40010
9097         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
9098
9099 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9100
9101         * pretty-print.c (pp_base_format): Remove %J.
9102         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
9103         gcc_cxxdiag_char_table): Likewise.
9104         (init_dynamic_diag_info): Likewise.
9105
9106 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9107
9108         * pretty-print.c (pp_base_format): Remove %H.
9109         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
9110         gcc_cxxdiag_char_table): Likewise.
9111         (init_dynamic_diag_info): Likewise.
9112         * config/mep/mep.c (mep_select_section): Likewise.
9113
9114 2009-07-07  Duncan Sands  <baldrick@free.fr>
9115
9116         * final.c (pass_clean_state): Give the pass a name.
9117         * passes.c (pass_rest_of_compilation): Likewise.
9118         * tree-optimize.c (pass_all_optimizations): Likewise.
9119
9120 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
9121
9122         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
9123         an extra 'decl' for error_at.
9124
9125 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
9126
9127         PR middle-end/40669
9128         * tree-tailcall.c (adjust_return_value_with_ops,
9129         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
9130         if it has complex or vector type.
9131
9132 2009-07-07  Olivier Hainque  <hainque@adacore.com>
9133
9134         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
9135         pthread symbols.
9136
9137 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
9138
9139         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
9140
9141 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9142
9143         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
9144         * c-decl.c: Likewise.
9145         * function.c: Likewise.
9146         * varasm.c: Likewise.
9147         * tree-ssa.c: Likewise.
9148         * c-common.c: Likewise.
9149         * tree-cfg.c: Likewise.
9150         * config/spu/spu.c: Likewise.
9151         * config/ia64/ia64.c: Likewise.
9152         * config/v850/v850.c: Likewise.
9153
9154 2009-07-06  DJ Delorie  <dj@redhat.com>
9155
9156         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
9157         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
9158         unspecified accesses to control registers.
9159         * config/mep/intrinsics.md: Regenerate.
9160         * config/mep/intrinsics.h: Regenerate.
9161         * config/mep/mep-intrin.h: Regenerate.
9162
9163 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9164
9165         * c-lex.c: Replace %H by an explicit location. Update all calls.
9166         * c-common.c: Likewise.
9167         * c-decl.c: Likewise.
9168         * c-typeck.c: Likewise.
9169         * fold-const.c: Likewise.
9170         * gimplify.c: Likewise.
9171         * stmt.c: Likewise.
9172         * tree-cfg.c: Likewise.
9173         * tree-ssa-loop-niter.c: Likewise.
9174         * tree-vrp.c: Likewise.
9175         * value-prof.c: Likewise.
9176
9177 2009-07-06  Diego Novillo  <dnovillo@google.com>
9178
9179         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
9180         if it has one.  Handle cases where VAR does not have an
9181         annotation or cfun is NULL.
9182
9183 2009-07-06  Diego Novillo  <dnovillo@google.com>
9184
9185         * tree.c: Include debug.h.
9186         (initialize_tree_contains_struct): New.
9187         (init_ttree): Call it.
9188         (tree_node_structure_for_code): Factor out of ...
9189         (tree_node_structure): ... here.
9190         * treestruct.def (TS_PHI_NODE): Remove.
9191         (TS_GIMPLE_STATEMENT): Remove.
9192
9193 2009-07-06  Diego Novillo  <dnovillo@google.com>
9194
9195         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
9196         (debug_tree_chain): Handle cycles.
9197
9198 2009-07-06  Nick Clifton  <nickc@redhat.com>
9199             DJ Delorie  <dj@redhat.com>
9200
9201         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
9202         __FMOVD_ENABLED__ is defined.
9203         * config/sh/sh.h
9204         (TARGET_FMOVD): Provide a default definition.
9205         (MASK_FMOVD): Likewise.
9206         (TARGET_CPU_CPP_BUILTINS): Define
9207         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
9208         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
9209         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
9210         (split for DF load from memory into register): Also handle
9211         MEMs which consist of REG+DISP addressing.
9212         (split for DF store from register to memory): Likewise.
9213         (movsf_ie): Always use single fp_mode.
9214         * config/sh/sh.c (sh_override_options): Do not automatically
9215         enable TARGET_MOVD for the SH2A when supporting doubles - leave
9216         that to the -mfmovd command line switch.
9217         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
9218         (fldi_ok): Always allow.
9219         * config/sh/sh.opt (mfmovd): Remove this switch.
9220         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
9221
9222 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
9223             Kaz Kojima  <kkojima@gcc.gnu.org>
9224
9225         PR rtl-optimization/30807
9226         * postreload.c (reload_combine): For every new use of REG_SUM,
9227         record the use of BASE.
9228
9229 2009-07-06  Jan Hubicka  <jh@suse.cz>
9230
9231         * params.def: Revert my accidental commit at 2009-06-30.
9232
9233 2009-07-04  Ian Lance Taylor  <iant@google.com>
9234
9235         PR target/40636
9236         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
9237         EXPORTED_CONST.
9238         (mingw_format_attribute_overrides): Likewise.
9239
9240 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
9241
9242         PR debug/40596
9243         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
9244         don't check cfa.reg.  Instead of cfa.indirect use
9245         fde && fde->drap_reg != INVALID_REGNUM test.
9246
9247 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
9248
9249         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
9250
9251 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
9252
9253         PR target/40587
9254         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
9255
9256 2009-07-03  Richard Guenther  <rguenther@suse.de>
9257
9258         PR tree-optimization/40640
9259         * tree-switch-conversion.c (build_arrays): Perform arithmetic
9260         in original type.
9261
9262 2009-07-03  Jan Hubicka  <jh@suse.cz>
9263
9264         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
9265         for size, reduce amount of inlining.
9266
9267 2009-07-03  Richard Guenther  <rguenther@suse.de>
9268
9269         PR middle-end/34163
9270         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
9271         if t +- x is known to not overflow and the conversion widens the
9272         operation.
9273         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
9274
9275 2009-07-03  Jan Hubicka  <jh@suse.cz>
9276
9277         * ipa-pure-const.c (analyze): Update loop optimizer init.
9278         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
9279         try_remove_empty_loop, remove_empty_loops): Remove.
9280         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
9281         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
9282         to mark regular loops as neccesary.
9283         (degenerate_phi_p): New function.
9284         (propagate_necessity, remove_dead_phis): Use it.
9285         (forward_edge_to_pdom): Likewise.
9286         (eliminate_unnecessary_stmts): Take care to remove uses of results of
9287         virtual PHI nodes that became unreachable.
9288         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
9289         * tree-flow.h (remove_empty_loops): Remove.
9290         * passes.c (init_optimization_passes): Remove.
9291
9292 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
9293
9294         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
9295         can_create_pseudo_p.
9296         (*fix_trunc<mode>_i387_1): Ditto.
9297         (*floathi<mode>2_1): Ditto.
9298         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
9299         (*fistdi2_1): Ditto.
9300         (*fist<mode>2_1): Ditto.
9301         (frndintxf2_floor): Ditto.
9302         (*fist<mode>2_floor_1): Ditto.
9303         (frndintxf2_ceil): Ditto.
9304         (*fist<mode>2_ceil_1): Ditto.
9305         (frndintxf2_trunc): Ditto.
9306         (frndintxf2_mask_pm): Ditto.
9307         (fxam<mode>2_i387_with_temp): Ditto.
9308         * config/i386/sse.md (mulv16qi3): Ditto.
9309         (*sse2_mulv4si3): Ditto.
9310         (mulv2di3): Ditto.
9311         (sse4_2_pcmpestr): Ditto.
9312         (sse4_2_pcmpistr): Ditto.
9313
9314 2009-07-03  Jan Hubicka  <jh@suse.cz>
9315
9316         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
9317         (mark_stmt_necessary): Set it.
9318         (mark_operand_necessary): Set it.
9319         (mark_control_dependent_edges_necessary): Set it.
9320         (mark_virtual_phi_result_for_renaming): New function.
9321         (get_live_post_dom): New function.
9322         (forward_edge_to_pdom): New function.
9323         (remove_dead_stmt): Fix handling of control dependences.
9324         (tree_dce_init): Init new bitmap.
9325         (tree_dce_done): Free it.
9326
9327 2009-07-02  Richard Guenther  <rguenther@suse.de>
9328
9329         PR bootstrap/40617
9330         * tree-ssa-structalias.c (new_var_info): Initialize
9331         is_restrict_var.
9332
9333 2009-07-02  Jan Hubicka  <jh@suse.cz>
9334
9335         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
9336         local.
9337
9338 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
9339
9340         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
9341         instead of recomputing it.  Adjust calls.
9342         (emit_store_flag): Adjust recursive calls.
9343
9344 2009-07-02  Richard Guenther  <rguenther@suse.de>
9345
9346         * tree-ssa-live.c (remove_unused_locals): Do not remove
9347         heap variables.
9348         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
9349         of DECL_EXTERNAL for HEAP variables.
9350         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
9351         HEAP variables.  Do not adjust RESTRICT vars.
9352         (find_what_var_points_to): Nobody cares if something
9353         points to READONLY.
9354
9355 2009-07-02  Ben Elliston  <bje@au.ibm.com>
9356
9357         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
9358         pc_low and pc_high declarations to the top of the function.
9359
9360 2009-07-01  DJ Delorie  <dj@redhat.com>
9361
9362         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
9363         registers as fixed.
9364         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
9365         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
9366         unspecified accesses to control registers.
9367         * config/mep/intrinsics.md: Regenerate.
9368         * config/mep/intrinsics.h: Regenerate.
9369         * config/mep/mep-intrin.h: Regenerate.
9370
9371 2009-07-01  Anthony Green  <green@moxielogic.com>
9372
9373         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
9374         instruction when possible.
9375         (moxie_expand_prologue): Ditto.  Also, save an instruction and
9376         some complexity by popping off of $r12 instead of $sp.
9377         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
9378         operands.
9379
9380 2009-07-01  Richard Henderson  <rth@redhat.com>
9381
9382         PR bootstrap/40347
9383         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
9384         contained no insns, reposition note before last insn.
9385
9386 2009-07-01  Richard Henderson  <rth@redhat.com>
9387
9388         PR debug/40431
9389         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
9390         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
9391
9392 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
9393
9394         PR bootstrap/40558
9395         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
9396         darwin9 for printing reg addresses with %y.
9397
9398 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
9399
9400         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
9401         truncation from operands in binary operations.
9402
9403 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
9404
9405         Revert:
9406         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
9407         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
9408         subreg of op0 to the original op0.
9409
9410         * expmed.c (store_bit_field_1): Use a temporary as the destination
9411         instead of a paradoxical subreg when we need to truncate the result.
9412
9413 2009-07-01  DJ Delorie  <dj@redhat.com>
9414
9415         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
9416         names to VLIW variants.
9417         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
9418         * config/mep/intrinsics.md: Regenerate.
9419         * config/mep/intrinsics.h: Regenerate.
9420         * config/mep/mep-intrin.h: Regenerate.
9421
9422 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
9423
9424         PR debug/40462
9425         * jump.c (returnjump_p): Revert last patch.
9426         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
9427
9428 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9429
9430         PR target/40575
9431         * pa.md (casesi32p): Use jump table label to determine the offset
9432         of the jump table.
9433         (casesi64p): Likewise.
9434
9435         * pa.c (forward_branch_p): Return bool type.  Use instruction
9436         addresses when available.  Assert that INSN has a jump label.
9437         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
9438         have a jump label.
9439
9440 2009-07-01  Richard Guenther  <rguenther@suse.de>
9441
9442         PR tree-optimization/19831
9443         * tree-ssa-dce.c (propagate_necessity): Calls to functions
9444         that only act as barriers do not make any previous stores necessary.
9445         * tree-ssa-structalias.c (handle_lhs_call): Delay making
9446         HEAP variables global, do not add a constraint from nonlocal.
9447         (find_func_aliases): Handle escapes through return statements.
9448         (compute_points_to_sets): Make escaped HEAP variables global.
9449
9450 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
9451
9452         PR bootstrap/40597
9453         * expmed.c (emit_store_flag): Perform a conversion if necessary,
9454         after reducing a DImode cstore to SImode.
9455
9456 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
9457
9458         * expr.c (expand_expr_real_1): Reinstate fallthrough to
9459         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
9460
9461 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
9462
9463         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
9464         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
9465         to 0.
9466         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
9467         and umod_optab if TARGET_BSD_DIVMOD.
9468         * config/vax/lib1funcs.asm: New file.
9469         * config/vax/t-linux: New file.
9470         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
9471
9472 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
9473
9474         PR c++/40566
9475         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
9476         to type arguments that have void type.
9477
9478         PR debug/40573
9479         * dwarf2out.c (gen_formal_parameter_die): Call
9480         equate_decl_number_to_die if node is different from origin.
9481
9482 2009-06-30  Anthony Green  <green@moxielogic.com>
9483
9484         Clean up moxie port for --enable-build-with-cxx.
9485         * config/moxie/moxie.c (moxie_function_value): First two
9486         parameters are const_tree, not tree.
9487         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
9488         (REG_CLASS_NAMES): Ditto.
9489         (REGNO_REG_CLASS): Ditto.
9490         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
9491         (moxie_function_value): Fix constyness of arguments.
9492
9493 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
9494
9495         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
9496         finalize_size_functions before further processing.
9497         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
9498         (variable_size): Call self_referential_size on size expressions
9499         that contain a PLACEHOLDER_EXPR.
9500         (size_functions): New static variable.
9501         (copy_self_referential_tree_r): New static function.
9502         (self_referential_size): Likewise.
9503         (finalize_size_functions): New global function.
9504         * tree.c: Include tree-inline.h.
9505         (push_without_duplicates): New static function.
9506         (find_placeholder_in_expr): New global function.
9507         (substitute_in_expr) <tcc_declaration>: Return the replacement object
9508         on equality.
9509         <tcc_expression>: Likewise.
9510         <tcc_vl_exp>: If the replacement object is a constant, try to inline
9511         the call in the expression.
9512         * tree.h (finalize_size_functions): Declare.
9513         (find_placeholder_in_expr): Likewise.
9514         (FIND_PLACEHOLDER_IN_EXPR): New macro.
9515         (substitute_placeholder_in_expr): Update comment.
9516         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
9517         is true.
9518         (copy_tree_body_r): Likewise.
9519         (copy_tree_body): New static function.
9520         (maybe_inline_call_in_expr): New global function.
9521         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
9522         (maybe_inline_call_in_expr): Declare.
9523         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
9524         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
9525         GIMPLE_H.
9526
9527 2009-06-30  Richard Guenther  <rguenther@suse.de>
9528
9529         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
9530         continue walking.
9531         (propagate_necessity): Do not mark reaching defs of stores
9532         as necessary.
9533
9534 2009-06-30  Jan Hubicka  <jh@suse.cz>
9535
9536         * cfgloopanal.c (check_irred): Move into ...
9537         (mark_irreducible_loops): ... here; return true if ireducible
9538         loops was found.
9539         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
9540         (analyze_function): Try to prove loop finiteness.
9541         * cfgloop.h (mark_irreducible_loops): Update prototype.
9542         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
9543
9544 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
9545
9546         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
9547
9548 2009-06-30  Ira Rosen  <irar@il.ibm.com>
9549
9550         PR tree-optimization/40542
9551         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
9552         types.
9553
9554 2009-06-30  Martin Jambor  <mjambor@suse.cz>
9555
9556         PR tree-optimization/40582
9557         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
9558         than useless_type_conversion_p.
9559         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
9560         proper place.
9561
9562 2009-06-30  Martin Jambor  <mjambor@suse.cz>
9563
9564         PR middle-end/40554
9565         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
9566
9567 2009-06-30  Richard Guenther  <rguenther@suse.de>
9568
9569         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
9570         use ao_ref references.
9571         (walk_aliased_vdefs): Likewise.
9572         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
9573         * tree-ssa-dce.c (struct ref_data): Remove.
9574         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
9575         (mark_aliased_reaching_defs_necessary): Adjust.
9576         (mark_all_reaching_defs_necessary_1): Likewise.
9577
9578 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
9579
9580         PR boostrap/40597
9581         * expmed.c (emit_cstore): New name of emit_store_flag_1.
9582         (emit_store_flag_1): Extract from emit_store_flag, adjust
9583         calls to (what now is) emit_cstore.
9584         (emit_store_flag): Call emit_store_flag_1 and also use it
9585         for what used to be recursive calls.
9586
9587 2009-06-30  Wei Guozhi  <carrot@google.com>
9588
9589         PR/40416
9590         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
9591         if the target bb post dominates from bb.
9592         * config/i386/i386.c (memory_address_length): Check existence of base
9593         register before using it.
9594
9595 2009-06-30  Nick Clifton  <nickc@redhat.com>
9596             DJ Delorie  <dj@redhat.com>
9597
9598         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
9599         __FMOVD_ENABLED__ is defined.
9600         * config/sh/sh.h
9601         (TARGET_FMOVD): Provide a default definition.
9602         (MASK_FMOVD): Likewise.
9603         (TARGET_CPU_CPP_BUILTINS): Define
9604         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
9605         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
9606         two fmov instructions depending upon whether TARGET_FMOVD is
9607         enabled.
9608         (split for DF load from memory into register): Also handle
9609         MEMs which consist of REG+DISP addressing.
9610         (split for DF store from register to memory): Likewise.
9611         * config/sh/sh.opt (mfmovd): Remove this switch.
9612         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
9613         * config/sh/sh.c (sh_override_options): Do not automatically
9614         enable TARGET_MOVD for the SH2A when supporting doubles - leave
9615         that to the -mfmovd command line switch.
9616
9617         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
9618         the SH4 and SH4A.
9619         (fldi_ok): Always allow.
9620         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
9621
9622 2009-06-29  DJ Delorie  <dj@redhat.com>
9623
9624         * doc/install.texi (mep-x-elf): Correct chip's full name.
9625
9626 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
9627
9628         * doc/extend.texi: Fix typo.
9629
9630 2009-06-29  Tom Tromey  <tromey@redhat.com>
9631
9632         * dwarf2.h: Remove.
9633         * Makefile.in (DWARF2_H): New variable.
9634         (except.o): Use it.
9635         (dwarf2out.o): Likewise.
9636         (dwarf2asm.o): Likewise.
9637         * config/i386/t-i386: Use DWARF2_H.
9638         * except.c: Include elf/dwarf2.h.
9639         * unwind-dw2.c: Include elf/dwarf2.h.
9640         * dwarf2out.c: Include elf/dwarf2.h.
9641         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
9642         <dtprel>: New field.
9643         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
9644         (size_of_loc_descr): Likewise.
9645         (output_loc_operands_raw): Likewise.
9646         (output_loc_operands): Handle new dtprel field.
9647         (loc_checksum): Update.
9648         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
9649         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
9650         * unwind-dw2-fde.c: Include elf/dwarf2.h.
9651         * dwarf2asm.c: Include elf/dwarf2.h.
9652         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
9653         * config/mmix/mmix.c: Include elf/dwarf2.h.
9654         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
9655         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
9656         * config/sh/sh.c: Include elf/dwarf2.h.
9657         * config/i386/i386.c: Include elf/dwarf2.h.
9658
9659 2009-06-29  DJ Delorie  <dj@redhat.com>
9660
9661         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
9662
9663         * doc/extend.texi: Add MeP attributes and pragmas.
9664         * doc/invoke.text: Add MeP Options.
9665         * doc/contrib.texi: Add MeP contribution.
9666         * doc/md.texi: Add MeP constraints.
9667         * doc/install.texi: Add MeP target.
9668
9669 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
9670
9671         * target.h (struct gcc_target): Add frame_pointer_required field.
9672         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
9673         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
9674         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
9675         hook.
9676         * reload1.c (update_eliminables): (Ditto.).
9677         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
9678         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
9679         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
9680
9681         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
9682
9683         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
9684         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
9685         (arm_frame_pointer_required): New function.
9686
9687         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
9688         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9689         (avr_frame_pointer_required_p): Declare as static.
9690         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
9691
9692         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
9693         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
9694         (bfin_frame_pointer_required): Make as static, change return type
9695         to bool.
9696         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
9697
9698         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
9699         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9700         (cris_frame_pointer_required): New function.
9701
9702         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
9703
9704         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
9705         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9706         (fr30_frame_pointer_required): New function.
9707
9708         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
9709         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
9710         (frv_frame_pointer_required): Make as static, change return type
9711         to bool.
9712         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
9713
9714         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
9715         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9716         (ix86_frame_pointer_required): Make as static, change return type to
9717         bool.
9718         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
9719
9720         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
9721         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9722
9723         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
9724
9725         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
9726
9727         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
9728
9729         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
9730         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9731         (mips_frame_pointer_required): Make as static.
9732         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
9733
9734         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
9735         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9736         (mmix_frame_pointer_required): Mew function.
9737
9738         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
9739         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9740
9741         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
9742
9743         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
9744
9745         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
9746
9747         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
9748         (CAN_ELIMINATE): Redefine.
9749         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9750         (sparc_frame_pointer_required): New function.
9751         (sparc_can_eliminate): New function.
9752         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
9753
9754         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
9755         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
9756
9757         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
9758         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
9759         (xtensa_frame_pointer_required): Make as static, change return type
9760         to bool.
9761         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
9762         Remove.
9763
9764 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
9765
9766         * doc/plugins.texi: Document PLUGIN_START_UNIT.
9767         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
9768         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
9769         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
9770         (register_callback): Handle PLUGIN_START_UNIT.
9771         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
9772
9773 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
9774
9775         * tree.c (process_call_operands): Propagate TREE_READONLY from the
9776         operands.
9777         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
9778         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
9779
9780 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
9781
9782         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
9783         move cost.
9784
9785 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
9786
9787         * doc/extend.texi (Additional Floating Types): __float128 is also
9788         supported on i386 targets.
9789
9790 2009-06-29  Richard Guenther  <rguenther@suse.de>
9791
9792         PR middle-end/14187
9793         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
9794         flag.
9795         (pt_solutions_same_restrict_base): Declare.
9796         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
9797         flag.
9798         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
9799         (make_constraint_from, make_copy_constraint): Move earlier.
9800         (make_constraint_from_heapvar): New function.
9801         (make_constraint_from_restrict): Likewise.
9802         (handle_lhs_call): Use it.
9803         (find_func_aliases): Use it to track conversions to restrict
9804         qualified pointers.
9805         (struct fieldoff): Add only_restrict_pointers flag.
9806         (push_fields_onto_fieldstack): Initialize it.
9807         (create_variable_info_for): Track global restrict qualified pointers.
9808         (intra_create_variable_infos): Use make_constraint_from_heapvar.
9809         Track restrict qualified pointer arguments.
9810         (set_uids_in_ptset): Use varinfo is_global_var flag.
9811         (find_what_var_points_to): Set the vars_contains_restrict flag.
9812         Always create the points-to solution for sets including restrict tags.
9813         (pt_solutions_same_restrict_base): New function.
9814         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
9815         qualified pointers use pt_solutions_same_restrict_base as
9816         additional source for disambiguation.
9817
9818 2009-06-29  Richard Guenther  <rguenther@suse.de>
9819
9820         PR middle-end/38212
9821         * alias.c (find_base_decl): Remove.
9822         (get_deref_alias_set_1): Remove restrict handling.
9823         * c-common.c (c_apply_type_quals_to_decl): Do not set
9824         DECL_POINTER_ALIAS_SET.
9825         * gimplify.c (find_single_pointer_decl_1): Remove.
9826         (find_single_pointer_decl): Likewise.
9827         (internal_get_tmp_var): Remove restrict handling.
9828         (gimple_regimplify_operands): Likewise.
9829         * omp-low.c (expand_omp_atomic_pipeline): Do not set
9830         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
9831         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
9832         * tree.c (restrict_base_for_decl): Remove.
9833         (init_ttree): Do not allocate it.
9834         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
9835         LABEL_DECL_UID for label decls.
9836         (copy_node_stat): Do not copy restrict information.
9837         (decl_restrict_base_lookup): Remove.
9838         (decl_restrict_base_insert): Likewise.
9839         (print_restrict_base_statistics): Likewise.
9840         (dump_tree_statistics): Do not call print_restrict_base_statistics.
9841         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
9842         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
9843         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
9844         (LABEL_DECL_UID): Adjust.
9845         (DECL_BASED_ON_RESTRICT_P): Remove.
9846         (DECL_GET_RESTRICT_BASE): Likewise.
9847         (SET_DECL_RESTRICT_BASE): Likewise.
9848         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
9849
9850         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
9851         instead of DECL_POINTER_ALIAS_SET.
9852         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
9853         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
9854         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
9855
9856 2009-06-29  Richard Guenther  <rguenther@suse.de>
9857
9858         PR tree-optimization/40579
9859         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
9860         the IL to simplify has constants that overflowed.
9861
9862 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
9863
9864         PR tree-optimization/40550
9865         * tree-vect-generic.c (expand_vector_operations_1): Compute in
9866         vector_compute_type only when the size of vector_compute_type is
9867         less than the size of type.
9868
9869 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
9870
9871         * fold-const.c (contains_label_1): Fix comments.
9872         (contains_label_p): Do not walk trees multiple time.
9873
9874 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
9875
9876         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
9877         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
9878         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
9879         ix86_fp_comparison_operator.
9880         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
9881         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
9882         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
9883         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
9884         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
9885         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
9886         (related splits): Change predicate to ix86_fp_comparison_operator.
9887         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
9888         instead of ix86_fp_comparison_codes.
9889         (ix86_trivial_fp_comparison_operator,
9890         ix86_fp_comparison_operator): New.
9891         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
9892         (ix86_expand_compare): Eliminate last two parameters.
9893         (ix86_fp_jump_nontrivial_p): Kill.
9894         * config/i386/i386.c (put_condition_code): Eliminate call to
9895         ix86_fp_comparison_codes and subsequent assertion.
9896         (ix86_fp_comparison_codes): Eliminate.
9897         (ix86_fp_swap_condition): New.
9898         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
9899         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
9900         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
9901         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
9902         and ix86_fp_swap_condition.
9903         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
9904         Use ix86_fp_comparison_strategy.
9905         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
9906         (ix86_fp_jump_nontrivial_p): Eliminate.
9907         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
9908         call to ix86_expand_compare.
9909         (ix86_split_fp_branch, ix86_expand_setcc,
9910         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
9911         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
9912
9913 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
9914
9915         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
9916         related to jump_clobbers.
9917         * config/arm/arm.md (conds): Remove jump_clob case.
9918         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
9919         splits): Change comparison_operator to arm_comparison_operator.
9920         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
9921         Eliminate.
9922
9923 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
9924
9925         * dojump.c (do_compare_rtx_and_jump): Try swapping the
9926         condition for floating point modes.
9927         * expmed.c (emit_store_flag_1): Move here a bigger part
9928         of emit_store_flag.
9929         (emit_store_flag): Try swapping the condition for floating point
9930         modes.
9931         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
9932
9933 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
9934
9935         * expr.c (expand_expr_real_1): Just use do_store_flag.
9936         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
9937         emit_store_flag_force.
9938         * expmed.c (emit_store_flag_force): Copy here trick
9939         previously in expand_expr_real_1.  Try reversing the comparison.
9940         (emit_store_flag_1): Work if target is NULL.
9941         (emit_store_flag): Work if target is NULL, using the result mode
9942         from the comparison.  Use split_comparison, restructure final part
9943         to simplify conditionals.
9944
9945 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
9946
9947         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
9948         * dojump.c (do_jump): Change handling of floating-point
9949         ops to use just do_compare_and_jump.
9950         (split_comparison): New.
9951         (do_compare_rtx_and_jump): Add here logic coming previously
9952         in do_jump, using split_comparison.
9953
9954 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
9955
9956         PR target/40489
9957         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
9958
9959 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
9960
9961         * tree-ssa-alias.c: Fix unintentional commit.
9962
9963 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
9964
9965         * passes.c (execute_one_pass): Fix unintentional commit.
9966
9967 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
9968
9969         * df-problems.c (df_set_seen, df_unset_seen): Delete.
9970         (df_rd_local_compute, df_md_local_compute): Inline them.
9971
9972         (df_md_scratch): New.
9973         (df_md_alloc, df_md_free): Allocate/free it.
9974         (df_md_local_compute): Only include live registers in init.
9975         (df_md_transfer_function): Prune the in-set computed by
9976         the confluence function, and the gen-set too.
9977
9978 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
9979
9980         PR rtl-optimization/26854
9981         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
9982         * df-problems.c (df_rd_add_problem): Fix comment.
9983         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
9984         df_md_simulate_artificial_defs_at_top,
9985         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
9986         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
9987         df_md_transfer_function, df_md_init, df_md_confluence_0,
9988         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
9989         problem_MD, df_md_add_problem): New.
9990         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
9991         df_md_get_bb_info): New.
9992         (DF_LAST_PROBLEM_PLUS1): Adjust.
9993
9994         * Makefile.in (fwprop.o): Include domwalk.h.
9995         * fwprop.c: Include domwalk.h.
9996         (reg_defs, reg_defs_stack): New.
9997         (bitmap_only_bit_between): Remove.
9998         (process_defs): New.
9999         (process_uses): Use reg_defs and local_md instead of
10000         bitmap_only_bit_between and local_rd.
10001         (single_def_use_enter_block): New, from build_single_def_use_links.
10002         (single_def_use_leave_block): New.
10003         (build_single_def_use_links): Remove code moved to
10004         single_def_use_enter_block, invoke domwalk.
10005         (use_killed_between): Adjust comment.
10006
10007 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
10008
10009         * bitmap.h (bitmap_ior_and_into): New.
10010         * bitmap.c (bitmap_ior_and_into): New.
10011
10012 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
10013
10014         * domwalk.h (struct dom_walk_data): Remove all callbacks except
10015         before_dom_children_before_stmts and after_dom_children_after_stmts.
10016         Rename the two remaining callbacks to just before_dom_children and
10017         after_dom_children. Remove other GIMPLE statement walking bits.
10018         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
10019         * graphite.c: Do not include domwalk.h.
10020         * tree-into-ssa.c (interesting_blocks): New global.
10021         (struct mark_def_sites_global_data): Remove it and names_to_rename.
10022         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
10023         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
10024         now that they're not domwalk callbacks.
10025         (rewrite_initialize_block): Rename to...
10026         (rewrite_enter_block): ... this, place after called functions.  Test
10027         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
10028         (rewrite_finalize_block): Rename to...
10029         (rewrite_leave_block): ... this, place after called functions.
10030         (rewrite_update_init_block): Rename to...
10031         (rewrite_update_enter_block): ... this, place after called functions.
10032         Test interesting_blocks, call rewrite_update_stmt and
10033         rewrite_update_phi_arguments.
10034         (rewrite_update_fini_block): Rename to...
10035         (rewrite_leave_block): ... this, place after called functions.
10036         (rewrite_blocks): Remove last argument, simplify initialization of
10037         walk_data.
10038         (mark_def_sites_initialize_block): Rename to...
10039         (mark_def_sites_block): ... this, call mark_def_sites.
10040         (mark_def_sites_blocks): Remove argument, simplify initialization of
10041         walk_data.
10042         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
10043         (update_ssa): Likewise.
10044         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
10045         callback.
10046         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
10047         (dom_opt_initialize_block): Rename to...
10048         (dom_opt_enter_block): ... this, place after called functions.  Walk
10049         statements here, inline propagate_to_outgoing_edges.
10050         (dom_opt_finalize_block): Rename to...
10051         (dom_opt_leave_block): ... this, place after called functions.
10052         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
10053         domwalk callback.
10054         (dse_enter_block, dse_record_phi): New.
10055         (dse_record_phis): Delete.
10056         (dse_finalize_block): Rename to...
10057         (dse_leave_block): ... this.
10058         (tree_ssa_dse): Simplify initialization of walk_data.
10059         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
10060         Adjust initialization of walk_data.
10061         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
10062         * tree-ssa-loop-phiopt.c (get_non_trapping):
10063         Adjust initialization of walk_data.
10064         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
10065         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
10066         it's not a domwalk callback.
10067         (uncprop_initialize_block): Rename to...
10068         (dse_enter_block): ... this, call uncprop_into_successor_phis.
10069         (dse_finalize_block): Rename to...
10070         (dse_leave_block): ... this.
10071         (tree_ssa_uncprop): Simplify initialization of walk_data.
10072         * Makefile.in: Adjust dependencies.
10073
10074 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
10075
10076         * arm.md (casesi): Fix test for Thumb1.
10077         (thumb1_casesi_internal_pic): Likewise.
10078         (thumb1_casesi_dispatch): Likewise.
10079
10080 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
10081
10082         * config/arm/arm-cores.def: Added core cortex-m0.
10083         * config/arm/arm-tune.md: Regenerated.
10084         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
10085
10086 2009-06-26  DJ Delorie  <dj@redhat.com>
10087
10088         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
10089
10090         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
10091         the scheduler doesn't tag jump insns.
10092
10093 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
10094
10095         * c-decl.c (merge_decls): Re-indent.
10096
10097 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
10098
10099         PR c/39902
10100         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
10101         Special-case decimal float constants.
10102
10103 2009-06-26  Richard Henderson  <rth@redhat.com>
10104
10105         * function.h (struct function): Add cannot_be_copied_reason,
10106         and cannot_be_copied_set.
10107         * tree-inline.c (has_label_address_in_static_1): Rename from
10108         inline_forbidden_p_2; don't set inline_forbidden_reason here.
10109         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
10110         don't set inline_forbidden_reason.
10111         (copy_forbidden): New function, split out of inline_forbidden_p.
10112         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
10113         (inline_forbidden_p): Use copy_forbidden.
10114         (tree_versionable_function_p): Likewise.
10115         (inlinable_function_p): Merge into tree_inlinable_function_p.
10116         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
10117         * ipa-cp.c (ipcp_versionable_function_p): New function.
10118         (ipcp_cloning_candidate_p): Use it.
10119         (ipcp_node_modifiable_p): Likewise.
10120
10121 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
10122
10123         * builtins.c (expand_builtin_alloca): Handle builtin alloca
10124         that is marked not to be inlined. Remove flag_mudflap use.
10125         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
10126         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
10127
10128 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
10129
10130         PR bootstrap/40338
10131         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
10132         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
10133
10134 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
10135
10136         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
10137         shared libgcc.
10138         (__mingwthr_remove_key_dtor): Likewise.
10139
10140 2009-06-26  Richard Guenther  <rguenther@suse.de>
10141
10142         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
10143
10144 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
10145
10146         PR middle-end/40525
10147         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
10148         try the non-cond_exec path also.
10149
10150 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10151
10152         PR target/40468
10153         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
10154         (output_cbranch): Use new functions.
10155         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
10156         Likewise.
10157
10158 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
10159             Pat Haugen  <pthaugen@us.ibm.com>
10160             Revital Eres <ERES@il.ibm.com>
10161
10162         * config/rs6000/rs6000.c (print_operand): Correct lossage message
10163         for %c error.  Add %x support to print VSX registers as a unified
10164         register set, instead of separate float and altivec registers.
10165         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
10166         %y case, and add support for VSX pre-modify addresses.
10167         (output_toc): Add assert for CONST containing an integer constant
10168         in the PLUS case.
10169         (rs6000_adjust_cost): Add POWER7 support.
10170         (insn_must_be_first_in_group): Ditto.
10171         (insn_must_be_last_in_group): Ditto.
10172         (rs6000_emit_popcount): Ditto.
10173         (rs6000_vector_mode_supported_p): Ditto.
10174
10175         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
10176         Change some of the functions called by macros to being called
10177         through a pointer, so debug functions can be inserted if
10178         -mdebug=addr or -mdebug=cost.
10179         (rs6000_preferred_reload_class_ptr): Ditto.
10180         (rs6000_secondary_reload_class_ptr): Ditto.
10181         (rs6000_secondary_memory_needed_ptr): Ditto.
10182         (rs6000_cannot_change_mode_class_ptr): Ditto.
10183         (rs6000_secondary_reload_inner): Ditto.
10184         (rs6000_legitimize_reload_address): Ditto.
10185         (rs6000_legitimize_reload_address_ptr): Ditto.
10186         (rs6000_mode_dependent_address): Ditto.
10187         (rs6000_mode_dependent_address_ptr): Ditto.
10188
10189         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
10190         function to return true if the mode allows reg + integer
10191         addresses.
10192         (virtual_stack_registers_memory_p): New function to return true if
10193         the address refers to a virtual stack register.
10194         (rs6000_legitimate_offset_address_p): Move code to say whether a
10195         mode supports reg+int addressing to reg_offset_addressing_ok_p and
10196         call it.
10197         (rs6000_legitimate_address_p): Add checks for modes that only can
10198         do reg+reg addressing.  Start adding VSX support.
10199         (rs6000_legitimize_reload_address): Ditto.
10200         (rs6000_legitimize_address): Ditto.
10201         (rs6000_debug_legitimate_address_p): New debug functions for
10202         -mdebug=addr and -mdebug=cost.
10203         (rs6000_debug_rtx_costs): Ditto.
10204         (rs6000_debug_address_costs): Ditto.
10205         (rs6000_debug_adjust_cost): Ditto.
10206         (rs6000_debug_legitimize_address): Ditto.
10207         (rs6000_legitimize_reload_address_ptr): Point to call normal
10208         function or debug function.  Make functions called via pointer
10209         static.
10210         (rs6000_mode_dependent_address_ptr): Ditto.
10211         (rs6000_secondary_reload_class_ptr): Ditto.
10212         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
10213         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
10214         into a friendlier error.
10215         (rs6000_init_builtins): Add initial VSX support.
10216         (rs6000_adjust_cost): Fix some spacing issues.
10217
10218         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
10219         (REG_CLASS_NAMES): Ditto.
10220         (REG_CLASS_CONTENTS): Ditto.
10221         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
10222         pointer, to add -mdebug=addr support.
10223         (CANNOT_CHANGE_MODE_CLASS): Ditto.
10224         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
10225         -mdebug=addr support.
10226         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
10227         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
10228         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
10229
10230         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
10231         16-bit values.
10232         (bswapsi*): Set attribute types for load/store.  Add combiner
10233         patterns to eliminate zero extend on 64-bit.
10234         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
10235         stdbrx if the hardware supports those instructions.
10236
10237 2009-06-25  Ian Lance Taylor  <iant@google.com>
10238
10239         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
10240         (Link Options): Document -static-libstdc++.
10241
10242 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10243
10244         PR target/38731
10245         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
10246         DATA_ALIGNMENT instead.
10247
10248 2009-06-25  Richard Guenther  <rguenther@suse.de>
10249
10250         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
10251         indirect references against the callused/escaped solutions.
10252         (call_may_clobber_ref_p_1): Likewise.
10253
10254 2009-06-25  Martin Jambor  <mjambor@suse.cz>
10255
10256         PR tree-optimization/40493
10257         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
10258         (enum unscalarized_data_handling): New type.
10259         (handle_unscalarized_data_in_subtree): Return what has been done.
10260         (load_assign_lhs_subreplacements): Handle left flushes differently.
10261         (sra_modify_assign): Use unscalarized_data_handling, simplified
10262         condition determining whether to remove the statement.
10263
10264 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
10265
10266         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
10267         excerpt - @ should be doubled for texinfo.
10268
10269 2009-06-24  Ian Lance Taylor  <iant@google.com>
10270
10271         * config/arc/arc.c: Include "df.h".
10272         (arc_attribute_table): Make static.  Move higher in file.
10273         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
10274         (output_shift): Initialize n later to avoid warning.
10275         * config/arm/arm.c (arm_attribute_table): Make static.  Move
10276         higher in file.
10277         * config/avr/avr.c (avr_attribute_table): Make static.  Move
10278         higher in file.
10279         (reg_class_tab): Change array type from int to enum reg_class.
10280         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
10281         LABEL_REF.
10282         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
10283         (lshrhi3_out): Likewise.
10284         (class_likely_spilled_p): Change return type to bool.
10285         (avr_rtx_costs): Use local code variable with enum type.
10286         * config/avr/avr.md (movmemhi): Use add_reg_note.
10287         (andhi3, andsi3): Don't use AS2 with "and".
10288         (iorhi3, iorsi3): Don't use AS2 with "or".
10289         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
10290         * config/crx/crx.c: Include "df.h".
10291         (crx_attribute_table): Make static.
10292         * config/m32r/m32r.c: Include "df.h".
10293         (m32r_attribute_table): Make static.  Move higher in file.
10294         (pop): Use add_reg_note.
10295         (block_move_call): Change 0 to LCT_NORMAL in function call.
10296         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
10297         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
10298         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
10299         declare, not just when TREE_CODE is defined.
10300         * config/m68hc11/m68hc11.c: Include "expr.h".
10301         (m68hc11_attribute_table): Make static.  Move higher in file.
10302         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
10303         function call.
10304         (m68hc11_register_indirect_p): Likewise.
10305         (m68hc11_function_arg_padding): Change return type to enum
10306         direction.
10307         (emit_move_after_reload): Use add_reg_note.
10308         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
10309         (m68hc11_split_logical): Likewise.
10310         (m68hc11_rtx_costs): Add local code_and outer_code variables with
10311         enum type.
10312         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
10313         to VOIDmode in function call.
10314         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
10315         tree is defined.
10316         (m68hc11_split_logical): Update declaration.
10317         (m68hc11_function_arg_padding): Update declaration.
10318         * config/mcore/mcore.c (regno_reg_class): Change form array of int
10319         to array of enum reg_class.
10320         (mcore_attribute_table): Make static.  Move higher in file.
10321         (mcore_rtx_costs): Add cast to enum type.
10322         * config/mcore/mcore.h (regno_reg_class): Update declaration.
10323         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
10324         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
10325         in file.
10326         * config/sh/predicates.md (trapping_target_operand): Rename and to
10327         and_expr.
10328         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
10329         higher in file.
10330         * config/spu/spu.c (spu_attribute_table): Make static.  Move
10331         higher in file.
10332         * config/v850/v850.c (v850_attribute_table): Make static.  Move
10333         higher in file.
10334         (v850_rtx_costs): Use local code with enum type.
10335         (expand_epilogue): Add cast.
10336         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
10337
10338 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
10339
10340         PR target/40515
10341         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
10342         -m2a-single-only and -m2a-nofpu.
10343         * config/sh/sh.opt: Document m2a generates FPU code.
10344
10345 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
10346
10347         * defaults.h (CAN_ELIMINATE): Provide default.
10348         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
10349         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
10350         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
10351         * config/spu/spu.h (CAN_ELIMINATE): Delete.
10352         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
10353         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
10354         * config/cris/cris.h (CAN_ELIMINATE): Delete.
10355         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
10356         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
10357         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
10358
10359 2009-06-24  DJ Delorie  <dj@redhat.com>
10360
10361         * mep-ext-cop.cpu: Fix copyright notice.
10362         * mep-default: Fix copyright notice.
10363         * mep-core: Fix copyright notice.
10364         * mep: Fix copyright notice.
10365         * mep-ivc2: Fix copyright notice.
10366         * mep-c5: Fix copyright notice.
10367
10368 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
10369
10370         * doc/contrib.texi (Contributors):
10371
10372 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
10373
10374         PR middle-end/40501
10375         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
10376         src and dst operands if necessary.
10377
10378 2009-06-23  DJ Delorie  <dj@redhat.com>
10379
10380         Add MeP port.
10381         * config.gcc: Add mep support.
10382         * recog.c: Resurrect validate_replace_rtx_subexp().
10383         * recog.h: Likewise.
10384         * config/mep/: Add new port:
10385         * config/mep/constraints.md: New file.
10386         * config/mep/default.h: New file.
10387         * config/mep/intrinsics.h: New file.
10388         * config/mep/intrinsics.md: New file.
10389         * config/mep/ivc2-template.h: New file.
10390         * config/mep/mep-c5.cpu: New file.
10391         * config/mep/mep-core.cpu: New file.
10392         * config/mep/mep-default.cpu: New file.
10393         * config/mep/mep-ext-cop.cpu: New file.
10394         * config/mep/mep-intrin.h: New file.
10395         * config/mep/mep-ivc2.cpu: New file.
10396         * config/mep/mep-lib1.asm: New file.
10397         * config/mep/mep-lib2.c: New file.
10398         * config/mep/mep-pragma.c: New file.
10399         * config/mep/mep-protos.h: New file.
10400         * config/mep/mep-tramp.c: New file.
10401         * config/mep/mep.c: New file.
10402         * config/mep/mep.cpu: New file.
10403         * config/mep/mep.h: New file.
10404         * config/mep/mep.md: New file.
10405         * config/mep/mep.opt: New file.
10406         * config/mep/predicates.md: New file.
10407         * config/mep/t-mep: New file.
10408
10409 2009-06-23  Ian Lance Taylor  <iant@google.com>
10410
10411         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
10412         from loose_warn into c_loose_warn and from strict_warn into
10413         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
10414         --enable-build-with-cxx.  Set and substitute
10415         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
10416         * Makefile.in (CXXFLAGS): New variable.
10417         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
10418         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
10419         the default is the same as $(STRICT_WARN).
10420         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
10421         (CXX): New variable.
10422         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
10423         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
10424         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
10425         (HOST_LIBS): New variable.
10426         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
10427         (ALL_CXXFLAGS): New variable.
10428         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
10429         * doc/install.texi (Configuration): Document
10430         --enable-build-with-cxx, --with-stage1-ldflags,
10431         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
10432         * configure: Rebuild.
10433
10434 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10435
10436         * config/arm/arm.c (arm_override_options): Fix braces and formatting
10437         from previous commit.
10438
10439 2009-06-23  Ian Lance Taylor  <iant@google.com>
10440
10441         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
10442
10443 2009-06-23  Ian Lance Taylor  <iant@google.com>
10444
10445         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
10446         with ATTRIBUTE_UNUSED.
10447
10448 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
10449             Pat Haugen  <pthaugen@us.ibm.com>
10450             Revital Eres  <eres@il.ibm.com>
10451
10452         * config.in (HAVE_AS_POPCNTD): Add default definition.
10453         (HAVE_AS_LWSYNC): Ditto.
10454
10455         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
10456         release number.
10457         (gcc_cv_as_powerpc_cmpb): Ditto.
10458         (gcc_cv_as_powerpc_dfp): Ditto.
10459         (gcc_cv_as_powerpc_vsx): Ditto.
10460         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
10461         supporting the popcntd/lwsync instructions.
10462         (gcc_cv_as_powerpc_lwsync): Ditto.
10463         * configure: Regenerate.
10464
10465         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
10466         -mcpu=native and -mcpu=power7.
10467         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
10468
10469         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
10470         a variable instead of a mask to reduce the number of mask bits.
10471         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
10472         (-mbit-word): Ditto.
10473         (-mregnames): Ditto.
10474         * config/rs6000/rs6000.opt (-mupdate): Ditto.
10475         (-mfused-madd): Ditto.
10476
10477         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
10478         2.06 instructions.
10479         (-mvsx): New switch for VSX instructions.
10480         (-misel): Move from a variable to a mask to allow it to be set by
10481         -mcpu=.
10482
10483         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
10484         function declaration to an array declaration.
10485         (rs6000_hard_regno_nregs): New external array declaration.
10486
10487         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
10488         files included by rs6000.md.
10489
10490         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
10491         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
10492
10493         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
10494         a target mask.
10495         (rs6000_debug_reg): New -mdebug= variables.
10496         (rs6000_debug_addr): Ditto.
10497         (rs6000_debug_cost): Ditto.
10498         (rs6000_pmode): New variable to hold Pmode.
10499         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
10500         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
10501         calculated at compiler start.
10502         (rs6000_hard_regno_nregs): Change function to an array which holds
10503         HARD_REGNO_NREGS calculated at compiler start.
10504         (rs6000_explicit_options): Delete isel field.
10505         (rs6000_vector_unit): New array to hold which vector unit
10506         supports arithmetic options for a given type.
10507         (rs6000_vector_mem): New array to hold which vector unit supports
10508         memory reference operations for a given type.
10509         (rs6000_vector_align): New array to given the alignment of each
10510         vector type.
10511         (power7_cost): New basic costs for power7.
10512         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
10513         (rs6000_hard_regno_nregs_internal): New function, moved from
10514         HARD_REGNO_NREGS, to calculate the number of registers each hard
10515         register takes for each type.
10516         (rs6000_debug_reg_print): New function for -mdebug=reg support.
10517         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
10518         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
10519         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
10520         unit information here so it is calculated once at compiler startup
10521         time.
10522         (rs6000_override_options): Make -misel a target mask.  Add more
10523         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
10524         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
10525         -mdebug=cost.
10526         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
10527         (rs6000_handle_option): Move -misel from variable to target mask.
10528         (rs6000_builtin_mask_for_load): Add VSX support.
10529         (rs6000_conditional_register_usage): Ditto.
10530         (USE_ALTIVEC_FOR_ARG_P): Ditto.
10531         (function_arg_boundary): Ditto.
10532         (rs6000_expand_builtin): Ditto.
10533         (def_builtin): Make abort message a little friendlier.
10534         (rs6000_emit_int_cmove): Add support for 64-bit isel.
10535
10536         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
10537         assembler support the popcntd instruction instead of a vsx
10538         instruction to enable power7 support.
10539         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
10540         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
10541         option to the assembler if -mcpu=native.
10542         (ASM_CPU_NATIVE_SPEC): Ditto.
10543         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
10544         ISA 2.06 features.
10545         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
10546         the lwsync instruction.
10547         (enum processor_type): Add PROCESSOR_POWER7.
10548         (rs6000_debug_reg): New -mdebug= options.
10549         (rs6000_debug_addr): Ditto.
10550         (rs6000_debug_cost): Ditto.
10551         (rs6000_isel): Delete.
10552         (enum rs6000_vector): New enum to say what vector unit we have.
10553         (VECTOR_UNIT_*): New macros to say which vector unit has
10554         arithmetic operations for a given type.
10555         (VECTOR_MEM_*): New macros to say which vector unit has memory
10556         operations for a given type.
10557         (TARGET_LDBRX): Whether the machine supports the ldbrx
10558         instruction.
10559         (TARGET_ISEL): Delete, -misel moved to be a mask.
10560         (TARGET_ISEL64): New macro for 64-bit isel support.
10561         (UNITS_PER_VSX_WORD): New macro.
10562         (POINTER_SIZE): Move to be an external variable, rather than
10563         calculating whether we are generating 32 ot 64-bit code.
10564         (Pmode): Ditto.
10565         (STACK_BOUNDARY): Add VSX support.
10566         (LOCAL_ALIGNMENT): Ditto.
10567         (SLOW_UNALIGNED_ACCESS): Ditto.
10568         (VSX_REGNO_P): New macro for VSX support.
10569         (VFLOAT_REGNO_P): Ditto.
10570         (VINT_REGNO_P): Ditto.
10571         (VLOGICAL_REGNO_P): Ditto.
10572         (VSX_VECTOR_MODE): Ditto.
10573         (VSX_SCALAR_MODE): Ditto.
10574         (VSX_MODE): Ditto.
10575         (VSX_MOVE_MODE): Ditto.
10576         (VSX_REG_CLASS_P): Ditto.
10577         (HARD_REGNO_NREGS): Instead of calling a function, use an array
10578         lookup.
10579         (UNITS_PER_SIMD_WORD): Add VSX support.
10580         (MODES_TIEABLE_P): Ditto.
10581         (STARTING_FRAME_OFFSET): Ditto.
10582         (STACK_DYNAMIC_OFFSET): Ditto.
10583         (EPILOGUE_USES): Ditto.
10584         (REGNO_REG_CLASS): Move to array lookup.
10585         (CLASS_MAX_NREGS): Ditto.
10586         (rs6000_vector_reg_class): Add declaration.
10587         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
10588         overlap with the floating point and Altivec registers.
10589
10590         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
10591
10592         * config/rs6000/driver-rs6000.c (asm_names): New static array to
10593         give the appropriate asm switches if -mcpu=native.
10594         (host_detect_local_cpu): Add support for "asm".
10595         (host_detect_local_cpu): Follow GNU code guidelines for name.
10596
10597         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
10598         -mbit-word to a variable instead of being a target mask.
10599
10600         * config/rs6000/sync.md (lwsync): If the assembler supports it,
10601         emit the lwsync instruction instead of emitting the instruction as
10602         an integer constant.
10603
10604         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
10605         fixuns_trundfsi2, move expander into rs6000.md.
10606
10607         * config/rs6000/rs6000.md (cpu): Add power7.
10608         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
10609         (logical predicate patterns): Change the single instruction
10610         primitives that set CR0 to be fast_compare instead of compare.
10611         (norsi*): Ditto.
10612         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
10613         (popcntddi2): Ditto.
10614         (popcount<mode>): Ditto.
10615         (floating multiply/add insns): Name the floating point
10616         multiply/add insns.
10617         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
10618         (isel_unsigned_<mode>): Ditto.
10619         (fixuns_trundfsi2): Move expander here from spe.md.
10620         (smindi3): Define if we have -misel on 64-bit systems.
10621         (smaxdi3): Ditto.
10622         (umindi3): Ditto.
10623         (umaxdi3): Ditto.
10624
10625 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
10626
10627         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
10628         extra_objs.
10629         * config/avr/avr.c (avr_current_device): New variable.
10630         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
10631         (avr_arch, mcu_type_s): Move to avr.h.
10632         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
10633         default_data_section_start fields.
10634         (avr_arch): Moved from avr.c.
10635         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
10636         library_name fields.
10637         (avr_current_device, avr_mcu_types, avr_arch_types,
10638         avr_device_to_arch, avr_device_to_data_start,
10639         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
10640         (EXTRA_SPEC_FUNCTIONS): Define.
10641         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
10642         options mapping. Use device_to_arch and device_to_data_start insted.
10643         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
10644         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
10645         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
10646         * config/avr/driver-avr.c: New file.
10647         * config/avr/avr-devices.c: New file.
10648
10649 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
10650
10651         * var-tracking.c (unshare_variable): Force initialized to
10652         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
10653         (set_variable_part): Likewise.
10654         (struct variable_union_info): Remove pos_src field.
10655         (vui_vec, vui_allocated): New variables.
10656         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
10657         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
10658         == 1 use a simpler sorting algorithm.  Compute pos field right
10659         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
10660         Avoid quadratic comparison if !flag_var_tracking_uninit.
10661         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
10662         unshare_variable unconditionally.
10663         (dataflow_set_different_2): Removed.
10664         (dataflow_set_different): Don't traverse second hash table.
10665         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
10666         unconditionally to var_reg_set or var_mem_set.
10667         (emit_notes_in_bb): Likewise.
10668         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
10669         unshare_variable.
10670         (emit_note_insn_var_location): Don't set initialized to
10671         VAR_INIT_STATUS_INITIALIZED early.
10672         (vt_finalize): Free vui_vec if needed, clear vui_vec and
10673         vui_allocated.
10674         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
10675
10676         * tree-object-size.c (addr_object_size): Instead of checking
10677         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
10678         are no FIELD_DECLs following it.
10679
10680 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
10681
10682         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
10683         order to match bswaps with signed source operands.
10684
10685 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10686
10687         * sdbout.c (sdbout_one_type): Fix braces in switch.
10688
10689 2009-06-23  Richard Guenther  <rguenther@suse.de>
10690
10691         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
10692         member.
10693         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
10694         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
10695         var_callused, callused_tree, var_storedanything, storedanything_tree,
10696         var_integer, integer_tree): Remove global variables.
10697         (new_var_info): Do not pass new id, append the new var to the
10698         global variable vector.
10699         (do_ds_constraint): Use is_global_var member of the variable-info.
10700         (new_scalar_tmp_constraint_exp): Adjust.
10701         (create_function_info_for): Likewise.
10702         (create_variable_info_for): Likewise.
10703         (find_what_var_points_to): Remove dead code.
10704         (init_base_vars): Simplify.
10705         (compute_points_to_sets): Adjust.
10706
10707 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
10708
10709         * combine.c (try_combine): Dump information about the insns we're
10710         combining.
10711
10712 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
10713
10714         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
10715         check when calling force_to_mode on TRUNCATE's operand.
10716
10717 2009-06-22  Ian Lance Taylor  <iant@google.com>
10718
10719         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
10720
10721 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
10722
10723         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
10724
10725 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10726
10727         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
10728         override library linkage flags such as -static-libgcc or
10729         -shared-libgcc.
10730
10731 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
10732
10733         * config/m68k/m68k-devices.def: Add line for MCF5221x.
10734
10735 2009-06-22  Ian Lance Taylor  <iant@google.com>
10736
10737         * config/linux.opt: Put mglibc ahead of muclibc.
10738
10739         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
10740         for duplicate decls.
10741
10742 2009-06-22  Matthias Klose  <doko@ubuntu.com>
10743
10744         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
10745
10746 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
10747
10748         PR objc/28050
10749         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
10750         instead of NULL if a parser error occurs.
10751
10752 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10753
10754         * dwarf2out.c (dwarf2_debug_hooks): Initialize
10755         non-DWARF2_DEBUGGING_INFO version.
10756
10757 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
10758
10759         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
10760         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
10761
10762         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
10763         (LIBGCC2_TF_CEXT): Define.
10764         (TF_SIZE): Define.
10765
10766 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10767
10768         PR target/40463
10769         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
10770
10771 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10772
10773         * config/arm/arm.c (arm_override_options): Disable
10774         -mcaller-super-interworking and -mcallee-super-interworking.
10775         * doc/invoke.texi (ARM Options): Document this.
10776
10777 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
10778
10779         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
10780         * config/arm/constraints.md (j): New constraint for movw operands.
10781         (N): Remove thumb2 meaning.
10782         * config/arm/arm.md (*arm_movw): Delete.
10783         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
10784         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
10785         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
10786
10787 2009-06-22  Martin Jambor  <mjambor@suse.cz>
10788
10789         PR tree-optimization/40492
10790         * tree-sra.c (sra_modify_assign): Pass zero offsets to
10791         build_ref_for_offset.
10792
10793 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
10794
10795         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
10796         JUMP_TABLE_DATA_P predicates where applicable.
10797         * auto-inc-dec.c: Ditto.
10798         * builtins.c: Ditto.
10799         * caller-save.c: Ditto.
10800         * calls.c: Ditto.
10801         * cfgcleanup.c: Ditto.
10802         * cfglayout.c: Ditto.
10803         * cfgrtl.c: Ditto.
10804         * combine.c: Ditto.
10805         * combine-stack-adj.c: Ditto.
10806         * cse.c: Ditto.
10807         * cselib.c: Ditto.
10808         * dbxout.c: Ditto.
10809         * df-scan.c: Ditto.
10810         * dse.c: Ditto.
10811         * dwarf2asm.c: Ditto.
10812         * dwarf2out.c: Ditto.
10813         * emit-rtl.c: Ditto.
10814         * except.c: Ditto.
10815         * explow.c: Ditto.
10816         * expmed.c: Ditto.
10817         * expr.c: Ditto.
10818         * final.c: Ditto.
10819         * function.c: Ditto.
10820         * fwprop.c: Ditto.
10821         * gcse.c: Ditto.
10822         * genpreds.c: Ditto.
10823         * genrecog.c: Ditto.
10824         * ifcvt.c: Ditto.
10825         * ira-costs.c: Ditto.
10826         * ira-lives.c: Ditto.
10827         * jump.c: Ditto.
10828         * loop-iv.c: Ditto.
10829         * lower-subreg.c: Ditto.
10830         * modulo-sched.c: Ditto.
10831         * optabs.c: Ditto.
10832         * postreload.c: Ditto.
10833         * print-rtl.c: Ditto.
10834         * recog.c: Ditto.
10835         * reginfo.c: Ditto.
10836         * regmove.c: Ditto.
10837         * reload1.c: Ditto.
10838         * reload.c: Ditto.
10839         * reorg.c: Ditto.
10840         * rtlanal.c: Ditto.
10841         * rtl.c: Ditto.
10842         * sched-vis.c: Ditto.
10843         * sdbout.c: Ditto.
10844         * sel-sched-ir.c: Ditto.
10845         * simplify-rtx.c: Ditto.
10846         * targhooks.c: Ditto.
10847         * var-tracking.c: Ditto.
10848         * vmsdbgout.c: Ditto.
10849
10850 2009-06-22  Matthias Klose  <doko@ubuntu.com>
10851
10852         * Makefile.in (install-plugin): Always use DESTDIR.
10853
10854 2009-06-22  Olivier Hainque  <hainque@adacore.com>
10855
10856         * config/pa/pa.c (output_call): Don't optimize post call jumps
10857         into return address adjustments if the call may throw.
10858
10859 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
10860
10861         * arm.c (thumb1_output_casesi): New function.
10862         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
10863         optimizing for size or PIC.
10864         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
10865         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
10866         (casesi): Handle Thumb-1 when optimizing for size or PIC.
10867         (thumb1_casesi_internal_pic): New expand rule.
10868         (thumb1_casesi_dispatch): New pattern.
10869         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
10870         thumb-1 mode.
10871         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
10872         in the text seciton when PIC or optimizing for size.
10873         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
10874         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
10875         preservation properties of code.
10876         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
10877         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
10878         (__gnu_thumb1_case_si): New function.
10879         * t-arm (LIB1ASMSRC): Define here.
10880         (LIB1ASMFUNCS): Add some common functions.
10881         * t-arm-elf (LIB1ASMSRC): Delete.
10882         (LIB1ASMFUNCS): Append to existing set.
10883         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
10884         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
10885         * t-symbian (LIB1ASMFUNCS): Likewise.
10886         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
10887         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
10888
10889 2009-06-21  Richard Guenther  <rguenther@suse.de>
10890
10891         PR tree-optimization/38729
10892         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
10893         to loops with a single exit if -fno-expensive-optimizations.
10894
10895 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
10896
10897         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
10898         (dataflow_set): Change vars type from htab_t to shared_hash.
10899         (shared_hash_pool, empty_shared_hash): New variables.
10900         (vars_clear): Removed.
10901         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
10902         shared_hash_find_slot_unshare, shared_hash_find_slot,
10903         shared_hash_find_slot_noinsert, shared_hash_find): New
10904         static inlines.
10905         (shared_hash_unshare, shared_hash_destroy): New functions.
10906         (unshare_variable): Unshare set->vars if shared, use
10907         shared_hash_htab.
10908         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
10909         (get_init_value, find_src_set_src, dump_dataflow_set,
10910         clobber_variable_part, emit_notes_for_differences): Use
10911         shared_hash_htab.
10912         (dataflow_set_init): Remove second argument, set vars to
10913         empty_shared_hash instead of creating a new htab.
10914         (dataflow_set_clear): Call shared_hash_destroy and set vars
10915         to empty_shared_hash instead of calling vars_clear.
10916         (dataflow_set_copy): Don't call vars_copy, instead just share
10917         the src htab with dst.
10918         (variable_union): Use shared_hash_*, use initially NO_INSERT
10919         lookup if set->vars is shared.  Don't keep slot cleared before
10920         calling unshare_variable.  Unshare set->vars if needed.
10921         Even ->refcount == 1 vars must be unshared if set->vars is shared
10922         and var needs to be modified.
10923         (variable_canonicalize): New function.
10924         (dataflow_set_union): If dst->vars is empty, just share src->vars
10925         with dst->vars and traverse with variable_canonicalize to canonicalize
10926         and unshare what is needed.
10927         (dataflow_set_different): If old_set and new_set use the same shared
10928         htab, they aren't different.  If number of htab elements is different,
10929         htabs are different.  Use shared_hash_*.
10930         (dataflow_set_destroy): Call shared_hash_destroy instead of
10931         htab_delete.
10932         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
10933         second argument to dataflow_set_init.
10934         (vt_initialize): Likewise.  Initialize shared_hash_pool and
10935         empty_shared_hash, move bb in/out initialization afterwards.
10936         Use variable_htab_free instead of NULL as changed_variables del hook.
10937         (variable_was_changed): Change type of second argument to pointer to
10938         dataflow_set.  When inserting var into changed_variables, bump
10939         refcount.  Unshare set->vars if set is shared htab and slot needs to
10940         be cleared.
10941         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
10942         lookup if set->vars is shared.  Unshare set->vars if needed.
10943         Even ->refcount == 1 vars must be unshared if set->vars is shared
10944         and var needs to be modified.  Adjust variable_was_changed caller.
10945         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
10946         vars must be unshared if set->vars is shared and var needs to be
10947         modified.  Adjust variable_was_changed caller.
10948         (emit_note_insn_var_location): Don't pool_free var.
10949         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
10950         instead of 1.
10951         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
10952         free_alloc_pool on shared_hash_pool.
10953
10954 2009-06-20  Anthony Green  <green@moxielogic.com>
10955
10956         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
10957         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
10958
10959 2009-06-20  Richard Guenther  <rguenther@suse.de>
10960
10961         * tree-ssa-structalias.c (find_func_aliases): For memset use
10962         a constraint from NULL if we memset to zero.
10963         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
10964         we explicitly handle that do not read from memory.
10965         (call_may_clobber_ref_p_1): Properly handle builtins that may
10966         set errno.
10967
10968 2009-06-20  Richard Guenther  <rguenther@suse.de>
10969
10970         PR tree-optimization/40495
10971         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
10972         (new_scalar_tmp_constraint_exp): New function.
10973         (process_constraint): Do not create temporary decls.
10974         (process_all_all_constraints): Likewise.
10975         (handle_const_call): Likewise.
10976         (create_function_info_for): Do not set decl.
10977
10978 2009-06-19  Ian Lance Taylor  <iant@google.com>
10979
10980         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
10981         (rs6000_attribute_table): Make static; move before use.
10982
10983 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
10984
10985         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
10986         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
10987         Propagate the TREE_READONLY flag without overwriting it.
10988         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
10989         Propagate the TREE_READONLY flag onto the result.
10990         (process_call_operands): Move around.  Use correct constant value.
10991
10992 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10993
10994         PR target/40482
10995         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
10996         * config/arm/arm.md: Likewise.
10997
10998 2009-06-19  Ian Lance Taylor  <iant@google.com>
10999
11000         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
11001         to GIMPLE_ERROR_MARK.
11002
11003         * c-typeck.c (build_conditional_expr): Add op1_original_type and
11004         op2_original_type parameters.  Warn about using different enum types.
11005         * c-parser.c (c_parser_conditional_expression): Pass original
11006         types to build_conditional_expr.
11007         * c-tree.h (build_conditional_expr): Update declaration.
11008
11009 2009-06-19  Ian Lance Taylor  <iant@google.com>
11010
11011         * config/i386/i386.c (ix86_function_specific_save): Test that
11012         fields match values, rather than testing the values are in a
11013         certain range.
11014
11015 2009-06-19  Richard Guenther  <rguenther@suse.de>
11016
11017         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
11018         ADDR_EXPR pointers.
11019         (ptr_derefs_may_alias_p): Likewise.
11020         (ptr_deref_may_alias_ref_p_1): New function.
11021         (ptr_deref_may_alias_ref_p): Likewise.
11022         (ref_maybe_used_by_call_p_1): Handle builtins that are not
11023         covered by looking at the ESCAPED solution.
11024         (call_may_clobber_ref_p_1): Likewise.
11025         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
11026         Handle NULL_TREE offset.  Do not produce redundant constraints.
11027         (process_all_all_constraints): New helper function.
11028         (do_structure_copy): Use it.
11029         (handle_lhs_call): Likewise.
11030         (find_func_aliases): Handle some builtins with pointer arguments
11031         and/or return values explicitly.
11032
11033 2009-06-19  Ian Lance Taylor  <iant@google.com>
11034
11035         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
11036
11037 2009-06-19  Ian Lance Taylor  <iant@google.com>
11038
11039         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
11040
11041 2009-06-19  Ian Lance Taylor  <iant@google.com>
11042
11043         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
11044         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
11045         version.
11046
11047         * c-decl.c (finish_decl): If -Wc++-compat, warn about
11048         uninitialized const.
11049
11050 2009-06-19  Ian Lance Taylor  <iant@google.com>
11051
11052         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
11053         all uses.
11054
11055         * c-decl.c (in_struct, struct_types): Remove.
11056         (struct c_binding): Add in_struct field.
11057         (c_binding_ptr): Define type, along with VEC.
11058         (struct c_struct_parse_info): Define.
11059         (struct_parse_info): New static variable.
11060         (bind): Initialize in_struct field.
11061         (start_struct): Remove enclosing_in_struct and
11062         enclosing_struct_types parameters.  Add
11063         enclosing_struct_parse_info parameter.  Change all callers.  Set
11064         struct_parse_info rather than in_struct and struct_types.
11065         (grokfield): If -Wc++-compat and there is a symbol binding for the
11066         field name, set the in_struct flag and push it on the
11067         struct_parse_info->fields vector.
11068         (warn_cxx_compat_finish_struct): New static function.
11069         (finish_struct): Remove enclosing_in_struct and
11070         enclosing_struct_types parameters.  Add
11071         enclosing_struct_parse_info parameter.  Change all callers.  Don't
11072         set C_TYPE_DEFINED_IN_STRUCT here.  Call
11073         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
11074         parameter.  Only push on struct_types if warn_cxx_compat.
11075         (finish_enum): Only push on struct_types if warn_cxx_compat.
11076         (declspecs_add_type): Add loc parameter.  Change all callers.
11077         Change all error calls to error_at.  Pass loc, not input_location,
11078         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
11079         defined in a struct.  If -Wc++-compat and parsing a struct, record
11080         that a typedef name was used.
11081         * c-parser.c (c_parser_declspecs): Get location to pass to
11082         declspecs_add_type.
11083         (c_parser_struct_or_union_specifier): Update calls to start_struct
11084         and finish_struct.
11085         * c-tree.h (struct c_struct_parse_info): Declare.
11086         (finish_struct, start_struct): Update declarations.
11087         (declspecs_add_type): Update declaration.
11088
11089 2009-06-19  Ian Lance Taylor  <iant@google.com>
11090
11091         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
11092         variable with an anonymous type.
11093
11094 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
11095
11096         * see.c: Remove for real.
11097
11098 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
11099
11100         * optabs.h (enum optab_index): Add new OTI_significand.
11101         (significand_optab): Define corresponding macro.
11102         * optabs.c (init_optabs): Initialize significand_optab.
11103         * genopinit.c (optabs): Implement significand_optab using
11104         significand?f2 patterns.
11105         * builtins.c (expand_builtin_mathfn): Handle
11106         BUILT_IN_SIGNIFICAND{,F,L}.
11107         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
11108         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
11109
11110         * config/i386/i386.md (significandxf2, significand<mode>2): New
11111         expanders to implement significandf, significand and significandl
11112         built-ins as inline x87 intrinsics.
11113
11114 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
11115
11116         * config/avr/avr.c (avr_override_options): Remove setting value of
11117         PARAM_INLINE_CALL_COST.
11118
11119 2009-06-18  Richard Henderson  <rth@redhat.com>
11120
11121         PR 40488
11122         * tree-pass.h (TDF_ASMNAME): New.
11123         * tree-dump.c (dump_options): Add asmname.
11124         * doc/invoke.texi: Document it.
11125
11126         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
11127         (dump_decl_name): ...here.
11128         (dump_function_name): New flags arg; mind TDF_ASMNAME.
11129         (dump_generic_node): Update dump_function_name calls.
11130         (print_call_name): New flags arg; update all dump calls.
11131         * diagnostic.h (print_call_name): Update.
11132         * gimple-pretty-print.c (dump_gimple_call): Update.
11133
11134 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11135
11136         PR target/40470
11137         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
11138
11139 2009-06-18  Diego Novillo  <dnovillo@google.com>
11140
11141         * doc/plugins.texi: Document plugin_is_GPL_compatible.
11142         * plugin.c (str_license): Declare.
11143         (try_init_one_plugin): Assert that the symbol
11144         'plugin_is_GPL_compatible' exists.
11145
11146 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
11147
11148         * see.c: Remove.
11149         * Makefile.in (OBJS-common): Remove see.o.
11150         (see.o): Remove.
11151         * common.opt (fsee): Mark as preserved for backward compatibility.
11152         * opts.c (common_handle_option): Add OPT_fsee to the backward
11153         compatibility section.
11154         * passes.c (init_optimization_passes, pass_see): Remove pass.
11155         * timevar.def (TV_SEE): Remove.
11156         * tree-pass.h (pass_see): Remove declaration.
11157         * doc/invoke.texi (-fsee): Remove documentation.
11158
11159 2009-06-18  Martin Jambor  <mjambor@suse.cz>
11160
11161         * tree-sra.c: Include statistics.h
11162         (sra_stats): New variable.
11163         (sra_initialize): Clear sra_stats.
11164         (create_access_replacement): Increment sra_stats.replacements.
11165         (get_access_replacement): Do not return twice.
11166         (analyze_all_variable_accesses): Increment statistics counter by the
11167         number of scalarized aggregates.
11168         (generate_subtree_copies): Increment sra_stats.subtree_copies.
11169         (sra_modify_expr): Increment sra_stats.exprs.
11170         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
11171         (sra_modify_assign): Increment sra_stats.exprs,
11172         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
11173         (perform_intra_sra): Update statistics counters.
11174         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
11175
11176 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
11177
11178         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
11179         (arm_scalar_mode_supported_p): New function.
11180
11181 2009-06-18  Paul Brook  <paul@codesourcery.com>
11182             Sandra Loosemore  <sandra@codesourcery.com>
11183
11184         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
11185         (__extendhfsf2, __truncsfhf2): Define.
11186         * config/arm/fp16.c: New file.
11187         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
11188         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
11189
11190 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
11191
11192         * doc/extend.texi (Half-Precision): New section.
11193         * doc/invoke.texi (Option Summary): List -mfp16-format.
11194         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
11195         * config/arm/arm.opt (mfp16-format=): New.
11196         * config/arm/arm.c: Include intl.h.
11197         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
11198         (TARGET_INVALID_RETURN_TYPE): Redefine.
11199         (TARGET_PROMOTED_TYPE): Redefine.
11200         (TARGET_CONVERT_TO_TYPE): Redefine.
11201         (arm_fp16_format): Define.
11202         (all_fpus): Add entry for neon-fp16.
11203         (fp_model_for_fpu): Likewise.
11204         (struct fp16_format): Declare.
11205         (all_fp16_formats): Define.
11206         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
11207         functions.
11208         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
11209         and no ldrh.
11210         (arm_legitimate_index_p): Treat HFmode like HImode.
11211         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
11212         (coproc_secondary_reload_class): Special-case HFmode.
11213         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
11214         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
11215         (arm_init_fp16_builtins): New.
11216         (arm_init_builtins): Call it.
11217         (arm_invalid_parameter_type): New.
11218         (arm_invalid_return_type): New.
11219         (arm_promoted_type): New.
11220         (arm_convert_to_type).
11221         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
11222         format.
11223         (arm_emit_fp16_const): New function.
11224         (arm_mangle_type): Mangle __fp16 as "Dh".
11225         * config/arm/arm.h (TARGET_VFPD32): Make it know about
11226         FPUTYPE_NEON_FP16.
11227         (TARGET_NEON_FP16): New.
11228         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
11229         (enum fputype): Add FPUTYPE_NEON_FP16.
11230         (enum arm_fp16_format_type): Declare.
11231         (arm_fp16_format): Declare.
11232         (LARGEST_EXPONENT_IS_NORMAL): Define.
11233         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
11234         * config/arm/arm-modes.def (HFmode): Define.
11235         * config/arm/vfp.md: (*movhf_vfp): New.
11236         (extendhfsf2): New.
11237         (truncsfhf2): New.
11238         * config/arm/arm.md: (fpu): Add neon_fp16.
11239         (floatsihf2, floatdihf2): New.
11240         (fix_trunchfsi2, fix_trunchfdi2): New.
11241         (truncdfhf2): New.
11242         (extendhfdf2): New.
11243         (movhf): New.
11244         (*arm32_movhf): New.
11245         (*thumb1_movhf): New.
11246         (consttable_2): Add check for HFmode constants.
11247         (consttable_4): Handle HFmode constants.
11248
11249 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
11250
11251         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
11252
11253 2009-06-17  Olivier Hainque  <hainque@adacore.com>
11254
11255         * collect2.c (main): Use CONST_CAST2 to perform char ** to
11256         const char ** conversion in AIX specific section.
11257
11258 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
11259
11260         * config/i386/i386.c (ix86_special_builtin_type): Remove
11261         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
11262         (bdesc_special_args): Updated.
11263         (ix86_init_mmx_sse_builtins): Likewise.
11264         (ix86_expand_special_args_builtin): Likewise.
11265
11266 2009-06-17  Richard Henderson  <rth@redhat.com>
11267
11268         * tree-pretty-print.c (maybe_dump_asm_name): New.
11269         (dump_decl_name): Use it.
11270         (PRINT_FUNCTION_NAME): Merge into...
11271         (dump_function_name): ... here.  Use maybe_dump_asm_name.
11272
11273 2009-06-17  Cary Coutant  <ccoutant@google.com>
11274
11275         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
11276         Change caller.
11277         * debug.c (struct gcc_debug_hooks): Change placeholder for
11278         source_line hook.
11279         (debug_nothing_int_charstar_int): Replaced by...
11280         (debug_nothing_int_charstar_int_bool): ...this.
11281         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
11282         source_line prototype.
11283         (debug_nothing_int_charstar_int): Replaced by...
11284         (debug_nothing_int_charstar_int_bool): ...this.
11285         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
11286         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
11287         Output is_stmt operand when necessary.
11288         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
11289         (notice_source_line): Add is_stmt parameter.
11290         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
11291         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
11292         Change callers.
11293         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
11294         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
11295
11296 2009-06-17  Ian Lance Taylor  <iant@google.com>
11297
11298         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
11299         Change all uses.
11300         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
11301         call uses.
11302
11303 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
11304
11305         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
11306         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
11307         tree_strip_sign_nop_conversions and
11308         tree_ssa_strip_useless_type_conversions rather than stripping
11309         the operations here.
11310         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
11311         Declare them.
11312         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
11313         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
11314         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
11315         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
11316         functions.
11317
11318 2009-06-17  Michael Eager  <eager@eagercon.com>
11319
11320         * config/rs6000/constraints.md (register_constraint "d"): New.
11321         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
11322         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
11323         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
11324         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
11325         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
11326         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
11327         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
11328         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
11329         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
11330         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
11331         __fctiwz): Same.
11332         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
11333         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
11334         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
11335         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
11336         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
11337         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
11338         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
11339         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
11340         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
11341         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
11342         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
11343         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
11344         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
11345         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
11346
11347 2009-06-16  Ian Lance Taylor  <iant@google.com>
11348
11349         * profile.c (total_num_never_executed): Don't define.
11350         (compute_branch_probabilities): Don't count or print
11351         num_never_executed.
11352         (init_branch_prob): Don't set total_num_never_executed.
11353         (end_branch_prob): Don't print total_num_never_executed.
11354
11355 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
11356
11357         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
11358
11359 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
11360
11361         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
11362         (nabstd2_fpr): Same.
11363
11364 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
11365
11366         * expr.c (expand_assignment): Change complex type check.
11367
11368 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
11369
11370         * doc/plugins.texi (Building GCC plugins): Added new section.
11371
11372 2009-06-17  Ian Lance Taylor  <iant@google.com>
11373
11374         * c-pch.c (get_ident): Don't set size of templ array.
11375         (pch_init): Don't set size of partial_pch array.
11376
11377         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
11378         string constant to intialize an array whose size is the length of
11379         the string.
11380
11381 2009-06-17  Richard Guenther  <rguenther@suse.de>
11382
11383         PR tree-optimization/40389
11384         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
11385         to addressable types.
11386         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
11387
11388 2009-06-17  Richard Guenther  <rguenther@suse.de>
11389
11390         PR middle-end/40460
11391         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
11392         if there is no evolution of left in the loop bail out.
11393         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
11394         chrec_fold_multiply.
11395
11396 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
11397             Janis Johnson  <janis187@us.ibm.com>
11398
11399         PR target/39254
11400         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
11401         for the symbol ref of a constant that is the source of a move
11402         - nor for any other not-obvious-label-ref constants.
11403
11404 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
11405
11406         * plugin.c (position_pass): Skip newly inserted pass during list
11407         traversal to avoid repeated insertion.
11408
11409 2009-06-16  Ian Lance Taylor  <iant@google.com>
11410
11411         * vec.h (VEC_stack_alloc): Define different version if
11412         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
11413         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
11414         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
11415         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
11416
11417 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
11418
11419         * config.gcc (extra_headers): Add ia32intrin.h for x86.
11420
11421         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
11422         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
11423         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
11424         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
11425         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
11426         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
11427         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
11428         (bdesc_special_args): Add __builtin_ia32_rdtsc and
11429         __builtin_ia32_rdtscp.
11430         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
11431         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
11432         and __builtin_ia32_rorhi.
11433         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
11434         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
11435         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
11436         (ix86_expand_args_builtin): Likewise.
11437         (ix86_expand_special_args_builtin): Likewise.
11438
11439         * config/i386/i386.md (UNSPECV_RDTSCP): New.
11440         (UNSPECV_RDTSC): Likewise.
11441         (UNSPECV_RDPMC): Likewise.
11442         (*bsr): Renamed to ...
11443         (bsr): This
11444         (*bsr_rex64): Renamed to ...
11445         (bsr_rex64): This.
11446         (rdpmc): New.
11447         (*rdpmc): Likewise.
11448         (*rdpmc_rex64): Likewise.
11449         (rdtsc): Likewise.
11450         (*rdtsc): Likewise.
11451         (*rdtsc_rex64): Likewise.
11452         (rdtscp): Likewise.
11453         (*rdtscp): Likewise.
11454         (*rdtscp_rex64): Likewise.
11455
11456         * config/i386/ia32intrin.h: New.
11457
11458         * config/i386/x86intrin.h: Include <ia32intrin.h>.
11459
11460 2009-06-16  Ian Lance Taylor  <iant@google.com>
11461
11462         * ira-build.c (copy_info_to_removed_store_destinations):
11463         Initialize parent_a.
11464
11465 2009-06-16  Ian Lance Taylor  <iant@google.com>
11466
11467         * c-decl.c (grokdeclarator): Change size_varies to bool.
11468
11469 2009-06-16  Ian Lance Taylor  <iant@google.com>
11470
11471         * sel-sched.c: Make forward declarations of move_op_hooks and
11472         fur_hooks explicitly extern.
11473
11474 2009-06-16  Ian Lance Taylor  <iant@google.com>
11475
11476         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
11477         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
11478
11479 2009-06-16  Ian Lance Taylor  <iant@google.com>
11480
11481         * resource.c (mark_referenced_resources): Change
11482         include_delayed_effects parameter to bool.  Change all callers.
11483         (mark_end_of_function_resources): Likewise.
11484         * reorg.c (insn_references_resource_p): Likewise.
11485         (insn_sets_resource_p): Likewise.
11486         * resource.h (mark_referenced_resources): Update declaration.
11487         (mark_end_of_function_resources): Update declaration.
11488
11489 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
11490
11491         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
11492
11493 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
11494
11495         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
11496         GCC can bootstrap on AIX with GNU Binutils 2.20.
11497
11498 2009-06-16  Ian Lance Taylor  <iant@google.com>
11499
11500         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
11501
11502 2009-06-16  Ian Lance Taylor  <iant@google.com>
11503
11504         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
11505         inline, not extern inline.
11506         (exact_log2): Likewise.
11507         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
11508         test CLZ_HWI.
11509         (exact_log2): Likewise, but don't test CTZ_HWI.
11510
11511 2009-06-16  Ian Lance Taylor  <iant@google.com>
11512
11513         * bitmap.c (bitmap_clear): Don't declare as inline.
11514         * gimple.c (gimplify_assign): Likewise.
11515         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
11516         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
11517         (sched_scan_info): Remove duplicate definition.
11518
11519 2009-06-16  Ian Lance Taylor  <iant@google.com>
11520
11521         * c-common.c (skip_evaluation): Don't define.
11522         (c_inhibit_evaluation_warnings): Define global variable.
11523         (overflow_warning): Check c_inhibit_evaluation_warnings rather
11524         than skip_evaluation.
11525         (convert_and_check, warn_for_div_by_zero): Likewise.
11526         * c-common.h (skip_evaluation): Don't declare.
11527         (c_inhibit_evaluation_warnings): Declare.
11528         * c-parser.c (c_parser_typeof_specifier): Set
11529         c_inhibit_evaluation_warnings rather than skip_evaluation.
11530         (c_parser_conditional_expression): Likewise.
11531         (c_parser_binary_expression): Likewise.
11532         (c_parser_sizeof_expression): Likewise.
11533         (c_parser_alignof_expression): Likewise.
11534         * c-typeck.c (build_indirect_ref): Check
11535         c_inhibit_evaluation_warnings rather than skip_evaluation.
11536         (build_conditional_expr, build_binary_op): Likewise.
11537
11538 2009-06-16  Richard Guenther  <rguenther@suse.de>
11539
11540         * tree-ssa-alias.c (is_escape_site): Remove.
11541         * tree-ssa-alias.h (enum escape_type): Remove.
11542         (is_escape_site): Likewise.
11543         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
11544         via casts and asms without deferring to is_escape_site.
11545
11546 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
11547
11548         PR middle-end/40446
11549         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
11550         use gen_lowpart if op0 has complex mode.
11551
11552 2009-06-16  Richard Guenther  <rguenther@suse.de>
11553
11554         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
11555         variables add them to ESCAPED.
11556         (find_func_aliases): Do not make all indirectly stored values escaped.
11557
11558 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
11559
11560         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
11561         make_decl_one_only.
11562
11563 2009-06-16  Martin Jambor  <mjambor@suse.cz>
11564
11565         PR tree-optimization/40432
11566         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
11567         check whether we need to force gimple register operand.
11568
11569 2009-06-16  Martin Jambor  <mjambor@suse.cz>
11570
11571         PR tree-optimization/40413
11572         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
11573         build_ref_for_offset.
11574         (propagate_subacesses_accross_link): Fix a typo in a comment.
11575
11576 2009-06-16  Ira Rosen  <irar@il.ibm.com>
11577
11578         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
11579         with additional parameter.
11580         * tree-vectorizer.h (enum vect_def_type): Add new value
11581         vect_nested_cycle.
11582         (enum vect_relevant): Add comments.
11583         (vect_is_simple_reduction): Add new argument.
11584         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
11585         Detect nested cycles.
11586         (vect_is_simple_reduction): Update documentation, add an argument to
11587         distinguish inner-loop reduction from nested cycle, detect nested
11588         cycles, fix printings and indentation, don't swap operands in case
11589         of nested cycle.
11590         (get_initial_def_for_reduction): Handle subtraction.
11591         (vect_create_epilog_for_reduction): Add new argument to specify
11592         reduction variable.
11593         (vect_finalize_reduction): Handle subtraction, fix comments.
11594         (vectorizable_reduction): Handle nested cycles. In case of nested
11595         cycle keep track of the reduction variable position. Call
11596         vect_is_simple_reduction with additional parameter. Use original
11597         statement code in reduction epilogue for nested cycle. Call
11598         vect_create_epilog_for_reduction with additional parameter.
11599         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
11600         inner-loop vectorization.
11601         (vect_recog_widen_sum_pattern): Likewise.
11602         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
11603         and reductions.
11604         (vect_mark_stmts_to_be_vectorized): Likewise.
11605         (vect_get_vec_def_for_operand): Handle nested cycles.
11606
11607 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11608
11609         * doc/invoke.texi (Debugging Options): Fix option index entries
11610         for -fdump-statistics, -frandom-seed add entries for
11611         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
11612         (FRV Options): Fix entries for -mTLS, -mtls.
11613         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
11614         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
11615         (M68hc1x Options): Fix @itemx for -mnominmax.
11616         (MCore Options): Fix entry for -mno-lsim.
11617         (MMIX Options): Fix entry for -mabi=mmixware.
11618         (PDP-11 Options): Fix entry for -mbcopy-builtin.
11619
11620 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
11621
11622         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
11623         Mention the plugin mode of gengtype.
11624         * doc/gty.texi (Source Files Containing Type Information): Likewise.
11625         * gengtype.c: Updated copyright.
11626         (plugin_files, nb_plugin_files) Added new static variables.
11627         (measure_input_list) Care about plugin_files.
11628         (write_rtx_next): Added early return in plugin mode.
11629         (create_file): Updated copyright year in generated file. Added
11630         asserts.
11631         (oprintf): Added early return if NULL outf.
11632         (get_output_file_with_visibility): Care of plugin_files.
11633         (get_output_file_name): May return null.
11634         (write_local): Added early return.
11635         (put_mangled_filename): Ditto.
11636         (finish_root_table): Added check for base_files.
11637         (write_roots): Care about null when plugins.
11638         (main): Added plugin mode.
11639
11640 2009-06-15  Ian Lance Taylor  <iant@google.com>
11641
11642         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
11643         * gcov.c (read_count_file): Add braces around variables declared
11644         before label.
11645
11646         * c.opt (Wjump-misses-init): New warning.
11647         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
11648         -Wall and -Wc++-compat if not already set.
11649         (c_common_post_options): Clear warn_jump_misses_init if it was not
11650         set.
11651         * c-decl.c (struct c_binding): Change type field to a union with
11652         new label field.  Make it the first field in the struct.  Update
11653         references to type to use u.type instead.
11654         (struct c_spot_bindings): Define.
11655         (struct c_goto_bindings): Define.
11656         (c_goto_bindings_p): Define, along with VECs.
11657         (struct c_label_vars): Define.
11658         (struct c_scope): Add has_label_bindings field.
11659         (bind_label, set_spot_bindings): New static functions.
11660         (decl_jump_unsafe, update_spot_bindings): New static functions.
11661         (update_label_decls): New static function.
11662         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
11663         Update binding u.label field to shadowed field.
11664         (c_binding_start_stmt_expr): New function.
11665         (c_binding_end_stmt_expr): New function.
11666         (pushdecl): Don't call c_begin_vm_scope.
11667         (make_label): Add defining and p_label_vars parameters.  Change
11668         all callers.
11669         (lookup_label): Correct test for whether a label has not yet been
11670         defined.  Call bind_label rather than bind.
11671         (warn_about_goto): New static function.
11672         (lookup_label_for_goto): New function.
11673         (declare_label): Call bind_label rather than bind.
11674         (check_earlier_gotos): New static function.
11675         (define_label): Don't give errors about jumping into statement
11676         expressions or scopes of variably modified types.  Call
11677         set_spot_bindings and check_earlier_gotos.  Call bind_label
11678         instead of bind.  Don't set label_context_stack_se or
11679         label_context_stack_vm.
11680         (c_get_switch_bindings): New function.
11681         (c_release_switch_bindings): New function.
11682         (c_check_switch_jump_warnings): New function.
11683         (start_function): Don't set label_context_stack_se or
11684         label_context_stack_vm.
11685         (finish_function): Likewise.
11686         * c-typeck.c (label_context_stack_se): Don't define.
11687         (label_context_stack_vm): Don't define.
11688         (c_finish_goto_label): Call lookup_label_for_goto rather than
11689         lookup_label.  Don't give errors about jumping into a statement
11690         expression or the scope of a variably modified type.  Don't set
11691         label_context_stack_se or label_context_stack_vm.
11692         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
11693         fields.  Add bindings field.
11694         (c_start_case): Don't set deleted fields.  Set bindings field.
11695         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
11696         or blocked_vm.  Call c_check_switch_jump_warnings.
11697         (c_finish_case): Don't test blocked_stmt_expr field.  Call
11698         c_release_switch_bindings.
11699         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
11700         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
11701         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
11702         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
11703         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
11704         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
11705         (c_begin_vm_scope, c_end_vm_scope): Don't define.
11706         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
11707         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
11708         (C_DECL_UNJUMPABLE_VM): Don't define.
11709         (C_DECL_UNDEFINABLE_VM): Don't define.
11710         (struct c_label_list): Don't define.
11711         (struct c_label_context_se): Don't define.
11712         (struct c_label_context_vm): Don't define.
11713         (struct c_spot_bindings): Declare.
11714         (c_bindings_start_stmt_expr): Declare.
11715         (c_bindings_end_stmt_expr): Declare.
11716         (lookup_label_for_goto): Declare.
11717         (c_get_switch_bindings, c_release_switch_bindings): Declare.
11718         (c_check_switch_jump_warnings): Declare.
11719         (label_context_stack_se, label_context_stack_vm): Don't declare.
11720         (c_finish_goto_label): Update declaration.
11721         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
11722         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
11723         (Warning Options): Document -Wjump-misses-init.
11724
11725 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
11726
11727         * tree-object-size.c (addr_object_size): Fix a pasto in the last
11728         change.
11729
11730 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
11731
11732         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
11733
11734 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
11735
11736         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
11737
11738 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
11739
11740         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
11741
11742 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
11743
11744         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
11745         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
11746         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
11747         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
11748         * dwarf2asm.c (dw2_force_const_mem): Update call to
11749         make_decl_one_only.
11750         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
11751         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
11752         * langhooks.c (lhd_comdat_group): Remove.
11753         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
11754         * tree.h (DECL_COMDAT_GROUP): New.
11755         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
11756         (tree_decl_with_vis): Add comdat_group. Remove one_only.
11757         (make_decl_one_only): Change signature.
11758         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
11759         make_decl_one_only.
11760         (make_decl_one_only): Change signature.
11761         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
11762
11763 2009-06-15  Richard Guenther  <rguenther@suse.de>
11764
11765         PR middle-end/40439
11766         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
11767
11768 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11769
11770         * tree-ssa-math-opts.c: Remove extra divide.
11771
11772 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11773
11774         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
11775
11776 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11777
11778         * passes.c: Add bswap pass.
11779         * tree-pass.h: Add pass_optimize_bswap declaration.
11780         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
11781         Include rtl.h, expr.h and optabs.h for optab_handler check.
11782         (struct symbolic_number, pass_optimize_bswap): New definition.
11783         (do_shift_rotate, verify_symbolic_number_p): New functions.
11784         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
11785         (gate_optimize_bswap): New function.
11786         * tree.c (widest_int_cst_value): New function.
11787         * tree.h (widest_int_cst_value): Prototype added.
11788
11789 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
11790
11791         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
11792         REG_EQUAL/REG_EQUIV notes.
11793
11794 2009-06-14  Richard Guenther  <rguenther@suse.de>
11795
11796         PR middle-end/40389
11797         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
11798         has its address taken if NRV was applied and it is addressable.
11799         * tree-ssa-structalias.c (get_constraint_for_address_of): New
11800         function split out from ...
11801         (get_constraint_for_1): ... here.
11802         (handle_rhs_call): Use it to mark the return slot escaped if
11803         it is addressable and NRV was applied.
11804
11805 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
11806
11807         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
11808         Change first argument type to location_t.
11809         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
11810         Do not set input_location.
11811         Use loc instead of input_location throughout.
11812
11813 2009-06-13  Richard Guenther  <rguenther@suse.de>
11814
11815         PR tree-optimization/40421
11816         * tree-predcom.c (should_unroll_loop_p): Remove.
11817         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
11818
11819 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
11820
11821         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11822         Add location argument.
11823
11824 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
11825
11826         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
11827         build_decl.
11828         * config/s390/s390.c (s390_build_builtin_va_list): Same.
11829         (s390_gimplify_va_arg): Pass location to create_artificial_label.
11830         * config/spu/spu-protos.h: Add location to
11831         spu_resolve_overloaded_builtin.
11832         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
11833         spu_build_builtin_va_list.
11834         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
11835         argument.  Pass location to build_function_call_vec.
11836         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
11837         build_decl.
11838         (emit_fpu_switch): Same.
11839         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
11840         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
11841         to build_decl and create_artificial_label.
11842         (xtensa_gimplify_va_arg_expr): Same.
11843         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
11844         (xstormy16_gimplify_va_arg_expr): Same.
11845         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
11846         * config/arm/arm.c (arm_build_builtin_va_list): Same.
11847         * config/mips/mips.c (mips_build_builtin_va_list): Same.
11848         (mips16_build_function_stub): Same.
11849         (mips16_build_call_stub): Same.
11850
11851 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
11852
11853         PR target/40327
11854         * arm/constraints.md (Pa, Pb): New constraints.
11855         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
11856         split pattern to deal with them.
11857
11858 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
11859
11860         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
11861         fix index entry for -Xpreprocessor.
11862
11863 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
11864
11865         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11866         Add location argument to build_decl call.
11867         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
11868         (rs6000_init_builtins): Same.
11869         (spe_init_builtins): Same.
11870         (rs6000_gimplify_va_arg): Add location argument to
11871         create_artificial_label call.
11872
11873 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
11874
11875         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
11876         * combine-stack-adj.c (pass_stack_adjustments): Use it.
11877         * Makefile.in: Fix GGC dependency for gcse.o.
11878
11879 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
11880
11881         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
11882         * gimple-pretty-print.c (dump_gimple_stmt): Same.
11883         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
11884         created.
11885         * c-parser.c (c_parser_binary_expression): Use current column while
11886         building binary operations.
11887         * common.opt (fshow-column): Enable by default.
11888         * tree-vrp.c (check_array_ref): Use warning_at.
11889         (check_array_bounds): Use location from call back if expr has no
11890         location.
11891         * tree.h: Add location argument to maybe_fold_*.
11892         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
11893         (maybe_fold_offset_to_array_ref): Add location argument and use it.
11894         (maybe_fold_offset_to_component_ref): Same.
11895         (maybe_fold_offset_to_reference): Same.
11896         (maybe_fold_offset_to_address): Same.
11897         (maybe_fold_stmt_indirect): Same.
11898         (maybe_fold_stmt_addition): Same.
11899         (fold_stmt_r): Pass location to maybe_fold_*.
11900         (fold_gimple_assign): Same.
11901         * c-tree.h: Add location argument to finish_decl,
11902         default_function_array_conversion, store_init_value.
11903         * c-decl.c (define_label): Use error_at.
11904         (c_make_fname_decl): Pass location to finish_decl.
11905         (finish_decl): New location argument.
11906         (build_compound_literal): Pass location to store_init_value.
11907         (grokdeclarator): Pass location to finish_decl.
11908         (grokfield): Same.
11909         * c-typeck.c (array_to_pointer_conversion): New location argument.
11910         (function_to_pointer_conversion): Same.
11911         (default_function_array_conversion): Same.
11912         (parser_build_unary_op): Pass location to overflow_warning.
11913         (parser_build_binary_op): Same.  Use warning_at.
11914         (build_unary_op): Pass location to array_to_pointer_conversion.
11915         (build_c_cast): Pass location to digest_init.
11916         (build_modify_expr): New location argument.
11917         (convert_for_assignment): Same.
11918         (store_init_value): Same.
11919         (digest_init): Same.
11920         (output_init_element): Pass location to digest_init and
11921         array_to_pointer_conversion.
11922         (c_finish_return): Pass location to convert_for_assignment.
11923         * gimplify.c (gimplify_conversion): Pass location to
11924         maybe_fold_offset_to_address.
11925         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
11926         to maybe_fold_stmt_addition.
11927         * c-omp.c (c_finish_omp_atomic): Pass new location to
11928         build_modify_expr.
11929         (c_finish_omp_for): Same.
11930         * c-common.c (overflow_warning): New argument.
11931         * c-common.h: New argument to build_modify_expr, overflow_warning.
11932         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
11933         finish_decl.
11934         (c_parser_initializer): Pass location to
11935         default_function_array_conversion.
11936         (c_parser_initelt): Same.
11937         (c_parser_initval): Same.
11938         (c_parser_asm_operands): Same.
11939         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
11940         (c_parser_conditional_expression): Same.
11941         (c_parser_binary_expression): Add location info to stack.  Use it.
11942         (c_parser_unary_expression): Pass location to
11943         default_function_array_conversion, parser_build_unary_op,
11944         build_indirect_ref, c_parser_postfix_expression_after_primary.
11945         (c_parser_postfix_expression_after_primary): New location argument.
11946         Use it.
11947         (c_parser_expression_conv): Pass location to
11948         default_function_array_conversion.
11949         (c_parser_expr_list): Same.
11950         (c_parser_omp_atomic): Same.
11951         (c_parser_omp_for_loop): Same.
11952         * c-tree.h: (struct c_declarator): Add comment to id_loc.
11953         (build_array_declarator): New argument.
11954         * c-decl.c (build_array_declarator): Add location argument.
11955         (grokdeclarator): Set id_loc for cdk_array.
11956         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
11957         build_array_declarator.
11958         * tree.c (build_omp_clause): Add location argument.
11959         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
11960         (OMP_CLAUSE_LOCATION): New macro.
11961         (struct tree_omp_clause): Add location field.
11962         (build_omp_clause): Add argument.
11963         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
11964         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
11965         build_omp_clause.
11966         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
11967         (cp_parser_omp_clause_collapse): Same.
11968         (cp_parser_omp_clause_default): Same.
11969         (cp_parser_omp_clause_if): Same.
11970         (cp_parser_omp_clause_nowait): Same.
11971         (cp_parser_omp_clause_num_threads): Same.
11972         (cp_parser_omp_clause_ordered): Same.
11973         (cp_parser_omp_clause_schedule): Same.
11974         (cp_parser_omp_clause_untied): Same.
11975         (cp_parser_omp_for_loop): Same.
11976         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
11977         * c-tree.h (c_start_case): Add location argument.
11978         (c_process_expr_stmt): Same.
11979         (c_finish_goto_*): Same.
11980         * tree-parloops.c (initialize_reductions): Pass location to
11981         build_omp_clause.
11982         (create_parallel_loop): Same.
11983         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
11984         (gfc_trans_omp_reduction_list): Same.
11985         (gfc_trans_omp_clauses): Same.
11986         (gfc_trans_omp_do): Same.
11987         * c-typeck.c (c_finish_goto_label): Same.
11988         (c_finish_goto_ptr): New location argument.
11989         (c_start_case): Same.
11990         (emit_side_effect_warnings): Same.
11991         (c_process_expr_stmt): Same.
11992         (c_finish_stmt_expr): Same.
11993         (c_finish_omp_clauses): Use error_at instead of error.
11994         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
11995         build_omp_clause.
11996         * c-omp.c (c_split_parallel_clauses): New location argument.
11997         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
11998         to build_omp_clause.
11999         (convert_local_reference_stmt): Same.
12000         (convert_gimple_call): Same.
12001         * c-common.h (c_split_parallel_clauses): New argument.
12002         * c-parser.c (c_parser_statement_after_labels): Pass location to
12003         c_finish_goto_label.
12004         (c_parser_switch_statement): Pass location to c_start_case.
12005         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
12006         and c_process_expr_stmt.
12007         (c_parser_omp_variable_list): Add location argument.
12008         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
12009         (c_parser_omp_clause_default): Same.
12010         (c_parser_omp_clause_if): Same.
12011         (c_parser_omp_clause_num_threads): Same.
12012         (-c_parser_omp_clause_ordered): Same.
12013         (c_parser_omp_clause_reduction): Pass location to
12014         c_parser_omp_variable_list.
12015         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
12016         (c_parser_omp_clause_untied): Same.
12017         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
12018         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
12019
12020         * c-tree.h (check_for_loop_decls, undeclared_variable,
12021         build_component_ref, build_array_ref, build_external_ref,
12022         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
12023         build_conditional_expr, build_compound_expr, c_cast_expr,
12024         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
12025         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
12026         argument.
12027         * c-semantics.c (build_stmt): Same.
12028         (build_case_label): Same.
12029         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
12030         (undeclared_variable): New argument.
12031         (make_label): Same.
12032         (lookup_label): Pass location on down.
12033         (define_label): Same.
12034         (finish_decl): Same.
12035         (build_compound_literal): Same.
12036         (finish_struct): Same.
12037         (finish_function): Do not set location here.
12038         (check_for_loop_decls): New argument.
12039         * tree.c (save_expr): Set location.
12040         (build_empty_stmt): New argument.
12041         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
12042         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
12043         * builtins.c (gimplify_va_arg_expr): Use locations.
12044         (expand_builtin_sync_operation): Same.
12045         * c-typeck.c (build_component_ref): New argument.
12046         (build_array_ref): Same.
12047         (build_external_ref): Same.
12048         (c_expr_sizeof_expr): Same.
12049         (c_expr_sizeof_type): Same.
12050         (parser_build_unary_op): Same.
12051         (build_conditional_expr): Same.
12052         (build_compound_expr): Pass location on down.
12053         (build_compound_expr): New argument.
12054         (build_c_cast): Same.
12055         (c_cast_expr): Same.
12056         (build_asm_expr): Same.
12057         (c_finish_return): Same.
12058         (c_process_expr_stmt): Pass location on down.
12059         (c_finish_stmt_expr): New argument.
12060         (push_clenaup): Same.
12061         (c_finish_omp_parallel): Same.
12062         (c_finish_omp_task): Same.
12063         * gimplify.c (gimplify_call_expr): Pass location on down.
12064         * c-omp.c (c_finish_omp_master): New argument.
12065         (c_finish_omp_critical): Same.
12066         (c_finish_omp_ordered): Same.
12067         (c_finish_omp_barrier): Same.
12068         (-c_finish_omp_taskwait): Same.
12069         (c_finish_omp_atomic): Same.
12070         (c_finish_omp_flush): Same.
12071         * tree-inline.c (copy_tree_body_r): Pass location on down.
12072         (inline_forbidden_p): Remove use of input_location.
12073         * c-gimplify.c (c_build_bind_expr): New argument.
12074         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
12075         (c_sizeof_or_alignof_type): New argument.
12076         (c_alignof_expr): Same.
12077         (build_va_arg): Same.
12078         (c_add_case_label): Same.
12079         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
12080         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
12081         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
12082         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
12083         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
12084         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
12085         New argument.
12086         * stub-objc.c (objc_build_selector_expr): Same.
12087         (objc_build_throw_stmt): Same.
12088         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
12089         (c_parser_initelt): Same.
12090         (c_parser_compound_statement): Same.
12091         (c_parser_compound_statement_nostart): Same.
12092         (c_parser_label): Same.
12093         (c_parser_statement_after_labels): Same.
12094         (c_parser_if_body): Same.
12095         (c_parser_else_body): Same.
12096         (c_parser_if_statement): Same.
12097         (c_parser_switch_statement): Same.
12098         (c_parser_while_statement): Same.
12099         (c_parser_do_statement): Same.
12100         (c_parser_for_statement): Same.
12101         (c_parser_asm_statement): Same.
12102         (c_parser_conditional_expression): Same.
12103         (c_parser_binary_expression): Same.
12104         (c_parser_cast_expression): Same.
12105         (c_parser_unary_expression): Same.
12106         (c_parser_sizeof_expression): Same.
12107         (c_parser_alignof_expression): Same.
12108         (c_parser_postfix_expression): Same.
12109         (c_parser_expression): Same.
12110         (c_parser_objc_receiver): Same.
12111         (c_parser_omp_variable_list): Same.
12112         (c_parser_omp_structured_block): Same.
12113         (c_parser_omp_atomic): New argument.
12114         (c_parser_omp_barrier): Same.
12115         (c_parser_omp_critical): Same.
12116         (c_parser_omp_flush): Pass location on down.
12117         (c_parser_omp_for_loop): New argument.
12118         (c_parser_omp_for): Same.
12119         (c_parser_omp_master): Same.
12120         (c_parser_omp_ordered): Same.
12121         (c_parser_omp_sections_scope): Same.
12122         (c_parser_omp_sections): Same.
12123         (c_parser_omp_parallel): Same.
12124         (c_parser_omp_single): Same.
12125         (c_parser_omp_task): Same.
12126         (c_parser_omp_taskwait): Pass location on down.
12127         (c_parser_omp_construct): Same.
12128         (c_parser_omp_threadprivate): Same.
12129         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
12130         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
12131         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
12132         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
12133         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
12134         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
12135         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
12136         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
12137         config/i386/i386.c, stmt.c:
12138         Add location argument to the following function definitions and/or
12139         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
12140         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
12141         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
12142         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
12143         do_case, c_finish_bc_stmt, build_compound_literal,
12144         build_function_call.
12145         * c-decl.c (build_compound_literal): Add location argument.
12146         Make all diagnostic calls use location.
12147         (start_struct): Same.
12148         (finish_struct): Same.
12149         (start_enum): Same.
12150         (build_enumerator): Same.
12151         (start_function): Same.
12152         (grokdeclarator): Make all diagnostic calls use location.
12153         (store_parm_decls_oldstyle): Same.
12154         * c-typeck.c (build_function_call): Add location argument.
12155         Make all diagnostic calls use location.
12156         (do_case): Same.
12157         (c_finish_bc_stmt): Same.
12158         * tree-nested.c (get_trampoline_type): Add argument.
12159         Pass location to build_decl.
12160         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
12161         * rtl.h (RTL_LOCATION): New.
12162         * c-common.c (c_add_case_label): Add location argument.
12163         Make all diagnostic calls use location.
12164         * c-common.h: Add location argument to make_fname_decl, do_case,
12165         c_add_case_label, build_function_call, resolve_overloaded_builtin.
12166         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
12167         Set it appropriately for every case.  Pass enum_loc to start_enum
12168         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
12169         parser_xref_tag.
12170         (c_parser_struct_or_union_specifier): Save location.  Use it for
12171         start_struct, finish_struct, and parser_xref_tag.
12172
12173 2009-06-12  Ian Lance Taylor  <iant@google.com>
12174
12175         * fold-const.c (fold_unary): Rename local variable and to and_expr.
12176
12177         * c-opts.c (c_common_handle_option): For -Wc++-compat set
12178         cpp_opts->warn_cxx_operator_names.
12179
12180 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12181
12182         PR tree-opt/38865
12183         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
12184         is returns NULL and OP is a VCE, look through the VCE.
12185
12186 2009-06-12  Ian Lance Taylor  <iant@google.com>
12187
12188         PR bootstrap/40430
12189         * collect2.c (main): Use CONST_CAST2 in code inside #if
12190         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
12191
12192 2009-06-12  Joey Ye  <joey.ye@intel.com>
12193
12194         PR middle-end/39146
12195         * cfgexpand.c (get_decl_align_unit): Update
12196         max_used_stack_slot_alignment with align instead of
12197         stack_alignment_needed.
12198
12199         * function.c (assign_stack_local_1): Update
12200         max_used_stack_slot_alignment with alignment_in_bits instead
12201         of stack_alignment_needed.
12202         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
12203         here.
12204
12205 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
12206
12207         * dwarf2out.c (last_var_location_insn): New variable.
12208         (dwarf2out_end_epilogue): Clear last_var_location_insn.
12209         (dwarf2out_var_location): Don't record anything after last real
12210         insn.  Only change labels if there were any real instructions
12211         in between last note and this one, or if changed sections.
12212
12213 2009-06-11  Richard Henderson  <rth@redhat.com>
12214
12215         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
12216         note when storing the frame pointer in a register.
12217         (FRP): Don't redefine to nothing for epilogue.
12218         (alpha_expand_epilogue): Mark register and sp restores.
12219         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
12220
12221         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
12222         when gen_lowpart is needed.
12223
12224 2009-06-11  Richard Henderson  <rth@redhat.com>
12225
12226         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
12227
12228         * dwarf2out.c (need_data_align_sf_opcode): New.
12229         (div_data_align): Move earlier.
12230         (def_cfa_1, reg_save): Use it.
12231
12232 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
12233
12234         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
12235         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
12236         (ix86_handle_option): Handle OPT_mcrc32.
12237         (ix86_target_string): Add -mcrc32.
12238         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
12239
12240         * config/i386/i386.h (TARGET_CRC32): New.
12241
12242         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
12243         (sse4_2_crc32di): Likewise.
12244
12245         * config/i386/i386.opt (mcrc32): New.
12246
12247         * doc/invoke.texi: Document -mcrc32.
12248
12249 2009-06-11  Richard Henderson  <rth@redhat.com>
12250
12251         * common.opt (gdwarf-): Accept a version number.
12252         * doc/invoke.texi (gdwarf-): Update docs.
12253         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
12254         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
12255         version level, and record it.
12256
12257         * dwarf2.h (DW_CIE_VERSION): Remove.
12258         * dwarf2out.c (DWARF_VERSION): Remove.
12259         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
12260         (output_call_frame_info): Use CIE version 3 for dwarf3,
12261         or if the return register column is out of range for version 1.
12262         (dwarf_stack_op_name): Add all dwarf3 values.
12263         (DEBUG_PUBTYPES_SECTION): New.
12264         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
12265         encoding change for dwarf3.
12266         (output_die) [dw_val_class_die_ref]: Likewise.
12267         (output_compilation_unit_header): Emit correct version for dwarf3.
12268         (output_line_info): Likewise.
12269         (output_pubnames): Update for DWARF_VERSION removal.
12270         (output_aranges): Likewise.
12271         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
12272         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
12273         (dwarf2out_finish): Likewise.
12274
12275 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
12276
12277         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
12278         in r148403.
12279
12280 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
12281
12282         PR c/39252
12283         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
12284         * builtins.c (expand_builtin_unreachable): New function.
12285         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
12286         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
12287         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
12288         successors.
12289         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
12290         searching for missing barriers.
12291
12292 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12293
12294         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
12295         when -fprofile-generate* was passed.
12296         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
12297
12298 2009-06-11  Anthony Green  <green@moxielogic.com>
12299
12300         * config/moxie/moxie.md: Define length attribute for all instructions.
12301         (rCC): Define.
12302         (*b<cond:code>): Support limited branch ranges for new PC-relative
12303         branch instructions.
12304         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
12305
12306 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
12307
12308         * config/i386/i386.c (min_insn_size): Use get_attr_length
12309         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
12310         For __asm return 0.
12311
12312         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
12313         instead of emit_insn_before.
12314
12315 2009-06-10  Ian Lance Taylor  <iant@google.com>
12316
12317         PR bootstrap/40408
12318         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
12319         GIMPLE_SWITCH.
12320
12321 2009-06-10  Revital Eres  <eres@il.ibm.com>
12322
12323         * passes.c (init_optimization_passes): Reschedule
12324         predictive-commoning pass before complete unroll pass.
12325
12326 2009-06-10  Martin Jambor  <mjambor@suse.cz>
12327
12328         * cgraph.c (cgraph_node_can_be_local_p): New function.
12329         (cgraph_make_node_local): New function.
12330         * cgraph.h (cgraph_node_can_be_local_p): Declare.
12331         (cgraph_make_node_local): Declare.
12332
12333 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
12334
12335         * tree.h (tree_base): Add packed_flag and user_align fields.
12336         Decrease size of spare field.
12337         (TYPE_USER_ALIGN): Use user_align from tree_base.
12338         (DECL_USER_ALIGN): Likewise.
12339         (TYPE_PACKED): Use packed_flag from tree_base.
12340         (DECL_PACKED): Likewise.
12341         (tree_type): Delete packed_flag and user_align fields.  Widen
12342         precision field.  Widen mode field and shuffle fields to align
12343         mode on an 8-bit boundary.
12344         (tree_decl_common): Delete decl_flag_1 and user_align fields.
12345         Renumber decl_flag_* fields.  Fix comments.  Widen
12346         decl_common_unused field.
12347         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
12348         (DECL_EXTERNAL): Likewise.
12349         (DECL_BIT_FIELD): Likewise.
12350         (DECL_NONADDRESSABLE_P): Likewise.
12351         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
12352         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
12353
12354 2009-06-10  Ian Lance Taylor  <iant@google.com>
12355
12356         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
12357         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
12358         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
12359         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
12360         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
12361         DEF_VEC_ALLOC_FUNC_P.
12362         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
12363         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
12364         DEF_VEC_ALLOC_FUNC_O.
12365         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
12366         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
12367         DEF_VEC_ALLOC_FUNC_I.
12368         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
12369         (vec_stack_p_reserve_exact_1): Declare.
12370         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
12371         (vec_stack_free): Declare.
12372         (VEC_stack_alloc): Define.
12373         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
12374         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
12375         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
12376         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
12377         for void_p.
12378         (stack_vecs): New static variable.
12379         (vec_stack_p_reserve_exact_1): New function.
12380         (vec_stack_o_reserve_1): New static function.
12381         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
12382         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
12383         (vec_stack_free): New function.
12384         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
12385         (VEC_df_ref_stack_alloc): Define.
12386         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
12387         DEF_VEC_ALLOC_P_STACK.
12388         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
12389         (struct df_collection_rec): Change _vec fields to VEC.  Remove
12390         _use fields.
12391         (df_free_collection_rec): Adjust for new fields.
12392         (df_insn_rescan): Use new df_collection_rec fields.
12393         (df_notes_rescan, df_canonize_collection_rec): Likewise.
12394         (df_ref_create_structure, df_ref_record): Likewise.
12395         (df_get_conditional_uses, df_get_call_refs): Likewise.
12396         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
12397         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
12398         (df_record_exit_block_uses, df_bb_verify): Likewise.
12399         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
12400         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
12401         Remove count parameter.  Change return type to void.  Change all
12402         callers.
12403         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
12404         Remove count parameter.  Change return type to void.  Change all
12405         callers.
12406         (df_install_refs): Change old_vec parameter to VEC.  Remove count
12407         parameter.  Change all callers.
12408         (df_install_mws): Change old_vec parameter to VEC.  Remove count
12409         parameter.  Change all callers.
12410         (df_refs_verify): Change new_rec parameter to VEC.  Change call
12411         callers.
12412         (df_mws_verify): Likewise.
12413
12414 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
12415
12416         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
12417
12418 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
12419
12420         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
12421
12422 2009-06-10  Anthony Green  <green@moxielogic.com>
12423
12424         * config/moxie/crti.asm: New file.
12425         * config/moxie/crtn.asm: New file.
12426         * config/moxie/moxie.c: New file.
12427         * config/moxie/moxie.h: New file.
12428         * config/moxie/sfp-machine.h: New file.
12429         * config/moxie/moxie-protos.h: New file.
12430         * config/moxie/t-moxie: Created.
12431         * config/moxie/t-moxie-softfp: Created.
12432         * config/moxie/moxie.md: Created.
12433         * config/moxie/constraints.md: Created.
12434         * config.gcc: Add moxie support.
12435         * doc/md.texi (Machine Constraints): Add moxie constraints.
12436         * doc/contrib.texi (Contributors): Mention moxie port.
12437         * doc/install.texi (Specific): Mention the moxie port.
12438
12439 2009-06-09  Ian Lance Taylor  <iant@google.com>
12440
12441         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
12442         compiling with C++.
12443         * optabs.c (optab_table): Only use designated initializers if
12444         HAVE_DESIGNATED_INITIALIZERS is defined.
12445         (convert_optab_table): Likewise.
12446         (init_optabs): Always call init_insn_codes if
12447         HAVE_DESIGNATED_INITIALIZERS is not defined.
12448
12449 2009-06-09  Ian Lance Taylor  <iant@google.com>
12450
12451         * targhooks.c (default_builtin_vectorized_function): Change fn
12452         parameter to unsigned int.
12453         (default_builtin_vectorized_conversion): Change code parameter to
12454         unsigned int.
12455         (default_builtin_reciprocal): Change fn parameter to unsigned int.
12456         * targhooks.h: Update declarations.
12457         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
12458         parameter to unsigned int.
12459
12460         * c-typeck.c (comptypes_check_enum_int): New static function.
12461         (comptypes_internal): Add enum_and_int_p parameter.  Change all
12462         callers.
12463         (comp_target_types): Add location parameter.  Change all callers.
12464         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
12465         Change all callers.
12466         (function_types_compatible_p, type_lists_compatible_p): Likewise.
12467         (build_conditional_expr): Add colon_loc parameter.  Change all
12468         callers.
12469         (convert_for_assignment): Add location parameter.  Change all callers.
12470         * c-parser.c (c_parser_conditional_expression): Pass location of
12471         colon to build_conditional_expr.
12472         * c-tree.h (build_conditional_expr): Update declaration.
12473
12474 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
12475
12476         * graphite.c: Revert previous patch.
12477
12478 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
12479
12480         PR bootstrap/40103
12481         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
12482
12483 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
12484
12485         * tree-ssa-loop-prefetch.c
12486         (loop_prefetch_arrays): Fixed a portability problem in printf format
12487         string.
12488
12489 2009-06-09  Martin Jambor  <mjambor@suse.cz>
12490
12491         PR tree-optimization/40351
12492         * tree-sra.c (propagate_subacesses_accross_link): Check that a
12493         refrence to a potential artifical subaccess can be constructed.
12494
12495 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
12496
12497         * config/sh/sh-protos.h (sh_optimization_options): Declare.
12498         (sh_override_options): Likewise.
12499         * config/sh/sh.c: Include params.h.
12500         (sh_optimization_options): New.
12501         (sh_override_options): Likewise.
12502         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
12503         (OVERRIDE_OPTIONS): Use sh_override_options.
12504
12505 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
12506
12507         * dwarf2out.c (emit_cfa_remember): New variable.
12508         (add_fde_cfi): If emit_cfa_remember, recurse to add
12509         DW_CFA_remember_state first.
12510         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
12511         instead just set emit_cfa_remember.
12512
12513 2009-06-08  Jan Hubicka  <jh@suse.cz>
12514
12515         PR debug/40126
12516         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
12517
12518 2009-06-08  Jan Hubicka  <jh@suse.cz>
12519
12520         PR middle-end/39834
12521         * cgraphunit.c (save_inline_function_body): Do not copy transform
12522         hooks for saved inline bodies.
12523         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
12524         for given function.
12525
12526 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
12527
12528         * jump.c (returnjump_p): Handle delayed branches.  Add missing
12529         function comment.
12530
12531 2009-06-08  Jan Hubicka  <jh@suse.cz>
12532
12533         PR middle-end/40102
12534         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
12535         original node might've been modified.
12536         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
12537
12538 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
12539
12540         * tree-object-size.c (addr_object_size): Add OSI argument.
12541         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
12542         (compute_builtin_object_size, expr_object_size): Adjust callers.
12543         (plus_stmt_object_size): Call addr_object_size instead of
12544         compute_builtin_object_size.
12545
12546 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
12547             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
12548
12549         * tree-ssa-loop-prefetch.c
12550         (gather_memory_references): Introduced a counter for the number of
12551         memory references.
12552         (anything_to_prefetch_p): Introduced a counter for the number of
12553         prefetches.
12554         (is_loop_prefetching_profitable): New function with a cost model
12555         for prefetching.
12556         (loop_prefetch_arrays): Use the new cost model to determine if
12557         prefetching is profitable.
12558         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
12559         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
12560         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
12561         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
12562         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
12563         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
12564
12565 2009-06-08  Michael Matz  <matz@suse.de>
12566
12567         PR debug/40012
12568         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
12569         partitions use the same.
12570         (expand_one_var): Deal with DECL_RTL sometimes begin set also
12571         for basevars of SSA_NAMEs.
12572         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
12573         to not expand them twice.
12574         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
12575         multiple places.
12576
12577 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
12578
12579         * common.opt (fcompare-debug=, fcompare-debug-second): New.
12580         (fdump-final-insns=, gtoggle): New.
12581         * doc/invoke.texi: Document them.
12582         * final.c (rest_of_clean_state): Dump final insn stream.
12583         * gcc.c (invoke_as): Hook in -fcompare-debug.
12584         (static_spec_functions): Add compare-debug-dump-opt,
12585         compare-debug-self-opt and compare-debug-auxbase-opt.
12586         (compare_debug, compare_debug_second, compare_debug_opt): New.
12587         (switches_debug_check, n_switches_debug_check): New.
12588         (debug_auxbase_opt, debug_check_temp_file): New.
12589         (process_command): Handle -fno-compare-debug, -fcompare-debug and
12590         -fcompare-debug=*.
12591         (do_self_spec): Handle arguments after switches.
12592         (do_spec_1): Add .gk extension to temp file basenames for compare.
12593         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
12594         (cc1_options): Use it instead of normal auxbase computation for
12595         the second compare-debug compilation.
12596         (compare_files): New.
12597         (main): Set up and implement compare debug mode.
12598         (compare_debug_dump_opt_spec_function): New.
12599         (compare_debug_self_opt_spec_function): New.
12600         (compare_debug_auxbase_opt_spec_function): New.
12601         * toplev.c (process_options): Handle flag_gtoggle,
12602         flag_dump_final_insns.
12603         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
12604         during -fcompare-debug-second compilation.
12605
12606 2009-06-07  Ian Lance Taylor  <iant@google.com>
12607
12608         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
12609         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
12610
12611         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
12612         with no default node.  Change warning with %H to warning_at.
12613         Don't clear warn_switch around case checking.
12614         * doc/invoke.texi (Warning Options): Clarify distinction between
12615         -Wswitch and -Wswitch-enum.
12616
12617 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12618
12619         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
12620
12621 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12622
12623         * gbl-ctors.h: Add header guard.
12624
12625 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12626
12627         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
12628         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
12629         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
12630         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
12631         prototypes for removed functions.
12632         (expressions_equal_p): Move to ...
12633         * tree-ssa-sccvn.h: ... here and ...
12634         * matrix-reorg.c: ... adjust includes.
12635
12636 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12637
12638         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
12639
12640 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12641
12642         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
12643         (finish_function): Remove erroneous whitespace.
12644
12645 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12646
12647         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
12648         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
12649
12650 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12651
12652         * errors.c (internal_error): Commentary typo fix.
12653         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
12654         * tree-ssa-pre.c: Ditto.
12655
12656 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12657
12658         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
12659         them is supposed to hold actual statements.
12660
12661 2009-06-06  Ian Lance Taylor  <iant@google.com>
12662
12663         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
12664         empty statements can now have attributes.
12665
12666 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
12667
12668         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
12669         * config/mips/mips.md: Ditto.
12670
12671 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
12672
12673         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
12674         _RELOCATABLE.
12675         (__eabi_uconvert): Likewise.
12676
12677 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
12678
12679         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
12680         CFI_* definitions with IN_GCC.
12681
12682 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
12683
12684         * xcoffout.h (xcoffout_source_line): Update prototype.
12685
12686 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12687
12688         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
12689         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
12690
12691 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
12692
12693         PR middle-end/40340
12694         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
12695         inlined_function_outer_scope_p blocks for artificial inlines
12696         even at -g0/-g1.
12697         * tree.c (tree_nonartificial_location): Rewrite using
12698         block_nonartificial_location.
12699
12700 2009-06-05  Revital Eres  <eres@il.ibm.com>
12701             Leehod Baruch  <leehod@il.ibm.com>
12702
12703         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
12704         (expand_expr_real_1): Remove comment.
12705         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12706         Vectorize misaligned access when the target supports it.
12707         (vect_supportable_dr_alignment): Check for unaligned access support.
12708         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
12709         and remove asset.
12710
12711 2009-06-05  Julian Brown  <julian@codesourcery.com>
12712
12713         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
12714         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
12715
12716 2009-06-05  Richard Guenther  <rguenther@suse.de>
12717
12718         PR bootstrap/40350
12719         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
12720         as possibly unused.
12721
12722 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
12723
12724         * config/s390/s390.c (global_not_special_regno_p): New static inline.
12725         (save_gprs): Don't tell unwinder when a global register is saved.
12726         (s390_emit_epilogue): Emit needed epilogue unwind info.
12727
12728 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
12729
12730         * dwarf2out.c (deferred_asm_name): New.
12731         (add_name_and_src_coords_attributes): Defer creation of
12732         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
12733         computed yet.
12734         (move_linkage_attr): New.
12735         (dwarf2out_finish): Revisit deferrals and emit attributes at the
12736         right place.
12737
12738 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
12739
12740         * tree-nested.c (finalize_nesting_tree_1): Declare the
12741         frame_decl in the binding tree.
12742
12743 2009-06-04  Cary Coutant  <ccoutant@google.com>
12744
12745         * basic-block.h (struct basic_block_def): Add discriminator field.
12746         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
12747         callers.
12748         * debug.c (do_nothing_debug_hooks): Add additional entry.
12749         (debug_nothing_int_charstar_int): New function.
12750         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
12751         (debug_nothing_int_charstar_int): New declaration.
12752         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
12753         discriminator value in .loc directive.
12754         * final.c (last_discriminator): New variable.
12755         (discriminator): New variable.
12756         (final_start_function): Initialize above variables, pass current
12757         discriminator to debug hook.
12758         (notice_source_line): Check for discriminator change.
12759         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
12760         * sdbout.c (sdbout_source_line): New parameter.
12761         * tree-cfg.c (struct locus_discrim_map): New structure type.
12762         (discriminator_per_locus): New hash table.
12763         (build_gimple_cfg): Allocate and free discriminator hash table.
12764         (make_edges): Call assign_discriminator.
12765         (locus_map_hash): New function.
12766         (locus_map_eq): New function.
12767         (next_discriminator_for_locus): New function.
12768         (same_line_p): New function.
12769         (assign_discriminator): New function.
12770         (make_cond_expr_edges): Call assign_discriminator.
12771         (make_gimple_switch_edges): Likewise.
12772         (first_non_label_stmt): New function.
12773         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
12774         all callers.
12775         * xcoffout.c (xcoffout_source_line): Add new parameter.
12776
12777         * configure.ac (gcc_cv_as_discriminator): New configury check for
12778         gas support for discriminator.
12779         * configure: Regenerate.
12780         * config.in: Regenerate.
12781
12782 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12783
12784         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
12785         val after checking for integers.
12786
12787 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
12788
12789         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
12790         X64_REGPARM_MAX.
12791         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
12792         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
12793         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
12794         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
12795         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
12796         X64_SSE_REGPARM_MAX.
12797         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
12798         X64_SSE_REGPARM_MAX.
12799
12800 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
12801
12802         * gcc.c (report_times_to_file): New.
12803         (execute): Implement it.
12804         (process_command): Support -time=.
12805         * doc/invoke.texi: Document it.
12806
12807 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
12808
12809         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
12810         that have value exprs.
12811
12812 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
12813
12814         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
12815         declarations for constants until...
12816         (dw2_output_indirect_constant_1): ... this point.
12817
12818 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
12819
12820         PR target/10242
12821         * arm.md (arm_addsi3): Don't try to split an add with an
12822         eliminable register until after reload has completed.
12823
12824 2009-06-03  Ian Lance Taylor  <iant@google.com>
12825
12826         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
12827         * genattrtab.c (write_length_unit_log): Likewise.
12828         * genchecksum.c (dosum): Likewise.
12829         * gengtype.c (write_rtx_next): Likewise.
12830         (finish_root_table, write_roots): Likewise.
12831         * gimple.c (gimple_ops_offset_): Likewise.
12832         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
12833         * config/arc/arc.c (arc_attribute_table): Likewise.
12834         * config/arm/arm.c (arm_attribute_table): Likewise.
12835         * config/avr/avr.c (avr_attribute_table): Likewise.
12836         * config/crx/crx.c (crx_attribute_table): Likewise.
12837         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
12838         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
12839         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
12840         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
12841         * config/sh/sh.c (sh_attribute_table): Likewise.
12842         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
12843         * config/spu/spu.c (spu_attribute_table): Likewise.
12844         * config/v850/v850.c (v850_attribute_table): Likewise.
12845
12846         * config/alpha/alpha.c (vms_attribute_table): Make static.
12847         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
12848         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
12849         * config/mips/mips.c (mips_attribute_table): Likewise.
12850
12851         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
12852         $(SYSTEM_H).
12853         (cc1-checksum.o): Likewise.
12854
12855 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
12856
12857         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
12858
12859 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
12860
12861         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
12862         insn if it is changing sp.  Use gen_add3_insn instead of
12863         conditionally gen_addsi3 and gen_adddi3.
12864         (offset_below_red_zone_p): New static inline function.
12865         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
12866         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
12867         * config/rs6000/ppc-asm.h: Include auto-host.h.
12868         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
12869         CFI_RESTORE): Define.
12870         * config/rs6000/crtresxgpr.asm: Add unwind info.
12871         * config/rs6000/crtresxfpr.asm: Likewise.
12872         * config/rs6000/crtresgpr.asm: Likewise.
12873         * config/rs6000/crtresfpr.asm: Likewise.
12874         * config/rs6000/crtsavgpr.asm: Likewise.
12875         * config/rs6000/crtsavfpr.asm: Likewise.
12876
12877         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
12878         argument of DWARF2_FRAME_REG_OUT macros.
12879
12880 2009-06-03  Julian Brown  <julian@codesourcery.com>
12881
12882         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
12883         words or less (including TImode) in core registers.
12884
12885 2009-06-03  Richard Guenther  <rguenther@suse.de>
12886
12887         PR middle-end/40328
12888         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
12889
12890 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
12891
12892         * statistics.c (statistics_counter_event): Do not record event
12893         in pass dump if its number == -1.
12894         (curr_statistics_hash): Add assert that we never get passes
12895         with static number == -1.
12896
12897 2009-06-03  Richard Guenther  <rguenther@suse.de>
12898             Andrey Belevantsev  <abel@ispras.ru>
12899
12900         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
12901         non-BLKmode arrays addressable.
12902
12903 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
12904
12905         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
12906         * config/m68k/m68k.h: ... here.
12907
12908 2009-06-03  Martin Jambor  <mjambor@suse.cz>
12909
12910         PR tree-optimization/40323
12911         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
12912         assignment.
12913
12914 2009-06-03  Richard Guenther  <rguenther@suse.de>
12915
12916         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
12917         consistently.
12918
12919 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
12920
12921         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
12922         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
12923         JUMP_TABLE_DATA_P where applicable.
12924         * config/sh/sh.c: Ditto.
12925         * config/sh/sh.h: Ditto.
12926         * config/sh/sh.md: Ditto.
12927         * config/sh/symbian.c: Ditto.
12928
12929 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
12930
12931         * config/i386/driver-i386.c (describe_cache): Optimize
12932         concatenation of strings.  Use snprintf instead of sprintf.
12933         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
12934         target when not compiling with GCC.
12935
12936 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
12937
12938         * config/sh/sh.c: Revert last change.
12939         (sh_expand_epilogue): Emit a blockage insn before the frame
12940         pointer adjustment unconditionally.
12941
12942 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
12943
12944         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
12945         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
12946         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
12947         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
12948         to COLLECT_GCC_OPTIONS.
12949
12950 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
12951
12952         * collect2.c (target_system_root): New variable.
12953         (main): Handle --sysroot=.
12954         (ignore_library): Strip the sysroot from the library path.
12955
12956 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
12957
12958         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
12959         (collect2.o): Depend on collect2-aix.h.
12960         (collect2-aix.o): New rule.
12961         * collect2-aix.h: New file.
12962         * collect2-aix.c: Likewise.
12963         * collect2.c: Include collect2-aix.h.  Don't undefine
12964         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
12965         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
12966         Use TARGET_AIX_VERSION instead of _AIX51.
12967         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
12968         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
12969         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
12970         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
12971         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
12972
12973 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
12974
12975         * collect2.c (ignore_library): Avoid premature post-increment
12976         and null deference.
12977
12978 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
12979
12980         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
12981         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
12982         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
12983         CROSS_DIRECTORY_STRUCTURE too.
12984         (LINK_LIBG_SPEC): Likewise.
12985         (LIB_SPEC): Add %R to sysroot paths.
12986         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
12987         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
12988         * config/rs6000/aix51.h: As for aix43.h.
12989         * config/rs6000/aix52.h: Likewise.
12990         * config/rs6000/aix53.h: Likewise.
12991         * config/rs6000/aix61.h: Likewise.
12992         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
12993         to the beginning of sysroot paths.
12994
12995 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
12996
12997         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
12998         INSN_LISTs that are out of the REG_NOTE range.
12999
13000 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13001
13002         * loop-unroll.c (struct iv_to_split): Add pointer to next.
13003         (struct var_to_expand): Likewise.
13004         (struct opt_info): Add head and tail for linked lists of the above.
13005         (analyze_insn_to_expand_var): Initialize next.
13006         (analyze_iv_to_split_insn): Likewise.
13007         (analyze_insns_in_loop): Create linked lists.
13008         (allocate_basic_variable): Simplify for use without hash table.
13009         (insert_var_expansion_initialization): Likewise, make it type-safer.
13010         (combine_var_copies_in_loop_exit): Likewise.
13011         (apply_opt_in_copies): Walk lists rather than hash tables.
13012         (release_var_copies): Simplified and inlined by hand into...
13013         (free_opt_info): ... this function.
13014
13015 2009-06-02  Richard Guenther  <rguenther@suse.de>
13016
13017         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
13018         for field decls.
13019
13020 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13021
13022         * cfgexpand.c (gimple_expand_cfg): Discard the source location
13023         only for builtins that are not overridden.
13024
13025 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13026
13027         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
13028         label string.
13029
13030 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13031
13032         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
13033
13034 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13035
13036         * combine.c (move_deaths): Compare LUIDs within the same BB only.
13037
13038 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13039
13040         * common.opt (fdump-unnumbered-links): New.
13041         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
13042         * print-rtl.c (flag_dump_unnumbered_links): New.
13043         (print_rtx): Test it.
13044
13045 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
13046
13047         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
13048         push/pop multiple to 8-byte alignment.
13049
13050 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
13051
13052         * config/i386/i386.c (queued_cfa_restores): New static variable.
13053         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
13054         functions.
13055         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
13056         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
13057         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
13058         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
13059         note unconditionally.
13060         (ix86_emit_restore_regs_using_mov): Likewise.
13061         (ix86_emit_restore_sse_regs_using_mov): Likewise.
13062         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
13063         it through to ix86_emit_restore_reg_using_pop.
13064         (ix86_emit_leave): Add RED_OFFSET argument.  Call
13065         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
13066         instead of adding REG_CFA_OFFSET note unconditionally.
13067         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
13068         the above functions.  Call ix86_add_queued_cfa_restore_notes when
13069         needed.
13070
13071         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
13072         force output of the label even for dwarf2out_do_cfi_asm.
13073         (add_fde_cfi): If -g2 and above and cfi might change CFA,
13074         force creation of CFI label and chain DW_CFA_set_loc jumping to it
13075         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
13076         caller.
13077         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
13078         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
13079         dwarf2out_cfi_label callers.
13080         * tree.h (dwarf2out_cfi_label): Adjust prototype.
13081         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
13082         Adjust dwarf2out_cfi_label callers.
13083         * config/vax/vax.c (vax_output_function_prologue): Likewise.
13084
13085         * config/i386/i386.h (struct machine_cfa_state,
13086         struct machine_function): Guard with ifndef USED_FOR_TARGET
13087         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
13088
13089         PR other/40024
13090         * emutls.c (__emutls_get_address): Change arr->size to mean number
13091         of allocated arr->data entries instead of # of slots + 1.
13092
13093         PR middle-end/40316
13094         * recog.c (peep2_reinit_state): New function.
13095         (peephole2_init_state): Use it at the end of a basic block and also
13096         when seeing a RTX_FRAME_RELATED_P insn.
13097
13098 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
13099
13100         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
13101         fixuns_truncrfdi2): New.
13102         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
13103         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
13104         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
13105         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
13106         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
13107         *recip_approx): Remove.
13108         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
13109         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
13110         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
13111         move to div.md.
13112         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
13113         setf_exp_rf): New.
13114
13115 2009-06-01  Ian Lance Taylor  <iant@google.com>
13116
13117         * attribs.c (register_attribute): Use CONST_CAST.
13118         * collect2.c (main): Use CONST_CAST2.
13119         (scan_prog_file): Likewise.
13120         * gcc.c (process_command, main): Likewise.
13121         * toplev.c (toplev_main): Likewise.
13122
13123         * c-typeck.c (handle_warn_cast_qual): New static function,
13124         partially broken out of build_c_cast.
13125         (build_c_cast): Call handle_warn_cast_qual.
13126         * doc/invoke.texi (Warning Options): Document new effect of
13127         -Wcast-qual.
13128
13129 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
13130
13131         * diagnostic.c (diagnostic_build_prefix): Always print columns.
13132         (diagnostic_report_current_module): Print columns.
13133         * common.opt (flag_show_column): Enable by default.
13134
13135 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
13136
13137         * alias.c (find_base_term): Check for NULL term before returning.
13138
13139 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
13140
13141         Revert due to PR40320:
13142         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
13143         * calls.c (emit_library_call_value_1): Don't force_operand for move
13144         and push insns.
13145
13146 2009-06-01  Olivier Hainque  <hainque@adacore.com>
13147             Eric Botcazou  <ebotcazou@adacore.com>
13148
13149         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
13150         to be processed as a bitfield for constructor output purposes.
13151         * output.h (initializer_constant_valid_for_bitfield_p): Declare
13152         new function.
13153         * varasm.c (oc_local_state): New type, output_constructor
13154         local state to support communication with helpers.
13155         (oc_outer_state): New type, output_constructor outer state of
13156         relevance in recursive calls.
13157         (output_constructor_array_range): New output_constructor helper,
13158         extracted code for an array range element.
13159         (output_constructor_regular_field): New output_constructor helper,
13160         extracted code for an element that is not a bitfield.
13161         (output_constructor_bitfield): New output_constructor helper,
13162         extracted code for a bitfield element.  Accept an OUTER state
13163         argument for recursive processing.  Recurse on record or array
13164         CONSTRUCTOR values, possibly past noop conversions.
13165         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
13166         VALUE is a valid constant-valued expression for use in a static
13167         bit-field initializer.
13168         (output_constructor): Rework to use helpers.  Accept and honor an
13169         OUTER state argument for recursive calls.  Return total size.  Be
13170         prepared for nested constructors initializing bitfields.
13171         (output_constant): Feed OUTER in calls to output_constructor.
13172
13173 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
13174
13175         * calls.c (emit_library_call_value_1): Don't force_operand for move
13176         and push insns.
13177
13178 2009-06-01  Nick Clifton  <nickc@redhat.com>
13179
13180         * doc/invoke.texi (IA-64 Options): Fix typo.
13181
13182 2009-06-01  Ira Rosen  <irar@il.ibm.com>
13183
13184         PR tree-optimization/39129
13185         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
13186         printed message.
13187         (vect_do_peeling_for_loop_bound): Use
13188         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
13189         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
13190         (vect_loop_versioning): Likewise.
13191         (vect_create_cond_for_alias_checks): Fix indentation.
13192         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
13193         macros.
13194         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
13195         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
13196         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
13197         "control flow in loop".
13198         (vect_estimate_min_profitable_iters): Use
13199         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
13200         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
13201         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
13202         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
13203         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
13204         statement belongs to a group of strided accesses with the exact code
13205         check.
13206         (vectorizable_load): Likewise.
13207         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
13208         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
13209
13210 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
13211
13212         * config/freebsd-stdint.h: New file.
13213         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
13214         Add freebsd-stdint.h to tm_file.
13215
13216 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
13217
13218         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
13219         (thumb2_extendhidi2): Likewise.
13220
13221 2009-05-31  Ian Lance Taylor  <iant@google.com>
13222
13223         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
13224
13225 2009-05-31  Ian Lance Taylor  <iant@google.com>
13226
13227         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
13228         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
13229         (ipa-reference.o): Depend upon gt-ipa-reference.h.
13230
13231 2009-05-31  Jason Merrill  <jason@redhat.com>
13232
13233         * tree-pretty-print.c (print_call_name): Take the callee, not the
13234         call itself.  Make non-static.  Use dump_function_name for functions.
13235         (dump_generic_node): Adjust.
13236         * diagnostic.h: Declare print_call_name.
13237         * gimple-pretty-print.c (dump_gimple_call): Use it.
13238
13239 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
13240
13241         * config/sh/sh.md (ashldi3_std): New define_expand.
13242         (ashldi3): Use it.
13243
13244 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
13245
13246         PR target/40313
13247         * config/sh/sh.c: Include debug.h.
13248         (sh_expand_epilogue): Emit a blockage insn before the frame
13249         pointer adjustment also when dwarf2out_do_frame returns true.
13250
13251 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
13252
13253         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
13254         (thumb2_extendqidi2): New pattern.
13255
13256 2009-05-31  Ira Rosen  <irar@il.ibm.com>
13257
13258         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
13259         mark phis for renaming.
13260         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
13261         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
13262         Call mark_sym_for_renaming.
13263         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
13264         * tree-vect-loop.c (vect_transform_loop): Remove
13265         vect_memsyms_to_rename initialization and a call to
13266         mark_set_for_renaming.
13267
13268 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
13269
13270         PR middle-end/40304
13271         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
13272         frame related even if !set_cfa && style < 0.
13273
13274 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
13275
13276         * config/i386/mingw-tls.c: New file.
13277         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
13278         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
13279         defining _WIN32 but not __CYGWIN__.
13280
13281 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13282
13283         * configure.ac: Add MPC support.
13284
13285         * config.in, configure: Regenerate.
13286
13287 2009-05-29  Richard Henderson  <rth@redhat.com>
13288
13289         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
13290         NOTE_INSN_BASIC_BLOCK.
13291         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
13292         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
13293         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
13294         to be deleted.
13295         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
13296         add in_use field.
13297         (add_cfi): Disable check redefining cfa away from drap.
13298         (lookup_cfa_1): Add remember argument; handle remember/restore.
13299         (lookup_cfa): Pass remember argument.
13300         (cfa_remember): New.
13301         (compute_barrier_args_size_1): Remove sibcall check.
13302         (dwarf2out_frame_debug_def_cfa): New.
13303         (dwarf2out_frame_debug_adjust_cfa): New.
13304         (dwarf2out_frame_debug_cfa_offset): New.
13305         (dwarf2out_frame_debug_cfa_register): New.
13306         (dwarf2out_frame_debug_cfa_restore): New.
13307         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
13308         (dwarf2out_begin_epilogue): New.
13309         (dwarf2out_frame_debug_restore_state): New.
13310         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
13311         DW_CFA_restore_state.
13312         (output_cfi_directive): Likewise.
13313         (convert_cfa_to_fb_loc_list): Likewise.
13314         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
13315         * dwarf2out.h: Update.
13316         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
13317         (copy_insn_1): Early out for null.
13318         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
13319         and dwarf2out_frame_debug_restore_state.
13320         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
13321         (prologue_insn_hash, epilogue_insn_hash): New.
13322         (free_after_compilation): Adjust freeing accordingly.
13323         (record_insns): Create hash table if needed; push insns into
13324         hash instead of array.
13325         (maybe_copy_epilogue_insn): New.
13326         (contains): Search hash table instead of array.
13327         (sibcall_epilogue_contains): Remove.
13328         (thread_prologue_and_epilogue_insns): Split eh_return insns
13329         and mark them as epilogues.
13330         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
13331         scanning in terms of basic blocks.
13332         * insn-notes.def (CFA_RESTORE_STATE): New.
13333         * jump.c (returnjump_p_1): Accept EH_RETURN.
13334         (eh_returnjump_p_1, eh_returnjump_p): New.
13335         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
13336         CFA_REGISTER, CFA_RESTORE): New.
13337         * rtl.def (EH_RETURN): New.
13338         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
13339
13340         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
13341         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
13342
13343         * config/i386/i386.c (gen_push): Update cfa state.
13344         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
13345         add a CFA_ADJUST_CFA note.
13346         (ix86_dwarf_handle_frame_unspec): Remove.
13347         (ix86_expand_prologue): Update cfa state.
13348         (ix86_emit_restore_reg_using_pop): New.
13349         (ix86_emit_restore_regs_using_pop): New.
13350         (ix86_emit_leave): New.
13351         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
13352         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
13353         * config/i386/i386.h (struct machine_cfa_state): New.
13354         (ix86_cfa_state): New.
13355         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
13356         (eh_return_internal): Merge from eh_return_<mode>,
13357         use eh_return rtx, split w/ epilogue.
13358
13359 2009-05-29  Ian Lance Taylor  <iant@google.com>
13360
13361         * builtins.c (validate_gimple_arglist): Don't use va_arg with
13362         enum type.
13363         * calls.c (emit_library_call_value_1): Likewise.
13364
13365         * c-typeck.c (c_build_va_arg): New function.
13366         * c-tree.h (c_build_va_arg): Declare.
13367         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
13368         instead of build_va_arg.
13369
13370 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
13371
13372         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
13373         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
13374         (ptr_difference_cost): Use affine combinations to compute it.
13375         (difference_cost): Likewise.
13376         (get_computation_cost_at): Compute more accurate cost for addresses
13377         if the ratio is a multiplier allowed in addresses.
13378         For non-addresses, consider that an additional offset or symbol is
13379         added only once.
13380
13381 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
13382
13383         * config/i386/i386.c (ix86_decompose_address): Avoid useless
13384         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
13385
13386         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
13387         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
13388         (prefix_rex): For UNIT_MMX don't imply the prefix by default
13389         if MODE_DI.
13390         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
13391         to 1 for TYPE_SSE{IADD1,CVT1}.
13392         (prefix_vex_imm8): Removed.
13393         (length_vex): Only pass 1 as second argument to
13394         ix86_attr_length_vex_default if prefix_extra is 0.
13395         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
13396         (length): For prefix vex computation use length_immediate
13397         attribute instead of prefix_vex_imm8.
13398         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
13399         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
13400         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
13401         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
13402         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
13403         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
13404         a space in between the operands.
13405         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
13406         if one operand is 0xff and the other one si, di, bp or sp.
13407         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
13408         other one si, di, bp or sp.
13409         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
13410         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
13411         type and mode attributes.
13412         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
13413         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
13414         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
13415         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
13416         prefix_data16 attribute iff MODE_DF.
13417         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
13418         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
13419         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
13420         constm128_operand in length_immediate computation.
13421         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
13422         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
13423         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
13424         length_immediate attribute to 1.
13425         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
13426         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
13427         for certain alternatives.
13428         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
13429         prefix_data16 attribute if MODE_V1DF.
13430         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
13431         length_immediate to 1.
13432         (set_got_rex64, set_rip_rex64): Remove length attribute, set
13433         length_address to 4, set mode attribute to MODE_DI.
13434         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
13435         (fxam<mode>2_i387): Set length attribute to 4.
13436         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
13437         *prefetch_3dnow_rex): Override length_address attribute.
13438         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
13439         attributes.
13440         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
13441         (constm128_operand): Removed.
13442         * config/i386/i386.c (memory_address_length): For
13443         disp && !index && !base in 64-bit mode account for SIB byte if
13444         print_operand_address can't optimize disp32 into disp32(%rip)
13445         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
13446         for fs: or gs: segment.
13447         (ix86_attr_length_immediate_default): When checking if shortform
13448         is possible, truncate immediate to the length of the non-shortened
13449         immediate.
13450         (ix86_attr_length_address_default): Ignore MEM_P operands
13451         with X constraint.
13452         (ix86_attr_length_vex_default): Only check for DImode on
13453         GENERAL_REG_P operands.
13454         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
13455         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
13456         (sse_cvttps2pi): Clear prefix_rep attribute.
13457         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
13458         attribute.
13459         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
13460         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
13461         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
13462         iff operand 2 is const_int_operand.
13463         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
13464         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
13465         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
13466         instead of vex.
13467         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
13468         prefix_data16.
13469         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
13470         prefix_data16 attribute for movlpd and movhpd instructions.
13471         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
13472         length_immediate for shufpd instruction.
13473         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
13474         (avx_cmpp<avxmodesuffixf2c><mode>3,
13475         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
13476         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
13477         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
13478         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
13479         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
13480         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
13481         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
13482         prefix_data16 attribute for the first alternative to 1.
13483         (*avx_loadlps): Override length_immediate for the first alternative.
13484         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
13485         attributes for second alternative.
13486         (*vec_concatv2sf_sse4_1): Override length_immediate and
13487         prefix_data16 attributes for second alternative.
13488         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
13489         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
13490         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
13491         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
13492         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
13493         prefix_data16 and length_immediate to 1.
13494         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
13495         to 1.
13496         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
13497         prefix_extra attribute for variants that don't have 0f prefix alone.
13498         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
13499         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
13500         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
13501         *sse4_1_pextrd): Set length_immediate to 1.
13502         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
13503         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
13504         to 1.
13505         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
13506         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
13507         length_immediate to 1 for second alternative.
13508         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
13509         prefix_extra and length_immediate attributes for the first
13510         alternative.
13511         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
13512         first alternative.
13513         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
13514         to 1 for the first and third alternative.
13515         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
13516         alternative.
13517         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
13518         attribute.
13519         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
13520         attribute to 0.
13521         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
13522         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
13523         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
13524         *avx_psign<mode>3): Set prefix_extra attribute to 1.
13525         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
13526         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
13527         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
13528         ssse3_psign<mode>3): Override prefix_rex attribute.
13529         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
13530         (ssse3_palignrti): Override length_immediate to 1.
13531         (ssse3_palignrdi): Override length_immediate to 1, override
13532         prefix_rex attribute.
13533         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
13534         (sse4a_extrqi): Override length_immediate to 2.
13535         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
13536         (sse4a_insertq): Override prefix_data16 to 0.
13537         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
13538         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
13539         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
13540         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
13541         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
13542         and length_immediate to 1.
13543         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
13544         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
13545         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
13546         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
13547         and length_immediate to 1.
13548         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
13549         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
13550         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
13551         avx_ptest256): Override prefix_extra to 1.
13552         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
13553         Override prefix_data16 and length_immediate to 1.
13554         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
13555         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
13556         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
13557         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
13558         prefix_data16 to 0 and prefix_extra to 2.
13559         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
13560         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
13561         attribute.
13562         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
13563         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
13564         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
13565         and prefix_extra to 2.
13566         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
13567         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
13568         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
13569         avx_vpermilvar<mode>3,
13570         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
13571         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
13572         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
13573         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
13574         Override prefix_extra to 1.
13575         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
13576         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
13577         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
13578         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
13579         prefix_extra and length_immediate to 1.
13580         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
13581         modrm to 0.
13582         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
13583         to 1 for the first alternative.
13584         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
13585         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
13586         cases.
13587         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
13588         *movv2sf_internal_avx, *movv2sf_internal): Override
13589         prefix_rep attribute for certain alternatives.
13590         (*mov<mode>_internal): Override prefix_rep or prefix_data16
13591         attributes for certain alternatives.
13592         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
13593         attributes for certain alternatives.
13594         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
13595         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
13596         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
13597         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
13598         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
13599         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
13600         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
13601         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
13602         length_immediate to 1 if operand 2 is const_int_operand.
13603         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
13604         *vec_extractv2si_1): Set length_immediate attribute to 1.
13605         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
13606         using old 3DNOW insn rather than SSE/3DNOW_A.
13607         (mmx_emms, mmx_femms): Clear modrm attribute.
13608
13609 2009-05-29  Martin Jambor  <mjambor@suse.cz>
13610
13611         * tree-sra.c:  New implementation of SRA.
13612
13613         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
13614         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
13615         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
13616         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
13617         (SRA_MAX_STRUCTURE_COUNT): Removed.
13618         (SRA_FIELD_STRUCTURE_RATIO): Removed.
13619         * doc/invoke.texi (sra-max-structure-size): Removed.
13620         (sra-field-structure-ratio): Removed.
13621
13622 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
13623
13624         PR middle-end/40291
13625         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
13626         before expansion.
13627
13628 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
13629
13630         PR rtl-optimization/40101
13631         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
13632         seqno.  Adjust comment.
13633         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
13634         inserting bookkeeping before a jump, the jump is not scheduled.
13635         When no positive seqno found, provide a value.  Add comment.
13636
13637 2009-05-29  Richard Guenther  <rguenther@suse.de>
13638
13639         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
13640         short-cutting on the first component.
13641
13642 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
13643
13644         PR middle-end/39958
13645         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
13646         for trees other than decls/types.
13647
13648 2009-05-29  Richard Guenther  <rguenther@suse.de>
13649
13650         * tree-ssa-operands.c (get_expr_operands): Do not handle
13651         INDIRECT_REFs in the handled-component case.  Remove
13652         unused get_ref_base_and_extent case.
13653         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
13654         tree_low_cst and host_integerp where possible.
13655         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
13656         codes for equivalence.
13657         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
13658
13659 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
13660
13661         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
13662         to tmake_file for i[34567]86-*-cygwin*.
13663
13664 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
13665
13666         PR target/40017
13667         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
13668         (altivec_categorize_keyword, init_vector_keywords,
13669         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
13670         similar to bool.
13671
13672 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
13673
13674         * tree.c (handle_dll_attribute): Check if node is
13675         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
13676
13677 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
13678
13679         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
13680         component.
13681         (thumb2_zero_extendqidi2): Likewise.
13682
13683 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
13684
13685         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
13686         instead of gen_movrt.
13687         * config/sh/sh.md (movrt): Remove.
13688
13689 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
13690
13691         * doc/invoke.texi (IA-64 Options):
13692         Add -msdata, -mfused-madd, -mno-inline-float-divide,
13693         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
13694         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
13695         -msched-prefer-non-control-spec-insns,
13696         -msched-stop-bits-after-every-cycle,
13697         -msched-count-spec-in-critical-path,
13698         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
13699         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
13700         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
13701         and -msched-spec-verbose.
13702
13703 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
13704
13705         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
13706         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
13707         error if used.
13708         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
13709
13710 2009-05-28  Richard Guenther  <rguenther@suse.de>
13711
13712         * tree-ssa-alias.c (ao_ref_init): New function.
13713         (ao_ref_base): Likewise.
13714         (ao_ref_base_alias_set): Likewise.
13715         (ao_ref_alias_set): Likewise.
13716         (refs_may_alias_p_1): Change signature.
13717         (refs_may_alias_p): Adjust.
13718         (refs_anti_dependent_p): Likewise.
13719         (refs_output_dependent_p): Likewise.
13720         (call_may_clobber_ref_p_1): Change signature.
13721         (call_may_clobber_ref_p): Adjust.
13722         (stmt_may_clobber_ref_p_1): New function split out from ...
13723         (stmt_may_clobber_ref_p): ... here.
13724         (maybe_skip_until): Adjust signature.
13725         (get_continuation_for_phi): Likewise.
13726         (walk_non_aliased_vuses): Likewise.
13727         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
13728         (ao_ref_init): Declare.
13729         (ao_ref_base): Likewise.
13730         (ao_ref_alias_set): Likewise.
13731         (stmt_may_clobber_ref_p_1): Likewise.
13732         (walk_non_aliased_vuses): Adjust.
13733         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
13734         (get_ref_from_reference_ops): remove.
13735         (vn_reference_lookup_2): Adjust signature.
13736         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
13737         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
13738         (vn_reference_lookup): Adjust.
13739         (vn_reference_insert): Likewise.
13740         (vn_reference_insert_pieces): Adjust signature.
13741         (visit_reference_op_call): Adjust.
13742         * tree-ssa-pre.c (get_expr_type): Simplify.
13743         (phi_translate_1): Adjust.
13744         (compute_avail): Likewise.
13745         (translate_vuse_through_block): Do not re-build trees.
13746         (value_dies_in_block_x): Likewise.
13747         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
13748         fields.
13749         (vn_reference_lookup_pieces): Adjust declaration.
13750         (vn_reference_insert_pieces): Likewise.
13751
13752 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
13753
13754         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
13755         with checking disabled.
13756
13757 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
13758
13759         PR target/37216
13760
13761         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
13762         macro definition for support of three-operand format aligned
13763         .comm directive in assembler on cygwin/pe/mingw target OS.
13764         * configure:  Regenerate.
13765         * config.h:  Regenerate.
13766
13767         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
13768         aligned form of .comm directive if -mpe-aligned-commons is in effect.
13769         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
13770
13771         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
13772         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
13773
13774 2009-05-28  Ira Rosen  <irar@il.ibm.com>
13775
13776         PR tree-optimization/40254
13777         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
13778         in analysis of basic blocks.
13779
13780 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
13781
13782         PR middle-end/33699
13783         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
13784         * target-def.h (TARGET_CONST_ANCHOR): New macro.
13785         (TARGET_INITIALIZER): Use it.
13786         * cse.c (CHEAPER): Move it up to the other macros.
13787         (insert): Rename this ...
13788         (insert_with_costs): ... to this.  Add cost parameters.  Update
13789         function comment.
13790         (insert): New function.  Call insert_with_costs.
13791         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
13792         find_reg_offset_for_const, try_const_anchors): New functions.
13793         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
13794         when using a const-anchor.  Call insert_const_anchors.
13795         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
13796         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
13797
13798 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
13799
13800         * tree-inline.c (remap_decls): Enable nonlocalized variables
13801         when not optimizing.
13802
13803 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
13804
13805         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
13806         Simplify other tests involving optimize.
13807
13808 2009-05-27  Tom Tromey  <tromey@redhat.com>
13809
13810         * unwind-dw2.c (_Unwind_DebugHook): New function.
13811         (uw_install_context): Call _Unwind_DebugHook.
13812
13813 2009-05-27  Tom Tromey  <tromey@redhat.com>
13814
13815         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
13816
13817 2009-05-27  Ian Lance Taylor  <iant@google.com>
13818
13819         * Makefile.in (LINKER, LINKER_FLAGS): Define.
13820         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
13821         (ALL_LINKERFLAGS): Define.
13822         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
13823         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
13824         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
13825         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
13826         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
13827         $(LINKER_FOR_BUILD).
13828         (build/gcov-iov$(build_exeext)): Likewise.
13829
13830 2009-05-27  Julian Brown  <julian@codesourcery.com>
13831
13832         * gcse.c (target.h): Include.
13833         (can_assign_to_reg_without_clobbers_p): Check that the target allows
13834         copy of argument to a pseudo register.
13835
13836 2009-05-27  Diego Novillo  <dnovillo@google.com>
13837
13838         * tree-ssa-live.c (dump_scope_block): Document arguments.
13839         (dump_scope_blocks): Document.
13840         (debug_scope_blocks): New.
13841         * tree-flow.h (debug_scope_blocks): Declare.
13842
13843 2009-05-21  Denis Chertykov  <denisc@overta.ru>
13844
13845         * doc/contrib.texi (Contributors): Add myself to the list.
13846
13847 2009-05-27  Olivier Hainque  <hainque@adacore.com>
13848
13849         * expr.c (target_align): New function.  Alignment the TARGET of an
13850         assignment may be assume to have.
13851         (highest_pow2_factor_for_target): Use it instead of relying on
13852         immediate tree attributes of TARGET, not necessarily honored when
13853         intermediate bitfields are involved.
13854
13855 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
13856
13857         PR target/40266
13858         * config/i386/driver-i386.c (host_detect_local_cpu): Support
13859         AVX, SSE4, AES, PCLMUL and POPCNT.
13860
13861 2009-05-27  Diego Novillo  <dnovillo@google.com>
13862
13863         * tree-pretty-print.c (dump_location): New.
13864         (dump_generic_node): Call it.
13865         Factor code to handle BLOCK nodes ...
13866         (dump_block_node): ... here.
13867
13868 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
13869
13870         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
13871         with it.
13872         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
13873         included.
13874         * gcc-plugin.h: Include config.h and system.h.
13875         (IN_GCC): Define if not defined.
13876
13877 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
13878
13879         PR middle-end/40249
13880         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
13881         with -fno-inline.
13882
13883 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
13884
13885         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
13886         applicable.
13887         * config/m32r/m32r.h: Ditto.
13888         * config/m32r/m32r.md: Ditto.
13889         * config/m32r/predicates.md: Ditto.
13890
13891 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
13892
13893         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
13894
13895 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
13896
13897         * doc/plugins.texi
13898         (Loading plugins): typo.
13899         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
13900         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
13901         (Interacting with the GCC Garbage Collector): Added new section.
13902         (Giving information about a plugin): Added new section for
13903         PLUGIN_INFO.
13904         * ggc.h (ggc_register_root_tab): Added declaration.
13905         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
13906         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
13907         (register_callback): Improved comment in declaration.
13908         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
13909         (extra_root_vec) Added static variable for dynamic roots registration.
13910         (ggc_register_root_tab) Added new routine.
13911         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
13912         PLUGIN_GGC_MARKING event.
13913         * ggc-zone.c: Include plugin.h.
13914         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
13915         * ggc-page.c: Include plugin.h.
13916         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
13917         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
13918         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
13919         (register_callback): check lack of callbacks for
13920         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
13921         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
13922         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
13923         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
13924         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
13925         dependency on plugin.h.
13926         (plugin.o): Added dependency on ggc.h...
13927
13928 2009-05-26  Richard Guenther  <rguenther@suse.de>
13929
13930         PR middle-end/40248
13931         Revert
13932         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
13933         with mismatched comparison modes.
13934
13935         * expr.c (expand_expr_real_1): Expand the operand of a
13936         VIEW_CONVERT_EXPR in its natural mode.
13937
13938 2009-05-26  Ian Lance Taylor  <iant@google.com>
13939
13940         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
13941         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
13942         (ALL_COMPILERFLAGS): Define.
13943         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
13944         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
13945         (collect2$(exeext), collect2.o): Likewise.
13946         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
13947         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
13948         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
13949         (libbackend.o, intl.o, cppdefault.o): Likewise.
13950         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
13951         (build/%.o): Use $(COMPILER_FOR_BUILD).
13952         (build/gen%$(build_exeext)): Likewise.
13953         (build/gcov-iov$(build_exeext)): LIkewise.
13954         * config/t-darwin (darwin.o): Use $(COMPILER).
13955         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
13956         * config/t-sol2 (sol2-c.o): Likewise.
13957         (sol2.o): Likewise.
13958         * config/t-vxworks (vxworks.o): Likewise.
13959         * config/x-darwin (host-darwin.o): Likewise.
13960         * config/x-hpux (host-hpux.o): Likewise.
13961         * config/x-linux (host-linux.o): Likewise.
13962         * config/x-solaris (host-solaris.o): Likewise.
13963         * config/alpha/x-alpha (driver-alpha.o): Likewise.
13964         * config/arm/t-arm (arm-c.o): Likewise.
13965         * config/arm/t-pe (pe.o): Likewise.
13966         * config/arm/t-wince-pe (pe.o): Likewise.
13967         * config/i386/t-cygming (winnt.o): Likewise.
13968         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
13969         * config/i386/t-cygwin (cygwin1.o): Likewise.
13970         (cygwin2.o): Likewise.
13971         * config/i386/t-i386 (i386-c.o): Likewise.
13972         * config/i386/t-interix (winnt.o): Likewise.
13973         * config/i386/t-netware (netware.o): Likewise.
13974         * config/i386/t-nwld (nwld.o): Likewise.
13975         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
13976         * config/i386/x-i386 (driver-i386.o): Likewise.
13977         * config/i386/x-cygwin (host-cygwin.o): Likewise.
13978         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
13979         * config/ia64/t-ia64 (ia64-c.o): Likewise.
13980         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
13981         * config/mips/x-native (driver-native.o): Likewise.
13982         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
13983         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
13984         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13985         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
13986         * config/score/t-score-elf (score7.o): Likewise.
13987         (score3.o): Likewise.
13988         * config/sh/t-sh (sh-c.o): Likewise.
13989         * config/sh/t-symbian (sh-c.o): Likewise.
13990         (symbian.o): Likewise.
13991         * config/spu/t-spu-elf (spu-c.o): Likewise.
13992         * config/v850/t-v850 (v850-c.o): Likewise.
13993         * config/v850/t-v850e (v850-c.o): Likewise.
13994
13995 2009-05-26  Richard Guenther  <rguenther@suse.de>
13996
13997         PR tree-optimization/40122
13998         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
13999         VECTOR_CSTs if possible.
14000         (fold_gimple_assign): Likewise.
14001
14002 2009-05-26  Richard Guenther  <rguenther@suse.de>
14003
14004         PR middle-end/40252
14005         * fold-const.c (fold_binary): Use the correct types for building
14006         rotates.
14007
14008 2009-05-26  Richard Guenther  <rguenther@suse.de>
14009
14010         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
14011         redundant calls to merge_alias_info.
14012         (bump_vector_ptr): Likewise.
14013         * tree-ssa-copy.c (merge_alias_info): Remove.
14014         (replace_exp_1): Remove call to merge_alias_info.
14015         (propagate_tree_value): Likewise.
14016         (fini_copy_prop): Propagate points-to info.
14017         * tree-flow.h (merge_alias_info): Remove.
14018
14019 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
14020
14021         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
14022
14023 2009-05-25  Jan Hubicka  <jh@suse.cz>
14024
14025         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
14026         * cgraph.h (struct inline_summary): New filed self_wize,
14027         size_inlining_benefit, self_time and time_inlining_benefit.
14028         (struct cgraph_global_info): Replace insns by time ans size fields.
14029         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
14030         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
14031         (ipcp_update_callgraph): Do not touch function bodies.
14032         * ipa-inline.c: Include except.h
14033         (MAX_TIME): New constant.
14034         (overall_insns): Remove.
14035         (leaf_node_p): New.
14036         (overall_size, max_benefit): New static variables.
14037         (cgraph_estimate_time_after_inlining): New function.
14038         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
14039         (cgraph_clone_inlined_nodes): Update size.
14040         (cgraph_mark_inline_edge): Update size.
14041         (cgraph_estimate_growth): Use size info.
14042         (cgraph_check_inline_limits): Check size.
14043         (cgraph_default_inline_p): Likewise.
14044         (cgraph_edge_badness): Compute badness based on benefit and size cost.
14045         (cgraph_decide_recursive_inlining): Check size.
14046         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
14047         and times.
14048         (cgraph_decide_inlining): Likewise.
14049         (cgraph_decide_inlining_incrementally): Likewise; honor
14050         PARAM_EARLY_INLINING_INSNS.
14051         (likely_eliminated_by_inlining_p): New predicate.
14052         (estimate_function_body_sizes): New function.
14053         (compute_inline_parameters): Use it.
14054         * except.c (must_not_throw_labels): New function.
14055         * except.h (must_not_throw_labels): Declare.
14056         * tree-inline.c (init_inline_once): Kill inlining_weigths
14057         * tree-ssa-structalias.c: Avoid uninitialized warning.
14058         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
14059         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
14060         (PARAM_INLINE_CALL_COST): Remove.
14061         (PARAM_EARLY_INLINING_INSNS): New.
14062
14063 2009-05-25  Richard Guenther  <rguenther@suse.de>
14064
14065         PR tree-optimization/36327
14066         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
14067         callback for reference translation or lookup at the point of may-defs.
14068         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
14069         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
14070         for union COMPONENT_REFs.
14071         (vn_reference_lookup_3): New callback.  Lookup from memset
14072         and CONSTRUCTOR assignment, translate through struct copies.
14073         (vn_reference_lookup_pieces): Make sure to not free the
14074         passed operands array.  Adjust walk_non_aliased_vuses call.
14075         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
14076         make sure we do not leak memory.
14077
14078 2009-05-25  Richard Guenther  <rguenther@suse.de>
14079
14080         * tree-ssa-alias.h (dump_points_to_solution): Declare.
14081         * tree-inline.c (expand_call_inline): Reset the escaped and
14082         callused solutions.
14083         * tree-ssa-structalias.c (pass_build_ealias): New.
14084         * tree-pass.h (pass_build_ealias): Declare.
14085         * passes.c (init_optimization_passes): Add PTA during
14086         early optimizations.
14087         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
14088         and CALLUSED solutions.
14089         (dump_points_to_solution): New function, split out from ...
14090         (dump_points_to_info_for): ... here.
14091         * tree-parloops.c (parallelize_loops): Reset the escaped and
14092         callused solutions.
14093
14094 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14095
14096         PR bootstrap/40027
14097         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
14098         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
14099
14100 2009-05-25  Ira Rosen  <irar@il.ibm.com>
14101
14102         PR tree-optimization/40238
14103         * tree-vect-stmts.c (vect_init_vector): Insert initialization
14104         statements after basic block's labels.
14105         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
14106         to free the allocated memory.
14107
14108 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
14109
14110         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
14111         return address with a USE.
14112
14113 2009-05-24  Richard Guenther  <rguenther@suse.de>
14114
14115         PR middle-end/40233
14116         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
14117         array type from the main variant of the inner type.
14118
14119 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14120
14121         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
14122         definition to bool (from int) to un-break build.
14123         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
14124
14125 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
14126
14127         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
14128         discard_stmt_changes): Delete.
14129         * tree-ssa-operands.c (scb_stack): Delete.
14130         (init_ssa_operands): Do not initialize it.
14131         (fini_ssa_operands): Do not free it.
14132         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
14133
14134         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
14135         update_stmt, remove the others.  Fix comments.
14136         * tree-dfa.c (optimize_stack_restore): Likewise.
14137         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
14138         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
14139         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
14140         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
14141         Likewise.
14142         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
14143         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
14144         (dom_opt_finalize_block): Likewise, adjusting access to
14145         stmts_to_rescan.
14146         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
14147         (stmts_to_rescan): Change item type to gimple.
14148         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
14149
14150 2009-05-24  Ira Rosen  <irar@il.ibm.com>
14151
14152         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
14153         * tree-pass.h (pass_slp_vectorize): New pass.
14154         * params.h (SLP_MAX_INSNS_IN_BB): Define.
14155         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
14156         * tree-vectorizer.c (timevar.h): Include.
14157         (user_vect_verbosity_level): Declare.
14158         (vect_location): Fix comment.
14159         (vect_set_verbosity_level): Update user_vect_verbosity_level
14160         instead of vect_verbosity_level.
14161         (vect_set_dump_settings): Add an argument. Ignore user defined
14162         verbosity if dump flags require higher level of verbosity. Print to
14163         stderr only for loop vectorization.
14164         (vectorize_loops): Update call to vect_set_dump_settings.
14165         (execute_vect_slp): New function.
14166         (gate_vect_slp): Likewise.
14167         (struct gimple_opt_pass pass_slp_vectorize): New.
14168         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
14169         access its members.
14170         (vec_info_for_bb): New function.
14171         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
14172         (VECTORIZATION_ENABLED): New macro.
14173         (SLP_ENABLED, SLP_DISABLED): Likewise.
14174         (vect_is_simple_use): Add bb_vec_info argument.
14175         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
14176         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
14177         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
14178         vect_schedule_slp, vect_analyze_slp): Likewise.
14179         (vect_analyze_stmt): Add slp_tree argument.
14180         (find_bb_location): Declare.
14181         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
14182         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
14183         (vect_analyze_loop_operations, vect_analyze_loop,
14184         get_initial_def_for_induction, vect_create_epilog_for_reduction,
14185         vect_finalize_reduction, vectorizable_reduction,
14186         vectorizable_live_operation, vect_transform_loop): Likewise.
14187         * tree-data-ref.c (dr_analyze_innermost): Update comment,
14188         skip evolution analysis if analyzing a basic block.
14189         (dr_analyze_indices): Likewise.
14190         (initialize_data_dependence_relation): Skip the test whether the
14191         object is invariant for basic blocks.
14192         (compute_all_dependences): Skip dependence analysis for data
14193         references in basic blocks.
14194         (find_data_references_in_stmt): Don't fail in case of invariant
14195         access in basic block.
14196         (find_data_references_in_bb): New function.
14197         (find_data_references_in_loop): Move code to
14198         find_data_references_in_bb and add a call to it.
14199         (compute_data_dependences_for_bb): New function.
14200         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
14201         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
14202         that STEP is 0.
14203         (vect_analyze_data_ref_dependence): Check for interleaving in case of
14204         unknown dependence in basic block and fail in case of dependence in
14205         basic block.
14206         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
14207         dependence instances from either loop or basic block vectorization
14208         info.
14209         (vect_compute_data_ref_alignment): Check if it is loop vectorization
14210         before calling nested_in_vect_loop_p.
14211         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
14212         dependence instances from either loop or basic block vectorization
14213         info.
14214         (vect_verify_datarefs_alignment): Likewise.
14215         (vect_enhance_data_refs_alignment): Adjust function calls.
14216         (vect_analyze_data_refs_alignment): Likewise.
14217         (vect_analyze_group_access): Fix printing. Skip different checks if
14218         DR_STEP is 0. Keep strided stores either in loop or basic block
14219         vectorization data structure. Fix indentation.
14220         (vect_analyze_data_ref_access): Fix comments, allow zero step in
14221         basic blocks.
14222         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
14223         dependence instances from either loop or basic block vectorization
14224         info.
14225         (vect_analyze_data_refs): Update comment. Call
14226         compute_data_dependences_for_bb to analyze basic blocks.
14227         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
14228         case of loop vectorization. In case of basic block vectorization use
14229         data-ref itself as a base.
14230         (vect_create_data_ref_ptr): In case of basic block vectorization:
14231         don't advance the pointer, add new statements before the current
14232         statement.  Adjust function calls.
14233         (vect_supportable_dr_alignment): Support only aligned accesses in
14234         basic block vectorization.
14235         * common.opt (ftree-slp-vectorize): New flag.
14236         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
14237         (vect_pattern_recog_1): Likewise.
14238         * tree-vect-stmts.c (process_use): Likewise.
14239         (vect_init_vector): Add new statements in the beginning of the basic
14240         block in case of basic block SLP.
14241         (vect_get_vec_def_for_operand): Adjust function calls.
14242         (vect_finish_stmt_generation): Likewise.
14243         (vectorizable_call): Add assert that it is loop vectorization, adjust
14244         function calls.
14245         (vectorizable_conversion, vectorizable_assignment): Likewise.
14246         (vectorizable_operation): In case of basic block SLP, take
14247         vectorization factor from statement's type and skip the relevance
14248         check. Adjust function calls.
14249         (vectorizable_type_demotion): Add assert that it is loop
14250         vectorization, adjust function calls.
14251         (vectorizable_type_promotion): Likewise.
14252         (vectorizable_store): Check for outer loop only in case of loop
14253         vectorization. Adjust function calls. For basic blocks, skip the
14254         relevance check and don't advance pointers.
14255         (vectorizable_load): Likewise.
14256         (vectorizable_condition): Add assert that it is loop vectorization,
14257         adjust function calls.
14258         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
14259         that it is not reduction, get vector type, call only supported
14260         functions, skip loop specific parts.
14261         (vect_transform_stmt): Check for outer loop only in case of loop
14262         vectorization.
14263         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
14264         (vect_is_simple_use): Fix comment, add new argument, fix conditions
14265         for external definition.
14266         * passes.c (pass_slp_vectorize): New pass.
14267         * tree-vect-slp.c (find_bb_location): New function.
14268         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
14269         check for patterns only in loops.
14270         (vect_build_slp_tree): Add argument, adjust function calls, fail in
14271         case of multiple types in basic block SLP.
14272         (vect_mark_slp_stmts_relevant): New function.
14273         (vect_supported_load_permutation_p): Fix comment.
14274         (vect_analyze_slp_instance): Add argument. In case of basic block
14275         SLP, take vectorization factor from statement's type, check that
14276         unrolling factor is 1. Adjust function call. Save SLP instance in
14277         either loop or basic block vectorization structure. Return FALSE,
14278         if SLP failed.
14279         (vect_analyze_slp): Add argument. Get strided stores groups from
14280         either loop or basic block vectorization structure. Return FALSE
14281         if basic block SLP failed.
14282         (new_bb_vec_info): New function.
14283         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
14284         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
14285         (vect_schedule_slp): Add argument. Get SLP instances from either
14286         loop or basic block vectorization structure. Set vectorization factor
14287         to be 1 for basic block SLP.
14288         (vect_slp_transform_bb): New function.
14289         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
14290
14291 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
14292
14293         * final.c (shorten_branches): Do not align labels for jump tables.
14294         (final_scan_insn): Use JUMP_TABLE_DATA_P.
14295
14296 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
14297
14298         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
14299         Remove outdated reference to flow.c and fix nits.
14300         * doc/gccint.texi: Tweak RTL description.
14301         * doc/rtl.texi: Likewise.
14302
14303 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
14304
14305         * config/avr/avr.c: Change my email address.
14306         * config/avr/avr.h: Likewise.
14307         * config/avr/avr.md: Likewise.
14308         * config/avr/avr-protos.h: Likewise.
14309         * config/avr/libgcc.S: Likewise.
14310
14311 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
14312
14313         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
14314         (spu_split_load, spu_split_store): Change return type to int.
14315         (spu_split_convert): Declare.
14316         * config/spu/predicates.md (spu_mem_operand): Remove.
14317         (spu_mov_operand): Update.
14318         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
14319         * config/spu/spu.c (regno_aligned_for_load): Remove.
14320         (reg_aligned_for_addr, spu_expand_load): Define.
14321         (spu_expand_extv): Reimplement and handle MEM.
14322         (spu_expand_insv): Handle MEM.
14323         (spu_sched_reorder): Handle insn's with length 0.
14324         (spu_legitimate_address_p): Reimplement.
14325         (store_with_one_insn_p): Return TRUE for any mode with size
14326         larger than 16 bytes.
14327         (address_needs_split): Define.
14328         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
14329         operands.
14330         (spu_convert_move): Define.
14331         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
14332         (spu_split_store): Change all MEM's to TImode.
14333         (spu_init_expanders): Preallocate registers that correspond to
14334         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
14335         mark_reg_pointer.
14336         (spu_split_convert): Define.
14337         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
14338         (_move<mode>, _movdi, _movti): Update predicate and condition.
14339         (load, store): Change to define_split.
14340         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
14341         extend<mode>ti2.
14342         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
14343         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
14344         define_insn_and_split of lshr<mode>3.
14345         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
14346         (<v>ashr<mode>3_imm): Define.
14347         (extv, extzv, insv): Allow MEM operands.
14348         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
14349         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
14350         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
14351         (_spu_convert2): Change to define_insn_and_split and remove the
14352         corresponding define_peephole2.
14353         (stack_protect_set, stack_protect_test, stack_protect_test_si):
14354         Change predicates to memory_operand.
14355
14356 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
14357
14358         * config/arm/thumb2.md: Add 16-bit multiply instructions.
14359
14360 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14361
14362         PR tree-optimization/40219
14363         * tree.c (iterative_hash_expr): Make sure the builtin function is
14364         a normal builtin function and not a front end or back end builtin
14365         before indexing into the built_in_decls array.
14366
14367 2009-05-22  Richard Guenther  <rguenther@suse.de>
14368
14369         PR middle-end/38964
14370         * alias.c (write_dependence_p): Do not use TBAA for answering
14371         anti-dependence or output-dependence.
14372         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
14373         (emit_pointer_definition): Remove.
14374         (emit_alias_warning): Likewise.
14375         (find_what_var_points_to): Remove TBAA pruning code.
14376         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
14377         violations.
14378         (compute_points_to_sets): Remove code computing the set of
14379         dereferenced pointers.
14380         * tree-data-ref.c (dr_may_alias_p): Properly use the split
14381         oracle for querying anti and output dependencies.
14382         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
14383         if TBAA may be applied.
14384         (refs_anti_dependent_p): New function.
14385         (refs_output_dependent_p): Likewise.
14386         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
14387         (refs_output_dependent_p): Likewise.
14388         * doc/tree-ssa.texi (Memory model): New section.
14389         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
14390         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
14391         * cfgexpand.c (expand_gimple_basic_block): Do not handle
14392         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
14393         * expr.c (expand_expr_real_1): Likewise.
14394         * gimple-low.c (lower_stmt): Likewise.
14395         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
14396         (dump_gimple_cdt): Remove.
14397         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
14398         (gimple_size): Likewise.
14399         (walk_gimple_op): Likewise.
14400         (is_gimple_stmt): Likewise.
14401         (walk_stmt_load_store_addr_ops): Likewise.
14402         (gimple_build_cdt): Remove.
14403         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
14404         * gimple.h (gimple_cdt_new_type): Remove.
14405         (gimple_cdt_new_type_ptr): Likewise.
14406         (gimple_cdt_set_new_type): Likewise.
14407         (gimple_cdt_location): Likewise.
14408         (gimple_cdt_location_ptr): Likewise.
14409         (gimple_cdt_set_location): Likewise.
14410         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
14411         * tree-cfg.c (remove_useless_stmts_1): Do not handle
14412         GIMPLE_CHANGE_DYNAMIC_TYPE.
14413         (verify_types_in_gimple_stmt): Likewise.
14414         * tree-inline.c (estimate_num_insns): Likewise.
14415         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
14416         (copy_decl_to_var): Likewise.
14417         (copy_result_decl_to_var): Likewise.
14418         * tree-pretty-print.c (dump_generic_node): Do not handle
14419         CHANGE_DYNAMIC_TYPE_EXPR.
14420         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14421         * tree-ssa-operands.c (get_expr_operands): Likewise.
14422         * tree-ssa-structalias.c (struct variable_info): Remove
14423         no_tbaa_pruning member.
14424         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
14425         (unify_nodes): Do not copy it.
14426         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
14427         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
14428         (set_uids_in_ptset): Do not check it.
14429         (find_what_var_points_to): Likewise.
14430         (compute_tbaa_pruning): Remove.
14431         (compute_points_to_sets): Do not call it.
14432         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
14433         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
14434         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
14435         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
14436         (DECL_NO_TBAA_P): Likewise.
14437         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
14438         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
14439         (expand_omp_atomic_pipeline): Do not set it.
14440         * print-tree.c (print_node): Do not dump it.
14441         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
14442         redundant check.
14443
14444 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
14445
14446         PR target/39856
14447         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
14448         for clobber.
14449
14450 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
14451
14452         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
14453         non-external.
14454
14455 2009-05-22  Ben Elliston  <bje@au.ibm.com>
14456
14457         * Makefile.in (bversion.h, s-bversion): New targets.
14458         (TOPLEV_H): Add bversion.h.
14459         * toplev.h: Include "bversion.h".
14460         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
14461         the __format__ attribute only if compiling with the same version
14462         of GCC as the sources (the "build version").
14463
14464 2009-05-22  Ben Elliston  <bje@au.ibm.com>
14465
14466         * c-format.c (handle_format_attribute): Fix comment typo.
14467
14468 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
14469
14470         PR target/37846
14471         * config/ia64/ia64.opt (mfused-madd): New.
14472         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
14473         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
14474         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
14475         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
14476         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
14477         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
14478         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
14479         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
14480         instruction if !TARGET_FUSED_MADD.
14481         (fpma, fpms): Remove colon from name.
14482
14483 2009-05-22  Richard Guenther  <rguenther@suse.de>
14484
14485         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
14486         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
14487         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
14488         TARGET_MEM_REF.
14489         (create_expression_by_pieces): Only convert if necessary.
14490         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
14491         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
14492
14493 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
14494
14495         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
14496         regular pattern from a template and rename it ...
14497         (*extzv_truncsi_exts): ... to this.
14498
14499 2009-05-21  Richard Guenther  <rguenther@suse.de>
14500
14501         * cgraph.h (struct cgraph_node): Remove inline_decl member.
14502         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
14503         (cgraph_default_inline_p): Likewise.
14504         (cgraph_decide_inlining_incrementally): Likewise.
14505
14506 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14507             Uros Bizjak  <ubizjak@gmail.com>
14508
14509         * config/i386/cpuid.h (bit_MOVBE): New.
14510
14511         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
14512
14513         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
14514         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
14515         (ix86_handle_option): Handle OPT_mmovbe.
14516         (ix86_target_string): Add -mmovbe.
14517         (pta_flags): Add PTA_MOVBE.
14518         (processor_alias_table): Add PTA_MOVBE to "atom".
14519         (override_options): Handle PTA_MOVBE.
14520
14521         * config/i386/i386.h (TARGET_MOVBE): New.
14522
14523         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
14524         (*bswapsi_movbe): New.
14525         (*bswapdi_movbe): Likewise.
14526         (bswapdi2): Renamed to ...
14527         (*bswapdi_1): This.
14528         (bswapdi2): New expander.
14529
14530         * config/i386/i386.opt (mmovbe): New.
14531
14532         * doc/invoke.texi: Document -mmovbe.
14533
14534 2009-05-21  Taras Glek  <tglek@mozilla.com>
14535
14536         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
14537         * gcc-plugin.h (plugin_init): Updated signature.
14538         * gcc-plugin.h (plugin_name_args): Moved to this header.
14539         * doc/plugins.texi (plugin_init): Updated documention to reflect
14540         API change.
14541         * doc/plugins.texi (plugin_name_args): Added to documention.
14542
14543 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
14544
14545         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
14546         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
14547
14548 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
14549
14550         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
14551         JUMP_TABLE_DATA_P predicates where applicable.
14552         * config/i386/predicates.md: Ditto.
14553         * config/i386/sse.md: Ditto.
14554
14555 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
14556
14557         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
14558         operand2 -128 override length_immediate attribute to 1.
14559         * config/i386/predicates.md (constm128_operand): New predicate.
14560
14561         * config/i386/i386.c (memory_address_length): Handle %r12
14562         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
14563         also check REGNO.
14564         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
14565         mode look through optional ZERO_EXTEND and SUBREG.
14566         * config/i386/i386.md (R12_REG): New define_constant.
14567         (prefix_data16): For sse unit set also for MODE_TI insns.
14568         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
14569         insns set if operand 1 is ext_QIreg_operand.
14570         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
14571         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
14572         immediate.
14573         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
14574         mode from MODE_DI to MODE_SI.
14575         (movdi_1_rex64): Override modrm and length_immediate attributes
14576         only for movabs (TYPE_IMOV, alternative 2).
14577         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
14578         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
14579         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
14580         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
14581         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
14582         prefix_rex attribute if DImode.
14583         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
14584         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
14585         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
14586         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
14587         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
14588         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
14589         Likewise.  For TYPE_IMOV clear length_immediate attribute.
14590         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
14591         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
14592         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
14593         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
14594         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
14595         or one operand TYPE_ISHIFT.
14596         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
14597         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
14598         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
14599         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
14600         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
14601         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
14602         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
14603         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
14604         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
14605         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
14606         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
14607         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
14608         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
14609         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
14610         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
14611         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
14612         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
14613         set mode attribute, don't override length attribute.
14614         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
14615         to 1.
14616         (return_internal_long): Set length attribute to 2 instead of 1.
14617         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
14618         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
14619         prefix_rex attribute.
14620         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
14621         New predicates.
14622         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
14623
14624 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14625
14626         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
14627
14628 2009-05-20  Ian Lance Taylor  <iant@google.com>
14629
14630         * tree.c (build_tree_list_vec_stat): New function.
14631         (ctor_to_vec): New function.
14632         (build_nt_call_vec): New function.
14633         (build_call_array): Change args to be a const pointer.
14634         (build_call_vec): New function.
14635         * tree.h (build_nt_call_vec): Declare.
14636         (build_tree_list_vec_stat): Declare.
14637         (build_tree_list_vec): Define.
14638         (build_call_array): Update declaration.
14639         (build_call_vec): Declare.
14640         (ctor_to_vec): Declare.
14641         * c-common.c (tree_vector_cache): New static variable.
14642         (make_tree_vector): New function.
14643         (release_tree_vector): New function.
14644         (make_tree_vector_single): New function.
14645         (make_tree_vector_copy): New function.
14646         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
14647         (make_tree_vector_single, make_tree_vector_copy): Declare.
14648         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
14649         (c_parser_expr_list): Don't manage cache here, instead call
14650         make_tree_vector.
14651         (c_parser_release_expr_list): Remove static function.
14652         (c_parser_vec_to_tree_list): Remove static function.
14653         (c_parser_attributes): Call build_tree_list_vec instead of
14654         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
14655         c_parser_release_expr_list.
14656         (c_parser_postfix_expression_after_primary): Likewise.
14657         (c_parser_objc_keywordexpr): Likewise.
14658
14659 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
14660
14661         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
14662         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
14663         TARGET_CONVERT_TO_TYPE.
14664         * hooks.c (hook_tree_const_tree_null): Define.
14665         * hooks.h (hook_tree_const_tree_null): Declare.
14666         * target.h (struct gcc_target):  Add invalid_parameter_type,
14667         invalid_return_type, promoted_type, and convert_to_type fields.
14668         * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
14669         (TARGET_INVALID_RETURN_TYPE): Define.
14670         (TARGET_PROMOTED_TYPE): Define.
14671         (TARGET_CONVERT_TO_TYPE): Define.
14672         (TARGET_INITIALIZER): Update for new fields.
14673         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
14674         (grokparms): Check targetm.invalid_parameter_type.
14675         * c-typeck.c (default_conversion): Check targetm.promoted_type.
14676         * c-convert.c (convert): Check targetm.convert_to_type.
14677
14678 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
14679
14680         * config/mips/mips.md (*extenddi_truncate<mode>,
14681         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
14682         defintions.
14683         (*extendhi_truncateqi): New define_insn_and_sptit.
14684
14685 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
14686
14687         PR middle-end/40204
14688         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
14689         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
14690
14691 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
14692
14693         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
14694         the operand of VIEW_CONVERT_EXPR.
14695
14696 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
14697
14698         * config/i386/driver-i386.c (host_detect_local_cpu): Check
14699         extended family and model for Intel processors.  Support Intel Atom.
14700
14701 2009-05-20  Olivier Hainque  <hainque@adacore.com>
14702
14703         * gstab.h (stab_code_type): Define, to be used instead of the
14704         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
14705         notice.
14706         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
14707         occurrences by stab_code_type.
14708         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
14709
14710 2009-05-20  Martin Jambor  <mjambor@suse.cz>
14711
14712         * tree-flow.h (insert_edge_copies_seq): Undeclare.
14713         (sra_insert_before): Likewise.
14714         (sra_insert_after): Likewise.
14715         (sra_init_cache): Likewise.
14716         (sra_type_can_be_decomposed_p): Likewise.
14717         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
14718         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
14719         (sra_insert_before): Likewise.
14720         (sra_insert_after): Likewise.
14721         (sra_init_cache): Likewise.
14722         (insert_edge_copies_seq): Made static and moved upwards.
14723
14724         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
14725         case.
14726
14727         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
14728
14729         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
14730         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
14731         simple copies.
14732
14733 2009-05-20  Richard Guenther  <rguenther@suse.de>
14734
14735         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
14736         with mismatched comparison modes.
14737
14738 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14739
14740         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
14741         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
14742         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
14743         with shifts for Thumb2.
14744         (orsi_notsi): New for orn.
14745         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
14746         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
14747         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
14748         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
14749         Don't invert remainder for IOR.
14750
14751 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
14752
14753         PR tree-optimization/40087
14754         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
14755         number_of_iterations_ne): Rename never_infinite argument.
14756         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
14757         number_of_iterations_le): Handle pointer-type ivs when
14758         exit_must_be_taken is false.
14759         (number_of_iterations_cond):  Do not always assume that
14760         exit_must_be_taken if the control variable is a pointer.
14761
14762 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14763
14764         * c-typeck.c (build_binary_op): Allow % on integal vectors.
14765         * doc/extend.texi (Vector Extension): Document that % is allowed too.
14766
14767 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
14768
14769         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
14770         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
14771
14772 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14773
14774         PR c/40172
14775         * c.opt (Wlogical-op): Disabled by default.
14776         * c-opt (c_common_post_options): Do not enable Wlogical-op with
14777         Wextra.
14778         * doc/invoke.texi (Wlogical-op): Likewise.
14779
14780 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
14781
14782         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
14783         into CASE_CONVERT.
14784         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
14785         Propagate the type of the first operand.
14786         <ASSERT_EXPR>: Simplify.
14787         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
14788         Rewrite using the RHS code as discriminant.
14789         <NOP_EXPR>: Turn into CASE_CONVERT.
14790         <PLUS_EXPR>: Propagate the type of the first operand.
14791
14792 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
14793
14794         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
14795         (ia64_dconst_0_375): New.
14796         * config/ia64/ia64.c (ia64_override_options): Remove
14797         -minline-sqrt-min-latency warning.
14798         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
14799         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
14800         * config/ia64/ia64.md (*sqrt_approx): Remove.
14801         (sqrtsf2): Remove #if 0.
14802         (sqrtsf2_internal_thr): Rewrite and move to div.md.
14803         (sqrtdf): Remove assert.
14804         (sqrtdf2_internal_thr): Rewrite and move to div.md.
14805         (sqrtxf2): Remove #if 0.
14806         (sqrtxf2_internal_thr): Rewrite and move to div.md.
14807         * div.md (sqrt_approx_rf): New.
14808         (sqrtsf2_internal_thr): New implementation.
14809         (sqrtsf2_internal_lat): New.
14810         (sqrtdf2_internal_thr: New implementation.
14811         (sqrtxf2_internal): New implementation.
14812
14813 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
14814             Hans-Peter Nilsson  <hp@axis.com>
14815
14816         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
14817         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
14818         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
14819         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
14820         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
14821         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
14822         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
14823         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
14824         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
14825         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
14826         * c-common.c: ...from here.
14827
14828 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14829
14830         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
14831
14832 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14833
14834         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
14835
14836 2009-05-19  Ben Elliston  <bje@au.ibm.com>
14837
14838         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
14839         assignments with memcpy calls.
14840         (add_fdes): Likewise.
14841         (binary_search_unencoded_fdes): Likewise.
14842         (linear_search_fdes): Eliminate type puns.
14843
14844 2009-05-19  Richard Guenther  <rguenther@suse.de>
14845
14846         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
14847         not falsely claim to have propagated into all uses.
14848
14849 2009-05-19  Ben Elliston  <bje@au.ibm.com>
14850
14851         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
14852         version to v3.0.
14853
14854 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
14855
14856         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
14857         * config/sh/sh.c (sh_legitimate_address_p): Make static.
14858         (TARGET_LEGITIMATE_ADDRESS_P): New.
14859         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14860         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
14861
14862 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
14863
14864         PR debug/40109
14865         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
14866         child of the containing namespace's DIE.
14867
14868 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
14869
14870         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
14871         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
14872         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
14873         extend patterns.
14874
14875 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14876
14877         PR target/39942
14878         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
14879         gen_align with gen_pad.
14880         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
14881         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
14882
14883         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
14884         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
14885
14886         * config/i386/i386.md (align): Renamed to ...
14887         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
14888         ASM_OUTPUT_MAX_SKIP_PAD.
14889
14890 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
14891
14892         * config.gcc: Fix variable syntax.
14893
14894         PR target/39531
14895         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
14896         before calling exact_log2.
14897         (output_iorsi3): Likewise.
14898         (output_xorsi3): Likewise.
14899
14900 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
14901
14902         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
14903         for the none zero constant operand except for EQ and NE
14904         comprisons even when the first operand is R0.
14905
14906 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
14907
14908         * config/s390/2064.md: Remove trailing whitespaces.
14909         * config/s390/2084.md: Likewise.
14910         * config/s390/constraints.md: Likewise.
14911         * config/s390/fixdfdi.h: Likewise.
14912         * config/s390/libgcc-glibc.ver: Likewise.
14913         * config/s390/s390-modes.def: Likewise.
14914         * config/s390/s390-protos.h: Likewise.
14915         * config/s390/s390.c: Likewise.
14916         * config/s390/s390.h: Likewise.
14917         * config/s390/s390.md: Likewise.
14918         * config/s390/tpf-unwind.h: Likewise.
14919
14920 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
14921
14922         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
14923
14924 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
14925
14926         M68K TLS support.
14927         * configure.ac (m68k-*-*): Check if binutils support TLS.
14928         * configure: Regenerate.
14929         * config/m68k/predicates.md (symbolic_operand): Extend comment.
14930         * config/m68k/constraints.md (Cu): New constraint.
14931         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
14932         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
14933         (movsi): Handle TLS symbols.
14934         (addsi3_5200): Handle XTLS symbols, indent.
14935         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
14936         (m68k_tls_reference_p): Declare.
14937         (m68k_legitimize_address): Declare.
14938         (m68k_unwrap_symbol): Declare.
14939         * config/m68k/m68k.opt (mxtls): New option.
14940         * config/m68k/m68k.c (ggc.h): Include.
14941         (m68k_output_dwarf_dtprel): Implement hook.
14942         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
14943         (m68k_expand_prologue): Load GOT pointer when function needs it.
14944         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
14945         (m68k_legitimate_constant_address_p): Same.
14946         (m68k_decompose_address): Handle TLS references.
14947         (m68k_get_gp): New static function.
14948         (enum m68k_reloc): New contants.
14949         (TLS_RELOC_P): New macro.
14950         (m68k_wrap_symbol): New static function.
14951         (m68k_unwrap_symbol): New function.
14952         (m68k_final_prescan_insn_1): New static function.
14953         (m68k_final_prescan_insn): New function.
14954         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
14955         functions.
14956         (legitimize_pic_address): Handle TLS references..
14957         (m68k_tls_get_addr, m68k_get_tls_get_addr)
14958         (m68k_libcall_value_in_a0_p)
14959         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
14960         (m68k_call_m68k_read_tp): Helper variables and functions for ...
14961         (m68k_legitimize_tls_address): Handle TLS references.
14962         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
14963         New functions.
14964         (m68k_legitimize_address): Handle TLS symbols.
14965         (m68k_get_reloc_decoration): New static function.
14966         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
14967         UNSPEC_RELOC32.
14968         (m68k_output_dwarf_dtprel): Implement hook.
14969         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
14970         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
14971         m68k_call_* routines.
14972         (sched_attr_op_type): Handle TLS symbols.
14973         (gt-m68k.h): Include.
14974         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
14975         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
14976
14977 2009-05-18  Martin Jambor  <mjambor@suse.cz>
14978
14979         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
14980         (visit_store_addr_for_mod_analysis): New function.
14981         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
14982         (determine_cst_member_ptr): Use gimple_assign_single_p.
14983         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
14984         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
14985         operands.  Don't check number of operands of a NOP_EXPR.
14986
14987 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
14988
14989         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
14990
14991 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14992
14993         PR c/40172
14994         * c-common.c (warn_logical_operator): Don't warn if one of
14995         expression isn't always true or false.
14996
14997 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
14998
14999         * config/i386/biarch32.h: New file.
15000         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
15001
15002 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
15003
15004         * config/mips/mips.md (*zero_extend<mode>_trunchi,
15005         *zero_extend<mode>_truncqi): Merge these into ...
15006         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
15007         Name the pattern following this as *zero_extendhi_truncqi.
15008
15009 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
15010
15011         PR middle-end/39301
15012         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
15013         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
15014         (output_info): Make field HOST_WIDEST_INT.
15015         (print_statistics): Use HOST_WIDEST_INT_PRINT.
15016         (dump_bitmat_statistics): Same.
15017
15018 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
15019
15020         * config.gcc (use_gcc_stdint):  Set to wrap.
15021         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
15022         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
15023         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15024         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
15025         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
15026         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
15027         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15028         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
15029
15030 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
15031
15032         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
15033         tune_64.
15034         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
15035         Move definitions earlier.
15036         (OPT_ARCH64, OPT_ARCH32): Define.
15037         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
15038         and tune_64.
15039
15040 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
15041
15042         PR target/40153
15043         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
15044         implies.
15045
15046 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
15047
15048         * arm.md (movdi2): Copy non-reg values to DImode registers.
15049
15050 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
15051
15052         PR target/39942
15053         * final.c (label_to_max_skip): New function.
15054         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
15055         CODE_LABEL_NUMBER <= max_labelno.
15056         * output.h (label_to_max_skip): New prototype.
15057         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
15058         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
15059         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
15060         Handle CODE_LABELs with >= 16 byte alignment or with
15061         max_skip == (1 << align) - 1.
15062         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
15063         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
15064
15065         PR target/39942
15066         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
15067         .p2align 3 if MAX_SKIP is smaller than 7.
15068         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15069
15070 2009-05-15  Ian Lance Taylor  <iant@google.com>
15071
15072         * alias.c (struct alias_set_entry_d): Rename from struct
15073         alias_set_entry.  Change all uses.
15074         * except.c (struct call_site_record_d): Rename from struct
15075         call_site_record.  Change all uses.
15076         * except.h (struct eh_region_d): Rename from struct eh_region.
15077         Change all uses.
15078         * gcse.c (struct hash_table_d): Rename from struct hash_table.
15079         Change all uses.
15080         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
15081         ivtype_map_elt.  Change all uses.
15082         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
15083         Change all uses.
15084         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
15085         * graphite.h (struct name_tree_d): Rename from struct name_tree.
15086         Change all uses.
15087         (struct sese_d): Rename from struct sese.  Change all uses.
15088         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
15089         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
15090         * optabs.h (struct optab_d): Rename from struct optab.  Change all
15091         uses.
15092         (struct convert_optab_d): Rename from struct convert_optab.
15093         Change all uses.
15094         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
15095         ipa_opt_pass.  Change all uses.
15096         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
15097         all uses.
15098
15099         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
15100         defined as a typedef.
15101         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
15102         defined as a tag.
15103
15104 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15105
15106         PR 16302
15107         * fold-const.c (make_range,build_range_check,merge_ranges): Move
15108         declaration to...
15109         (merge_ranges): Returns bool.
15110         * tree.h (make_range): .. to here.
15111         (build_range_check): Likewise.
15112         (merge_ranges): Likewise. Renamed from merge_ranges.
15113         * c-typeck.c (parser_build_binary_op): Update calls to
15114         warn_logical_operator.
15115         * c-common.c (warn_logical_operator): Add new warning.
15116         * c-common.h (warn_logical_operator): Update declaration.
15117
15118 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15119
15120         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
15121
15122 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15123
15124         * doc/install.texi: Document MPC requirements, flags etc.
15125
15126         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
15127         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
15128         Evaluate constant arguments.
15129         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
15130         (fold_builtin_1): Likewise, also evaluate constant arguments.
15131         Remove superfluous break.
15132         (do_mpc_ckconv): New.
15133         * real.h: Include mpc.h.
15134         * toplev.c (print_version): Output MPC version info if available.
15135
15136 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
15137
15138         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
15139
15140 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15141
15142         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
15143         only once.
15144
15145 2009-05-15  Jan Hubicka  <jh@suse.cz>
15146
15147         * doc/invoke.texi (max-early-inliner-iterations): New flag.
15148         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
15149         (try_inline): Fix return value.
15150         (cgraph_decide_inlining_incrementally): Honor new value.
15151         (cgraph_early_inlining): Handle indirect inlining.
15152         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
15153
15154 2009-05-15  Jan Hubicka  <jh@suse.cz>
15155
15156         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
15157         * cgraphunit.c (cgraph_finalize_function): Set it.
15158         (cgraph_expand_function): Use it.
15159
15160 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
15161
15162         * real.c (encode_ieee_half): Define.
15163         (decode_ieee_half): Define.
15164         (ieee_half_format): Define.
15165         (arm_half_format): Define.
15166         * real.h (ieee_half_format): Declare.
15167         (arm_half_format): Declare.
15168
15169 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
15170
15171         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
15172         swapped, and reversed optabs exist before trying to use them.
15173
15174 2009-05-15  Paul Brook  <paul@codesourcery.com>
15175             Sandra Loosemore  <sandra@codesourcery.com>
15176
15177         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
15178         loads.  Allow PRE_DEC.
15179         (output_move_neon): Handle PRE_DEC.
15180         (arm_print_operand): Add 'A' for neon structure loads.
15181         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
15182         * config/arm/neon.md (neon_mov): Update comment.
15183         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
15184         calls.
15185         (Um): New constraint.
15186
15187 2009-05-15  Jan Hubicka  <jh@suse.cz>
15188
15189         Revert the following patch until testsuite fallout is fixed:
15190         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
15191         * cgraph.h (struct inline_summary): New filed self_wize,
15192         size_inlining_benefit, self_time and time_inlining_benefit.
15193         (struct cgraph_global_info): Replace insns by time ans size fields.
15194         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
15195         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
15196         (ipcp_update_callgraph): Do not touch function bodies.
15197         * ipa-inline.c: Include except.h
15198         (MAX_TIME): New constant.
15199         (overall_insns): Remove
15200         (overall_size, max_benefit): New static variables.
15201         (cgraph_estimate_time_after_inlining): New function.
15202         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
15203         (cgraph_clone_inlined_nodes): Update size.
15204         (cgraph_mark_inline_edge): Update size.
15205         (cgraph_estimate_growth): Use size info.
15206         (cgraph_check_inline_limits): Check size.
15207         (cgraph_default_inline_p): Likewise.
15208         (cgraph_edge_badness): Compute badness based on benefit and size cost.
15209         (cgraph_decide_recursive_inlining): Check size.
15210         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
15211         and times.
15212         (cgraph_decide_inlining): Likewise.
15213         (cgraph_decide_inlining_incrementally): Likewise; honor
15214         PARAM_EARLY_INLINING_INSNS.
15215         (likely_eliminated_by_inlining_p): New predicate.
15216         (estimate_function_body_sizes): New function.
15217         (compute_inline_parameters): Use it.
15218         * except.c (must_not_throw_labels): New function.
15219         * except.h (must_not_throw_labels): Declare.
15220         * tree-inline.c (init_inline_once): Kill inlining_weigths
15221         * tree-ssa-structalias.c: Avoid uninitialized warning.
15222         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
15223         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
15224         (PARAM_INLINE_CALL_COST): Remove.
15225         (PARAM_EARLY_INLINING_INSNS): New.
15226
15227 2009-05-15  Richard Guenther  <rguenther@suse.de>
15228
15229         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
15230         not TODO_update_ssa.
15231
15232 2009-05-15  Richard Guenther  <rguenther@suse.de>
15233
15234         PR tree-optimization/39999
15235         * gimple.h (gimple_expr_type): Use the expression type looking
15236         through useless conversions.
15237         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
15238         (vn_nary_op_insert_stmt): Likewise.
15239         (simplify_binary_expression): Likewise.
15240
15241 2009-05-15  Richard Guenther  <rguenther@suse.de>
15242
15243         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
15244         New options, enabled by default.
15245         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
15246         Document.
15247         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
15248         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
15249         * tree-ssa-structalias.c (gate_tree_pta): New function.
15250         (pass_build_alias): Use it.
15251
15252 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
15253
15254         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
15255         recurse on an invariant address if a conversion from a pointer
15256         type to a wider integer type is involved.
15257
15258 2009-05-15  Jan Hubicka  <jh@suse.cz>
15259
15260         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
15261         * cgraph.h (struct inline_summary): New filed self_wize,
15262         size_inlining_benefit, self_time and time_inlining_benefit.
15263         (struct cgraph_global_info): Replace insns by time ans size fields.
15264         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
15265         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
15266         (ipcp_update_callgraph): Do not touch function bodies.
15267         * ipa-inline.c: Include except.h
15268         (MAX_TIME): New constant.
15269         (overall_insns): Remove
15270         (overall_size, max_benefit): New static variables.
15271         (cgraph_estimate_time_after_inlining): New function.
15272         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
15273         (cgraph_clone_inlined_nodes): Update size.
15274         (cgraph_mark_inline_edge): Update size.
15275         (cgraph_estimate_growth): Use size info.
15276         (cgraph_check_inline_limits): Check size.
15277         (cgraph_default_inline_p): Likewise.
15278         (cgraph_edge_badness): Compute badness based on benefit and size cost.
15279         (cgraph_decide_recursive_inlining): Check size.
15280         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
15281         and times.
15282         (cgraph_decide_inlining): Likewise.
15283         (cgraph_decide_inlining_incrementally): Likewise; honor
15284         PARAM_EARLY_INLINING_INSNS.
15285         (likely_eliminated_by_inlining_p): New predicate.
15286         (estimate_function_body_sizes): New function.
15287         (compute_inline_parameters): Use it.
15288         * except.c (must_not_throw_labels): New function.
15289         * except.h (must_not_throw_labels): Declare.
15290         * tree-inline.c (init_inline_once): Kill inlining_weigths
15291         * tree-ssa-structalias.c: Avoid uninitialized warning.
15292         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
15293         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
15294         (PARAM_INLINE_CALL_COST): Remove.
15295         (PARAM_EARLY_INLINING_INSNS): New.
15296         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
15297         (inline-call-cost): Remove.
15298         (early-inlining-insns): New.
15299
15300 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
15301
15302         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
15303         for bounds.
15304         (print_int_cst_bounds_in_octal_p): Likewise.
15305         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
15306         with subtypes.
15307         * dwarf2out.c (base_type_die): Likewise.
15308         (is_subrange_type): Delete.
15309         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
15310         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
15311         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
15312         if the destination type is boolean.
15313         (build_range_check): Do not special-case subtypes.
15314         (fold_sign_changed_comparison): Likewise.
15315         (fold_unary): Likewise.
15316         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
15317         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
15318         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
15319         * tree.c (subrange_type_for_debug_p): New predicate based on the
15320         former is_subrange_type.
15321         * tree.h (subrange_type_for_debug_p): Declare.
15322         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
15323         (convert_affine_scev): Remove call to above function.
15324         (chrec_convert_aggressive): Likewise.
15325         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
15326         false for conversions involving subtypes.
15327         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
15328         (vrp_val_min): Likewise.
15329         (needs_overflow_infinity): Likewise.
15330         (extract_range_from_unary_expr): Likewise.
15331
15332 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
15333
15334         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
15335         * config/frv/frv.c: Likewise.
15336         * config/s390/s390.c: Likewise.
15337         * config/sparc/sparc.h: Likewise.
15338         * config/i386/i386.h: Likewise.
15339         * config/i386/i386.c: Likewise.
15340         * config/crx/crx.c: Likewise.
15341         * config/m68hc11/m68hc11.h: Likewise.
15342         * config/iq2000/iq2000.c: Likewise.
15343         * config/mn10300/mn10300.h: Likewise.
15344         * config/mn10300/mn10300.c: Likewise.
15345         * config/m68k/m68k.c: Likewise.
15346         * config/rs6000/rs6000.c: Likewise.
15347         * config/rs6000/xcoff.h: Likewise.
15348         * config/rs6000/linux64.h: Likewise.
15349         * config/rs6000/sysv4.h: Likewise.
15350         * config/score/score3.c: Likewise.
15351         * config/score/score7.c: Likewise.
15352         * config/score/score.c: Likewise.
15353         * config/arm/arm.md: Likewise.
15354         * config/mips/mips.c: Likewise.
15355         * config/mips/mips.md: Likewise.
15356         * config/bfin/bfin.h: Likewise.
15357         * config/pa/pa.c: Likewise.
15358         * config/pa/constraints.md: Likewise.
15359
15360         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
15361         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
15362         * config/pdp11/pdp11.h: Use memory_address_p instead.
15363
15364 2009-05-14  Ian Lance Taylor  <iant@google.com>
15365
15366         * passes.c (finish_optimization_passes): Change i to int.
15367         * plugin.c (plugins_active_p): Change event to int.
15368         (dump_active_plugins): Likewise.
15369         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
15370         Add cast.
15371         * tree.c (tree_range_check_failed): Change c to unsigned int.
15372         (omp_clause_range_check_failed): Likewise.
15373         (build_common_builtin_nodes): Change mode to int.  Add cast.
15374         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
15375         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
15376
15377         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
15378         ++ or -- with a variable of enum type.
15379
15380 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
15381
15382         PR driver/40144
15383         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
15384
15385 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
15386
15387         * store-motion.c: Do not include params.h
15388         * Makefile.in: Fix dependencies for various files.
15389
15390 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
15391
15392         * auto-inc-dec.c: Fix pass description, remove apparent
15393         accidental duplication.
15394
15395 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15396
15397         PR middle-end/40147
15398         * ipa-utils.h (memory_identifier_string): Moved to ...
15399         * tree.h (memory_identifier_string): Here.  Add GTY(()).
15400
15401 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
15402
15403         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
15404         in the former documentation of...
15405         (GO_IF_LEGITIMATE_ADDRESS): ... this.
15406         * ira-conflicts.c (get_dup_num): Use address_operand.
15407         * targhooks.c (default_legitimate_address_p): New.
15408         * targhooks.h (default_legitimate_address_p): New.
15409         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
15410         Call hook.
15411         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
15412         * target.h (struct target): Add legitimate_address_p.
15413         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
15414         (TARGET_INITIALIZER): Include it.
15415
15416         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15417         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
15418         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
15419         (TARGET_LEGITIMATE_ADDRESS_P): New.
15420
15421         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15422         (REG_OK_STRICT_P): Delete.
15423         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
15424         (frv_legitimate_address_p_1): ... this.
15425         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
15426         (frv_legitimate_address_p_1): ... the renamed old
15427         frv_legitimate_address_p.
15428         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
15429         (TARGET_LEGITIMATE_ADDRESS_P): New.
15430
15431         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15432         * config/s390/s390-protos.h (legitimate_address_p): Remove.
15433         * config/s390/s390.c (legitimate_address_p): Rename to...
15434         (s390_legitimate_address_p): ... this, make static.
15435         (legitimize_address): Adjust call.
15436         (TARGET_LEGITIMATE_ADDRESS_P): New.
15437         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
15438
15439         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15440         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
15441         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
15442         (TARGET_LEGITIMATE_ADDRESS_P): New.
15443
15444         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15445         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
15446         * config/spu/spu.c (spu_legitimate_address): Rename to...
15447         (spu_legitimate_address_p): ... this, make static.
15448         (TARGET_LEGITIMATE_ADDRESS_P): New.
15449
15450         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15451         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
15452         * config/sparc/sparc.c (legitimate_address_p): Rename to...
15453         (sparc_legitimate_address_p): ... this, make static and return bool.
15454         (legitimize_address): Adjust call.
15455         (TARGET_LEGITIMATE_ADDRESS_P): New.
15456
15457         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15458         * config/i386/i386-protos.h (legitimate_address_p): Remove.
15459         * config/i386/i386.c (legitimate_address_p): Rename to...
15460         (ix86_legitimate_address_p): ... this, make static.
15461         (constant_address_p): Move after it, adjust call.
15462         (TARGET_LEGITIMATE_ADDRESS_P): New.
15463
15464         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15465         * config/avr/avr-protos.h (legitimate_address_p): Remove.
15466         * config/avr/avr.c (legitimate_address_p): Rename to...
15467         (avr_legitimate_address_p): ... this, make static.
15468         (legitimize_address): Adjust call.
15469         (TARGET_LEGITIMATE_ADDRESS_P): New.
15470
15471         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15472         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
15473         * config/crx/crx.c (crx_legitimate_address_p): Make static.
15474         (TARGET_LEGITIMATE_ADDRESS_P): New.
15475
15476         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15477         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
15478         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
15479         (TARGET_LEGITIMATE_ADDRESS_P): New.
15480
15481         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15482         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
15483         Remove.
15484         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15485         Make static.
15486         (TARGET_LEGITIMATE_ADDRESS_P): New.
15487
15488         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15489         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
15490         Remove.
15491         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
15492         Rename to...
15493         (m68hc11_legitimate_address_p): ... this, make static.
15494         (go_if_legitimate_address_internal): Rename to...
15495         (m68hc11_legitimate_address_p_1): ... this.
15496         (legitimize_address): Adjust call.
15497         (TARGET_LEGITIMATE_ADDRESS_P): New.
15498
15499         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15500         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
15501         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
15502         (TARGET_LEGITIMATE_ADDRESS_P): New.
15503
15504         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15505         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
15506         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
15507         (mn10300_legitimate_address_p): ... this, make static.
15508         (TARGET_LEGITIMATE_ADDRESS_P): New.
15509
15510         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15511         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
15512         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
15513         (TARGET_LEGITIMATE_ADDRESS_P): New.
15514
15515         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15516         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
15517         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
15518         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15519         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
15520         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
15521         (rs6000_legitimate_address_p): ... this, make static.
15522         (TARGET_LEGITIMATE_ADDRESS_P): New.
15523         (REG_MODE_OK_FOR_BASE_P): Delete.
15524         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
15525
15526         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15527         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
15528         Delete.
15529         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
15530         static, adjust types.
15531         (TARGET_LEGITIMATE_ADDRESS_P): New.
15532
15533         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15534         * config/score/score.c (score_address_p): Rename to...
15535         (score_legitimate_address_p): ... this.
15536         (TARGET_LEGITIMATE_ADDRESS_P): New.
15537         * config/score/score3.c (score3_address_p): Rename to...
15538         (score3_legitimate_address_p): ... this.
15539         * config/score/score7.c (score7_address_p): Rename to...
15540         (score7_legitimate_address_p): ... this.
15541
15542         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
15543         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
15544         GO_IF_LEGITIMATE_ADDRESS): Delete.
15545         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
15546         thumb2_legitimate_address_p): Delete.
15547         (arm_legitimate_address_p): Rename to...
15548         (arm_legitimate_address_outer_p): ... this.
15549         * config/arm/constraints.md ("Uq"): Adjust call.
15550         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
15551         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
15552         to...
15553         (arm_legitimate_address_outer_p): ... this.
15554         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
15555         static.
15556         (TARGET_LEGITIMATE_ADDRESS_P): New.
15557
15558         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15559         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
15560         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
15561         (TARGET_LEGITIMATE_ADDRESS_P): New.
15562
15563         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15564         * config/vax/vax-protos.h (legitimate_address_p): Remove.
15565         * config/vax/vax.c (legitimate_address_p): Rename to...
15566         (vax_legitimate_address_p): ... this, make static.
15567         (TARGET_LEGITIMATE_ADDRESS_P): New.
15568
15569         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15570         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
15571         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
15572         (TARGET_LEGITIMATE_ADDRESS_P): New.
15573
15574         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15575         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
15576         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
15577         (mmix_legitimate_address_p): ... this, make static.
15578         (TARGET_LEGITIMATE_ADDRESS_P): New.
15579
15580         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15581         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
15582         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
15583         (TARGET_LEGITIMATE_ADDRESS_P): New.
15584
15585 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
15586
15587         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
15588         of MODE_COMPLEX_INT.
15589
15590 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15591
15592         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
15593         LCT_NORMAL in function call.
15594         * mips-tdump.c (print_file_desc): Add cast to enum type.
15595         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
15596         (mark_stabs): Add casts to enum types.
15597         (parse_stabs_common): Add casts to enum types.
15598
15599 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
15600
15601         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
15602         Check for invalid values of LETTER.
15603
15604 2009-05-13  Taras Glek  <tglek@mozilla.com>
15605
15606         * attribs.c (register_attribute): moved out attribute registration
15607         into register_attribute.
15608         * doc/plugins.texi: Documented register_attribute and
15609         PLUGIN_ATTRIBUTES.
15610         * gcc-plugin.h: Added forward decl for register_attribute.
15611         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
15612         * plugin.c (register_callback, invoke_plugin_callbacks): Added
15613         PLUGIN_ATTRIBUTES boilerplate.
15614
15615 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
15616
15617         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
15618         values even in sentinel and empty entries.
15619         (ms_printf_flag_specs):  Likewise.
15620         (ms_scanf_flag_specs):  Likewise.
15621         (ms_strftime_flag_specs):  Likewise.
15622         (ms_print_char_table):  Likewise.
15623         (ms_scan_char_table):  Likewise.
15624         (ms_time_char_table):  Likewise.
15625
15626 2009-05-13  Doug Kwan  <dougkwan@google.com>
15627
15628         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
15629
15630 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
15631
15632         * config/mips/mips.md (store): Add attributes for QI and HI.
15633         Update comment.
15634         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
15635         (truncdi<mode>2): ... this new pattern.
15636
15637 2009-05-13  Brad Hards  <bradh@kde.org>
15638
15639         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
15640
15641 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
15642             Ben Elliston <bje@au.ibm.com>
15643
15644         PR middle-end/40035
15645         * dse.c (check_mem_read_rtx): Guard against width == -1.
15646
15647 2009-05-13  Michael Matz  <matz@suse.de>
15648
15649         PR middle-end/39976
15650         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
15651         (trivially_conflicts_p): New function.
15652         (insert_backedge_copies): Use it.
15653
15654 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
15655
15656         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
15657         (handle_stdc_pragma): Use new enum constant names.
15658         (handle_pragma_float_const_decimal64): Ditto.
15659
15660 2009-05-13  Ian Lance Taylor  <iant@google.com>
15661
15662         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
15663         tree.def.
15664
15665 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
15666
15667         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
15668         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
15669         multilibs.
15670         * config/m68k/m68k.h (FL_UCLINUX): Define.
15671
15672 2009-05-13  Jan Hubicka  <jh@suse.cz>
15673
15674         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
15675
15676 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
15677
15678         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
15679         unless -fschedule-insns is specified.
15680
15681 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
15682
15683         PR target/39561
15684         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
15685         TARGET_EXPAND_CBRANCHDI4.
15686         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
15687         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
15688         (cmpeqdi): Fix comment.
15689
15690 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
15691
15692         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
15693         (sh_legitimate_address_p): Likewise.
15694         * config/sh/sh.c (sh_legitimate_index_p): New.
15695         (sh_legitimate_address_p): Likewise.
15696         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
15697         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
15698         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
15699         (MAYBE_BASE_REGISTER_RTX_P): New macro.
15700         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
15701         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
15702         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
15703         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
15704         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
15705
15706 2009-05-12  Jan Hubicka  <jh@suse.cz>
15707
15708         * tree-inline.c (estimate_operator_cost): Add operands;
15709         when division happens by constant, it is cheap.
15710         (estimate_num_insns): Loads and stores are not having cost of 0;
15711         EH magic stuff is cheap; when computing runtime cost of switch,
15712         use log2 base of amount of its cases; builtin_expect has cost of 0;
15713         compute cost for moving return value of call.
15714         (init_inline_once): Initialize time_based flags.
15715         * tree-inline.h (eni_weights_d): Add time_based flag.
15716
15717 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
15718
15719         * df-core.c: Update head documentation.
15720
15721 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
15722
15723         PR bootstrap/40118
15724         * rs6000.c (rs6000_generate_compare): Use op1b instead of
15725         shadowing exisiting variable op1.
15726
15727 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
15728
15729         PR target/37179
15730         * config/i386/driver-i386.c (processor_signatures): New enum.
15731         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
15732         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
15733         processor signature to detect geode processor.
15734
15735 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
15736
15737         Revert:
15738
15739         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
15740
15741         * optabs.c (prepare_cmp_insn): Temporarily disable test that
15742         causes spurious differences between trunk and cond-optab branch.
15743
15744 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
15745
15746         * dojump.c (compare_from_rtx): Delete.
15747         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
15748         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
15749         if the comparison does not satisfy the predicate; test predicates for
15750         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
15751         further if one existing pattern fails.
15752         * expr.h (compare_from_rtx): Delete.
15753         (prepare_operand): Declare it.
15754         * optabs.c: Change "lib call" to "libcall" throughout.
15755         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
15756         HAVE_conditional_trap, emit_cmp_insn): Delete.
15757         (can_compare_p): Delete cmp_optab case.
15758         (prepare_float_lib_cmp): Return an rtx and a machine mode.
15759         Accept other parameters by value.
15760         (prepare_operand): Make non-static.
15761         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
15762         other parameters by value.  Try to widen operands here based on
15763         an optab_methods argument and looking at cbranch_optab.
15764         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
15765         loop.  Use cbranch_optab directly.
15766         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
15767         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
15768         assertion.
15769         (emit_conditional_move, emit_conditional_add): Inline what's needed
15770         of compare_from_rtx, using new prepare_cmp_insn for the rest.
15771         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
15772         with COMPARE.  Move cmov_optab and cstore_optab above
15773         with cbranch_optab, move cmp_optab down with ucmp_optab,
15774         remove tst_otpab.  Do not initialize trap_rtx.
15775         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
15776         for trap code.  Do not check HAVE_conditional_trap.  Use
15777         prepare_cmp_insn.  Accept no predicate for operand 3.
15778         * optabs.h (OTI_cmp): Mark as used only for libcalls.
15779         (OTI_ctrap, ctrap_optab): New.
15780         (tst_optab): Delete.
15781         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
15782         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
15783         with lookup of ctrap_optab.
15784         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
15785         Delete.
15786         (ctrap_optab): New.
15787
15788         * combine.c (combine_simplify_rtx, simplify_set): Do not
15789         special case comparing against zero for cc0 machines.
15790         * simplify-rtx.c (simplify_binary_operation_1): Never remove
15791         COMPARE on cc0 machines.
15792         (simplify_relational_operation): Return a new expression when
15793         a COMPARE could be removed.
15794         * final.c (final_scan_insn): Compare cc_status values
15795         against LHS of a (compare FOO (const_int 0)) cc0 source.
15796         Also check if cc_status.value is the full compare.
15797
15798         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
15799         (cstoreMM4): Document.
15800         (conditional_trap): Document ctrapMM4 instead.
15801         (sync_compare_and_swapMM): Refer to cbranchcc4.
15802         (Dependent Patterns): Eliminate obsolete information referring to
15803         the old jump optimization phase.
15804         (Canonicalization): Include cbranchcc4 case, omit canonicalization
15805         of compares with 0 on cc0 machines.
15806         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
15807         avoiding references to cc0.  Remove text about storing operands
15808         in cmpMM.
15809         * doc/tm.texi (Condition Codes): Include blurb on different
15810         condition code representations, separate into subsections for
15811         CC0, MODE_CC and conditional execution.
15812
15813         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
15814         alpha_emit_setcc): Accept operands and a machine mode.
15815         * config/alpha/alpha.c (alpha_emit_conditional_branch):
15816         Get code/op0/op1 from operands, use machine mode argument
15817         instead of alpha_compare.fp_p.  Emit the branch here.
15818         (alpha_emit_setcc): Likewise, and return boolean.
15819         (alpha_emit_conditional_move): Likewise.  Assert that
15820         cmp_op_mode == cmp_mode, and simplify accordingly.
15821         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
15822         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
15823         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
15824         Delete.
15825         (stack probe test): Use cbranchdi4.
15826         * config/alpha/predicates.md (alpha_cbranch_operator): New.
15827
15828         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
15829         * config/arc/arc.h (movsicc, movsfcc): Use it.
15830         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
15831         (cbranchsi4, cstoresi4): New.
15832         (cmpsi, bCC and sCC expanders): Remove.
15833
15834         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
15835         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
15836         * config/arm/predicates.md (arm_comparison_operator): Only include
15837         floating-point operators if there is a hardware floating-point unit.
15838         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
15839         deferring to cbranch_cc and cstore_cc respectively.
15840         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
15841         cbranch_cc, cstore_cc): New.
15842         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
15843         arm_compare_op1.
15844         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
15845
15846         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
15847         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
15848         as an argument.
15849         (adjust_insn_length): Adjust calls.
15850         (avr_reorg): Handle (compare (foo) (const_int 0)).
15851         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
15852         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
15853         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
15854         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
15855         (bCC): Remove.
15856         (cbranchqi4, cbranchhi4, cbranchsi4): New.
15857         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
15858
15859         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
15860         (cbranchsi4, cstorebi4, cstoresi4): New.
15861         (movbisi): This insn is duplicate, split it to zero_extend.
15862         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
15863         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
15864         (bfin_optimize_loop): Use cbranch expander.
15865         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
15866         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
15867         (bfin_bimode_comparison_operator): ... this.
15868         (bfin_direct_comparison_operator): New.
15869
15870         * config/cris/cris.c (cris_normal_notice_update_cc): Look
15871         inside (compare FOO (const_int 0)).
15872         (cris_rtx_costs): Handle ZERO_EXTRACT.
15873         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
15874         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
15875         (*tstdi_v32): Delete.
15876         (*cmpdi_non_v32): Add M alternative for operand 1.
15877         (cmpsi, cmp<mode>): Make private.
15878         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
15879         with COMPARE.
15880         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
15881
15882         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
15883         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
15884         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
15885         (cc_reg_operand): New.
15886         (any_cond): Delete.
15887         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
15888         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
15889         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
15890         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
15891         crx_expand_scond): Delete.
15892
15893         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
15894         (cbranchsi4): New.
15895         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
15896         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
15897
15898         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
15899         cstoresi4, cstoresf4, cstoredf4): New.
15900         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
15901         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
15902         Receive the entire operands array.
15903         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
15904         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
15905         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
15906         Get test/op0/op1 from the operands array.
15907         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
15908
15909         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
15910         (h8300_expand_store): New.
15911         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
15912         (const_int 0)).
15913         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
15914         (h8300_expand_store): New.
15915         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
15916         or do not try to produce (set (cc0) REG).
15917         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
15918         change a compare into a move to a scratch register.  Disable some
15919         peepholes when comparing with zero.
15920         (tstsi, tsthi, tstsi, cmpqi): Make private.
15921         (cmphi): Delete.
15922         (bCC, sCC): Delete.
15923         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
15924         cstoresi4): New.
15925
15926         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
15927         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
15928         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
15929         (ix86_emit_i387_log1p): Use cbranchxf2.
15930         (ix86_expand_setcc): Return void.
15931         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
15932         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
15933         cmp<MODEF>, cmpcc): Remove.
15934         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
15935         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
15936         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
15937         (sCC and bCC expanders): Remove.
15938         (stack_protect_test): Use cbranchcc4.
15939
15940         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
15941         Delete.
15942         (ia64_expand_compare): Accept three rtx by reference and return void.
15943         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
15944         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
15945         from *expr.  Update *expr with the BImode comparison to do.
15946         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
15947         cmptf, bCC, sCC, conditional_trap): Delete.
15948         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
15949         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
15950         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
15951         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
15952         * config/ia64/predicates.md (ia64_cbranch_operator): New.
15953
15954         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
15955         type of last argument.
15956         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
15957         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
15958         use machine mode argument instead of branch_type.  Remove dead
15959         code for floating-point comparisons.
15960         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
15961         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
15962         Remove.
15963         (cbranchsi4, cstoresi4): New.
15964         * config/iq2000/predicates.md (reg_or_const_operand): New.
15965
15966         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
15967         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
15968         (b<code>_op): Rewrite to...
15969         (bcc_op): ... this, using match_operator.
15970         (s<code>_op): Rewrite to...
15971         (scc_op): ... this, using match_operator.
15972         (s<code>_24_op): Rewrite to...
15973         (scc_op_24): ... this, using match_operator.
15974         (s<code>_<mode>): Rewrite to...
15975         (cstore<mode>4): ... this, using match_operator.
15976         (s<code>_<mode>_24): Rewrite to...
15977         (cstore<mode>4_24): ... this, using match_operator.
15978         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
15979         m32c_unpend_compare, m32c_expand_scc): Delete.
15980         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
15981         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
15982         (m32c_expand_movcc): Change NE to EQ if necessary.
15983         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
15984
15985         * config/m32r/m32r-protos.h (gen_cond_store): New.
15986         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
15987         (gen_cond_store): New, from sCC patterns.
15988         (m32r_expand_block_move): Use cbranchsi4.
15989         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
15990         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
15991         (cbranchsi4, cstoresi4): New.
15992
15993         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
15994         Delete.
15995         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
15996         (m68hc11_notice_update_cc): Look into a compare with 0.
15997         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
15998         Delete.
15999         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
16000         cmphi, cmpqi, bCC): Delete.
16001         (cbranchsi4, cbranchhi4, cbranchqi4): New.
16002         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
16003         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
16004         sets with COMPARE.
16005
16006         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
16007         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
16008         * config/m68k/constraints.md (H): New.
16009         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
16010         the define_insn below.
16011         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
16012         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
16013         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
16014         patterns): Wrap RHS with COMPARE.
16015         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
16016         (*cmpdi_internal): Name this pattern.
16017         (cmpdi): Change to define_insn.
16018         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
16019         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
16020         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
16021         predicate.
16022         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
16023         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
16024         (conditional_trap): Change to...
16025         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
16026         (*conditional_trap): Use the ordered_comparison_operator and
16027         const1_operand predicates.
16028         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
16029         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
16030         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
16031         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
16032
16033         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
16034         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
16035         (mcore_gen_compare): New.
16036         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
16037         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
16038         (mcore_gen_compare): ... this.
16039         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
16040         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
16041         (stack probe pattern): Use cbranchsi4.
16042
16043         * config/mips/predicates.md (mips_cstore_operator): New.
16044         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
16045         * config/mips/mips.md (any_cond): Delete.
16046         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
16047         always succeed.
16048         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
16049         fixuns_truncsfdi2): Use cbranch patterns.
16050         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
16051         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
16052         Adjust call to mips_expand_conditional_branch.
16053         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
16054         cstore<GPR:mode>4.
16055         * config/mips/mips-protos.h (mips_expand_conditional_branch,
16056         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
16057         * config/mips/mips.c (cmp_operands): Delete.
16058         (mips_emit_compare): Get comparison operands from *op0/*op1.
16059         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
16060         that it succeeds.  Use op0/op1 instead of cmp_operands.
16061         (mips_expand_conditional_branch, mips_expand_conditional_move,
16062         mips_expand_conditional_trap): Likewise.
16063         (mips_block_move_loop): Use cbranch patterns.
16064         * config/mips/mips.h (cmp_operands): Delete.
16065
16066         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
16067         (mmix_gen_compare_reg): Just return a register in the right CC mode.
16068         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
16069         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
16070         (*cmpcc_folded): Rename to...
16071         (*cmpdi_folded): this.
16072         (*cmpcc): Rename to...
16073         (*cmps): ... this.
16074         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
16075         (bCC): Remove.
16076         (cbranchdi4): New.
16077         (cbranchdf4): New.  Handle invalid comparisons here.
16078         * config/mmix/predicates.md (float_comparison_operator): New.
16079
16080         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
16081         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
16082         * config/mn10300/mn10300.md (tst): Delete.
16083         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
16084         Name these patterns and wrap RHS in a compare.
16085         (*cmpsi): Make this pattern private.  Include tst.
16086         (*cmpsf): Make this pattern private.
16087         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
16088         (compare with zero peepholes): Likewise.
16089         (bCC): Remove.
16090         (cbranchsi4, cbranchsf4): New.
16091         (casesi): Use cbranchsi4.
16092
16093         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
16094         hppa_branch_type): Delete.
16095         (return_addr_rtx): Use cbranchsi4.
16096         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
16097         Emit CCFPmode comparison here.
16098         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
16099         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
16100         hppa_branch_type): Delete.
16101         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
16102         (movsicc, movdicc): Remove references to hppa_compare_op0,
16103         hppa_compare_op1 and compare_from_rtx.
16104         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
16105         (casesi): Use cbranchsi4.
16106
16107         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
16108         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
16109         * config/pdp11/pdp11.md (register_or_const0_operand): New.
16110         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
16111         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
16112         (bCC): Delete.
16113         (cbranchdf4, cbranchhi4, cbranchqi4): New.
16114         (*branch, *branch_inverted): New.
16115
16116         * config/picochip/picochip.md (cbranchhi4): Use
16117         ordered_comparison_operator.
16118         (cmphi, bCC): Remove.
16119
16120         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
16121         (trap_comparison_operator): Delete.
16122         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
16123         rs6000_emit_cbranch): Accept mode and operands.
16124         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
16125         rs6000_compare_fp_p): Delete.
16126         (rs6000_generate_compare): Accept mode and comparison.  Extract code
16127         and op0/op1 from there.  Replace references to rs6000_compare_op0
16128         and rs6000_compare_op1.
16129         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
16130         extract result from passed operands.
16131         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
16132         extract loc from passed operands.
16133         (rs6000_emit_cmove): Likewise.
16134         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
16135         rs6000_compare_fp_p): Delete.
16136         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
16137         (cbranch<GPR>4, cbranch<FP>4): New.
16138         (cstore<mode>4): New.  Consolidate here all choices about when to use
16139         portable or specialized sCC sequences.
16140         (stack_protect_test): Use cbranchsi4.
16141         (conditional_trap): Replace with ctrap<GPR>4.
16142         (conditional trap insn): Replace trap_comparison_operator with
16143         ordered_comparison_operator.
16144
16145         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
16146         (s390_emit_prologue): Use ctrap.
16147         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
16148         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
16149         New predicates replacing...
16150         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
16151         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
16152         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
16153         (add<mode>cc): Do not use s390_compare_op0/op1.
16154         (s<code>): Change to...
16155         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
16156         (seq): Change to...
16157         (cstorecc4): ... this.  Handle EQ or NE equally.
16158         (*sne): Un-privatize for use in cstorecc4.
16159         (b<code>): Change to...
16160         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
16161         (conditional_trap): Replace with...
16162         (ctrap<GPR>4, ctrap<FP>4): ... these.
16163         (stack_protect): Use cbranchcc4.
16164
16165         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
16166         * config/score/score-protos.h (score_gen_cmp): Delete.
16167         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
16168         (score_block_move-loop): Use cbranchsi4.
16169         * config/score/score.md (cbranchsi4): New.
16170         (cmpsi, bCC): Delete.
16171         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
16172         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
16173         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
16174         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
16175         * config/score/score3.h (score3_gen_cmp): Delete.
16176         * config/score/score7.h (score7_gen_cmp): Delete.
16177
16178         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
16179         (sh_emit_scc_to_t): ... this.  Return void.
16180         (from_compare): Rename to...
16181         (sh_emit_compare_and_branch): ... this.
16182         (sh_emit_compare_and_set): New.
16183         (sh_expand_t_scc): Accept operands.
16184         * config/sh/predicates.md (sh_float_comparison_operator): New.
16185         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
16186         (prepare_scc_operands): Rename to...
16187         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
16188         arguments.
16189         (sh_emit_cheap_store_flag): New.
16190         (sh_emit_set_t_insn): New.
16191         (from_compare): Rename to...
16192         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
16193         handling of TARGET_SH2E floating point to avoid recursive call.
16194         Generate branch here.
16195         (sh_emit_compare_and_set): New.
16196         (sh_expand_t_scc): Get op0/op1 from arguments.
16197         (sh_emit_cheap_store_flag): New.
16198         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
16199         cases.
16200         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
16201         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
16202         (movsicc, movdicc): Do nothing when it recreated operands from
16203         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
16204         prepare_scc_operands (now sh_emit_scc_to_t).
16205         (udivdi3): Use cstoresi4.
16206         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
16207         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
16208         (cbranchint4_media, cbranchfp4_media): New.
16209         (casesi): Use cbranchdi4.
16210         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
16211         Delete.
16212         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
16213         (movnegt): Remove second operand.
16214         (cbranchsf4, cbranchdf4): New.
16215         (stack_protect): Use cbranchdi4/cbranchsi4.
16216
16217         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
16218         (gen_compare_reg): Accept comparison, extract part of it to...
16219         (gen_compare_reg_1): ... this.
16220         (gen_compare_operator): Delete.
16221         (gen_v9_scc): Accept separate destination, comparison code and arms.
16222         Do not use sparc_compare_op0/sparc_compare_op1.
16223         (emit_scc_insn, emit_conditional_branch_insn): New.
16224         (emit_v9_brxx): Make static.  Remove useless assertion.
16225         (sparc_emit_float_lib_cmp): Return RTL instead of calling
16226         emit_cmp_insn.
16227         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
16228         * config/sparc/sparc-protos.h (gen_compare_reg,
16229         sparc_emit_float_lib_cmp): Adjust prototype.
16230         (emit_scc_insn, emit_conditional_branch_insn): New.
16231         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
16232         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
16233         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
16234         iterators to the top.
16235         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
16236         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
16237         snedi_special_trunc): Delete.
16238         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
16239         and snedi_special_trunc.
16240         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
16241         cbranchdi4, cbranch<F:mode>4): New.
16242         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
16243         here.  Use gen_compare_reg instead of gen_compare_operator.
16244         (conditional_trap): Replace with...
16245         (ctrapsi4, ctrapdi4): ... this.
16246         (stack_protect_test): Use cbranchcc4.
16247
16248         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
16249         argument to rtx.
16250         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
16251         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
16252         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
16253         from operands[0] or operands[3] depending on is_set.
16254         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
16255         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
16256         cmpdf, bCC), sCC: Remove.
16257         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
16258         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
16259         cstoredf4): New.
16260         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
16261         spu_emit_branch_or_set.
16262
16263         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
16264         Add two arguments.
16265         * config/stormy16/stormy16.h (xstormy16_compare_op0,
16266         xstormy16_compare_op1): Delete.
16267         * config/stormy16/stormy16.c (xstormy16_compare_op0,
16268         xstormy16_compare_op1): Delete.
16269         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
16270         Adjust calls.
16271         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
16272         (cmphi, cmpsi, bCC): Remove.
16273
16274         * config/v850/v850.md (tstsi, cmpsi): Fold into...
16275         (*cmpsi): ... this one.
16276         (cbranchsi4, cstoresi4): New.
16277         (bCC expanders): Delete.
16278         (sCC insns): Fold into...
16279         (*setcc): ... this one.
16280         (casesi): Do not use gen_cmpsi and gen_bgtu.
16281         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
16282         (movsicc): Simplify.
16283         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
16284
16285         * config/vax/vax-protos.h (cond_name): New.
16286         (vax_output_conditional_branch): Remove.
16287         * config/vax/vax.c (cond_name): New.
16288         (vax_output_conditional_branch): Remove.
16289         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
16290         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
16291         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
16292         (bit<VAXint>): Wrap source with (compare).
16293         (b<code> and following unnamed pattern): Rename to *branch and
16294         *branch_reversed.  Change macroization to match_operator.
16295         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
16296
16297         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
16298         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
16299         Change last argument to machine_mode.
16300         (xtensa_expand_scc): Add machine_mode argument.
16301         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
16302         (gen_conditional_move, xtensa_expand_conditional_branch,
16303         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
16304         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
16305         Adjust operand numbers.
16306         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
16307         Delete.
16308         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
16309         (cmpsi, cmpsf, b<code>, s<code>): Delete.
16310         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
16311
16312 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
16313
16314         * optabs.c (prepare_cmp_insn): Temporarily disable test that
16315         causes spurious differences between trunk and cond-optab branch.
16316
16317 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
16318
16319         PR target/37137
16320         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
16321
16322 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
16323
16324         * tree.c (iterative_hash_pointer): Delete.
16325         (iterative_hash_expr): Short-circuit handling of NULL pointer.
16326         Hash UIDs and versions of SSA names.  Don't special-case built-in
16327         function declarations.
16328
16329 2009-05-11  Ian Lance Taylor  <iant@google.com>
16330
16331         PR bootstrap/40103
16332         * graphite.c: Force -Wc++-compat to only be a warning before
16333         #including "cloog/cloog.h".
16334
16335 2009-05-11  Martin Jambor  <mjambor@suse.cz>
16336
16337         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
16338
16339 2009-05-11  Jan Hubicka  <jh@suse.cz>
16340
16341         * tree-ssa-loop-ivcanon.c: Include target.h
16342         (struct loop_size): new structure.
16343         (constant_after_peeling): New predicate.
16344         (tree_estimate_loop_size): New function.
16345         (estimated_unrolled_size): Rewrite for new estimates.
16346         (try_unroll_loop_completely): Use new estimates.
16347         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
16348
16349 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16350
16351         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
16352         libcpp interface change.
16353         (spu_macro_to_expand): Likewise.
16354
16355 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
16356
16357         PR tree-optimization/40026
16358         * gimplify.c (gimplify_init_constructor): Change initial conditional
16359         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
16360         optimize_compound_literals_in_ctor.
16361
16362 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
16363
16364         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
16365         New devices.
16366         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
16367
16368 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
16369
16370         * tree-vect-data-refs.c (vect_analyze_group_access): Use
16371         HOST_WIDE_INT for gap.
16372
16373 2009-05-11  Ira Rosen  <irar@il.ibm.com>
16374
16375         PR tree-optimization/40074
16376         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
16377         account in group size and step comparison.
16378
16379 2009-05-11  Richard Guenther  <rguenther@suse.de>
16380
16381         * passes.c (init_optimization_passes): Strip now incorrect comment.
16382         (execute_function_todo): Do not set PROP_alias.
16383         * tree-pass.h (PROP_alias): Remove.
16384         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
16385         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
16386         * tree-nrv.c (pass_return_slot): Likewise.
16387         * tree-object-size.c (pass_object_sizes): Likewise.
16388         * tree-ssa-dom.c (pass_dominator): Likewise.
16389         (pass_phi_only_cprop): Likewise.
16390         * tree-ssa-dse.c (pass_dse): Likewise.
16391         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
16392         (pass_cselim): Likewise.
16393         * tree-ssa-pre.c (pass_pre): Likewise.
16394         (pass_fre): Likewise.
16395         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16396         * tree-ssa-sink.c (pass_sink_code): Likewise.
16397         * tree-stdarg.c (pass_stdarg): Likewise.
16398         * tree-tailcall.c (pass_tail_calls): Likewise.
16399         * tree-vrp.c (pass_vrp): Likewise.
16400
16401 2009-05-10  Ian Lance Taylor  <iant@google.com>
16402
16403         * basic-block.h (enum profile_status): Break out of struct
16404         control_flow_graph.
16405         * cgraph.h (struct inline_summary): Break out of struct
16406         cgraph_local_info.
16407         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
16408         of struct cgraph_order_sort.
16409         * combine.c (enum undo_kind): New enum, broken out of struct undo.
16410         * cse.c (struct branch_path): Break out of struct
16411         cse_basic_block_data.
16412         * except.h (enum eh_region_type): Break out of struct eh_region.
16413         * gcc.c (enum add_del): Break out of struct modify_target.
16414         * genrecog.c (enum decision_type): Break out of struct decision_test.
16415         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
16416         ggc_pch_data.
16417         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
16418         * regmove.c (enum match_use): New enum, broken out of struct match.
16419         * sched-int.h (enum post_call_group): New enum, broken out of
16420         struct deps.
16421         (struct deps_reg): Break out of struct deps.
16422         * target.h (struct asm_int_op): Break out of struct gcc_target.
16423         * tree-eh.c (struct goto_queue_node): Break out of struct
16424         leh_tf_state.
16425         * tree-inline.h (enum copy_body_cge_which): Break out of
16426         copy_body_data.
16427         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
16428
16429         * c-decl.c (in_struct, struct_types): New static variables.
16430         (pushtag): Add loc parameter.  Change all callers.
16431         (lookup_tag): Add ploc parameter.  Change all callers.
16432         (check_compound_literal_type): New function.
16433         (parser_xref_tag): Add loc parameter.  Change all callers.  If
16434         -Wc++-compat, warn about struct/union/enum types defined within a
16435         struct or union.
16436         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
16437         and loc parameters.  Change all callers.  Change error calls to
16438         error_at, using loc.  For a redefinition, if the location of the
16439         original definition is known, report it.  Set in_struct and
16440         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
16441         (finish_struct): Add new parameters enclosing_in_struct and
16442         enclosing_struct_types.  Change all callers.  Set
16443         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
16444         in the struct.  If in a struct, add this struct to struct_types.
16445         (start_enum): Add loc parameter.  Change all callers.  Use
16446         error_at for errors, using loc.  For a redefinition, if the
16447         location of the original definition is known, report it.  If in a
16448         struct, add this enum type to struct_types.  If -Wc++-compat warn
16449         if in sizeof, typeof, or alignof.
16450         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
16451         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
16452         (c_parser_enum_specifier): Get enum location for start_enum.
16453         (c_parser_struct_or_union_specifier): Get struct location for
16454         start_struct.  Save in_struct and struct_types status between
16455         start_struct and finish_struct.
16456         (c_parser_cast_expression): Get location of cast.
16457         (c_parser_alignof_expression): Get location of type.
16458         (c_parser_postfix_expression): Likewise.
16459         (c_parser_postfix_expression_after_paren_type): Add type_loc
16460         parameter.  Change all callers.  Call check_compound_literal_type.
16461         Use type_loc for error about variable size type.
16462         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
16463         of an enum constant from an enum type defined in a struct or union.
16464         (c_cast_expr): Add loc parameter.  Change all callers.  If
16465         -Wc++-compat, warn about defining a type in a cast.
16466         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
16467         (start_enum, start_struct, finish_struct): Update declarations.
16468         (parser_xref_tag, c_cast_expr): Update declarations.
16469         (check_compound_literal_type): Declare.
16470
16471 2009-05-11  Ben Elliston  <bje@au.ibm.com>
16472
16473         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
16474         for recent libcpp interface change.
16475         (rs6000_macro_to_expand): Likewise.
16476
16477 2009-05-10  Michael Matz  <matz@suse.de>
16478
16479         PR target/40031
16480         * config/arm/arm.c (require_pic_register): Emit on entry edge,
16481         not at entry of function.
16482
16483 2009-05-10  Richard Guenther  <rguenther@suse.de>
16484
16485         PR tree-optimization/40081
16486         Revert
16487         * tree-sra.c (instantiate_element): Instantiate scalar replacements
16488         using the main variant of the element type.  Do not fiddle with
16489         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
16490
16491         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
16492         structs with volatile fields.
16493
16494 2009-05-10  Jan Hubicka  <jh@suse.cz>
16495
16496         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
16497         (estimate_move_cost): Assert that it does not get called for
16498         VOID_TYPE_P.
16499         (estimate_num_insns): Skip VOID types in argument handling.
16500         (optimize_inline_calls): Delete unreachable blocks and verify that
16501         callgraph is valid.
16502
16503 2009-05-10  Jan Hubicka  <jh@suse.cz>
16504
16505         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
16506         * cgraph.c (cgraph_mark_address_taken_node): New function.
16507         (dump_cgraph_node): Dump new flag.
16508         * cgraph.h (struct cgraph_node): Add address_taken.
16509         (cgraph_mark_address_taken_node): New function.
16510         * ipa.c (cgraph_postorder): Prioritize functions with address taken
16511         since new direct calls can be born.
16512
16513 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
16514
16515         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
16516         tok->val.node.node.
16517
16518 2009-05-10  Jan Hubicka  <jh@suse.cz>
16519
16520         PR middle-end/40084
16521         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
16522         argument; rewrite.
16523         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
16524         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
16525         * tree-inline.c (copy_bb): Set frequency correctly.
16526         (fold_marked_statements): Update call to
16527         cgraph_update_edges_for_call_stmt.
16528
16529 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
16530
16531         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
16532         identifiers in diagnostics.
16533         * config/arm/arm.c (arm_handle_fndecl_attribute,
16534         arm_handle_isr_attribute): Likewise.
16535         * config/avr/avr.c (avr_handle_progmem_attribute,
16536         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
16537         * config/bfin/bfin.c (handle_int_attribute,
16538         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
16539         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
16540         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
16541         Likewise.
16542         * config/darwin.c (darwin_handle_kext_attribute,
16543         darwin_handle_weak_import_attribute): Likewise.
16544         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
16545         h8300_handle_eightbit_data_attribute,
16546         h8300_handle_tiny_data_attribute): Likewise.
16547         * config/i386/i386.c (ix86_handle_cconv_attribute,
16548         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
16549         * config/i386/winnt.c (ix86_handle_shared_attribute,
16550         ix86_handle_selectany_attribute): Likewise.
16551         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
16552         * config/m32c/m32c.c (function_vector_handler): Likewise.
16553         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
16554         m68hc11_handle_fntype_attribute): Likewise.
16555         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
16556         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
16557         * config/mips/mips.c (mips_insert_attributes,
16558         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
16559         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
16560         rs6000_handle_struct_attribute): Likewise.
16561         * config/sh/sh.c (sh_insert_attributes,
16562         sh_handle_resbank_handler_attribute,
16563         sh_handle_interrupt_handler_attribute,
16564         sh2a_handle_function_vector_handler_attribute,
16565         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
16566         Likewise.
16567         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
16568         * config/spu/spu.c (spu_handle_fndecl_attribute,
16569         spu_handle_vector_attribute): Likewise.
16570         * config/stormy16/stormy16.c
16571         (xstormy16_handle_interrupt_attribute): Likewise.
16572         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
16573         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
16574
16575 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
16576
16577         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
16578         (pp_translate_identifiers): New.
16579         (pp_identifier): Only conditionally translate identifier to locale
16580         character set.
16581         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
16582         (pp_base_tree_identifier): Only conditionally translate identifier
16583         to locale character set.
16584         * c-pretty-print.c (M_): Define.
16585         (pp_c_type_specifier, pp_c_primary_expression): Mark English
16586         fragments for conditional translation with M_.
16587         * tree-pretty-print.c (maybe_init_pretty_print): Disable
16588         identifier translation.
16589
16590 2009-05-10  Richard Guenther  <rguenther@suse.de>
16591
16592         PR tree-optimization/40081
16593         * tree-sra.c (instantiate_element): Instantiate scalar replacements
16594         using the main variant of the element type.  Do not fiddle with
16595         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
16596
16597 2009-05-09  Jan Hubicka  <jh@suse.cz>
16598
16599         PR middle-end/40080
16600         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
16601         indirect calls; verify cgraph afterwards.
16602
16603 2009-05-09  Jan Hubicka  <jh@suse.cz>
16604
16605         PR bootstrap/40082
16606         * ipa.c (update_inlined_to_pointer): New function.
16607         (cgraph_remove_unreachable_nodes): Use it.
16608
16609 2009-05-09  Jan Hubicka  <jh@suse.cz>
16610
16611         * tree-eh.c (struct leh_state): Remove prev_try.
16612         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
16613         not track prev_try.
16614         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
16615         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
16616         remove_eh_handler_and_replace, foreach_reachable_handler,
16617         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
16618         * except.h (struct eh_region): Remove eh_region_u_cleanup.
16619         (gen_eh_region_cleanup): Update prototype.
16620
16621 2009-05-09  Jan Hubicka  <jh@suse.cz>
16622
16623         PR middle-end/40043
16624         * except.c (copy_eh_region): Always set prev_try.
16625         (redirect_eh_edge_to_label): Find outer try.
16626         (foreach_reachable_handler): When looking for prev try
16627         handle case where previous try is not going to be taken.
16628
16629 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
16630
16631         PR tree-optimization/40049
16632         * tree-vect-stmts.c (vectorizable_operation): If the machine has
16633         only vector/vector shifts, convert the type of the constant to the
16634         appropriate type to avoid building incorrect trees, which
16635         eventually have problems with garbage collection.
16636
16637 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
16638
16639         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
16640         -1 for complex floating-point types if honoring signed zeros.
16641
16642 2009-05-08  Jan Hubicka  <jh@suse.cz>
16643
16644         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
16645         argument; handle correctly when profile is absent.
16646         (build_cgraph_edges): Update.
16647         (rebuild_cgraph_edges): Update.
16648         * cgraph.c: Do not include varray.h.
16649         (cgraph_set_call_stmt_including_clones): New function.
16650         (cgraph_create_edge_including_clones): Likewise
16651         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
16652         (cgraph_update_edges_for_call_stmt): Handle clones.
16653         (cgraph_remove_node): Handle clone tree.
16654         (cgraph_remove_node_and_inline_clones): New function.
16655         (dump_cgraph_node): Dump clone tree.
16656         (cgraph_clone_node): Handle clone tree.
16657         (clone_function_name): Bring here from tree-inline.c.
16658         (cgraph_create_virtual_clone): New function.
16659         * cgraph.h (ipa_replace_map): Move here from ipa.h.
16660         (cgraph_clone_info): New function.
16661         (strut cgraph_node): Add clone_info and new clone tree pointers.
16662         (cgraph_remove_node_and_inline_clones,
16663         cgraph_set_call_stmt_including_clones,
16664         cgraph_create_edge_including_clones,
16665         cgraph_create_virtual_clone): Declare.
16666         (cgraph_function_versioning): Use VEC argument.
16667         (compute_call_stmt_bb_frequency): Update prototype.
16668         (cgraph_materialize_all_clones): New function.
16669         * ipa-cp.c (ipcp_update_cloned_node): Remove.
16670         (ipcp_create_replace_map): Update to VECtors.
16671         (ipcp_update_callgraph): Use virtual clones.
16672         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
16673         (ipcp_update_profiling): Do not update local profiling.
16674         (ipcp_insert_stage): Use VECtors and virtual clones.
16675         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
16676         (clone_of_p): New function.
16677         (cgraph_preserve_function_body_p): Use clone tree.
16678         (cgraph_optimize): Materialize clones.
16679         (cgraph_function_versioning): Update for VECtors.
16680         (save_inline_function_body): Use clone tree.
16681         (cgraph_materialize_clone): New function.
16682         (cgraph_materialize_all_clones): Likewise.
16683         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
16684         * ipa.c: Include gimple.h.
16685         (cgraph_remove_unreachable_nodes): Use clone tree.
16686         * ipa-prop.c (ipa_note_param_call): Update call to
16687         compute_call_stmt_bb_frequencycall.
16688         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
16689         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
16690         (copy_bb): Handle updating of clone tree; add new edge when new call
16691         appears.
16692         (expand_call_inline): Be strict about every call having edge.
16693         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
16694         (delete_unreachable_blocks_update_callgraph): New function.
16695         (tree_function_versioning): Use VECtors; always remove unreachable
16696         blocks and fold conditionals.
16697         * tree-inline.h: Do not include varray.h.
16698         (tree_function_versioning): Remove.
16699         * Makefile.in (GTFILES): Remove tree-inline.c
16700         * passes.c (do_per_function): Do only functions having body.
16701         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
16702         tree.
16703
16704 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
16705             Andrew Morrow  <acm@google.com>
16706
16707         PR c/36892
16708         * c-common.c (c_common_attribute_table): Permit deprecated
16709         attribute to take an optional argument.
16710         (handle_deprecated_attribute): If the optional argument to
16711         __attribute__((deprecated)) is not a string ignore the attribute
16712         and emit a warning.
16713
16714         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
16715         * c-typeck.c (build_component_ref): Likewise.
16716         (build_external_ref): Likewise.
16717
16718         * toplev.c (warn_deprecated_use): Add an attribute argument.
16719         Emit the message associated with __attribute__((deprecated)).
16720
16721         * toplev.h (warn_deprecated_use): Updated.
16722
16723         * doc/extend.texi: Document new optional parameter to
16724         __attribute__((deprecated))
16725
16726 2009-05-08  Michael Eager <eager@eagercon.com>
16727
16728         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
16729         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
16730
16731 2009-05-08  Richard Guenther  <rguenther@suse.de>
16732
16733         PR tree-optimization/40062
16734         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
16735         Avoid exponential behavior.
16736
16737 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
16738
16739         PR rtl-optimization/33928
16740         PR 26854
16741         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
16742         process_uses, build_single_def_use_links): New.
16743         (update_df): Update use_def_ref.
16744         (forward_propagate_into): Use get_def_for_use instead of use-def
16745         chains.
16746         (fwprop_init): Call build_single_def_use_links and let it initialize
16747         dataflow.
16748         (fwprop_done): Free use_def_ref.
16749         (fwprop_addr): Eliminate duplicate call to df_set_flags.
16750         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
16751         df_rd_simulate_one_insn): New.
16752         (df_rd_bb_local_compute_process_def): Update head comment.
16753         (df_chain_create_bb): Use the new RD simulation functions.
16754         * df.h (df_rd_simulate_artificial_defs_at_top,
16755         df_rd_simulate_one_insn): New.
16756         * opts.c (decode_options): Enable fwprop at -O1.
16757         * doc/invoke.texi (-fforward-propagate): Document this.
16758
16759 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
16760
16761         PR c/24581
16762         * c-typeck.c (build_binary_op): Handle arithmetic between one real
16763         and one complex operand specially.
16764         * tree-complex.c (some_nonzerop): Do not identify a real value as
16765         zero if flag_signed_zeros.
16766
16767 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
16768
16769         PR rtl-optimization/33928
16770         * loop-invariant.c (record_use): Fix && vs. || mishap.
16771
16772 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
16773
16774         PR rtl-optimization/33928
16775         * loop-invariant.c (struct use): Add addr_use_p.
16776         (struct def): Add n_addr_uses.
16777         (struct invariant): Add cheap_address.
16778         (create_new_invariant): Set cheap_address.
16779         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
16780         (record_uses): Pass df_ref to record_use.
16781         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
16782         used only as such.
16783
16784 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
16785
16786         * config/sh/sh.c: Do not include c-pragma.h.
16787
16788 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16789
16790         * config/spu/spu.c: Remove include of c-common.h.
16791
16792 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
16793
16794         PR c/39037
16795         * c-common.h (mark_valid_location_for_stdc_pragma,
16796         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
16797         clear_float_const_decimal64, float_const_decimal64_p): New.
16798         * c.opt (Wunsuffixed-float-constants): New.
16799         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
16800         unsuffixed float constant, handle new warning.
16801         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
16802         * c-decl.c (c_scope): New flag float_const_decimal64.
16803         (set_float_const_decimal64, clear_float_const_decimal64,
16804         float_const_decimal64_p): New.
16805         (push_scope): Set new flag.
16806         * c-parser.c (c_parser_translation_unit): Mark when it's valid
16807         to use STDC pragmas.
16808         (c_parser_external_declaration): Ditto.
16809         (c_parser_compound_statement_nostart): Ditto.
16810         * c-pragma.c (valid_location_for_stdc_pragma,
16811         mark_valid_location_for_stdc_pragma,
16812         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
16813         handle_pragma_float_const_decimal64): New.
16814         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
16815         * cp/semantics.c (valid_location_for_stdc_pragma_p,
16816         set_float_const_decimal64, clear_float_const_decimal64,
16817         float_const_decimal64_p): New dummy functions.
16818         * doc/extend.texi (Decimal Float): Remove statement that the
16819         pragma, and suffix for double constants, are not supported.
16820         * doc/invoke.texi (Warning Options): List new option.
16821         (-Wunsuffixed-float-constants): New.
16822
16823 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
16824
16825         * config/i386/i386.c: Do not include c-common.h.
16826
16827 2009-05-07  Mark Heffernan  <meheff@google.com>
16828
16829         * doc/invoke.texi (Debugging Options): Document change of debugging
16830         dump location.
16831         * opts.c (decode_options): Make dump_base_name relative to
16832         aux_base_name directory.
16833
16834 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
16835
16836         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
16837         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
16838
16839 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
16840
16841         * Makefile.in (install-plugin): Simplify a bit.
16842
16843 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
16844
16845         * Makefile.in (OBJS-common): Add regcprop.o.
16846         (regcprop.o): New.
16847         * timevar.def (TV_CPROP_REGISTERS): New.
16848         * regrename.c (regrename_optimize): Return 0.
16849         (rest_of_handle_regrename): Delete.
16850         (pass_rename_registers): Point to regrename_optimize.
16851         (struct value_data_entry, struct value_data,
16852         kill_value_one_regno, kill_value_regno, kill_value,
16853         set_value_regno, init_value_data, kill_clobbered_value,
16854         kill_set_value, kill_autoinc_value, copy_value,
16855         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
16856         replace_oldest_value_reg, replace_oldest_value_addr,
16857         replace_oldest_value_mem, copyprop_hardreg_forward_1,
16858         debug_value_data, validate_value_data): Move...
16859         * regcprop.c: ... here.
16860         (rest_of_handle_cprop): Delete.
16861         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
16862
16863 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
16864
16865         PR middle-end/40057
16866         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
16867         GEN_INT for 1 << bitnum.
16868         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
16869         build_int_cst_type.
16870
16871 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
16872
16873         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
16874         Remove wrong description of "nand" operation.
16875
16876 2009-05-06  Richard Guenther  <rguenther@suse.de>
16877             Adam Nemet  <anemet@caviumnetworks.com>
16878
16879         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
16880         comment.  Add that if LHS is not a gimple register, then RHS1 has
16881         to be a single object (GIMPLE_SINGLE_RHS).
16882
16883 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
16884
16885         * expr.c (get_def_for_expr): Move it up in the file.
16886         (store_field): When expanding a bit-field store, look at the
16887         defining gimple stmt for the masking conversion.
16888
16889 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
16890
16891         PR middle-end/39986
16892         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
16893         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
16894         32-bit memcpy into long.
16895
16896 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
16897
16898         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
16899         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
16900         new_reg_loc_descr.
16901         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
16902         instead of appending DW_OP_deref*.
16903
16904 2009-05-06  Michael Matz  <matz@suse.de>
16905
16906         PR middle-end/40021
16907         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
16908         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
16909
16910 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
16911
16912         * Makefile.in (install-plugin): Fix srcdir handling.
16913
16914 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
16915
16916         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
16917         when processing for not_regs_needed bitmap.
16918         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
16919         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
16920         handling it for rhs.
16921
16922 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
16923
16924         * config/i386/i386.md (unnamed inc/dec peephole): Use
16925         optimize_insn_for_size_p instead of optimize_size.
16926         * config/i386/predicates.md (incdec_operand): Likewise.
16927         (aligned_operand): Likewise.
16928         * config/i386/sse.md (divv8sf3): Likewise.
16929         (sqrtv8sf2): Likewise.
16930
16931 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
16932
16933         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
16934
16935         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
16936
16937 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
16938
16939         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
16940         ssemodesuffixf2c with avxmodesuffixf2c.
16941
16942 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
16943
16944         PR c/40032
16945         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
16946
16947 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
16948
16949         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
16950         (struct tree_base): Adjust spacing for 8 bit boundaries.
16951         (struct tree_decl_common): Add decl_by_reference_flag bit.
16952         (DECL_BY_REFERENCE): Adjust.
16953         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
16954         print DECL_BY_REFERENCE bit.
16955         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
16956         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
16957         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
16958         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
16959         unconditionally.
16960
16961         PR middle-end/39666
16962         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
16963         range of the type, but default label is missing, add it with one
16964         of the existing labels instead of adding a new label for it.
16965
16966 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
16967
16968         * dwarf.h: Remove.
16969
16970 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
16971
16972         * Makefile.in (enable_plugin, plugin_includedir): New.
16973         (install): Depend on install-plugin.
16974         (PLUGIN_HEADERS): New.
16975         (install-plugin): New.
16976         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
16977
16978 2009-05-05  Richard Guenther  <rguenther@suse.de>
16979
16980         PR tree-optimization/40022
16981         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
16982         the only vuse.
16983         (phivn_valid_p): Fix tuplification error, simplify.
16984         (phiprop_insert_phi): Add dumps.
16985         (propagate_with_phi): Simplify.
16986
16987 2009-05-05  Richard Guenther  <rguenther@suse.de>
16988
16989         PR middle-end/40023
16990         * builtins.c (gimplify_va_arg_expr): Properly build the address.
16991
16992 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
16993
16994         * tree.h (strip_float_extensions): Remove duplicate declaration.
16995         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
16996         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
16997         block_ultimate_origin): Rearrange the declarations line to match the
16998         comment that indicates the .c file which the functions are defined.
16999         (dwarf2out_*, set_decl_rtl): Add comment.
17000         (get_base_address): Adjust comment.
17001         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
17002         declarations line and add comment.
17003         (is_builtin_name): Add blank after function name, for clarity.
17004
17005 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
17006
17007         * attribs.c (decl_attributes): Use %qE for identifiers in
17008         diagnostics.
17009         * cgraphunit.c (verify_cgraph_node): Translate function names to
17010         locale character set in diagnostics.
17011         * coverage.c (get_coverage_counts): Use %qE for identifiers in
17012         diagnostics.
17013         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
17014         Document that functions are named in UTF-8.
17015         * expr.c (expand_expr_real_1): Translate function names to locale
17016         character set in diagnostics.
17017         * gimplify.c (omp_notice_variable, omp_is_private,
17018         gimplify_scan_omp_clauses): Use %qE for identifiers in
17019         diagnostics.
17020         * langhooks.c (lhd_print_error_function): Translate function names
17021         to locale character set.
17022         * langhooks.h (decl_printable_name): Document that return value is
17023         in internal character set.
17024         * stmt.c: Include pretty-print.h
17025         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
17026         diagnostics.
17027         (resolve_operand_name_1): Translate named operand name to locale
17028         character set.
17029         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
17030         diagnostics.
17031         * toplev.c (announce_function): Translate function names to locale
17032         character set.
17033         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
17034         (default_tree_printer): Use pp_identifier or translate identifiers
17035         to locale character set.  Mark "<anonymous>" for translation.
17036         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
17037         for identifiers in diagnostics.
17038         * tree.c (handle_dll_attribute): Use %qE for identifiers in
17039         diagnostics.
17040         * varasm.c (output_constructor): Use %qE for identifiers in
17041         diagnostics.
17042
17043 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
17044
17045         * configure.ac: use ` ` instead of $()
17046         * configure: Regenerate.
17047
17048 2009-05-05  Ben Elliston  <bje@au.ibm.com>
17049
17050         * config/pa/linux-atomic.c: Eliminate conditional include of
17051         errno.h on non-LP64 systems to simplify build requirements.
17052
17053 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
17054
17055         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
17056         diagnostics.
17057         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
17058         and pass value to identifier_to_locale.
17059         (warn_variable_length_array): Make name a tree.
17060         (grokdeclarator): Separate diagnostic texts for named and unnamed
17061         declarators.  Use %qE for named declarators.
17062         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
17063         diagnostics.
17064         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
17065         identifiers in diagnostics.
17066         * c-typeck.c (push_member_name, start_init): Pass identifiers to
17067         identifier_to_locale.  Mark "anonymous" strings for translation.
17068
17069 2009-05-04  Michael Eager <eager@eagercon.com>
17070
17071         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
17072         address for DImode/DFmode only if double-precision FP regs.
17073
17074 2009-05-04  Michael Eager <eager@eagercon.com>
17075
17076         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
17077         TARGET_SINGLE_FLOAT check.
17078
17079 2009-05-04  Michael Eager <eager@eagercon.com>
17080
17081         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
17082
17083 2009-05-04  Michael Eager <eager@eagercon.com>
17084
17085         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
17086         * config/rs6000/t-xilinx: New
17087
17088 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
17089
17090         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
17091         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
17092         * gcc/explow.c (memory_address): Use target hook.
17093         * gcc/targhooks.c (default_legitimize_address): New.
17094         * gcc/targhooks.h (default_legitimize_address): New.
17095         * gcc/target.h (legitimize_address): New.
17096         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
17097         (TARGET_INITIALIZER): Include it.
17098         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
17099
17100         * config/bfin/bfin-protos.h (legitimize_address): Remove.
17101         * config/bfin/bfin.c (legitimize_address): Remove.
17102         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
17103         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
17104         Remove.
17105         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
17106         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
17107
17108         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
17109         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
17110         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
17111         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
17112         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
17113         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
17114         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
17115         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
17116         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
17117         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
17118         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
17119         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
17120         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
17121         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
17122         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
17123         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
17124         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
17125         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
17126         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
17127         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
17128         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
17129         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
17130         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
17131
17132         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
17133         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
17134         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
17135         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
17136         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
17137         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
17138         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
17139         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
17140         (thumb_legitimize_address): Delete.
17141         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
17142         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
17143         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
17144         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
17145         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
17146         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
17147         Delete.
17148         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
17149         Delete.
17150
17151         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
17152         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
17153         * config/m32r/m32r.c (m32r_legitimize_address): New.
17154         * config/m68k/m68k.c (m68k_legitimize_address): New.
17155         * config/score/score.c (score_legitimize_address): Standardize.
17156         * config/score/score3.c (score3_legitimize_address): Standardize.
17157         * config/score/score3.h (score3_legitimize_address): Adjust.
17158         * config/score/score7.c (score7_legitimize_address): Standardize.
17159         * config/score/score7.h (score7_legitimize_address): Adjust.
17160         * config/sh/sh.c (sh_legitimize_address): New.
17161         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
17162
17163         * gcc/config/s390/s390.c (legitimize_address): Rename to...
17164         (s390_legitimize_address): ... this.
17165         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
17166         (sparc_legitimize_address): ... this.
17167         * gcc/config/i386/i386.c (legitimize_address): Rename to...
17168         (ix86_legitimize_address): ... this.
17169         * gcc/config/avr/avr.c (legitimize_address): Rename to...
17170         (avr_legitimize_address): ... this.
17171         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
17172         (mn10300_legitimize_address): ... this.
17173         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
17174         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
17175         (alpha_expand_mov): Adjust call.
17176
17177         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
17178         * config/spu/spu.c (spu_legitimize_address): Likewise.
17179         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
17180         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
17181
17182 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
17183
17184         * intl.c (locale_encoding, locale_utf8): New.
17185         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
17186         * intl.h (locale_encoding, locale_utf8): Declare.
17187         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
17188         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
17189         New.
17190         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
17191         argument.
17192         (pp_tree_identifier): Define to call pp_base_tree_identifier.
17193         (pp_base_tree_identifier): Declare as function.
17194         (identifier_to_locale): Declare.
17195         * Makefile.in (pretty-print.o): Update dependencies.
17196         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
17197
17198 2009-05-04  Richard Guenther  <rguenther@suse.de>
17199
17200         PR middle-end/40015
17201         * builtins.c (fold_builtin_memory_op): Do not decay to element
17202         type if the size matches the whole array.
17203
17204 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
17205
17206         * expmed.c (synth_mult): When trying out a shift, pass the result
17207         of a signed shift.
17208
17209 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
17210
17211         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
17212         (shiftsub1_cost): New.
17213         (init_expmed): Compute shiftsub1_cost.
17214         (synth_mult): Optimize multiplications by constants of the form
17215         -(2^^m-1) for some constant positive integer m.
17216
17217 2009-05-03  Richard Guenther  <rguenther@suse.de>
17218
17219         PR c/39983
17220         * c-typeck.c (array_to_pointer_conversion): Do not built
17221         ADDR_EXPRs of arrays of pointer-to-element type.
17222         * c-gimplify.c (c_gimplify_expr): Revert change fixing
17223         up wrong ADDR_EXPRs after-the-fact.
17224         * c-common.c (strict_aliasing_warning): Strip pointer
17225         conversions for obtaining the original type.
17226         * builtins.c (fold_builtin_memset): Handle array types.
17227         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
17228         and array types
17229
17230 2009-05-03  Richard Guenther  <rguenther@suse.de>
17231
17232         PR middle-end/23329
17233         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
17234         Do not lose casts from array types with unknown extent to array
17235         types with known extent.
17236         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
17237         alias set compatibility.
17238
17239 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17240
17241         * flags.h (extra_warnings): Delete.
17242         * toplev.c (process_options): Handle Wuninitialized here.
17243         * opts.c (extra_warnings): Delete.
17244         (set_Wextra): Delete.
17245         (common_handle_option): -Wextra can be handled automatically.
17246         * c-opts.c (c_common_handle_option): Delete obsolete code.
17247         (c_common_post_options): Simplify comment.
17248         * common.opt (W): Add Var.
17249         (Wextra): Add Var.
17250         (Wuninitialized): Initialize to -1.
17251
17252 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
17253             Richard Guenther  <rguenther@suse.de>
17254
17255         * expr.c (get_def_for_expr): New function.
17256         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
17257         SSA rather than trees.
17258         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
17259         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
17260
17261 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
17262
17263         * c-common.c (reswords): Add _Imaginary.
17264         * c-common.c (enum rid): Add RID_IMAGINARY.
17265
17266 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
17267
17268         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
17269         Patch by Richard Guenther.
17270
17271 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
17272
17273         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
17274         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
17275         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
17276         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
17277         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
17278         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
17279         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
17280         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
17281         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
17282         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
17283         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
17284         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
17285         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
17286         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
17287         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
17288         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
17289         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
17290         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
17291
17292 2009-05-02  Richard Guenther  <rguenther@suse.de>
17293
17294         PR tree-optimization/39940
17295         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
17296         doing so.
17297
17298 2009-05-02  Richard Guenther  <rguenther@suse.de>
17299
17300         PR middle-end/40001
17301         * tree-ssa.c (execute_update_addresses_taken): Properly check
17302         if we can mark a variable DECL_GIMPLE_REG_P.
17303         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
17304         back to the end of the function.
17305         (is_gimple_reg_type): Remove complex type special casing.
17306         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
17307         if not optimizing.
17308
17309 2009-05-02  Ben Elliston  <bje@au.ibm.com>
17310
17311         * doc/collect2.texi (Collect2): Document search path behaviour
17312         when configured with --with-ld.
17313
17314 2009-05-02  Jan Hubicka  <jh@suse.cz>
17315
17316         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
17317         parameter; update callers.
17318         (coalesce_cost_edge): EH edges are costier because they needs
17319         splitting even if not critical and even more costier when there are
17320         multiple EH predecestors.
17321
17322 2009-05-02  Jan Hubicka  <jh@suse.cz>
17323
17324         * except.c (remove_eh_handler_and_replace): Handle updating after
17325         removing TRY blocks.
17326
17327 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
17328
17329         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
17330
17331 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
17332
17333         * varasm.c: Do not include c-pragma.h.
17334         * attribs.c: Do not incude c-common.h.
17335
17336 2009-05-01  Michael Matz  <matz@suse.de>
17337
17338         * calls.c (initialize_argument_information): Handle SSA names like
17339         decls with a non MEM_P DECL_RTL.
17340
17341 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
17342
17343         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
17344         * ipa-utils.c: Likewise.
17345         * ipa-type-escape.c: Likewise.
17346         * cgraphunit.c Do not include c-common.h.
17347         * ipa-pure-const.c: Likewise.
17348         * tree-if-conv.c: Likewise.
17349         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
17350         * ipa-struct-reorg.c: Likewise.
17351         * tree-nomudflap.c: Likewise.
17352         * tree-ssa-structalias.c: Likewise.
17353
17354 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
17355
17356         * store-motion.c: Many cleanups to make this pass a first-class
17357         citizen instead of an appendix to gcse load motion.  Add TODO list
17358         to make this pass faster/cleaner/better.
17359
17360         (struct ls_expr): Post gcse.c-split cleanups.
17361         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
17362         "stores" field to "avail_stores".
17363         (pre_ldst_mems): Rename to store_motion_mems.
17364         (pre_ldst_table): Rename to store_motion_mems_table.
17365         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
17366         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
17367         (ldst_entry): Rename to st_expr_entry, update users.
17368         (free_ldst_entry): Rename to free_st_expr_entry, update users.
17369         (free_ldst_mems): Rename to free_store_motion_mems, update users.
17370         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
17371         update caller.
17372         (first_ls_expr): Rename to first_st_expr, update users.
17373         (next_ls_expr): Rename to next_st_expr, update users.
17374         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
17375         fields properly for store motion instead of names inherited from load
17376         motion in gcse.c.
17377         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
17378         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
17379         are done with it.
17380
17381         (ae_kill): Rename to st_kill, update users.
17382         (ae_gen): Rename to st_avloc, update users.
17383         (transp): Rename to st_transp, update users.
17384         (pre_insert_map): Rename to st_insert_map, update users.
17385         (pre_delete_map): Rename to st_delete_map, update users.
17386         (insert_store, build_store_vectors, free_store_memory,
17387         one_store_motion_pass): Update for abovementioned changes.
17388
17389         (gcse_subst_count, gcse_create_count): Remove.
17390         (one_store_motion_pass): New statistics counters "n_stores_deleted"
17391         and "n_stores_created", local variables.
17392
17393         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
17394         use for_each_rtx.
17395
17396         (regvec, compute_store_table_current_insn): Remove.
17397         (reg_set_info, reg_clear_last_set): Remove.
17398         (compute_store_table): Use DF caches instead of local dataflow
17399         solvers.
17400
17401 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
17402
17403         * c-objc-common.c (c_tree_printer): Print identifiers with
17404         pp_identifier, not pp_string.  Mark "({anonymous})" for
17405         translation.
17406         * c-pretty-print.c (pp_c_ws_string): New.
17407         (pp_c_cv_qualifier, pp_c_type_specifier,
17408         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
17409         pp_c_storage_class_specifier, pp_c_function_specifier,
17410         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
17411         pp_c_primary_expression, pp_c_postfix_expression,
17412         pp_c_unary_expression, pp_c_shift_expression,
17413         pp_c_relational_expression, pp_c_equality_expression,
17414         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
17415         use pp_string and pp_c_ws_string in place of pp_identifier and
17416         pp_c_identifier for non-identifiers.  Mark English strings for
17417         translation.
17418         * c-pretty-print.h (pp_c_ws_string): Declare.
17419
17420 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
17421             Roland McGrath <roland@redhat.com>
17422
17423         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
17424         (ENABLE_LD_BUILDID): New configuration option.
17425         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
17426         (LINK_BUILDID_SPEC): New macro.
17427         (init_spec): If defined, prepend it between LINK_EH_SPEC and
17428         link_spec.
17429         * doc/install.texi: Document --enable-linker-build-id option.
17430         * configure: Rebuild.
17431         * config.in: Rebuild.
17432
17433 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
17434
17435         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
17436         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
17437         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
17438         MIPS_GP_SAVE_AREA_SIZE.
17439         * config/mips/mips.c (struct mips_frame_info): Update comment
17440         before arg_pointer_offset and hard_frame_pointer_offset.
17441         (mips_compute_frame_info): Update diagram before function: to
17442         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
17443         indicate the position of frame_pointer_rtx with -fstack-protector and
17444         to show args_size.  Don't allocate cprestore area for leaf functions
17445         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
17446         cprestore_size.
17447         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
17448
17449 2009-04-30  Michael Matz  <matz@suse.de>
17450
17451         PR tree-optimization/39955
17452         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
17453
17454 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
17455
17456         * ira.c (setup_cover_and_important_classes):  Use safe macro
17457         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
17458         directly.
17459         * genpreds.c (write_tm_preds_h):  Output suitable definition of
17460         REG_CLASS_FOR_CONSTRAINT.
17461
17462 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
17463
17464         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
17465         instead of an int.
17466         * bitmap.c (bitmap_descriptor): Likewise.
17467         * ggc-common.c (loc_descriptor): Likewise.
17468         * varray.c (varray_descriptor): Likewise.
17469         * vec.c (vec_descriptor): Likewise.
17470
17471 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
17472
17473         * Makefile.in (dce.o): Add $(EXCEPT_H).
17474         * dce.c: Include except.h and delete redundant vector definitions.
17475         (deletable_insn_p): Return false for non-call insns that can throw
17476         if DF is running.
17477
17478 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
17479
17480         * gcse.c (ae_gen): Remove.
17481         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
17482         and make non-static function to make it available in store-motion.c.
17483         Update call sites with search-and-replace.
17484         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
17485         extract_mentioned_regs, extract_mentioned_regs_helper,
17486         find_moveable_store, compute_store_table, load_kills_store, find_loads,
17487         store_killed_in_insn, store_killed_after, store_killed_before,
17488         build_store_vectors, insert_insn_start_basic_block, insert-store,
17489         remove_reachable_equiv_notes, replace_store_insn, delete_store,
17490         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
17491         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
17492         * store-motion.c: ...new file.  Also copy data structures from gcse.c
17493         and clean up to remove parts not used by store motion.
17494         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
17495         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
17496
17497 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17498
17499         PR target/38571
17500         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
17501         when optimizing for size.
17502
17503 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
17504
17505         * gcse.c (gcse_constant_p): Fix typo in last change.
17506
17507 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
17508
17509         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
17510
17511 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
17512
17513         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
17514
17515 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
17516
17517         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
17518         CONST_HIGH_PART result.
17519
17520 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
17521
17522         * config/avr/avr.c (initial_elimination_offset): Rename to
17523         avr_initial_elimination_offset.
17524         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
17525         change return type to bool.
17526         (avr_can_eliminate): New function.
17527         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
17528         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
17529         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
17530         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
17531         avr_initial_elimination_offset.
17532         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
17533         (avr_initial_elimination_offset): Define.
17534
17535 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
17536             Steven Bosscher  <steven@gcc.gnu.org>
17537
17538         PR rtl-optimization/39938
17539         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
17540         * cfgrtl.c: Include insn-attr.h.
17541         (rest_of_pass_free_cfg): New function.
17542         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
17543         * resource.c (init_resource_info): Remove call to df_analyze.
17544
17545 2009-04-29  Richard Guenther  <rguenther@suse.de>
17546
17547         PR target/39943
17548         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
17549         allow conversion to signed integers.
17550
17551 2009-04-29  Richard Guenther  <rguenther@suse.de>
17552
17553         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
17554         shifts of floating point vectors if the shift amount is
17555         a constant multiple of the element size.
17556
17557 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
17558             Michael Matz  <matz@suse.de>
17559
17560         PR middle-end/39927
17561         PR bootstrap/39929
17562         * tree-outof-ssa.c (emit_partition_copy): New function.
17563         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
17564         insert_part_to_rtx_on_edge): Perform the partition base var
17565         copy using emit_partition_copy.
17566         (insert_value_copy_on_edge): Convert constants to the right mode.
17567         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
17568         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
17569
17570 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
17571
17572         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
17573         scan backwards to try to find a constant to initialize it.
17574
17575         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
17576         insn before the loop_end instruction, don't look past labels.
17577
17578 2009-04-29  Richard Guenther  <rguenther@suse.de>
17579
17580         PR middle-end/39937
17581         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
17582         loose type conversions.
17583         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
17584         stmts only if there are no uses of its definition.
17585
17586 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
17587
17588         * config/bfin/bfin.h (splitting_loops): Declare.
17589         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
17590         Reorder bit definitions to be ascending.
17591         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
17592         * config/bfin/bfin.c (splitting_loops): New variable.
17593         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
17594         (struct loop_info): Remove members INIT and LOOP_INIT.
17595         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
17596         the LSETUP sequence.  Allow LC to be loaded from any register, but
17597         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
17598         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
17599         set to 1.
17600         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
17601         of reload_completed.
17602
17603         From Jie Zhang:
17604         * config/bfin/bfin.md (movsi_insn): Refine constraints.
17605
17606 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
17607
17608         * Makefile.in (PLUGIN_VERSION_H): New.
17609         (OBJS-common): Remove plugin-version.o.
17610         (plugin.o): Depend on (PLUGIN_VERSION_H).
17611         (plugin-version.o): Remove.
17612         * configure: Regenerate
17613         * configure.ac: Create plugin-version.h.
17614         * gcc-plugin.h (plugin_gcc_version): Remove.
17615         (plugin_default_version_check): Change signature.
17616         * plugin-version.c: Remove.
17617         * plugin.c: Include plugin-version.h.
17618         (str_plugin_gcc_version_name): Remove.
17619         (try_init_one_plugin): Pass gcc version to plugin_init.
17620         (plugin_default_version_check): Both gcc and plugin versions are now
17621         arguments.
17622
17623 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
17624
17625         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
17626         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
17627         Remove special case testing for last insn of inner loops. Don't fail
17628         if the loop ends with a jump, emit an extra nop instead.
17629
17630         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
17631         DREGS rather than comparing directly.  Remove code that tries to
17632         account for latencies.
17633
17634 2009-04-29  Richard Guenther  <rguenther@suse.de>
17635
17636         PR tree-optimization/39941
17637         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
17638         eliminating an indirect call.
17639
17640 2009-04-29  Richard Guenther  <rguenther@suse.de>
17641
17642         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
17643         parameter.  Allow invariants as base if !require_lvalue.
17644         (verify_gimple_assign_single): Adjust.
17645
17646 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
17647
17648         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
17649         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
17650         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
17651         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
17652         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
17653         a VEC_SELECT.
17654         * config/bfin/bfin.c (bfin_expand_builtin,
17655         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
17656
17657 2009-04-28  Richard Guenther  <rguenther@suse.de>
17658
17659         * tree-vect-loop.c (get_initial_def_for_induction): Use
17660         correct types for pointer increment.
17661
17662 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17663
17664         * toplev.c (print_version): Update GMP version string calculation.
17665
17666 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
17667
17668         PR rtl-optimization/39938
17669         * resource.c (init_resource_info): Add call to df_analyze.
17670
17671 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
17672
17673         * config/alpha/alpha.md (usegp): Cast the result of
17674         alpha_find_lo_sum_using_gp to enum attr_usegp.
17675         * config/alpha/alpha.c (override_options): Remove end-of-structure
17676         marker element from cpu_table.  Use array size of cpu_table to handle
17677         -mcpu and -mtune options.
17678         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
17679
17680 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
17681
17682         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
17683         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
17684         tune_32 and tune_64.
17685         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
17686         support on PowerPC.
17687         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
17688         * config/rs6000/option-defaults.h: ... here.  New file.
17689         (OPT_64, OPT_32): Define.
17690         (MASK_64BIT): Define to 0 if not already defined.
17691         (OPT_ARCH64, OPT_ARCH32): Define.
17692         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
17693         and tune_64.
17694
17695 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17696
17697         * config/arm/arm.c (arm_override_options): Emit error on using
17698         fpa with AAPCS.
17699
17700 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
17701
17702         PR rtl-optimization/39914
17703         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
17704         registers for allocnos created from user-defined variables only
17705         when not optimizing.
17706
17707 2009-04-28  Richard Guenther  <rguenther@suse.de>
17708
17709         PR middle-end/39937
17710         * fold-const.c (fold_binary): Use distribute_real_division only
17711         on float types.
17712
17713 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
17714
17715         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
17716         add hpux-stdint.h to tm_file.
17717         (hppa[12]*-*-hpux11*): Ditto.
17718         (ia64*-*-hpux*): Ditto.
17719         * config/hpux-stdint.h: New.
17720         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
17721         __STDC_EXT__ for all compiles.
17722         * config/pa/pa-hpux.h: Ditto.
17723         * config/pa/pa-hpux10.h: Ditto.
17724         * config/pa/pa-hpux11.h: Ditto.
17725
17726 2009-04-28  Catherine Moore  <clm@codesourcery.com>
17727
17728         * debug.h (set_name): Add comment.
17729
17730 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
17731
17732         PR target/39929
17733         * config/darwin.c (machopic_gen_offset): Check
17734         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
17735         * config/arm/arm.c (require_pic_register): Likewise.
17736
17737 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
17738
17739         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
17740         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
17741         m32c_promote_prototypes): Delete.
17742
17743 2009-04-28  Michael Matz  <matz@suse.de>
17744
17745         PR middle-end/39922
17746         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
17747         constants.
17748
17749 2009-04-28  Richard Guenther  <rguenther@suse.de>
17750
17751         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
17752
17753 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17754
17755         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
17756         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
17757         * config/arm/arm-tune.md: Regenerate.
17758
17759 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
17760
17761         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
17762         block if there are complex incoming edges.
17763         (sel_merge_blocks): Remove useless assert.
17764         (sel_redirect_edge_and_branch): Check that edge was redirected.
17765         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
17766         (sel_find_rgns): Delete declaration.
17767         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
17768         the region when it is not a preheader.
17769
17770 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
17771
17772         PR c/39323
17773         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
17774
17775 2009-04-28  Richard Guenther  <rguenther@suse.de>
17776
17777         * tree.h (SSA_NAME_VALUE): Remove.
17778         (struct tree_ssa_name): Remove value_handle member.
17779         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
17780         array for jump threading.
17781         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
17782         SSA_NAME_VALUEs.
17783         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
17784         * tree-flow.h (threadedge_initialize_values): Declare.
17785         (threadedge_finalize_values): Likewise.
17786         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
17787         (SSA_NAME_VALUE): Define.
17788         (threadedge_initialize_values): New function.
17789         (threadedge_finalize_values): Likewise.
17790         * tree-ssa-dom.c (ssa_name_values): New global variable.
17791         (SSA_NAME_VALUE): Define.
17792         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
17793
17794 2009-04-28  Ira Rosen  <irar@il.ibm.com>
17795
17796         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
17797         Use REPORT_VECTORIZED_LOCATIONS instead
17798         REPORT_VECTORIZED_LOOPS.
17799         * tree-vectorizer.c (vect_verbosity_level): Make static.
17800         (vect_loop_location): Rename to vect_location.
17801         (vect_set_verbosity_level): Update comment.
17802         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
17803         and vect_location.
17804         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
17805         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
17806         instead REPORT_UNVECTORIZED_LOOPS.
17807         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
17808         and vect_loop_def to vect_external_def and vect_internal_def.
17809         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
17810         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
17811         REPORT_UNVECTORIZED_LOCATIONS.
17812         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
17813         and vect_used_in_loop and to vect_unused_in_scope and
17814         vect_used_in_scope.
17815         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
17816         (vect_verbosity_level): Remove declaration.
17817         (vect_analyze_operations): Likewise.
17818         (vect_analyze_stmt): Declare.
17819         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
17820         REPORT_UNVECTORIZED_LOCATIONS.
17821         (vect_get_loop_niters): Fix indentation.
17822         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
17823         (vect_analyze_loop_operations): New function.
17824         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
17825         vect_analyze_operations.
17826         (vect_is_simple_reduction): Use new names.
17827         (vectorizable_live_operation, vect_transform_loop): Likewise.
17828         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
17829         to specify whether the data references can be a part of interleaving
17830         chain.
17831         (vect_analyze_data_ref_dependence): Use new names.
17832         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
17833         (vect_create_addr_base_for_vector_ref): Remove redundant code.
17834         * tree-vect-patterns.c (widened_name_p): Use new names.
17835         (vect_recog_dot_prod_pattern): Likewise.
17836         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
17837         (process_use, vect_mark_stmts_to_be_vectorized,
17838         vect_model_simple_cost, vect_model_store_cost,
17839         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
17840         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
17841         vectorizable_operation, vectorizable_type_demotion,
17842         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
17843         vectorizable_condition): Likewise.
17844         (vect_analyze_operations): Split into vect_analyze_loop_operations
17845         and ...
17846         (vect_analyze_stmt): ... new function.
17847         (new_stmt_vec_info): Use new names.
17848         (vect_is_simple_use): Use new names and fix comment.
17849         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
17850         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
17851
17852 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
17853
17854         PR target/39911
17855         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
17856         and integer modes for x87 operands.  Do not ICE for unsupported size,
17857         generate error instead.  Generate error for unsupported operand types.
17858         ['z']: Do not handle HImode memory operands specially.  Warning
17859         for floating-point operands.  Fallthru to 'Z' for unsupported operand
17860         types.  Do not ICE for unsupported size, generate error instead.
17861         (output_387_binary_op): Use %Z to output operands.
17862         (output_fp_compare): Ditto.
17863         (output_387_reg_move): Ditto.
17864
17865 2009-04-28  Ben Elliston  <bje@au.ibm.com>
17866
17867         PR c++/35652
17868         Revert:
17869
17870         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17871
17872         * builtins.c (c_strlen): Do not warn here.
17873         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
17874         * c-common.c (pointer_int_sum): Take an explicit location.
17875         Warn about offsets out of bounds.
17876         * c-common.h (pointer_int_sum): Adjust declaration.
17877
17878 2009-04-27  Ian Lance Taylor  <iant@google.com>
17879
17880         * collect2.c (is_ctor_dtor): Change type of ret field in struct
17881         names to symkind.
17882         * dce.c (run_fast_df_dce): Change type of old_flags to int.
17883         * df-core.c (df_set_flags): Change return type to int.  Change
17884         type of old_flags to int.
17885         (df_clear_flags): Likewise.
17886         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
17887         (df_get_conditional_uses): Likewise.
17888         * df.h (df_set_flags, df_clear_flags): Update declarations.
17889         * dwarf2out.c (struct indirect_string_node): Change type of form
17890         field to enum dwarf_form.
17891         (AT_string_form): Change return type to enum dwarf_form.
17892         * fixed-value.c (fixed_compare): Add cast to enum type.
17893         * fwprop.c (update_df): Change 0 to VOIDmode.
17894         * gensupport.c: Change 0 to UNKNOWN.
17895         * gimple.h (gimple_cond_code): Add cast to enum type.
17896         * haifa-sched.c (reemit_notes): Add cast to enum type.
17897         * hooks.c (hook_int_void_no_regs): Remove function.
17898         * hooks.h (hook_int_void_no_regs): Remove declaration.
17899         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
17900         * predict.c (combine_predictions_for_insn): Add casts to enum type.
17901         * real.c (real_arithmetic): Add cast to enum type.
17902         (real_compare): Likewise.
17903         * target.h (struct gcc_target): Change return type of
17904         branch_target_register_class to enum reg_class.
17905         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
17906         default_branch_target_register_class.
17907         * targhooks.c (default_branch_target_register_class): New function.
17908         * targhooks.h (default_branch_target_register_class): Declare.
17909         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
17910         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
17911         cast to int.
17912         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
17913         ERROR_MARK.
17914         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
17915         vect_uninitialized_def.  Change 0 to ERROR_MARK.
17916         * tree-vect-stmts.c (supportable_widening_operation): Don't
17917         initialize icode1 and icode2.
17918         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
17919         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
17920         and to STD_C89.
17921         (cmn_err_flag_specs): Change 0 to STD_C89.
17922         (cmn_err_char_table): Likewise.
17923         * config/arm/arm.c (get_arm_condition_code): Change type of code
17924         to enum arm_cond_code.
17925         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
17926         (IWMMXT_BUILTIN2): Likewise.
17927         (neon_builtin_type_bits): Don't define typedef.
17928         (neon_builtin_datum): Change type of bits field to int.
17929         (arm_expand_neon_args): Add cast to enum type.
17930         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
17931         TLS_MODEL_NONE.
17932         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
17933         casts to enum type.
17934         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
17935         MIPS_FP_COND_f.
17936         * config/mips/mips.md (jal_macro): Return enum constant.
17937         (single_insn): Likewise.
17938         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
17939         CODE_FOR_nothing.
17940         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17941         casts to enum type.
17942         * config/s390/s390.c (s390_tune_flags): Change type to int.
17943         (s390_arch_flags): Likewise.
17944         (s390_handle_arch_option): Change flags field of struct pta to int.
17945         * config/s390/s390.h (s390_tune_flags): Update declaration.
17946         (s390_arch_flags): Likewise.
17947         * config/sh/sh.c (prepare_move_operands): Compare
17948         tls_symbolic_operand result with enum constant.
17949         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
17950         (sh_expand_prologue): Add cast to enum type.
17951         (sh_expand_epilogue): Likewise.
17952         (tls_symbolic_operand): Change return type to enum tls_model.
17953         (fpscr_set_from_mem): Add cast to enum type.
17954         (legitimize_pic_address): Compare tls_symbolic_operand result with
17955         enum constant.
17956         (sh_target_reg_class): Change return type to enum reg_class.
17957         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
17958         PROCESSOR_xxx.
17959         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
17960         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
17961         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
17962         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
17963         (delayed_branch, tls_call_delay): Likewise.
17964         (eligible_for_sibcall_delay): Likewise.
17965         (eligible_for_return_delay): Likewise.
17966         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
17967         (spu_expand_builtin_1): Likewise.
17968
17969         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
17970         for all types of conversions.
17971         (output_init_element): Issue -Wc++-compat warning if needed when
17972         initializing a bitfield with enum type.
17973         * c-parser.c (c_parser_expression): Set original_type to
17974         original_type of right hand operand of comma operator.
17975
17976 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17977
17978         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
17979         grammar nits.
17980         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
17981         * doc/cpp.texi (Standard Predefined Macros)
17982         (Implementation-defined behavior): Likewise.
17983         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
17984         * doc/gimple.texi (GIMPLE Exception Handling)
17985         (@code{GIMPLE_ASSIGN}): Likewise.
17986         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
17987         * doc/invoke.texi (Warning Options, Optimize Options)
17988         (AVR Options, Darwin Options): Likewise.
17989         (Optimize Options): Reformulate -fwhole-program description.
17990         * doc/loop.texi (Lambda): Likewise.
17991         * doc/md.texi (Output Template, Define Constraints)
17992         (Standard Names, Insn Splitting): Likewise.
17993         * doc/options.texi (Option properties): Likewise.
17994         * doc/passes.texi (Tree-SSA passes): Likewise.
17995         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
17996         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
17997         (File Names and DBX): Likewise.
17998         * doc/trouble.texi (Incompatibilities): Likewise.
17999
18000 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
18001
18002         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
18003         instruction is correct.
18004
18005 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
18006
18007         Allow non-constant arguments to conversion intrinsics.
18008         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
18009         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
18010         * spu.c (print_operand): Handle 'v' and 'w'.
18011         (exp2_immediate_p, spu_gen_exp2): Define.
18012         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
18013         spu_convtf_1): Update parameter descriptions.
18014         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
18015         * constraints.md ('v', 'w'): New.
18016         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
18017         Remove.
18018         (i2f, I2F): New define_mode_attr.
18019         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
18020         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
18021         fixuns_truncv4sfv4si2):  Update to use mode attribute.
18022         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
18023         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
18024         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
18025         patterns for combine.
18026
18027 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
18028
18029         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
18030         (cprop, hoist, pre, store_motion): New debug counters.
18031         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
18032         is not an RTL pass anymore.
18033         (pass_profiling): Remove extern decl for pass removed in 2005.
18034         (pass_gcse, pass_jump_bypass): Remove.
18035         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
18036         to 0 for clean state.
18037         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
18038         * cse.c (gate_handle_cse_after_global_opts,
18039         rest_of_handle_cse_after_global_opts): New functions.
18040         (pass_cse_after_global_opts): New pass, does local CSE.
18041         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
18042         (TV_CPROP): New timevar.
18043         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
18044         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
18045         (gcse_main, recompute_all_luids): Remove.
18046         (compute_hash_table_work): Call max_reg_num instead of reading
18047         max_gcse_regno.
18048         (cprop_jump): Don't set run_jump_opt_after_gcse.
18049         (constprop_register): Always allow to alter jumps.
18050         (cprop_insn): Likewise.
18051         (do_local_cprop): Likewise.
18052         (local_cprop_pass): Likewise.  Return non-zero if something changed.
18053         (cprop): Remove function, fold interesting bits into one_cprop_pass.
18054         (find_implicit_sets): Add note about missed optimization opportunity.
18055         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
18056         pass_rtl_cprop execute function.
18057         Don't bother tracking the pass number, each pass gets its own dumpfile
18058         now anyway.
18059         Always allow to alter jumpsand bypass jumps.
18060         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
18061         will just find no suitable set.
18062         (pre_edge_insert): Fix dumping, this function is for PRE only.
18063         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
18064         pass_rtl_pre execute function.
18065         (hoist_code): Return non-zero if something changed.  Keep track of
18066         substitutions and insertions for statistics gathering similar to PRE.
18067         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
18068         called from the pass_rtl_hoist execute function.  Show pass statistics.
18069         (compute_store_table): Use max_reg_num directly instead of using the
18070         formerly global max_gcse_regno.
18071         (build_store_vectors): Likewise.
18072         (replace_store_insn): Fix dumping.
18073         (store_motion): Rename to ...
18074         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
18075         pass, called from the pass_rtl_store_motion execute function.  Keep
18076         track of substitutions and insertions for statistics gathering similar
18077         to PRE.
18078         (bypass_jumps): Remove, fold interesting bits into ...
18079         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
18080         from the pass_rtl_cprop execute function.
18081         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
18082         pass_jump_bypass): Remove.
18083         (gate_handle_gcse, rest_of_handle_gcse): Remove.
18084         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
18085         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
18086         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
18087         (gate_rtl_store_motion, execute_rtl_store_motion,
18088         pass_rtl_store_motion): New.
18089         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
18090         make it clear that -fcse-skip-blocks is a no-op for backward compat.
18091         * passes.c (init_optimization_passes): Remove pass_gcse and
18092         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
18093         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
18094         instead of pass_jump_bypass.
18095
18096 2009-04-27  Richard Guenther  <rguenther@suse.de>
18097
18098         PR middle-end/39928
18099         * gimplify.c (gimplify_expr): If we are required to create
18100         a temporary make sure it ends up as register.
18101
18102 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
18103
18104         PR target/39903
18105         * config/i386/i386.c (construct_container): Don't call
18106         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
18107         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
18108
18109 2009-04-27  Michael Matz  <matz@suse.de>
18110
18111         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
18112         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
18113         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
18114         (dump_replaceable_exprs): Take a bitmap.
18115         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
18116         array.
18117         (expand_gimple_basic_block): Likewise.
18118         * tree-ssa-ter.c (struct temp_expr_table_d): Make
18119         replaceable_expressions member a bitmap.
18120         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
18121         (mark_replaceable): Likewise.
18122         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
18123         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
18124
18125 2009-04-27  Richard Guenther  <rguenther@suse.de>
18126
18127         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
18128         (verify_stmts): Dispatch to gimple/type verification code.
18129         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
18130         issue with call argument types.
18131
18132 2009-04-27  Michael Matz  <matz@suse.de>
18133
18134         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
18135         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
18136         to above.
18137
18138 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
18139             Eric Botcazou  <ebotcazou@adacore.com>
18140
18141         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
18142         a label's basic block.
18143         (mark_target_live_regs): Tidy and rework obsolete comments.
18144         Change back DF problem to LIVE.  If a label starts a basic block,
18145         assume that all registers that used to be live then still are.
18146         (init_resource_info): If a label starts a basic block, set its
18147         BLOCK_FOR_INSN accordingly.
18148         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
18149
18150 2009-04-27  Richard Guenther  <rguenther@suse.de>
18151
18152         * tree-flow-inline.h (function_ann): Remove.
18153         (get_function_ann): Likewise.
18154         * tree-dfa.c (create_function_ann): Remove.
18155         * tree-flow.h (struct static_var_ann_d): Remove.
18156         (struct function_ann_d): Likewise.
18157         (union tree_ann_d): Remove fdecl member.
18158         (function_ann_t): Remove.
18159         (function_ann, get_function_ann, create_function_ann): Remove
18160         declarations.
18161
18162 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
18163
18164         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
18165
18166 2009-04-27  Jan Hubicka  <jh@suse.cz>
18167
18168         * ipa-pure-const.c (struct funct_state_d): New fields
18169         state_previously_known, looping_previously_known; remove
18170         state_set_in_source.
18171         (analyze_function): Use new fields.
18172         (propagate): Avoid assumption that state_set_in_source imply
18173         nonlooping.
18174
18175         * tree-ssa-loop-niter.c (finite_loop_p): New function.
18176         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
18177         * cfgloop.h (finite_loop_p): Declare.
18178
18179 2009-04-26  Michael Matz  <matz@suse.de>
18180
18181         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
18182
18183 2009-04-26  Michael Matz  <matz@suse.de>
18184
18185         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
18186         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
18187         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
18188         pass_mark_used_blocks): Remove.
18189         * tree-optimize.c (pass_free_datastructures,
18190         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
18191         * passes.c (init_optimization_passes): Don't call
18192         pass_mark_used_blocks, remove dead code.
18193
18194 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
18195
18196         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
18197         * tree-ssa-live.h (register_ssa_partition): Likewise.
18198
18199 2009-04-26  Michael Matz  <matz@suse.de>
18200
18201         Expand from SSA.
18202         * builtins.c (fold_builtin_next_arg): Handle SSA names.
18203         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
18204         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
18205         SSA names.
18206         (compare_pairs): Swap cost comparison.
18207         (coalesce_ssa_name): Don't use change_partition_var.
18208         * tree-nrv.c (struct nrv_data): Add modified member.
18209         (finalize_nrv_r): Set it.
18210         (tree_nrv): Use it to update statements.
18211         (pass_nrv): Require PROP_ssa.
18212         * tree-mudflap.c (mf_decl_cache_locals,
18213         mf_build_check_statement_for): Use make_rename_temp.
18214         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
18215         * alias.c (find_base_decl): Handle SSA names.
18216         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
18217         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
18218         * rtl.h (set_reg_attrs_for_parm): Declare.
18219         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
18220         to "optimized", remove unused locals at finish.
18221         (execute_free_datastructures): Make global, call
18222         delete_tree_cfg_annotations.
18223         (execute_free_cfg_annotations): Don't call
18224         delete_tree_cfg_annotations.
18225
18226         * ssaexpand.h: New file.
18227         * expr.c (toplevel): Include ssaexpand.h.
18228         (expand_assignment): Handle SSA names the same as register variables.
18229         (expand_expr_real_1): Expand SSA names.
18230         * cfgexpand.c (toplevel): Include ssaexpand.h.
18231         (SA): New global variable.
18232         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
18233         (SSAVAR): New macro.
18234         (set_rtl): New helper function.
18235         (add_stack_var): Deal with SSA names, use set_rtl.
18236         (expand_one_stack_var_at): Likewise.
18237         (expand_one_stack_var): Deal with SSA names.
18238         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
18239         before unique numbers.
18240         (expand_stack_vars): Use set_rtl.
18241         (expand_one_var): Accept SSA names, add asserts for them, feed them
18242         to above subroutines.
18243         (expand_used_vars): Expand all partitions (without default defs),
18244         then only the local decls (ignoring those expanded already).
18245         (expand_gimple_cond): Remove edges when jumpif() expands an
18246         unconditional jump.
18247         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
18248         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
18249         SSA name.
18250         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
18251         members of SA; deal with PARM_DECL partitions here; expand
18252         all PHI nodes, free tree datastructures and SA.  Commit instructions
18253         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
18254         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
18255         info and statements at start, collect garbage at finish.
18256         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
18257         (VAR_ANN_PARTITION) Remove.
18258         (change_partition_var): Don't declare.
18259         (partition_to_var): Always return SSA names.
18260         (var_to_partition): Only accept SSA names.
18261         (register_ssa_partition): Only check argument.
18262         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
18263         member.
18264         (delete_var_map): Don't free it.
18265         (var_union): Only accept SSA names, simplify.
18266         (partition_view_init): Mark only useful SSA names as used.
18267         (partition_view_fini): Only deal with SSA names.
18268         (change_partition_var): Remove.
18269         (dump_var_map): Use ssa_name instead of partition_to_var member.
18270         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
18271         basic blocks.
18272         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
18273         (struct _elim_graph): New member const_dests; nodes member vector of
18274         ints.
18275         (set_location_for_edge): New static helper.
18276         (create_temp): Remove.
18277         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
18278         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
18279         (new_elim_graph): Allocate const_dests member.
18280         (clean_elim_graph): Truncate const_dests member.
18281         (delete_elim_graph): Free const_dests member.
18282         (elim_graph_size): Adapt to new type of nodes member.
18283         (elim_graph_add_node): Likewise.
18284         (eliminate_name): Likewise.
18285         (eliminate_build): Don't take basic block argument, deal only with
18286         partition numbers, not variables.
18287         (get_temp_reg): New static helper.
18288         (elim_create): Use it, deal with RTL temporaries instead of trees.
18289         (eliminate_phi): Adjust all calls to new signature.
18290         (assign_vars, replace_use_variable, replace_def_variable): Remove.
18291         (rewrite_trees): Only do checking.
18292         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
18293         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
18294         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
18295         contains_tree_r, MAX_STMTS_IN_LATCH,
18296         process_single_block_loop_latch, analyze_edges_for_bb,
18297         perform_edge_inserts): Remove.
18298         (expand_phi_nodes): New global function.
18299         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
18300         functions, initialize new parameter, remember partitions having a
18301         default def.
18302         (finish_out_of_ssa): New global function.
18303         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
18304         don't reset in_ssa_p here, don't disable TER when mudflap.
18305         (pass_del_ssa): Remove.
18306         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
18307         partition members.
18308         (execute_free_datastructures): Declare.
18309         * Makefile.in (SSAEXPAND_H): New variable.
18310         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
18311         * basic-block.h (commit_one_edge_insertion): Declare.
18312         * passes.c (init_optimization_passes): Move pass_nrv and
18313         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
18314         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
18315         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
18316         (redirect_branch_edge): Deal with super block when expanding, split
18317         out jump patching itself into ...
18318         (patch_jump_insn): ... here, new static helper.
18319
18320 2009-04-26  Michael Matz  <matz@suse.de>
18321
18322         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
18323         beyond num_ssa_names.
18324         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
18325         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
18326
18327 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
18328
18329         PR inline-asm/39543
18330         * fwprop.c (forward_propagate_asm): New function.
18331         (forward_propagate_and_simplify): Propagate also into __asm, if it
18332         doesn't increase the number of referenced registers.
18333
18334         PR c/39889
18335         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
18336
18337 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
18338
18339         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
18340         note_nonlocal_vla_type for nonlocal VLAs.
18341         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
18342         contains_remapped_vars, remap_vla_decls): New functions.
18343         (convert_nonlocal_reference_stmt): If not optimizing, call
18344         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
18345         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
18346         if it wasn't found in var_map.
18347         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
18348         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
18349         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
18350         declare_vars.
18351         * gimplify.c (nonlocal_vlas): New variable.
18352         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
18353         referenced VLAs.
18354         (gimplify_body): Create and destroy nonlocal_vlas.
18355
18356         * dwarf2out.c (loc_descr_plus_const): New function.
18357         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
18358         mem_loc_descriptor, loc_descriptor_from_tree_1,
18359         descr_info_loc, gen_variable_die): Use it.
18360
18361         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
18362         !TREE_STATIC VAR_DECLs.
18363         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
18364         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
18365         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
18366         DECL_BY_REFERENCE is valid.
18367         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
18368         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
18369         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
18370         Copy DECL_BY_REFERENCE.
18371         (struct nesting_copy_body_data): New type.
18372         (nesting_copy_decl): New function.
18373         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
18374         if they have variable length.
18375
18376 2009-04-26  Michael Matz  <matz@suse.de>
18377
18378         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
18379         mark new temporaries for renaming.
18380
18381 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
18382
18383         PR c/39581
18384         * c-decl.c (global_bindings_p): Return negative value.
18385         (c_variable_size): New.  Based on variable_size from
18386         stor-layout.c.
18387         (grokdeclarator): Call c_variable_size not variable_size.
18388
18389 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
18390
18391         * config/i386/i386.c (print_operand) ['z']: Fix typo.
18392
18393 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
18394
18395         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
18396         Redefine it to just use mingw/include.
18397         (ASM_SPEC): Rules for -m32 and -m64.
18398         (LINK_SPEC): Use Likewise.
18399         (SPEC_32): New define.
18400         (SPEC_64): Likewise.
18401         (SUB_LINK_SPEC): Likewise.
18402         (MULTILIB_DEFAULTS): New define.
18403         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
18404         Add multilib options.
18405         (MULTILIB_DIRNAMES): Likewise.
18406         (MULTILIB_OSDIRNAMES): Likewise.
18407         (LIBGCC): Likewise.
18408         (INSTALL_LIBGCC): Likewise.
18409
18410 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
18411
18412         PR c/39556
18413         * c-tree.h (enum c_inline_static_type): New.
18414         (record_inline_static): Declare.
18415         * c-decl.c (struct c_inline_static, c_inline_statics,
18416         record_inline_static, check_inline_statics): New.
18417         (pop_file_scope): Call check_inline_statics.
18418         (start_decl): Call record_inline_static instead of pedwarning
18419         directly for static in inline function.
18420         * c-typeck.c (build_external_ref): Call record_inline_static
18421         instead of pedwarning directly for static referenced in inline
18422         function.
18423
18424 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
18425
18426         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
18427         not new but only being rescanned.
18428         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
18429         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
18430         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
18431         record_set_info, compute_set, grealloc): Remove.
18432         (recompute_all_luids): New function.
18433         (gcse_main): Don't compute sets, and don't do related memory
18434         allocations/free-ing.  If something changed before the end of the
18435         pass, update LUIDs using recompute_all_luids.
18436         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
18437         (free_gcse_mem): Don't free it either.
18438         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
18439         Use the df insn LUIDs.
18440         (load_killed_in_block): Likewise.
18441         (compute_hash_table_work): Don't compute reg_set_in_block.
18442         (compute_transp): Use DF_REG_DEF_CHAINs.
18443         (local_cprop_pass): Don't use compute_sets and related functions.
18444         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
18445         Use get_max_uid() instead of max_cuid.
18446         (insert_insn_end_basic_block, pre_insert_copy_insn,
18447         update_ld_motion_stores): Don't try to
18448         keep reg_set tables up to date.
18449         (pre_insert_copies): Use df insn LUIDs.
18450         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
18451         (reg_set_info): Don't use extra bitmap argument.
18452         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
18453         information to compute regs_set_in_block.
18454         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
18455         (bypass_jumps): Don't use compute_sets and friends.
18456
18457 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18458
18459         PR testsuite/39710
18460         * opts.c (undocumented_msg): Do not leave blank even with
18461         ENABLE_CHECKING.
18462
18463 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
18464
18465         * c-decl.c (build_enumerator): Allow values folding to integer
18466         constants but not integer constant expressions with a pedwarn if
18467         pedantic.
18468
18469 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
18470
18471         PR c/39582
18472         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
18473         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
18474         type is an integer constant.
18475
18476 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
18477
18478         PR target/39897
18479         * config/i386/i386.c (print_operand) ['z']: Revert handling of
18480         HImode operands.
18481
18482 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
18483
18484         PR c/39564
18485         * c-decl.c (grokdeclarator): Diagnose declarations of functions
18486         with variably modified return type and no storage class
18487         specifiers, except for the case of nested functions.  Distinguish
18488         extern declarations of functions with variably modified return
18489         types from those of objects with variably modified types.
18490
18491 2009-04-25  Jan Hubicka  <jh@suse.cz>
18492
18493         * tree.c (list_equal_p): New function.
18494         * tree.h (list_equal_p): Declare.
18495         * coretypes.h (edge_def, edge, const_edge, basic_block_def
18496         basic_block_def, basic_block, const_basic_block): New.
18497         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
18498         (redirect_eh_edge): New function.
18499         (make_eh_edge_update_phi): EH edges are not abnormal.
18500         * except.c: Include tree-flow.h.
18501         (list_match): New function.
18502         (eh_region_replaceable_by_p): New function.
18503         (replace_region): New function.
18504         (hash_type_list): New function.
18505         (hash_eh_region): New function.
18506         (eh_regions_equal_p): New function.
18507         (merge_peers): New function.
18508         (remove_unreachable_regions): Verify EH tree when checking;
18509         merge peers.
18510         (copy_eh_region_1): New function.
18511         (copy_eh_region): New function.
18512         (push_reachable_handler): New function.
18513         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
18514         regions without label but with live RESX.
18515         * except.h (redirect_eh_edge_to_label): New.
18516         * tree-flow.h (redirect_eh_edge): New.
18517         * coretypes.h (edge_def, edge, const_edge, basic_block_def
18518         basic_block_def, basic_block, const_basic_block): Remove.
18519         * Makefile.in (except.o): Add dependency on tree-flow.h
18520         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
18521         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
18522         Remove.
18523
18524 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
18525
18526         PR bootstrap/39645
18527         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
18528         on the destination of memcpy.
18529
18530 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
18531
18532         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
18533         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
18534         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
18535
18536 2009-04-25  Jan Hubicka  <jh@suse.cz>
18537
18538         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
18539         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
18540         to be reached by different label than left.
18541         (update_eh_edges): Update comment; remove edge_to_remove if possible
18542         and return true if suceeded.
18543         (cleanup_empty_eh): Accept sharing map; handle shared regions.
18544         (cleanup_eh): Compute sharing map.
18545         * except.c (remove_eh_handler_and_replace): Add argument if we should
18546         update regions.
18547         (remove_unreachable_regions): Update for label sharing.
18548         (label_to_region_map): Likewise.
18549         (get_next_region_sharing_label): New function.
18550         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
18551         prev_try pointers.
18552         (remove_eh_handler): Update.
18553         (remove_eh_region_and_replace_by_outer_of): New function.
18554         * except.h (struct eh_region): Add next_region_sharing_label.
18555         (remove_eh_region_and_replace_by_outer_of,
18556         get_next_region_sharing_label): Declare.
18557         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
18558
18559 2009-04-25  Jan Hubicka  <jh@suse.cz>
18560
18561         * tree-cfg.c (split_critical_edges): Split also edges where we can't
18562         insert code even if they are not critical.
18563
18564 2009-04-25  Jan Hubicka  <jh@suse.cz>
18565
18566         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
18567         (gimple_can_remove_branch_p): EH edges won't remove branch by
18568         redirection.
18569         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
18570         updating of non-abnormal EH edges.
18571         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
18572         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
18573         (split_critical_edges): Split also edges where emitting code on them
18574         will lead to splitting later.
18575
18576 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
18577             H.J. Lu  <hongjiu.lu@intel.com>
18578
18579         PR target/39590
18580         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
18581         the configured assembler supports fildq and fistpq mnemonics.
18582         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
18583         * configure: Regenerated.
18584         * config.in: Ditto.
18585
18586         * config/i386/i386.c (print_operand): Handle 'Z'.
18587         ['z']: Remove handling of special fild/fist suffixes.
18588         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
18589         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
18590         suffix of fild insn.
18591         (*floatsi<mode>2_vector_mixed): Ditto.
18592         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
18593         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
18594         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
18595         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
18596         * config/i386/gas.h (GAS_MNEMONICS): Remove.
18597
18598 2009-04-25  Ben Elliston  <bje@au.ibm.com>
18599
18600         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
18601         the source of a set operation.
18602
18603 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
18604
18605         * target.h (struct gcc_target): Add case_values_threshold field.
18606         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
18607         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
18608         * targhooks.c (default_case_values_threshold): New function.
18609         * targhooks.h (default_case_values_threshold): Declare function.
18610         * stmt.c (expand_case): Use case_values_threshold target hook.
18611         * expr.h (case_values_threshold): Remove declartation.
18612         * expr.c (case_values_threshold): Remove function.
18613         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
18614
18615         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
18616         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
18617         (avr_case_values_threshold): Declare as static.
18618         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
18619
18620         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
18621         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
18622         (mn10300_case_values_threshold): New function.
18623
18624 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
18625
18626         * ira.c (setup_cover_and_important_classes): Add enum cast.
18627
18628 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
18629
18630         * genpreds.c (write_enum_constraint_num): Output definition of
18631         CONSTRAINT_NUM_DEFINED_P macro.
18632         * ira.c (setup_cover_and_important_classes): Use
18633         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
18634
18635 2009-04-24  DJ Delorie  <dj@redhat.com>
18636
18637         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
18638         __SH2A_SINGLE_ONLY__ also.
18639
18640 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
18641
18642         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
18643         (movdf_internal): Ditto.
18644         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
18645         SFmode and DFmode constants.
18646         (ia64_print_operand): Add 'G' format for printing
18647         floating point constants.
18648
18649 2009-04-24  Richard Guenther  <rguenther@suse.de>
18650
18651         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
18652         from unsigned additions.
18653
18654 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
18655
18656         * c-typeck.c (set_init_index): Allow array designators that are
18657         not integer constant expressions with a pedwarn if pedantic.
18658
18659 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
18660
18661         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
18662         zero if no overlap in nonzero bits between the operands.
18663
18664 2009-04-24  Ian Lance Taylor  <iant@google.com>
18665
18666         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
18667         (record_dead_and_set_regs): Likewise.
18668         * df.h (struct df_mw_hardreg): Change flags field to int.
18669         (struct df_base_ref): Likewise.
18670         (struct df): Change changeable_flags field to int.
18671         * df-scan.c (df_defs_record): Change clobber_flags to int.
18672         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
18673         constants rather than #define macros.
18674         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
18675         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
18676         (enum dwarf_calling_convention): Likewise.
18677         (enum dwarf_line_number_x_ops): Likewise.
18678         (enum dwarf_call_frame_info): Likewise.
18679         (enum dwarf_source_language): Likewise.
18680         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
18681         (add_calling_convention_attribute): Likewise.
18682         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
18683         (combine_comparisons): Change compcode to int.  Add cast to enum type.
18684         * genrecog.c (maybe_both_true_2): Change c to int.
18685         (write_switch): Likewise.  Add cast to enum type.
18686         * gimplify.c (gimplify_omp_for): Handle return values from
18687         gimplify_expr using MIN rather than bitwise or.
18688         (gimplify_expr): Add cast to enum type.
18689         * ipa-prop.c (update_jump_functions_after_inlining): Change
18690         IPA_BOTTOM to IPA_JF_UNKNOWN.
18691         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
18692         Add casts to enum type.
18693         (setup_cover_and_important_classes): Change cl to int.  Add casts
18694         to enum type.
18695         (setup_class_translate): Change cl and mode to int.
18696         (ira_init_once): Change mode to int.
18697         (free_register_move_costs): Likewise.
18698         (setup_prohibited_mode_move_regs): Add casts to enum type.
18699         * langhooks.c (add_builtin_function_common): Rework assertion that
18700         value fits bitfield.
18701         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
18702         * omega.c (omega_do_elimination): Avoid math on enum types.
18703         * optabs.c (expand_vec_shift_expr): Remove casts to int.
18704         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
18705         int local to handle integral_argment value.
18706         * regmove.c (try_auto_increment): Change PUT_MODE to
18707         PUT_REG_NOTE_KIND.
18708         * reload.c (push_secondary_reload): Add casts to enum type.
18709         (secondary_reload_class, find_valid_class): Likewise.
18710         * reload1.c (emit_input_reload_insns): Likewise.
18711         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
18712         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
18713         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
18714         constant.
18715         * tree.c (build_common_builtin_nodes): Add casts to enum type.
18716         * tree-complex.c (complex_lattice_t): Typedef to int rather than
18717         enum type.
18718         (expand_complex_libcall): Add casts to enum type.
18719         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
18720         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
18721         with ERROR_MARK, not NUM_TREE_CODES.
18722         (vect_create_epilog_for_reduction): Likewise.
18723         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
18724         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
18725         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
18726         enum machine_mode.
18727         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
18728         vect_unused_in_loop.  Change 0 to loop_vect.
18729         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
18730         * var-tracking.c (get_init_value): Change return type to enum
18731         var_init_status.
18732         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
18733         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
18734         arm_fp_model.
18735         (arm_override_options): Add casts to enum type.
18736         (arm_emit_tls_decoration): Likewise.
18737         * config/i386/i386.c (ix86_function_specific_restore): Add casts
18738         to enum type.
18739         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
18740         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
18741         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
18742         enum type.
18743         * config/s390/s390.c (code_for_builtin_64): Change to array of
18744         enum insn_code.
18745         (code_for_builtin_31): Likewise.
18746         (s390_expand_builtin): Change code_for_builtin to enum insn_code
18747         const *.
18748         * config/sparc/sparc.c (sparc_override_options): Change value
18749         field in struct code_model to enum cmodel.  In initializer change
18750         0 to NULL and add cast to enum type.
18751
18752         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
18753         Change all callers.  Issue a -Wc++-compat warning using
18754         lhs_origtype if necessary.
18755         (convert_for_assignment): Issue -Wc++-compat warnings about
18756         invalid conversions to enum type on assignment.
18757         * c-common.h (build_modify_expr): Update declaration.
18758
18759 2009-04-24  Nick Clifton  <nickc@redhat.com>
18760
18761         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
18762         (function_arg_advance): Likewise.
18763         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
18764         5th alternative.
18765
18766 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
18767
18768         * config/s390/constraints.md ('I', 'J'): Fix condition.
18769
18770 2009-04-24  Diego Novillo  <dnovillo@google.com>
18771
18772         * gengtype-parse.c (parse_error): Add newline after message.
18773
18774 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
18775
18776         * config/i386/sse.md (avxmodesuffixs): Removed.
18777         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
18778         (*avx_pinsr<ssevecsize>): This.
18779
18780 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
18781
18782         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
18783         follow chains of regs with a single definition, and allow expressions
18784         that are function_invariant_p.
18785         (simple_rhs_p): Allow expressions that are function_invariant_p.
18786
18787 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
18788
18789         PR middle-end/39867
18790         * fold-const.c (fold_cond_expr_with_comparison): When folding
18791         > and >= to MAX, make sure the MAX uses the same type as the
18792         comparison's operands.
18793
18794 2009-04-24  Nick Clifton  <nickc@redhat.com>
18795
18796         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
18797         addressing for DImode accesses.
18798         (frv_print_operand_address): Handle PLUS case.
18799         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
18800
18801 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
18802
18803         PR rtl-optimization/39794
18804         * alias.c (canon_true_dependence): Add x_addr argument.
18805         * rtl.h (canon_true_dependence): Adjust prototype.
18806         * cse.c (check_dependence): Adjust canon_true_dependence callers.
18807         * cselib.c (cselib_invalidate_mem): Likewise.
18808         * gcse.c (compute_transp): Likewise.
18809         * dse.c (scan_reads_nospill): Likewise.
18810         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
18811         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
18812         canon_base_addr of the group, plus optional offset.
18813         (struct group_info): Rename canon_base_mem to
18814         canon_base_addr.
18815         (get_group_info): Set canon_base_addr to canon_rtx of base, not
18816         canon_rtx of base_mem.
18817
18818 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
18819
18820         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
18821         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
18822
18823 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18824
18825         * config/spu/spu-builtins.h: Delete file.
18826
18827         * config/spu/spu.h (enum spu_builtin_type): Move here from
18828         spu-builtins.h.
18829         (struct spu_builtin_description): Likewise.  Add GTY marker.
18830         Do not use enum spu_function_code or enum insn_code.
18831         (spu_builtins): Add extern declaration.
18832
18833         * config/spu/spu.c: Do not include "spu-builtins.h".
18834         (enum spu_function_code, enum spu_builtin_type_index,
18835         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
18836         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
18837         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
18838         unsigned_V2DI_type_node): Move here from spu-builtins.h.
18839         (spu_builtin_types): Make static.  Add GTY marker.
18840         (spu_builtins): Add extern declaration with GTY marker.
18841         Include "gt-spu.h".
18842
18843         * config/spu/spu-c.c: Do not include "spu-builtins.h".
18844         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
18845         Check programmatically whether all parameters are scalar.
18846
18847         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
18848
18849 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
18850
18851         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
18852         assignment from the constructor either if the target is volatile.
18853
18854 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
18855
18856         * config/arm/arm.md (insv): Do not share operands[0].
18857
18858 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
18859
18860         * config/vxlib-tls.c (active_tls_threads): Delete.
18861         (delete_hook_installed): New.
18862         (tls_delete_hook): Don't delete the delete hook.
18863         (tls_destructor): Delete it here.
18864         (__gthread_set_specific): Adjust installing the delete hook.
18865         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
18866         __gthread_leave_tsd_dtor_context.
18867
18868 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
18869
18870         * c-format.c (gcc_tdiag_char_table): Add support for %E.
18871
18872 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
18873
18874         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
18875         enum type.
18876         (alpha_rtx_costs): Ditto.
18877         (emit_unlikely_jump): Use add_reg_note.
18878         (emit_frame_store_1): Ditto.
18879         (alpha_expand_prologue): Ditto.
18880         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
18881         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
18882
18883 2009-04-23  Nick Clifton  <nickc@redhat.com>
18884
18885         * config/v850/v850.md (epilogue): Remove suppressed code.
18886         (return): Rename to return_simple and remove test of frame size.
18887         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
18888         to gen_return_simple.
18889
18890 2009-04-22  Jing Yu  <jingyu@google.com>
18891
18892         PR testsuite/39781
18893         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
18894
18895 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18896
18897         PR C/31499
18898         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
18899         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
18900         value is a VECTOR_CST, the element type is the element type of the
18901         vector.
18902
18903 2009-04-22  DJ Delorie  <dj@redhat.com>
18904
18905         * config/m32c/m32c.h: Update GTY annotations to new syntax.
18906
18907 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
18908
18909         * alias.c (find_base_term): Move around LO_SUM case, so that
18910         CONST falls through into PLUS/MINUS handling.
18911
18912         PR c/39855
18913         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
18914         into 0, use omit_one_operand.
18915
18916 2009-04-23  Ben Elliston  <bje@au.ibm.com>
18917
18918         * config/rs6000/linux-unwind.h (get_regs): Remove type
18919         puns. Change the type of `pc' to an array of unsigned ints and
18920         update all users.  Constify frame24.
18921
18922 2009-04-22  DJ Delorie  <dj@redhat.com>
18923
18924         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
18925         declarations before code.
18926         (current_function_special_page_vector): Likewise.
18927         (m32c_expand_insv): Silence a warning.
18928
18929 2009-04-21  Taras Glek  <tglek@mozilla.com>
18930
18931         * alias.c: Update GTY annotations to new syntax.
18932         * basic-block.h: Likewise.
18933         * bitmap.h: Likewise.
18934         * c-common.h: Likewise.
18935         * c-decl.c: Likewise.
18936         * c-parser.c: Likewise.
18937         * c-pragma.c: Likewise.
18938         * c-tree.h: Likewise.
18939         * cfgloop.h: Likewise.
18940         * cgraph.h: Likewise.
18941         * config/alpha/alpha.c: Likewise.
18942         * config/arm/arm.h: Likewise.
18943         * config/avr/avr.h: Likewise.
18944         * config/bfin/bfin.c: Likewise.
18945         * config/cris/cris.c: Likewise.
18946         * config/darwin.c: Likewise.
18947         * config/frv/frv.c: Likewise.
18948         * config/i386/i386.c: Likewise.
18949         * config/i386/i386.h: Likewise.
18950         * config/i386/winnt.c: Likewise.
18951         * config/ia64/ia64.h: Likewise.
18952         * config/iq2000/iq2000.c: Likewise.
18953         * config/mips/mips.c: Likewise.
18954         * config/mmix/mmix.h: Likewise.
18955         * config/pa/pa.c: Likewise.
18956         * config/pa/pa.h: Likewise.
18957         * config/rs6000/rs6000.c: Likewise.
18958         * config/s390/s390.c: Likewise.
18959         * config/sparc/sparc.c: Likewise.
18960         * config/xtensa/xtensa.c: Likewise.
18961         * cselib.h: Likewise.
18962         * dbxout.c: Likewise.
18963         * dwarf2out.c: Likewise.
18964         * except.c: Likewise.
18965         * except.h: Likewise.
18966         * fixed-value.h: Likewise.
18967         * function.c: Likewise.
18968         * function.h: Likewise.
18969         * gimple.h: Likewise.
18970         * integrate.c: Likewise.
18971         * optabs.c: Likewise.
18972         * output.h: Likewise.
18973         * real.h: Likewise.
18974         * rtl.h: Likewise.
18975         * stringpool.c: Likewise.
18976         * tree-data-ref.c: Likewise.
18977         * tree-flow.h: Likewise.
18978         * tree-scalar-evolution.c: Likewise.
18979         * tree-ssa-address.c: Likewise.
18980         * tree-ssa-alias.h: Likewise.
18981         * tree-ssa-operands.h: Likewise.
18982         * tree.c: Likewise.
18983         * tree.h: Likewise.
18984         * varasm.c: Likewise.
18985         * varray.h: Likewise.
18986         * vec.h: Likewise.
18987         * coretypes.h: Do not define GTY macro if it is already defined.
18988         * doc/gty.texi: Update GTY documentation to new syntax.
18989         * gengtype-lex.l: Enforce attribute-like syntax for GTY
18990         annotations on structs.
18991         * gengtype-parse.c: Likewise.
18992
18993 2009-04-22  Mark Heffernan  <meheff@google.com>
18994
18995         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
18996
18997 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
18998
18999         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
19000         where appropriate.
19001
19002 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
19003
19004         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
19005         the same as a PLUS without a shift.  Increase the cost of a
19006         CONST_INT in MULT.
19007
19008 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19009
19010         * Makefile.in: Update dependencies.
19011         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
19012         * errors.h: Remove bogus comment about compatibility.
19013         (warning): Update declaration.
19014         * genautomata.c: Update all calls to warning.
19015         * gimple.c: Do not include errors.h. Include toplev.h.
19016         * tree-ssa-structalias.c: Do not include errors.h.
19017         * omega.c: Likewise.
19018         * tree-ssa-reassoc.c: Likewise.
19019         * config/spu/spu-c.c: Likewise.
19020         * config/spu/t-spu-elf: Update dependencies.
19021
19022 2009-04-22  Richard Guenther  <rguenther@suse.de>
19023
19024         PR tree-optimization/39824
19025         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
19026         make sure the types are compatible.
19027
19028 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19029
19030         PR c++/14875
19031         * c-common.c (c_parse_error): Take a token_flags parameter.
19032         Use token_type for the token type instead.
19033         Pass token_flags to cpp_type2name.
19034         * c-common.h (c_parse_error): Update declaration.
19035         * c-parser.c (c_parser_error): Pass 0 as token flags.
19036
19037 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
19038
19039         PR rtl-optimization/39580
19040         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
19041
19042 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19043
19044         * function.c (expand_function_end): Do not emit a jump to the "naked"
19045         return label for fall-through returns.
19046         * except.c (sjlj_emit_function_exit): Always place the call to the
19047         unregister function at the location installed by expand_function_end.
19048
19049 2009-04-22  Richard Guenther  <rguenther@suse.de>
19050
19051         PR tree-optimization/39845
19052         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
19053         (gen_inbound_check): Likewise.
19054
19055 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
19056
19057         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
19058         padding for PPC.
19059         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
19060         * config/vxlib.c (__gthread_once): Add race guard for PPC.
19061
19062 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
19063
19064         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
19065         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
19066         shift counts to avoid out-of-bounds array accesses.
19067
19068 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
19069
19070         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
19071         (Pmode): Move above.
19072
19073 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
19074
19075         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
19076         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
19077         GET_CODE macro.  Use IN_RANGE macro where appropriate.
19078         * config/alpha/alpha.h: Ditto.
19079         * config/alpha/alpha.md: Ditto.
19080         * config/alpha/constraints.md: Ditto.
19081         * config/alpha/predicates.md: Ditto.
19082
19083 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
19084
19085         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
19086         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19087         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19088         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19089         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19090         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19091         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19092         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19093         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19094         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19095         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19096         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19097         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19098         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19099         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19100         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19101         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19102         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19103         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19104         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19105         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19106         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19107         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19108         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19109         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19110         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19111         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19112
19113 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
19114
19115         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
19116         references from comments.
19117         * cfgbuild.c: (count_basic_blocks): Delete.
19118         (find_basic_blocks_1): Delete.
19119         (find_basic_blocks): Delete.
19120         * except.c (finish_eh_generation): Make static.  Move comment from
19121         except.h here.  Remove find_basic_blocks references from comments.
19122         * except.h (finish_eh_generation): Delete.
19123         * basic-block.h (find_basic_blocks): Delete.
19124         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
19125
19126 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
19127
19128         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
19129         (sdbout_parms):  Likewise.
19130
19131 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
19132
19133         * config/sh/sh.c (prepare_cbranch_operands): Use
19134         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
19135         (expand_cbranchdi4): Likewise.
19136         (from_compare): Add cast to enum type.
19137         (expand_cbranchsi4): Use add_reg_note.
19138         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
19139         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
19140         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
19141         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
19142         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
19143         instead of CODE_FOR_nothing.
19144         (cbranchdi4): Likewise.  Fix the order of arguments for
19145         gen_rtx_fmt_ee.
19146         (push_fpscr): Use add_reg_note.
19147         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
19148         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
19149
19150 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
19151
19152         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
19153         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
19154         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
19155         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
19156         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
19157         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
19158         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
19159         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
19160         config/alpha/x-vms, config/arc/t-arc,
19161         config/arm/README-interworking, config/arm/arm-c.c,
19162         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
19163         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
19164         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
19165         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
19166         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
19167         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
19168         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
19169         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
19170         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
19171         config/cris/t-elfmulti, config/crx/t-crx,
19172         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
19173         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
19174         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
19175         config/h8300/t-h8300, config/i386/athlon.md,
19176         config/i386/darwin-libgcc.10.4.ver,
19177         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
19178         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
19179         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
19180         config/i386/t-linux64, config/i386/t-nwld,
19181         config/i386/t-rtems-i386, config/i386/t-sol2-10,
19182         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
19183         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
19184         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
19185         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
19186         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
19187         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
19188         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
19189         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
19190         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
19191         config/m68k/t-uclinux, config/mcore/t-mcore,
19192         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
19193         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
19194         config/mips/crtn.asm, config/mips/irix-crti.asm,
19195         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
19196         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
19197         config/mips/mips-fixed.md, config/mips/sb1.md,
19198         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
19199         config/mips/t-iris6, config/mips/t-isa3264,
19200         config/mips/t-libgcc-mips16, config/mips/t-linux64,
19201         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
19202         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
19203         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
19204         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
19205         config/mn10300/t-linux, config/mn10300/t-mn10300,
19206         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
19207         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
19208         config/picochip/libgccExtras/clzsi2.asm,
19209         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
19210         config/rs6000/darwin-libgcc.10.4.ver,
19211         config/rs6000/darwin-libgcc.10.5.ver,
19212         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
19213         config/rs6000/t-aix43, config/rs6000/t-aix52,
19214         config/rs6000/t-darwin, config/rs6000/t-fprules,
19215         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
19216         config/rs6000/t-lynx, config/rs6000/t-netbsd,
19217         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
19218         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
19219         config/rs6000/t-rtems, config/rs6000/t-spe,
19220         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
19221         config/score/t-score-elf, config/sh/divcost-analysis,
19222         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
19223         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
19224         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
19225         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
19226         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
19227         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
19228         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
19229         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
19230         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
19231         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
19232         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
19233         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
19234         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
19235         limitx.h, version.c, xcoff.h: Add copyright and license notices.
19236         * config/h8300/genmova.sh: Include copyright and license notices
19237         in generated output.
19238         * config/h8300/mova.md: Regenerate.
19239         * doc/install.texi2html: Include word "Copyright" in copyright
19240         notice and use name "Free Software Foundation, Inc.".
19241         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
19242         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
19243         ChangeLog-2007, ChangeLog-2008: Correct dates.
19244
19245 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
19246
19247         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
19248         NE_EXPR operations as well.
19249         * c-parser.c (c_parser_condition): Do not set location information on
19250         the condition.
19251         (c_parser_conditional_expression): Likewise.
19252         (c_parser_binary_expression): Set location information on operators.
19253         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
19254         TRUTH_NOT_EXPR has been folded.
19255         * fold-const.c (fold_truth_not_expr): Copy location information from
19256         the incoming expression to the outgoing one.
19257         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
19258         recursive calls on the LHS of the operator but pass that of the
19259         operator to recursive calls on the RHS of the operator.  Set it
19260         on the COND_EXPR.
19261         (shortcut_cond_expr): Set the locus of the operator on the second
19262         COND_EXPR and that of the expression on the first in degenerate cases.
19263         Pass the locus of the expression to calls to shortcut_cond_r.
19264         Set the locus of the 'then' block on the associated jump, if any.
19265         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
19266         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
19267         expression to call to gimplify_boolean_expr.
19268
19269 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
19270
19271         * config.gcc: Add additional configuration for
19272         i686-w64-mingw* and x86_64-w64-mingw* triplet.
19273         * config/i386/mingw-w64.h: New mingw-w64 specific header.
19274         (CPP_SPEC): Redefine for allowing -municode option.
19275         (STARTFILE_SPEC): Likewise.
19276         * config/i386/t-mingw-w64: New.
19277         * config/i386/mingw-w64.opt: New.
19278         (municode): Add new target option.
19279         * doc/invoke.texi (municode): Add documentation for new option.
19280
19281 2009-04-21  Ian Lance Taylor  <iant@google.com>
19282
19283         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19284         Correct test for number of arguments.
19285         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
19286
19287 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
19288
19289         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
19290         argument of emit_library_call.
19291
19292 2009-04-21  Richard Guenther  <rguenther@suse.de>
19293
19294         PR middle-end/39829
19295         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
19296         inside VIEW_CONVERT_EXPRs.
19297
19298 2009-04-21  Martin Jambor  <mjambor@suse.cz>
19299
19300         * tree-switch-conversion.c (build_constructors): Split a long line.
19301         (constructor_contains_same_values_p): New function.
19302         (build_one_array): Create assigns of constants if possible, do not
19303         call mark_sym_for_renaming, call update_stmt.
19304         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
19305         make_rename_temp.  Do not call mark_symbols_for_renaming, call
19306         update_stmt.
19307         (gen_def_assigns): Do not call mark_symbols_for_renaming or
19308         find_new_referenced_vars, call update_stmt.
19309         (gen_inbound_check): Use create_tmp_var and create ssa names manually
19310         instead of calling make_rename_temp.  Do not call
19311         find_new_referenced_vars or mark_symbols_for_renaming, call
19312         update_stmt.
19313
19314 2009-04-21  Richard Guenther  <rguenther@suse.de>
19315
19316         PR tree-optimization/39827
19317         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
19318         (tree_ssa_phiprop): Pass the correct array size.
19319
19320 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
19321
19322         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
19323
19324 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19325
19326         PR 16202
19327         * c-typeck.c (lvalue_p): Move declaration ...
19328         * c-common.h (lvalue_p): ... to here.
19329         * c-common.c (candidate_equal_p): New.
19330         (add_tlist): Use it.
19331         (merge_tlist): Use it.
19332         (warn_for_collisions_1): Likewise.
19333         (warning_candidate_p): Accept more candidates.
19334         (verify_tree): A warning candidate can be an expression. Use
19335         candidate_equal_p.
19336
19337 2009-04-21  Ben Elliston  <bje@au.ibm.com>
19338
19339         PR target/5267
19340         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
19341         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
19342         options.  Remove -mcall-solaris documentation.
19343
19344 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19345
19346         PR c++/13358
19347         * doc/invoke.texi (-Wlong-long): Update description.
19348         * c-lex (interpret_integer): Only warn if there was no previous
19349         overflow and -Wlong-long is enabled.
19350         * c-decl.c (declspecs_add_type): Drop redundant flags.
19351         * c.opt (Wlong-long): Init to -1.
19352         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
19353         and front-end warn_long_long. Wlong-long only depends on other
19354         flags if it is uninitialized.
19355         * c-parser.c (disable_extension_diagnostics): warn_long_long is
19356         the same for CPP and FE.
19357         (restore_extension_diagnostics): Likewise.
19358
19359 2009-04-20  Ian Lance Taylor  <iant@google.com>
19360
19361         Fix enum conversions which are invalid in C++:
19362         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
19363         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
19364         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
19365         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
19366         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
19367         (dbxout_parms): Likewise.
19368         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
19369         (df_clear_flags): Likewise.
19370         * df-problems.c (df_rd_bb_local_compute_process_def): Change
19371         top_flag parameter to int.
19372         (df_chain_create_bb_process_use): Likewise.
19373         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
19374         Remove cast.
19375         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
19376         (df_ref_create_structure, df_def_record_1): Likewise.
19377         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
19378         (df_notes_rescan): Change 0 to VOIDmode in function call.
19379         (df_get_call_refs, df_insn_refs_collect): Likewise.
19380         (df_bb_regs_collect): Likewise.
19381         (df_entry_block_defs_collect): Likewise.
19382         (df_exit_block_uses_collect): Likewise.
19383         * df.h: Update declarations.
19384         * double-int.c (double_int_divmod): Add cast to enum type.
19385         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
19386         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
19387         (based_loc_descr): Likewise.
19388         (loc_descriptor_from_tree_1): Change first_op and second_op to
19389         enum dwarf_location_atom.  Add cast to enum type.
19390         * expmed.c (init_expmed): Change 0 to SET in function call.
19391         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
19392         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
19393         (do_store_flag): Likewise.
19394         * fixed-value.h (struct fixed_value): Change mode to enum
19395         machine_mode.
19396         * function.c (assign_parms): Change 0 to VOIDmode in function call.
19397         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
19398         function call.
19399         (insert_insn_decl, insert_decl, insert_state): Likewise.
19400         (automata_list_finish): Likewise.
19401         * genrecog.c (process_define_predicate): Add cast to enum type.
19402         * gensupport.c (init_predicate_table): Add cast to enum type.
19403         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
19404         function call.
19405         (gimple_build_call_1, gimple_build_label): Likewise.
19406         (gimple_build_goto, gimple_build_asm_1): Likewise.
19407         (gimple_build_switch_1, gimple_build_cdt): Likewise.
19408         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
19409         (enum fallback): Rename from enum fallback_t.
19410         (fallback_t): Typedef as int.
19411         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
19412         GSI_SAME_STMT in function call.
19413         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
19414         enum type.
19415         (setup_reg_class_relations): Likewise.
19416         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
19417         (setup_prohibited_class_mode_regs): Add cast to enum type.
19418         (setup_prohibited_mode_move_regs): Likewise.
19419         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
19420         (record_address_regs): Change i to enum reg_class.
19421         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
19422         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
19423         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
19424         (GET_MODE_2XWIDER_MODE): Likewise.
19425         (GET_CLASS_NARROWEST_MODE): Likewise.
19426         * omp-low.c (expand_omp_for): Add cast to enum type.
19427         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
19428         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
19429         * postreload.c (reload_cse_simplify_operands): Change rclass local
19430         to enum reg_class.
19431         * predict.c (combine_predictions_for_insn): Change best_predictor
19432         and predictor to enum br_predictor.
19433         (combine_predictions_for_bb): Likewise.
19434         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
19435         use SET_PREDICT_EXPR_OUTCOME.
19436         * real.c (real_arithmetic): Change icode to code in function call.
19437         * reginfo.c (init_move_cost): Add casts to enum type.
19438         (init_reg_sets_1, init_fake_stack_mems): Likewise.
19439         * regmove.c (regclass_compatible_p): Change class0 and class1 to
19440         enum reg_class.
19441         * reload.c (find_valid_class): Add casts to enum type.
19442         (push_reload): Change 0 to NO_REGS in function call.
19443         (find_reloads): Change this_alternative to array of enum
19444         reg_class.  Remove some now-unnecessary casts.
19445         (make_memloc): Change 0 to VOIDmode in function call.
19446         * reload1.c (reload): Change 0 to VOIDmode in function call.
19447         (eliminate_regs_1, elimination_effects): Likewise.
19448         (eliminate_regs_in_insn): Likewise.
19449         (emit_input_reload_insns): Add cast to enum type.
19450         (delete_output_reload): Change 0 to VOIDmode in function call.
19451         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
19452         to enum type in function call.
19453         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
19454         (SET_PREDICT_EXPR_OUTCOME): Define.
19455         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
19456         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
19457         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
19458         (dump_function): Likewise.
19459         * tree-dump.h: Update declarations.
19460         * tree-pass.h: Update declarations.
19461         * varasm.c (assemble_integer): Change mclass to enum mode_class.
19462         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
19463         enum type.
19464         (arm_rtx_costs_1): Correct parenthesization.
19465         (arm_rtx_costs): Add casts to enum type.
19466         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
19467         (vfp_emit_fstmd): Use add_rg_note.
19468         (emit_multi_reg_push, emit_sfm): Likewise.
19469         (thumb_set_frame_pointer): Likewise.
19470         (arm_expand_prologue): Likewise.
19471         (arm_regno_class): Change return type to enum reg_class.
19472         (thumb1_expand_prologue): Use add_reg_note.
19473         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
19474         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
19475         in function call.
19476         * config/arm/gentune.sh: Add cast to enum type.
19477         * config/arm/arm-tune.md: Rebuild.
19478         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
19479         (ix86_split_fp_branch, predict_jump): Likewise.
19480         (ix86_expand_multi_arg_builtin): Change sub_code from enum
19481         insn_code to enum rtx_code.
19482         (ix86_builtin_vectorized_function): Add cast to enum type.
19483         * config/i386/i386.md (truncdfsf2): Change slot to enum
19484         ix86_stack_slot.
19485         (truncxf<mode>2, isinf<mode>2): Likewise.
19486         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
19487         enum type.
19488         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
19489         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
19490         (insert_bundle_state): Change 1 to INSERT in function call.
19491         (ia64_add_bundle_selector_before): Likewise.
19492         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
19493         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
19494         (restore_stack_nonlocal): Likewise.
19495         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
19496         function call.
19497         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
19498         function call.
19499         (mips_rtx_costs): Likewise.
19500         (mips_override_options): Add casts to enum type.
19501         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
19502         in function call.
19503         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
19504         (store_reg, set_reg_plus_d): Likewise.
19505         (hppa_expand_prologue, hppa_profile_hook): Likewise.
19506         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
19507         cast to enum type.
19508         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
19509         function call.
19510         (emit_unlikely_jump): Use add_reg_note.
19511         (rs6000_emit_allocate_stack): Likewise.
19512         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
19513         (output_toc): Change 1 to INSERT in function call.
19514         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
19515         (rs6000_initialize_trampoline): Likewise.
19516         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
19517         function call.
19518         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
19519         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
19520         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
19521         (save_gprs): Use add_reg_note.
19522         (s390_emit_prologue): Likewise.
19523         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
19524         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
19525         (sparc_fold_builtin): Add cast to enum type.
19526         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
19527         enum insn_code.
19528         (spu_expand_prologue): Use add_reg_note.
19529         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
19530
19531 2009-04-20  Ian Lance Taylor  <iant@google.com>
19532
19533         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
19534         (c_parser_postfix_expression_after_primary): Get VEC for list of
19535         arguments.  Get original types of arguments.  Call
19536         build_function_call_vec.
19537         (cached_expr_list_1, cached_expr_list_2): New static variables.
19538         (c_parser_expr_list): Change return type to VEC *.  Add
19539         p_orig_types parameter.  Change all callers.
19540         (c_parser_release_expr): New static function.
19541         (c_parser_vec_to_tree_list): New static function.
19542         * c-typeck.c (build_function_call): Rewrite to build a VEC and
19543         call build_function_call_vec.
19544         (build_function_call_vec): New function, based on old
19545         build_function_call.
19546         (convert_arguments): Remove nargs and argarray parameters.  Change
19547         values to a VEC.  Add origtypes parameter.
19548         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
19549         (convert_for_assignment): Add origtype parameter.  Change all
19550         callers.  If warn_cxx_compat, check for conversion to an enum
19551         type when calling a function.
19552         (store_init_value): Add origtype parameter.  Change all callers.
19553         (digest_init): Likewise.
19554         (struct init_node): Add origtype field.
19555         (add_pending_init): Add origtype parameter.  Change all callers.
19556         (output_init_element): Likewise.
19557         (output_pending_init_elements): Pass origtype from init_node to
19558         output_init_element.
19559         (process_init_element): Pass origtype from c_expr to
19560         output_init_element.
19561         (c_finish_return): Add origtype parameter.  Change all callers.
19562         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
19563         caller.
19564         (sync_resolve_params): Likewise.
19565         (sync_resolve_return): Change params to first_param.  Change caller.
19566         (resolve_overloaded_builtins): Change params to VEC *.  Change
19567         callers.  Save first parameter around call to build_function_call_vec.
19568         * c-decl.c (finish_decl): Add origtype parameter.  Change all
19569         callers.  Call build_function_call_vec rather than
19570         build_function_call for cleanup.
19571         * c-tree.h: Update declarations.
19572         * c-common.h: Update declarations.
19573         * stub-objc.c (objc_rewrite_function_call): Change parameter from
19574         params to first_param.
19575         * target.h (struct gcc_target): Change resolve_overloaded_builtin
19576         params parameter from tree to void *.
19577         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19578         Change arglist parameter to have type void *, and to be a pointer
19579         to a VEC.
19580         * config/rs6000/rs6000-protos.h
19581         (altivec_resolve_overloaded_builtin): Update declaration.
19582         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
19583         fnargs parameter to have type void *, and to be a pointer to a
19584         VEC.  Call build_function_call_vec instead of
19585         build_function_call.
19586         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
19587
19588 2009-04-20  Joey Ye  <joey.ye@intel.com>
19589             Xuepeng Guo  <xuepeng.guo@intel.com>
19590             H.J. Lu  <hongjiu.lu@intel.com>
19591
19592         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
19593
19594         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
19595         (IX86_LEA_PRIORITY): Likewise.
19596         (distance_non_agu_define): New function.
19597         (distance_agu_use): Likewise.
19598         (ix86_lea_for_add_ok): Likewise.
19599         (ix86_dep_by_shift_count): Likewise.
19600
19601         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
19602         should split for LEA.
19603
19604         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
19605         function.
19606         (ix86_dep_by_shift_count): Likewise.
19607
19608 2009-04-20  Richard Guenther  <rguenther@suse.de>
19609
19610         * expr.c (handled_component_p): Move ...
19611         * tree.h (handled_component_p): ... here.
19612         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
19613         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
19614         and REALPART_EXPR to be in one group.
19615
19616 2009-04-20  Richard Guenther  <rguenther@suse.de>
19617
19618         * basic-block.h (get_all_dominated_blocks): Declare.
19619         * dominance.c (get_all_dominated_blocks): New function.
19620         * tree-cfg.c (get_all_dominated_blocks): Remove.
19621         (remove_edge_and_dominated_blocks): Adjust.
19622         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
19623         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
19624         instead of recursing.
19625
19626 2009-04-20  Doug Kwan  <dougkwan@google.com>
19627
19628         * cgraph.h (cgraph_node_ptr): New type for vector functions.
19629         (struct cgraph_node_set_def): New type.
19630         (cgraph_node_set) New type. Also declare vector functions.
19631         (struct cgraph_node_set_element_def): New type.
19632         (cgraph_node_set_element): Ditto.
19633         (cgraph_node_set_iterator): New iterator type.
19634         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
19635         cgraph_node_set_remove, dump_cgraph_node_set,
19636         debug_cgraph_node_set): New prototypes.
19637         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
19638         cgraph_node_set_size): New inlines.
19639         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
19640         including cgraph.h.
19641         (struct ipa_opt_pass): Add struct cgraph_node_set_def
19642         argument to function 'write_summary'.
19643         * ipa.c: Include ggc.h.
19644         (hash_cgraph_node_set_element,
19645         eq_cgraph_node_set_element, cgraph_node_set_new,
19646         cgraph_node_set_add, cgraph_node_set_remove,
19647         cgraph_node_set_find, dump_cgraph_node_set,
19648         debug_cgraph_node_set): New functions.
19649         * Makefile.in (ipa.o): Add dependency on GGC_H.
19650
19651 2009-04-20  Ira Rosen  <irar@il.ibm.com>
19652
19653         PR tree-optimization/39675
19654         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
19655         check of the return code of vect_schedule_slp. Check that
19656         stmt_vec_info still exists for the statement, before checking its
19657         vectorization type.
19658
19659 2009-04-20  Michael Matz  <matz@suse.de>
19660
19661         * Makefile.in (generated_files): Take out $(simple_generated_c).
19662
19663 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
19664
19665         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
19666         (UINTPTR_TYPE):  Likewise.
19667
19668 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
19669
19670         PR c/37481
19671         * c-typeck.c (digest_init): Check for initializing an array with a
19672         string literal.
19673
19674 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
19675
19676         PR c/19771
19677         * c-semantics.c (pop_stmt_list): Propagate
19678         STATEMENT_LIST_HAS_LABEL to parent statement list.
19679
19680 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
19681
19682         * config/mips/mips.h (mips_tune_attr): New macro.
19683         * config/mips/mips.md (cpu): Use it.
19684
19685 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
19686
19687         PR c/38243
19688         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
19689         declaring a tag.
19690
19691 2009-04-19  Diego Novillo  <dnovillo@google.com>
19692
19693         * toplev.c (compile_file): Move call to coverage_finish ...
19694         * cgraphunit.c (ipa_passes): ... here.
19695         Call cgraph_process_new_functions.
19696         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
19697         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
19698
19699 2009-04-19  Jan Hubicka  <jh@suse.cz>
19700
19701         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
19702         cfun.
19703         (dump_cgraph_node): Dump can throw external flag.
19704         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
19705
19706 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19707
19708         PR c/32061
19709         PR c++/36954
19710         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
19711         * common.opt (Wlogical-op): Move from here...
19712         * c.opt (Wlogical-op): ... to here.
19713         * c-typeck.c (parser_build_binary_op): Update call to
19714         warn_logical_operator.
19715         * c-opts.c (c_common_post_options): Enable warn_logical_op with
19716         extra_warnings.
19717         * c-common.c (warn_logical_op): Update.
19718         * c-common.h (warn_logical_op): Update declaration.
19719
19720 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
19721
19722         * tree.c (protected_set_expr_location): Fix formatting.
19723
19724 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
19725
19726         PR c/27676
19727         * c-typeck.c (readonly_warning): new.
19728         (build_unary_op, build_modify_expr): Use readonly_warning for
19729         storing into something readonly but not const-qualified.
19730
19731 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
19732
19733         PR c/22367
19734         * c-typeck.c (build_unary_op): Check for taking address of
19735         expression of type void.
19736
19737 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
19738
19739         PR c/35210
19740         * c-typeck.c (build_function_call): Check for calling a function
19741         with qualified void return types.  Call require_complete_type when
19742         generating a trap.
19743
19744 2009-04-18  Jan Hubicka  <jh@suse.cz>
19745
19746         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
19747         Set nothrow flag.
19748         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
19749         can_throw_external flag.
19750         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
19751         * ipa-pure-const.c (ignore_edge): New function.
19752         (propagate): Compute order for NOTHROW computation; set NOTHROWs
19753         only over can_throw_external edges.
19754         (local_pure_const): Add nothrow flag.
19755         * ipa-utils.c (searchc): Add ignore_edge callback.
19756         (ipa_utils_reduced_inorder): Add ignore_edge callback.
19757         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
19758         (set_nothrow_function_flags): Update cgraph.
19759         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
19760
19761 2009-04-18  Richard Guenther  <rguenther@suse.de>
19762
19763         PR middle-end/39804
19764         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
19765         (fold_stmt): ... this and ...
19766         (fold_stmt_inplace): ... this.
19767         (fold_stmt_1): Fold references in calls and asms.
19768         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
19769
19770 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
19771
19772         * tree-vrp.c (ssa_name_nonzero_p): Remove.
19773         * tree.h: Remove the prototype for ssa_name_nonzero_p.
19774
19775 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
19776
19777         * tree.c (function_args_count): Remove.
19778         * tree.h: Remove the prototype for function_args_count.
19779
19780 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
19781
19782         * tree-iterator.c (expr_only): Remove.
19783         * tree.h: Remove the prototype for expr_only.
19784
19785 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
19786
19787         * reginfo.c (cannot_change_mode_set_regs): Remove.
19788         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
19789
19790 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
19791
19792         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
19793         whether operands 0 and 1 overlaps.
19794
19795 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19796
19797         PR middle-end/36902
19798         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
19799         pointer. Use warning_at instead of warning.
19800         (search_for_addr_array): Likewise.
19801         (check_array_bounds): Likewise.
19802         (check_all_array_refs): Check that the incoming edge is not in the
19803         list of edges to be removed.
19804         (check_all_array_refs): Avoid the temporal pointer.
19805         (vrp_visit_cond_stmt): Fix typo.
19806         (simplify_switch_using_ranges): Handle the case where the switch
19807         index is an integer constant.
19808
19809 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
19810
19811         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
19812
19813 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
19814
19815         * doc/extend.texi, doc/invoke.texi: Fix typos.
19816
19817 2009-04-17  Cary Coutant  <ccoutant@google.com>
19818
19819         * tree-flow-inline.h (get_lineno): Fix inverted test.
19820
19821 2009-04-17  Diego Novillo  <dnovillo@google.com>
19822
19823         * tree-ssa-pre.c (create_expression_by_pieces): Remove
19824         assertion for AVAIL_OUT.
19825
19826 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
19827
19828         PR target/38627
19829         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
19830         * config/sh/linux-atomic.asm: Likewise.
19831
19832 2009-04-17  Diego Novillo  <dnovillo@google.com>
19833
19834         * except.c (debug_eh_tree): New.
19835         (struct eh_region, struct eh_status): Move ...
19836         * except.h: ... here.
19837         (add_type_for_runtime): Declare extern.
19838         (lookup_type_for_runtime): Likewise.
19839         (debug_eh_tree): Declare.
19840         * Makefile.in (GTFILES): List except.h before except.c
19841
19842 2009-04-17  Diego Novillo  <dnovillo@google.com>
19843
19844         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
19845         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
19846         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
19847         (find_vars_r): ... here.
19848         * tree-flow.h (find_referenced_vars_in): Declare.
19849         * tree-ssa-pre.c (create_expression_by_pieces): Assert
19850         that AVAIL_OUT exists for BLOCK.
19851         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
19852         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
19853         (tree-parloops.o): Likewise.
19854
19855 2009-04-17  Simon Baldwin  <simonb@google.com>
19856
19857         * toplev.c (default_tree_printer): Add handling for %E format.
19858
19859 2009-04-17  Diego Novillo  <dnovillo@google.com>
19860
19861         * tree-pretty-print.c (dump_generic_node): Add break after
19862         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
19863         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
19864         FUNCTION_TYPE together.  Call print_struct_decl when printing
19865         structures and TDF_SLIM is not given.
19866         (print_struct_decl): Fix logic for detecting recursion.
19867
19868 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
19869
19870         PR 31567
19871         * gcc.c (create_at_file): New.
19872         (compile_input_file_p): New.
19873         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
19874         * main.c (main): Update call to toplev_main.
19875         * toplev.c (toplev_main): Change signature. Call expandargv.
19876         * toplev.h (toplev_main): Change signature.
19877
19878 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
19879
19880         * dwarf2out.c (field_byte_offset): Use the type size as the field size
19881         if the latter is not constant.
19882
19883 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
19884
19885         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
19886
19887 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
19888
19889         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
19890         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
19891
19892 2009-04-17  Richard Guenther  <rguenther@suse.de>
19893
19894         * tree-ssa-structalias.c (get_constraint_for_component_ref):
19895         Handle component references view-converting an invariant address.
19896
19897 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
19898
19899         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
19900         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
19901         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
19902         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
19903         Use @deftypevr rather than @deftypevar.
19904
19905 2009-04-17  Richard Guenther  <rguenther@suse.de>
19906
19907         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
19908         (get_prop_source_stmt): Likewise.
19909         (can_propagate_from): Likewise.
19910
19911 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
19912
19913         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
19914         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
19915         (--with-multilib-list): Add default value.
19916         * configure: Regenerate.
19917         * Makefile.in (TM_ENDIAN_CONFIG): Define.
19918         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
19919         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
19920         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
19921         Don't add default cpu to multilib list unnecessarily, but do enable
19922         the relevant compiler option..
19923         Add support for --with-multilib-list=<blank> and
19924         --with-multilib-list=!<somelib> to supress unwanted multilibs.
19925         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
19926         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
19927         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
19928         TM_MULTILIB_CONFIG.
19929         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
19930         (MULTILIB_OSDIRNAMES): New variable.
19931         * config/sh/t-1e: Delete file.
19932         * config/sh/t-mlib-sh1: Delete file.
19933         * config/sh/t-mlib-sh2: Delete file.
19934         * config/sh/t-mlib-sh2a: Delete file.
19935         * config/sh/t-mlib-sh2a-nofpu: Delete file.
19936         * config/sh/t-mlib-sh2a-single: Delete file.
19937         * config/sh/t-mlib-sh2a-single-only: Delete file.
19938         * config/sh/t-mlib-sh2e: Delete file.
19939         * config/sh/t-mlib-sh3e: Delete file.
19940         * config/sh/t-mlib-sh4: Delete file.
19941         * config/sh/t-mlib-sh4-nofpu: Delete file.
19942         * config/sh/t-mlib-sh4-single: Delete file.
19943         * config/sh/t-mlib-sh4-single-only: Delete file.
19944         * config/sh/t-mlib-sh4a: Delete file.
19945         * config/sh/t-mlib-sh4a-nofpu: Delete file.
19946         * config/sh/t-mlib-sh4a-single: Delete file.
19947         * config/sh/t-mlib-sh4a-single-only: Delete file.
19948         * config/sh/t-mlib-sh4al: Delete file.
19949         * config/sh/t-mlib-sh5-32media: Delete file.
19950         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
19951         * config/sh/t-mlib-sh5-64media: Delete file.
19952         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
19953         * config/sh/t-mlib-sh5-compact: Delete file.
19954         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
19955         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
19956         * doc/install.texi (Options specification): Add
19957         --with-multilib-list and --with-endian.
19958
19959 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
19960
19961         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
19962         REVISION_c.
19963         (OBJS-common): Add plugin-version.o.
19964         (plugin-version.o): New.
19965         * gcc-plugin.h (plugin_gcc_version): New.
19966         (plugin_default_version_check): New.
19967         (plugin_init_func, plugin_init): Add version argument.
19968         * plugin-version.c: New.
19969         * plugin.c (str_plugin_gcc_version_name): New.
19970         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
19971         pass it to the init function.
19972         (plugin_default_version_check): New.
19973
19974 2009-04-17  Richard Guenther  <rguenther@suse.de>
19975
19976         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
19977         for decl-vs-decl disambiguation.
19978
19979 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
19980
19981         * config/s390/s390.h (s390_tune_attr): New macro definition.
19982         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
19983
19984 2009-04-17  Richard Guenther  <rguenther@suse.de>
19985
19986         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
19987         (fold_stmt_r): Likewise.
19988         (maybe_fold_reference): New function.
19989         (fold_gimple_assign): Handle cases fold_stmt_r did.
19990         (fold_stmt): Do not use fold_stmt_r.
19991         (fold_stmt_inplace): Likewise.
19992
19993 2009-04-17  Richard Guenther  <rguenther@suse.de>
19994
19995         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
19996         (record_equivalences_from_stmt): Remove useless checks and
19997         simplifications.
19998         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
19999         the type is already suitable.
20000
20001 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
20002
20003         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
20004
20005 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
20006
20007         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
20008         (CMPtype): Define as __gcc_CMPtype.
20009
20010 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
20011
20012         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
20013         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
20014
20015 2009-04-17  Richard Guenther  <rguenther@suse.de>
20016
20017         PR tree-optimization/39746
20018         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
20019         special-casing for builtins and static variable use/def.
20020         (call_may_clobber_ref_p_1): Likewise.
20021
20022 2009-04-16  Ian Lance Taylor  <iant@google.com>
20023
20024         * df.h: Include "timevar.h".
20025         (struct df_problem): Change tv_id field to timevar_id_t.
20026         * tree-pass.h: Include "timevar.h".
20027         (struct opt_pass): Change tv_id field to timevar_id_t.
20028         * timevar.h (timevar_id_t): Define TV_NONE.
20029         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
20030         TV_NONE rather than tv_id != 0.
20031         (execute_one_pass): Likewise.
20032         * Makefile.in (DF_H): Add $(TIMEVAR_H).
20033         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
20034         dependencies to $(TREE_PASS_H).
20035         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
20036         to TV_NONE.
20037         (pass_branch_target_load_optimize2): Likewise.
20038         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
20039         (pass_outof_cfg_layout_mode): Likewise.
20040         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
20041         (pass_rebuild_cgraph_edges): Likewise.
20042         (pass_remove_cgraph_callee_edges): Likewise.
20043         * df-core.c (pass_df_initialize_opt): Likewise.
20044         (pass_df_initialize_no_opt): Likewise.
20045         (pass_df_finish): Likewise.
20046         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
20047         * except.c (pass_set_nothrow_function_flags): Likewise.
20048         (pass_convert_to_eh_region_ranges): Likewise.
20049         * final.c (pass_compute_alignments): Likewise.
20050         * function.c (pass_instantiate_virtual_regs): Likewise.
20051         (pass_init_function): Likewise.
20052         (pass_leaf_regs): Likewise.
20053         (pass_match_asm_constraints): Likewise.
20054         * gimple-low.c (pass_lower_cf): Likewise.
20055         (pass_mark_used_blocks): Likewise.
20056         * init-regs.c (pass_initialize_regs): Likewise.
20057         * integrate.c (pass_initial_value_sets): Likewise.
20058         * ira.c (pass_ira): Likewise.
20059         * jump.c (pass_cleanup_barriers): Likewise.
20060         * omp-low.c (pass_expand_omp): Likewise.
20061         (pass_lower_omp): Likewise.
20062         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
20063         * recog.c (pass_split_all_insns): Likewise.
20064         (pass_split_after_reload): Likewise.
20065         (pass_split_before_regstack): Likewise.
20066         (pass_split_before_sched2): Likewise.
20067         (pass_split_for_shorten_branches): Likewise.
20068         * reginfo.c (pass_reginfo_init): Likewise.
20069         (pass_subregs_of_mode_init): Likewise.
20070         (pass_subregs_of_mode_finish): Likewise.
20071         * passes.c (pass_postreload): Likewise.
20072         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
20073         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
20074         (pass_warn_function_return): Likewise.
20075         (pass_warn_function_noreturn): Likewise.
20076         * tree-complex.c (pass_lower_complex): Likewise.
20077         (pass_lower_complex_O0): Likewise.
20078         * tree-if-conv.c (pass_if_conversion): Likewise.
20079         * tree-into-ssa.c (pass_build_ssa): Likewise.
20080         * tree-mudflap.c (pass_mudflap_1): Likewise.
20081         (pass_mudflap_2): Likewise.
20082         * tree-nomudflap.c (pass_mudflap_1): Likewise.
20083         (pass_mudflap_2): Likewise.
20084         * tree-nrv.c (pass_return_slot): Likewise.
20085         * tree-object-size.c (pass_object_sizes): Likewise.
20086         * tree-optimize.c (pass_all_optimizations): Likewise.
20087         (pass_early_local_passes): Likewise.
20088         (pass_all_early_optimizations): Likewise.
20089         (pass_cleanup_cfg): Likewise.
20090         (pass_cleanup_cfg_post_optimizing): Likewise.
20091         (pass_free_datastructures): Likewise.
20092         (pass_free_cfg_annotations): Likewise.
20093         (pass_fixup_cfg): Likewise.
20094         (pass_init_datastructures): Likewise.
20095         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
20096         (pass_late_warn_uninitialized): Likewise.
20097         (pass_update_address_taken): Likewise.
20098         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
20099         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
20100         (pass_cse_sincos): Likewise.
20101         (pass_convert_to_rsqrt): Likewise.
20102         * tree-ssa-structalias.c (pass_build_alias): Likewise.
20103         * tree-stdarg.c (pass_stdarg): Likewise.
20104         * tree-tailcall.c (pass_tail_recursion): Likewise.
20105         (pass_tail_calls): Likewise.
20106         * tree-vect-generic.c (pass_lower_vector): Likewise.
20107         (pass_lower_vector_ssa): Likewise.
20108         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
20109
20110 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
20111
20112         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
20113         XLR entry.
20114         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
20115         Handle -march=xlr.
20116         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
20117         logical and signext.
20118
20119 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
20120
20121         PR target/39767
20122         * config/sh/predicates.md (arith_operand): Check if the operand
20123         of TRUNCATE is a REG.
20124
20125 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
20126
20127         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
20128         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
20129
20130 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
20131
20132         * tree-iterator.c (tsi_split_statement_list_after,
20133         tsi_split_statement_list_before): Remove.
20134         * tree-iterator.h: Remove the prototypes for
20135         tsi_split_statement_list_after and tsi_split_statement_list_before.
20136
20137 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
20138
20139         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
20140         * tree-ssa-propagate.h: Remove the prototype for
20141         stmt_makes_single_load.
20142
20143 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
20144
20145         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
20146         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
20147
20148 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
20149
20150         * tree-iterator.c (EXPR_LAST_BODY): Remove.
20151
20152 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
20153
20154         * except.c (eh_region_outer_p): Remove.
20155         * except.h: Remove the prototype for eh_region_outer_p.
20156
20157 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
20158
20159         * function.c (current_function_assembler_name): Remove.
20160         * function.h: Remove the prototype for
20161         current_function_assembler_name.
20162
20163 2009-04-16  Ian Lance Taylor  <iant@google.com>
20164
20165         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
20166         (add_reg_note): Call alloc_reg_note.
20167         * rtl.h (alloc_reg_note): Declare.
20168         * combine.c (try_combine): Use alloc_reg_note.
20169         (recog_for_combine, move_deaths): Likewise.
20170         (distribute_notes): Use alloc_reg_note and add_reg_note.
20171         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
20172         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
20173         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
20174
20175 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
20176
20177         PR rtl-optimization/39762
20178         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
20179         ira_may_move_out_cost): Add comments about way of their usage.
20180         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
20181
20182         * ira-conflicts.c (process_regs_for_copy): Use function
20183         ira_get_register_move_cost instead of global
20184         ira_register_move_cost.
20185
20186         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
20187         color_pass, move_spill_restore, update_curr_costs): Ditto.
20188
20189         * ira-lives.c (process_single_reg_class_operands): Ditto.
20190
20191         * ira-emit.c (emit_move_list): Ditto.
20192
20193         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
20194         (record_reg_classes): Ditto.  Use functions
20195         ira_get_register_move_cost and ira_get_may_move_cost instead of
20196         global vars ira_register_move_cost, ira_may_move_out_cost and
20197         ira_may_move_in_cost.
20198         (record_address_regs): Don't call ira_init_register_move_cost.
20199         Use function ira_get_may_move_cost instead of global
20200         ira_may_move_in_cost.
20201         (process_bb_node_for_hard_reg_moves): Use function
20202         ira_get_register_move_cost instead of global ira_register_move_cost.
20203         (ira_costs): Don't call ira_init_register_move_cost.
20204
20205 2009-04-16  Richard Guenther  <rguenther@suse.de>
20206
20207         * tree-cfg.c (verify_gimple_assign_binary):
20208         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
20209         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
20210         (create_general_new_stmt): Note that this function is broken.
20211
20212 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
20213
20214         * common.opt (fhelp): Add Var(help_flag).
20215         * gcc-plugin.h (plugin_info): Add help.
20216         * plugin.c (plugin_name_args): Add help.
20217         (register_plugin_info): Set plugin->help.
20218         (print_help_one_plugin): New.
20219         (print_plugins_help): New.
20220         * plugin.h (print_plugins_help): New.
20221         * toplev.c (toplev_main): Call print_plugins_help if needed.
20222
20223 2009-04-16  Richard Guenther  <rguenther@suse.de>
20224
20225         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
20226         (gimple_ior_addresses_taken_1): New function.
20227         (gimple_ior_addresses_taken): Likewise.
20228         * gimple.h (struct gimple_statement_with_ops_base): Remove
20229         addresses_taken member.
20230         (gimple_ior_addresses_taken): Declare.
20231         (gimple_addresses_taken, gimple_addresses_taken_ptr,
20232         gimple_set_addresses_taken): Remove.
20233         * ipa-reference.c (mark_address): New function.
20234         (scan_stmt_for_static_refs): Use it for marking addresses taken.
20235         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
20236         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
20237         (gimple_add_to_addresses_taken): Remove.
20238         (get_tmr_operands): Call mark_address_taken.
20239         (get_asm_expr_operands): Likewise.
20240         (get_expr_operands): Likewise.
20241         (build_ssa_operands): Do not clear the addresses_taken bitmap.
20242         (free_stmt_operands): Do not free it.
20243         * tree-ssa.c (delete_tree_ssa): Likewise.
20244         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
20245
20246 2009-04-16  Richard Guenther  <rguenther@suse.de>
20247
20248         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
20249         (walk_stmt_load_store_ops): Likewise.
20250         * gimple.c (get_base_loadstore): New function.
20251         (walk_stmt_load_store_addr_ops): Likewise.
20252         (walk_stmt_load_store_ops): Likewise.
20253         * ipa-pure-const.c (check_op): Simplify.
20254         (check_load, check_store): New functions.
20255         (check_stmt): Use walk_stmt_load_store_ops.
20256         * ipa-reference.c (mark_load): Adjust signature.
20257         (mark_store): Likewise.
20258         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
20259
20260 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
20261
20262         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
20263         (plugin_info): New.
20264         * opts.c (common_handle_option): Don't call print_version.
20265         * plugin.c (plugin_name_args): Add version.
20266         (register_plugin_info): New.
20267         (register_callback): Handle PLUGIN_INFO.
20268         (try_init_one_plugin): New.
20269         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
20270         if failed to init.
20271         (finalize_one_plugin): New.
20272         (finalize_plugins): New.
20273         (print_one_plugin): New.
20274         (print_plugins_versions): New.
20275         * plugin.h (print_plugins_versions): New.
20276         (finalize_plugins): New.
20277         * toplev.c (compile_file): Don't call initialize_plugins.
20278         (print_version): Call print_plugins_versions.
20279         (toplev_main): Call initialize_plugins. Print version if needed.
20280         Call finalize_plugins.
20281
20282 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
20283
20284         * common.opt (fversion): New.
20285         * gcc.c (print_version): New.
20286         (process_command): Don't print the version. Just set print_version.
20287         (main): Print version. Call subprocesses if print_version and
20288         verbose_flag are set.
20289         * opts.c (common_handle_option): Handle OPT_fversion.
20290
20291 2009-04-16  Richard Guenther  <rguenther@suse.de>
20292             Ira Rosen  <irar@il.ibm.com>
20293
20294         PR tree-optimization/39698
20295         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
20296         type of the reduction variable.  Only generate the def if
20297         it is needed.
20298
20299         * omp-low.c (expand_omp_for_generic): When converting to a pointer
20300         make sure to first convert to an integer of the same precision.
20301         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
20302         the type of the evolution correctly in computing the new
20303         induction variable base.
20304
20305 2009-04-16  Richard Guenther  <rguenther@suse.de>
20306
20307         PR middle-end/39625
20308         * tree-cfg.c (make_blocks): Split statements with to-be
20309         abnormal SSA names on the lhs.
20310
20311 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
20312
20313         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
20314         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
20315         * c-typeck.c (really_start_incremental_init): Likewise.
20316         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
20317         (TARGET_INITIALIZER): Remove it.
20318         * target.h (struct target): Remove vector_opaque_p.
20319         * tree.c (build_opaque_vector_type): New.
20320         * tree.h (TYPE_VECTOR_OPAQUE): New.
20321         (build_opaque_vector_type): Declare.
20322         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
20323         * config/rs6000/rs6000.c (build_opaque_vector_type,
20324         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
20325         (rs6000_init_builtins): Use build_opaque_vector_type for
20326         opaque_V4SI_type_node.
20327
20328 2009-04-15  Catherine Moore  <clm@codesourcery.com>
20329
20330         * debug.h (set_name):  Declare.
20331         * dwarf2out.c (dwarf2out_set_name): Declare.
20332         (dwarf2_debug_hooks): Add set_name.
20333         (find_AT_string): New.
20334         (add_AT_string): Call find_AT_string.
20335         (dwarf2out_set_name): New.
20336         * cp/decl.c (grokdeclarator): Call set_name.
20337         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
20338         * debug.c (do_nothing_debug_hooks):  Likewise.
20339         * dbxout.c (dbx_debug_hooks): Likewise.
20340         * sdbout.c (sdb_debug_hooks): Likewise.
20341
20342 2009-04-15  Michael Eager  <eager@eagercon.com>
20343
20344         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
20345         reg for single-precision FPU.
20346         * config/rs6000/rs6000.md (movsi_internal1): Only for
20347         !TARGET_SINGLE_FPU.
20348         (movsi_internal1_single): New. Add pattern to move SI values to/from
20349         single-precision FP regs.
20350
20351 2009-04-15  Richard Guenther  <rguenther@suse.de>
20352
20353         * omp-low.c (lower_rec_input_clauses): Build correct address
20354         expressions.
20355         (expand_omp_for_generic): Fix multiplication type.
20356         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
20357         (generate_memset_zero): Fix types.
20358         * tree-profile.c (prepare_instrumented_value): Correctly
20359         widen a pointer.
20360
20361 2009-04-15  Ian Lance Taylor  <iant@google.com>
20362
20363         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
20364         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
20365         for -Wall and for -Wc++-compat.
20366         (c_common_post_options): For C++, set warn_enum_compare if not
20367         already set.
20368         * c-tree.h (struct c_expr): Add field original_type.
20369         (build_external_ref): Update declaration.
20370         * c-parser.c (c_parser_braced_init): Set original_type.
20371         (c_parser_initelt): Likewise.
20372         (c_parser_expr_no_commas): Likewise.
20373         (c_parser_conditional_expression): Likewise.
20374         (c_parser_cast_expression): Likewise.
20375         (c_parser_unary_expression): Likewise.  Pull setting of
20376         original_code to top of function.
20377         (c_parser_sizeof_expression): Set original_type.
20378         (c_parser_alignof_expression): Likewise.
20379         (c_parser_postfix_expression): Likewise.  Pull setting of
20380         original_code to top of function.
20381         (c_parser_postfix_expression_after_paren_type): Set original_type.
20382         (c_parser_postfix_expression_after_primary): Likewise.
20383         (c_parser_expression): Likewise.
20384         * c-typeck.c (build_external_ref): Add type parameter.  Change all
20385         callers.
20386         (c_expr_sizeof_expr): Set original_type field.
20387         (parser_build_unary_op): Likewise.
20388         (parser_build_binary_op): Likewise.  Optionally warn about
20389         comparisons of enums of different types.
20390         (digest_init): Set original_type field.
20391         (really_start_incremental_init): Likewise.
20392         (push_init_level, pop_init_level): Likewise.
20393         * doc/invoke.texi (Warning Options): -Wenum-compare now
20394         supported in C.
20395
20396 2009-04-15  Richard Guenther  <rguenther@suse.de>
20397
20398         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
20399         out a necessary conversion.
20400         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
20401         names we didn't value number.
20402         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
20403
20404 2009-04-15  Richard Guenther  <rguenther@suse.de>
20405
20406         PR tree-optimization/39764
20407         * tree-ssa-ccp.c (get_value): Canonicalize value with
20408         canonicalize_float_value.
20409
20410 2009-04-15  Jan Hubicka  <jh@suse.cz>
20411
20412         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
20413         Wrong version of patch.
20414
20415 2009-04-15  Jan Hubicka  <jh@suse.cz>
20416
20417         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
20418
20419 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
20420
20421         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
20422         our distinct integral and vector types.
20423
20424 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
20425
20426         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
20427         * init.c (build_vtbl_address): Remove call to assemble_external.
20428
20429 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
20430
20431         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
20432         output for other floating point modes.
20433
20434 2009-04-14  Diego Novillo  <dnovillo@google.com>
20435
20436         * diagnostic.c (diagnostic_report_diagnostic): Do not
20437         warn about loaded plugins for DK_ERROR and DK_WARNING.
20438         * c-decl.c (declspecs_add_type): Move call to
20439         invoke_plugin_callbacks ...
20440         * c-parser.c (c_parser_declspecs): ... here.
20441         * plugin.c (dump_active_plugins): Tidy output.
20442
20443 2009-04-14  Diego Novillo  <dnovillo@google.com>
20444             Le-Chun Wu  <lcwu@google.com>
20445
20446         * configure.ac: Add --enable-plugin support.
20447         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
20448         * Makefile.in (PLUGIN_H): Define.
20449         Export ENABLE_PLUGIN and GMPINC to site.exp.
20450         Add PLUGINLIBS to link command.
20451         Add/modify dependencies for plugin.o and files including plugin.h.
20452         (plugin.o): New.
20453         * config.in: Regenerate.
20454
20455         * opts.c (common_handle_option): Handle OPT_fplugin_ and
20456         OPT_fplugin_arg_.
20457
20458 2009-04-14  Le-Chun Wu  <lcwu@google.com>
20459
20460         * tree-pass.h (register_one_dump_file): Add a prototype for
20461         register_one_dump_file.
20462         * toplev.c (compile_file): Call initialize_plugins.
20463         (do_compile): Call invoke_plugin_callbacks.
20464         (toplev_main): Call invoke_plugin_callbacks.
20465         * common.opt: Add -fplugin= and -fplugin-arg-.
20466         * gcc-plugin.h: New public header file for plugins to include.
20467         * plugin.c: New source file.
20468         * plugin.h: New internal header file.
20469         * passes.c (register_one_dump_file): Make it external.
20470
20471         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
20472
20473 2009-04-14  Diego Novillo  <dnovillo@google.com>
20474
20475         * doc/plugins.texi: New.
20476         * doc/gccint.texi: Add reference to Plugins chapter.
20477         * doc/invoke.texi: Document -fplugin and -fplugin-arg
20478         * diagnostic.c (diagnostic_report_diagnostic): Warn about
20479         loaded plugins, if any.
20480         * timevar.def (TV_PLUGIN_INIT): Define.
20481         (TV_PLUGIN_RUN): Define.
20482         * plugin.c: Include timevar.h
20483         (plugins_active_p): New.
20484         (dump_active_plugins): New.
20485         (debug_active_plugins): New.
20486
20487 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
20488
20489         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
20490         library paths.
20491         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
20492
20493 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
20494
20495         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
20496         the same as a minus without a shift.
20497
20498 2009-04-14  Nick Clifton  <nickc@redhat.com>
20499
20500         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
20501         comparisons with small integers will always produce a short
20502         branch.
20503
20504 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
20505
20506         Merge:
20507         2008-12-19  Diego Novillo  <dnovillo@google.com>
20508
20509         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
20510
20511 2009-04-14  Richard Guenther  <rguenther@suse.de>
20512
20513         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
20514         verification.
20515         (verify_gimple_assign_binary): Likewise.  Handle shifts and
20516         rotates correctly.
20517         (verify_gimple_phi): Print the mismatched argument position.
20518         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
20519         Fix types.
20520         (vect_update_init_of_dr): Likewise.
20521         * matrix-reorg.c (transform_access_sites): Do what the
20522         comment suggests.
20523         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
20524
20525 2009-04-13  Michael Eager  <eager@eagercon.com>
20526
20527         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
20528         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
20529         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
20530         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
20531         remove duplicate config
20532
20533 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
20534
20535         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
20536         file_name:line_number type locator of the call site.
20537
20538 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
20539
20540         * genautomata.c: Put blank after comma.
20541         (automaton_decls): New.
20542         (struct unit_usage): Add comments to member next.
20543         (store_alt_unit_usage): Keep the list ordered.
20544         (unit_present_on_list_p, equal_alternatives_p): New.
20545         (check_regexp_units_distribution): Check units distribution
20546         correctness correctly.
20547         (main): Don't write automata if error is found.  Return correct
20548         exit code.
20549
20550         * config/m68k/cf.md (cfv4_ds): Remove.
20551         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
20552         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
20553
20554         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
20555         power4-load-ext, power4-store, power4-store-update,
20556         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
20557         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
20558         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
20559         power4-sqrt, power4-isync): Modify reservation to make correct
20560         unit distribution to automata.
20561
20562         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
20563         power5-store-update, power5-two, power5-three, power5-lmul,
20564         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
20565
20566 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
20567
20568         * except.c (pass_set_nothrow_function_flags): Set name and add
20569         TODO_dump_func.
20570         (set_nothrow_function_flags): Mention in the dump file when
20571         changing a function to nothrow.
20572
20573 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
20574
20575         PR/39066
20576         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
20577         instead of unsigned long.
20578
20579 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20580
20581         * config/arm/arm.c (return_used_this_function): Remove.
20582         (arm_output_function_prologue): Remove use of
20583         return_used_this_function.
20584         (output_return_instruction): Replace use of
20585         return_used_this_function
20586         by cfun->machine->return_used_this_function.
20587         (arm_output_epilogue): Likewise.
20588         (arm_output_function_epilogue): Likewise.
20589         (thumb_unexpanded_epilogue): Likewise.
20590         * config/arm/arm.h (struct machine_function):
20591         New member return_used_this_function.
20592
20593 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
20594
20595         * doc/install.texi: Correct description of default directory for
20596         --with-gxx-include-dir.
20597
20598 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
20599
20600         * fold-const.c (build_range_check): Properly deal with enumeral and
20601         boolean base types.
20602
20603 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
20604
20605         * doc/invoke.texi (max_gcse_passes): Remove documentation.
20606         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
20607         * params.h (MAX_GCSE_PASSES): Remove.
20608         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
20609         in sequence.  Remove ability to run multiple passes.
20610         (bypass_jumps): Report run as third CPROP pass.
20611
20612 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
20613
20614         PR middle-end/39651
20615         * except.c (can_throw_external): Look at each insn in a SEQUENCE
20616         when deciding whether the whole SEQUENCE can throw.
20617
20618 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
20619
20620         PR target/39740
20621         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
20622         offseted label references.
20623
20624 2009-04-11  Jan Hubicka  <jh@suse.cz>
20625
20626         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
20627
20628 2009-04-11  Richard Guenther  <rguenther@suse.de>
20629
20630         PR middle-end/39732
20631         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
20632         return variables as TREE_ADDRESSABLE.
20633
20634 2009-04-11  Richard Guenther  <rguenther@suse.de>
20635
20636         PR tree-optimization/39713
20637         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
20638         reference trees have SSA_NAME operands.
20639
20640 2009-04-11  Richard Guenther  <rguenther@suse.de>
20641
20642         PR c/39712
20643         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
20644         address expressions.
20645
20646 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
20647
20648         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
20649         match changes in Cygwin 1.7
20650         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
20651         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
20652
20653 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
20654
20655         PR tree-optimization/39701
20656         * doc/invoke.texi (Optimization Options): Document change in
20657         meaning and initialization of -fdelete-null-pointer-checks.
20658
20659 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
20660
20661         PR middle-end/39701
20662         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
20663
20664         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
20665         here.
20666
20667         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
20668
20669 2009-04-10  Chao-ying Fu  <fu@mips.com>
20670
20671         * doc/tm.texi (Instruction Output): Document
20672         TARGET_ASM_FINAL_POSTSCAN_INSN.
20673         * target.h (final_postscan_insn): New field in asm_out.
20674         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
20675         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
20676         * final.c (final_scan_insn): Call
20677         targetm.asm_out.final_postscan_insn after outputting
20678         an asm macro and a normal instruction.
20679
20680         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
20681         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
20682         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
20683         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
20684         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
20685
20686 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
20687
20688         PR middle-end/39701
20689         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
20690         variables as non-NULL even with -fdelete-null-pointer-checks.
20691
20692 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
20693
20694         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
20695
20696 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
20697
20698         PR target/39678
20699         * config/i386/i386.c (classify_argument): Handle SCmode with
20700         (bit_offset % 64) != 0.
20701
20702 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
20703
20704         * doc/invoke.texi (Optimize Options): Add cross-reference to
20705         -Q --help=optimizers examples.
20706
20707 2009-04-10  Ben Elliston  <bje@au.ibm.com>
20708
20709         PR target/36800
20710         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
20711         regalign for the reg == fpr and TDmode case.
20712
20713 2009-04-09  David Ayers  <ayers@fsfe.org>
20714
20715         PR objc/29200
20716         * objc/objc-act.c (warn_with_method): Remove helper function.
20717         (check_duplicates): Call warning and inform directly.
20718         (really_start_method): Likewise.
20719
20720 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
20721
20722         * expmed.c (expand_divmod): Always use a comparison for a division
20723         by a large unsigned integer.
20724
20725         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
20726         for things others than variables or functions as nonzero.
20727
20728 2009-04-09  Nick Clifton  <nickc@redhat.com>
20729
20730         * unwind-compat.c: Change copyright header to refer to version
20731         3 of the GNU General Public License with version 3.1 of the
20732         GCC Runtime Library Exception and to point readers at the
20733         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
20734         * config/alpha/crtfastmath.c: Likewise.
20735         * config/alpha/linux-unwind.h: Likewise.
20736         * config/alpha/qrnnd.asm: Likewise.
20737         * config/alpha/vms-crt0-64.c: Likewise.
20738         * config/alpha/vms-crt0.c: Likewise.
20739         * config/alpha/vms-dwarf2.asm: Likewise.
20740         * config/alpha/vms-dwarf2eh.asm: Likewise.
20741         * config/alpha/vms-psxcrt0-64.c: Likewise.
20742         * config/alpha/vms-psxcrt0.c: Likewise.
20743         * config/alpha/vms_tramp.asm: Likewise.
20744         * config/arc/initfini.c: Likewise.
20745         * config/arc/lib1funcs.asm: Likewise.
20746         * config/arm/bpabi-v6m.S: Likewise.
20747         * config/arm/bpabi.S: Likewise.
20748         * config/arm/bpabi.c: Likewise.
20749         * config/arm/crti.asm: Likewise.
20750         * config/arm/crtn.asm: Likewise.
20751         * config/arm/ieee754-df.S: Likewise.
20752         * config/arm/ieee754-sf.S: Likewise.
20753         * config/arm/lib1funcs.asm: Likewise.
20754         * config/arm/libunwind.S: Likewise.
20755         * config/arm/linux-atomic.c: Likewise.
20756         * config/arm/mmintrin.h: Likewise.
20757         * config/arm/pr-support.c: Likewise.
20758         * config/arm/unaligned-funcs.c: Likewise.
20759         * config/arm/unwind-arm.c: Likewise.
20760         * config/arm/unwind-arm.h: Likewise.
20761         * config/avr/libgcc.S: Likewise.
20762         * config/bfin/crti.s: Likewise.
20763         * config/bfin/crtlibid.s: Likewise.
20764         * config/bfin/crtn.s: Likewise.
20765         * config/bfin/lib1funcs.asm: Likewise.
20766         * config/bfin/linux-unwind.h: Likewise.
20767         * config/cris/arit.c: Likewise.
20768         * config/cris/cris_abi_symbol.c: Likewise.
20769         * config/darwin-64.c: Likewise.
20770         * config/darwin-crt2.c: Likewise.
20771         * config/darwin-crt3.c: Likewise.
20772         * config/darwin.h: Likewise.
20773         * config/dbxelf.h: Likewise.
20774         * config/dfp-bit.c: Likewise.
20775         * config/dfp-bit.h: Likewise.
20776         * config/elfos.h: Likewise.
20777         * config/fixed-bit.c: Likewise.
20778         * config/fixed-bit.h: Likewise.
20779         * config/fp-bit.c: Likewise.
20780         * config/fp-bit.h: Likewise.
20781         * config/fr30/crti.asm: Likewise.
20782         * config/fr30/crtn.asm: Likewise.
20783         * config/fr30/lib1funcs.asm: Likewise.
20784         * config/freebsd-spec.h: Likewise.
20785         * config/frv/cmovd.c: Likewise.
20786         * config/frv/cmovh.c: Likewise.
20787         * config/frv/cmovw.c: Likewise.
20788         * config/frv/frvbegin.c: Likewise.
20789         * config/frv/frvend.c: Likewise.
20790         * config/frv/lib1funcs.asm: Likewise.
20791         * config/glibc-stdint.h: Likewise.
20792         * config/h8300/clzhi2.c: Likewise.
20793         * config/h8300/crti.asm: Likewise.
20794         * config/h8300/crtn.asm: Likewise.
20795         * config/h8300/ctzhi2.c: Likewise.
20796         * config/h8300/fixunssfsi.c: Likewise.
20797         * config/h8300/lib1funcs.asm: Likewise.
20798         * config/h8300/parityhi2.c: Likewise.
20799         * config/h8300/popcounthi2.c: Likewise.
20800         * config/i386/ammintrin.h: Likewise.
20801         * config/i386/att.h: Likewise.
20802         * config/i386/avxintrin.h: Likewise.
20803         * config/i386/biarch64.h: Likewise.
20804         * config/i386/bmmintrin.h: Likewise.
20805         * config/i386/cpuid.h: Likewise.
20806         * config/i386/cross-stdarg.h: Likewise.
20807         * config/i386/crtfastmath.c: Likewise.
20808         * config/i386/crtprec.c: Likewise.
20809         * config/i386/cygming-crtbegin.c: Likewise.
20810         * config/i386/cygming-crtend.c: Likewise.
20811         * config/i386/cygwin.asm: Likewise.
20812         * config/i386/emmintrin.h: Likewise.
20813         * config/i386/gmm_malloc.h: Likewise.
20814         * config/i386/gthr-win32.c: Likewise.
20815         * config/i386/i386.h: Likewise.
20816         * config/i386/immintrin.h: Likewise.
20817         * config/i386/linux-unwind.h: Likewise.
20818         * config/i386/linux64.h: Likewise.
20819         * config/i386/mm3dnow.h: Likewise.
20820         * config/i386/mmintrin-common.h: Likewise.
20821         * config/i386/mmintrin.h: Likewise.
20822         * config/i386/nmmintrin.h: Likewise.
20823         * config/i386/pmm_malloc.h: Likewise.
20824         * config/i386/pmmintrin.h: Likewise.
20825         * config/i386/smmintrin.h: Likewise.
20826         * config/i386/sol2-c1.asm: Likewise.
20827         * config/i386/sol2-ci.asm: Likewise.
20828         * config/i386/sol2-cn.asm: Likewise.
20829         * config/i386/sol2-gc1.asm: Likewise.
20830         * config/i386/tmmintrin.h: Likewise.
20831         * config/i386/unix.h: Likewise.
20832         * config/i386/w32-unwind.h: Likewise.
20833         * config/i386/wmmintrin.h: Likewise.
20834         * config/i386/x86-64.h: Likewise.
20835         * config/i386/x86intrin.h: Likewise.
20836         * config/i386/xmmintrin.h: Likewise.
20837         * config/ia64/crtbegin.asm: Likewise.
20838         * config/ia64/crtend.asm: Likewise.
20839         * config/ia64/crtfastmath.c: Likewise.
20840         * config/ia64/crti.asm: Likewise.
20841         * config/ia64/crtn.asm: Likewise.
20842         * config/ia64/fde-glibc.c: Likewise.
20843         * config/ia64/lib1funcs.asm: Likewise.
20844         * config/ia64/linux-unwind.h: Likewise.
20845         * config/ia64/quadlib.c: Likewise.
20846         * config/ia64/unwind-ia64.c: Likewise.
20847         * config/linux.h: Likewise.
20848         * config/m32c/m32c-lib1.S: Likewise.
20849         * config/m32c/m32c-lib2-trapv.c: Likewise.
20850         * config/m32c/m32c-lib2.c: Likewise.
20851         * config/m32r/initfini.c: Likewise.
20852         * config/m68hc11/larith.asm: Likewise.
20853         * config/m68hc11/m68hc11-crt0.S: Likewise.
20854         * config/m68k/cf.md: Likewise.
20855         * config/m68k/crti.s: Likewise.
20856         * config/m68k/crtn.s: Likewise.
20857         * config/m68k/lb1sf68.asm: Likewise.
20858         * config/m68k/linux-unwind.h: Likewise.
20859         * config/mcore/crti.asm: Likewise.
20860         * config/mcore/crtn.asm: Likewise.
20861         * config/mcore/lib1.asm: Likewise.
20862         * config/mips/linux-unwind.h: Likewise.
20863         * config/mips/loongson.h: Likewise.
20864         * config/mips/mips16.S: Likewise.
20865         * config/mmix/crti.asm: Likewise.
20866         * config/mmix/crtn.asm: Likewise.
20867         * config/pa/fptr.c: Likewise.
20868         * config/pa/hpux-unwind.h: Likewise.
20869         * config/pa/lib2funcs.asm: Likewise.
20870         * config/pa/linux-atomic.c: Likewise.
20871         * config/pa/linux-unwind.h: Likewise.
20872         * config/pa/milli64.S: Likewise.
20873         * config/pa/quadlib.c: Likewise.
20874         * config/pa/stublib.c: Likewise.
20875         * config/picochip/libgccExtras/adddi3.asm: Likewise.
20876         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
20877         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
20878         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
20879         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
20880         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
20881         * config/picochip/libgccExtras/divmod15.asm: Likewise.
20882         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
20883         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
20884         * config/picochip/libgccExtras/longjmp.asm: Likewise.
20885         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
20886         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
20887         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
20888         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
20889         * config/picochip/libgccExtras/setjmp.asm: Likewise.
20890         * config/picochip/libgccExtras/subdi3.asm: Likewise.
20891         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
20892         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
20893         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
20894         * config/rs6000/750cl.h: Likewise.
20895         * config/rs6000/altivec.h: Likewise.
20896         * config/rs6000/biarch64.h: Likewise.
20897         * config/rs6000/crtresfpr.asm: Likewise.
20898         * config/rs6000/crtresgpr.asm: Likewise.
20899         * config/rs6000/crtresxfpr.asm: Likewise.
20900         * config/rs6000/crtresxgpr.asm: Likewise.
20901         * config/rs6000/crtsavfpr.asm: Likewise.
20902         * config/rs6000/crtsavgpr.asm: Likewise.
20903         * config/rs6000/darwin-asm.h: Likewise.
20904         * config/rs6000/darwin-fallback.c: Likewise.
20905         * config/rs6000/darwin-fpsave.asm: Likewise.
20906         * config/rs6000/darwin-ldouble.c: Likewise.
20907         * config/rs6000/darwin-tramp.asm: Likewise.
20908         * config/rs6000/darwin-unwind.h: Likewise.
20909         * config/rs6000/darwin-vecsave.asm: Likewise.
20910         * config/rs6000/darwin-world.asm: Likewise.
20911         * config/rs6000/e500crtres32gpr.asm: Likewise.
20912         * config/rs6000/e500crtres64gpr.asm: Likewise.
20913         * config/rs6000/e500crtres64gprctr.asm: Likewise.
20914         * config/rs6000/e500crtrest32gpr.asm: Likewise.
20915         * config/rs6000/e500crtrest64gpr.asm: Likewise.
20916         * config/rs6000/e500crtresx32gpr.asm: Likewise.
20917         * config/rs6000/e500crtresx64gpr.asm: Likewise.
20918         * config/rs6000/e500crtsav32gpr.asm: Likewise.
20919         * config/rs6000/e500crtsav64gpr.asm: Likewise.
20920         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
20921         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
20922         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
20923         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
20924         * config/rs6000/eabi-ci.asm: Likewise.
20925         * config/rs6000/eabi-cn.asm: Likewise.
20926         * config/rs6000/eabi.asm: Likewise.
20927         * config/rs6000/linux-unwind.h: Likewise.
20928         * config/rs6000/linux64.h: Likewise.
20929         * config/rs6000/paired.h: Likewise.
20930         * config/rs6000/paired.md: Likewise.
20931         * config/rs6000/ppc64-fp.c: Likewise.
20932         * config/rs6000/ppu_intrinsics.h: Likewise.
20933         * config/rs6000/rs6000.h: Likewise.
20934         * config/rs6000/si2vmx.h: Likewise.
20935         * config/rs6000/sol-ci.asm: Likewise.
20936         * config/rs6000/sol-cn.asm: Likewise.
20937         * config/rs6000/spe.h: Likewise.
20938         * config/rs6000/spu2vmx.h: Likewise.
20939         * config/rs6000/sysv4.h: Likewise.
20940         * config/rs6000/tramp.asm: Likewise.
20941         * config/rs6000/vec_types.h: Likewise.
20942         * config/s390/linux-unwind.h: Likewise.
20943         * config/s390/tpf-unwind.h: Likewise.
20944         * config/score/crti.asm: Likewise.
20945         * config/score/crtn.asm: Likewise.
20946         * config/sh/crt1.asm: Likewise.
20947         * config/sh/crti.asm: Likewise.
20948         * config/sh/crtn.asm: Likewise.
20949         * config/sh/divtab-sh4-300.c: Likewise.
20950         * config/sh/divtab-sh4.c: Likewise.
20951         * config/sh/divtab.c: Likewise.
20952         * config/sh/lib1funcs-4-300.asm: Likewise.
20953         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
20954         * config/sh/lib1funcs.asm: Likewise.
20955         * config/sh/lib1funcs.h: Likewise.
20956         * config/sh/linux-atomic.asm: Likewise.
20957         * config/sh/linux-unwind.h: Likewise.
20958         * config/sh/shmedia.h: Likewise.
20959         * config/sh/sshmedia.h: Likewise.
20960         * config/sh/ushmedia.h: Likewise.
20961         * config/sparc/crtfastmath.c: Likewise.
20962         * config/sparc/linux-unwind.h: Likewise.
20963         * config/sparc/sol2-c1.asm: Likewise.
20964         * config/sparc/sol2-ci.asm: Likewise.
20965         * config/sparc/sol2-cn.asm: Likewise.
20966         * config/spu/divmodti4.c: Likewise.
20967         * config/spu/divv2df3.c: Likewise.
20968         * config/spu/float_disf.c: Likewise.
20969         * config/spu/float_unsdidf.c: Likewise.
20970         * config/spu/float_unsdisf.c: Likewise.
20971         * config/spu/float_unssidf.c: Likewise.
20972         * config/spu/mfc_multi_tag_release.c: Likewise.
20973         * config/spu/mfc_multi_tag_reserve.c: Likewise.
20974         * config/spu/mfc_tag_release.c: Likewise.
20975         * config/spu/mfc_tag_reserve.c: Likewise.
20976         * config/spu/mfc_tag_table.c: Likewise.
20977         * config/spu/multi3.c: Likewise.
20978         * config/spu/spu_internals.h: Likewise.
20979         * config/spu/spu_intrinsics.h: Likewise.
20980         * config/spu/spu_mfcio.h: Likewise.
20981         * config/spu/vec_types.h: Likewise.
20982         * config/spu/vmx2spu.h: Likewise.
20983         * config/stormy16/stormy16-lib2.c: Likewise.
20984         * config/svr4.h: Likewise.
20985         * config/sync.c: Likewise.
20986         * config/v850/lib1funcs.asm: Likewise.
20987         * config/vxlib-tls.c: Likewise.
20988         * config/vxlib.c: Likewise.
20989         * config/vxworks-dummy.h: Likewise.
20990         * config/xtensa/crti.asm: Likewise.
20991         * config/xtensa/crtn.asm: Likewise.
20992         * config/xtensa/ieee754-df.S: Likewise.
20993         * config/xtensa/ieee754-sf.S: Likewise.
20994         * config/xtensa/lib1funcs.asm: Likewise.
20995         * config/xtensa/lib2funcs.S: Likewise.
20996         * config/xtensa/linux-unwind.h: Likewise.
20997         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
20998         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
20999         * coretypes.h: Likewise.
21000         * crtstuff.c: Likewise.
21001         * defaults.h: Likewise.
21002         * dwarf2.h: Likewise.
21003         * emutls.c: Likewise.
21004         * gbl-ctors.h: Likewise.
21005         * gcov-io.h: Likewise.
21006         * ginclude/float.h: Likewise.
21007         * ginclude/iso646.h: Likewise.
21008         * ginclude/stdarg.h: Likewise.
21009         * ginclude/stdbool.h: Likewise.
21010         * ginclude/stddef.h: Likewise.
21011         * ginclude/stdfix.h: Likewise.
21012         * ginclude/stdint-gcc.h: Likewise.
21013         * ginclude/tgmath.h: Likewise.
21014         * gthr-aix.h: Likewise.
21015         * gthr-dce.h: Likewise.
21016         * gthr-gnat.c: Likewise.
21017         * gthr-gnat.h: Likewise.
21018         * gthr-lynx.h: Likewise.
21019         * gthr-mipssde.h: Likewise.
21020         * gthr-nks.h: Likewise.
21021         * gthr-posix.c: Likewise.
21022         * gthr-posix.h: Likewise.
21023         * gthr-posix95.h: Likewise.
21024         * gthr-rtems.h: Likewise.
21025         * gthr-single.h: Likewise.
21026         * gthr-solaris.h: Likewise.
21027         * gthr-tpf.h: Likewise.
21028         * gthr-vxworks.h: Likewise.
21029         * gthr-win32.h: Likewise.
21030         * gthr.h: Likewise.
21031         * libgcc2.c: Likewise.
21032         * libgcc2.h: Likewise.
21033         * libgcov.c: Likewise.
21034         * tsystem.h: Likewise.
21035         * typeclass.h: Likewise.
21036         * unwind-c.c: Likewise.
21037         * unwind-compat.h: Likewise.
21038         * unwind-dw2-fde-compat.c: Likewise.
21039         * unwind-dw2-fde-darwin.c: Likewise.
21040         * unwind-dw2-fde-glibc.c: Likewise.
21041         * unwind-dw2-fde.c: Likewise.
21042         * unwind-dw2-fde.h: Likewise.
21043         * unwind-dw2.c: Likewise.
21044         * unwind-dw2.h: Likewise.
21045         * unwind-generic.h: Likewise.
21046         * unwind-pe.h: Likewise.
21047         * unwind-sjlj.c: Likewise.
21048         * unwind.inc: Likewise.
21049         * config/arm/neon-gen.ml: Change generated copyright header to
21050         refer to version 3 of the GNU General Public License with
21051         version 3.1 of the GCC Runtime Library Exception and to point
21052         readers at the COPYING3 and COPYING3.RUNTIME files and the
21053         FSF's license web page.
21054         * config/arm/arm_neon.h: Regenerate.
21055
21056 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
21057
21058         * config/cris/cris.md: Change copyright header to refer to version
21059         3 of the GNU General Public License.
21060         * doc/install.texi2html: Change copyright header to refer to version
21061         3 of the GNU General Public License and to point readers at the
21062         COPYING3 file and the FSF's license web page.
21063         * config/vax/linux.h: Likewise.
21064
21065 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
21066
21067         * config/i386/i386.md (cmpcc): New.
21068         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
21069         (sync_compare_and_swap_cc*): Delete.
21070
21071         * config/s390/s390.c (s390_compare_emitted): Remove.
21072         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
21073         s390_compare_emitted used to be handled.  Assert that modes match.
21074         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
21075         refer to sync_compare_and_swap_ccsi.
21076         * config/s390/s390.h (s390_compare_emitted): Remove.
21077         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
21078         instead of s390_compare_emitted.
21079         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
21080         instead of s390_compare_emitted.
21081         * config/s390/s390.md (cmpcc): New.
21082         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
21083         CC_REGNUM, do not pretend it's set.
21084         (sync_compare_and_swap_cc*): Delete.
21085         * config/s390/predicates.md (cc_reg_operand): New.
21086
21087         * expr.c (sync_compare_and_swap_cc): Delete.
21088         * optabs.h (sync_compare_and_swap_cc): Delete.
21089         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
21090         is being used with can_compare_p.
21091         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
21092         (find_cc_set): New.
21093         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
21094         look for a MODE_CC set instead.  Use emit_store_flag.
21095         (expand_compare_and_swap_loop): Likewise, with some additional
21096         complication to avoid a force_reg when useless.  Use
21097         emit_cmp_and_jump_insns.
21098         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
21099         * doc/md.texi (sync_compare_and_swap_cc): Merge with
21100         sync_compare_and_swap documentation.
21101
21102 2009-04-09  Jan Hubicka  <jh@suse.cz>
21103
21104         * except.c (find_prev_try): Break out from ....
21105         (duplicate_eh_regions): ... here; properly update prev_try pointers
21106         when duplication part of tree.
21107         (dump_eh_tree): Improve dumping.
21108         (verify_eh_region): New.
21109         (verify_eh_tree): Use it.
21110
21111 2009-04-06  Richard Guenther  <rguenther@suse.de>
21112
21113         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
21114         &ARRAY addresses by adjusting their types and prepending
21115         a conversion.
21116         * tree-cfg.c (verify_gimple_assign_single): Verify that
21117         addresses are correct.
21118
21119 2009-04-09  Richard Guenther  <rguenther@suse.de>
21120
21121         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
21122         indices into an array reference if possible.
21123         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
21124         Fold POINTER_PLUS_EXPR statements with invariant address.
21125
21126 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
21127
21128         PR target/39634
21129         * config.gcc (powerpc64-*-linux*): Always build biarch.
21130
21131 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
21132
21133         PR c/39613
21134         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
21135         it and pedwarn if this results in an INTEGER_CST.
21136
21137 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21138
21139         * doc/install.texi: Update minimum GMP version.  Remove obsolete
21140         text in MPFR section.
21141
21142 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
21143
21144         * dwarf2out.c (class_scope_p): New static inline.
21145         (class_or_namespace_scope_p): Use it.
21146         (gen_variable_die): Use DW_TAG_member tag for static data member
21147         declarations instead of DW_TAG_variable.
21148
21149         PR middle-end/39573
21150         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
21151         variables.
21152
21153 2009-04-08  Richard Guenther  <rguenther@suse.de>
21154
21155         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
21156         valueize random data.
21157
21158 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
21159
21160         * config.gcc (aix tm_file):  Add aix-stdint.h.
21161         (aix tm clause use_gcc_stdint):  Set to wrap.
21162         * config/rs6000/aix-stdint.h:  New file.
21163
21164 2009-04-08  Richard Guenther  <rguenther@suse.de>
21165
21166         PR middle-end/36291
21167         * tree-dfa.c (add_referenced_var): Do not recurse into
21168         global initializers.
21169         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
21170         exposed variables.
21171         (fold_const_aggregate_ref): Likewise.
21172
21173 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
21174
21175         * recog.c (ordered_comparison_operator): New.
21176         * gensupport.c (std_preds): Add it.
21177         * doc/md.texi (Machine-Independent Predicates): Document it.
21178
21179 2009-04-08  Jan Hubicka  <jh@suse.cz>
21180
21181         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
21182         * function.h (rtl_eh): Remove exception_handler_label_map.
21183         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
21184         remove_exception_handler_label, for_each_eh_label_1): Remove.
21185         (rtl_remove_unreachable_regions): Remove.
21186         (convert_from_eh_region_ranges): Do not remove unreachable regions.
21187         (find_exception_handler_labels): Don't build the hashtable.
21188         (maybe_remove_eh_handler): Remove.
21189         (for_each_eh_label): Rewrite to walk the tree.
21190         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
21191         * except.h (maybe_remove_eh_handler): Remove.
21192         * passes.c (init_optimization_passes): Schedule second EH cleanup
21193         before out-of-ssa.
21194         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
21195         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
21196
21197 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
21198
21199         * genoutput.c (validate_optab_operands): New.
21200         (gen_insn, gen_expand): Call it.
21201
21202         * genflags.c (gen_insn): Detect misused iterators.
21203         (main): Pass line_no to gen_insn, exit with status 1 on error.
21204
21205         * genextract.c (line_no): Make global.
21206         (VEC_safe_set_locstr): Change assertion to error message.
21207         (main): Exit with status 1 on error.
21208
21209 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
21210
21211         PR c/39614
21212         PR c/39673
21213         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
21214         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
21215         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
21216         * c-convert.c (convert): Do not call fold on results of conversion
21217         functions when the result is a C_MAYBE_CONST_EXPR.
21218         * c-parser.c (c_parser_postfix_expression): Do not fold condition
21219         of __builtin_choose_expr.
21220         * c-typeck.c (remove_c_maybe_const_expr): New.
21221         (build_unary_op, build_conditional_expr, build_compound_expr,
21222         build_binary_op, c_objc_common_truthvalue_conversion): Call
21223         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
21224         integer operands.
21225
21226 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
21227
21228         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
21229         CODE to produce a new one. Add a prototype to use fold_convert_const
21230
21231 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
21232
21233         PR bootstrap/39660
21234         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
21235         mix declarations and code.
21236
21237 2009-04-08  Ben Elliston  <bje@au.ibm.com>
21238
21239         * gcc.c: Replace `CC' with `GCC' throughout.
21240
21241 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
21242
21243         * doc/invoke.texi: Document Atom support.
21244
21245 2009-04-07  Jason Merrill  <jason@redhat.com>
21246
21247         PR c++/25185
21248         * c-common.h, c-common.c: Add flag_pretty_templates.
21249         * c-opts.c (c_common_handle_option): Set it.
21250         * c.opt: Add -fno-pretty-templates.
21251         * doc/invoke.texi (C++ Dialect Options): Likewise.
21252
21253 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
21254
21255         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
21256         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
21257         (ia64_expand_builtin): Likewise.
21258
21259 2009-04-07  Martin Jambor  <mjambor@suse.cz>
21260
21261         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
21262         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
21263         ADDR_EXPRS are include too.
21264
21265 2009-04-07  Richard Guenther  <rguenther@suse.de>
21266
21267         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
21268         decls are only used if passes as parameters or if they are
21269         local statics and the call is not to a builtin.
21270         (call_may_clobber_ref_p_1): Likewise.
21271
21272 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
21273
21274         * expr.c (do_store_flag): Remove last argument.  Simplify code
21275         to avoid duplication of tests already done by can_compare_p.
21276         (expand_expr_real_1): Adjust caller.
21277
21278 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
21279
21280         * optabs.c (can_compare_p): Test the predicate of a
21281         cbranch and cstore pattern.
21282
21283 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
21284
21285         * expr.c (convert_move): Use emit_store_flag instead of
21286         "emulating" it.
21287
21288 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
21289
21290         * config/i386/i386.c (ix86_compare_emitted): Remove.
21291         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
21292         ix86_compare_op0 like ix86_compare_emitted used to be handled.
21293         * config/i386/i386.h (ix86_compare_emitted): Remove.
21294         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
21295         instead of ix86_compare_emitted.
21296         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
21297
21298 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
21299
21300         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
21301         Add t-sysroot-suffix to tmake_file.
21302         * config/print-sysroot-suffix.sh: New file.
21303         * config/t-sysroot-suffix: New file.
21304
21305 2009-04-07  Ben Elliston  <bje@au.ibm.com>
21306
21307         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
21308         as the latter produces a warning when the target does not support
21309         infinity.
21310
21311 2009-04-07  Ben Elliston  <bje@au.ibm.com>
21312
21313         * dfp.c: Replace type punning assignments with memcpy throughout.
21314         * Makefile.in (dfp.o-warn): Remove.
21315
21316 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
21317
21318         PR target/39634
21319         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
21320         Include soft-fp/t-softfp after rs6000/t-linux64.
21321
21322 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
21323
21324         * stor-layout.c (set_sizetype): Use the full precision of their
21325         machine mode for bitsize types.
21326
21327 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
21328
21329         * config/i386/i386.md: Revert 2 accidental checkins.
21330
21331 2009-04-06  Joey Ye  <joey.ye@intel.com>
21332             Xuepeng Guo  <xuepeng.guo@intel.com>
21333             H.J. Lu  <hongjiu.lu@intel.com>
21334
21335         Atom pipeline model, tuning and insn selection.
21336         * config.gcc (atom): Add atom config options and target.
21337
21338         * config/i386/atom.md: New.
21339
21340         * config/i386/i386.c (atom_cost): New cost.
21341         (m_ATOM): New macro flag.
21342         (initial_ix86_tune_features): Set m_ATOM.
21343         (x86_accumulate_outgoing_args): Likewise.
21344         (x86_arch_always_fancy_math_387): Likewise.
21345         (processor_target): Add Atom cost.
21346         (cpu_names): Add Atom cpu name.
21347         (override_options): Set Atom ISA.
21348         (ix86_issue_rate): New case PROCESSOR_ATOM.
21349         (ix86_adjust_cost): Likewise.
21350
21351         * config/i386/i386.h (TARGET_ATOM): New target macro.
21352         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
21353         (TARGET_OPT_AGU): New target option.
21354         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
21355         (processor_type): Add PROCESSOR_ATOM.
21356
21357         * config/i386/i386.md (cpu): Add new value "atom".
21358         (use_carry, movu): New attr.
21359         (atom.md): Include atom.md.
21360         (adddi3_carry_rex64): Set attr "use_carry".
21361         (addqi3_carry): Likewise.
21362         (addhi3_carry): Likewise.
21363         (addsi3_carry): Likewise.
21364         (*addsi3_carry_zext): Likewise.
21365         (subdi3_carry_rex64): Likewise.
21366         (subqi3_carry): Likewise.
21367         (subhi3_carry): Likewise.
21368         (subsi3_carry): Likewise.
21369         (x86_movdicc_0_m1_rex64): Likewise.
21370         (*x86_movdicc_0_m1_se): Likewise.
21371         (x86_movsicc_0_m1): Likewise.
21372         (*x86_movsicc_0_m1_se): Likewise.
21373         (*adddi_1_rex64): Emit add insn as much as possible.
21374         (*addsi_1): Likewise.
21375         (return_internal): Set atom_unit.
21376         (return_internal_long): Likewise.
21377         (return_pop_internal): Likewise.
21378         (*rcpsf2_sse): Set atom_sse_attr attr.
21379         (*qrt<mode>2_sse): Likewise.
21380         (*prefetch_sse): Likewise.
21381
21382         * config/i386/i386-c.c (ix86_target_macros_internal): New case
21383         PROCESSOR_ATOM.
21384         (ix86_target_macros_internal): Likewise.
21385
21386         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
21387         (*prefetch_sse_rex): Likewise.
21388         (sse_rcpv4sf2): Likewise.
21389         (sse_vmrcpv4sf2): Likewise.
21390         (sse_sqrtv4sf2): Likewise.
21391         (<sse>_vmsqrt<mode>2): Likewise.
21392         (sse_ldmxcsr): Likewise.
21393         (sse_stmxcsr): Likewise.
21394         (*sse_sfence): Likewise.
21395         (sse2_clflush): Likewise.
21396         (*sse2_mfence): Likewise.
21397         (*sse2_lfence): Likewise.
21398         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
21399         (<sse>_movup<ssemodesuffixf2c>): Likewise.
21400         (avx_movdqu<avxmodesuffix>): Likewise.
21401         (avx_lddqu<avxmodesuffix>): Likewise.
21402         (sse2_movntv2di): Change attr "type" to "ssemov".
21403         (sse2_movntsi): Likewise.
21404         (rsqrtv8sf2): Change attr "type" to "sseadd".
21405         (sse3_addsubv2df3): Set attr "atom_unit".
21406         (sse3_h<plusminus_insn>v4sf3): Likewise.
21407         (*sse2_pmaddwd): Likewise.
21408         (*vec_extractv2di_1_rex64): Likewise.
21409         (*vec_extractv2di_1_avx): Likewise.
21410         (sse2_psadbw): Likewise.
21411         (ssse3_phaddwv8hi3): Likewise.
21412         (ssse3_phaddwv4hi3): Likewise.
21413         (ssse3_phadddv4si3): Likewise.
21414         (ssse3_phadddv2si3): Likewise.
21415         (ssse3_phaddswv8hi3): Likewise.
21416         (ssse3_phaddswv4hi3): Likewise.
21417         (ssse3_phsubwv8hi3): Likewise.
21418         (ssse3_phsubwv4hi3): Likewise.
21419         (ssse3_phsubdv4si3): Likewise.
21420         (ssse3_phsubdv2si3): Likewise.
21421         (ssse3_phsubswv8hi3): Likewise.
21422         (ssse3_phsubswv4hi3): Likewise.
21423         (ssse3_pmaddubsw128): Likewise.
21424         (sse3_pmaddubsw: Likewise.
21425         (ssse3_palignrti): Likewise.
21426         (ssse3_palignrdi): Likewise.
21427
21428 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
21429
21430         * doc/install.texi (Specific): Fix two cross-references to MinGW.
21431
21432 2009-04-06  Richard Guenther  <rguenther@suse.de>
21433
21434         PR tree-optimization/28868
21435         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
21436         of which PHI results we inserted.
21437         (insert_into_preds_of_block): Record inserted PHIs.
21438         (eliminate): Eliminate redundant PHI nodes.
21439         (init_pre): Init inserted_phi_names.
21440
21441 2009-04-06  Richard Guenther  <rguenther@suse.de>
21442
21443         PR tree-optimization/39643
21444         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
21445         IMAGPART_EXPRs of complex constants.
21446         (execute_fold_all_builtins): If we folded a call queue
21447         TODO_update_address_taken.
21448
21449 2009-04-06  Jan Hubicka  <jh@suse.cz>
21450
21451         PR middle-end/39659
21452         * except.c (remove_unreachable_regions): Propagate may_contain_throw
21453         flag.
21454
21455 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
21456
21457         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
21458         delay slot.
21459         (ic_invalidate_array): Likewise.
21460
21461 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
21462
21463         * calls.c (emit_library_call_value_1): Fix a problem with parameter
21464         alignment for library calls.
21465
21466 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
21467
21468         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
21469         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
21470         * config/i386/mingw-stdint.h:  New file.
21471
21472 2009-04-05  Richard Guenther  <rguenther@suse.de>
21473
21474         PR tree-optimization/39648
21475         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
21476         our &A vs. &A[0] IL deficiencies.
21477
21478 2009-04-04  Jan Hubicka  <jh@suse.cz>
21479
21480         * except.c (sjlj_find_directly_reachable_regions): Be ready for
21481         removed toplevel regions.
21482         (sjlj_mark_call_sites): Likewise.
21483
21484 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
21485
21486         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
21487         (cygwin tm clause use_gcc_stdint):  Set to wrap.
21488         * config/i386/cygwin-stdint.h:  New file.
21489
21490 2009-04-04  Richard Guenther  <rguenther@suse.de>
21491
21492         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
21493         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
21494         single-argument PHIs if we are in loop-closed SSA form.
21495         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
21496         for the pre-condition.
21497         (slpeel_tree_peel_loop_to_edge): Likewise.
21498         (vect_build_loop_niters): Take an optional sequence to append stmts.
21499         (vect_generate_tmps_on_preheader): Likewise.
21500         (vect_do_peeling_for_loop_bound): Take extra guards for the
21501         pre-condition.
21502         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
21503         the cost model check.
21504         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
21505         guards if we are going to peel.  Do not apply versioning in that case.
21506         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
21507         (vect_do_peeling_for_loop_bound): Likewise.
21508         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
21509         loop bound only record extra pre-conditions, do not apply loop
21510         versioning.
21511
21512 2009-04-04  Richard Guenther  <rguenther@suse.de>
21513
21514         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
21515         renaming code.
21516
21517 2009-04-04  Jan Hubicka  <jh@suse.cz>
21518
21519         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
21520         last_basic_block for size of bb->index indexed array.
21521         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
21522         compute_out, link_btr_uses, build_btr_def_use_webs,
21523         build_btr_def_use_webs, migrate_btr_defs): Likewise.
21524
21525 2009-04-04  Jan Hubicka  <jh@suse.cz>
21526
21527         * except.c (remove_eh_handler_and_replace): Break out from ...
21528         (remove_eh_handler): ... here.
21529         (bring_to_root): New function.
21530         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
21531         handled ones, bring others to root of tree.
21532
21533 2009-04-04  Jan Hubicka  <jh@suse.cz>
21534
21535         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
21536         (all_phis_safe_to_merge): New function.
21537         (update_info): New structure.
21538         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
21539         (cleanup_empty_eh): Update SSA if possible.
21540
21541 2009-04-04  Richard Guenther  <rguenther@suse.de>
21542
21543         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
21544         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
21545         (append_vuse): Likewise.
21546
21547 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
21548
21549         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
21550         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
21551         instead of REG_UNSAVED for DW_CFA_undefined.
21552         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
21553         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
21554         outermost frame.
21555
21556 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
21557
21558         PR target/39501
21559         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
21560
21561 2009-04-04  Richard Guenther  <rguenther@suse.de>
21562
21563         PR tree-optimization/8781
21564         PR tree-optimization/37892
21565         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
21566         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
21567         (valueize_refs): Call it for *& valueizations.
21568         (shared_reference_ops_from_ref): Rename to ...
21569         (valueize_shared_reference_ops_from_ref): ... this and valueize.
21570         (shared_reference_ops_from_call): Rename to ...
21571         (valueize_shared_reference_ops_from_call): ... this and valueize.
21572         (vn_reference_lookup): Update.
21573         (visit_reference_op_call): Likewise.
21574         * tree-ssa-pre.c (phi_translate_1): Fold *&.
21575         (eliminate): Value-replace the call address in call statements.
21576
21577 2009-04-04  Richard Guenther  <rguenther@suse.de>
21578
21579         PR tree-optimization/39636
21580         * tree-ssa-forwprop.c
21581         (forward_propagate_addr_into_variable_array_index): Check for
21582         GIMPLE_ASSIGN before accessing the rhs code.
21583
21584 2009-04-03  Jason Merrill  <jason@redhat.com>
21585
21586         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
21587
21588 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
21589
21590         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
21591         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
21592         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
21593         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
21594         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
21595         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
21596         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
21597         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
21598         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
21599         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
21600         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
21601         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
21602         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
21603         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
21604         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
21605         Use fr_reg_or_fp01_operand instead of fr_register_operand
21606
21607         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
21608         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
21609         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
21610
21611 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
21612
21613         PR rtl-optimization/39607
21614         PR rtl-optimization/39631
21615
21616         Revert:
21617
21618         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
21619         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
21620         instead of DF_LR_OUT.
21621         * ira-lives.c (process_bb_node_lives): Ditto.
21622         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
21623         instead of DF_LR_{OUT,IN}.
21624         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
21625         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
21626
21627 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
21628
21629         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
21630         (execute_lower_omp): Always run but take the short way out if -fopenmp
21631         is not given.
21632         (gate_lower_omp): Remove, forcing the pass manager to always run the
21633         pass and always set PROP_gimple_lomp.
21634         (pass_lower_omp): Remove gate function.
21635         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
21636         PROP_trees.  Instead, require it.
21637         * ipa-cp.c (pass_ipa_cp): Likewise.
21638         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
21639         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
21640         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
21641         and PROP_gimple_leh.
21642
21643 2009-04-03  Richard Guenther  <rguenther@suse.de>
21644
21645         PR middle-end/13146
21646         PR tree-optimization/23940
21647         PR tree-optimization/33237
21648         PR middle-end/33974
21649         PR middle-end/34093
21650         PR tree-optimization/36201
21651         PR tree-optimization/36230
21652         PR tree-optimization/38049
21653         PR tree-optimization/38207
21654         PR tree-optimization/38230
21655         PR tree-optimization/38301
21656         PR tree-optimization/38585
21657         PR middle-end/38895
21658         PR tree-optimization/38985
21659         PR tree-optimization/39299
21660         * tree-ssa-structalias.h: Remove.
21661         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
21662         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
21663         (struct vuse_element_d): Remove.
21664         (struct vuse_vec_d): Likewise.
21665         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
21666         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
21667         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
21668         VUSE_ELEMENT_VAR): Likewise.
21669         (struct voptype_d): Likewise.
21670         (NUM_VOP_FREE_BUCKETS): Likewise.
21671         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
21672         (struct stmt_operands_d): Remove.
21673         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
21674         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
21675         VDEF_NUM, VDEF_VECT): Likewise.
21676         (copy_virtual_operands): Remove.
21677         (operand_build_cmp): Likewise.
21678         (create_ssa_artificial_load_stmt): Likewise.
21679         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
21680         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
21681         vuse_index and mayuse_index members.  Pack and move done and iter_type
21682         members to the front.
21683         (SSA_OP_VMAYUSE): Remove.
21684         (SSA_OP_VIRTUAL_USES): Adjust.
21685         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
21686         (unlink_stmt_vdef): Declare.
21687         (add_to_addressable_set): Remove.
21688         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
21689         (vrp_visit_stmt): Likewise.
21690         * doc/tree-ssa.texi (Alias analysis): Update.
21691         * doc/invoke.texi (max-aliased-vops): Remove docs.
21692         (avg-aliased-vops): Likewise.
21693         * tree-into-ssa.c (syms_to_rename): Remove.
21694         (need_to_update_vops_p): Likewise.
21695         (need_to_initialize_update_ssa_p): Rename to ...
21696         (update_ssa_initialized_fn): ... this.  Track function we are
21697         initialized for.
21698         (symbol_marked_for_renaming): Simplify.
21699         (add_new_name_mapping): Do not set need_to_update_vops_p.
21700         (dump_currdefs): Use SYMS_TO_RENAME.
21701         (rewrite_update_stmt): Always walk all uses/defs.
21702         (dump_update_ssa): Adjust.
21703         (init_update_ssa): Take function argument.  Track what we are
21704         initialized for.
21705         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
21706         (create_new_def_for): Initialize for cfun, assert we are initialized
21707         for cfun.
21708         (mark_sym_for_renaming): Simplify.
21709         (mark_set_for_renaming): Do not initialize update-ssa.
21710         (need_ssa_update_p): Simplify.  Take function argument.
21711         (name_mappings_registered_p): Assert we ask for the correct function.
21712         (name_registered_for_update_p): Likewise.
21713         (ssa_names_to_replace): Likewise.
21714         (release_ssa_name_after_update_ssa): Likewise.
21715         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
21716         (dump_decl_set): Do not print a newline.
21717         (debug_decl_set): Do it here.
21718         (dump_update_ssa): And here.
21719         * tree-ssa-loop-im.c (move_computations): Adjust.
21720         (movement_possibility): Likewise.
21721         (determine_max_movement): Likewise.
21722         (gather_mem_refs_stmt): Likewise.
21723         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
21724         or NAME_MEMORY_TAG.
21725         * tree-complex.c (update_all_vops): Remove.
21726         (expand_complex_move): Adjust.
21727         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
21728         Simplify test for memory referencing statement.  Exclude
21729         non-invariant ADDR_EXPRs.
21730         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
21731         * tree-loop-distribution.c (generate_memset_zero): Adjust.
21732         (rdg_flag_uses): Likewise.
21733         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
21734         related code.
21735         (tree_optimize_tail_calls_1): Also split the
21736         edge from the entry block if we have degenerate PHI nodes in
21737         the first basic block.
21738         * tree.c (init_ttree): Remove memory-tag related code.
21739         (tree_code_size): Likewise.
21740         (tree_node_structure): Likewise.
21741         (build7_stat): Re-write to be build6_stat.
21742         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
21743         (SSA_VAR_P): Adjust.
21744         (struct tree_memory_tag): Remove.
21745         (struct tree_memory_partition_tag): Likewise.
21746         (union tree_node): Adjust.
21747         (build7): Re-write to be build6.
21748         * tree-pass.h (pass_reset_cc_flags): Remove.
21749         (TODO_update_address_taken): New flag.
21750         (pass_simple_dse): Remove.
21751         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
21752         * params.h (MAX_ALIASED_VOPS): Remove.
21753         (AVG_ALIASED_VOPS): Likewise.
21754         * omp-low.c (expand_omp_taskreg): Update SSA form.
21755         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
21756         aliases the lhs in a copy stmt.
21757         * tree-ssa-dse.c (struct address_walk_data): Remove.
21758         (memory_ssa_name_same): Likewise.
21759         (memory_address_same): Likewise.
21760         (get_kill_of_stmt_lhs): Likewise.
21761         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
21762         unused stores.  Look through PHI nodes into post-dominated regions.
21763         (dse_optimize_stmt): Simplify.  Properly remove stores.
21764         (tree_ssa_dse): Compute dominators.
21765         (execute_simple_dse): Remove.
21766         (pass_simple_dse): Likewise.
21767         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
21768         gimple_loaded_syms and gimple_stored_syms computation.
21769         * toplev.c (dump_memory_report): Dump alias and pta stats.
21770         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
21771         (vn_reference_eq): Likewise.
21772         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
21773         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
21774         valueize_vuses): Remove.
21775         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
21776         (get_def_ref_stmt_vuse): ... this.
21777         (vn_reference_lookup_2): New function.
21778         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
21779         walking equivalent vuses.  Simplify.
21780         (vn_reference_lookup): Likewise.
21781         (vn_reference_insert): Likewise.
21782         (vn_reference_insert_pieces): Likewise.
21783         (visit_reference_op_call): Simplify.
21784         (visit_reference_op_load): Likewise.
21785         (visit_reference_op_store): Likewise.
21786         (init_scc_vn): Remove shared_lookup_vuses initialization.
21787         (free_scc_vn): Remove shared_lookup_vuses freeing.
21788         (sort_vuses, sort_vuses_heap): Remove.
21789         (get_ref_from_reference_ops): Export.
21790         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
21791         vector with single vuse pointer.
21792         (vn_reference_lookup_pieces, vn_reference_lookup,
21793         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
21794         (shared_vuses_from_stmt): Remove.
21795         (get_ref_from_reference_ops): Declare.
21796         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
21797         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
21798         memory-tag related code.
21799         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
21800         (likely_value): Add comment, skip static-chain of call statements.
21801         (surely_varying_stmt_p): Adjust.
21802         (gimplify_and_update_call_from_tree): Likewise.
21803         (execute_fold_all_builtins): Do not rebuild alias info.
21804         (gimplify_and_update_call_from_tree): Properly update VOPs.
21805         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
21806         (copy_ref_info): Remove memory-tag related code.
21807         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
21808         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
21809         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
21810         computation.
21811         * tree-ssa-dom.c (gimple_p): Remove typedef.
21812         (eliminate_redundant_computations): Adjust.
21813         (record_equivalences_from_stmt): Likewise.
21814         (avail_expr_hash): Likewise.
21815         (avail_expr_eq): Likewise.
21816         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
21817         (stmt_makes_single_load): Likewise.
21818         (stmt_makes_single_store): Likewise.
21819         * tree-ssa-alias.c: Rewrite completely.
21820         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
21821         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
21822         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
21823         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
21824         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
21825         Remove public functions.
21826         (pass_reset_cc_flags): Remove.
21827         (pass_build_alias): Move ...
21828         * tree-ssa-structalias.c (pass_build_alias): ... here.
21829         * tree-ssa-alias.c (may_be_aliased): Move ...
21830         * tree-flow-inline.h (may_be_aliased): ... here.
21831         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
21832         count_uses_and_derefs): Move ...
21833         * gimple.c: ... here.
21834         * gimple.h (count_uses_and_derefs): Declare.
21835         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
21836         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
21837         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
21838         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
21839         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
21840         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
21841         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
21842         New functions.
21843         * tree-dfa.c (refs_may_alias_p): Move ...
21844         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
21845         * tree-ssa-alias.h: New file.
21846         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
21847         (statement_sink_location): Likewise.
21848         * opts.c (decode_options): Do not adjust max-aliased-vops or
21849         avg-aliased-vops values.
21850         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
21851         (TV_CALL_CLOBBER): Likewise.
21852         (TV_FLOW_SENSITIVE): Likewise.
21853         (TV_FLOW_INSENSITIVE): Likewise.
21854         (TV_MEMORY_PARTITIONING): Likewise.
21855         (TV_ALIAS_STMT_WALK): New timevar.
21856         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
21857         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
21858         (get_address_description): Remove memory-tag related code.
21859         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
21860         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
21861         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
21862         and immediate uses in statements.  Document.
21863         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
21864         (dump_symbols): Remove.
21865         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
21866         * alias.c (get_deref_alias_set): New function split out from ...
21867         (get_alias_set): ... here.
21868         * alias.h (get_deref_alias_set): Declare.
21869         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
21870         type parameter.  Remove restrict pointer handling.  Create a
21871         ref-all pointer in case type-based alias sets do not conflict.
21872         (vect_analyze_data_refs): Remove SMT related code.
21873         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
21874         (vectorizable_load): Likewise.
21875         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
21876         (DR_SYMBOL_TAG, DR_VOPS): Remove.
21877         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
21878         Ignore vops and SMTs.
21879         (dr_analyze_alias): Likewise..
21880         (free_data_ref): Likewise.
21881         (create_data_ref): Likewise.
21882         (analyze_all_data_dependences): Likewise.
21883         (get_references_in_stmt): Adjust.
21884         * tree-flow-inline.h (gimple_aliases_computed_p,
21885         gimple_addressable_vars, gimple_call_clobbered_vars,
21886         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
21887         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
21888         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
21889         gimple_mem_ref_stats): Remove.
21890         (gimple_vop): New function.
21891         (op_iter_next_use): Remove vuses and mayuses cases.
21892         (op_iter_next_def): Remove vdefs case.
21893         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
21894         (clear_and_done_ssa_iter): Do not set removed fields.
21895         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
21896         Assert we are not iterating over vuses or vdefs if not also
21897         iterating over uses or defs.
21898         (op_iter_init_use): Likewise.
21899         (op_iter_init_def): Likewise.
21900         (op_iter_next_vdef): Remove.
21901         (op_iter_next_mustdef): Likewise.
21902         (op_iter_init_vdef): Likewise.
21903         (compare_ssa_operands_equal): Likewise.
21904         (link_use_stmts_after): Handle vuse operand.
21905         (is_call_used): Use is_call_clobbered.
21906         (is_call_clobbered): Global variables are always call clobbered,
21907         query the call-clobbers bitmap.
21908         (mark_call_clobbered): Ignore global variables.
21909         (clear_call_clobbered): Likewise.
21910         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
21911         virtual operands sanity check.
21912         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
21913         Remove.
21914         (TARGET_MEM_REF): Remove TMR_TAG operand.
21915         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
21916         Remove call-clobber related code.
21917         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
21918         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
21919         partitions or escape reason.
21920         (get_single_def_stmt, get_single_def_stmt_from_phi,
21921         get_single_def_stmt_with_phi): Remove.
21922         (dump_referenced_vars): Tidy.
21923         (get_ref_base_and_extent): Allow bare decls.
21924         (collect_dfa_stats): Adjust.
21925         * graphite.c (rename_variables_in_stmt): Adjust.
21926         (graphite_copy_stmts_from_block): Likewise.
21927         (translate_clast): Likewise.
21928         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
21929         (EXPR_DIES): New.
21930         (translate_vuse_through_block): Use the oracle.
21931         (phi_translate_1): Adjust.
21932         (value_dies_in_block_x): Use the oracle.  Cache the outcome
21933         in EXPR_DIES.
21934         (valid_in_sets): Check if the VUSE for
21935         a REFERENCE is available.
21936         (eliminate): Do not remove stmts during elimination,
21937         instead queue and remove them afterwards.
21938         (do_pre): Do not rebuild alias info.
21939         (pass_pre): Run TODO_rebuild_alias before PRE.
21940         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
21941         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
21942         (mark_all_v_defs_stmt): Remove.
21943         (mark_all_v_defs_seq): Adjust.
21944         (sra_replace): Likewise.
21945         (scalarize_use): Likewise.
21946         (scalarize_copy): Likewise.
21947         (scalarize_init): Likewise.
21948         (scalarize_ldst): Likewise.
21949         (todoflags): Remove.
21950         (tree_sra): Do not rebuild alias info.
21951         (tree_sra_early): Adjust.
21952         (pass_sra): Run TODO_update_address_taken before SRA.
21953         * tree-predcom.c (set_alias_info): Remove.
21954         (prepare_initializers_chain): Do not call it.
21955         (mark_virtual_ops_for_renaming): Adjust.
21956         (mark_virtual_ops_for_renaming_list): Remove.
21957         (initialize_root_vars): Adjust.
21958         (initialize_root_vars_lm): Likewise.
21959         (prepare_initializers_chain): Likewise.
21960         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
21961         (may_propagate_copy_into_stmt): Likewise.
21962         (merge_alias_info): Do nothing for now.
21963         (propagate_tree_value_into_stmt): Adjust.
21964         (stmt_may_generate_copy): Likewise.
21965         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
21966         not mark symbols for renaming.
21967         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
21968         with the same statement, make sure to update the new pointed-to one.
21969         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
21970         call statements, do not mark symbols for renaming.
21971         (mark_operand_necessary): Dump something.
21972         (ref_may_be_aliased): New function.
21973         (mark_aliased_reaching_defs_necessary_1): New helper function.
21974         (mark_aliased_reaching_defs_necessary): Likewise.
21975         (mark_all_reaching_defs_necessary_1): Likewise.
21976         (mark_all_reaching_defs_necessary): Likewise.
21977         (propagate_necessity): Do not process virtual PHIs.  For
21978         non-aliased loads mark all reaching definitions as necessary.
21979         For aliased loads and stores mark the immediate dominating
21980         aliased clobbers as necessary.
21981         (visited): New global static.
21982         (perform_tree_ssa_dce): Free visited bitmap after propagating
21983         necessity.
21984         (remove_dead_phis): Perform simple dead virtual PHI removal.
21985         (remove_dead_stmt): Properly unlink virtual operands when
21986         removing stores.
21987         (eliminate_unnecessary_stmts): Schedule PHI removal after
21988         stmt removal.
21989         * tree-ssa-ter.c (is_replaceable_p): Adjust.
21990         (process_replaceable): Likewise.
21991         (find_replaceable_in_bb): Likewise.
21992         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
21993         based on the single gimple vop.
21994         (verify_flow_insensitive_alias_info): Remove.
21995         (verify_flow_sensitive_alias_info): Likewise.
21996         (verify_call_clobbering): Likewise.
21997         (verify_memory_partitions): Likewise.
21998         (verify_alias_info): Likewise.
21999         (verify_ssa): Adjust..
22000         (execute_update_addresses_taken): Export.  Update SSA
22001         manually.  Optimize only when optimizing.  Use a local bitmap.
22002         (pass_update_address_taken): Remove TODO_update_ssa, add
22003         TODO_dump_func.
22004         (pass_update_address_taken): Just use TODO_update_address_taken.
22005         (init_tree_ssa): Do not initialize addressable_vars.
22006         (verify_ssa): Verify new VUSE / VDEF properties.
22007         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
22008         Do not call verify_alias_info.
22009         (delete_tree_ssa): Clear the VUSE, VDEF operands.
22010         Do not free the loaded and stored syms bitmaps.  Reset the escaped
22011         and callused solutions.  Do not free addressable_vars.
22012         Remove memory-tag related code.
22013         (warn_uninitialized_var): Aliases are always available.
22014         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
22015         * lambda-code.c (can_put_in_inner_loop): Adjust.
22016         (can_put_after_inner_loop): Likewise.
22017         (perfect_nestify): Likewise.
22018         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
22019         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
22020         (vectorizable_conversion): Do not mark symbols for renaming.
22021         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
22022         (expand_call_inline): Unlink the calls virtual operands before
22023         replacing it.
22024         (tree_function_versioning): Do not call update_ssa if we are not
22025         updating clones.  Simplify.
22026         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
22027         (propagate_with_phi): Likewise..
22028         * tree-outof-ssa.c (create_temp): Remove memory tag and call
22029         clobber code.  Assert we are not aliased or global.
22030         * tree-flow.h: Include tree-ssa-alias.h
22031         (enum escape_type): Remove.
22032         (struct mem_sym_stats_d): Likewise.
22033         (struct mem_ref_stats_d): Likewise.
22034         (struct gimple_df): Add vop member.  Remove global_var,
22035         call_clobbered_vars, call_used_vars, addressable_vars,
22036         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
22037         escaped and callused members.
22038         (struct ptr_info_def): Remove all members, add points-to solution
22039         member pt.
22040         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
22041         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
22042         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
22043         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
22044         (tree-ssa-alias.o): Likewise.
22045         (toplev.o): Add tree-ssa-alias.h
22046         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
22047         * gimple.c (gimple_set_bb): Fix off-by-one error.
22048         (is_gimple_reg): Do not handle memory tags.
22049         (gimple_copy): Also copy virtual operands.
22050         Delay updating the statement.  Do not reset loaded and stored syms.
22051         (gimple_set_stored_syms): Remove.
22052         (gimple_set_loaded_syms): Likewise.
22053         (gimple_call_copy_skip_args): Copy the virtual operands
22054         and mark the new statement modified.
22055         * tree-ssa-structalias.c (may_alias_p): Remove.
22056         (set_uids_in_ptset): Take the alias set to prune with as
22057         parameter.  Fold in the alias test of may_alias_p.
22058         (compute_points_to_sets): Compute whether a ptr is dereferenced
22059         in a local sbitmap.
22060         (process_constraint): Deal with &ANYTHING on the lhs, reject all
22061         other ADDRESSOF constraints on the lhs.
22062         (get_constraint_for_component_ref): Assert that we don't get
22063         ADDRESSOF constraints from the base of the reference.
22064         Properly generate UNKNOWN_OFFSET for DEREF if needed.
22065         (struct variable_info): Remove collapsed_to member.
22066         (get_varinfo_fc): Remove.
22067         (new_var_info): Do not set collapsed_to.
22068         (dump_constraint): Do not follow cycles.
22069         (dump_constraint_graph): Likewise.
22070         (build_pred_graph): Likewise.
22071         (build_succ_graph): Likewise.
22072         (rewrite_constraints): Likewise.
22073         (do_simple_structure_copy): Remove.
22074         (do_rhs_deref_structure_copy): Remove.
22075         (do_lhs_deref_structure_copy): Remove.
22076         (collapse_rest_of_var): Remove.
22077         (do_structure_copy): Re-implement.
22078         (pta_stats): New global variable.
22079         (dump_pta_stats): New function.
22080         (struct constraint_expr): Make offset signed.
22081         (UNKNOWN_OFFSET): Define special value.
22082         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
22083         (solution_set_expand): New helper function split out from ...
22084         (do_sd_constraint): ... here.
22085         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
22086         (do_ds_constraint): Likewise.
22087         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
22088         and CALLUSED = *CALLUSED.
22089         (set_union_with_increment): Make inc argument signed.
22090         (type_safe): Remove.
22091         (get_constraint_for_ptr_offset): Handle unknown and negative
22092         constant offsets.
22093         (first_vi_for_offset): Handle offsets before start.  Bail
22094         out early for offsets beyond the variable extent.
22095         (first_or_preceding_vi_for_offset): New function.
22096         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
22097         Together with ESCAPED = *ESCAPED this properly computes reachability.
22098         (find_what_var_points_to): New function.
22099         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
22100         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
22101         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
22102         pt_solutions_intersect): New functions.
22103         (compute_call_used_vars): Remove.
22104         (compute_may_aliases): New main entry into PTA computation.
22105         * gimple.h (gimple_p): New typedef.
22106         (struct gimple_statement_base): Remove references_memory_p.
22107         (struct gimple_statement_with_memory_ops_base): Remove
22108         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
22109         members.
22110         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
22111         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
22112         gimple_set_references_memory): Remove.
22113         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
22114         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
22115         New functions.
22116         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
22117         (verify_expr): Allow RESULT_DECL.
22118         (gimple_duplicate_bb): Do not copy virtual operands.
22119         (gimple_duplicate_sese_region): Adjust.
22120         (gimple_duplicate_sese_tail): Likewise.
22121         (mark_virtual_ops_in_region): Remove.
22122         (move_sese_region_to_fn): Do not call it.
22123         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
22124         and pass_simple_dse.
22125         (execute_function_todo): Handle TODO_update_address_taken,
22126         call execute_update_addresses_taken for TODO_rebuild_alias.
22127         (execute_todo): Adjust.
22128         (execute_one_pass): Init dump files early.
22129         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
22130         call-clobbered.
22131         (create_general_new_stmt): Clear vops.
22132         * tree-ssa-reassoc.c (get_rank): Adjust.
22133         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
22134         symbols for renaming.
22135         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
22136         (PARAM_AVG_ALIASED_VOPS): Likewise.
22137         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
22138         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
22139         * tree-ssa-operands.c: Simplify for new virtual operand representation.
22140         (operand_build_cmp, copy_virtual_operands,
22141         create_ssa_artificial_load_stmt, add_to_addressable_set,
22142         gimple_add_to_addresses_taken): Remove public functions.
22143         (unlink_stmt_vdef): New function.
22144
22145 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
22146
22147         * config.gcc (powerpc-*-linux*): Merge variants.
22148
22149 2009-04-02  Chao-ying Fu  <fu@mips.com>
22150             James Grosbach  <james.grosbach@microchip.com>
22151
22152         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
22153         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
22154         cop0_sp_offset.
22155         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
22156         keep_interrupts_masked_p, use_debug_exception_return_p.
22157         (mips_attribute_table): Add interrupt, use_shadow_register_set,
22158         keep_interrupts_masked, use_debug_exception_return.
22159         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
22160         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
22161         New functions.
22162         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
22163         (mips_print_operand): Process COP0 registers to print $0 .. $31
22164         correctly for GAS to process.
22165         (mips_interrupt_extra_call_saved_reg_p): New function.
22166         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
22167         extra registers.
22168         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
22169         (mips_compute_frame_info): Add supports for interrupt context that
22170         includes doubleword accumulators and COP0 registers.
22171         (mips_for_each_saved_acc): New function.
22172         (mips_for_each_saved_gpr_and_fpr): Change the function name from
22173         mips_for_each_saved_reg.
22174         (mips_save_reg): Save accumulators.
22175         (mips_kernel_reg_p): A new for_each_rtx callback.
22176         (mips_expand_prologue): Support interrupt handlers.
22177         (mips_restore_reg): Restore accumulators.
22178         (mips_expand_epilogue): Support interrupt handlers.
22179         (mips_can_use_return_insn): Return false for interrupt handlers.
22180         (mips_epilogue_uses): New function.
22181         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
22182         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
22183         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
22184         cop0_move): New instructions.
22185         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
22186         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
22187         defines.
22188         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
22189         New defines.
22190         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
22191         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
22192         interrupt handlers, we use K0 as the temporary register.
22193         (EPILOGUE_USES): Change to a function call.
22194         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
22195         handlers, we use K0 as the temporary register.
22196
22197         * doc/extend.texi (Function Attributes): Document interrupt,
22198         use_shadow_register_set, keep_interrupts_masked,
22199         use_debug_exception_return for MIPS attributes.
22200
22201 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
22202
22203         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
22204         Remove a number of t-files from tmake_file.
22205         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
22206         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
22207         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
22208         target_prototype, not TARGET_PROTOTYPE.
22209         (LINK_OS_GNU_SPEC): Define.
22210         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
22211         and darwin-ldoubdle.c.
22212
22213 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
22214
22215         PR driver/39293
22216         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
22217         (cpp_options): Ditto.
22218         (default_compilers): Ditto.
22219         (display_help): Ditto.
22220         (process_command): Ditto.
22221         (do_spec_1): Ditto.
22222         (set_input): Use lbasename instead of duplicate code.
22223         (save_temps_prefix): New static for -save-temps=obj.
22224         (save_temps_length): Ditto.
22225
22226         * doc/invoke.texi (-save-temps=obj): Document new variant to
22227         -save-temps switch.
22228
22229 2009-04-02  Jeff Law  <law@redhat.com>
22230
22231         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
22232         variable.
22233
22234 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
22235
22236         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
22237         * configure: Regenerated.
22238
22239 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
22240
22241         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
22242         share the argument list.
22243
22244 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
22245
22246         Merge
22247
22248         2009-02-12  Diego Novillo  <dnovillo@google.com>
22249
22250         * varpool.c (debug_varpool): New.
22251         * cgraph.h (debug_varpool): Declare.
22252
22253 2009-04-02  Jan Hubicka  <jh@suse.cz>
22254
22255         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
22256         pass.
22257
22258 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
22259
22260         * config/i386/i386.c (ix86_abi): Move initialization to ...
22261         (override_options): Here.
22262
22263 2009-04-02  Christian Bruel  <christian.bruel@st.com>
22264
22265         * config/sh/sh.c (sh_dwarf_register_span): New function.
22266         (TARGET_DWARF_REGISTER_SPAN): Define.
22267         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
22268
22269 2009-04-02  Ira Rosen  <irar@il.ibm.com>
22270
22271         PR tree-optimization/39595
22272         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
22273         interleaved loads group is not  greater than the SLP group size.
22274
22275 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
22276
22277         * builtins.c (is_builtin_name): New.
22278         (called_as_built_in): Use is_builtin_name.
22279         * tree.h (is_builtin_name): New.
22280         * varasm.c (incorporeal_function_p): Use is_builtin_name
22281
22282 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
22283
22284         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
22285
22286 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
22287
22288         PR c++/26693
22289         * c-decl.c (clone_underlying_type): Move this ...
22290         * c-common.c (set_underlying_type): ... here.
22291         Also, make sure the function properly sets TYPE_STUB_DECL() on
22292         the newly created typedef variant type.
22293         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
22294         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
22295         points.
22296
22297 2009-04-02  Richard Guenther  <rguenther@suse.de>
22298
22299         PR tree-optimization/37221
22300         * tree-flow.h (degenerate_phi_result): Declare.
22301         * tree-ssa-dom.c (degenerate_phi_result): Export.
22302         * tree-scalar-evolution.c (analyze_initial_condition): If
22303         the initial condition is defined by a degenerate PHI node
22304         use the degenerate value.
22305
22306 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
22307
22308         PR rtl-optimization/39588
22309         * combine.c (merge_outer_ops): Do not set the constant when this
22310         is not necessary.
22311         (simplify_shift_const_1): Do not modify it either in this case.
22312
22313 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
22314
22315         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
22316         tuning is deprecated if -mtune value is set to an Itanium1 variant.
22317
22318 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
22319
22320         PR c/29027
22321         * c-lex.c (interpret_float): Default (no suffix) is double.
22322
22323 2009-04-1  Xinliang David Li  <davidxl@google.com>
22324
22325         * config/i386/i386.c (legitimate_constant_p): Recognize
22326         all one vector constant.
22327
22328 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
22329
22330         * config/vax/vax.c: Add #includes to silence warnings.
22331         Change #include order to silence two warnings.
22332
22333 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
22334
22335         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
22336         (ASM_SPEC): Pass -k to the assembler for PIC code.
22337
22338 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
22339
22340         * config.gcc: Add vax-*-linux* to the switch.
22341         * config/vax/linux.h: New file. (TARGET_VERSION,
22342         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
22343
22344 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
22345
22346         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
22347         Use predicate macros instead of GET_CODE() == foo.
22348         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
22349         ashlsi3, rotrsi3, <unnamed>): Likewise.
22350
22351 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
22352
22353         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
22354         jbbccihi, jbbccisi): Remova trailing whitespace.
22355         * config/vax/constraints.md: Likewise.
22356         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
22357         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
22358         * config/vax/predicates.md: Likewise.
22359         * config/vax/vax.c (print_operand_address, vax_output_int_move,
22360         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
22361         * config/vax/vax.h: Likewise.
22362         * config/vax/vax.md (nonlocal_goto): Likewise.
22363
22364 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
22365
22366         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
22367         (indirectable_address_p, adjacent_operands_p): Add spaces around
22368         braces.
22369         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
22370
22371 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
22372
22373         * config/vax/vax.c (legitimate_constant_address_p,
22374         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
22375         index_term_p, reg_plus_index_p, legitimate_address_p,
22376         vax_mode_dependent_address_p): Update comments to match functions
22377         modified by the recent int->bool conversion.
22378
22379 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
22380
22381         * config/vax/builtins.md: Update copyright message.
22382         * config/vax/constraints.md: Likewise.
22383         * config/vax/netbsd-elf.h: Likewise.
22384         * config/vax/predicates.md: Likewise.
22385         * config/vax/vax-protos.h: Likewise.
22386         * config/vax/vax.c: Likewise.
22387         * config/vax/vax.h: Likewise.
22388         * config/vax/vax.md: Likewise.
22389         * config/vax/vax.opt: Likewise.
22390
22391 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
22392
22393         * config/vax/builtins.md (ffssi2, ffssi2_internal,
22394         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
22395         * config/vax/constraints.md (B, R): Likewise.
22396         * config/vax/predicates.md (external_memory_operand,
22397         nonimmediate_addsub_di_operand): Likewise.
22398         * config/vax/vax.c (vax_output_int_add): Likewise.
22399         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
22400         untyped_call): Likewise.
22401
22402 2009-04-01  Matt Thomas  <matt@3am-software.com>
22403
22404         * config/vax/predicates.md: New file.
22405         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
22406         external_const_operand, nonsymbolic_operand, external_memory_operand,
22407         indirect_memory_operand, indexed_memory_operand,
22408         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
22409         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
22410         predicate.
22411         * config/vax/constraints.md: New file.
22412         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
22413         New constraint.
22414         * config/vax/builtins.md: New file.
22415         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
22416         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
22417         jbbccisi): Define.
22418         * config/vax/vax.opt (mqmath): Add option.
22419         * config/vax/vax.md (isfx): Extend with DI.
22420         (VAXintQH, VAXintQHSD): Define.
22421         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
22422         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
22423         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
22424         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
22425         (movdi): Update constraints and use vax_output_int_move().
22426         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
22427         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
22428         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
22429         nonlocal_goto): New.
22430         (mov<mode>): Extend accepted operand types.
22431         (subdi3_old): Rename from subdi3, change update constraints and use
22432         a new implementation.
22433         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
22434         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
22435         MOVE_RATIO, CLEAR_RATIO): Define.
22436         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
22437         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
22438         (PRINT_OPERAND): Redefine using a function instead of inlined code.
22439         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
22440         (split_quadword_operands): Make static and really allow variable
22441         splitting.
22442         (print_operand_address): Update for PIC generation.
22443         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
22444         indexable_address_p, fixup_mathdi_operand,
22445         vax_expand_addsub_di_operands, adjacent_operands_p): New.
22446         (vax_float_literal, legitimate_constant_p,
22447         indirectable_constant_address_p, index_term_p,
22448         reg_plus_index_p): Return bool instead of int.
22449         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
22450         where needed.
22451         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
22452         generation.
22453         (vax_output_conditional_branch): Indent.
22454         (legitimate_constant_address_p, indirectable_constant_address_p,
22455         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
22456         vax_mode_dependent_address_p): Return bool instead of int, update for
22457         PIC generation.
22458         * config/vax/vax-protos.h (legitimate_constant_address_p,
22459         legitimate_constant_p, legitimate_address_p,
22460         vax_mode_dependent_address_p): Change declaration to bool.
22461         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
22462         vax_expand_addsub_di_operands, vax_output_int_subtract,
22463         vax_output_movmemsi): Declare.
22464         (split_quadword_operands, vax_float_literal): Delete declaration.
22465         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
22466         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
22467         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
22468         ASM_OUTPUT_DWARF_PCREL): Define.
22469         (ASM_SPEC): Change definition to allow PIC generation.
22470
22471 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
22472
22473         * doc/sourcebuild.texi: Update front-end requirements.
22474
22475 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
22476
22477         PR target/39226
22478         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
22479         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
22480         (booldi3_internal3): Use boolean_or_operator instead of
22481         boolean_operator.
22482
22483 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
22484
22485         PR c/39605
22486         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
22487         declarator whose size is not an integer constant expression but
22488         folds to an integer constant, then treat it as a constant
22489         subsequently.
22490
22491 2009-04-01  Richard Guenther  <rguenther@suse.de>
22492
22493         * fold-const.c (fold_plusminus_mult_expr): Do not fold
22494         i * 4 + 2 to (i * 2 + 1) * 2.
22495
22496 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
22497
22498         PR c/37772
22499         * c-parser.c (c_parser_asm_statement): Skip until close paren and
22500         return if c_parser_asm_string_literal returned NULL.
22501
22502 2009-04-01  Nick Clifton  <nickc@redhat.com>
22503
22504         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
22505         already defined.
22506         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
22507         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
22508         other typedefs to avoid conflicts with libgcc2.c.  Define labels
22509         to gain 16-bit bit-manipulation functions from libgcc2.c and then
22510         include it.
22511         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
22512         to gain 16-bit trapping arithmetic functions from libgcc2.c and
22513         then include it.
22514
22515 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
22516
22517         * varasm.c (default_function_rodata_section): Declare DOT as
22518         const char*.
22519
22520 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
22521             Andrey Galkin  <agalkin@hypercom.com>
22522
22523         PR/39492
22524         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22525         Make object_name unique for each process.
22526
22527 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
22528
22529         PR other/39591
22530         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
22531         addressable variables in the parallel that could go out of scope while
22532         running queued tasks.
22533
22534 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
22535
22536         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
22537         (CASE_VALUES_THRESHOLD): Redefine.
22538         * config/avr/avr.c (avr_override_options): Remove initialization of
22539         avr_case_values_threshold variable.
22540         (avr_case_values_threshold): Remove variable. Add new function.
22541         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
22542         * config/avr/avr.opt (mno-tablejump): Remove option.
22543         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
22544
22545 2009-04-01  DJ Delorie  <dj@redhat.com>
22546
22547         * varasm.c (default_function_rodata_section): Don't assume
22548         anything about where the first '.' in the section name is.
22549
22550 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
22551
22552         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
22553         rs6000_emit_stack_tie.
22554
22555 2009-03-31  Ian Lance Taylor  <iant@google.com>
22556
22557         * tree-eh.c (tree_remove_unreachable_handlers): Compare
22558         gimple_code with GIMPLE_RESX, not RESX.
22559
22560 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
22561
22562         * c-common.c (c_get_ident): New.
22563         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
22564
22565 2009-04-01  Ben Elliston  <bje@au.ibm.com>
22566
22567         * config/rs6000/sysv4.opt (msdata): Improve option description.
22568
22569 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
22570
22571         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
22572         (divdf3_internal_lat): Remove.
22573         (divxf3_internal_lat): Remove.
22574         (divxf3_internal_thr): Remove.
22575         (divxf): Use divxf3_internal.
22576         * config/ia64/div.md (divsf3_internal_lat): New.
22577         (divdf3_internal_lat): New.
22578         (divxf3_internal): New.
22579
22580 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
22581
22582         PR c/448
22583         * Makefile.in (USE_GCC_STDINT): Define.
22584         (stmp-int-hdrs): Install stdint.h if applicable.
22585         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
22586         if known.
22587         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
22588         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
22589         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
22590         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22591         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
22592         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
22593         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
22594         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22595         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
22596         (c_common_nodes_and_builtins): Initialize
22597         underlying_wchar_type_node.  Do not initialize
22598         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
22599         nodes for new types.
22600         (c_stddef_cpp_builtins): Define macros for new types.
22601         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
22602         Remove.
22603         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
22604         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
22605         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
22606         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
22607         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
22608         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
22609         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
22610         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
22611         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
22612         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
22613         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
22614         int16_type_node, int32_type_node, int64_type_node,
22615         uint8_type_node, uint16_type_node, c_uint32_type_node,
22616         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
22617         int_least32_type_node, int_least64_type_node,
22618         uint_least8_type_node, uint_least16_type_node,
22619         uint_least32_type_node, uint_least64_type_node,
22620         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
22621         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
22622         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
22623         uintptr_type_node): Define.
22624         * c-cppbuiltin.c (builtin_define_constants,
22625         builtin_define_type_minmax): New.
22626         (builtin_define_stdint_macros): Define more macros.
22627         (c_cpp_builtins): Define more limit macros.
22628         (type_suffix): New.
22629         (builtin_define_type_max): Define in terms of
22630         builtin_define_type_minmax.  Remove is_long parameter.  All
22631         callers changed.
22632         * config.gcc (use_gcc_stdint): Define.
22633         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
22634         Add newlib-stdint.h for generic targets.
22635         * config/glibc-stdint.h, config/newlib-stdint.h,
22636         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
22637         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
22638         * config/score/score.h (UINTPTR_TYPE): Define.
22639         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
22640         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
22641         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22642         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
22643         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
22644         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
22645         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22646         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
22647         * config/spu/spu.h (STDINT_LONG32): Define.
22648         * configure.ac (use_gcc_stdint): Substitute.
22649         * configure: Regenerate.
22650         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
22651         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
22652         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
22653         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
22654         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
22655         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
22656         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
22657         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
22658         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
22659         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
22660         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
22661         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
22662         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
22663         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
22664         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
22665         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
22666         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
22667         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
22668         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
22669         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
22670         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
22671         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
22672         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
22673         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22674         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
22675         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
22676         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
22677         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22678         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
22679
22680 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
22681
22682         * loop-iv.c (suitable_set_for_replacement): Renamed from
22683         simplify_using_assignment; changed to return bool and to accept new
22684         args DEST and SRC.  Return true iff we find a source/destination pair
22685         that can be used to make a replacement, and fill SRC and DEST if so.
22686         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
22687         changed.
22688         (simplify_using_initial_values): Deal with altered regs here and track
22689         more precisely the effect they have on the validity of our expression.
22690
22691         * loop-iv.c (simplify_using_condition): A condition of the form
22692         (EQ REG CONST) can be used to simply make a substitution.
22693         (simplify_using_initial_values): Keep track of conditions we have seen
22694         and keep using them to simplify new expressions, while applying the
22695         same substitutions to them as to the expression.
22696
22697         * simplify-rtx.c (simplify_relational_operation_1): Simplify
22698         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
22699         GEU/LTU reversed.
22700
22701         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
22702         changed.  Use this when trying to improve the upper bound.
22703         Generate the comparison by using simplify_gen_relational.
22704
22705         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
22706
22707         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
22708         functions.
22709         (simplify_using_assignment, simplify_using_initial_values): Call
22710         replace_in_expr to make replacements.  Call replace_single_def_regs
22711         once on the initial version of the expression.
22712
22713 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22714
22715         PR target/27237
22716         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
22717
22718 2009-03-31  Richard Guenther  <rguenther@suse.de>
22719
22720         PR middle-end/31029
22721         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
22722         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
22723
22724 2009-03-31  Richard Guenther  <rguenther@suse.de>
22725
22726         * tree.h (div_if_zero_remainder): Declare.
22727         * fold-const.c (div_if_zero_remainder): Export.
22728         * tree-ssa-forwprop.c
22729         (forward_propagate_addr_into_variable_array_index): Handle
22730         constant array index addition outside of the variable index.
22731
22732 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
22733
22734         PR target/39592
22735         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
22736         define_splits, floatunssi<mode>2): Require x87 conversions from
22737         DImode to be permitted.
22738
22739 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
22740
22741         PR preprocessor/15638
22742         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
22743
22744 2009-03-31  Richard Guenther  <rguenther@suse.de>
22745
22746         PR middle-end/23401
22747         PR middle-end/27810
22748         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
22749         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
22750         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
22751         a separate statement.
22752         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
22753         (lookup_tmp_var): Likewise.
22754         (is_gimple_formal_tmp_or_call_rhs): Remove.
22755         (is_gimple_reg_or_call_rhs): Rename to ...
22756         (is_gimple_reg_rhs_or_call): ... this.
22757         (is_gimple_mem_or_call_rhs): Rename to ...
22758         (is_gimple_mem_rhs_or_call): ... this.
22759         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
22760         DECL_GIMPLE_REG_P only if is_formal is true.
22761         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
22762         for non-proper post-modify expression gimplification.
22763         (gimplify_self_mod_expr): For post-modify expressions gimplify
22764         the lvalue to a minimal lvalue.
22765         (rhs_predicate_for): Remove formal temp case.
22766         (gimplify_modify_expr_rhs): Likewise.
22767         (gimplify_addr_expr): Use is_gimple_reg.
22768         (gimplify_expr): Remove formal temp cases.
22769         (gimple_regimplify_operands): Likewise.
22770         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
22771         and FILTER_EXPR like constants.
22772         * gimple.c (walk_gimple_op): Fix val_only initialization, use
22773         is_gimple_reg.
22774         (is_gimple_formal_tmp_rhs): Remove.
22775         (is_gimple_reg_rhs): Remove special casing.
22776         (is_gimple_mem_rhs): Fix.
22777         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
22778         (is_gimple_formal_tmp_var): Remove.
22779         (is_gimple_formal_tmp_reg): Likewise.
22780         (is_gimple_min_lval): Allow invariant component ref parts.
22781         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
22782         is_gimple_formal_tmp_reg): Remove declarations.
22783         * tree-cfg.c (verify_expr): Verify that variables with address
22784         taken do not have DECL_GIMPLE_REG_P set.
22785         * tree-mudflap.c (mf_build_check_statement_for): Use
22786         force_gimple_operand instead of gimplify_expr.
22787
22788 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
22789
22790         * modulo-sched.c (sms_schedule_by_order): Pass the actual
22791         schedulable rows to compute_split_row.
22792
22793 2009-03-31  Ben Elliston  <bje@au.ibm.com>
22794
22795         PR target/31635
22796         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
22797         OPT_mvrsave.
22798
22799 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
22800
22801         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
22802         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
22803         * configure: Regenerate.
22804         * config.in: Regenerate.
22805         * config/rs6000/rs6000.opt (mtls-markers): Add.
22806         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
22807         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
22808         (tls_ld_aix, tls_ld_sysv): Likewise.
22809         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
22810         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
22811
22812 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
22813
22814         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
22815
22816 2009-03-30  Jan Hubicka  <jh@suse.cz>
22817
22818         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
22819         out of RESX.
22820         (tree_remove_unreachable_handlers): Cleanup EH predecestor
22821         detection and label handling.
22822
22823 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
22824
22825         * ira-int.h (ira_allocno): Rename left_conflicts_num to
22826         left_conflicts_size.
22827         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
22828         ALLOCNO_LEFT_CONFLICTS_SIZE.
22829
22830         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
22831         remove_allocno_from_bucket_and_push,
22832         allocno_spill_priority_compare, push_allocnos_to_stack,
22833         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
22834         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
22835         (setup_allocno_left_conflicts_num): Ditto.  Rename to
22836         setup_allocno_left_conflicts_size.
22837         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
22838         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
22839         setup_allocno_left_conflicts_size instead of
22840         setup_allocno_left_conflicts_num.
22841
22842         * ira-build.c (ira_create_allocno): Use
22843         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
22844         ALLOCNO_LEFT_CONFLICTS_NUM.
22845
22846 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
22847
22848         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
22849         instead of DF_LR_OUT.
22850
22851         * ira-lives.c (process_bb_node_lives): Ditto.
22852
22853         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
22854         instead of DF_LR_{OUT,IN}.
22855
22856         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
22857
22858         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
22859
22860 2009-03-30  Jan Hubicka  <jh@suse.cz>
22861
22862         * except.c (label_to_region_map): Fix thinko.
22863
22864 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
22865
22866         PR middle-end/38237
22867         * tree.h (tree_find_value): New declaration.
22868         * tree.c (tree_find_value): New function.
22869         * varasm.c (assemble_external): Avoid duplicate entries on lists.
22870
22871 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
22872
22873         PR debug/39563
22874         * c-decl.c (struct c_binding): Add locus field.
22875         (bind): Add locus argument, set locus field from it.
22876         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
22877         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
22878         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
22879         implicitly_declare, undeclared_variable, lookup_label,
22880         declare_label, c_make_fname_decl, c_builtin_function,
22881         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
22882         bind callers.
22883
22884 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
22885
22886         PR target/38781
22887         * config/i386/i386.c (classify_argument): Check total size of
22888         structure.
22889
22890 2009-03-30  Martin Jambor  <mjambor@suse.cz>
22891
22892         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
22893         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
22894         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
22895         respectively.
22896
22897         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
22898         seen_variable_array_ref while also traversing a union.
22899
22900         * tree-inline.c (optimize_inline_calls): Do not call
22901         cgraph_node_remove_callees.
22902         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
22903         (pass_remove_cgraph_callee_edges): New variable.
22904         * passes.c (init_optimization_passes): Add
22905         pass_remove_cgraph_callee_edges after early inlining and before all
22906         late intraprocedural passes.
22907
22908         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
22909
22910 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
22911
22912         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
22913         Fix typos in names.
22914
22915 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
22916
22917         * combine.c (simplify_comparison): Use have_insn_for.
22918         * dojump.c (do_jump): Likewise.
22919
22920 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
22921
22922         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
22923         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
22924         sparc_compare_op0 like sparc_compare_emitted used to be handled.
22925         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
22926         instead of sparc_compare_emitted.
22927         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
22928         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
22929         instead of sparc_compare_emitted.
22930
22931 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
22932
22933         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
22934         enter/exit cfglayout mode.
22935         (pass_partition_block): Require it.
22936         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
22937         (combine_instructions): Track basic blocks instead of labels.
22938         (update_cfg_for_uncondjump): New.
22939         (try_combine): Use it.  Update jumps after rescanning.
22940         (pass_combine): Require PROP_cfglayout.
22941         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
22942
22943 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
22944
22945         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
22946         Provide/destroy PROP_cfglayout respectively.
22947         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
22948         * tree-pass.h (PROP_cfglayout): New.
22949
22950 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
22951
22952         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
22953         fold_convert_const_fixed_from_fixed,
22954         fold_convert_const_fixed_from_int,
22955         fold_convert_const_fixed_from_real, fold_negate_const): Do not
22956         set TREE_CONSTANT_OVERFLOW.
22957         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
22958         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
22959
22960 2009-03-30  Ira Rosen  <irar@il.ibm.com>
22961
22962         * tree-vect-loop-manip.c: New file.
22963         * tree-vectorizer.c: Update documentation and included files.
22964         (vect_loop_location): Make extern.
22965         (rename_use_op): Move to tree-vect-loop-manip.c
22966         (rename_variables_in_bb, rename_variables_in_loop,
22967         slpeel_update_phis_for_duplicate_loop,
22968         slpeel_update_phi_nodes_for_guard1,
22969         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
22970         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
22971         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
22972         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
22973         find_loop_location): Likewise.
22974         (new_stmt_vec_info): Move to tree-vect-stmts.c.
22975         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
22976         get_vectype_for_scalar_type, vect_is_simple_use,
22977         supportable_widening_operation, supportable_narrowing_operation):
22978         Likewise.
22979         (bb_in_loop_p): Move to tree-vect-loop.c.
22980         (new_loop_vec_info, destroy_loop_vec_info,
22981         reduction_code_for_scalar_code, report_vect_op,
22982         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
22983         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
22984         (vect_supportable_dr_alignment): Likewise.
22985         * tree-vectorizer.h (tree-data-ref.h): Include.
22986         (vect_loop_location): Declare.
22987         Reorganize function declarations according to the new file structure.
22988         * tree-vect-loop.c: New file.
22989         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
22990         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
22991         * tree-vect-data-refs.c: New file.
22992         * tree-vect-patterns.c (timevar.h): Don't include.
22993         * tree-vect-stmts.c: New file.
22994         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
22995         tree-vect-slp.c, tree-vect-loop.c.
22996         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
22997         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
22998         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
22999         (tree-vect-analyze.o): Remove.
23000         (tree-vect-transform.o): Likewise.
23001         (tree-vect-data-refs.o): Add rule.
23002         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
23003         tree-vect-slp.o): Likewise.
23004         (tree-vect-patterns.o): Remove redundant dependencies.
23005         (tree-vectorizer.o): Likewise.
23006         * tree-vect-slp.c: New file.
23007
23008 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23009
23010         * optc-gen.awk: Warn if an option flag has multiple different
23011         help strings.
23012
23013 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
23014
23015         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
23016         -floop-block): Document dependences on PPL, CLooG and Graphite.
23017
23018 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
23019
23020         PR rtl-optimization/323
23021         * c-common.c (c_fully_fold, convert_and_check,
23022         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
23023         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
23024         * c-common.def (EXCESS_PRECISION_EXPR): New.
23025         * c-cppbuiltin.c (builtin_define_float_constants): Define
23026         constants with enough digits for long double.
23027         * c-lex.c (interpret_float): Interpret constant with excess
23028         precision where appropriate.
23029         * c-opts.c (c_common_post_options): Set
23030         flag_excess_precision_cmdline.  Give an error for
23031         -fexcess-precision=standard for C++ for processors where the
23032         option is significant.
23033         * c-parser.c (c_parser_conditional_expression): Handle excess
23034         precision in condition.
23035         * c-typeck.c (convert_arguments): Handle arguments with excess
23036         precision.
23037         (build_unary_op): Move excess precision outside operation.
23038         (build_conditional_expr): Likewise.
23039         (build_compound_expr): Likewise.
23040         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
23041         (build_modify_expr): Handle excess precision in RHS.
23042         (convert_for_assignment): Handle excess precision in converted
23043         value.
23044         (digest_init, output_init_element, process_init_element): Handle
23045         excess precision in initializer.
23046         (c_finish_return): Handle excess precision in return value.
23047         (build_binary_op): Handle excess precision in operands and add
23048         excess precision as needed for operation.
23049         * common.opt (-fexcess-precision=): New option.
23050         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
23051         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
23052         For standard excess precision, output explicit conversion to and
23053         truncation from XFmode.
23054         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
23055         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
23056         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
23057         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
23058         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
23059         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
23060         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
23061         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
23062         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
23063         define_splits, sqrt<mode>2): Disable where appropriate for
23064         standard excess precision.
23065         * convert.c (convert_to_real): Do not shorten arithmetic to type
23066         for which excess precision would be used.
23067         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
23068         * doc/invoke.texi (-fexcess-precision=): Document option.
23069         (-mfpmath=): Correct index entry.
23070         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
23071         flag_excess_precision): New.
23072         * langhooks.c (lhd_post_options): Set
23073         flag_excess_precision_cmdline.
23074         * opts.c (common_handle_option): Handle -fexcess-precision=.
23075         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
23076         init_excess_precision): New.
23077         (lang_dependent_init_target): Call init_excess_precision.
23078         * tree.c (excess_precision_type): New.
23079         * tree.h (excess_precision_type): Declare.
23080
23081 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
23082
23083         PR c/35235
23084         * c-typeck.c (build_component_ref): Do not copy qualifiers from
23085         non-lvalue to component.
23086
23087 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
23088
23089         PR preprocessor/34695
23090         * Makefile.in (c-opts.o): Depend on c-tree.h.
23091         * c-common.c: Move down include of diagnostic.h.
23092         (done_lexing, c_cpp_error): New.
23093         * c-common.h (done_lexing): Declare.
23094         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
23095         (parse_in).
23096         * c-opts.c: Include c-tree.h.
23097         (c_common_init_options): Set preprocessor error callback.
23098         (c_common_handle_option): Do not set preprocessor
23099         inhibit_warnings, warnings_are_errors, warn_system_headers,
23100         pedantic_errors or inhibit_warnings flags.
23101         (c_common_post_options): Do not check cpp_errors (parse_in).
23102         (c_common_finish): Do not output dependencies if there were
23103         errors.  Do not check return value of cpp_finish.
23104         * c-ppoutput.c (pp_file_change): Set input_location.
23105         * c-tree.h (c_cpp_error): Declare.
23106         * diagnostic.c (diagnostic_set_info_translated): Also initialize
23107         override_column.
23108         (diagnostic_build_prefix): Check override_column.
23109         * diagnostic.h (diagnostic_info): Add override_column field.
23110         (diagnostic_override_column): Define.
23111
23112 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
23113
23114         * c-common.c (c_expand_expr, c_staticp): Remove.
23115         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
23116         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
23117         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
23118         * c-gimplify.c (gimplify_compound_literal_expr,
23119         optimize_compound_literals_in_ctor): Remove.
23120         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
23121         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
23122         * c-semantics.c (emit_local_var): Remove.
23123
23124         * langhooks-def.h (lhd_expand_expr): Remove.
23125         * langhooks.c (lhd_expand_expr): Remove.
23126         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
23127
23128         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
23129         handling from c-semantics.c; don't call into langhook.
23130         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
23131         * gimplify.c (gimplify_compound_literal_expr,
23132         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
23133         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
23134         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
23135         as was done in c-gimplify.c.
23136         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
23137         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
23138         Move from c-common.h.
23139         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
23140
23141         * tree.c (staticp): Do not call langhook.
23142         * langhooks.c (lhd_staticp): Delete.
23143         * langhooks-def.h (lhd_staticp): Delete prototype.
23144         (LANG_HOOKS_STATICP): Delete.
23145         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
23146
23147         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
23148         instead of DECL_STMTs.
23149
23150 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
23151
23152         PR c/456
23153         PR c/5675
23154         PR c/19976
23155         PR c/29116
23156         PR c/31871
23157         PR c/35198
23158         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
23159         void_type_node.
23160         (fold_call_expr): Return a NOP_EXPR from folding rather than the
23161         contained expression.
23162         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
23163         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
23164         conditional expressions for C.
23165         (decl_constant_value_for_optimization): Move from
23166         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
23167         whether optimizing and that the expression is a VAR_DECL not of
23168         array type instead of doing such checks in the caller.  Do not
23169         check pedantic.  Call gcc_unreachable for C++.
23170         * c-common.def (C_MAYBE_CONST_EXPR): New.
23171         * c-common.h (c_fully_fold, c_save_expr,
23172         decl_constant_value_for_optimization): New prototypes.
23173         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
23174         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
23175         EXPR_INT_CONST_OPERANDS): Define.
23176         * c-convert.c (convert): Strip nops from expression.
23177         * c-decl.c (groktypename): Take extra parameters expr and
23178         expr_const_operands.  Update call to grokdeclarator.
23179         (start_decl): Update call to grokdeclarator.  Add statement for
23180         expressions used in type of decl.
23181         (grokparm): Update call to grokdeclarator.
23182         (push_parm_decl): Update call to grokdeclarator.
23183         (build_compound_literal): Add parameter non_const and build a
23184         C_MAYBE_COSNT_EXPR if applicable.
23185         (grokdeclarator): Take extra parameters expr and
23186         expr_const_operands.  Track expressions used in declaration
23187         specifiers and declarators.  Fold array sizes and track whether
23188         they are constant expressions and whether they are integer
23189         constant expressions.
23190         (parser_xref_tag): Set expr and expr_const_operands fields in
23191         return value.
23192         (grokfield): Update call to grokdeclarator.
23193         (start_function): Update call to grokdeclarator.
23194         (build_null_declspecs): Set expr and expr_const_operands fields in
23195         return value.
23196         (declspecs_add_type): Handle expressions in typeof specifiers.
23197         * c-parser.c (c_parser_declspecs): Set expr and
23198         expr_const_operands fields for declaration specifiers.
23199         (c_parser_enum_specifier): Likewise.
23200         (c_parser_struct_or_union_specifier): Likewise.
23201         (c_parser_typeof_specifier): Likewise.  Update call to
23202         groktypename.  Fold expression as needed.  Return expressions with
23203         type instead of adding statements.
23204         (c_parser_attributes): Update calls to c_parser_expr_list.
23205         (c_parser_statement_after_labels): Fold expression before passing
23206         to objc_build_throw_stmt.
23207         (c_parser_condition): Fold expression.
23208         (c_parser_asm_operands): Fold expression.
23209         (c_parser_conditional_expression): Use c_save_expr.  Update call
23210         to build_conditional_expr.
23211         (c_parser_alignof_expression): Update call to groktypename.
23212         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
23213         original_code.  Fold expression argument of va_arg.  Create
23214         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
23215         argument to va_arg.  Update calls to groktypename.  Fold array
23216         index for offsetof.  Verify that first argument to
23217         __builtin_choose_expr has integer type.
23218         (c_parser_postfix_expression_after_paren_type): Update calls to
23219         groktypename and build_compound_literal.  Handle expressions with
23220         side effects in type name.
23221         (c_parser_postfix_expression_after_primary): Update call to
23222         c_parser_expr_list.  Set original_code for calls to
23223         __builtin_constant_p.
23224         (c_parser_expr_list): Take extra parameter fold_p.  Fold
23225         expressions if requested.
23226         (c_parser_objc_type_name): Update call to groktypename.
23227         (c_parser_objc_synchronized_statement): Fold expression.
23228         (c_parser_objc_receiver): Fold expression.
23229         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
23230         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
23231         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
23232         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
23233         (struct c_typespec): Add elements expr and expr_const_operands.
23234         (struct c_declspecs): Add elements expr and expr_const_operands.
23235         (groktypename, build_conditional_expr, build_compound_literal):
23236         Update prototypes.
23237         (in_late_binary_op): Declare.
23238         * c-typeck.c (note_integer_operands): New function.
23239         (in_late_binary_op): New variable.
23240         (decl_constant_value_for_broken_optimization): Move to c-common.c
23241         and rename to decl_constant_value_for_optimization.
23242         (default_function_array_conversion): Do not strip nops.
23243         (default_conversion): Do not call
23244         decl_constant_value_for_broken_optimization.
23245         (build_array_ref): Do not fold result.
23246         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
23247         result when operand is a VLA.
23248         (c_expr_sizeof_type): Update call to groktypename.  Handle
23249         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
23250         result when operand names a VLA type.
23251         (build_function_call): Update call to build_compound_literal.
23252         Only fold result for calls to __builtin_* functions.  Strip
23253         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
23254         the function designator.
23255         (convert_arguments): Fold arguments.  Update call to
23256         convert_for_assignment.
23257         (build_unary_op): Handle increment and decrement of
23258         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
23259         decrement earlier.  Fold operand of increment and decrement.
23260         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
23261         built for integer operand.  Wrap returns that are INTEGER_CSTs
23262         without being integer constant expressions or that have integer
23263         constant operands without being INTEGER_CSTs.
23264         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
23265         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
23266         result is an integer constant expression or can be used in
23267         unevaluated parts of one and avoid folding and wrap as
23268         appropriate.  Fold operands before possibly doing -Wsign-compare
23269         warnings.
23270         (build_compound_expr): Wrap result for C99 if operands can be used
23271         in integer constant expressions.
23272         (build_c_cast): Update call to digest_init.  Do not ignore
23273         overflow from casting floating-point constants to integers.  Wrap
23274         results that could be confused with integer constant expressions,
23275         null pointer constants or floating-point constants.
23276         (c_cast_expr): Update call to groktypename.  Handle expressions
23277         included in type name.
23278         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
23279         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
23280         Update calls to convert_for_assignment.
23281         (convert_for_assignment): Take new parameter
23282         null_pointer_constant.  Do not strip nops or call
23283         decl_constant_value_for_broken_optimization.  Set
23284         in_late_binary_op for conversions to boolean.
23285         (store_init_value): Update call to digest_init.
23286         (digest_init): Take new parameter null_pointer_constant.  Do not
23287         call decl_constant_value_for_broken_optimization.  pedwarn for
23288         initializers not constant expressions.  Update calls to
23289         convert_for_assignment.
23290         (constructor_nonconst): New.
23291         (struct constructor_stack): Add nonconst element.
23292         (really_start_incremental_init, push_init_level, pop_init_level):
23293         Handle constructor_nonconst and nonconst element.
23294         (set_init_index): Call constant_expression_warning for array
23295         designators.
23296         (output_init_element): Fold value.  Set constructor_nonconst as
23297         applicable.  pedwarn for initializers not constant expressions.
23298         Update call to digest_init.  Call constant_expression_warning
23299         where constant initializers are required.
23300         (process_init_element): Use c_save_expr.
23301         (c_finish_goto_ptr): Fold expression.
23302         (c_finish_return): Fold return value.  Update call to
23303         convert_for_assignment.
23304         (c_start_case): Fold switch expression.
23305         (c_process_expr_stmt): Fold expression.
23306         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
23307         ensure statement expression is not evaluated in constant expression.
23308         (build_binary_op): Track whether results are integer constant
23309         expressions or may occur in such, disable folding and wrap results
23310         as applicable.  Fold operands for -Wsign-compare warnings unless
23311         in_late_binary_op.
23312         (c_objc_common_truthvalue_conversion): Handle results folded to
23313         integer constants that are not integer constant expressions.
23314         * doc/extend.texi: Document when typeof operands are evaluated,
23315         that condition of __builtin_choose_expr is an integer constant
23316         expression, and more about use of __builtin_constant_p in
23317         initializers.
23318
23319 2009-03-29  Richard Guenther  <rguenther@suse.de>
23320
23321         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
23322         propagate addresses of array references.
23323
23324 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
23325
23326         * regmove.c (perhaps_ends_bb_p): Remove.
23327         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
23328         from INSN and check that the main loop stays within that basic block.
23329         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
23330         (regmove_forward_pass): Split out from regmove_optimize.  Use
23331         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
23332         (regmove_backward_pass): Split out from regmove_optimize.  Use
23333         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
23334         (regmove_optimize): Simplify.
23335
23336 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
23337
23338         PR target/39545
23339         * config/i386/i386.c (classify_argument): Ignore flexible array
23340         member in struct and warn ABI change.
23341
23342 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
23343
23344         * config/i386/i386-protos.h (ix86_agi_dependent): New.
23345
23346         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
23347         (ix86_adjust_cost): Updated.
23348
23349 2009-03-29  Jan Hubicka  <jh@suse.cz>
23350
23351         PR middle-end/28850
23352         * tree-pass.h (pass_cleanup_eh): New function.
23353         (remove_unreachable_regions): Break code handling RTL
23354         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
23355         that can not be reached by runtime.
23356         (can_be_reached_by_runtime): New function.
23357         (label_to_region_map): New function.
23358         (num_eh_regions): New function.
23359         (rtl_remove_unreachable_regions): New function.
23360         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
23361         (remove_eh_region): New function.
23362         * except.h: Include sbitmap and vecprim.
23363         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
23364         num_eh_regions): Declare.
23365         * passes.c (init_optimization_passes): Schedule cleanup_eh.
23366         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
23367         * tree-eh.c (tree_remove_unreachable_handlers): New function.
23368         (tree_empty_eh_handler_p): New function.
23369         (cleanup_empty_eh): New function.
23370         (cleanup_eh): New function.
23371         (pass_cleanup_eh): New function.
23372
23373 2009-03-29  Jan Hubicka  <jh@suse.cz>
23374
23375         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
23376         for removed regions.
23377
23378 2009-03-29  Jan Hubicka  <jh@suse.cz>
23379
23380         * except.c (dump_eh_tree): Dump all datastructures.
23381
23382 2009-03-29  Jan Hubicka  <jh@suse.cz>
23383
23384         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
23385         (duplicate_eh_regions_1): Likewise.
23386         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
23387         vector; call EH verification.
23388         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
23389         Be ready for region being removed.
23390
23391 2009-03-29  Jan Hubicka  <jh@suse.cz>
23392
23393         * bitmap.c (bitmap_last_set_bit): New function.
23394         * bitmap.h (bitmap_last_set_bit): Declare.
23395
23396 2009-03-29  David Ayers  <ayers@fsfe.org>
23397
23398         PR objc/27377
23399         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
23400         by calling objc_compare_types and surpress warnings about
23401         incompatible C pointers that are compatible ObjC pointers.
23402
23403 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
23404
23405         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
23406         call initialize_inline_failed.
23407         (initialize_inline_failed): Move it from here ...
23408         * cgraph.c (initialize_inline_failed): ... to here.
23409         (cgraph_create_edge): Call initialize_inline_failed rather than
23410         setting inline_failed directly.
23411
23412 2009-03-29  Ben Elliston  <bje@au.ibm.com>
23413
23414         PR target/32542
23415         * sysv4.opt (msdata): Improve comment.
23416         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
23417         * sysv4.h (SVR4_ASM_SPEC): Likewise.
23418
23419 2009-03-29  Ben Elliston  <bje@au.ibm.com>
23420
23421         PR target/30451
23422         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
23423         load and store attributes.
23424
23425 2009-03-29  Ben Elliston  <bje@au.ibm.com>
23426
23427         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
23428         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
23429         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
23430         * doc/extend.texi (X86 Built-in Functions): Add index entries for
23431         __builtin_infq and __builtin_huge_valq.
23432
23433 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
23434
23435         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
23436         atmega8m1 devices.
23437         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
23438         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
23439
23440 2009-03-28  Xinliang David Li  <davidxl@google.com>
23441
23442         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
23443         (do_dbg_cnt): New function.
23444
23445 2009-03-28  Jan Hubicka  <jh@suse.cz>
23446
23447         Merge from pretty-ipa:
23448
23449         2009-03-27  Jan Hubicka  <jh@suse.cz>
23450
23451         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
23452         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
23453         * passes.c (function_called_by_processed_nodes_p): New.
23454         * ipa-pure-const.c (check_call): Fix handling of operands.
23455         (analyze_function): Dump debug output for skipped bodies.
23456         (local_pure_const): Use function_called_by_processed_nodes_p.
23457         * dwarf2out.c (reference_to_unused): Use output.
23458         * passes.c (do_per_function_toporder): Likewise.
23459
23460         2008-11-12  Jan Hubicka  <jh@suse.cz>
23461
23462         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
23463         * ipa-pure-const.c (funct_state_d): Add can throw field; make
23464         state_set_in_source enum
23465         (check_decl): Ignore memory tags; do not set fake looping flags;
23466         dump diagnostics.
23467         (check_operand, check_tree, check_rhs_var, check_lhs_var,
23468         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
23469         (check_call, analyze_function): Rewrite.
23470         (check_stmt): New.
23471         (add_new_function): Update call of analyze_function.
23472         (generate_summary): Add call of analyze_function.
23473         (propagate): Propagate can_throw; handle state_set_in_source correctly.
23474         (local_pure_const): New function.
23475         (pass_local_pure_const): New pass.
23476         * ipa-inline.c (inline_transform): Set after_inlining.
23477         * tree-eh.c (stmt_can_throw_external): New.
23478         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
23479         work with aliasing built.
23480         * tree-flow.h (stmt_can_throw_external): New.
23481         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
23482         and local pure/const pass in early and late optimization queue.
23483
23484 2009-03-28  Martin Jambor  <mjambor@suse.cz>
23485
23486         * fold-const.c (get_pointer_modulus_and_residue): New parameter
23487         allow_func_align.
23488         (fold_binary): Allow function decl aligment consideration is the
23489         second argument is integer constant one.
23490         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
23491         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
23492         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
23493
23494 2009-03-28  Jan Hubicka  <jh@suse.cz>
23495
23496         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
23497         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
23498         * function.h (rtl_data): Add nothrow flag.
23499         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
23500         set DECL_NOTHROW for AVAILABLE functions.
23501
23502 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
23503
23504         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
23505         following vector keyword has expansion starting with pixel or bool
23506         keyword, expand vector to __vector and pixel or bool to __pixel or
23507         __bool.
23508
23509         PR c++/39554
23510         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
23511         warn_if_disallowed_function_p): Removed.
23512         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
23513         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
23514         warning_if_disallowed_function_p.
23515         * flags.h (warn_if_disallowed_function_p,
23516         warn_disallowed_functions): Removed.
23517         * common.opt (Wdisallowed-function-list=): Removed.
23518         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
23519
23520 2009-03-28  Richard Guenther  <rguenther@suse.de>
23521
23522         PR tree-optimization/38723
23523         * tree-ssa-pre.c (compute_avail): Add all default definitions to
23524         the entry block.
23525
23526 2009-03-28  Jan Hubicka  <jh@suse.cz>
23527
23528         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
23529         test introduced by my previous patch.
23530
23531 2009-03-28  Richard Guenther  <rguenther@suse.de>
23532
23533         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
23534         the PHIs value undefined.
23535
23536 2009-03-28  Jan Hubicka  <jh@suse.cz>
23537
23538         * tree-pass.h (pass_fixup_cfg): New pass.
23539         * ipa-inline.c (inline_transform): Set
23540         always_inline_functions_inlined/after_inlining.
23541         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
23542         (pass_fixup_cfg): New pass.
23543         * passes.c (init_optimization_passes): Add fixup_cfg.
23544
23545 2009-03-28  Richard Guenther  <rguenther@suse.de>
23546
23547         PR tree-optimization/38458
23548         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
23549         argument use the arguments copy-of value.
23550
23551 2009-03-28  Richard Guenther  <rguenther@suse.de>
23552
23553         PR tree-optimization/38180
23554         * tree-ssa-ccp.c (get_default_value): Simplify.
23555         (likely_value): Likewise.
23556         (surely_varying_stmt_p): Properly handle VOP case.
23557         (ccp_initialize): Likewise.
23558         (ccp_fold): Handle propagating through *&.
23559         (fold_const_aggregate_ref): Also handle decls.
23560
23561 2009-03-28  Jan Hubicka  <jh@suse.cz>
23562
23563         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
23564         * cgraph.h (cgraph_node): Likewise.
23565         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
23566         (cgraph_reset_node): Use process flag.
23567         (cgraph_mark_functions_to_output): Likewise.
23568         (cgraph_expand_function): Likewise.
23569         (cgraph_expand_all_functions): Likewise.
23570         (cgraph_output_in_order): Likewise.
23571         * dwarf2out.c (reference_to_unused): Likewise.
23572         * passes.c do_per_function_toporder): Likewise.
23573
23574 2009-03-28  Jan Hubicka  <jh@suse.cz>
23575
23576         Bring from lto-branch:
23577
23578         2008-09-03  Doug Kwan  <dougkwan@google.com>
23579
23580         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
23581         enums instead of reason strings.
23582         * cgraph.c (cgraph_create_edge): Same.
23583         (cgraph_inline_failed_string): New function.
23584         * cgraph.h (cgraph_inline_failed_t): New enum type.
23585         (cgraph_inline_failed_string): New prototype.
23586         (struct cgraph_edge): Change type of INLINED_FAILED from constant
23587         char pointer to cgraph_inline_failed_t.
23588         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
23589         (cgraph_default_inline_p): Ditto.
23590         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
23591         to cgraph_inline_failed_t pointer.
23592         * cif-code.def: New file.
23593         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
23594         reason string.
23595         (cgraph_check_inline_limits): Change type of REASON to pointer to
23596         cgraph_inline_failed_t.  Replace reason strings with enums.
23597         (cgraph_default_inline_p): Ditto.
23598         (cgraph_recursive_inlining_p): Ditto.
23599         (update_caller_keys): Change type of FAILED_REASON to
23600         cgraph_inline_failed_t.
23601         (cgraph_set_inline_failed): Change type of REASON to pointer to
23602         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
23603         convert enums to strings for text output.
23604         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
23605         to be of type cgraph_inline_failed_t.  Replace reason strings with
23606         enums.  Call cgraph_inline_failed_string to covert enums
23607         to strings for text output.
23608         (cgraph_decide_inlining): Replace reason strings with enums.
23609         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
23610         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
23611         for text output.
23612         * tree-inline.c (expand_call_inline): Change type of REASON
23613         to cgraph_inline_failed_t.  Replace reason strings with enums.
23614         Call cgraph_inline_failed_string for text output.
23615         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
23616         (cgraph.o): Ditto.
23617
23618 2009-03-28  Jan Hubicka  <jh@suse.cz>
23619
23620         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
23621         cgraph_clone_node): Remove master clone handling.
23622         (cgraph_is_master_clone, cgraph_master_clone): Remove.
23623         * cgraph.h (master_clone): Remove.
23624         (cgraph_is_master_clone, cgraph_master_clone): Remove.
23625         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
23626         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
23627
23628 2009-03-28  Jan Hubicka  <jh@suse.cz>
23629
23630         * cgraph.c (cgraph_function_body_availability): Functions declared
23631         inline are always safe to assume that it is not going to be replaced.
23632
23633 2009-03-28  Richard Guenther  <rguenther@suse.de>
23634
23635         PR tree-optimization/38513
23636         * tree-ssa-pre.c (eliminate): Remove redundant stores.
23637         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
23638         EXC_PTR_EXPR and FILTER_EXPR.
23639         (get_ref_from_reference_ops): Likewise.
23640
23641 2009-03-28  Richard Guenther  <rguenther@suse.de>
23642
23643         PR tree-optimization/38968
23644         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
23645         Use FLOOR_MOD_EXPR to compute misalignment.
23646
23647 2009-03-28  Richard Guenther  <rguenther@suse.de>
23648
23649         PR tree-optimization/37795
23650         * tree.h (combine_comparisons): Declare.
23651         * fold-const.c (combine_comparisons): Export.
23652         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
23653         comparisons.
23654         (ifcombine_iforif): Use combine_comparisons.
23655
23656 2009-03-28  Jan Hubicka  <jh@suse.cz>
23657
23658         * tree-eh.c (inlinable_call_p): New function.
23659         (make_eh_edges): Use it.
23660         (verify_eh_edges): Use it.
23661         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
23662         * except.c (reachable_next_level): Add inlinable_function argument
23663         (sjlj_find_directly_reachable_regions): Update.
23664         (add_reachable_handler): Do not set saw_any_handlers.
23665         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
23666         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
23667         Add new inlinable call parameter.
23668         (can_throw_internal, can_throw_external): Update.
23669         * except.h (can_throw_internal_1, can_throw_external_1,
23670         foreach_reachable_handler): Update declaration.
23671
23672 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
23673
23674         * config/arm/t-arm-coff, config/h8300/coff.h,
23675         config/i386/i386-aout.h, config/i386/i386-coff.h,
23676         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
23677         config/pdp11/2bsd.h, config/rs6000/aix41.h,
23678         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
23679         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
23680         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
23681         sys-types.h: Remove.
23682         * Makefile.in: Remove protoize and fixproto support and references
23683         in comments.
23684         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
23685         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
23686         Remove.
23687         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
23688         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
23689         unprotoize$(exeext).
23690         (rest.encap): Don't depend on $(STMP_FIXPROTO)
23691         (.PHONY): Don't depend on proto.
23692         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
23693         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
23694         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
23695         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
23696         build/gen-protos.o, build/scan.o, xsys-protos.h,
23697         build/fix-header$(build_exeext), build/fix-header.o,
23698         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
23699         stmp-install-fixproto): Remove.
23700         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
23701         SYSCALLS.c or fixproto files.
23702         (install-common): Don't install protoize.
23703         (install-headers-tar, install-headers-cpio, install-headers-cp):
23704         Don't depend on $(STMP_FIXPROTO).
23705         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
23706         install fixproto files or write out fixproto settings.
23707         (uninstall): Don't uninstall protoize.
23708         * config.gcc (use_fixproto): Remove.
23709         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
23710         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
23711         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
23712         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
23713         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
23714         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
23715         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
23716         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
23717         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
23718         * config/t-vxworks (STMP_FIXPROTO): Remove.
23719         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
23720         STMP_FIXPROTO): Remove.
23721         * config.in, configure: Regenerate.
23722         * crtstuff.c (gid_t, uid_t): Don't undefine.
23723         * doc/install.texi: Change m68k-coff to m68k-elf in example.
23724         (arm-*-coff, arm-*-aout: Remove target entries.
23725         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
23726         Remove mention of AIX 4.1.
23727         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
23728         * doc/invoke.texi (Running Protoize): Remove.
23729         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
23730         (Protoize Caveats): Remove.
23731         * tsystem.h: Update comments on headers assumed to exist.
23732
23733 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
23734
23735         * genautomata.c: Add a new year to the copyright.  Add a new
23736         reference.
23737         (struct insn_reserv_decl): Add comments for member bypass_list.
23738         (find_bypass): Remove.
23739         (insert_bypass): New.
23740         (process_decls): Use insert_bypass.
23741         (output_internal_insn_latency_func): Output all bypasses with the
23742         same input insn in one switch case.
23743
23744         * rtl.def (define_bypass): Describe bypass choice.
23745         * doc/md.texi (define_bypass): Ditto.
23746
23747 2009-03-27  Richard Guenther  <rguenther@suse.de>
23748
23749         * gimplify.c (mark_addressable): Export.
23750         * tree-flow.h (mark_addressable): Declare.
23751         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
23752         * tree-ssa.c (verify_phi_args): Verify that address taken
23753         variables have TREE_ADDRESSABLE set.
23754
23755 2009-03-27  Richard Guenther  <rguenther@suse.de>
23756
23757         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
23758         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
23759         Do not mark decls TREE_ADDRESSABLE.
23760         (build_fold_addr_expr): Adjust.
23761         (fold_addr_expr): Remove.
23762         (fold_unary): Use build_fold_addr_expr.
23763         (fold_comparison): Likewise.
23764         (split_address_to_core_and_offset): Likewise.
23765         * coverage.c (tree_coverage_counter_addr): Mark the array decl
23766         TREE_ADDRESSABLE.
23767         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
23768         (gimplify_modify_expr_to_memcpy): Mark source and destination
23769         addressable.
23770         * omp-low.c (create_omp_child_function): Mark the object decl
23771         TREE_ADDRESSABLE.
23772         (lower_rec_input_clauses): Mark the var we take the address of
23773         TREE_ADDRESSABLE.
23774         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
23775
23776 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23777
23778         PR middle-end/39315
23779         * cfgexpand.c (expand_one_stack_var_at): Change alignment
23780         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
23781
23782 2009-03-27  Richard Guenther  <rguenther@suse.de>
23783
23784         PR tree-optimization/39120
23785         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
23786         constraints.
23787         (handle_lhs_call): Process return constraints.  Add escape
23788         constraints if necessary.
23789         (handle_const_call): Fill out return constraints.  Make nested
23790         case more precise.  Avoid consttmp if possible.
23791         (handle_pure_call): Fill out return constraints.  Avoid
23792         callused if possible.
23793         (find_func_aliases): Simplify call handling.
23794
23795 2009-03-27  Richard Guenther  <rguenther@suse.de>
23796
23797         PR tree-optimization/39120
23798         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
23799         as a representative.
23800         (solve_graph): Do propagate CALLUSED.
23801         (handle_pure_call): Use a scalar constraint from CALLUSED for
23802         the return value.
23803         (find_what_p_points_to): CALLUSED shall not appear in poins-to
23804         solutions.
23805
23806 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23807
23808         PR c/39323
23809         * c-common.c (handle_aligned_attribute): Properly check alignment
23810         overflow.  Use (1U << i) instead of (1 << i).
23811
23812         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
23813
23814         * expr.h (get_mem_align_offset): Updated.
23815
23816         * tree.h (tree_decl_common): Change align to "unsigned int" and
23817         move it before pointer_alias_set.
23818
23819 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23820             Jakub Jelinek  <jakub@redhat.com>
23821
23822         PR target/38034
23823         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
23824         gr_register_operand with gr_reg_or_0_operand.
23825         (cmpxchg_rel_di): Likewise.
23826         (sync_lock_test_and_set<mode>): Likewise.
23827
23828 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23829
23830         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
23831         (true_regnum): Likewise.
23832
23833         * rtlanal.c (subreg_info): Moved to ...
23834         * rtl.h (subreg_info): Here.  New.
23835         (subreg_get_info): New.
23836
23837         * rtlanal.c (subreg_get_info): Make it extern.
23838
23839 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23840
23841         PR target/39472
23842         * config/i386/i386.c (ix86_abi): New.
23843         (override_options): Handle -mabi=.
23844         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
23845         (ix86_call_abi_override): Likewise.
23846         (init_cumulative_args): Likewise.
23847         (function_arg_advance): Likewise.
23848         (function_arg_64): Likewise.
23849         (function_arg): Likewise.
23850         (ix86_pass_by_reference): Likewise.
23851         (ix86_function_value_regno_p): Likewise.
23852         (ix86_build_builtin_va_list_abi): Likewise.
23853         (setup_incoming_varargs_64): Likewise.
23854         (is_va_list_char_pointer): Likewise.
23855         (ix86_init_machine_status): Likewise.
23856         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
23857         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
23858         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
23859         (ix86_function_abi): Make it static and return enum calling_abi.
23860         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
23861         with ix86_abi.
23862         (ix86_fn_abi_va_list): Updated.
23863
23864         * config/i386/i386.h (ix86_abi): New.
23865         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
23866         (CONDITIONAL_REGISTER_USAGE): Likewise.
23867         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
23868         (machine_function): Likewise.
23869
23870         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
23871         with ix86_abi.
23872         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
23873         (STACK_BOUNDARY): Likewise.
23874         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
23875
23876         * config/i386/i386.opt (mabi=): New.
23877
23878         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
23879         return enum calling_abi.
23880         (ix86_function_type_abi): Likewise.
23881         (ix86_function_abi): Removed.
23882
23883         * doc/invoke.texi: Document -mabi= option for x86.
23884
23885 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23886
23887         * builtins.c (real_dconstp): Delete.
23888         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
23889
23890 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
23891             Jakub Jelinek  <jakub@redhat.com>
23892
23893         PR debug/37959
23894         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
23895         (gen_subprogram_die): When a function is explicit, generate the
23896         DW_AT_explicit attribute.
23897         * langhooks.h (struct lang_hooks_for_decls): Add
23898         function_decl_explicit_p langhook.
23899         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
23900         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
23901
23902 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
23903
23904         * builtins.c (fold_builtin_memory_op): Optimize memmove
23905         into memcpy if we can prove source and destination don't overlap.
23906
23907         * tree-inline.c: Include gt-tree-inline.h.
23908         (clone_fn_id_num): New variable.
23909         (clone_function_name): New function.
23910         (tree_function_versioning): Use it.
23911         * Makefile.in (GTFILES): Add tree-inline.c.
23912
23913 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
23914
23915         * BASE-VER: Change to 4.5.0.
23916
23917 2009-03-27  Xinliang David Li  <davidxl@google.com>
23918
23919         PR tree-optimization/39557
23920         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
23921
23922 2009-03-27  Xinliang David Li  <davidxl@google.com>
23923
23924         PR tree-optimization/39548
23925         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
23926         candidate check.
23927
23928 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23929
23930         * c-common.c (pointer_int_sum): Use %wd on return from
23931         tree_low_cst.
23932
23933 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23934
23935         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
23936         on return from tree_low_cst.
23937
23938 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23939
23940         PR c++/36799
23941         * ginclude/stdarg.h (va_copy): Define also for
23942         __GXX_EXPERIMENTAL_CXX0X__.
23943
23944 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23945
23946         PR c++/35652
23947         * builtins.h (c_strlen): Do not warn here.
23948         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
23949         * c-common.c (pointer_int_sum): Take an explicit location.
23950         Warn about offsets out of bounds.
23951         * c-common.h (pointer_int_sum): Adjust declaration.
23952
23953 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23954
23955         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
23956         markup glitch.
23957
23958 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
23959
23960         PR c++/39554
23961         * opts.c (warn_if_disallowed_function_p): Don't assume
23962         get_callee_fndecl must return non-NULL.
23963
23964 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
23965
23966         PR rtl-optimization/39522
23967         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
23968         when reg_reloaded_valid is set.
23969
23970 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23971
23972         * config/spu/divv2df3.c: New file.
23973         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
23974         (DPBIT_FUNCS): Filter out _div_df.
23975
23976 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
23977
23978         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
23979         a jump insn, count that jump in the distance to the loop start.
23980
23981 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
23982
23983         PR target/39523
23984         * config/sh/sh.c (calc_live_regs): Fix condition for global
23985         registers except PIC_OFFSET_TABLE_REGNUM.
23986
23987 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
23988
23989         PR/39518
23990         * doc/invoke.texi (-mconsole): New.
23991         (-mcygwin): New.
23992         (-mno-cygwin): New.
23993         (-mdll): New.
23994         (-mnop-fun-dllimport): New.
23995         (-mthread): New.
23996         (-mwin32): New.
23997         (-mwindows): New.
23998         (sub section "i386 and x86-64 Windows Options"): New.
23999
24000 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
24001
24002         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
24003         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
24004
24005 2009-03-25  Richard Guenther  <rguenther@suse.de>
24006
24007         PR middle-end/39497
24008         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
24009         of -Wno-error.
24010
24011 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
24012
24013         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
24014         neither of haifa/selective schedulers are working.
24015
24016 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24017
24018         * doc/invoke.texi (Debugging Options): Fix description of
24019         -fno-merge-debug-strings.
24020
24021 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
24022
24023         * config/cris/libgcc.ver: New version-script.
24024         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
24025
24026         * configure.ac <GAS features, nop mnemonic>: Add pattern
24027         crisv32-*-* for "nop".
24028         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
24029         * configure: Regenerate.
24030
24031 2009-03-24  Ira Rosen  <irar@il.ibm.com>
24032
24033         PR tree-optimization/39529
24034         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
24035         mark_sym_for_renaming for the tag copied to the new vector
24036         pointer.
24037
24038 2009-03-24  Arthur Loiret  <aloiret@debian.org>
24039
24040         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
24041         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
24042         EXTRA_SPEC_FUNCTIONS.
24043         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
24044         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
24045         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
24046         -march and -mtune options.
24047
24048 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
24049
24050         * config/m68k/t-rtems: Add m5329 multilib.
24051
24052 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
24053             Jakub Jelinek  <jakub@redhat.com>
24054
24055         PR debug/39524
24056         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
24057         nodes.
24058
24059 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
24060
24061         PR c/39495
24062         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
24063         instead of c_parser_expression_conv, if original_code isn't one of the
24064         4 allowed comparison codes, fail.
24065
24066 2009-03-23  Richard Guenther  <rguenther@suse.de>
24067
24068         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
24069         * tree.h (struct tree_type): Likewise.
24070         * reload.h (struct insn_chain): Likewise.
24071         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
24072         * function.h (struct function): Likewise.
24073         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
24074
24075 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
24076
24077         PR tree-optimization/39516
24078         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
24079
24080 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
24081
24082         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
24083         should be set true if BITS_PER_WORD of target is bigger than 32
24084
24085 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
24086
24087         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
24088         Translate -B-options to -rpath-link.  Correct existing
24089         rpath-link and conditionalize on !nostdlib.
24090
24091 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24092
24093         * doc/extend.texi (Function Attributes, Variable Attributes):
24094         Fix typos.
24095         * doc/invoke.texi (Debugging Options, Optimize Options)
24096         (i386 and x86-64 Options, MCore Options): Likewise.
24097
24098 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
24099
24100         PR debug/37890
24101         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
24102         it for block local namespace aliases.
24103         (gen_decl_die): Pass context_die to gen_namespace_die.
24104
24105 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
24106
24107         PR c/39495
24108         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
24109         minimum or maximum value.
24110
24111 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
24112
24113         * reginfo.c (globalize_reg): Recompute derived reg sets.
24114
24115 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
24116
24117         PR target/39063
24118         * libgcc2.c (mprotect): Do not use signed arguments for
24119         VirtualProtect, use DWORD arguments.  Also fix the 'may
24120         be used uninitialized' warning for the np variable.
24121
24122 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
24123
24124         PR target/39496
24125         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
24126         functions using regparm calling conventions when not optimizing.
24127         (ix86_function_sseregparm): Similarly for sseregparm calling
24128         conventions.
24129
24130 2009-03-19  Li Feng  <nemokingdom@gmail.com>
24131
24132         PR middle-end/39500
24133         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
24134         dependence if the first conflict is after niter iterations.
24135
24136 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
24137
24138         PR middle-end/38609
24139         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
24140         functions with dynamic stack-pointer adjustments.
24141
24142 2009-03-19  Ben Elliston  <bje@au.ibm.com>
24143
24144         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
24145         option; change to -msdata=data.
24146
24147 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24148
24149         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
24150         and -fopenmp.
24151
24152 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
24153
24154         PR target/35180
24155         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
24156
24157 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
24158
24159         * doc/invoke.texi (Code Gen Options): Expand discussion of
24160         -fno-common.
24161
24162 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
24163
24164         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
24165         * matrix-reorg.c (struct matrix_info): Likewise.
24166         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
24167         * rtl.h (struct mem_attrs): Likewise.
24168         * df.h (struct df): Likewise.
24169         * tree-data-ref.h (struct data_dependence_relation): Likewise.
24170         * ira-int.h (struct ira_allocno): Likewise.
24171         * df-scan.c (struct df_collection_rec): Likewise.
24172         * ira.c (struct equivalence): Likewise.
24173         * function.c (struct temp_slot): Likewise.
24174         * cfgloop.h (struct loop): Likewise.
24175
24176         PR debug/39485
24177         * function.c (use_register_for_decl): When not optimizing, disregard
24178         register keyword for variables with types containing methods.
24179
24180 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
24181
24182         PR middle-end/39447
24183         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
24184         (is_simple_operand): Call contains_component_ref_p before calling data
24185         reference analysis that would fail on COMPONENT_REFs.
24186
24187         * tree-vrp.c (search_for_addr_array): Fix formatting.
24188
24189 2009-03-18  Richard Guenther  <rguenther@suse.de>
24190
24191         * tree-vect-transform.c (vect_loop_versioning): Fold the
24192         generated comparisons.
24193         * tree-vectorizer.c (set_prologue_iterations): Likewise.
24194         (slpeel_tree_peel_loop_to_edge): Likewise.
24195
24196 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24197
24198         PR middle-end/37805
24199         * opts.c (print_specific_help): In addition to `undocumented',
24200         accept `separate' and `joined' flags if passed alone.  Describe
24201         output by the first matched one of those.
24202         (common_handle_option): Skip over empty strings.
24203         * gcc.c (display_help): Fix help string for `--help='.
24204         * doc/invoke.texi (Option Summary, Overall Options): With
24205         `--help=', classes and qualifiers can both be repeated, but
24206         only the latter can be negated.  One should not pass only
24207         negated qualifiers.  Fix markup and examples.
24208
24209         Revert
24210         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
24211         PR middle-end/37805
24212         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
24213         and -fhelp=separate.
24214
24215 2009-03-17  Jing Yu  <jingyu@google.com>
24216
24217         PR middle-end/39378
24218         * function.h (struct rtl_data): Move is_thunk from here...
24219         (struct function): ...to here.
24220         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
24221         * varasm.c (assemble_start_function): Change is_thunk from crtl to
24222         cfun.
24223         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
24224         cfun.
24225         (alpha_does_function_need_gp, alpha_start_function): Likewise.
24226         (alpha_output_function_end_prologue): Likewise.
24227         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
24228         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
24229         (rs6000_output_function_epilogue): Likewise.
24230         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
24231
24232 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
24233
24234         PR target/39482
24235         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
24236         from different units in a single alternative.
24237         (*truncdfsf_i387): Ditto.
24238         (*truncxfsf2_mixed): Ditto.
24239         (*truncxfdf2_mixed): Ditto.
24240
24241 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
24242
24243         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
24244         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
24245
24246         PR debug/39474
24247         * tree-ssa-live.c (remove_unused_locals): Don't remove local
24248         unused non-artificial variables when not optimizing.
24249
24250         PR debug/39471
24251         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
24252         DW_TAG_imported_module even if decl is IMPORTED_DECL with
24253         NAMESPACE_DECL in its DECL_INITIAL.
24254
24255         PR middle-end/39443
24256         * optabs.c (set_user_assembler_libfunc): New function.
24257         * expr.h (set_user_assembler_libfunc): New prototype.
24258         * c-common.c: Include libfuncs.h.
24259         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
24260         for memcmp, memset, memcpy, memmove and abort.
24261         * Makefile.in (c-common.o): Depend on libfuncs.h.
24262
24263         PR debug/39412
24264         * dwarf2out.c (gen_inlined_enumeration_type_die,
24265         gen_inlined_structure_type_die, gen_inlined_union_type_die,
24266         gen_tagged_type_instantiation_die): Removed.
24267         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
24268         do nothing.
24269
24270 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
24271
24272         PR testsuite/38526
24273         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
24274         its use.
24275         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
24276         (check-parallel-%): Ditto.
24277         (check-consistency): Ditto.
24278
24279 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
24280
24281         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
24282         local variable rhs by NULL_TREE.
24283
24284 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
24285
24286         PR target/39477
24287         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
24288
24289 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
24290
24291         PR target/39476
24292         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
24293
24294 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
24295
24296         PR target/39473
24297         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
24298         for ms->sysv ABI calls only in 64bit mode.
24299
24300         * config/i386/i386.md (untyped_call): Support 32bit.
24301
24302 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24303
24304         * doc/extend.texi: Replace x86_65 with x86_64.
24305
24306 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
24307
24308         PR tree-optimization/39455
24309         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
24310         mismatches for POINTER_TYPE_P (type).
24311         (number_of_iterations_le): Likewise.
24312
24313 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
24314
24315         * config/picochip/picochip.c: Removed profiling support.
24316         * config/picochip/picochip.md: Removed profiling instruction.
24317         * config/picochip/picochip.h: Removed profiling builtin.
24318
24319 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
24320
24321         * doc/install.texi (--with-host-libstdcxx): Document.
24322
24323 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
24324
24325         PR target/34299
24326         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
24327         generate a warning if the function name does not begin with
24328         "__vector" and the function has either the 'signal' or 'interrupt'
24329         attribute, from here to ...
24330         (avr_declare_function_name): ...here. New function.
24331         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
24332         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
24333
24334 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
24335
24336         PR bootstrap/39454
24337         * cse.c (fold_rtx): Don't modify original const_arg1 when
24338         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
24339         separate variable instead.
24340         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
24341         from out of range shift counts.
24342         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
24343
24344 2009-03-13  Catherine Moore  <clm@codesourcery.com>
24345
24346         * config/i386/x-mingw32 (host-mingw32.o): Replace
24347         diagnostic.h with $(DIAGNOSTIC_H).
24348
24349 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
24350
24351         PR target/39431
24352         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
24353         predicate.
24354         * config/i386/sync.md (sync_compare_and_swap<mode>,
24355         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
24356         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
24357         into a register.
24358         (sync_double_compare_and_swapdi_pic,
24359         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
24360         cmpxchg8b_pic_memory_operand instead of just memory_operand.
24361
24362 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
24363
24364         PR target/39445
24365         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
24366
24367 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
24368
24369         PR target/39327
24370         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
24371         (avx_addsubv4df3): Likewise.
24372         (*avx_addsubv4sf3): Likewise.
24373         (sse3_addsubv4sf3): Likewise.
24374
24375 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
24376
24377         PR target/38824
24378         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
24379
24380 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
24381
24382         PR debug/39432
24383         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
24384         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
24385         registers for allocnos created from user-defined variables.
24386
24387 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24388
24389         PR target/39181
24390         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
24391         of non-integer mode as well.
24392
24393 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
24394
24395         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
24396         for functions for which the parameter types are unknown.
24397
24398 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
24399
24400         PR target/39137
24401         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
24402         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
24403         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
24404         * config/i386/i386.c (ix86_local_alignment): For
24405         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
24406         long long variables on the stack to avoid dynamic realignment.
24407         Allow the first argument to be a decl rather than type.
24408         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
24409
24410 2009-03-11  Nick Clifton  <nickc@redhat.com>
24411
24412         PR target/5362
24413         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
24414         options.
24415         Add description to mno-lsim option.
24416         * config/mcore/mcore.h: Remove comment about deprecated m4align
24417         option.
24418         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
24419         * doc/invoke.texi: Add description of mno-lsim and
24420         mstack-increment options.
24421
24422         * config/fr30/fr30.opt: Document the -mno-lsim option.
24423         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
24424         and -mno-lsim options.
24425
24426 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24427
24428         * fold-const.c (fold_comparison): Only call fold_inf_compare
24429         if the mode supports infinities.
24430
24431 2009-03-11  Jason Merrill  <jason@redhat.com>
24432
24433         PR debug/39086
24434         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
24435         end already did.  Notice GIMPLE_CALL modifications of the result.
24436         Don't copy debug information from an ignored decl or a decl from
24437         another function.
24438
24439 2009-03-10  Richard Guenther  <rguenther@suse.de>
24440             Nathan Froyd  <froydnj@codesourcery.com>
24441
24442         PR middle-end/37850
24443         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
24444         (__divMODE3): Likewise.
24445
24446 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
24447
24448         PR tree-optimization/39394
24449         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
24450         DECL_SIZE_UNIT of variable length FIELD_DECLs.
24451
24452 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24453
24454         * recog.c (verfiy_changes): Disallow renaming of hard regs in
24455         inline asms for register asm ("") declarations.
24456
24457 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
24458
24459         * fold-const.c (fold_unary): Fix comment.
24460
24461 2009-03-07  Jan Hubicka  <jh@suse.cz>
24462
24463         PR target/39361
24464         * tree-inline.c (setup_one_parameter): Do replacement of const
24465         argument by constant in SSA form.
24466
24467 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24468
24469         PR middle-end/38028
24470         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
24471         determine alignment passed to assign_stack_local.
24472         (assign_parms_unsplit_complex): Likewise.
24473         * except.c (sjlj_build_landing_pads): Likewise.
24474
24475 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
24476
24477         PR middle-end/39360
24478         * tree-flow.h (add_referenced_var): Return bool instead of void.
24479         * tree-dfa.c (add_referenced_var): Return result of
24480         referenced_var_check_and_insert call.
24481         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
24482         of referenced_var_check_and_insert.
24483
24484         PR debug/39372
24485         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
24486         (gen_variable_die): Emit DW_AT_location on abstract static variable's
24487         DIE, don't emit it if abstract origin already has it.
24488         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
24489         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
24490
24491 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24492
24493         * genpreds.c (needs_variable): Fix parentheses at variable name
24494         detection.
24495         (write_tm_constrs_h): Indent generated code.
24496
24497 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24498
24499         * doc/extend.texi (Function Attributes): Add documentation
24500         for isr attributes.
24501
24502 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
24503
24504         PR debug/39387
24505         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
24506         take locus from its DECL_SOURCE_LOCATION instead of input_location.
24507
24508 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
24509
24510         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
24511         the loop as bad.
24512
24513 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
24514
24515         PR debug/39379
24516         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
24517         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
24518
24519 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
24520
24521         * config/i386/i386.md (R8_REG, R9_REG): New constants.
24522         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
24523         constants instead of magic numbers.
24524         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
24525         (QI_REG_P): Ditto.
24526         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
24527         (x86_64_ms_abi_int_parameter_registers): Ditto.
24528         (x86_64_int_return_registers): Ditto.
24529         (ix86_maybe_switch_abi): Ditto.
24530         (ix86_expand_call): Ditto for clobbered_registers array.
24531         (ix86_hard_regno_mode_ok): Ditto.
24532         (x86_extended_QIreg_mentioned_p): Ditto.
24533
24534 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
24535
24536         PR tree-optimization/39349
24537         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
24538
24539         * combine.c (gen_lowpart_for_combine): Use omode when generating
24540         clobber.
24541
24542 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
24543
24544         PR rtl-optimization/39235
24545         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
24546
24547 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
24548
24549         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
24550
24551 2009-03-04  Richard Guenther  <rguenther@suse.de>
24552
24553         PR tree-optimization/39362
24554         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
24555         that occur in abnormal PHIs should be varying.
24556
24557 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
24558
24559         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
24560         Extend comments.
24561         (simple_iv):  Take loop as an argument instead of statement.
24562         * tree-scalar-evolution.h (simple_iv): Declaration changed.
24563         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
24564         to simple_iv.
24565         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
24566         Ditto.
24567         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
24568         * matrix-reorg.c (analyze_transpose): Ditto.
24569         * tree-data-ref.c (dr_analyze_innermost): Ditto.
24570         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
24571         * tree-predcom.c (ref_at_iteration): Ditto.
24572         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
24573
24574 2009-03-04  Richard Guenther  <rguenther@suse.de>
24575
24576         PR tree-optimization/39358
24577         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
24578         escaped_id and callused_id.
24579         (solve_graph): Likewise.
24580
24581 2009-03-04  Richard Guenther  <rguenther@suse.de>
24582
24583         PR tree-optimization/39339
24584         * tree-sra.c (try_instantiate_multiple_fields): Make it
24585         no longer ICE on the above.
24586
24587 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
24588
24589         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
24590         that fits within Pmode.
24591
24592 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
24593
24594         PR middle-end/10109
24595         * tm.texi (LIBCALL_VALUE): Update description.
24596
24597 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
24598
24599         PR middle-end/34443
24600         * doc/extend.texi (section): Update description.
24601
24602 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
24603
24604         PR middle-end/39345
24605         * tree-inline.c (remapped_type): New.
24606         (can_be_nonlocal): Call remapped_type instead of remap_type.
24607
24608 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
24609
24610         PR fortran/39354
24611         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
24612         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
24613
24614 2009-03-03  Richard Guenther  <rguenther@suse.de>
24615
24616         PR middle-end/39272
24617         * tree.c (tree_nonartificial_location): New function.
24618         * tree.h (tree_nonartificial_location): Declare.
24619         * builtins.c (expand_builtin_memory_chk): Provide location
24620         of the call location for artificial function pieces.
24621         (maybe_emit_chk_warning): Likewise.
24622         (maybe_emit_sprintf_chk_warning): Likewise.
24623         (maybe_emit_free_warning): Likewise.
24624         * expr.c (expand_expr_real_1): Likewise.
24625
24626 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
24627
24628         PR tree-optimization/39343
24629         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
24630         COMPONENT_REF t has ARRAY_TYPE.
24631
24632 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
24633
24634         PR middle-end/39335
24635         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
24636         when the type precision of the induction variable should be
24637         larger than the type precision of nit.
24638         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
24639         * graphite.c (graphite_loop_normal_form): Same.
24640         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
24641
24642 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
24643
24644         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
24645         (*call_1_rex64_ms_sysv): Use named constants instead of magic
24646         numbers to describe clobbered registers.
24647         (*call_value_0_rex64_ms_sysv): Ditto.
24648         * config/i386/mmx.md (mmx_emms): Ditto.
24649         (mmx_femms): Ditto.
24650
24651 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
24652
24653         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
24654         of ABI_64.
24655
24656 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24657
24658         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
24659         (spu_section_type_flags): New function.
24660
24661 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
24662
24663         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
24664         reg_class_contents of FLOAT_REGS into a temporary.
24665
24666 2009-03-02  Richard Guenther  <rguenther@suse.de>
24667             Ira Rosen  <irar@il.ibm.com>
24668
24669         PR tree-optimization/39318
24670         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
24671         information to the vectorized statement.
24672
24673 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
24674
24675         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
24676         variable.  Use defined names instead of magic constants for REX SSE
24677         registers.
24678
24679 2009-03-01  Richard Guenther  <rguenther@suse.de>
24680
24681         PR tree-optimization/39331
24682         * omp-low.c (lower_send_shared_vars): Do not receive new
24683         values for the reference of DECL_BY_REFERENCE parms or results.
24684
24685 2009-03-01  Jan Hubicka  <jh@suse.cz>
24686
24687         PR debug/39267
24688         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
24689         BLOCK_NONLOCALIZED_VAR): New macros.
24690         (tree_block): Add nonlocalized_vars.
24691         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
24692         gen_decl_die): Add origin argument.  Allow generation of die with
24693         origin at hand only.
24694         (gen_member_die, gen_type_die_with_usage, force_decl_die,
24695         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
24696         of gen_*.
24697         (gen_block_die): Fix checking for unused blocks.
24698         (process_scope_var): Break out from .... ; work with origins only.
24699         (decls_for_scope) ... here; process nonlocalized list.
24700         (dwarf2out_ignore_block): Look for nonlocalized vars.
24701         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
24702         vars.
24703         (dump_scope_block): Dump them.
24704         * tree-inline.c (remap_decls): Handle nonlocalized vars.
24705         (remap_block): Likewise.
24706         (can_be_nonlocal): New predicate.
24707         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
24708
24709 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24710
24711         * configure: Regenerate.
24712
24713 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24714
24715         * optc-gen.awk: No need to duplicate option flags twice.
24716         Reuse help texts for duplicate options which do not have any.
24717
24718         * gcc.c (display_help): Document --version.
24719
24720         * gcc.c (main): If print_help_list and verbose_flag, ensure
24721         driver output comes before subprocess output.
24722
24723         * optc-gen.awk: Assign all remaining fields to help string,
24724         space-separated, for multi-line help in *.opt.
24725
24726         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
24727         -Wno-pedantic-ms-format is for MinGW targets only.
24728
24729         * doc/options.texi (Option file format): Fix bad indentation,
24730         restoring dropped sentence.
24731
24732 2009-02-28  Jan Hubicka  <jh@suse.cz>
24733
24734         * tree-inline.c (tree_function_versioning): Output debug info.
24735
24736 2009-02-28  Jan Hubicka  <jh@suse.cz>
24737
24738         PR debug/39267
24739         * tree-inline.c (setup_one_parameter): Do not copy propagate
24740         arguments when not optimizing.
24741
24742 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
24743
24744         PR target/39327
24745         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
24746         (avx_addsubv4df3): Likewise.
24747         (*avx_addsubv4sf3): Likewise.
24748         (sse3_addsubv4sf3): Likewise.
24749         (*avx_addsubv2df3): Likewise.
24750         (sse3_addsubv2df3): Likewise.
24751         (avx_unpckhps256): Correct item selectors.
24752         (avx_unpcklps256): Likewise.
24753         (avx_unpckhpd256): Likewise.
24754         (avx_unpcklpd256): Likewise.
24755
24756 2009-02-28  Jan Hubicka  <jh@suse.cz>
24757
24758         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
24759         static vars.
24760         (copy_arguments_for_versioning): If var is declared don't declare it.
24761         (tree_function_versioning): First setup substitutions and then copy
24762         args.
24763
24764 2009-02-27  Jan Hubicka  <jh@suse.cz>
24765
24766         PR debug/39267
24767         * cgraph.h (varpool_output_debug_info): Remove.
24768         * cgraphunit.c (varpool_output_debug_info): Remove.
24769         * dwarf2out.c (deferred_locations_struct): New struct
24770         (deferred_locations): New type.
24771         (deferred_locations_list): New static var.
24772         (deffer_location): New function.
24773         (gen_variable_die): Use it.
24774         (decls_for_scope): Output info on local static vars.
24775         (dwarf2out_finish): Process deferred locations.
24776         * varpool.c (varpool_output_debug_info): Remove.
24777
24778 2009-02-27  Jan Hubicka  <jh@suse.cz>
24779
24780         PR debug/39267
24781         * tree.h (TREE_PROTECTED): Fix comment.
24782         (BLOCK_HANDLER_BLOCK): Remove.
24783         (struct tree_block): Remove handler_block add body_block.
24784         (inlined_function_outer_scope_p): New.
24785         (is_body_block): Remove.
24786         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
24787         * dwarf2out.c (is_inlined_entry_point): Remove.
24788         (add_high_low_attributes): Use inlined_function_outer_scope_p.
24789         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
24790         code.
24791         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
24792         * gimplify.c (gimplify_expr): Gimplify body blocks.
24793         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
24794         block with multiple subblocks.
24795         (dump_scope_block): Prettier output; dump more flags and info.
24796         (dump_scope_blocks): New.
24797         (remove_unused_locals): Use dump_scope_blocks.
24798         * tree-flow.h (dump_scope_blocks): Declare.
24799         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
24800         * stmt.c (is_body_block): Remove.
24801         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
24802         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
24803
24804 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
24805
24806         PR middle-end/39308
24807         * graphite.c (graphite_loop_normal_form): Do not call
24808         number_of_iterations_exit from a gcc_assert.
24809
24810 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24811
24812         * config/s390/s390.c (s390_swap_cmp): Look for conditional
24813         jumps if COND is NULL.
24814         (find_cond_jump): New function.
24815         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
24816         * config/s390/s390.md: Remove z10_cobra attribute value.
24817
24818 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
24819
24820         * config/alpha/alpha.h (alpha_expand_mov): Return false if
24821         force_const_mem returns NULL_RTX.
24822
24823 2009-02-26  Jan Hubicka  <jh@suse.cz>
24824
24825         PR debug/39267
24826         * cgraph.h (varpool_output_debug_info): Remove.
24827         * cgraphunit.c (varpool_output_debug_info): Remove.
24828         * dwarf2out.c (deferred_locations_struct): New struct
24829         (deferred_locations): New type.
24830         (deferred_locations_list): New static var.
24831         (deffer_location): New function.
24832         (gen_variable_die): Use it.
24833         (decls_for_scope): Output info on local static vars.
24834         (dwarf2out_finish): Process deferred locations.
24835         * varpool.c (varpool_output_debug_info): Remove.
24836
24837 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
24838
24839         PR rtl-optimization/39241
24840         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
24841         to subreg_offset_representable_p.
24842
24843 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
24844
24845         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
24846         execute function prototype.  Get f and nregs from max_reg_num
24847         and get_insns.  Remove the first backward pass as it's dead,
24848         guard the forward pass by flag_expensive_optimizations.
24849         (rest_of_handle_regmove): Delete.
24850         (pass_regmove): Replace it with regmove_optimize.
24851
24852 2009-02-25  Martin Jambor  <mjambor@suse.cz>
24853
24854         PR tree-optimization/39259
24855         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
24856         calls_alloca function flags.
24857         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
24858         calls are detected.
24859
24860 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
24861
24862         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
24863         flags_set_1_rtx, flags_set_1_set): Delete.
24864         (regmove_optimize): Do not call mark_flags_life_zones.
24865
24866 2009-02-24  Julian Brown  <julian@codesourcery.com>
24867
24868         PR target/35965
24869         * config/arm/arm.c (require_pic_register): Only set
24870         cfun->machine->pic_reg once per function.
24871
24872 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
24873
24874         * doc/invoke.texi (Link Options): Document an easier way to pass
24875         options that take arguments to the GNU linker using -Xlinker and -Wl.
24876
24877 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
24878
24879         PR target/33785
24880         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
24881
24882 2009-02-24  Richard Guenther  <rguenther@suse.de>
24883
24884         PR debug/39285
24885         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
24886
24887 2009-02-24  Richard Guenther  <rguenther@suse.de>
24888             Zdenek Dvorak  <ook@ucw.cz>
24889
24890         PR tree-optimization/39233
24891         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
24892         from converting them to a generic type.
24893
24894 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
24895
24896         PR tree-optimization/39260
24897         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
24898         contains a condition with a real type.
24899         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
24900
24901 2009-02-23  Jason Merrill  <jason@redhat.com>
24902
24903         PR c++/38880
24904         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
24905         narrowing_initializer_constant_valid_p.
24906         (narrowing_initializer_constant_valid_p): Don't return
24907         null_pointer_node for adding a pointer to itself.
24908
24909 2009-02-23  Jan Hubicka  <jh@suse.cz>
24910
24911         PR c/12245
24912         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
24913         resizing.
24914
24915 2009-02-23  Jan Hubicka  <jh@suse.cz>
24916
24917         PR tree-optimization/37709
24918         * tree.c (block_ultimate_origin): Move here from dwarf2out.
24919         * tree.h (block_ultimate_origin): Declare.
24920         * dwarf2out.c (block_ultimate_origin): Move to tree.c
24921         * tree-ssa-live.c (remove_unused_scope_block_p):
24922         Eliminate blocks containig no instructions nor live variables nor
24923         nested blocks.
24924         (dump_scope_block): New function.
24925         (remove_unused_locals): Enable removal of dead blocks by default;
24926         enable dumping at TDF_DETAILS.
24927
24928 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
24929
24930         * config/i386/i386.c (classify_argument): Don't allow COImode
24931         and OImode.
24932         (function_arg_advance_32): Don't allow OImode.
24933         (function_arg_32): Likewise.
24934         (function_value_32): Likewise.
24935         (return_in_memory_32): Likewise.
24936         (function_arg_64): Remove OImode comment.
24937
24938 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
24939
24940         PR target/39261
24941         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
24942         ix86_expand_vector_set for V4DImode in 64bit mode only.
24943         (ix86_expand_vector_init_one_var): Likewise.
24944
24945 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
24946
24947         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
24948
24949 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
24950
24951         PR bootstrap/39257
24952         * loop-iv.c: Revert last change.
24953         * emit-rtl.c: Likewise.
24954
24955 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
24956
24957         PR target/39256
24958         * config/i386/i386.c (type_natural_mode): Remove an extra
24959         space in the warning message.
24960         (function_value_32): Handle 32-byte vector modes.
24961         (return_in_memory_32): Likewise.
24962
24963 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
24964
24965         * loop-iv.c (truncate_value): New function.
24966         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
24967         of lowpart_subreg.
24968         (lowpart_subreg): Move to...
24969         * emit-rtl.c: ...here.
24970
24971 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
24972
24973         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
24974         accidental and undocumented change at revision 140860.
24975
24976 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
24977
24978         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
24979         take gimple_seq * arguments.
24980         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
24981         types_compatible_p langhook.
24982
24983 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
24984             Joseph Myers  <joseph@codesourcery.com>
24985
24986         * config/arm/arm.c (arm_builtin_va_list): New function.
24987         (arm_expand_builtin_va_start): Likewise.
24988         (arm_gimplify_va_arg_expr): Likewise.
24989         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
24990         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
24991         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
24992         (va_list_type): New variable.
24993         (arm_mangle_type): Mangle va_list_type appropriately.
24994
24995 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
24996
24997         PR middle-end/39157
24998         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
24999         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
25000         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
25001         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
25002         parameter to 1000 for -O1 by default.
25003         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
25004         parameter.
25005         * loop-invariant.c: Include params.h.
25006         (move_loop_invariants): Don't call move_single_loop_invariants on
25007         very large loops.
25008
25009 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
25010
25011         * calls.c (emit_library_call_value_1): Use slot_offset instead of
25012         offset when calculating bounds for indexing stack_usage_map.  Fixes
25013         a buffer overflow with certain target setups.
25014
25015 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
25016
25017         PR target/39240
25018         * calls.c (expand_call): Clear try_tail_call if caller and callee
25019         disagree in promotion of function return value.
25020
25021 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
25022
25023         PR target/39175
25024         * c-common.c (c_determine_visibility): If visibility changed and
25025         DECL_RTL has been already set, call make_decl_rtl to update symbol
25026         flags.
25027
25028 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
25029
25030         PR c++/39188
25031         * varasm.c (assemble_variable): Don't check DECL_NAME when
25032         globalizing a variable.
25033
25034 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
25035
25036         PR c/38483
25037         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
25038         expression before any __builtin_trap call.
25039         * c-typeck.c (build_function_call): Convert and check function
25040         arguments before generating a call to a trap.  Evaluate the
25041         function arguments before the trap.
25042
25043 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
25044
25045         PR target/39228
25046         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
25047         (UNSPEC_FXAM_MEM): New unspec.
25048         (fxam<mode>2_i387_with_temp): New insn and split pattern.
25049         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
25050         memory using fxam<mode>2_i387_with_temp to remove excess precision.
25051
25052 2009-02-19  Richard Guenther  <rguenther@suse.de>
25053
25054         PR tree-optimization/39207
25055         PR tree-optimization/39074
25056         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
25057         storedanything_tree): New.
25058         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
25059         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
25060         (build_succ_graph): Add edges from STOREDANYTHING to all
25061         non-direct nodes.
25062         (init_base_vars): Initialize STOREDANYTHING.
25063         (compute_points_to_sets): Free substitution info after
25064         building the succ graph.
25065         (ipa_pta_execute): Likewise.
25066
25067         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
25068         field.
25069         (do_ds_constraint): Do not add to special var or non-pointer
25070         field solutions.
25071         (type_could_have_pointers): Split out from ...
25072         (could_have_pointers): ... here.  For arrays use the element type.
25073         (create_variable_info_for): Initialize may_have_pointers.
25074         (new_var_info): Likewise.
25075         (handle_lhs_call): Make the HEAP variable unknown-sized.
25076         (intra_create_variable_infos): Use a type with pointers for
25077         PARM_NOALIAS, make it unknown-sized.
25078
25079 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
25080
25081         PR target/39224
25082         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
25083
25084 2009-02-18  Jason Merrill  <jason@redhat.com>
25085
25086         PR target/39179
25087         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
25088         value if DECL_EXTERNAL.
25089         * tree-sra.c (sra_walk_gimple_assign): Likewise.
25090         * target.h (gcc_target::binds_local_p): Clarify "module".
25091         * tree.h (TREE_PUBLIC): Clarify "module".
25092
25093 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
25094
25095         PR target/38891
25096         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
25097         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
25098
25099 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
25100
25101         PR target/39082
25102         * c.opt (Wabi): Support C and ObjC.
25103         (Wpsabi): New.
25104
25105         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
25106
25107         * config/i386/i386.c (classify_argument): Warn once about the ABI
25108         change when passing union with long double.
25109
25110         * doc/invoke.texi: Update -Wabi for warning psABI changes.
25111
25112 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
25113
25114         PR c/35447
25115         * c-parser.c (c_parser_compound_statement): Always enter and leave
25116         a scope.
25117
25118 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25119
25120         PR target/34587
25121         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
25122
25123 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
25124
25125         PR tree-optimization/36922
25126         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
25127         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
25128         Likewise.
25129
25130 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
25131
25132         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
25133         to 0 for EABI64.
25134
25135 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
25136
25137         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
25138
25139 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
25140
25141         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
25142         tree sharing.
25143
25144 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
25145             Richard Sandiford  <rdsandiford@googlemail.com>
25146
25147         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
25148         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
25149         (loongson_biadd): ...this.
25150
25151 2009-02-17  Richard Guenther  <rguenther@suse.de>
25152
25153         PR tree-optimization/39202
25154         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
25155         a var make sure to follow existing collapses.
25156
25157 2009-02-17  Richard Guenther  <rguenther@suse.de>
25158
25159         PR middle-end/39214
25160         * langhooks.c (lhd_print_error_function): Check for NULL block.
25161
25162 2009-02-17  Richard Guenther  <rguenther@suse.de>
25163
25164         PR tree-optimization/39204
25165         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
25166         of the PHI arg.
25167
25168 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
25169
25170         * config/soft-fp/double.h: Update from glibc CVS.
25171
25172 2009-02-17  Richard Guenther  <rguenther@suse.de>
25173
25174         PR tree-optimization/39207
25175         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
25176         strict-aliasing warnings for pointers pointing to NULL.
25177
25178 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
25179
25180         PR c/35446
25181         * c-parser.c (c_parser_braced_init): Call pop_init_level when
25182         skipping until next close brace.
25183
25184 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
25185
25186         PR target/37049
25187         * config/i386/i386.c (ix86_expand_push): Set memory alignment
25188         to function argument boundary.
25189
25190 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
25191
25192         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
25193         in the lea_add. Reload eventually constraints it properly.
25194         * config/picochip/constraints.md: Remove the target constraint
25195         "b", since it is not needed anymore.
25196
25197 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
25198
25199         * gthr-dce.h: Uglify function parameter and local variable names.
25200         * gthr-gnat.h: Likewise.
25201         * gthr-mipssde.h: Likewise.
25202         * gthr-nks.h: Likewise.
25203         * gthr-posix95.h: Likewise.
25204         * gthr-posix.h: Likewise.
25205         * gthr-rtems.h: Likewise.
25206         * gthr-single.h: Likewise.
25207         * gthr-solaris.h: Likewise.
25208         * gthr-tpf.h: Likewise.
25209         * gthr-vxworks.h: Likewise.
25210         * gthr-win32.h: Likewise.
25211
25212 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
25213
25214         PR target/39196
25215         * config/i386/i386.md: Restrict the new peephole2 to move
25216         between MMX/SSE registers.
25217
25218 2009-02-15  Richard Guenther  <rguenther@suse.de>
25219
25220         Revert
25221         2009-02-13  Richard Guenther  <rguenther@suse.de>
25222
25223         * configure.ac: Enable LFS.
25224         * configure: Re-generate.
25225         * config.in: Likewise.
25226
25227 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25228
25229         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
25230         spu_srqwbyte, spu_srqwbytebc): Define.
25231         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
25232         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
25233         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
25234         "shrqby_<mode>"): New insn-and-split patterns.
25235         * config/spu/spu.c (expand_builtin_args): Determine and return
25236         number of operands using spu_builtin_description data.
25237         (spu_expand_builtin_1): Use it.
25238
25239 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
25240
25241         PR target/38056
25242         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
25243         TARGET_CONST_GP.
25244
25245 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
25246
25247         PR target/39149
25248         * config/i386/i386.c (override_options): Correct warning
25249         messages for -malign-loops, -malign-jumps and -malign-functions.
25250
25251 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
25252
25253         PR target/39152
25254         * config/i386/i386.md: Restrict the new peephole2 to move
25255         between the general purpose registers.
25256
25257 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
25258
25259         PR target/39162
25260         * config/i386/i386.c (type_natural_mode): Add a new argument.
25261         Return the original mode and warn ABI change if vector size is 32byte.
25262         (function_arg_advance): Updated.
25263         (function_arg): Likewise.
25264         (ix86_function_value): Likewise.
25265         (ix86_return_in_memory): Likewise.
25266         (ix86_sol10_return_in_memory): Likewise.
25267         (ix86_gimplify_va_arg): Likewise.
25268         (function_arg_32): Don't warn ABX ABI change here.
25269         (function_arg_64): Likewise.
25270
25271 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
25272
25273         * loop-iv.c (implies_p): In the final case, test that operands 0
25274         of the two comparisons match.
25275
25276         * config/bfin/bfin.c (find_prev_insn_start): New function.
25277         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
25278         (find_next_insn_start): Move.
25279
25280 2009-02-13  Richard Guenther  <rguenther@suse.de>
25281
25282         * configure.ac: Enable LFS.
25283         * configure: Re-generate.
25284         * config.in: Likewise.
25285
25286 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
25287
25288         PR c/35444
25289         * c-parser.c (c_parser_parms_list_declarator): Discard pending
25290         sizes on syntax error after some arguments have been parsed.
25291
25292 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
25293
25294         * doc/invoke.texi (-fira): Remove.
25295
25296 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
25297
25298         * caller-save.c: Replace regclass.c with reginfo.c in comments.
25299         * recog.c: Likewise.
25300         * rtl.h: Likewise.
25301
25302 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
25303
25304         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
25305         (umul_ppmm): Likewise.
25306         (count_leading_zeros): Likewise.
25307         (count_trailing_zeros): Likewise.
25308         (UMUL_TIME): Likewise.
25309
25310 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
25311
25312         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
25313         soft-fp/t-softfp to tmake_file.
25314
25315         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
25316         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
25317         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
25318         IA64_BUILTIN_INFQ]: New.
25319         (ia64_init_builtins): Initialize __builtin_infq,
25320         __builtin_fabsq and __builtin_copysignq if not HPUX.
25321         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
25322         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
25323
25324         * config/ia64/lib1funcs.asm (__divtf3): Define only if
25325         SHARED is defined.
25326         (__fixtfti): Likewise.
25327         (__fixunstfti): Likewise.
25328         (__floattitf): Likewise.
25329
25330         * config/ia64/libgcc-glibc.ver: New.
25331         * config/ia64/t-fprules-softfp: Likewise.
25332         * config/ia64/sfp-machine.h: Likewise.
25333
25334         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
25335         (LIBGCC2_TF_CEXT): Likewise.
25336         (TF_SIZE): Likewise.
25337         (TARGET_INIT_LIBFUNCS): Likewise.
25338
25339         * config/ia64/t-glibc (SHLINB_MAPFILES):
25340         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
25341
25342 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
25343
25344         * config/i386/i386.c (construct_container): Rewrite processing
25345         BLKmode with X86_64_SSE_CLASS.
25346
25347 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
25348
25349         PR target/39152
25350         * config/i386/i386.md: Replace simplify_replace_rtx with
25351         replace_rtx in the new peephole2.
25352
25353 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
25354
25355         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
25356         loop unrolling do not happen at -O2.
25357
25358 2009-02-12  Michael Matz  <matz@suse.de>
25359
25360         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
25361
25362 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
25363
25364         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
25365         for -g3.
25366
25367 2009-02-12  Ben Elliston  <bje@au.ibm.com>
25368
25369         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
25370         patterns when updating the back chain.  Missed in the 2009-02-10
25371         change.
25372
25373 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
25374
25375         * doc/extend.texi (Decimal Floating Types): Update identifier of
25376         draft TR and list of missing support.
25377
25378 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
25379
25380         PR middle-end/39154
25381         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
25382         bit to variable length decl's flags, add it also to its
25383         pointer replacement variable.
25384
25385 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
25386             Jakub Jelinek  <jakub@redhat.com>
25387
25388         PR target/39118
25389         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
25390         (memory_blockage): New expander.
25391         (*memory_blockage): New insn pattern.
25392         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
25393         instead of general blockage at the end of function prologue when
25394         frame pointer is used to access red zone area.  Do not emit blockage
25395         when profiling, it is emitted in generic code.
25396         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
25397         function epilogue when frame pointer is used to access red zone area.
25398
25399 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
25400
25401         PR target/38824
25402         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
25403         by arithmetic with memory operands.
25404         * config/i386/predicates.md (commutative_operator): New.
25405
25406 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
25407
25408         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
25409         bulleted lists.
25410
25411 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
25412
25413         * alias.h (record_alias_subset): Declare.
25414         * alias.c (record_alias_subset): Make global.
25415
25416 2009-02-10  Nick Clifton  <nickc@redhat.com>
25417
25418         * tree-parloops.c: Change license to GPLv3.
25419         * ipa-struct-reorg.c: Change license to GPLv3.
25420         * ipa-struct-reorg.h: Change license to GPLv3.
25421
25422 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
25423
25424         PR c/39084
25425         * c-decl.c (start_struct): Return NULL on error.
25426
25427 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
25428
25429         PR middle-end/39124
25430         * cfgloopmanip.c (remove_path): Call remove_bbs after
25431         cancel_loop_tree, not before it.
25432
25433         PR target/39139
25434         * function.h (struct function): Add has_local_explicit_reg_vars bit.
25435         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
25436         VAR_DECLs were seen.
25437         * tree-ssa-live.c (remove_unused_locals): Recompute
25438         cfun->has_local_explicit_reg_vars.
25439         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
25440         copies or clearings if cfun->has_local_explicit_reg_vars.
25441
25442 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
25443
25444         PR target/39118
25445         * config/i386/i386.c (expand_prologue): Emit blockage at the end
25446         of function prologue when frame pointer is used to access
25447         red zone area.
25448
25449 2009-02-10  Richard Guenther  <rguenther@suse.de>
25450
25451         PR middle-end/39127
25452         * gimplify.c (gimple_regimplify_operands): Always look if
25453         we need to create a temporary.
25454
25455 2009-02-10  Richard Guenther  <rguenther@suse.de>
25456
25457         PR tree-optimization/39132
25458         * tree-loop-distribution.c (todo): New global var.
25459         (generate_memset_zero): Trigger TODO_rebuild_alias.
25460         (tree_loop_distribution): Return todo.
25461
25462 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
25463
25464         PR target/39119
25465         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
25466         (x86_64_reg_class_name): Removed.
25467         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
25468         first one isn't X86_64_SSE_CLASS or any other ones aren't
25469         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
25470         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
25471         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
25472         and 3 X86_64_SSEUP_CLASS.
25473         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
25474         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
25475
25476 2009-02-10  Ben Elliston  <bje@au.ibm.com>
25477
25478         * config/rs6000/rs6000.md (allocate_stack): Always use an update
25479         form instruction to update the stack back chain word, even if the
25480         user has disabled the generation of update instructions.
25481         (movdi_<mode>_update_stack): New.
25482         (movsi_update_stack): Likewise.
25483         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
25484         always use an update form instruction to update the stack back
25485         chain word.
25486
25487 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
25488
25489         PR middle-end/38953
25490         * graphite.c (if_region_set_false_region): After moving a region in
25491         the false branch of a condition, remove the empty dummy basic block.
25492         (gloog): Remove wrong fix for PR38953.
25493
25494 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25495
25496         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
25497         generation due to implicit sign extension.
25498
25499 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
25500
25501         PR middle-end/38981
25502         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
25503         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
25504
25505 2009-02-09  Richard Guenther  <rguenther@suse.de>
25506
25507         PR middle-end/35202
25508         * convert.c (convert_to_real): Disable (float)fn((double)x)
25509         to fnf(x) conversion if errno differences may occur and
25510         -fmath-errno is set.
25511
25512 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
25513
25514         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
25515         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
25516         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
25517
25518 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
25519
25520         PR c/35434
25521         * c-common.c (handle_alias_attribute): Disallow attribute for
25522         anything not a FUNCTION_DECL or VAR_DECL.
25523
25524 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
25525
25526         PR c/39035
25527         * real.c (do_compare): Special-case compare of zero against
25528         decimal float value.
25529
25530 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
25531
25532         PR c/36432
25533         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
25534         as indicating flexible array members unless the field itself is
25535         being declarared as the incomplete array.
25536
25537 2009-02-06  Jan Hubicka  <jh@suse.cz>
25538
25539         PR tree-optimization/38844
25540         * ipa-inline.c (try_inline): Stop inlining recursion when edge
25541         is already inlined.
25542
25543 2009-02-06  Richard Guenther  <rguenther@suse.de>
25544
25545         PR middle-end/38977
25546         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
25547         fork because we may expand it as __gcov_fork.
25548
25549 2009-02-06  Nick Clifton  <nickc@redhat.com>
25550
25551         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
25552
25553 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
25554
25555         PR tree-optimization/35659
25556         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
25557         vn_phi_eq): Shortcut if hashcode does not match.
25558         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
25559         NULL operands.
25560         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
25561         and avoid iterative_hash_expr.
25562         (FOR_EACH_VALUE_ID_IN_SET): New.
25563         (value_id_compare): Remove.
25564         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
25565         sort expressions by value id.
25566
25567 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
25568
25569         PR target/38991
25570         * config/sh/predicates.md (general_movsrc_operand): Don't check
25571         the subreg of system registers here.
25572
25573 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
25574
25575         PR c++/39106
25576         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
25577         on the copied decl.
25578
25579 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
25580
25581         PR rtl-optimization/39110
25582         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
25583         addresses, not aligned ones.
25584
25585 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
25586             Richard Guenther  <rguenther@suse.de>
25587
25588         PR tree-optimization/39100
25589         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
25590         comment says and add edges.
25591
25592 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
25593
25594         PR c/35435
25595         * c-common.c (handle_tls_model_attribute): Ignore attribute for
25596         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
25597
25598 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
25599
25600         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
25601         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
25602         register_bb_in_sese, new_sese, free_sese): Moved.
25603         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
25604         outermost_loop_in_scop, build_scop_iteration_domain,
25605         expand_scalar_variables_ssa_name, get_vdef_before_scop,
25606         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
25607         Use loop_in_sese_p instead of loop_in_scop_p.
25608         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
25609         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
25610         (scopdet_basic_block_info): Fix bug in scop detection.
25611         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
25612         eq_loop_to_cloog_loop): Remove.
25613         (nb_loops_around_loop_in_scop, nb_loop
25614         ref_nb_loops): Moved here...
25615         * graphite.h (ref_nb_loops): ... from here.
25616         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
25617         (loop_domain_dim, loop_iteration_vector_dim): Remove.
25618         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
25619
25620 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
25621             Hans-Peter Nilsson  <hp@axis.com>
25622
25623         PR rtl-optimization/37889
25624         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
25625         Move offset handling from PLUS to before the switch.  Use new
25626         arguments when considering SYMBOL_REFs too.
25627         (rtx_addr_can_trap_p): Pass dummy offset and size.
25628         (enum may_trap_p_flags): Remove.
25629         (may_trap_p_1): Pass size from MEM_SIZE.
25630
25631         PR rtl-optimization/38921
25632         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
25633         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
25634         * rtlanal.c (may_trap_after_code_motion_p): Delete.
25635         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
25636
25637 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
25638
25639         AVX Programming Reference (January, 2009)
25640         * config/i386/sse.md (*vpclmulqdq): New.
25641
25642 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
25643
25644         PR tree-optimization/38977
25645         PR gcov-profile/38292
25646         * calls.c (special_function_p): Disregard __builtin_ prefix.
25647
25648 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
25649
25650         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
25651         non-indexable addresses even before reload.
25652
25653 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
25654
25655         PR c/29129
25656         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
25657         as having variable size.  Do not give an error for unnamed
25658         parameters with [*] declarators.  Give a warning for type names
25659         with [*] declarators and mark them as variable size.
25660         * c-parser.c (c_parser_sizeof_expression): Do not give an error
25661         for sizeof applied to [*] type names.
25662
25663 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
25664
25665         PR C++/36607
25666         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
25667
25668 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
25669
25670         * gcc.c (process_command): Update copyright notice dates.
25671         * gcov.c (print_version): Likewise.
25672         * gcov-dump.c (print_version): Likewise.
25673         * mips-tfile.c (main): Likewise.
25674         * mips-tdump.c (main): Likewise.
25675
25676 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
25677
25678         PR c/35433
25679         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
25680         for composite type involving a zero-length array type.
25681
25682 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
25683
25684         PR target/35318
25685         * function.c (match_asm_constraints_1): Skip over
25686         initial optional % in the constraint.
25687
25688         PR inline-asm/39059
25689         * c-parser.c (c_parser_postfix_expression): If fixed point is not
25690         supported, don't accept FIXED_CSTs.
25691         * c-decl.c (finish_declspecs): Error if fixed point is not supported
25692         and _Sat is used without _Fract/_Accum.  Set specs->type to
25693         integer_type_node for cts_fract/cts_accum if fixed point is not
25694         supported.
25695
25696 2009-02-02  Catherine Moore  <clm@codesourcery.com>
25697
25698         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
25699
25700 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
25701
25702         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
25703         (ABI_HAS_64BIT_SYMBOLS): Use it.
25704         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
25705
25706 2009-02-02  Paul Brook  <paul@codesourcery.com>
25707
25708         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
25709
25710 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
25711
25712         PR inline-asm/39058
25713         * recog.h (asm_operand_ok): Add constraints argument.
25714         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
25715         recurse on matching constraint.
25716         (check_asm_operands): Pass constraints as 3rd argument to
25717         asm_operand_ok.  Don't look up matching constraint here.
25718         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
25719         to asm_operand_ok.
25720
25721 2009-02-02  Ben Elliston  <bje@au.ibm.com>
25722
25723         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
25724         TARGET_NARROW_VOLATILE_BITFIELD macro names.
25725
25726 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25727
25728         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
25729         information.  Remove some obsolete information.  Reorganize.
25730
25731         * config/pa/fptr.c: Revert license to GPL 2.
25732         * config/pa/milli64.S: Likewise.
25733
25734 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
25735
25736         PR target/38904
25737         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
25738         LIBRARY name in, instead of hard-coding it.
25739         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
25740         extra target make frag to tmake_files according to EH model.
25741         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
25742         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
25743         frags that define makefile variable EH_MODEL appropriately.
25744         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
25745         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
25746         to "-sjlj" according to type of EH configured.
25747         (LIBGCC_SONAME):  Concatenate it to shared library base name.
25748         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
25749         to "_sjlj" according to type of EH configured.
25750         (LIBGCC_SONAME):  Concatenate it to shared library base name.
25751         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
25752         (SHLIB_LINK):  Add missing semicolon to if-else construct.
25753         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
25754         string value of "pe_dll" command-line option.
25755         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
25756         (SHLIB_SONAME):  Use it when overriding t-cygming default.
25757         (SHLIB_IMPLIB):  Override t-cygming default.
25758         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
25759         string value of "pe_dll" command-line option.
25760
25761 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
25762
25763         PR target/38952
25764         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
25765         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
25766
25767 2009-01-31  Richard Guenther  <rguenther@suse.de>
25768
25769         PR tree-optimization/38937
25770         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
25771         computing the transitive closure.
25772
25773 2009-01-30  Richard Guenther  <rguenther@suse.de>
25774
25775         PR tree-optimization/39041
25776         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
25777         Propagate variable indices only if the types match for this stmt.
25778
25779 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
25780
25781         PR target/39013
25782         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
25783         inline but never defined.
25784
25785 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
25786
25787         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
25788         (*insv_h_di_reg_extimm): New insn.
25789         (*insv_l<mode>_reg_extimm): New insn.
25790
25791 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
25792
25793         * config/picochip/picochip.c (flag_conserve_stack): set
25794         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
25795         fconserve-stack. Reduce call-overhead used by inliner.
25796
25797 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
25798
25799         PR/38157
25800         * common.opt (flag_conserve_stack): Initialised to zero.
25801
25802 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
25803
25804         PR/39002
25805         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
25806         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
25807         method.
25808
25809 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
25810
25811         * ira-color.c (allocno_reload_assign): Update comments.
25812         * regmove.c (regmove_optimize): Likewise.
25813
25814         * ra.h: Removed.
25815
25816 2009-01-29  Robert Millan  <rmh@aybabtu.com>
25817
25818         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
25819         * config/i386/kopensolaris-gnu.h: New file.  Undefine
25820         `MD_UNWIND_SUPPORT'.
25821         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
25822
25823 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
25824
25825         PR tree-optimization/39007
25826         * tree-loop-distribution.c (generate_builtin): Use
25827         recompute_dominator to compute the immediate dominator of the
25828         basic block just after the loop.
25829
25830 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
25831
25832         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
25833         (ASM_OUTPUT_DWARF_PCREL): Define.
25834
25835 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
25836
25837         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
25838         * doc/passes.texi: Remove entries about regclass, local-alloc, and
25839         global.  Modify entries about regmove and IRA.
25840
25841         * ra-conflict.c: Remove the file.
25842
25843         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
25844
25845         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
25846         (pass_regclass_init): Rename to pass_reginfo_init.
25847
25848         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
25849
25850         * toplev.h (flag_ira): Remove.
25851
25852         * caller-save.c (setup_save_areas): Remove flag_ira.
25853
25854         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
25855
25856         * global.c: Remove the file.
25857
25858         * opts.c (decode_options): Remove flag_ira.
25859
25860         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
25861
25862         * regmove.c: Modify file description.
25863         (find_use_as_address, try_auto_increment): Define them only if
25864         AUTO_INC_DEC is defined.
25865         (replacement_quality, replace_in_call_usage, fixup_match_1,
25866         stable_and_no_regs_but_for_p): Remove.
25867         (reg_set_in_bb): Make it static.
25868         (regmove_optimize): Remove flag_ira and code which worked for
25869         !flag_ira.
25870
25871         * local-alloc.c: Remove the file.
25872
25873         * common.opt (fira): Remove.
25874
25875         * ira.c: Include except.h.
25876         (eliminable_regset): Move from global.c.
25877         (mark_elimination): Ditto.  Remove flag_ira.
25878         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
25879         equiv_mem_modified, validate_equiv_mem_from_store,
25880         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
25881         contains_replace_regs, memref_referenced_p, memref_used_between_p,
25882         no_equiv, recorded_label_ref): Move from local-alloc.c.
25883         (update_equiv_regs): Ditto.  Make it static.
25884         (print_insn_chain, print_insn_chains): Move it from global.c.
25885         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
25886         (build_insn_chain): Ditto.  Make it static.
25887         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
25888         Rename to init_live_subregs.
25889         (gate_ira): Remove flag_ira.
25890
25891         * regclass.c: Rename reginfo.c.  Change file description.
25892         (FORBIDDEN_INC_DEC_CLASSES): Remove.
25893         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
25894         (init_reg_sets_1): Remove code for evaluation of
25895         reg_class_superclasses and losing_caller_save_reg_set.
25896         (init_regs): Remove init_reg_autoinc.
25897         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
25898         ok_for_base_p_nonstrict): Remove.
25899         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
25900         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
25901         corresponding entries.
25902         (dump_regclass, record_operand_costs, scan_one_insn,
25903         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
25904         record_address_regs, auto_inc_dec_reg_p): Remove.
25905         (gt-regclass.h): Rename to gt-reginfo.h.
25906
25907         * rtl.h (dump_global_regs, retry_global_alloc,
25908         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
25909
25910         * Makefile.in (RA_H): Remove.
25911         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
25912         Rename regclass.o to reginfo.o.
25913         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
25914         gt-reginfo.h.
25915         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
25916         (GTFILES): Rename regclass.c to reginfo.c.
25917
25918         * passes.c (init_optimization_passes): Remove pass_local_alloc and
25919         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
25920
25921         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
25922         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
25923         Remove flag_ira.
25924         (finish_spills): Ditto.  Remove code for !flag_ira.
25925
25926 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
25927
25928         PR middle-end/35854
25929         * doc/invoke.texi (rtl debug options): Complete rewrite.
25930         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
25931         to auto_inc_dec".
25932         * mode-switching.c (pass_mode_switching): Rename pass from
25933         "mode-sw" to "mode_sw".
25934         * except.c (pass_convert_to_eh_ranges): Rename pass from
25935         "eh-ranges" to "eh_ranges".
25936         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
25937         to "subreg1".
25938
25939
25940 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
25941             Alexander Monakov  <amonakov@ispras.ru>
25942
25943         PR middle-end/38857
25944         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
25945         register.
25946         (move_exprs_to_boundary): Change return type and pass through
25947         should_move from move_op.  Relax assert.  Update usage ...
25948         (schedule_expr_on_boundary): ... here.  Use should_move instead of
25949         cant_move.
25950         (move_op_orig_expr_found): Indicate that insn was disconnected from
25951         stream.
25952         (code_motion_process_successors): Do not call after_merge_succs
25953         callback if original expression was not found when traversing any of
25954         the branches.
25955         (code_motion_path_driver): Change return type.  Update prototype.
25956         (move_op): Update comment.  Add a new parameter (should_move).  Update
25957         prototype.  Set *should_move based on indication provided by
25958         move_op_orig_expr_found.
25959
25960 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
25961
25962         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
25963         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
25964         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
25965         * config/rs6000/rs6000.c (rs6000_override_options): Default
25966         avoid-indexed-addresses on for Power6, off for everything else.
25967         (avoiding_indexed_address_p): New function.
25968         (rs6000_legitimize_address): Use it.
25969         (rs6000_legitimate_address): Likewise.
25970         * config/rs6000/rs6000.md (movXX_updateX): Likewise
25971
25972 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
25973
25974         PR tree-optimization/38997
25975         * tree-loop-distribution.c (generate_memset_zero): Use
25976         POINTER_PLUS_EXPR for a pointer addition.
25977
25978 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
25979
25980         * config/s390/s390.md (bswap<mode>2): New pattern added.
25981
25982 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
25983
25984         * config/s390/s390.md (*tls_load_31): Added type attribute.
25985
25986 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
25987
25988         * config/s390/s390.md: Fix a few comments.
25989
25990 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
25991
25992         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
25993         (*tm<mode>_full): Fixed z10prop attribute.
25994         (*tst<mode>_extimm): Fixed z10prop attribute.
25995         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
25996         (*tstqiCCT_cconly): Fixed z10prop attribute.
25997         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
25998         (*movsi_larl): Fixed z10prop attribute.
25999         (*movsi_zarch): Fixed z10prop attribute.
26000         (*movsi_eas): Fixed z10prop attribute.
26001         (*movhi): Fixed z10prop attribute.
26002         (*movqi): Fixed z10prop attribute.
26003         (*movstrictqi): Fixed z10prop attribute.
26004         (*mov<mode>): Fixed z10prop attribute.
26005         (*movcc): Fixed z10prop attribute.
26006         (*sethighpartdi_64): Fixed z10prop attribute.
26007         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
26008         (*negdi2_sign_cc): Fixed z10prop attribute.
26009         (*negdi2_sign): Fixed z10prop attribute.
26010         (*absdi2_sign_cc): Fixed z10prop attribute.
26011         (*absdi2_sign): Fixed z10prop attribute.
26012         (*negabsdi2_sign_cc): Fixed z10prop attribute.
26013         (*negabsdi2_sign): Fixed z10prop attribute.
26014         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
26015         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
26016         (doloop_si64): Fixed z10prop attribute.
26017         (doloop_si31): Fixed z10prop attribute.
26018         (doloop_long): Fixed z10prop attribute.
26019         (indirect_jump): Fixed z10prop attribute.
26020         (nop): Fixed z10prop attribute.
26021         (main_base_64): Fixed z10prop attribute.
26022         (reload_base_64): Fixed z10prop attribute.
26023
26024 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
26025
26026         PR rtl-optimization/38740
26027         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
26028         if !optimize.
26029         * config/mips/mips.c (mips_reorg): Likewise.
26030
26031 2009-01-28  Richard Guenther  <rguenther@suse.de>
26032
26033         PR tree-optimization/38926
26034         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
26035         with the correct value id to a value.
26036         (do_regular_insertion): Use the value number of edoubleprime
26037         for the value number of the expr.
26038
26039         Revert
26040         2008-08-21  Richard Guenther  <rguenther@suse.de>
26041
26042         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
26043         a PHI ask VN if it is already available.
26044         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
26045         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
26046
26047 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
26048
26049         PR middle-end/38934
26050         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
26051         set to varying whenever max has TREE_OVERFLOW set, similarly
26052         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
26053
26054 2009-01-28  Richard Guenther  <rguenther@suse.de>
26055
26056         PR middle-end/38908
26057         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
26058         uninitialized aggregate uses in call arguments.
26059
26060 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
26061
26062         PR tree-optimization/38984
26063         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
26064         the nothing_id variable if -fno-delete-null-pointer-checks.
26065
26066 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
26067
26068         PR target/38988
26069         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
26070         (set_got_offset_rex64): Ditto.
26071
26072 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
26073
26074         PR target/38941
26075         * doc/extend.texi: Improve local variable with asm reg.
26076
26077 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
26078
26079         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
26080         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
26081         was not supplied then set warn_packed_bitfield_compat to the
26082         default value of 1.
26083         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
26084         against 1.
26085
26086 2009-01-27  Richard Guenther  <rguenther@suse.de>
26087
26088         PR tree-optimization/38503
26089         * cfgexpand.c (expand_gimple_basic_block): Ignore
26090         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
26091         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
26092         variables that cannot have TBAA applied.
26093         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
26094         statements.
26095
26096 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
26097
26098         PR middle-end/38969
26099         * calls.c (initialize_argument_information): Do not wrap complex
26100         arguments in SAVE_EXPR.
26101
26102 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
26103
26104         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
26105         (INSTALL_LIBGCC): Revert typo commit.
26106
26107 2009-01-26  Richard Guenther  <rguenther@suse.de>
26108
26109         PR tree-optimization/38745
26110         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
26111         from special handling.
26112
26113 2009-01-26  Richard Guenther  <rguenther@suse.de>
26114
26115         PR tree-optimization/38745
26116         * tree-ssa.c (execute_update_addresses_taken): Do not include
26117         variables that cannot possibly be a register in not_reg_needs.
26118         Do not clear TREE_ADDRESSABLE on vars that may not become
26119         registers.
26120         * tree-ssa.c (update_alias_info_1): Include those in the set
26121         of addressable vars.
26122
26123 2009-01-26  Richard Guenther  <rguenther@suse.de>
26124
26125         PR middle-end/38851
26126         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
26127         * tree-ssa-dse.c: Include langhooks.h
26128         (execute_simple_dse): Remove stores with zero size.
26129
26130 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
26131
26132         PR c/38957
26133         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
26134         as PLUS_EXPR.
26135
26136 2009-01-24  Julian Brown  <julian@codesourcery.com>
26137
26138         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
26139         config/arm/linux-atomic.c.
26140         * config/arm/linux-atomic.c: New.
26141
26142 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
26143
26144         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
26145         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
26146         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
26147
26148 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
26149
26150         PR c/38938
26151         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
26152         properly.
26153
26154 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
26155
26156         PR tree-optimization/38953
26157         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
26158         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
26159         (gloog): Split the exit of the scop when the scop exit is a loop exit.
26160         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
26161         changed the CFG.
26162
26163 2009-01-24  Paul Brook  <paul@codesourcery.com>
26164
26165         * config/arm/neon.md (neon_type): Move to arm.md.
26166         (neon_mov<VSTRUCT>): Add neon_type attribute.
26167         * config/arm/arm.md (neon_type): Move to here.
26168         (conds): Add "unconditioal" and use as default for NEON insns.
26169
26170 2009-01-24  Ben Elliston  <bje@au.ibm.com>
26171
26172         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
26173         void *' warning from -Wc++-compat.
26174         * Makefile.in (dominance.o-warn): Remove.
26175
26176 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
26177
26178         PR tree-optimization/38932
26179         * fold-const.c (fold_unary_ignore_overflow): New.
26180         * tree.h (fold_unary_ignore_overflow): Declare.
26181         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
26182         * tree-ssa-sccvn.c (visit_reference_op_load,
26183         simplify_unary_expression): Likewise.
26184
26185 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
26186
26187         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
26188         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
26189         regardless of their type.
26190         * c-common.c (handle_packed_attribute): Don't ignore packed on
26191         bitfields.
26192         * c.opt (Wpacked-bitfield-compat): New warning option.
26193         * stor-layout.c (place_field): Warn if offset of a field changed.
26194         * doc/extend.texi (packed): Mention the ABI change.
26195         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
26196         (Warning Options): Add it to the list.
26197
26198 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
26199
26200         * c-opts.c (c_common_post_options): Fix a typo in comments.
26201
26202 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
26203
26204         PR middle-end/38615
26205         * gimplify.c (gimplify_init_constructor): Fix promotion of const
26206         variables to static.
26207         * doc/invoke.texi (-fmerge-all-constants): Update description.
26208
26209 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
26210
26211         PR target/38931
26212         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
26213         (*movdi_1_rex64): Use type "mmx" for alternative 5.
26214
26215 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
26216
26217         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
26218         a word boundary.
26219         (LOCAL_ALIGNMENT): Similarly.
26220
26221 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
26222             Joseph Myers  <joseph@codesourcery.com>
26223
26224         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
26225         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
26226         * config/arm/arm-tune.md: Regenerate.
26227         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
26228         -march=iwmmxt2.
26229
26230 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
26231
26232         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
26233         version number to five.
26234
26235 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
26236
26237         PR c++/38930
26238         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
26239         * c-common.c (set_underlying_type): Likewise.
26240         (is_typedef_decl ): Likewise
26241         * tree.h: Likewise
26242         (set_underlying_type): Likewise.
26243         (is_typedef_type): Likewise.
26244
26245 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
26246
26247         PR middle-end/38587
26248         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
26249         crossing setjmps.
26250
26251 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
26252
26253         PR bootstrap/37660
26254         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
26255         (LIBGCC_SPEC):  Don't define.
26256         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
26257
26258 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
26259
26260         PR rtl-optimization/38879
26261         * alias.c (base_alias_check): Unaligned access via AND address can
26262         alias all surrounding object types except those with sizes equal
26263         or wider than the size of unaligned access.
26264
26265 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
26266
26267         PR c++/26693
26268         * c-decl.c (clone_underlying_type): Move this ...
26269         * c-common.c (set_underlying_type): ... here.
26270         Also, make sure the function properly sets TYPE_STUB_DECL() on
26271         the newly created typedef variant type.
26272         (is_typedef_decl ): New entry point.
26273         * tree.h: Added a new member member_types_needing_access_check to
26274         struct tree_decl_non_common.
26275         (set_underlying_type): New entry point.
26276         (is_typedef_type): Likewise.
26277
26278 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
26279
26280         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
26281         Check whether two instructions have memory references that
26282         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
26283         are helper functions for traversing.
26284         * alias.h (insn_alias_sets_confilict_p): New prototypes.
26285         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
26286         not to draw dependency edge for instructions with non-conflicting
26287         alias sets.
26288
26289 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
26290
26291         PR other/38758
26292         * longlong.h: Update copyright years.  Use soft-fp license notice.
26293         Sync __clz_tab declaration with glibc.
26294
26295 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
26296
26297         PR target/30687
26298         * doc/extend.texi (syscall_linkage): New.
26299         (version_id): Modify.
26300
26301 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
26302             Richard Guenther  <rguenther@suse.de>
26303
26304         PR tree-optimization/38747
26305         PR tree-optimization/38748
26306         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
26307         conversion if the base address is an indirect reference and the
26308         aliasing sets could cause issues.
26309
26310 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
26311
26312         * common.opt (fgraphite, fgraphite-identity): Add comment for
26313         explaining why these options are not documented.
26314
26315 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
26316
26317         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
26318         gimple_call_lhs is NULL.
26319
26320 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26321
26322         PR target/38868
26323         * emit-rtl.c (adjust_address_1): Make sure memref is never
26324         overwritten.
26325
26326 2009-01-20  Ben Elliston  <bje@au.ibm.com>
26327
26328         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
26329         const qualifier from arg parameter. Remove unnecessary cast to char *.
26330         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
26331         const qualifier from arg 2.
26332
26333 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
26334
26335         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
26336
26337 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
26338
26339         PR c/38869
26340         * rtl.h (reinit_regs): New prototype.
26341         * regclass.c: Include ira.h.
26342         (reinit_regs): New.
26343         * Makefile.in (regclass.o): Add ira.h.
26344         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
26345
26346 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
26347
26348         PR target/38736
26349         * c-common.c (handle_aligned_attribute): Use
26350         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
26351         default alignment value.
26352
26353         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
26354
26355         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
26356         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
26357
26358         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
26359         __BIGGEST_ALIGNMENT__.
26360
26361         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
26362
26363 2009-01-18  Richard Guenther  <rguenther@suse.de>
26364
26365         PR tree-optimization/38819
26366         * tree-flow.h (operation_could_trap_helper_p): Declare.
26367         * tree-eh.c (operation_could_trap_helper_p): Export.
26368         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
26369         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
26370         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
26371         are about to insert a possibly trapping instruction and fail
26372         in this case.
26373
26374 2009-01-18  Andreas Schwab  <schwab@suse.de>
26375
26376         * doc/install.texi (Configuration): Remove obsolete paragraph
26377         about use of --with-gnu-ld with --with-gnu-as.
26378
26379 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
26380
26381         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
26382         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
26383         Follow spelling conventions.
26384
26385 2009-01-18  Ben Elliston  <bje@au.ibm.com>
26386
26387         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
26388         C++ warning about implicit conversion from void * to struct
26389         bitmap_head_def *.
26390         (bitmap_obstack_free): Likewise for bitmap_element *.
26391         * Makefile.in (bitmap.o-warn): Remove.
26392
26393 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
26394
26395         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
26396
26397 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
26398             Tobias Grosser  <tobi.grosser@amd.com>
26399
26400         * graphite.c (graphite_trans_scop_block): Do not block single
26401         nested loops.
26402
26403 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
26404
26405         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
26406         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
26407         test with assertion.
26408
26409 2009-01-16  Richard Guenther  <rguenther@suse.de>
26410
26411         PR tree-optimization/38835
26412         PR middle-end/36227
26413         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
26414         and INT + PTR -> (INT)(PTR p+ INT) folding.
26415         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
26416
26417 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
26418
26419         PR target/38554
26420         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
26421         the subreg from a lowpart subreg if it is also casting the value.
26422
26423 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
26424             Tobias Grosser  <tobi.grosser@amd.com>
26425
26426         * graphite.c (compare_prefix_loops): New.
26427         (build_scop_canonical_schedules): Rewritten.
26428         (graphite_transform_loops): Move build_scop_canonical_schedules
26429         after build_scop_iteration_domain.
26430
26431 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
26432             Tobias Grosser  <tobi.grosser@amd.com>
26433
26434         * graphite.c (add_conditions_to_domain): Add the loops to
26435         the dimension of the iteration domain.  Do copy the domain
26436         only when it exists.
26437         (build_scop_conditions_1): Do not call add_conditions_to_domain.
26438         (add_conditions_to_constraints): New.
26439         (can_generate_code_stmt, can_generate_code): Removed.
26440         (gloog): Do not call can_generate_code.
26441         (graphite_transform_loops): Call add_conditions_to_constraints
26442         after building the iteration domain.
26443
26444 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
26445
26446         PR tree-optimization/38789
26447         * tree-ssa-threadedge.c
26448         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
26449         __builtin_constant_p.
26450
26451 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
26452
26453         * dce.c (delete_unmarked_insns): Reversed the order that insns are
26454         examined before deleting them.
26455
26456 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
26457
26458         * function.c (aggregate_value_p): Correctly extract the function
26459         type from CALL_EXPR_FN lookup.
26460
26461 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
26462
26463         * config/picochip/picochip.c (picochip_override_options): Revert
26464         CFI asm flag disable commited previously.
26465
26466 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
26467             Tobias Grosser  <tobi.grosser@amd.com>
26468             Jan Sjodin  <jan.sjodin@amd.com>
26469
26470         * graphite.c (scan_tree_for_params): On substractions negate
26471         all the coefficients of the term.
26472         (clast_to_gcc_expression_red): New.  Handle reduction expressions
26473         of more than two operands.
26474         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
26475         (get_vdef_before_scop): Handle also the case of default definitions.
26476
26477 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
26478
26479         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
26480         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
26481         Also use them when walking CALL_INSN_FUNCTION_USAGE.
26482
26483 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
26484             Joey Ye  <joey.ye@intel.com>
26485
26486         PR middle-end/37843
26487         * cfgexpand.c (expand_stack_alignment): Don't update stack
26488         boundary nor check incoming stack boundary here.
26489         (gimple_expand_cfg): Update stack boundary and check incoming
26490         stack boundary here.
26491
26492 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
26493
26494         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
26495
26496 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
26497
26498         PR rtl-optimization/38245
26499         * calls.c (expand_call): Add stack arguments to
26500         CALL_INSN_FUNCTION_USAGE even for pure calls (when
26501         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
26502         in regs and partially in memory or BLKmode arguments.
26503         (emit_library_call_value_1): Add stack arguments to
26504         CALL_INSN_FUNCTION_USAGE even for pure calls (when
26505         ACCUMULATE_OUTGOING_ARGS).
26506         * dce.c: Include tm_p.h.
26507         (find_call_stack_args): New function.
26508         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
26509         argument.
26510         (mark_insn): Call find_call_stack_args for CALL_Ps.
26511         (prescan_insns_for_dce): Walk insns backwards in bb rather than
26512         forwards.  Allocate and free arg_stores bitmap if needed, pass it
26513         down to deletable_insn_p, don't mark stores set in arg_stores
26514         bitmap, clear the bitmap at the beginning of each bb.
26515         * Makefile.in (dce.o): Depend on $(TM_P_H).
26516
26517 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
26518
26519         PR target/22599
26520         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
26521         to make sure the insn is a conditional test (bug 22599).  Reformat a
26522         few long lines.
26523
26524 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
26525
26526         PR middle-end/38431
26527         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
26528         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
26529         (gloog): Do not call cleanup_tree_cfg.
26530         (graphite_transform_loops): Call cleanup_tree_cfg after all
26531         scops have been code generated.
26532
26533 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
26534         * doc/gty.texi (Invoking the garbage collector): Added new node
26535         and section documenting ggc_collect.
26536
26537 2009-01-14  Richard Guenther  <rguenther@suse.de>
26538
26539         PR tree-optimization/38826
26540         PR middle-end/38477
26541         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
26542         initialization notes only if we actually emitted a warning.
26543         (intra_create_variable_infos): Add constraints for a result decl
26544         that is passed by hidden reference.
26545         (build_pred_graph): Mark all related variables non-direct on
26546         address-taking.
26547
26548 2009-01-14  Nick Clifton  <nickc@redhat.com>
26549
26550         * ira-conflicts.c: Include addresses.h for the definition of
26551         base_reg_class.
26552         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
26553         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
26554
26555 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
26556
26557         PR target/38811
26558         * Makefile.in (ira-lives.o): Add except.h.
26559
26560         * ira-lives.c: Include except.h.
26561         (process_bb_node_lives): Process can_throw_internal.
26562
26563 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
26564
26565         PR rtl-optimization/38774
26566         * combine.c (simplify_set): When undoing cc_use change, don't do
26567         PUT_CODE on the newly created comparison, but instead put back the
26568         old comparison.
26569
26570 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
26571
26572         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
26573         values.  Remove duplicate arm8 entry.
26574
26575 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
26576
26577         PR tree-optimization/38786
26578         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
26579         the SSA_NAME case of expand_scalar_variables_expr.
26580         Set the type of an expression to the type of its assign statement.
26581         (expand_scalar_variables_expr): Also gather the scalar computation
26582         used to index the memory access.  Do not pass loop_p.
26583         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
26584         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
26585         the gimple_stmt_iterator where it inserts new code.
26586         Do not pass loop_p.
26587         (copy_bb_and_scalar_dependences): Do not pass loop_p.
26588         (translate_clast): Update call to copy_bb_and_scalar_dependences.
26589
26590 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
26591
26592         * graphite.h (debug_value): Removed.
26593         * graphite.c (debug_value): Removed.
26594
26595 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
26596
26597         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
26598         ldrd/strd with two 32-bit instructions.
26599
26600 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
26601
26602         * config/arm/arm.c (struct processors): Pass for speed down into
26603         cost helper functions.
26604         (const_ok_for_op): Handle COMPARE and inequality nodes.
26605         (arm_rtx_costs_1): Rewrite.
26606         (arm_size_rtx_costs): Update prototype.
26607         (arm_rtx_costs): Pass speed down to helper functions.
26608         (arm_slowmul_rtx_costs): Rework cost calculations.
26609         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
26610         (arm_9e_rtx_costs): Likewise.
26611
26612 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
26613
26614         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
26615         relocations of local symbols wider than UNITS_PER_WORD are not valid.
26616         (alpha_legitimize_address): Do not split local symbols wider than
26617         UNITS_PER_WORD into HIGH/LO_SUM parts.
26618
26619 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
26620
26621         PR bootstrap/38580
26622         * gcc.c (process_command): Replace call to execvp with calls
26623         to pex_one and exit.
26624
26625 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
26626
26627         PR target/29141
26628         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
26629         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
26630         variant for devices with 3-byte PC.
26631         (__tablejump_elpm__): New.
26632
26633 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
26634
26635         PR c/32041
26636         * c-parser.c (c_parser_postfix_expression): Allow `->' in
26637         offsetof member-designator, handle it as `[0].'.
26638
26639 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26640
26641         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
26642         function when not using named sections on targets with named sections
26643         if branch distance is less than 262132.
26644
26645 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
26646
26647         * combine.c (combine_instructions):  Recompute
26648         optimize_this_for_speed_p  for each BB in the main combine loop.
26649
26650 2009-01-12  Tomas Bily  <tbily@suse.cz>
26651
26652         PR middlend/38385
26653         * tree-loop-distribution.c (prop_phis): New function.
26654         (generate_builtin): Call prop_phis.
26655
26656 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
26657
26658         PR tree-optimization/38807
26659         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
26660         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
26661
26662 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
26663
26664         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
26665         subreg of op0 to the original op0.
26666
26667 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
26668
26669         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
26670
26671 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
26672
26673         PR debug/7055
26674         * mips-tfile.c (parse_def): Fix parsing of def strings
26675         starting with digits.
26676
26677 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
26678
26679         PR target/38695
26680         * config/arm/arm.c (arm_is_long_call_p): Don't call
26681         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
26682
26683 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
26684
26685         * regrename.c (regrename_optimize): Fix dumping.
26686         (find_oldest_value_reg): Preserve REG_POINTER.
26687         (copy_hardreg_forward_1): Likewise.
26688
26689 2009-01-09  Diego Novillo  <dnovillo@google.com>
26690
26691         * gimple.h (struct gimple_statement_base) <uid>: Document
26692         the restrictions on its use.
26693         (gimple_uid): Tidy.
26694         (gimple_set_uid): Tidy.
26695
26696 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
26697
26698         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
26699         zero guard even if align_bytes != 0 and count is smaller than
26700         size_needed.
26701
26702 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
26703
26704         PR rtl-optimization/38495
26705         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
26706         (add_range_and_copies_from_move_list): Print all added ranges.
26707         Add ranges to memory optimized destination.
26708
26709 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
26710
26711         PR target/38686
26712         PR target/38708
26713         * config/i386/i386.c (override_options): Reject
26714         -mstringop-strategy=rep_8byte with -m32.
26715         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
26716         to 1.  Do count comparison against epilogue_size_needed at compile
26717         time even when count_exp was constant forced into register.  For
26718         size_needed don't jump to epilogue, instead just avoid aligning
26719         and invoke the body algorithm.  If need_zero_guard, add zero guard
26720         even if count is non-zero, but smaller than size_needed + number of
26721         bytes that could be stored for alignment.
26722         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
26723         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
26724         but smaller than size_needed + number of bytes that could be stored
26725         for alignment.  Compare size_needed with epilogue_size_needed instead
26726         of desired_align - align, don't adjust size_needed, pass
26727         epilogue_size_needed to the epilogue expanders.
26728
26729         PR c/35742
26730         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
26731
26732 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26733
26734         * pa.c (last_address): Change to unsigned.
26735         (update_total_code_bytes): Change argument to unsigned.  Don't
26736         check if insn addresses are set.
26737         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
26738         addresses are not set.
26739         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
26740
26741 2009-01-09  Nick Clifton  <nickc@redhat.com>
26742
26743         * config/sh/symbian.c: Replace uses of DECL_INLINE with
26744         DECL_DECLARED_INLINE_P.
26745
26746 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
26747
26748         PR middle-end/38347
26749         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
26750         GET_MODE (op0) in operand_subword_force calls.
26751
26752         PR middle-end/38771
26753         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
26754         fold_convert arg0 operands to TREE_TYPE (op0) first.
26755
26756 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
26757
26758         * params.def (ira-max-conflict-table-size): Decrease default value
26759         to 1000.
26760
26761 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
26762
26763         PR tree-optimization/37031
26764         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
26765         on parameter_set.
26766         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
26767         allocate it using gc instead of heap, use VEC_quick_push instead of
26768         VEC_safe_push.
26769         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
26770         instead of heap, use VEC_quick_push instead of VEC_safe_push.
26771         * tree-data-ref.h (struct access_matrix): Change matrix to gc
26772         allocated vector from heap allocated.
26773         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
26774         * tree-loop-linear.c (linear_transform_loops): Allocate nest
26775         vector only after perfect_loop_nest_depth call.
26776
26777 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
26778             Jan Sjodin  <jan.sjodin@amd.com>
26779
26780         PR tree-optimization/38559
26781         * graphite.c (debug_value, copy_constraint,
26782         swap_constraint_variables, scale_constraint_variable, ): New.
26783         (get_lower_bound, get_upper_bound): Removed.
26784         (graphite_trans_bb_strip_mine): Clean up this code that works
26785         only for constant number of iterations.  Fully copy upper and
26786         lower bound constraints, not only the constant part of them.
26787         * graphite.h (debug_value): Declared.
26788
26789 2009-01-08  Ira Rosen  <irar@il.ibm.com>
26790
26791         PR tree-optimization/37194
26792         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
26793         Don't add the cost of cost model guard in prologue to scalar
26794         outside cost in case of known number of iterations.
26795
26796 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
26797             Alan Modra  <amodra@bigpond.net.au>
26798
26799         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
26800         non-word-aligned REG+CONST addressing.
26801
26802 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
26803
26804         PR target/38706
26805         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
26806         free_after_compilation when outputting a thunk.
26807         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
26808         Do not call free_after_compilation here.
26809
26810 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
26811
26812         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
26813         (ix86_valid_target_attribute_inner_p): Ditto.
26814
26815 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
26816
26817         PR tree-optimization/38492
26818         PR tree-optimization/38498
26819         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
26820         * tree-chrec.h (scev_is_linear_expression): Declared.
26821         * graphite.c (graphite_cannot_represent_loop_niter): New.
26822         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
26823         (graphite_loop_normal_form): Use gcc_assert.
26824         (scan_tree_for_params): Use CASE_CONVERT.
26825         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
26826         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
26827         Use gcc_assert.  Discard scops that contain unhandled cases.
26828         (build_scop_conditions): Return a boolean status for unhandled cases.
26829         (strip_mine_profitable_p): Print the loop number, not its depth.
26830         (is_interchange_valid): Pass the depth of the loop nest, don't
26831         recompute it wrongly.
26832         (graphite_trans_bb_block): Same.
26833         (graphite_trans_bb_block): Print tentative of loop blocking.
26834         (graphite_trans_scop_block): Do not print that the loop has been
26835         blocked.
26836         (graphite_transform_loops): Do not handle scops that contain condition
26837         scalar phi nodes.
26838
26839 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
26840
26841         AVX Programming Reference (December, 2008)
26842         * config/i386/avxintrin.h (_mm256_stream_si256): New.
26843         (_mm256_stream_pd): Likewise.
26844         (_mm256_stream_ps): Likewise.
26845
26846         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
26847         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
26848         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
26849         (bdesc_special_args): Add __builtin_ia32_movntdq256,
26850         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
26851         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
26852         (ix86_expand_special_args_builtin): Likewise.
26853
26854         * config/i386/sse.md (AVXMODEDI): New.
26855         (avx_movnt<mode>): Likewise.
26856         (avx_movnt<mode>): Likewise.
26857         (<sse>_movnt<mode>): Remove AVX support.
26858         (sse2_movntv2di): Likewise.
26859
26860 2009-01-07  Richard Guenther  <rguenther@suse.de>
26861
26862         PR middle-end/38751
26863         * fold-const.c (extract_muldiv): Remove obsolete comment.
26864         (fold_plusminus_mult_expr): Undo MINUS_EXPR
26865         to PLUS_EXPR canonicalization for the canonicalization.
26866
26867 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
26868
26869         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
26870         hosted cross-compilers generating less efficient code.
26871
26872 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
26873
26874         * function.h (rtl_data): Add a dbr_scheduled_p field.
26875         * reorg.c (dbr_schedule): Set it.
26876         (gate_handle_delay_slots): Check it.
26877         * config/mips/mips.c (mips_base_delayed_branch): Delete.
26878         (mips_reorg): Check flag_delayed_branch instead of
26879         mips_base_delayed_branch.
26880         (mips_override_options): Don't set mips_base_delayed_branch
26881         or flag_delayed_branch.
26882
26883 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
26884
26885         PR rtl-optimization/38426.
26886         * ira.c (ira): Set current_function_is_leaf earlier.
26887
26888 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
26889
26890         PR rtl-optimization/38722
26891         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
26892         too early, only set a flag and modify after last possible
26893         undo_all point.
26894
26895 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
26896
26897         PR c/34252
26898         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
26899         * real.c (decimal_single_format): Correct values of emin and emax.
26900         (decimal_double_format): Ditto.
26901         (decimal_quad_format): Ditto.
26902         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
26903         computation of DECnn_MIN and DECnn_MAX for corrected values of
26904         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
26905         __DECnn_MIN__, and adjust its computation for the corrected value
26906         of emin.
26907
26908 2009-01-06  Jan Hubicka  <jh@suse.cz>
26909
26910         PR target/38744
26911         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
26912
26913 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
26914
26915         * doc/contrib.texi (Contributors): Slightly adjust the end note.
26916         Add Robert Clark to the list of testers.
26917
26918 2009-01-06  Jan Hubicka  <jh@suse.cz>
26919             Kai Tietz  <kai.tietz@onevision.com>
26920
26921         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
26922         * config/i386/i386.c (ix86_expand_call): Add clobbers.
26923
26924 2009-01-06  Jan Hubicka  <jh@suse.cz>
26925             Kai Tietz  <kai.tietz@onevision.com>
26926
26927         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
26928         for w64 ABI.
26929         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
26930         (ix86_nsaved_regs): Count only general purpose regs.
26931         (ix86_nsaved_sseregs): New.
26932         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
26933         to 16 for w64; compute padding and size of sse reg save area.
26934         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
26935         general purpose regs.
26936         (ix86_emit_save_sse_regs_using_mov): New.
26937         (ix86_expand_prologue): Save SSE regs if needed.
26938         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
26939         (ix86_emit_restore_sse_regs_using_mov): New.
26940         (ix86_expand_epilogue): Save SSE regs if needed.
26941
26942 2009-01-06  Jan Hubicka  <jh@suse.cz>
26943             Kai Tietz  <kai.tietz@onevision.com>
26944
26945         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
26946         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
26947         functions when accumulate outgoing args is off.
26948
26949 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
26950
26951         PR bootstrap/38742
26952         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
26953         before using pseudos_have_intersected_live_ranges_p.
26954
26955         * ira-int.h (ira_assert): Always define.
26956
26957 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
26958
26959         AVX Programming Reference (December, 2008)
26960         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
26961         (_mm256_permute2_pd): Likewise.
26962         (_mm_permute2_ps): Likewise.
26963         (_mm256_permute2_ps): Likewise.
26964         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
26965         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
26966
26967         * config/i386/i386.c (ix86_builtins): Remove
26968         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
26969         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
26970         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
26971         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
26972         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
26973         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
26974         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
26975         __builtin_ia32_vpermil2ps256.
26976         (ix86_init_mmx_sse_builtins): Updated.
26977         (ix86_expand_args_builtin): Likewise.
26978
26979 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26980
26981         * pa.c (output_call): Relocate non-jump insns in the delay slot of
26982         long absolute calls when generating PA 2.0 code.
26983
26984 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
26985
26986         PR rtl-optimization/38583
26987         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
26988
26989         * params.def (ira-max-conflict-table-size): New.
26990
26991         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
26992
26993         * ira.h (ira_conflicts_p): New external definition.
26994
26995         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
26996         table.  Report this.  Return result of building.
26997         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
26998         building conflict table.
26999
27000         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
27001         (ira_color): Use ira_conflicts_p.
27002
27003         * global.c: Include ira.h.
27004         (pseudo_for_reload_consideration_p, build_insn_chain): Use
27005         ira_conflicts_p.
27006
27007         * Makefile.in (global.o): Add ira.h.
27008
27009         * ira-build.c (mark_all_loops_for_removal,
27010         propagate_some_info_from_allocno): New.
27011         (remove_unnecessary_allocnos): Call
27012         propagate_some_info_from_allocno.
27013         (remove_low_level_allocnos): New.
27014         (remove_unnecessary_regions): Add parameter.  Call
27015         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
27016         parameter to remove_unnecessary_regions.
27017         (ira_build): Remove all regions but root if the conflict table was
27018         not built.  Update conflict hard regs for allocnos crossing calls.
27019
27020         * ira.c (ira_conflicts_p): New global.
27021         (ira): Define and use ira_conflicts_p.
27022
27023         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
27024         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
27025         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
27026
27027 2009-01-06  Ben Elliston  <bje@au.ibm.com>
27028
27029         * gengtype-lex.l (YY_NO_INPUT): Define.
27030
27031 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27032
27033         PR c/34911
27034         * c-common.c (handle_vector_size_attribute): Also reject
27035         BOOLEAN_TYPE types.
27036
27037 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
27038
27039         PR tree-optimization/38492
27040         * graphite.c (rename_map_elt, debug_rename_elt,
27041         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
27042         rename_map_elt_info, eq_rename_map_elts,
27043         get_new_name_from_old_name, bb_in_sese_p): Moved around.
27044         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
27045         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
27046         (sese_build_livein_liveouts): New.
27047         (new_sese, free_sese): New.
27048         (new_scop): Call new_sese.
27049         (free_scop): Call free_sese.
27050         (rename_variables_from_edge, rename_phis_end_scop): Removed.
27051         (register_old_new_names): Renamed register_old_and_new_names.
27052         (register_scop_liveout_renames, add_loop_exit_phis,
27053         insert_loop_close_phis, struct igp,
27054         default_liveout_before_guard, add_guard_exit_phis,
27055         insert_guard_phis, copy_renames): New.
27056         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
27057         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
27058         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
27059         (scop_adjust_phis_for_liveouts): New.
27060         (gloog): Call scop_adjust_phis_for_liveouts.
27061
27062         * graphite.h (struct sese): Documented.  Added fields liveout,
27063         num_ver and livein.
27064         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
27065         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
27066         (struct scop): Added field liveout_renames.
27067         (SCOP_LIVEOUT_RENAMES): New.
27068
27069 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
27070
27071         PR tree-optimization/38510
27072         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
27073         (translate_clast): Call recompute_all_dominators before
27074         graphite_verify.
27075         (gloog): Call recompute_all_dominators before graphite_verify.
27076
27077 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
27078             Jan Sjodin  <jan.sjodin@amd.com>
27079
27080         PR tree-optimization/38500
27081         * graphite.c (create_sese_edges): Call fix_loop_structure after
27082         splitting blocks.
27083
27084 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
27085
27086         * config.gcc: Add m32r*-*-rtems*.
27087         * config/m32r/rtems.h: New file.
27088
27089 2009-01-05  Ben Elliston  <bje@au.ibm.com>
27090
27091         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
27092         (.po.pox): Likewise.
27093         (po/gcc.pot): Likewise.
27094
27095 2009-01-04  David S. Miller  <davem@davemloft.net>
27096
27097         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
27098         (STARTING_FRAME_OFFSET): Always set to zero.
27099
27100 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
27101
27102         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
27103         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
27104         fixed-point types, and vectors of the same.
27105
27106 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
27107
27108         * config/mips/sync.md (*mb_barrier): Rename to...
27109         (*memory_barrier): ...this.
27110
27111 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
27112
27113         * doc/extend.texi (Function Attributes): Move @cindex after @item
27114         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
27115         and put in alphabetical order. Fix 'target' name and put in order.
27116         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
27117         typos.
27118
27119 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
27120
27121         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
27122         (memory_barrier): Expand as unspec instead of unspec_volatile.
27123         Remove mem:BLK from insn operands.  Use Pmode scratch register.
27124         (*memory_barrier): Define as unspec instead of unspec_volatile.
27125         Use (match_dup 0) as input operand.
27126
27127         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
27128         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
27129         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
27130         scratch register.  Remove operand 1.
27131         (*stbar): Define as unspec instead of unspec_volatile.
27132         Use (match_dup 0) as input operand, remove (const_int 8).
27133         (*membar): Define as unspec instead of unspec_volatile.
27134         Use (match_dup 0) as input operand, remove input operand 2.
27135
27136         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
27137         (memory_barrier): Expand as unspec instead of unspec_volatile.
27138         Remove mem:BLK from insn operands.  Use Pmode scratch register.
27139         (*memory_barrier): Define as unspec instead of unspec_volatile.
27140         Use (match_dup 0) as input operand.
27141
27142         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
27143         Remove mem:BLK from insn operands.  Use Pmode scratch register.
27144         Set volatile flag on operand 0.
27145         (*memory_barrier): New insn pattern.
27146
27147         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
27148         insn operands.
27149         (*memory_barrier): Use (match_dup 0) as input operand.
27150
27151         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
27152         Remove mem:BLK from insn operands.  Use Pmode scratch register.
27153         Set volatile flag on operand 0.
27154         (*mb_internal): New insn pattern.
27155
27156         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
27157
27158 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
27159
27160         PR middle-end/38586
27161         * function.c (struct temp_slot): Move to the section of the file
27162         that deals with temp slots.  Remove field 'address'.
27163         (temp_slot_address_table): New hash table of address -> temp slot.
27164         (struct temp_slot_address_entry): New struct, items for the table.
27165         (temp_slot_address_compute_hash, temp_slot_address_hash,
27166         temp_slot_address_eq, insert_temp_slot_address): Support functions
27167         for the new table.
27168         (find_temp_slot_from_address): Rewrite to use the new hash table.
27169         (remove_unused_temp_slot_addresses): Remove addresses of temp
27170         slots that have been made available.
27171         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
27172         worker function for remove_unused_temp_slot_addresses.
27173         (assign_stack_temp_for_type): Don't clear the temp slot address list.
27174         Add the temp slot address to the address -> temp slot map.
27175         (update_temp_slot_address): Update via insert_temp_slot_address.
27176         (free_temp_slots): Call remove_unused_temp_slot_addresses.
27177         (pop_temp_slots): Likewise.
27178         (init_temp_slots): Allocate the address -> temp slot map, or empty
27179         the map if it is already allocated.
27180         (prepare_function_start): Initialize temp slot processing.
27181
27182 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
27183
27184         PR middle-end/38584
27185         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
27186         Calculate the size of all stack vars assuming no packing of stack
27187         vars will happen, replacing a quadratic algorithm with a linear one.
27188
27189 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
27190
27191         PR target/38707
27192         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
27193         can't be used.
27194
27195 2009-01-03  Diego Novillo  <dnovillo@google.com>
27196
27197         * doc/contrib.texi: Update contributions.
27198
27199 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
27200
27201         PR c++/38705
27202         * builtins.c (fold_builtin_memory_op): Give up if either operand
27203         is volatile.  Set srctype or desttype to non-qualified version
27204         of the other type.
27205
27206         PR c/38700
27207         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
27208         and FUNCTION_DECLs.
27209
27210 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
27211
27212         PR rtl-optimization/35805
27213         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
27214         problem if fast dce is able to remove any instructions.
27215         * dce.c (dce_process_block): Fix dump message.
27216
27217 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
27218
27219         PR 33649
27220         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
27221
27222 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
27223
27224         PR middle-end/38690
27225         * tree-flow.h (op_code_prio, op_prio): New prototypes.
27226         * tree-pretty-print.c (op_code_prio): New function.
27227         (op_prio): No longer static.  Use op_code_prio.
27228         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
27229         Use op_prio and op_code_prio to determine if () should be
27230         printed around operand(s) or not.
27231
27232         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
27233         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
27234         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
27235         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
27236         pp_character instead of pp_string for single letter printing.
27237
27238 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
27239
27240         * doc/extend.texi: Fix '#pragma GCC option' typo.
27241
27242 2009-01-02  Richard Guenther  <rguenther@suse.de>
27243
27244         * doc/install.texi (--enable-checking): Mention different
27245         default for stage1.
27246         (--enable-stage1-checking): Document.
27247
27248 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
27249
27250         PR middle-end/30142
27251         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
27252         case to be an error.
27253
27254 2009-01-02  Ben Elliston  <bje@au.ibm.com>
27255
27256         * config/fp-bit.h (pack_d): Constify argument.
27257         * config/fp-bit.c (makenan): Constify return type. Remove casts.
27258         (isnan): Constify argument.
27259         (isinf): Likewise.
27260         (iszero): Likewise.
27261         (pack_d): Likewise.
27262         (_fpadd_parts): Constify return type.
27263         (_fpmul_parts): Likewise.
27264         (_fpdiv_parts): Likewise.
27265
27266 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
27267
27268         PR c/36489
27269         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
27270         warn about overwriting initializer with side-effects or
27271         -Woverride-init if !IMPLICIT.
27272         (output_init_element): Likewise.  Pass IMPLICIT down to
27273         add_pending_init.
27274         (process_init_element): Add IMPLICIT argument.  Pass it down
27275         to output_init_element.
27276         (push_init_element, pop_init_level, set_designator): Adjust
27277         process_init_element callers.
27278         (set_nonincremental_init, set_nonincremental_init_from_string):
27279         Adjust add_pending_init callers.
27280         (output_pending_init_elements): Adjust output_init_element callers.
27281         * c-tree.h (process_init_element): Adjust prototype.
27282         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
27283         process_init_element callers.
27284
27285 \f
27286 Copyright (C) 2009 Free Software Foundation, Inc.
27287
27288 Copying and distribution of this file, with or without modification,
27289 are permitted in any medium without royalty provided the copyright
27290 notice and this notice are preserved.