OSDN Git Service

* config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
2             Maxim Kuvyrkov  <maxim@codesourcery.com>
3  
4         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
5
6 2009-10-02  Nick Clifton  <nickc@redhat.com>
7
8         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
9         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
10
11 2009-10-01  Jan Hubicka  <jh@suse.cz>
12
13         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
14         (cgraph_create_virtual_clone): Just pass redirect_callers
15         around.
16         * cgraph.h (cgraph_clone_node): Update prototype.
17         * ipa-pure-const.c (self_recursive_p): New function.
18         (propagate): Use it.
19         * ipa-inline.c (cgraph_clone_inlined_nodes,
20         cgraph_decide_recursive_inlining): Update.
21
22 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
23
24         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
25         instructions for TARGET_OCTEON.
26
27 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28
29         * config/arm/arm.c (arm_override_options): Turn off
30         flag_dwarf2_cfi_asm for AAPCS variants.
31
32 2009-10-01  Martin Jambor  <mjambor@suse.cz>
33
34         PR middle-end/12392
35         * tree-sra.c (convert_callers): Do not call
36         compute_inline_parameters on one caller more than once.
37
38 2009-10-01  Nick Clifton  <nickc@redhat.com>
39
40         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
41         an empty string if not already defined.
42
43 2009-10-01  Martin Jambor  <mjambor@suse.cz>
44
45         PR bootstrap/41395
46         * tree-sra.c (is_va_list_type): New function.
47         (find_var_candidates): Call is_va_list_type.
48         (find_param_candidates): Check that the type or the type pointed
49         to are not va_list types.
50
51 2009-10-01  Martin Jambor  <mjambor@suse.cz>
52
53         PR c++/41503
54         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
55         DECL_ARTIFICIAL (param_decl) is true.
56         
57 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
58
59         * tree.h (tree_decl_common::lang_flag_8): New.
60         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
61         keyword. 
62         * c-common.h (RID_CONSTEXPR): New.
63
64 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
65
66         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
67         Use ref-all pointers.
68         (alpha_gimplify_va_arg): Ditto.
69
70 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
71
72         PR target/41279
73         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
74         before insn counting loop now that BB_END (bb) is counted.  Ensure
75         the return value isn't zero.
76
77 2009-09-30  Nick Clifton  <nickc@redhat.com>
78
79         * config.gcc (sh-symbianelf): Replace definition of extra_objs
80         with separate definitions of c_target_objs and cxx_target_objs.
81         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
82         and symbian-base.o.
83         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
84         sh_symbian_import_export_class.
85         * config/sh/sh-protos.h: Fix names of exported symbian functions.
86         * config/sh/symbian.c: Delete, moving code into...
87         * config/sh/symbian-base.c: ... here
88         * config/sh/symbian-c.c: ... and here
89         * config/sh/symbian-cxx.c: ... and here.
90
91 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
92
93         PR target/22093
94         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
95         of plus RTX into register.
96
97 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98
99         * doc/install.texi: Linguistic and markup fixes.
100         (Configuration) <--disable-cpp>: Remove description.
101         <--enable-maintainer-mode>: Autotools files are affected, too.
102         <--with-sysroot>: Improve description.
103         (Building): Bump required GNU make version.
104
105 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
106
107         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
108         (x86_64-*-*): Ditto.
109
110         * config/i386/fma4intrin.h: New file, provide common x86 compiler
111         intrinisics for FMA4.
112         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
113         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
114         Add FMA4 check and fma4intrin.h.
115         * config/i386/i386-c.c(ix86_target_macros_internal): Check
116         ISA_FLAG for FMA4.
117         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
118         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
119         constant for FMA4 support.
120         (UNSPEC_FMA4_FMADDSUB): Ditto.
121         (UNSPEC_FMA4_FMSUBADD): Ditto.
122         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
123         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
124         (ix86_expand_fma4_multiple_memory): Ditto.
125         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
126         (OPTION_MASK_ISA_FMA4_UNSET): New.
127         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
128         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
129         (ix86_handle_option): Handle -mfma4.
130         (isa_opts): Handle -mfma4.
131         (enum pta_flags): Add PTA_FMA4.
132         (override_options): Add FMA4 support.
133         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
134         (IX86_BUILTIN_VFMADDSD): Ditto.
135         (IX86_BUILTIN_VFMADDPS): Ditto.
136         (IX86_BUILTIN_VFMADDPD): Ditto.
137         (IX86_BUILTIN_VFMSUBSS): Ditto.
138         (IX86_BUILTIN_VFMSUBSD): Ditto.
139         (IX86_BUILTIN_VFMSUBPS): Ditto.
140         (IX86_BUILTIN_VFMSUBPD): Ditto.
141         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
142         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
143         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
144         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
145         (IX86_BUILTIN_VFNMADDSS): Ditto.
146         (IX86_BUILTIN_VFNMADDSD): Ditto.
147         (IX86_BUILTIN_VFNMADDPS): Ditto.
148         (IX86_BUILTIN_VFNMADDPD): Ditto.
149         (IX86_BUILTIN_VFNMSUBSS): Ditto.
150         (IX86_BUILTIN_VFNMSUBSD): Ditto.
151         (IX86_BUILTIN_VFNMSUBPS): Ditto.
152         (IX86_BUILTIN_VFNMSUBPD): Ditto.
153         (IX86_BUILTIN_VFMADDPS256): Ditto.
154         (IX86_BUILTIN_VFMADDPD256): Ditto.
155         (IX86_BUILTIN_VFMSUBPS256): Ditto.
156         (IX86_BUILTIN_VFMSUBPD256): Ditto.
157         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
158         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
159         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
160         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
161         (IX86_BUILTIN_VFNMADDPS256): Ditto.
162         (IX86_BUILTIN_VFNMADDPD256): Ditto.
163         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
164         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
165         (enum multi_arg_type): New enum for describing the various FMA4
166         intrinsic argument types.
167         (bdesc_multi_arg): New table for FMA4 intrinsics.
168         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
169         (ix86_expand_multi_arg_builtin): New function for creating FMA4
170         intrinsics.
171         (ix86_expand_builtin): Add FMA4 intrinsic support.
172         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
173         operand instructions.
174         (ix86_expand_fma4_multiple_memory): New function to split the
175         second memory reference from FMA4 instructions.
176         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
177         (ssemodesuffixf2s): Ditto.
178         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
179         instructions.
180         (fma4_fmsub<mode>4): Ditto.
181         (fma4_fnmadd<mode>4): Ditto.
182         (fma4_fnmsub<mode>4): Ditto.
183         (fma4_vmfmadd<mode>4): Ditto.
184         (fma4_vmfmsub<mode>4): Ditto.
185         (fma4_vmfnmadd<mode>4): Ditto.
186         (fma4_vmfnmsub<mode>4): Ditto.
187         (fma4_fmadd<mode>4256): Ditto.
188         (fma4_fmsub<mode>4256): Ditto.
189         (fma4_fnmadd<mode>4256): Ditto.
190         (fma4_fnmsub<mode>4256): Ditto.
191         (fma4_fmaddsubv8sf4): Ditto.
192         (fma4_fmaddsubv4sf4): Ditto.
193         (fma4_fmaddsubv4df4): Ditto.
194         (fma4_fmaddsubv2df4): Ditto.
195         (fma4_fmsubaddv8sf4): Ditto.
196         (fma4_fmsubaddv4sf4): Ditto.
197         (fma4_fmsubaddv4df4): Ditto.
198         (fma4_fmsubaddv2df4): Ditto.
199         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
200         instructions for intrinsics.
201         (fma4i_fmsub<mode>4): Ditto.
202         (fma4i_fnmadd<mode>4): Ditto.
203         (fma4i_fnmsub<mode>4): Ditto.
204         (fma4i_vmfmadd<mode>4): Ditto.
205         (fma4i_vmfmsub<mode>4): Ditto.
206         (fma4i_vmfnmadd<mode>4): Ditto.
207         (fma4i_vmfnmsub<mode>4): Ditto.
208         (fma4i_fmadd<mode>4256): Ditto.
209         (fma4i_fmsub<mode>4256): Ditto.
210         (fma4i_fnmadd<mode>4256): Ditto.
211         (fma4i_fnmsub<mode>4256): Ditto.
212         (fma4i_fmaddsubv8sf4): Ditto.
213         (fma4i_fmaddsubv4sf4): Ditto.
214         (fma4i_fmaddsubv4df4): Ditto.
215         (fma4i_fmaddsubv2df4): Ditto.
216         (fma4i_fmsubaddv8sf4): Ditto.
217         (fma4i_fmsubaddv4sf4): Ditto.
218         (fma4i_fmsubaddv4df4): Ditto.
219         (fma4i_fmsubaddv2df4): Ditto.
220
221         * doc/invoke.texi (-mfma4): Add documentation.
222         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
223
224 2009-09-29  Richard Henderson  <rth@redhat.com>
225
226         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
227         an edge to the new destination block.
228
229 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
230
231         PR target/41393
232         * pa.c (hppa_profile_hook): Use
233         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
234
235 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
236             Alexander Monakov  <amonakov@ispras.ru>
237
238         PR target/41365
239         * config/ia64/predicates.md (not_postinc_destination_operand): New.
240         (not_postinc_memory_operand): New.
241         (not_postinc_move_operand): New.
242         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
243         (*cmovsi_internal): Ditto.
244
245 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
246
247         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
248         restrict issue_rate in first pass when scheduling for register
249         pressure.
250
251 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
252             Rafael Avila de Espindola  <espindola@google.com>
253
254         * gengtype.c (plugin_output): New.
255         (get_output_file_with_visibility): Return plugin_output for plugins.
256         (main): Parse and use the -P option.
257         * gty.texi: Update the command line format.
258
259 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
260
261         PR debug/41438
262         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
263         functions.
264         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
265         out if !const_ok_for_output.
266
267         PR debug/41474
268         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
269         case VAR_LOCATION>: Remove gcc_unreachable ().
270
271 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
272
273         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
274         (x86_64-*-*): Ditto.
275         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
276         back to smmintrin.h.
277         * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
278         * config/i386/x86intrin.h: Remove SSE5.
279         * config/i386/mmintrin-common.h: Delete file.
280         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
281
282 2009-09-29  Richard Guenther  <rguenther@suse.de>
283
284         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
285         resulting from stack temporaries on STRICT_ALIGNMENT targets.
286
287 2009-09-29  Nick Clifton  <nickc@redhat.com>
288
289         * function.c (current_function_name): If there is no current
290         function just return "<none>".
291
292 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
293
294         * tree-pass.h (register_pass_info): New structure.
295         (pass_positioning_ops): Move enum from gcc-plugin.h.
296         (register_pass): New function.
297         * gcc-plugin.h (plugin_pass): Delete structure.
298         (pass_positioning_ops): Delete enum.
299         * plugin.c (regsiter_pass): Delete function.
300         (position_pass): Delete function.
301         (added_pass_nodes): Delete variable.
302         (prev_added_pass_nodes): Delete variable.
303         (pass_list_node): Delete structure.
304         * passes.c (make_pass_instance): New function.
305         (next_pass_1): Change to call make_pass_instance.
306         (pass_list_node): Move structure from gcc-plugin.h.
307         (added_pass_nodes): Move variable from plugin.c.
308         (prev_added_pass_nodes): Move variable from plugin.c.
309         (position_pass): New function.
310         (register_pass): New function.
311
312 2009-09-28  Easwaran Raman  <eraman@google.com>
313
314         * ifcvt.c (noce_try_abs): Recognize pattern and call
315         expand_one_cmpl_abs_nojump.
316         * optabs.c (expand_one_cmpl_abs_nojump): New function.
317         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
318
319 2009-09-28  Ian Lance Taylor  <iant@google.com>
320
321         PR middle-end/40500
322         * c-opts.c (c_common_handle_option): Don't set
323         warn_jump_misses_init for -Wall.
324         * doc/invoke.texi (Warning Options): Update documentation.
325
326 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
327
328         * Makefile.in ($(out_object_file)): Depend on
329         gt-$(basename $(notdir $(out_file))).h.
330
331 2009-09-28  Richard Henderson  <rth@redhat.com>
332
333         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
334         * except.c (gen_eh_region): Set it.
335         (duplicate_eh_regions_1): Copy it.
336         * tree-eh.c (lower_resx): Use it to determine which function
337         to call to resume.
338
339         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
340         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
341         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
342         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
343         BUILT_IN_CXA_END_CLEANUP if necessary.
344
345         * c-common.c (c_define_builtins): Update call to
346         build_common_builtin_nodes.
347
348 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
349
350         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
351
352 2009-09-28  Michael Matz  <matz@suse.de>
353
354         * builtins.c (interclass_mathfn_icode): New helper.
355         (expand_builtin_interclass_mathfn): Use it here, and split folding
356         into ...
357         (fold_builtin_interclass_mathfn): ... this new folder.
358         (build_call_nofold_loc): New static helper.
359         (build_call_nofold): New wrapper macro for above.
360         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
361         (expand_builtin_pow): Ditto.
362         (expand_builtin_memset_args): Ditto.
363         (expand_builtin_printf): Ditto.
364         (expand_builtin_fprintf): Ditto.
365         (expand_builtin_sprintf): Ditto.
366         (expand_builtin_memory_chk): Ditto.
367         (expand_builtin_mempcpy_args): Ditto and don't call folders.
368         (expand_builtin_stpcpy): Ditto.
369         (expand_builtin_strcmp): Ditto.
370         (expand_builtin_strncmp): Ditto.
371         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
372         (expand_builtin_strcpy_args): Don't call folders.
373         (expand_builtin_memcmp): Ditto.
374         (expand_builtin_strncpy): Ditto, and use target.
375         (expand_builtin_memcpy): Ditto.
376         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
377         expand_builtin_strpbrk, expand_builtin_memmove,
378         expand_builtin_memmove_args, expand_builtin_bcopy,
379         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
380         expand_builtin_strspn, expand_builtin_strcspn,
381         expand_builtin_fputs): Remove these.
382         (expand_builtin): Don't call the above, change calls to other
383         expanders that changed prototype.
384         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
385         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
386         fold_builtin_interclass_mathfn.
387         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
388         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
389
390         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
391         * passes.c (init_optimization_passes): Move pass_fold_builtins
392         after last phiopt pass.
393         * tree-inline.c (fold_marked_statements): When folding builtins
394         iterate over all instruction potentially generated.
395         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
396         earlier.
397         (fold_gimple_call): Use it to always fold calls (into potentially
398         multiple instructions).
399         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
400         calls into zero at this time.
401         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
402         statements generated by builtin folding.
403
404 2009-09-28  Nick Clifton  <nickc@redhat.com>
405
406         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging
407         insns.
408
409 2009-09-28  Duncan Sands  <baldrick@free.fr>
410
411         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
412         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
413         (register_callback): Dispatch it.
414         (invoke_plugin_callbacks): Incorporate in sanity check.
415         * ggc.h (ggc_register_cache_tab): Add declaration.
416         * ggc-common.c (ggc_register_root_tab): Simplify.
417         (const_ggc_cache_tab_t): New typedef.
418         (extra_cache_vec): New vector of dynamically added cache tables.
419         (ggc_register_cache_tab): New function.
420         (ggc_scan_cache_tab): New function.
421         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
422         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
423
424 2009-09-27  Richard Henderson  <rth@redhat.com>
425
426         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
427         which we remove __builtin_stack_restore.
428
429 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
430
431         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
432         to test for GRD_INVARIANT.
433         (simple_rhs_p): Anything that's function_invariant_p is fine.
434
435 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
436
437         * gengtype.c (main): Use plunge_files instead of plugin_output.
438
439 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
440             Rafael Avila de Espindola  <espindola@google.com>
441
442         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
443         Don't print pch related info if it is false.
444         (main): Don't print pch info in plugin mode.
445
446 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
447
448         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
449         with dw_val_class_const_double.
450         (struct dw_val_struct): Replace val_long_long with val_double and
451         adjust for above change.
452         (output_loc_operands): Likewise.
453         (add_AT_long_long): Rename into...
454         (add_AT_double): ...this.
455         (print_die): Replace dw_val_class_long_long with
456         dw_val_class_const_double and adjust.
457         (attr_checksum): Likewise.
458         (same_dw_val_p): Likewise.
459         (size_of_die): Likewise.
460         (value_format): Likewise.
461         (output_die): Likewise.
462         (loc_descriptor) <CONST_DOUBLE>: Likewise.
463         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
464         instead of add_AT_long_long.
465         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
466         value with the precision of its type.
467
468 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
469
470         PR c/41476
471         * c-typeck.c (build_conditional_expr): Use the readonly and
472         volatile flags of the operand types, not of the operands itself.
473
474 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
475
476         collect2.c (main): Look for -brtl before adding libraries.
477
478 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
479
480         * config.gcc: Update OpenBSD targets.
481         * config/openbsd-stdint.h: New file.
482         * config/openbsd-libpthread.h: New file.
483         * config/openbsd.h: Update and break out LIB_SPEC definition.
484         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
485         * config/i386/openbsdelf.h: Correct types.
486         * config/m68k/openbsd.h: Likewise.
487         * config/mips/openbsd.h: Likewise.
488         * config/vax/openbsd.h: Likewise.
489
490 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
491
492         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
493         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
494         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
495         of the length and zero.
496
497 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
498
499         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
500         (FLAGS_H): Add options.h $(REAL_H).
501         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
502         (TREE_VECTORIZER_H): New.
503         (EBITMAP_H): Renamed from EBIMAP_H.
504         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
505         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
506         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
507         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
508         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
509         (graphite-clast-to-gimple.o, graphite-dependences.o)
510         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
511         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
512         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
513         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
514         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
515         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
516         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
517         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
518         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
519         updated and fixed as per above changes and per
520         check_makefile_deps.sh output.
521
522         PR bootstrap/40928
523         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
524         * configure: Regenerate.
525
526 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
527
528         * doc/install.texi: Update minimum MPC version to 0.7.
529
530 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
531
532         * doc/install.texi (Binaries): Remove reference to the binary
533         distribution CD-ROM from the FSF.
534
535 2009-09-26  Michael Matz  <matz@suse.de>
536
537         PR lto/40758
538         PR middle-end/41470
539         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
540         that are mentioned in the body.
541
542 2009-09-26  Michael Matz  <matz@suse.de>
543
544         PR tree-optimization/41454
545         * tree-ssa-dom (stmts_to_rescan): Remove variable.
546         (tree_ssa_dominator_optimize): Don't allocate and free it.
547         (dom_opt_leave_block): Don't iterate over it.
548         (eliminate_redundant_computations): Don't return a value.
549         (cprop_operand, cprop_into_stmt): Ditto.
550         (optimize_stmt): Don't defer updating stmts.
551
552 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
553
554         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
555         generic_parameter_die, template_parameter_pack_die,
556         gen_formal_parameter_die, gen_subprogram_die): Adjust after renaming
557         DW_TAG_formal_parameter_pack and DW_TAG_template_parameter_pack into
558         DW_TAG_GNU_formal_parameter_pack and DW_TAG_GNU_template_parameter_pack.
559
560 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
561
562         * config/v850/v850.h (FUNCTION_VALUE): Remove.
563         * config/v850/v850.c (v850_function_value): New function.
564         (TARGET_FUNCTION_VALUE): Define.
565
566 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
567
568         * tree-vect-stmts.c (vectorizable_call): Call
569         mark_symbols_for_renaming after vect_finish_stmt_generation.
570
571         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
572         to loc_descriptor_from_tree.
573         (add_location_or_const_value_attribute): Pass 0 instead of 2
574         for decl_by_reference_p decls.
575
576 2009-09-25  Richard Guenther  <rguenther@suse.de>
577
578         PR middle-end/41463
579         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
580         arrays again.
581
582 2009-09-25  Ben Elliston  <bje@au.ibm.com>
583
584         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
585         after `power7'.
586
587 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
588
589         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
590         form of instruction.
591
592 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
593
594         PR middle-end/41435
595         * fold-const.c (const_binop): Handle complex int division.
596         * tree-complex.c (expand_complex_div_straight,
597         expand_complex_div_wide): Update comments.
598
599 2009-09-24  DJ Delorie  <dj@redhat.com>
600
601         PR target/41456
602         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
603         (reg_class): Likewise.
604         (REG_CLASS_NAMES): Likewise.
605         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
606
607         * config/m32c/m32c.c (m32c_override_options): Disable -fivopts for
608         M32C.
609
610 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
611
612         * config/rs6000/predicates.md (indexed_or_indirect_operand):
613         Delete VSX load/store with update support.
614         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
615         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
616         (vsx_movti): Ditto.
617         (VSX_U): Delete.
618         (VSbit): Ditto.
619         (VStype_load_update): Ditto.
620         (VStype_store_update): Ditto.
621         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
622         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
623
624         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
625         load/store with update builtins.
626
627 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
628
629         * libgcc2.c (L_trampoline): Prototype for getpagesize
630         and mprotect in WINNT case.
631
632 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
633
634         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
635         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
636         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
637         'outgoing' argument.
638         (TARGET_FUNCTION_VALUE): Define.
639
640 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
641
642         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
643
644 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
645
646         PR bootstrap/41405
647         * common.opt: Initialize dwarf_strict to -1.
648         * toplev.c (process_options): Catch unset dwarf_strict
649         and set to 0 for all targets not overriding.
650         * config/darwin.c (darwin_override_options): Catch unset
651         dwarf_strict and override to 1.
652
653 2009-09-24  Jeff Law  <law@redhat.com>
654
655         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
656
657 2009-09-24  Richard Guenther  <rguenther@suse.de>
658
659         PR tree-optimization/36143
660         PR tree-optimization/38747
661         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
662         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
663
664 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
665
666         PR bootstrap/41457
667         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
668         return false instead of gcc_unreachable ().  For CONST return the
669         value returned by recursive call instead of always returning true.
670         (tree_add_const_value_attribute): Return the value returned by
671         add_const_value_attribute instead of always returning true if rtl
672         is non-NULL.
673
674 2009-09-23  Justin Seyster  <jrseys@gmail.com>
675
676         * Makefile.in (PLUGIN_HEADERS): Include real.h.
677
678 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
679
680         * cgraphunit.c (cgraph_lower_function): Revert last change.
681         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
682         instead of DECL_NO_STATIC_CHAIN.
683         * tree-cfg.c (verify_gimple_call): Likewise.
684         * tree-nested.c (get_chain_decl, get_chain_field,
685         convert_tramp_reference_op, convert_gimple_call): Likewise.
686         (convert_all_function_calls): Likewise.  Always set or clear
687         DECL_STATIC_CHAIN initially, for !n->outer clear it.
688         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
689         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
690         if nested.
691         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
692         DECL_NO_STATIC_CHAIN.
693         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
694         instead of DECL_NO_STATIC_CHAIN.
695         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
696         decl_function_context.
697         * varasm.c (initializer_constant_valid_p): Likewise.
698         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
699         (DECL_STATIC_CHAIN): ... this.
700         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
701         instead of DECL_NO_STATIC_CHAIN.
702
703 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
704             Rafael Avila de Espindola  <espindola@google.com>
705
706         * gengtype.c (nb_plugin_files): Make it unsigned to match
707         num_gt_files. Adjust other variables to avoid warnings.
708         (main): Allocate an all zero lang_bitmap before each plugin file name
709         to match regular file names.
710
711 2009-09-23  Richard Henderson  <rth@redhat.com>
712
713         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
714         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
715         static chain passed in memory.
716         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
717         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
718         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
719         STATIC_CHAIN_REGNUM defined.
720
721         * config/picochip/picochip-protos.h: s/class/klass/.
722         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
723         (picochip_static_chain): New.
724         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
725         (STATIC_CHAIN_INCOMING): Remove.
726
727         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
728         (xtensa_static_chain): New.
729         * config/xtensa/xtensa.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
730
731 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
732
733         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
734         * config/pa/pa-protos.h (function_value): Remove.
735         * config/pa/pa.c (pa_function_value): Rename from function_value.
736         Make static, add 'outgoing' argument.
737         (TARGET_FUNCTION_VALUE): Define.
738
739 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
740
741         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
742         instead of cfun->machine->is_leaf.
743         * config/avr/avr.h (machine_function): Remove is_leaf field.
744
745 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
746
747         PR debug/41439
748         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
749         DW_OP_piece after DW_OP_stack_value, adjust size calculations
750         for it, when DW_OP_stack_value and DW_OP_implicit_value has
751         the same size, prefer DW_OP_stack_value.
752         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
753         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
754
755 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
756
757         PR debug/41353
758         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
759
760 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
761
762         PR debug/41248
763         * cfgexpand.c (convert_debug_memory_address): New.
764         (expand_debug_expr): Convert base address and offset to the same
765         mode.  Use it to convert addresses to other modes.  Accept
766         ptr_mode addresses.
767
768 2009-09-23  Richard Guenther  <rguenther@suse.de>
769
770         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
771         produced for bigendian targets with promoted subregs.
772
773 2009-09-23  Richard Guenther  <rguenther@suse.de>
774
775         * value-prof.c (gimple_ic): Purge old EH edges only after building
776         the new ones.
777
778 2009-09-23  Nick Clifton  <nickc@redhat.com>
779
780         * config/arc/arc.c (arc_trampoline_init): Fix typo.
781
782 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
783
784         PR bootstrap/41405
785         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
786
787         PR bootstrap/41436
788         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
789         on non-nested functions.
790
791 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
792             Jan Hubicka  <jh@suse.cz>
793
794         * dwarf2out.c (loc_list_plus_const): Only define if
795         DWARF2_DEBUGGING_INFO.
796         (address_of_int_loc_descriptor): Likewise.
797
798         PR debug/41411
799         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
800
801 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
802
803         PR c/39779
804         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
805         constant is more than zero.
806
807 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
808
809         PR target/40473
810         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
811         call final to emit non-scheduled prologue, instead insert at entry.
812
813 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
814             Joseph S. Myers  <joseph@codesourcery.com>
815
816         * doc/install.texi (*-*-freebsd*): Add proper format codes.
817
818 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
819             Rafael Avila de Espindola  <espindola@google.com>
820
821         * gengtype.c (is_file_equal): New function.
822         (close_output_files): Use is_file_equal. Free of->buf.
823
824 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
825             Rafael Avila de Espindola  <espindola@google.com>
826
827         * gengtype.c (write_types, write_local): Add the output_header
828         argument. Update all callers.
829
830 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
831
832         * dwarf2out.c (template_parameter_pack_die,
833         gen_formal_parameter_pack_die ): New functions.
834         (make_ith_pack_parameter_name): Remove this function.
835         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
836         DW_TAG_formal_parameter_pack.
837         (gen_generic_params_dies): Represent each template parameter pack
838         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
839         represented by usual DW_TAG_template_*_parameter DIEs that are
840         children of the DW_TAG_template_parameter_pack element DIE.
841         (generic_parameter_die): This doesn't deal with parameter pack
842         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
843         of parameter pack DIEs.
844         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
845         in certain cases, e.g. for pack elements.
846         (gen_formal_types_die, gen_decl_die): Adjust usage of
847         gen_formal_parameter_die.
848         (gen_subprogram_die): Represent each function parameter pack by a
849         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
850         represented by usual DW_TAG_formal_parameter DIEs that are children
851         of the DW_TAG_formal_parameter_pack DIE. Remove references to
852         ____builtin_va_alist decls as no part of the compiler uses those
853         anymore.
854         * langhooks.h (struct lang_hooks_for_decls): Add
855         function_parm_expanded_from_pack_p, get_generic_function_decl
856         and function_parameter_pack_p hooks.  Fix comment for
857         get_innermost_generic_parms hook.
858         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
859         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
860         macros and use them to initialize lang_hook.
861
862 2009-09-22  Richard Henderson  <rth@redhat.com>
863
864         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
865         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
866         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
867         on TRAMPOLINE_TEMPLATE.
868         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
869         TRAMPOLINE_ADJUST_ADDRESS.
870         * targhooks.c (default_asm_trampoline_template): Remove.
871         (default_trampoline_adjust_address): Remove.
872         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
873         * targhooks.h: Update decls.
874
875 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
876
877         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
878         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
879         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
880
881 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
882
883         PR debug/41295
884         * reload1.c (reload): Reset debug insns with pseudos without
885         equivalences.
886
887 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
888
889         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
890         unconditional true for decimal float modes.
891         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
892         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
893
894 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
895
896         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
897         Enable a new case for __FreeBSD__ >= 7.
898         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
899         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
900         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
901         and USE_LD_AS_NEEDED.
902
903         * doc/install.texi (*-*-freebsd*): Update target information.
904
905 2009-09-22  Richard Guenther  <rguenther@suse.de>
906
907         PR middle-end/41395
908         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
909         arrays really properly.
910
911 2009-09-22  Richard Henderson  <rth@redhat.com>
912
913         PR target/41246
914         * target.h (struct gcc_target): Add asm_out.trampoline_template,
915         calls.static_chain, calls.trampoline_init,
916         calls.trampoline_adjust_address.
917         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
918         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
919         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
920         * builtins.c (expand_builtin_setjmp_receiver): Use
921         targetm.calls.static_chain; only clobber registers.
922         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
923         set up memory attributes properly for the trampoline block.
924         (expand_builtin_adjust_trampoline): Use
925         targetm.calls.trampoline_adjust_address.
926         * calls.c (prepare_call_address): Add fndecl argument.  Use
927         targetm.calls.static_chain.
928         * df-scan.c (df_need_static_chain_reg): Remove.
929         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
930         consolodate static chain handling.
931         * doc/tm.texi: Document new hooks.
932         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
933         (init_emit_regs): Don't initialize them.
934         * expr.h (prepare_call_address): Update decl.
935         * final.c (profile_function): Use targetm.calls.static_chain.
936         * function.c (expand_function_start): Likewise.
937         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
938         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
939         only clobber registers.
940         * targhooks.c (default_static_chain): New.
941         (default_asm_trampoline_template, default_trampoline_init): New.
942         (default_trampoline_adjust_address): New.
943         * targhooks.h: Declare them.
944         * varasm.c (assemble_trampoline_template): Use
945         targetm.asm_out.trampoline_template.  Make the memory block const
946         and set its size.
947
948         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
949         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
950         differences into the TARGET_ABI_OPEN_VMS code block.
951         (TARGET_TRAMPOLINE_INIT): New.
952         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
953         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
954         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
955         (INITIALIZE_TRAMPOLINE): Remove.
956
957         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
958         (TRAMPOLINE_TEMPLATE): Merge with ...
959         (INITIALIZE_TRAMPOLINE): ... this and move ...
960         * config/arc/arc.c (arc_trampoline_init): ... here.
961         (TARGET_TRAMPOLINE_INIT): New.
962
963         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
964         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
965         (arm_asm_trampoline_template): New.
966         (arm_trampoline_init, arm_trampoline_adjust_address): New.
967         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
968         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
969         code to arm_asm_trampoline_template.
970         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
971         arm_trampoline_adjust_address.
972         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
973         adjust for target hook parameters.
974
975         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
976         Remove.
977
978         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
979         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
980         (bfin_trampoline_init): Rename from initialize_trampoline;
981         make static; update for target hook parameters.
982         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
983         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
984         bfin_asm_trampoline_template.
985         (INITIALIZE_TRAMPOLINE): Remove.
986
987         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
988         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
989         cris_trampoline_init): New.
990         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
991         cris_asm_trampoline_template.
992         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
993         adjust for target hook parameters.
994
995         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
996
997         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
998         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
999         fr30_trampoline_init): New.
1000         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
1001         fr30_asm_trampoline_template.
1002         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
1003         adjust for target hook parameters.
1004
1005         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
1006         (frv_trampoline_init): Rename from frv_initialize_trampoline;
1007         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
1008         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
1009         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
1010
1011         * config/h8300/h8300.c (h8300_trampoline_init): New.
1012         (TARGET_TRAMPOLINE_INIT): New.
1013         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
1014         to h8300_trampoline_init and adjust for hook parameters.
1015
1016         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
1017         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
1018         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
1019         make static; adjust for hook parameters.
1020         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
1021
1022         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1023         (TARGET_TRAMPOLINE_INIT): New.
1024         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
1025         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
1026         iq2000_asm_trampoline_template.
1027         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
1028         (TRAMPOLINE_CODE_SIZE): New.
1029         (TRAMPOLINE_SIZE): Use it.
1030         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
1031
1032         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
1033         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
1034         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
1035         adjust for hook parameters.
1036         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
1037
1038         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
1039         (m32r_trampoline_init): New.
1040         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
1041         m32r_trampoline_init.
1042
1043         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
1044         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
1045         make static; update for hook parameters.
1046         * config/m68hc11/m68hc11-protos.h: Update.
1047         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
1048
1049         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1050         (TARGET_TRAMPOLINE_INIT): New.
1051         (mcore_function_value): Fix typo.
1052         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
1053         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
1054         to mcore_asm_trampoline_template.
1055         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
1056
1057         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
1058         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
1059         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
1060         update for hook parameters.
1061         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
1062
1063         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1064         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
1065         mips_trampoline_init): New.
1066         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
1067         mips_asm_trampoline_template.
1068         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
1069         update for hook parameters.
1070
1071         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1072         (TARGET_TRAMPOLINE_INIT): New.
1073         (mmix_trampoline_size): Remove.
1074         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
1075         make static.  Remove out-of-date tetra vs octa comment.
1076         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
1077         make static; update for hook parameters.
1078         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
1079         (INITIALIZE_TRAMPOLINE): Remove.
1080         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
1081         (TRAMPOLINE_ALIGNMENT): New.
1082         * gcc/config/mmix/mmix-protos.h: Update.
1083
1084         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1085         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
1086         mn10300_trampoline_init): New.
1087         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
1088         mn10300_asm_trampoline_template.
1089         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
1090
1091         * config/moxie/moxie.c (moxie_static_chain,
1092         moxie_asm_trampoline_template, moxie_trampoline_init,
1093         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
1094         TARGET_TRAMPOLINE_INIT): New.
1095         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
1096         moxie_trampoline_init.
1097         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
1098         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
1099
1100         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1101         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
1102         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
1103         pa_trampoline_adjust_address): New.
1104         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
1105         pa_asm_trampoline_template.
1106         (TRAMPOLINE_ALIGNMENT): New.
1107         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
1108         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
1109         adjust for hook parameters.
1110         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
1111
1112         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
1113         (TARGET_TRAMPOLINE_INIT): New.
1114         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
1115         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
1116
1117         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
1118
1119         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
1120         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
1121         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
1122         make static; adjust parameters for the hook.
1123         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
1124
1125         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
1126         s390_trampoline_template; make static.
1127         (s390_trampoline_init): Rename from s390_initialize_trampoline;
1128         make static; adjust for target hook.
1129         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
1130         * config/s390/s390-protos.h: Remove trampoline decls.
1131         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
1132         (TRAMPOLINE_TEMPLATE): Remove.
1133         (TRAMPOLINE_ALIGNMENT): New.
1134
1135         * config/score/score-protos.h (score_initialize_trampoline): Remove.
1136         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1137         (TARGET_TRAMPOLINE_INIT): New.
1138         (score_asm_trampoline_template): New.
1139         (score_trampoline_init): Rename from score_initialize_trampoline;
1140         make static; adjust for hook parameters.
1141         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
1142         score[37]_asm_trampoline_template.
1143         (INITIALIZE_TRAMPOLINE): Remove.
1144         * config/score/score3.c (score3_asm_trampoline_template): New.
1145         (score3_trampoline_init): Rename from score3_initialize_trampoline;
1146         adjust for target hook.
1147         * config/score/score7.c (score7_asm_trampoline_template): New.
1148         (score7_trampoline_init): Rename from score7_initialize_trampoline;
1149         adjust for target hook.
1150         * config/score/score3.h, config/score/score7.h: Update.
1151
1152         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
1153         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
1154         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
1155         (sh_trampoline_init): Rename from sh_initialize_trampoline;
1156         make static; adjust for target hook parameters.
1157         (sh_trampoline_adjust_address): New.
1158         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
1159         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
1160
1161         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
1162         (sparc32_initialize_trampoline): Rename from
1163         sparc_initialize_trampoline; make static; replace tramp parameter
1164         with m_tramp and update memory accesses.
1165         (sparc64_initialize_trampoline): Similarly.
1166         (sparc_trampoline_init): New.
1167         * config/sparc/sparc-protos.h: Remove trampoline decls.
1168         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
1169         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
1170
1171         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
1172         (array_to_constant): Make ARR parameter const.
1173         (spu_trampoline_init): Rename from spu_initialize_trampoline;
1174         make static; update for hook parameters.
1175         * config/spu/spu-protos.h: Update decls.
1176         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
1177
1178         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
1179         from xstormy16_initialize_trampoline; make static; update for
1180         hook parameters.
1181         (TARGET_TRAMPOLINE_INIT): New.
1182         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
1183
1184         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1185         (TARGET_TRAMPOLINE_INIT): New.
1186         (v850_can_eliminate): Make static.
1187         (v850_asm_trampoline_template, v850_trampoline_init): New.
1188         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
1189         v850_asm_trampoline_template.
1190         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
1191         and adjust for target hook parameters.
1192
1193         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1194         (TARGET_TRAMPOLINE_INIT): New.
1195         (vax_asm_trampoline_template, vax_trampoline_init): New.
1196         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
1197         vax_asm_trampoline_template.
1198         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
1199
1200         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1201         (TARGET_TRAMPOLINE_INIT): New.
1202         (xtensa_asm_trampoline_template): Rename from
1203         xtensa_trampoline_template; make static.
1204         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
1205         make static; update for hook parameters.
1206         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
1207         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
1208         (INITIALIZE_TRAMPOLINE): Remove.
1209
1210         * config/i386/i386.c (ix86_function_regparm): Do not issue an
1211         error for nested functions with regparm=3.
1212         (ix86_compute_frame_layout): Adjust frame pointer offset for
1213         ix86_static_chain_on_stack.
1214         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
1215         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
1216         don't reset to UNITS_PER_WORD.
1217         (ix86_emit_leave): Adjust ix86_cfa_state.
1218         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
1219         (ix86_static_chain): New.
1220         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
1221         make static; update for target hook parameters; use ix86_static_chain.
1222         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
1223         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
1224         (INITIALIZE_TRAMPOLINE): Remove.
1225         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
1226         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
1227         to the end.  Add static_chain_on_stack.
1228         (ix86_static_chain_on_stack): New.
1229
1230         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
1231         (m68k_output_mi_thunk): Don't use static_chain_rtx.
1232         (m68k_trampoline_init): New.
1233         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
1234         m68k_trampoline_init and adjust for hook parameters.
1235         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
1236         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
1237
1238 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
1239
1240         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
1241         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
1242
1243         * reload1.c (reload): Call wrap_constant when substituting
1244         reg for equiv inside of DEBUG_INSNs.
1245
1246         PR bootstrap/41405
1247         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
1248         add_call_src_coords_attributes, add_high_low_attributes,
1249         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
1250         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
1251         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
1252         when -gdwarf-2 -gstrict-dwarf.
1253         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
1254         -gdwarf-[23] -gstrict-dwarf.
1255         (address_of_int_loc_descriptor, loc_descriptor,
1256         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
1257         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
1258         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
1259
1260 2009-09-22  Richard Guenther  <rguenther@suse.de>
1261
1262         PR tree-optimization/41428
1263         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
1264         (ccp_finalize): Pass it to substitute_and_fold.
1265
1266 2009-09-22  Richard Guenther  <rguenther@suse.de>
1267
1268         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
1269         (substitute_and_fold): Adjust prototype.
1270         * tree-vrp.c (vrp_evaluate_conditional): Make static.
1271         (simplify_stmt_using_ranges): Likewise.
1272         (fold_predicate_in): Move here from tree-ssa-propagate.c.
1273         (vrp_fold_stmt): New function.
1274         (vrp_finalize): Pass it to substitute_and_fold.
1275         * tree-flow.h (vrp_evaluate_conditional): Remove.
1276         (simplify_stmt_using_ranges): Likewise.
1277         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
1278         * tree-ssa-copy.c (fini_copy_prop): Likewise.
1279         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
1280         member.
1281         (fold_predicate_in): Move to tree-vrp.c.
1282         (substitute_and_fold): Use the callback instead of calling into
1283         tree-vrp.c functions directly.
1284
1285 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
1286
1287         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
1288         comparison warning on rs6000.
1289
1290         PR middle-end/41429
1291         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
1292         GIMPLE_EH_MUST_NOT_THROW cleanup.
1293         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
1294
1295 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
1296
1297         PR middle-end/41260
1298         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
1299         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
1300         LIB_SPEC for darwin10 and later since it always uses the unwinder in
1301         libSystem which is derived from the gcc 4.2.1 unwinder.
1302
1303 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
1304
1305         PR middle-end/41357
1306         * varasm.c (default_encode_section_info): Copy TLS model into
1307         sym_ref flags regardless of backend support for TLS, for all
1308         model types except TLS_MODEL_EMULATED.
1309
1310 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
1311
1312         PR bootstrap/41404
1313         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
1314         we can handle it correctly.
1315
1316 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
1317
1318         * doc/install.texi (os2): Remove section.
1319
1320 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
1321
1322         * doc/standards.texi (Objective-C): Adjust two URLs.
1323
1324 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
1325
1326         * tree-tailcall.c (process_assignment): Don't check if a
1327         multiplication or an addition are already present.
1328         (find_tail_calls): Combine multiple additions and multiplications.
1329         (adjust_accumulator_values): Emit accumulators.
1330
1331 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
1332
1333         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
1334         xmm register restore.
1335
1336 2009-09-21  Jan Hubicka  <jh@suse.cz>
1337
1338         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
1339         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
1340         restore at the end.
1341
1342 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
1343
1344         * stor-layout.c (layout_type): Remove obsolete code.
1345
1346 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
1347
1348         PR middle-end/41395
1349         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
1350
1351 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1352
1353         PR middle-end/30789
1354         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
1355         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
1356         (fold_builtin_2, do_mpc_arg1): Update accordingly.
1357         * fold-const.c (const_binop): Likewise.
1358         * real.h (do_mpc_arg2): Update prototype.
1359
1360 2009-09-20  Jan Hubicka  <jh@suse.cz>
1361
1362         * dwarf2out.c (add_const_value_attribute): Return true if successful.
1363         (add_location_or_const_value_attribute): Rewrite using
1364         loc_list_from_tree.
1365         (tree_add_const_value_attribute): Return true if successful.
1366         (tree_add_const_value_attribute_for_decl): Likewise.
1367
1368         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
1369         (loc_descriptor): ... here;
1370         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
1371         (cst_pool_loc_descr): Break out from ...; do not reffer constant
1372         pool items that was not marked for output.
1373         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
1374         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
1375         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
1376         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
1377         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
1378         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
1379         DW_OP_stack_value to get address of items that are not available
1380         as addresses.
1381         (dw_loc_list): Handle single element lists correctly.
1382
1383 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
1384             Pascal Obry  <obry@adacore.com>
1385
1386         * unwind-dw2-fde.c (classify_object_over_fdes):
1387         Cast the constant 1 to _Unwind_Ptr.
1388         (add_fdes): Likewise.
1389         (linear_search_fdes): Likewise.
1390
1391 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
1392
1393         * stor-layout.c (set_sizetype): Avoid useless type copy.
1394
1395 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
1396
1397         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
1398         feature check.
1399         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
1400         * configure, config.in: Regenerate.
1401         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
1402         DW_EH_PE_absptr.
1403         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
1404         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
1405         for global data if the output could be used in a shared library.
1406         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
1407         to 0 if TARGET_WRITABLE_EH_FRAME.
1408
1409 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
1410
1411         PR rtl-optimization/39886
1412         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
1413         just when insn is equal to BB_END (bb).
1414
1415 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
1416
1417         * config/mips/mips.opt (mrelax-pic-calls): New option.
1418         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
1419         the file.
1420         (mips_unspec_call): Change "unspec_call" expander into this.
1421         (mips_strip_unspec_call): New function.
1422         (mips_got_load): Call mips_unspec_call instead of
1423         gen_unspec_call<mode>.
1424         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
1425         MIPS_CALL.
1426         (mips_cfg_in_reorg): New function.
1427         (mips16_lay_out_constants): Use it to decide whether to call
1428         CFG-aware insn splitting.
1429         (r10k_insert_cache_barriers): Move CFG set-up code from here to
1430         mips_reorg.  Move DF set-up code from here ...
1431         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
1432         from here.
1433         (mips_reorg): Call mips_df_reorg instead of
1434         r10k_insert_cache_barriers.  Move CFG set-up code here from
1435         r10k_insert_cache_barriers.
1436         (mips_call_expr_from_insn): New function.
1437         (mips_pic_call_symbol_from_set): Likewise.
1438         (mips_find_pic_call_symbol): Likewise.
1439         (mips_annotate_pic_call_expr): Likewise.
1440         (mips_get_pic_call_symbol): Likewise.
1441         (mips_annotate_pic_calls): Likewise.
1442         (mips_override_options): Disable -mrelax-pic-calls unless PIC
1443         calls are used.
1444         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
1445         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
1446         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
1447         directive.
1448         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
1449         (unspec_call<mode>): Remove it.
1450         (sibcall_internal, sibcall_value_internal,
1451         sibcall_value_multiple_internal, call_internal, call_split,
1452         call_value_internal, call_value_split,
1453         call_value_multiple_internal, call_value_multiple_split): Pass
1454         SIZE_OPNO to MIPS_CALL.
1455         (call_internal_direct, call_direct_split,
1456         call_value_internal_direct, call_value_direct_split): Pass -1 as
1457         SIZE_OPNO to MIPS_CALL.
1458         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
1459         * configure: Regenerate.
1460         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
1461         and -mno-relax-pic-calls.
1462         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
1463
1464 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1465
1466         PR bootstrap/35619
1467         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
1468         in the directory this rule is called from, rather than the
1469         toplevel 'gcc' directory, to fix in-tree build.
1470
1471 2009-09-19  Chris Demetriou  <cgd@google.com>
1472
1473         PR preprocessor/28435:
1474         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
1475         to cpplib that the preprocessor output is needed.
1476
1477 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
1478
1479         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
1480         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
1481         *return_and_restore_fpregs_<mode>,
1482         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
1483
1484         PR bootstrap/41397
1485         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
1486         instead of assuming it has always a REG inside of it.
1487
1488 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
1489
1490         * config/freebsd.h: Update comment on types.
1491         (WINT_TYPE): Define.
1492
1493 2009-09-18  Jason Merrill  <jason@redhat.com>
1494
1495         * c.opt: Add -fno-deduce-init-list.
1496
1497 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
1498
1499         * value-prof.c (interesting_stringop_to_profile_p): Added output
1500         argument to indicate which parameter is the size parameter.
1501         * value-prof.c (gimple_stringop_fixed_value): Use
1502         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
1503         * value-prof.c (gimple_stringops_transform): Update call sites to
1504         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
1505
1506 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
1507
1508         PR target/38288
1509         From David Binderman <dcb314@hotmail.com>:
1510         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
1511         local variable f.  Remove stale comments.
1512         (ix86_compute_frame_layout): Remove useless local variable total_size.
1513         Remove #if 0'd code.
1514         (legitimate_address_p): Remove useless local variables
1515         reason_rtx and reason.
1516         (ix86_split_copysign_const): Remove useless local variable op1.
1517         (scale_counter): Remove useless local variable piece_size_mask.
1518
1519 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
1520
1521         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
1522         output decl.
1523
1524 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
1525
1526         PR target/40913
1527         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
1528
1529 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
1530
1531         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
1532         TYPE_STUB_DECL.
1533
1534 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
1535
1536         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
1537         DW_OP_implicit_value even without dwarf_version 4.
1538
1539 2009-09-17  Jan Hubicka  <jh@suse.cz>
1540
1541         * dwarf2out.c: Include tree-pass.h and gimple.h.
1542         (loc_list_plus_const): New function.
1543         (loc_descriptor_from_tree_1): Rename to ...
1544         (loc_descriptor_from_tree): ... remove original.
1545         (loc_list_from_tree): New function.
1546         (add_AT_location_description): Accept location list.
1547         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
1548         (concatn_mem_loc_descriptor): Remove.
1549         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
1550         returning NULL.
1551         (secname_for_decl): Move up.
1552         (hidden_reference_p): New function; break out from ...
1553         (loc_by_refernece): ... here; move up.
1554         (dw_loc_list): New function.
1555         (single_element_loc_list): New function.
1556         (single_element_loc_list_p): New function.
1557         (add_loc_descr_to_each): New function.
1558         (add_loc_list): New function.
1559         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
1560         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
1561         add diagnostics why expansion failed.
1562         (add_location_or_const_value_attribute): Support location lists.
1563         (add_bound_info): Likewise.
1564         (descr_info_loc): Update call of loc_descriptor_from_tree.
1565         (gen_variable_die): Work on location lists.
1566         * final.c (pass_final): Add dump file.
1567         * Makefile.in (dwarf2out.o): Add new dependencies.
1568
1569 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
1570
1571         PR c/41049
1572         * real.c decimal_from_integer, decimal_integer_string): New.
1573         (real_from_integer): Use them as special case for decimal float.
1574         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
1575         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
1576         Do not append zero after the decimal point in string to convert.
1577
1578 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
1579
1580         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
1581         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
1582
1583 2009-09-17  Martin Jambor  <mjambor@suse.cz>
1584
1585         * common.opt (fipa-sra): New switch.
1586         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
1587         * timevar.def (TV_IPA_SRA): New timevar.
1588         * params.def (ipa-sra-ptr-growth-factor): New parameter.
1589         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
1590         * tree-sra.c: Include cgraph.c.
1591         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
1592         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
1593         and grp_not_necessarilly_dereferenced.
1594         (func_param_count): New variable.
1595         (encountered_apply_args): New variable.
1596         (bb_dereferences): New variable.
1597         (final_bbs): New variable.
1598         (no_accesses_representant): New variable.
1599         (no_accesses_p): New function.
1600         (dump_access): Dump the new fields.
1601         (sra_initialize): Set encountered_apply_args to false.
1602         (get_ssa_base_param): New function.
1603         (mark_parm_dereference): New function.
1604         (create_access): Caring for INIDRECT_REFs and different handling of
1605         varialble length accesses in early IPA SRA.  Store the stmt - a new
1606         parameter - to the new access.
1607         (build_access_from_expr_1): New parameter stmt, passed to
1608         create_access.  Handle INDIRECT_REFs.
1609         (build_access_from_expr): Pass the current statement to
1610         build_access_from_expr_1.
1611         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
1612         passes.
1613         (build_accesses_from_assign): Pass the current statement to
1614         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
1615         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
1616         final_bbs when necessary.  Check for calls to __builtin_apply_args.
1617         Fixup EH info if anythng was changed.
1618         (is_unused_scalar_param): New function.
1619         (ptr_parm_has_direct_uses): New function.
1620         (find_param_candidates): New function.
1621         (mark_maybe_modified): New function.
1622         (analyze_modified_params): New function.
1623         (propagate_dereference_distances): New function.
1624         (dump_dereferences_table): New function.
1625         (analyze_caller_dereference_legality): New function.
1626         (unmodified_by_ref_scalar_representative): New function.
1627         (splice_param_accesses): New function.
1628         (decide_one_param_reduction): New function.
1629         (enum ipa_splicing_result): New type.
1630         (splice_all_param_accesses): New function.
1631         (get_param_index): New function.
1632         (turn_representatives_into_adjustments): New function.
1633         (analyze_all_param_acesses): New function.
1634         (get_replaced_param_substitute): New function.
1635         (get_adjustment_for_base): New function.
1636         (replace_removed_params_ssa_names): New function.
1637         (sra_ipa_reset_debug_stmts): New function.
1638         (sra_ipa_modify_expr): New function.
1639         (sra_ipa_modify_assign): New function.
1640         (convert_callers): New function.
1641         (modify_function): New function.
1642         (ipa_sra_preliminary_function_checks): New function.
1643         (ipa_early_sra): New function.
1644         (ipa_early_sra_gate): New function.
1645         (pass_early_ipa_sra): New variable.
1646         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
1647
1648 2009-09-17  Michael Matz  <matz@suse.de>
1649
1650         PR middle-end/41347
1651         * tree.c (build_type_attribute_qual_variant): Export.
1652         * tree.h (build_type_attribute_qual_variant): Declare.
1653         * tree-inline.c (remap_type_1): Use it to build variants with
1654         the original qualifiers and attributes.
1655
1656 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1657
1658         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
1659         without a fallthrough edge.
1660
1661 2009-09-16  DJ Delorie  <dj@redhat.com>
1662
1663         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
1664         chip and ignore the "fast_interrupt" attribute if so.
1665
1666 2009-09-16  Richard Henderson  <rth@redhat.com>
1667
1668         PR middle-end/41360
1669         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
1670         barrier fix.
1671
1672 2009-09-16  Richard Henderson  <rth@redhat.com>
1673
1674         PR target/41246
1675         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
1676         is set only if DECL_NO_STATIC_CHAIN is unset.
1677         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
1678         (FOR_EACH_NEST_INFO): New.
1679         (walk_all_functions): Use it.
1680         (finalize_nesting_tree): Likewise.
1681         (unnest_nesting_tree): Likewise.
1682         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
1683         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
1684         (convert_gimple_call): Early out if gimple_call_chain already set.
1685         (convert_all_function_calls): Iterate until no new functions
1686         require a static chain.
1687         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
1688         when building a trampoline.  Use dump_function_to_file instead
1689         of dump_function.
1690         (lower_nested_functions): Open dump_file.  Validate that decls
1691         that have DECL_NO_STATIC_CHAIN from the front end don't have that
1692         bit reset by this pass.
1693
1694 2009-09-16  Michael Matz  <matz@suse.de>
1695
1696         PR fortran/41212
1697         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
1698         shorten decl_common_unused.
1699         (DECL_RESTRICTED_P): New accessor.
1700         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
1701         to disambiguate marked decls and restrict pointers.
1702
1703 2009-09-16  Richard Henderson  <rth@redhat.com>
1704
1705         PR middle-end/41360
1706         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
1707
1708 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
1709
1710         * integrate.c (set_block_abstract_flags): Call
1711         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
1712
1713 2009-09-16  Richard Guenther  <rguenther@suse.de>
1714
1715         PR middle-end/34011
1716         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
1717         as non-aliased.
1718
1719 2009-09-16  DJ Delorie  <dj@redhat.com>
1720             Kaz Kojima  <kkojima@gcc.gnu.org>
1721
1722         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
1723         (sh_expand_prologue): Update calls to output_stack_adjust.
1724         (sh_expand_epilogue): Likewise.
1725
1726 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
1727
1728         PR bootstrap/41349
1729         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
1730         trying to limit the extent of searches in the insn stream.
1731
1732 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
1733             Jakub Jelinek  <jakub@redhat.com>
1734
1735         PR target/41175
1736         PR target/40677
1737         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
1738         problem.
1739         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
1740         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
1741         (rs6000_savres_strategy): Always save FP registers inline if the
1742         target doesn't support hardware double-precision.  Set the above
1743         bits in return value when needed.
1744         (rs6000_savres_routine_sym): Fix computation for cache selector.
1745         Mark the generated symbol as a function.  Rename exitp argument to
1746         lr.  Move code for determining the name of the symbol...
1747         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
1748         getting the names right on AIX and 64-bit Linux.
1749         (savres_routine_name): New variable.
1750         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
1751         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
1752         on what the target routine uses as a base register.  If savep && lr
1753         describe saving of r0 into memory slot.
1754         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
1755         line calls for AIX ABI.
1756         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
1757         determine FP save/restore functions.
1758         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
1759         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
1760         gen_addsi3.
1761         (rs6000_emit_epilogue): Adjust computation of restore_lr.
1762         Duplicate restoration of LR and execute the appropriate one
1763         depending on whether GPRs are being restored inline.  Set r11 from
1764         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
1765         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
1766         Fix out of line calls for AIX ABI.
1767         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
1768         New insn.
1769         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
1770         register 11.
1771         (*restore_gpregs_spe): Likewise.
1772         (*return_and_restore_gpregs_spe): Likewise.
1773         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
1774         Define to empty string unconditionally.
1775         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
1776         Define to empty string unconditionally.
1777         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
1778         !TARGET_64BIT.
1779
1780 2009-09-15  Jan Hubicka  <jh@suse.cz>
1781
1782         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
1783         * params.def (inline-insns-auto): Likewise.
1784
1785 2009-09-15  Martin Jambor  <mjambor@suse.cz>
1786
1787         * ipa-inline.c (estimate_function_body_sizes): Dump info about
1788         individual statements only at TDF_DETAILS dump level.  Format
1789         source for 80 characters per line.
1790
1791 2009-09-15  Christian Bruel  <christian.bruel@st.com>
1792
1793         * regrename.c (do_replace): Update REG_DEAD notes.
1794
1795 2009-09-15  Revital Eres  <eres@il.ibm.com>
1796
1797         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
1798         * targhooks.c (default_builtin_support_vector_misalignment):
1799         New builtin function.
1800         * targhooks.h (default_builtin_support_vector_misalignment):
1801         Declare.
1802         * target.h (builtin_support_vector_misalignment):
1803         New field in struct gcc_target.
1804         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
1805         new builtin function.
1806         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
1807         Define.
1808         * config/rs6000/rs6000.c
1809         (rs6000_builtin_support_vector_misalignment): New function.
1810         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
1811
1812 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
1813
1814         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
1815         instead of INSN_P.
1816         (bfin_optimize_loop): Likewise.
1817         (bfin_gen_bundles): Likewise.
1818         (workaround_speculation): Likewise.
1819         (find_load): Return NULL_RTX for debug_insn.
1820
1821 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
1822
1823         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
1824         (sminsf3): Ditto.
1825
1826 2009-09-14  DJ Delorie  <dj@redhat.com>
1827
1828         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
1829         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
1830         VLIW mode.
1831
1832 2009-09-14  Richard Henderson  <rth@redhat.com>
1833             Jakub Jelinek  <jakub@redhat.com>
1834
1835         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
1836         * cfgbuild.c (make_edges): Handle asm goto.
1837         * cfglayout.c (fixup_reorder_chain): Likewise.
1838         * cfgrtl.c (patch_jump_insn): Likewise.
1839         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
1840         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
1841         (gimple_build_asm_vec): Add and use labels parameter.
1842         (gimple_build_asm): Remove.
1843         (walk_gimple_asm): Walk labels too.
1844         * gimple.def (GIMPLE_ASM): Update docs.
1845         * gimple.h: Update decls.
1846         (struct gimple_statement_asm): Change nc to use unsigned char;
1847         add nl member.
1848         (gimple_asm_nlabels): New.
1849         (gimple_asm_label_op, gimple_asm_set_label_op): New.
1850         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
1851         into gimple_build_asm_vec.
1852         * jump.c (mark_jump_label_asm): New.
1853         (mark_jump_label): Use it.
1854         (redirect_jump_1): Handle asm goto.
1855         (invert_jump_1): Soft fail if X is null.
1856         * recog.c (extract_asm_operands): New.
1857         (asm_noperands): Use it; handle asm labels.
1858         (decode_asm_operands): Use extract_asm_operands.
1859         (asm_operand_ok): Properly handle empty string.
1860         * reg-stack.c (get_asm_operands_in_out): Rename from
1861         get_asm_operand_n_inputs; use extract_asm_operands; return both
1862         inputs and outputs by reference; update all callers.
1863         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
1864         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
1865         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
1866         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
1867         (extract_asm_operands): Declare.
1868         * stmt.c (expand_asm_operands): Add and use labels parameter.
1869         (check_unique_operand_names): Likewise.
1870         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
1871         (expand_asm_stmt): Handle asm labels.
1872         * tree-cfg.c (make_gimple_asm_edges): New.
1873         (make_edges): Use it.
1874         (cleanup_dead_labels): Handle asm labels.
1875         (is_ctrl_altering_stmt): Likewise.
1876         (gimple_redirect_edge_and_branch): Likewise.
1877         * tree.def (ASM_EXPR): Add 5th operand.
1878         * tree.h (ASM_LABELS): New.
1879         (resolve_asm_operand_names): Update decl.
1880
1881         * c-parser.c (c_parser_asm_statement): Parse asm goto.
1882         (c_parser_asm_goto_operands): New.
1883         * c-tree.h (build_asm_expr): Update decl.
1884         * c-typeck.c (build_asm_expr): Add and use labels parameter.
1885         * doc/extend.texi: Document asm goto.
1886
1887 2009-09-14  Richard Henderson  <rth@redhat.com>
1888
1889         * except.h: Update declarations.
1890         (struct pointer_map_t): Forward declare.
1891         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
1892         (struct eh_landing_pad_d, eh_landing_pad): New.
1893         (struct eh_catch_d, eh_catch): New.
1894         (struct eh_region_d): Remove next_region_sharing_label, aka,
1895         label, tree_label, landing_pad, post_landing_pad, resume,
1896         may_contain_throw.  Rename region_number to index.  Remove
1897         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
1898         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
1899         (VEC(eh_landing_pad,gc)): New.
1900         (struct eh_status): Remove last_region_number.  Add lp_array,
1901         throw_stmt_table, ttype_data, ehspec_data.
1902         (ehr_next, FOR_ALL_EH_REGION_AT): New.
1903         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
1904         * except.c (lang_protect_cleanup_actions): Return tree.
1905         (struct ehl_map_entry): Remove.
1906         (init_eh_for_function): Push zero entries for region and lp_array.
1907         (gen_eh_region): Add to region_array immediately.
1908         (gen_eh_region_catch): Operate on eh_catch objects.
1909         (gen_eh_landing_pad): New.
1910         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
1911         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
1912         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
1913         (get_eh_landing_pad_from_number_fn): New.
1914         (get_eh_landing_pad_from_number): New.
1915         (get_eh_region_from_lp_number_fn): New.
1916         (get_eh_region_from_lp_number): New.
1917         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
1918         (get_exception_pointer, get_exception_filter): Remove.
1919         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
1920         (current_function_has_exception_handlers): Simplify.
1921         (bring_to_root, eh_region_replaceable_by_p): Remove.
1922         (replace_region, hash_type_list, hash_eh_region): Remove.
1923         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
1924         (label_to_region_map, num_eh_regions): Remove.
1925         (get_next_region_sharing_label, must_not_throw_labels): Remove.
1926         (find_exception_handler_labels): Remove.
1927         (duplicate_eh_regions_0, find_prev_try): Remove.
1928         (struct duplicate_eh_regions_data): New.
1929         (duplicate_eh_regions_1): Rewrite.
1930         (duplicate_eh_regions): Return a pointer map instead of an
1931         integer offset.
1932         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
1933         (redirect_eh_edge_to_label): Remove.
1934         (eh_region_outermost): Rewrite using eh_region pointers
1935         instead of integers.
1936         (add_ttypes_entry): Update for ttype_data move to eh_status.
1937         (add_ehspec_entry): Rewrite with VEC instead of varray.
1938         (assign_filter_values): Likewise.  Export.
1939         (build_post_landing_pads, connect_post_landing_pads): Remove.
1940         (dw2_build_landing_pads): Rewrite to use lp_array.
1941         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
1942         (sjlj_assign_call_site_values): Rewrite to use lp_array.
1943         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
1944         (sjlj_mark_call_sites): Update for landing pad numbers.
1945         (finish_eh_generation): Rewrite.
1946         (gate_handle_eh): Do nothing for no eh tree.
1947         (pass_rtl_eh): Move up near finish_eh_generation.
1948         (remove_eh_landing_pad): New.
1949         (remove_eh_handler): Export.
1950         (remove_eh_region, remove_eh_handler_and_replace): Remove.
1951         (for_each_eh_label): Rewrite to use lp_array.
1952         (make_reg_eh_region_note): New.
1953         (make_reg_eh_region_note_nothrow_nononlocal): New.
1954         (insn_could_throw_p): New.
1955         (copy_reg_eh_region_note_forward): New.
1956         (copy_reg_eh_region_note_backward): New.
1957         (check_handled, add_reachable_handler): Remove.
1958         (reachable_next_level, foreach_reachable_handler): Remove.
1959         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
1960         (get_eh_region_and_lp_from_rtx): New.
1961         (get_eh_region_from_rtx): New.
1962         (can_throw_internal_1, can_throw_external_1): Remove.
1963         (can_throw_internal): Use get_eh_region_from_rtx.
1964         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
1965         (insn_nothrow_p, can_nonlocal_goto): New.
1966         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
1967         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
1968         (add_action_record): Use VEC not varray.
1969         (collect_one_action_chain): Update for eh_region changes.
1970         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
1971         Use get_eh_region_and_lp_from_rtx.
1972         (gate_convert_to_eh_region_ranges): New.
1973         (pass_convert_to_eh_region_ranges): Use it.
1974         (push_uleb128, push_sleb128): Use VEC not varray.
1975         (output_one_function_exception_table): Likewise.
1976         (dump_eh_tree): Update for eh_region changes.
1977         (verify_eh_tree): Likewise.
1978         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
1979         * tree-eh.c: Include target.h.
1980         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
1981         Don't disallow GIMPLE_RESX; adjust argument check.
1982         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
1983         (record_stmt_eh_region): Update for landing pad numbers;
1984         generate a landing pad if necessary.
1985         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
1986         (remove_stmt_from_eh_lp_fn): Similarly.
1987         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
1988         Update for lp numbers; don't special case missing throw_stmt_table.
1989         (lookup_expr_eh_lp): Similarly.
1990         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
1991         (eh_seq, eh_region_may_contain_throw): New.
1992         (struct leh_state): Add ehp_region.
1993         (struct leh_tf_state): Remove eh_label.
1994         (emit_post_landing_pad): New.
1995         (emit_resx, emit_eh_dispatch): New.
1996         (note_eh_region_may_contain_throw): New.
1997         (frob_into_branch_around): Take eh_region not eh label;
1998         emit eh code into eh_seq.
1999         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
2000         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
2001         lower_eh_must_not_throw.  Emit code to eh_seq.
2002         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
2003         (lower_try_finally_onedest): Likewise.
2004         (lower_try_finally_copy): Likewise.
2005         (lower_try_finally_switch): Likewise.
2006         (lower_try_finally): Initialize ehp_region.
2007         (lower_catch): Update for eh_catch objects.
2008         (lower_eh_filter): Don't handle must_not_throw.
2009         (lower_eh_must_not_throw): New.
2010         (lower_cleanup): Don't set eh_label.
2011         (lower_eh_constructs_2): Resolve eh builtins.
2012         Handle GIMPLE_EH_MUST_NOT_THROW.
2013         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
2014         Add eh_seq to the end of the function body.
2015         (make_eh_dispatch_edges): New.
2016         (make_eh_edge): Remove.
2017         (make_eh_edges): Simplify for landing pads.
2018         (redirect_eh_edge_1): New.
2019         (redirect_eh_edge): Use it.
2020         (redirect_eh_dispatch_edge): New.
2021         (stmt_could_throw_p): Use a switch.  Allow RESX.
2022         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
2023         (stmt_can_throw_internal): Likewise.
2024         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
2025         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
2026         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
2027         (gate_refactor_eh): New.
2028         (pass_refactor_eh): Use it.
2029         (lower_resx, execute_lower_resx, pass_lower_resx): New.
2030         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
2031         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
2032         (remove_unreachable_handlers): Rename from
2033         tree_remove_unreachable_handlers; rewrite for landing pads;
2034         call remove_eh_handler directly.
2035         (remove_unreachable_handlers_no_lp): New.
2036         (unsplit_eh, unsplit_all_eh): New.
2037         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
2038         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
2039         (cleanup_empty_eh_unsplit): New.
2040         (cleanup_empty_eh): Rewrite.
2041         (cleanup_all_empty_eh): New.
2042         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
2043         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
2044         (gate_cleanup_eh): New.
2045         (pass_cleanup_eh): Use it.
2046         (verify_eh_edges): Move later in file.  Expect one EH edge.
2047         (verify_eh_dispatch_edge): New.
2048
2049         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
2050         (gtype-desc.o): Add TARGET_H.
2051         (tree.o): Use EXCEPT_H, not except.h.
2052         (cfgbuild.o): Add EXPR_H.
2053         (GTFILES): Add vecprim.h.
2054         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
2055         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
2056         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
2057         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
2058         * calls.c (emit_call_1): Use make_reg_eh_region_note.
2059         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
2060         calls to can_throw_internal.
2061         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
2062         (make_edges): Don't handle RESX; use can_nonlocal_goto.
2063         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
2064         (expand_gimple_stmt): Use make_reg_eh_region_note.
2065         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
2066         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
2067         or find_exception_handler_labels.
2068         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
2069         there is exacly one EH edge.  Use can_nonlocal_goto and
2070         can_throw_internal.
2071         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
2072         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
2073         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
2074         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
2075         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
2076         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
2077         * dse.c (scan_insn): Use insn_could_throw_p.
2078         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
2079         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
2080         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
2081         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
2082         EXC_PTR_EXPR or FILTER_EXPR.
2083         (tree_expr_nonzero_warnv_p): Likewise.
2084         * function.h: Include vecprim.h, not varray.h
2085         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
2086         move ttype_data and ehspec_data members to struct eh_status; change
2087         action_record_data member to a VEC.
2088         * gcse.c (hash_scan_set): Use can_throw_internal.
2089         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
2090         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
2091         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
2092         (block_may_fallthru): Don't handle RESX_EXPR.
2093         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
2094         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
2095         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
2096         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
2097         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
2098         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
2099         (gimple_size): Likewise.
2100         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
2101         (gimple_build_resx): Use gimple_build_with_ops.
2102         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
2103         (is_gimple_val): Likewise.
2104         (is_gimple_stmt): Remove RESX_EXPR.
2105         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
2106         (GIMPLE_RESX): Reorder with other EH constructs.
2107         * gimple.h (struct gimple_statement_eh_mnt): New.
2108         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
2109         (gimple_eh_filter_must_not_throw): Remove.
2110         (gimple_eh_filter_set_must_not_throw): Remove.
2111         (gimple_eh_must_not_throw_fndecl): New.
2112         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
2113         (is_gimple_resx): New.
2114         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
2115         Don't copy EH_FILTER_MUST_NOT_THROW.
2116         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
2117         * ipa-inline.c (estimate_function_body_sizes): Don't try to
2118         handle must_not_throw_labels specially.
2119         * ipa-pure-const.c (check_call): Update debug statement for LP.
2120         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
2121         * ipa-utils.c (get_base_var): Likewise.
2122         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
2123         * lower-subreg.c (move_eh_region_note): Remove.
2124         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
2125         * omp-low.c (new_omp_context): Update for eh_lp_nr.
2126         (create_task_copyfn): Likewise.
2127         (maybe_catch_exception): Use gimple_build_eh_filter.
2128         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
2129         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
2130         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
2131         and pass_lower_resx.
2132         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
2133         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
2134         can_throw_internal, can_nonlocal_goto.
2135         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
2136         copy_reg_eh_region_note_forward.
2137         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
2138         (emit_output_reload_insns): Likewise.
2139         (copy_eh_notes): Remove.
2140         * rtl.def (RESX): Remove.
2141         * rtl.h: Update declarations.
2142         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
2143         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
2144         (update_eh_label): Remove.
2145         (cleanup_dead_labels_eh): New.
2146         (cleanup_deal_labels): Use it instead of update_eh_label.
2147         (gimple_merge_blocks): Update landing pad data structure when
2148         removing a landing pad label.
2149         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
2150         test; handle GIMPLE_EH_MUST_NOT_THROW.
2151         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
2152         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
2153         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
2154         (verify_stmt): Likewise.  Verify landing pads.
2155         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
2156         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
2157         (struct move_stmt_d): Add eh_map.
2158         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
2159         (move_stmt_r): Remap eh region numbers in builtin calls,
2160         resx and eh_dispatch.
2161         (move_block_to_fn): Remove eh_offset parameter.  Use
2162         maybe_duplicate_eh_stmt_fn.
2163         (find_outermost_region_in_block): Operate on eh_region pointers
2164         instead of region numbers.
2165         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
2166         duplicate_eh_regions.
2167         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
2168         test earlier.  Disallow EH landing pads.
2169         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
2170         * tree-flow.h: Update declarations.
2171         (struct tree_ann_common_d): Replace rn with lp_nr.
2172         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
2173         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
2174         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
2175         resx and eh_dispatch.
2176         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
2177         (copy_edges_for_bb): Use make_eh_dispatch_edges.
2178         (copy_cfg_body): Expect eh_map instead of eh_region_offset
2179         from duplicate_eh_regions.
2180         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
2181         update RESX; handle EH_DISPATCH.
2182         (expand_call_inline): Set eh_lp_nr, not eh_region.
2183         (maybe_inline_call_in_expr): Likewise.
2184         * tree-inline.h (struct copy_body_data): Replace eh_region with
2185         eh_lp_nr, eh_region_offset with eh_map.
2186         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
2187         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
2188         * tree-pretty-print.c (dump_generic_node): Don't handle
2189         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
2190         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
2191         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
2192         EXC_PTR_EXPR, FILTER_EXPR.
2193         * tree-ssa-operands.c (get_expr_operands): Likewise.
2194         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
2195         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2196         (ao_ref_init_from_vn_reference): Likewise.
2197         * tree-ssa-sink.c (statement_sink_location): Likewise.
2198         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
2199         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
2200         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
2201         EXC_PTR_EXPR, FILTER_EXPR.
2202         (is_exception_related): Remove.
2203         (compute_avail): Don't call it.
2204         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
2205         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
2206         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
2207         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
2208         Build EH builtins.
2209         (build_resx): Remove.
2210         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
2211         * tree.h: Update declarations.
2212         (EH_FILTER_MUST_NOT_THROW): Remove.
2213         (struct tree_label_decl): Add eh_landing_pad_nr.
2214         (EH_LANDING_PAD_NR): New.
2215         * value-prof.c (gimple_ic): Tidy variable names.  Update for
2216         landing pad numbers.
2217         (gimple_stringop_fixed_value): Tidy variable names.  Assert
2218         that neither call stmt can throw.
2219         * vecprim.h (uchar): New.
2220         (VEC(uchar,heap), VEC(uchar,gc)): New.
2221
2222         * c-common.c (c_define_builtins): Update call to
2223         build_common_builtin_nodes.
2224         * c-parser.c (c_parse_file): Don't call
2225         default_init_unwind_resume_libfunc.
2226
2227 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2228
2229         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
2230         (mips_cprestore_address_p): Likewise.
2231         (mips_save_gp_to_cprestore_slot): Likewise.
2232         (mips_restore_gp): Rename to...
2233         (mips_restore_gp_from_cprestore_slot): ...this.
2234         (mips_must_initialize_gp_p): Declare.
2235         (mips_emit_save_slot_move): Likewise.
2236         (mips_output_load_label): Return nothing.
2237         (mips_eh_uses): Declare.
2238         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
2239         (TARGET_CPRESTORE_DIRECTIVE): New macro.
2240         (TARGET_ABSOLUTE_JUMPS): Likewise.
2241         (EH_USES): Likewise.
2242         (FIRST_PSEUDO_REGISTER): Update comment.
2243         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
2244         (MIPS_CALL): ...here.
2245         (REGISTER_NAMES): Add $cprestore.
2246         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
2247         Add load_label_length, has_inflexible_gp_insn_p,
2248         has_flexible_gp_insn_p, must_initialize_gp_p and
2249         must_restore_gp_when_clobbered_p.
2250         (mips_expand_call): Don't generate split instructions here.
2251         (mips_split_call): Update the call to mips_restore_gp after
2252         the above name change.
2253         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
2254         (mips_find_gp_ref): New function.
2255         (mips_insn_has_inflexible_gp_ref_p): Likewise.
2256         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
2257         (mips_insn_has_flexible_gp_ref_p): Likewise.
2258         (mips_cfun_has_flexible_gp_ref_p): Likewise.
2259         (mips_function_has_gp_insn): Delete.
2260         (mips_global_pointer): Drop the df_regs_ever_live_p check.
2261         Use the new functions above.  Only return INVALID_REGNUM
2262         for TARGET_ABSOLUTE_JUMPS.
2263         (mips_must_initialize_gp_p): New function.
2264         (mips_get_cprestore_base_and_offset): New function, extracted from...
2265         (mips_cprestore_slot): ...here.  Take a bool parameter.
2266         (mips_cfun_has_cprestore_slot_p): New function.
2267         (mips_cprestore_address_p): Likewise.
2268         (mips_save_gp_to_cprestore_slot): Likewise.
2269         (mips_restore_gp): Rename to...
2270         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
2271         epilogue_completed.  Update the call to mips_cprestore_slot.
2272         Test cfun->machine->must_restore_gp_when_clobbered_p.
2273         (mips_direct_save_slot_move_p): New function.
2274         (mips_emit_save_slot_move): Likewise.
2275         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
2276         of cfun->machine->global_pointer.
2277         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
2278         (mips_save_reg): Use mips_emit_save_slot_move.
2279         (mips_expand_prologue): Set must_initialize_gp_p.
2280         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
2281         for all cprestore saves.  Emit a use_cprestore instruction after
2282         setting up the cprestore slot.
2283         (mips_restore_reg): Use mips_emit_save_slot_move.
2284         (mips_process_load_label): New function.
2285         (mips_load_label_length): Likewise.
2286         (mips_output_load_label): Don't return asm: output it here instead.
2287         Use mips_process_load_label.
2288         (mips_adjust_insn_length): Adjust the length of branch instructions
2289         that have length MAX_PIC_BRANCH_LENGTH.
2290         (mips_output_conditional_branch): Update the call to
2291         mips_output_load_label.  Assume the branch target is OPERANDS[0]
2292         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
2293         (mips_output_order_conditional_branch): Swap the meaning of
2294         OPERANDS[0] and OPERANDS[1].
2295         (mips_variable_issue): Don't count ghost instructions.
2296         (mips_expand_ghost_gp_insns): New function.
2297         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
2298         (mips_output_mi_thunk): Set must_initialize_gp_p.
2299         (mips_eh_uses): New function.
2300         * config/mips/predicates.md (cprestore_save_slot_operand)
2301         (cprestore_load_slot_operand): New predicates.
2302         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
2303         (UNSPEC_MOVE_GP): Likewise.
2304         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
2305         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
2306         (CPRESTORE_SLOT_REGNUM): New register.
2307         (MAX_PIC_BRANCH_LENGTH): New constant.
2308         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
2309         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
2310         branches.  Fix commentary.
2311         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
2312         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
2313         Change type to "ghost".
2314         (loadgp_absolute_<mode>): Likewise.
2315         (loadgp_rtp_<mode>): Likewise.
2316         (copygp_mips16): Likewise.
2317         (loadgp_blockage): Remove redundant mode attribute.
2318         (potential_cprestore): New instruction.
2319         (cprestore): Turn into an unspec set.
2320         (use_cprestore): New instruction.
2321         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
2322         (*branch_fp_inverted): Likewise.
2323         (*branch_order<mode>): Likewise.
2324         (*branch_order<mode>_inverted): Likewise.
2325         (*branch_equality<mode>): Likewise.
2326         (*branch_equality<mode>_inverted): Likewise.
2327         (*branch_bit<bbv><mode>): Likewise.
2328         (*branch_bit<bbv><mode>_inverted): Likewise.
2329         (*branch_equality<mode>_mips16): Remove redundant mode.
2330         (jump): Turn into a define_expand.
2331         (*jump_absolute): New instruction.
2332         (*jump_pic): Likewise.
2333         (*jump_mips16): Rename previously-unnamed pattern.  Remove
2334         redundant mode attribute.
2335         (restore_gp): Split on epilogue_completed rather than
2336         reload_completed.  Change type to "ghost".
2337         (move_gp<mode>): New instruction.
2338         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
2339         Remove redundant mode attribute.
2340         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
2341         (bc1any4f, bc1any2t, bc1any2f): Likewise.
2342         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
2343
2344 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
2345
2346         PR target/41210
2347         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
2348         are returned in the same register (vs34 or v2) that Altivec vector
2349         types are returned in.
2350         (rs6000_libcall_value): Ditto.
2351
2352         PR target/41331
2353         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
2354         instead of explicit addsi3/adddi3 calls.
2355         (rs6000_split_multireg_move): Ditto.
2356         (rs6000_emit_allocate_stack): Ditto.
2357         (rs6000_emit_prologue): Ditto.
2358         (rs6000_output_mi_thunk): Ditto.
2359
2360         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
2361         size is 64 bits if we can use 64-bit registers.
2362
2363 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
2364
2365         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
2366         symbols.
2367
2368         From Jie Zhang <jie.zhang@analog.com>:
2369         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
2370         save FP and RETS with saveall attribute.
2371         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
2372         with saveall attribute.
2373
2374         * config/bfin/bfin.c (bfin_expand_builtin,
2375         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
2376         operands.
2377
2378         From Jie Zhang <jie.zhang@analog.com>:
2379         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
2380         before use in two places.
2381         * config/bfin/bfin.md (AREG): Define mode iterator.
2382         (reload_in, reload_out): Use mode iterator AREG.
2383
2384 2009-09-14  Richard Guenther  <rguenther@suse.de>
2385
2386         PR middle-end/41350
2387         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
2388         EH personality path.
2389
2390 2009-09-13  Richard Guenther  <rguenther@suse.de>
2391             Rafael Avila de Espindola  <espindola@google.com>
2392
2393         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
2394         (LANG_HOOKS_EH_PERSONALITY): Likewise.
2395         (LANG_HOOKS_INITIALIZER): Adjust.
2396         (lhd_pass_through_t): Declare.
2397         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
2398         eh_personality.
2399         * langhooks.c (lhd_pass_through_t): New function.
2400         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
2401         dwarf2out_begin_prologue): Use personality from current_function_decl.
2402         * expr.h (get_personality_function): Declare.
2403         * expr.c (get_personality_function): New function.
2404         (build_personality_function): Likewise.
2405         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
2406         (eh_personality_libfunc): Remove.
2407         * optabs.c (build_libfunc_function): New function split out from ...
2408         (init_one_libfunc): ... here.
2409         * tree.h (DECL_FUNCTION_PERSONALITY): New.
2410         (tree_function_decl): Add personality.
2411         (lhd_gcc_personality): Declare.
2412         (build_personality_function): Likewise.
2413         * tree.c (gcc_eh_personality_decl): New.
2414         (lhd_gcc_personality): New function.
2415         * except.h (lang_eh_runtime_type): Remove.
2416         (enum eh_personality_kind): New.
2417         (build_personality_function): Declare.
2418         (function_needs_eh_personality): Declare.
2419         * except.c (lang_eh_runtime_type): Remove.
2420         (function_needs_eh_personality): New function.
2421         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
2422         (sjlj_emit_function_enter, output_function_exception_table):
2423         Use personality from current_function_decl.
2424         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
2425         * tree-inline.c (tree_can_inline_p): Do not inline across different
2426         EH personalities.
2427         (expand_call_inline): Likewise.  Adjust the callers EH personality.
2428         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
2429         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
2430         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
2431         (c-parser.o): Likewise
2432         * c-tree.h (c_eh_initialized_p): Remove.
2433         (c_maybe_initialize_eh): Likewise.
2434         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
2435         (finish_decl): Don't call c_maybe_initialize_eh.
2436         (c_eh_initialized_p): Remove.
2437         (c_maybe_initialize_eh): Likewise.
2438         * c-parser.c (c_parser_omp_construct): Likewise.
2439         (c_parse_file): Initialize exception handling.
2440
2441 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
2442
2443         * config.gcc (tm_file): Remove i386/biarch32.h
2444         for i?86-w64-mingw* case.
2445         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
2446         support.
2447         * config.host: Set for x64 mingw the option
2448         use_long_long_for_widest_fast_int to yes.
2449
2450 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
2451
2452         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
2453         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
2454         (dbxout_begin_function): Likewise.
2455         * final.c (dwarf2_debug_info_emitted_p): New predicate.
2456         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
2457         set on the function.
2458         (final_end_function): Likewise.
2459         (final_scan_insn): Likewise.
2460         (rest_of_handle_final): Likewise.
2461         * varasm.c (assemble_start_function): Likewise.
2462         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2463
2464 2009-09-12  Jason Merrill  <jason@redhat.com>
2465
2466         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
2467         * opts.c (common_handle_option): constify.
2468
2469 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
2470
2471         * doc/install.texi (avr): Remove obsolete reference site.
2472
2473 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
2474
2475         * doc/install.texi (Binaries): Adjust AIX link.
2476
2477 2009-09-12  Akim Demaille  <demaille@gostai.com>
2478
2479         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
2480         Use an imperative sentence.
2481
2482 2009-09-11  Richard Henderson  <rth@redhat.com>
2483
2484         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
2485         structure-name and has-tree-operands arguments; update all entries.
2486         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
2487         update all entries.
2488         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
2489         (gsstruct_code_size): New.
2490         (gss_for_code_): New.
2491         (gss_for_code): Remove.
2492         (gimple_size): Rewrite using gsstruct_code_size.
2493         (gimple_statement_structure): Move to gimple.h.
2494         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
2495         (gss_for_code, gimple_statement_structure): New.
2496         (gimple_ops): Use new arrays; tidy.
2497
2498 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2499
2500         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
2501         operand to be a PLUS expression.
2502         * config/pa/pa.c (pa_secondary_reload): Likewise.
2503
2504 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
2505
2506         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
2507
2508         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
2509         XEXP (in_rtx, 8).
2510
2511 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
2512
2513         From Jie Zhang <jie.zhang@analog.com>:
2514         * doc/extend.texi (node Function Attributes): Document l2
2515         function attribute.
2516         (node Blackfin Variable Attributes): Document l2 variable attributes.
2517
2518 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
2519
2520         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
2521         to match the system compiler's configuration at inflection point.
2522         Add comment to remark a remaining difference with system compiler.
2523
2524         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
2525         * configure: Regenerate.
2526
2527 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
2528
2529         From Jie Zhang <jie.zhang@analog.com>:
2530         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
2531         (bfin_handle_l2_attribute): New.
2532         (bfin_attribute_table): Add l2 attribute.
2533
2534 2009-09-11  Michael Matz  <matz@suse.de>
2535
2536         PR middle-end/41275
2537         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
2538         on the local_decls list.
2539
2540 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
2541
2542         PR debug/41276
2543         PR debug/41307
2544         * cselib.c (cselib_expand_value_rtx_cb): Document callback
2545         interface.
2546         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
2547         for VALUEs, to implement the documented interface.
2548         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
2549         Adjust for VALUEs and anything else, to implement the
2550         documented interface.
2551
2552 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
2553
2554         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
2555         with actual SPE/paired vector modes before using 64-bit alignment.
2556         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
2557
2558 2009-09-10  DJ Delorie  <dj@redhat.com>
2559
2560         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
2561         emitted.
2562
2563         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
2564         * config/mep/mep.c (mep_legitimate_constant_p): New.
2565         * config/mep/mep-protos.h: Prototype it.
2566
2567 2009-09-10  Richard Henderson  <rth@redhat.com>
2568
2569         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
2570
2571 2009-09-10  Jason Merrill  <jason@redhat.com>
2572
2573         * tree.c (chain_index): New fn.
2574         * tree.h: Declare it.
2575
2576 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2577
2578         * config/sol2-c.c (cmn_err_length_specs): Initialize
2579         scalar_identity_flag.
2580
2581 2009-09-10  Richard Henderson  <rth@redhat.com>
2582
2583         * tree.h (struct tree_decl_common): Move align member earlier;
2584         move label_decl_uid member ...
2585         (struct tree_label_decl): ... here.
2586         (LABEL_DECL_UID): Update to match.
2587
2588         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
2589         not TDF_DETAILS.
2590
2591         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
2592         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
2593
2594         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
2595         dest_prev if the edge is complex.
2596
2597         * tree-cfg.c (is_ctrl_stmt): Use a switch.
2598
2599         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
2600         loop latch tests earlier.
2601
2602         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
2603         before GIMPLE_RETURN, not after its predecessor; insert
2604         before GIMPLE_RESX.
2605
2606         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
2607         gimple_seq_empty_p to test for no PHI nodes.
2608         * tree-cfg.c (split_critical_edges): Likewise.
2609
2610         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
2611
2612 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
2613
2614         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
2615         introduced by the VTA branch merge.
2616
2617 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
2618
2619         * ira-conflicts.c: Use fputs or putc instead of fprintf
2620         where appropriate.
2621         * cfg.c: Ditto.
2622         * toplev.c: Ditto.
2623         * tree-switch-conversion.c: Ditto.
2624
2625 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
2626
2627         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
2628         introduced by the VTA branch merge.
2629
2630 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
2631
2632         Revert:
2633         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
2634
2635         PR rtl-optimization/39779
2636         * expr.c (convert_modes): Return when mode == oldmode after
2637         CONST_INTs are processed.
2638
2639 2009-09-10  Nick Clifton  <nickc@redhat.com>
2640
2641         * config/mep/mep.c (mep_encode_section_info): Copy weakness
2642         attribute and referring decl when creating renamed symbol.
2643
2644 2009-09-10  Richard Guenther  <rguenther@suse.de>
2645
2646         PR middle-end/41257
2647         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
2648         reachable nodes.
2649         (cgraph_finalize_compilation_unit): Compute reachability
2650         before emitting thunks.  Properly process aliases before
2651         possibly removing unreachable nodes.
2652
2653 2009-09-10  Richard Guenther  <rguenther@suse.de>
2654
2655         PR middle-end/41254
2656         * tree.c (struct free_lang_data_d): Add worklist member.
2657         (find_decls_types_r): Push onto the worklist instead of recursing.
2658         Handle TREE_BINFOs properly.
2659         (find_decls_types): New function wrapped around find_decls_types_r
2660         to process the worklist.
2661         (find_decls_types_in_eh_region): Use it.
2662         (find_decls_types_in_node): Likewise.
2663         (find_decls_types_in_var): Likewise.
2664         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
2665         * tree.h (RECORD_OR_UNION_TYPE_P): New.
2666         (AGGREGATE_TYPE_P): Adjust.
2667
2668 2009-09-09  Jason Merrill  <jason@redhat.com>
2669
2670         * configure.ac: Check glibc version even if we have an in-tree
2671         assembler.
2672
2673 2009-09-09  Anthony Green  <green@moxielogic.com>
2674
2675         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
2676         the constant 0 when appropriate.
2677         * config/moxie/constraints.md: Add constraint O.
2678
2679         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
2680         to pass up to 6 32-bit argument values in registers.
2681         (moxie_function_arg): Ditto.
2682         (moxie_arg_partial_bytes): Ditto.
2683         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
2684         (REG_PARM_STACK_SPACE): Ditto.
2685         (FUNCTION_ARG_REGNO_P): Ditto.
2686
2687         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
2688         instruction to allocate stack space.
2689
2690 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
2691
2692         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
2693         unnecessarily stringent constraints.  Fix address
2694         calculation in the splitters.
2695
2696 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
2697
2698         PR rtl-optimization/39779
2699         * expr.c (convert_modes): Return when mode == oldmode after
2700         CONST_INTs are processed.
2701
2702 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
2703
2704         PR/41315
2705         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
2706         (ix86_expand_prologue): Take frame.padding0 into logic of
2707         to_allocate checks.
2708         (ix86_expand_epilogue): Likewise.
2709
2710 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
2711
2712         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
2713         New variables.
2714         (SHLIB_LINK, SHLIB_INSTALL): Use them.
2715         * config/t-slibgcc-libgcc: New file.
2716         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
2717
2718 2009-09-09  Martin Jambor  <mjambor@suse.cz>
2719
2720         PR tree-optimization/41089
2721         * tree-sra.c (find_var_candidates): Do not consider va_lists in
2722         early SRA.
2723
2724 2009-09-09  Richard Henderson  <rth@redhat.com>
2725
2726         * gimple.h (CASE_GIMPLE_OMP): New.
2727         (is_gimple_omp): Use it.
2728         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
2729         (verify_gimple_debug): Likewise.
2730
2731 2009-09-09  Richard Guenther  <rguenther@suse.de>
2732
2733         PR tree-optimization/41101
2734         * tree-ssa-pre.c (maximal_set): Remove.
2735         (compute_antic_aux): Treat the maximal set as implicitly all ones.
2736         Defer all blocks we didn't visit at least one successor.
2737         (add_to_exp_gen): Do not add to the maximal set.
2738         (make_values_for_phi): Likewise.
2739         (compute_avail): Likewise.
2740         (init_pre): Do not allocate the maximal set.
2741         (execute_pre): Do not dump it.
2742
2743 2009-09-09  Martin Jambor  <mjambor@suse.cz>
2744
2745         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
2746         an SSA_NAME rather than a is_gimple_variable.
2747
2748 2009-09-09  Richard Guenther  <rguenther@suse.de>
2749
2750         PR middle-end/41317
2751         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
2752         code dealing with plain pointer bases.
2753         (maybe_fold_offset_to_reference): Likewise.
2754         (maybe_fold_stmt_addition): Adjust.
2755
2756 2009-09-09  Richard Guenther  <rguenther@suse.de>
2757
2758         * tree.c (free_lang_data_in_type): Do not free the type variant
2759         chains.
2760         (free_lang_data): Merge char_type_node with its properly signed
2761         variant.
2762         (pass_ipa_free): Collect after freeing language specific data.
2763
2764 2009-09-09  Michael Matz  <matz@suse.de>
2765
2766         PR middle-end/41268
2767         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
2768         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
2769         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
2770         to reflect reality.
2771
2772 2009-09-08  DJ Delorie  <dj@redhat.com>
2773
2774         * config/mep/mep.c (conversions[]): Add "ml" pattern.
2775
2776 2009-09-04  Jason Merrill  <jason@redhat.com>
2777
2778         * tree.c (tree_find_value): Remove.
2779         * tree.h: Remove prototype.
2780         * varasm.c (assemble_external): Use value_member instead.
2781
2782 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
2783
2784         * toplev.c (process_options): Choose default debugging type when
2785         gtoggle enables debug info and type is unset.
2786
2787 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
2788
2789         PR debug/41276
2790         PR debug/41307
2791         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
2792         invalid subreg.
2793
2794 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
2795
2796         * configure: Rebuilt with modified libtool.m4.
2797
2798 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
2799
2800         PR debug/41229
2801         PR debug/41291
2802         PR debug/41300
2803         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
2804
2805 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
2806
2807         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
2808         (remove_statement): Likewise.
2809         (rewrite_use_nonlinear_expr): Adjust.
2810         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
2811         * tree-ssa.c (release_defs_bitset): ... this.  New.
2812         * tree-flow.h (release_defs_bitset): Declare.
2813
2814 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
2815
2816         PR debug/41232
2817         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
2818         in the middle block.
2819
2820 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
2821
2822         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
2823         via intptr_t to long type.
2824         (insert_operand_rank): Cast long type via intptr_t to
2825         pointer type.
2826         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
2827         pointer to scalar.
2828         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
2829         from pointer to unsigned via uintptr_t.
2830
2831         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
2832         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
2833         and HAVE_INTPTR_T.
2834         * configure: Regenerated.
2835         * config.in: Regenerated
2836         * system.h (stdint.h): Add include.
2837         (inttypes.h): Likewise.
2838         * Makefile.in (aclocal): Add config/stdint.m4.
2839         * aclocal.m4: Regenerated.
2840
2841 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
2842
2843         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
2844         variables.
2845         (note_np_check_stores): New function.
2846         (harmless_null_pointer_p): New function.
2847         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
2848         changed.  Take into account whether we're in the shadow of a condjump
2849         that tested NP_REG for NULL.
2850         Lose all code that tested for SEQUENCEs.
2851         (workaround_speculation): Avoid inserting NOPs for loads that are
2852         either always executed or a NULL pointer.
2853
2854 2009-09-08  Jan Hubicka  <jh@suse.cz>
2855
2856         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
2857         * params.def (early-inlining-insns): Likewise.
2858
2859 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
2860
2861         PR rtl-optimization/41239
2862         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
2863         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
2864         lists.
2865         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
2866         across calls, as the calls might not always return normally.
2867         (call_may_noreturn_p): New function.
2868         (deps_analyze_insn): Update last_function_call_may_noreturn list.
2869         (init_deps): Initialize it.
2870         (remove_from_deps): Also remove calls from
2871         last_function_call_may_noreturn list.
2872
2873 2009-09-07  Richard Henderson  <rth@redhat.com>
2874
2875         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
2876         more VR->OPERANDS than LHS operands.  Free LHS before returning.
2877
2878 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
2879
2880         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
2881         (attr "addrtype"): New member "spreg".
2882         Use it if mem_spfp_address_operand is true for the address.
2883         (attr "type"): New entry "stall".
2884         (cpu_unit "load"): New.
2885         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
2886         "load".
2887         (insn_reservation "loadsp"): New.
2888         (insn_reservation "load_stall1"): New.
2889         (insn_reservation "load_stall3"): New.
2890         (stall): New insn.
2891         * config/bfin/predicates.md (const1_operand, const3_operand): New.
2892         (mem_p_address_operand): Exclude stack and frame pointer based
2893         addresses.
2894         (mem_spfp_address_operand): New; match them here.
2895         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
2896         (bfin_reorg): Call it if scheduling insns.
2897         (bfin_gen_bundles): Remove dummy insns created by
2898         add_sched_insns_for_speculation.
2899
2900         From Jie Zhang <jie.zhang@analog.com>:
2901         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
2902         bfin_si_revision, bfin_workarounds): Move these ...
2903         * config/bfin/bfin.h: ... here.
2904
2905         From Mike Frysinger  <michael.frysinger@analog.com>
2906         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
2907         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
2908         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
2909         bf547m, bf548m, and bf549m.
2910         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
2911         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
2912         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
2913         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
2914         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2915         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
2916         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2917         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2918         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
2919         bf542m, bf544m, bf547m, bf548m, and bf549m.
2920
2921         From Jie Zhang <jie.zhang@analog.com>:
2922         * config/bfin/predicates.md (p_register_operand): New predicate.
2923         (dp_register_operand): New predicate.
2924         * config/bfin/bfin-protos.h (WA_05000074): Define.
2925         (ENABLE_WA_05000074): Define.
2926         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
2927         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
2928         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
2929         (define_attr addrtype): Allow load/store register to be P register.
2930         (define_attr storereg): New.
2931         (define_cpu_unit anomaly_05000074): New.
2932         (define_insn_reservation dsp32shiftimm): New.
2933         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
2934         (define_insn_reservation loadp): Cannot use slot2.
2935         (define_insn_reservation loadsp): Cannot use slot2.
2936         (define_insn_reservation storep): Cannot use slot2. Does not
2937         apply when working around 05000074.
2938         (define_insn_reservation storep_anomaly_05000074): New.
2939         (define_insn_reservation storei): Does not apply when working
2940         around 05000074.
2941         (define_insn_reservation storei_anomaly_05000074): New.
2942         (define_attr length): Add dsp32shiftimm case.
2943         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
2944         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
2945         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
2946         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
2947         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
2948
2949 2009-09-07  Martin Jambor  <mjambor@suse.cz>
2950
2951         PR middle-end/41282
2952         * tree-sra.c (create_artificial_child_access): Return NULL if
2953         build_ref_for_offset fails.
2954         (propagate_subacesses_accross_link): Allow build_ref_for_offset
2955         and create_artificial_child_access to fail.
2956
2957 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
2958
2959         PR c++/41214
2960         * unwind-dw2.c (uw_init_context_1): Mark noinline.
2961         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
2962         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
2963
2964 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
2965
2966         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
2967         block, ensure it has an exit edge.  Emit a barrier after a jump.
2968
2969 2009-09-07  Nick Clifton  <nickc@redhat.com>
2970
2971         * gcc.c (this_is_linker_script): New variable.  Like
2972         this_is_library_file but for the %T constructor.
2973         (end_going_arg): If this_is_linker_script is set then locate the
2974         script and insert a --script switch before it
2975         (do_spec_2): Initialise this_is_linker_script.
2976         (do_spec_1): Likewise.  Handle %T construct.
2977         (eval_spec_function): Preserve this_is_linker_script.
2978         * doc/invoke.texi: Document %T construct in spec files.
2979         * config/m32c/m32c.h (LIB_SPEC): Use it.
2980
2981 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2982
2983         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
2984         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
2985         when volatile flag is set.
2986         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
2987
2988 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
2989
2990         PR bootstrap/41241
2991         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
2992         (combine_stack_adjustments_for_block): Allow insns between stack
2993         adjustments and stores with corresponding pre-(dec|inc)rement or
2994         pre-modify operation.
2995
2996 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
2997
2998         PR bootstrap/41241
2999         * combine-stack-adj.c (struct csa_memlist): Rename to...
3000         (struct csa_reflist): ... this.  Rename mem field to ref.
3001         (free_csa_memlist): Rename to...
3002         (free_csa_reflist): ... this.
3003         (record_one_stack_memref): Rename to...
3004         (record_one_stack_ref): ... this.  Handle also REG_P.
3005         (try_apply_stack_adjustment): Handle also REG_P.
3006         (struct record_stack_memrefs_data): Rename to...
3007         (struct record_stack_refs_data): ... this.  Rename memlist field to
3008         reflist.
3009         (record_stack_memrefs): Rename to...
3010         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
3011         subexpressions instead of failing when a MEM contains SP references.
3012         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
3013         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
3014
3015 2009-09-06  Richard Guenther  <rguenther@suse.de>
3016
3017         PR middle-end/41144
3018         * tree.c (build_array_type): Do not record types marked
3019         with structural equality in the canonical type hashtable.
3020
3021 2009-09-06  Richard Guenther  <rguenther@suse.de>
3022
3023         PR middle-end/41261
3024         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
3025
3026 2009-09-05  Richard Guenther  <rguenther@suse.de>
3027
3028         PR middle-end/41181
3029         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
3030
3031 2009-09-05  Richard Guenther  <rguenther@suse.de>
3032
3033         PR debug/41273
3034         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
3035
3036 2009-09-05  Richard Guenther  <rguenther@suse.de>
3037
3038         PR middle-end/41271
3039         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
3040         before comparing function argument types.
3041
3042 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3043
3044         PR target/41024
3045         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
3046         the assembler.
3047
3048 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
3049
3050         Revert:
3051         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
3052
3053         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
3054         locators before emit_insn is called.
3055
3056 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
3057
3058         PR bootstrap/41241
3059         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
3060         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
3061         (reginfo_init): Don't call allocate_reg_info.
3062
3063 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
3064
3065         PR target/41262
3066         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
3067         NONDEBUG_INSN_P instead of INSN_P.
3068
3069 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
3070
3071         PR debug/41225
3072         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
3073
3074 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
3075
3076         PR target/41252
3077         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
3078         pattern of the split.
3079
3080 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
3081
3082         * toplev.c (process_options): Move setter of flag_var_tracking
3083         before other tests that depend on it.  Move down setter of
3084         flag_rename_registers.  Don't enable var-tracking-assignments
3085         by default if selective scheduling is enabled.  Warn if both
3086         are enabled.
3087
3088 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
3089
3090         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
3091         comment.  Use switch statement to catch overlaps between rtx
3092         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
3093         (IS_DECL_CODE): ... here. Remove.
3094         (check_value_is_not_decl): Remove.
3095         (dv_from_decl, dv_from_value): Check after conversion.
3096
3097 2009-09-04  Richard Guenther  <rguenther@suse.de>
3098
3099         PR middle-end/41257
3100         * (cgraph_finalize_compilation_unit): Move finalizing aliases
3101         after emitting tunks.  Move emitting thunks and ctors from ...
3102         (cgraph_optimize): ... here.  Remove redundant
3103         cgraph_analyze_functions.
3104         * varasm.c (find_decl_and_mark_needed): Remove no longer
3105         necessary check.
3106         (finish_aliases_1): Adjust check for thunk aliases.
3107
3108 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
3109
3110         * config/arm/arm.md (ctzsi2): Added braces
3111         to avoid warning that broke booststrap.
3112
3113 2009-09-04  Martin Jambor  <mjambor@suse.cz>
3114
3115         PR tree-optimization/41112
3116         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
3117         handle variable-bounded arrays.
3118         (expr_with_var_bounded_array_refs_p): New function.
3119         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
3120
3121 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
3122
3123         * config/s390/2097.md: Removed two incorrect bypasses.
3124         (z10_fsimpdf): Fixed latency.
3125         (z10_fhex): New insn_reservation.
3126         (z10_floaddf): Fixed latency.
3127         (z10_floadsf): Fixed latency.
3128         (z10_ftrunctf): Fixed latency.
3129         (z10_ftruncdf): Fixed latency.
3130         * config/s390/s390.c (z10_cost): Fixed values.
3131         (s390_adjust_priority): Added z10 path.
3132         * config/s390/s390.md (type): Added fhex.
3133         (*mov<mode>_64dfp): Updated type attribute.
3134         (*mov<mode>_64): Updated type attribute.
3135         (*mov<mode>_31): Updated type attribute.
3136         (*mov<mode>"): Likewise.
3137         * config/s390/2084.md (x_fsimpdf): Updated condition.
3138
3139 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
3140
3141         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
3142         RTXs in the predicate for operand 1.
3143
3144 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
3145
3146         * config/arm/arm.md (UNSPEC_RBIT): New constant.
3147         (rbitsi2): New insn.
3148         (ctzsi2): New expand.
3149         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
3150
3151 2009-09-03  Martin Jambor  <mjambor@suse.cz>
3152
3153         * tree-sra.c (duplicate_expr_for_different_base): Removed.
3154         (create_artificial_child_access): Use build_ref_for_offset instead
3155         of duplicate_expr_for_different_base.
3156         (propagate_subacesses_accross_link): Likewise.
3157
3158 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
3159
3160         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
3161         of INSN_P.
3162         (mips16e_collect_argument_saves): Skip debug instructions.
3163         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
3164         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
3165         (r10k_insert_cache_barriers): Likewise.
3166         (mips_reorg_process_insns): Likewise.
3167
3168 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
3169
3170         PR bootstrap/41241
3171         * ira.c (update_equiv_reg): Remove check on class likely spill.
3172
3173 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
3174
3175         PR debug/41236
3176         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
3177         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
3178         it or SUBREG.
3179
3180         PR debug/41238
3181         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
3182         the stack slot if it is passed by invisible reference.
3183         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
3184         by invisible reference.
3185
3186 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
3187
3188         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
3189         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
3190         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
3191         0.
3192         * config/bfin/sync.md: New file.
3193         * config/bfin/bfin.md: Include it.
3194         (UNSPEC_ATOMIC): New.
3195         (UNSPEC_ONES): Provide a unique number.
3196
3197         From Jie Zhang <jie.zhang@analog.com>:
3198         * config/bfin/bfin.c (ret_regs): New.
3199         (must_save_fp_p): Don't return true because of frame_pointer_needed.
3200         (must_save_rets_p): New.
3201         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
3202         current_function_is_leaf.
3203         (do_link): Likewise.
3204         (do_unlink): Likewise.
3205         (expand_interrupt_handler_prologue): Use ret_regs array.
3206         (expand_interrupt_handler_epilogue): Use ret_regs array and
3207         pass return register to gen_return_internal.
3208         (bfin_expand_epilogue): Pass return register to
3209         gen_return_internal.
3210         (bfin_expand_call): Explicitly clobber RETS.
3211         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
3212         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
3213         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
3214         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
3215         RETS.
3216         (return_internal): Take a reg rtx rather than the register number.
3217
3218 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
3219
3220         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
3221         when comparing against estimated_loop_iterations_int return.
3222
3223 2009-09-03  Richard Guenther  <rguenther@suse.de>
3224
3225         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
3226         eh_personality_libfunc.
3227
3228 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
3229
3230         * tree-parloops.c (separate_decls_in_region): Add space.
3231
3232 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
3233
3234         * tree-parloops.c (separate_decls_in_region): Change the condition
3235         checking if there are reductions in the loop.
3236
3237 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
3238
3239         PR tree-optimization/38275
3240         * tree-parloops.c (parallelize_loops): Replace profitability condition
3241         for expected number of iterations.
3242
3243 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
3244
3245         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
3246         (bootstrap-debug): Explain conditions in which it becomes default.
3247         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
3248         make it add to it.
3249
3250 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
3251
3252         * doc/invoke.texi (Optimize Options): Move
3253         -finline-small-functions to the -O2 list.
3254
3255 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
3256
3257         * toplev.c (process_options): Enable var-tracking-assignments
3258         by default if var-tracking is enabled.
3259
3260 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
3261
3262         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
3263         barrier.
3264         * emit-rtl.c (prev_nonnote_insn_bb): New function.
3265         * rtl.h (prev_nonnote_insn_bb): Declare it.
3266
3267 2009-09-03  Diego Novillo  <dnovillo@google.com>
3268
3269         * cgraph.c (cgraph_node_for_decl): New.
3270         * cgraph.h (cgraph_node_for_decl): Declare.
3271         * tree.c (host_integerp): Return 0 if T is NULL.
3272
3273 2009-09-03  Diego Novillo  <dnovillo@google.com>
3274
3275         * tree.h (struct alias_pair): Move from varasm.c.
3276         (alias_pairs): Likewise.
3277         (TYPE_MAXVAL): Define.
3278         (TYPE_MINVAL): Define.
3279         (iterative_hash_host_wide_int): Declare.
3280         (remove_unreachable_alias_pairs): Declare.
3281         * tree-pass.h (pass_ipa_free_lang_data): Declare.
3282         * diagnostic.c (default_diagnostic_starter): Make extern.
3283         (default_diagnostic_finalizer): Make extern.
3284         * diagnostic.h (default_diagnostic_starter): Declare.
3285         (default_diagnostic_finalizer): Declare.
3286         (default_tree_printer): Declare.
3287         * toplev.c (default_tree_printer): Make extern.
3288
3289 2009-09-03  Richard Guenther  <rguenther@suse.de>
3290             Diego Novillo  <dnovillo@google.com>
3291
3292         * cgraph.c (cgraph_add_new_function): Remove gimplification.
3293         * cgraphunit.c (cgraph_expand_function): Do not emit
3294         associated thunks from here.
3295         (cgraph_emit_thunks): New.
3296         (cgraph_optimize): Call it.
3297         Return if any IPA pass finds an error.
3298         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
3299         by thunks.
3300
3301 2009-09-03  Simon Baldwin  <simonb@google.com>
3302             Rafael Espindola  <espindola@google.com>
3303             Richard Guenther  <rguenther@suse.de>
3304             Doug Kwan  <dougkwan@google.com>
3305             Diego Novillo  <dnovillo@google.com>
3306
3307         * tree.c: Include tree-pass.h, langhooks-def.h,
3308         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
3309         (free_lang_data_in_type): New.
3310         (need_assembler_name_p): New.
3311         (free_lang_data_in_block): New.
3312         (free_lang_data_in_decl): New.
3313         (struct free_lang_data_d): New.
3314         (add_tree_to_fld_list): New.
3315         (find_decls_types_r): New.
3316         (get_eh_types_for_runtime): New.
3317         (find_decls_types_in_eh_region): New.
3318         (find_decls_types_in_node): New.
3319         (find_decls_types_in_var): New.
3320         (free_lang_data_in_cgraph): New.
3321         (free_lang_data): New.
3322         (gate_free_lang_data): New.
3323         (pass_ipa_free_lang_data): New.
3324
3325 2009-09-03  Diego Novillo  <dnovillo@google.com>
3326
3327         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
3328         * langhooks.h (struct lang_hooks): Add field free_lang_data.
3329         (lang_hooks): Remove const qualifier.
3330         * ipa.c (cgraph_remove_unreachable_nodes): Call
3331         remove_unreachable_alias_pairs.
3332         * except.c (add_type_for_runtime): Check if TYPE has
3333         already been converted.
3334         (lookup_type_for_runtime): Likewise.
3335         (check_handled): Handle converted types.
3336         * varasm.c (remove_unreachable_alias_pairs): New.
3337         * gimple.c: Include demangle.h.
3338         (gimple_decl_printable_name): New.
3339         (gimple_fold_obj_type_ref): New.
3340         * gimple.h (gimple_decl_printable_name): Declare.
3341         (gimple_fold_obj_type_ref): Declare.
3342         * passes.c (init_optimization_passes): Add pass
3343         pass_ipa_free_lang_data.
3344         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
3345         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
3346
3347 2009-09-03  Diego Novillo  <dnovillo@google.com>
3348
3349         * c-lang.c (lang_hooks): Remove const qualifier.
3350
3351 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
3352
3353         * doc/install.texi (*-*-freebsd*): Update target information.
3354
3355 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
3356
3357         * hard-reg-set.h (call_fixed_regs): Remove.
3358         * reginfo.c (call_fixed_regs): Remove.
3359         (init_reg_sets_1): Remove initialization of call_fixed_regs.
3360         (globalize_reg): Don't use call_fixed_regs.
3361         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
3362         call_fixed_regs.
3363
3364 2009-09-01  Michael Matz  <matz@suse.de>
3365
3366         * expr.h (emit_storent_insn, expand_expr_real_1,
3367         expand_expr_real_2): Declare.
3368         * expr.c (emit_storent_insn, expand_expr_real_1,
3369         expand_expr_real_2): Export.
3370         (store_expr): Setting and evaluating dont_return_target is useless.
3371         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
3372         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
3373         * except.c (expand_resx_expr): Rename to ...
3374         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
3375         * except.h (expand_resx_stmt): Declare.
3376         * stmt.c: Add include gimple.h
3377         (expand_asm_expr): Rename to ...
3378         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
3379         (expand_case): Rewrite to take gimple statement.
3380         * tree.h (expand_asm_stmt): Declare.
3381         (expand_case): Change prototype.
3382         * Makefile.in (stmt.o): Depend on gimple.h.
3383         * builtins.c (expand_builtin_synchronize): Build gimple asm
3384         statement, not an ASM_EXPR.
3385         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
3386         gimple_to_tree, release_stmt_tree): Remove.
3387         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
3388         ggc_free, but hold comparison code and operands separately.
3389         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
3390         (expand_call_stmt, expand_gimple_stmt_1,
3391         expand_gimple_stmt): New helpers.
3392         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
3393         release_stmt_tree.  Call expand_gimple_stmt instead.
3394         (expand_gimple_basic_block): Ditto.
3395
3396         * calls.c (emit_call_1): Don't look at EH regions here, make
3397         fntree parameter useless.
3398         (expand_call): New local rettype for TREE_TYPE(exp), use it
3399         throughout.  Remove local p, use addr instead.
3400         Don't look at EH regions here.
3401
3402 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
3403
3404         * doc/invoke.texi (-fsched-pressure): Document it.
3405         (-fsched-reg-pressure-heuristic): Remove it.
3406
3407         * reload.c (ira.h): Include.
3408         (find_reloads): Add choosing reload on number of small spilled
3409         classes.
3410
3411         * haifa-sched.c (ira.h): Include.
3412         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
3413         saved_reg_pressure, curr_reg_live, saved_reg_live,
3414         region_ref_regs): New variables.
3415         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
3416         initiate_reg_pressure_info, setup_ref_regs,
3417         initiate_bb_reg_pressure_info, save_reg_pressure,
3418         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
3419         functions.
3420         (setup_insn_reg_pressure_info): New function.
3421         (rank_for_schedule): Add pressure checking and insn issue time.
3422         Remove comparison of insn reg weights.
3423         (ready_sort): Set insn reg pressure info.
3424         (update_register_pressure, setup_insn_max_reg_pressure,
3425         update_reg_and_insn_max_reg_pressure,
3426         sched_setup_bb_reg_pressure_info): New functions.
3427         (schedule_insn): Add code for printing and updating reg pressure info.
3428         (find_set_reg_weight, find_insn_reg_weight): Remove.
3429         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
3430         (debug_ready_list): Print reg pressure info.
3431         (schedule_block): Ditto.  Check insn issue time.
3432         (sched_init): Set up sched_pressure_p.  Allocate and set up some
3433         reg pressure related info.
3434         (sched_finish): Free some reg pressure related info.
3435         (fix_tick_ready): Make insn always ready if pressure_p.
3436         (init_h_i_d): Don't call find_insn_reg_weight.
3437         (haifa_finish_h_i_d): Free insn reg pressure info.
3438
3439         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
3440         ira_memory_move_cost, ira_class_hard_regs,
3441         ira_class_hard_regs_num, ira_no_alloc_regs,
3442         ira_available_class_regs, ira_reg_class_cover_size,
3443         ira_reg_class_cover, ira_class_translate): Move to ira.h.
3444
3445         * ira-lives.c (single_reg_class): Check mode to find how many
3446         registers are necessary for operand.
3447         (ira_implicitly_set_insn_hard_regs): New.
3448
3449         * common.opt (fsched-pressure): New options.
3450         (fsched-reg-pressure-heuristic): Remove.
3451
3452         * ira.c (setup_eliminable_regset): Rename to
3453         ira_setup_eliminable_regset.  Make it external.
3454         (expand_reg_info): Pass cover class to setup_reg_classes.
3455         (ira): Call resize_reg_info instead of allocate_reg_info.
3456
3457         * sched-deps.c: Include ira.h.
3458         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
3459         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
3460         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
3461         mark_insn_hard_regno_birth, mark_insn_reg_birth,
3462         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
3463         mark_insn_reg_store, mark_insn_reg_clobber,
3464         setup_insn_reg_pressure_info): New.
3465         (sched_analyze_1): Update implicit_reg_pending_uses.
3466         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
3467         Use them to create dependencies.  Set insn reg uses and pressure
3468         info.  Process reg_pending_uses in one place.
3469         (free_deps): Free implicit sets.
3470         (remove_from_deps): Remove implicit sets if necessary.  Check
3471         implicit sets when clearing reg_last_in_use.
3472         (init_deps_global): Clear implicit_reg_pending_clobbers and
3473         implicit_reg_pending_uses.
3474
3475         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
3476         ira_memory_move_cost, ira_class_hard_regs,
3477         ira_class_hard_regs_num, ira_no_alloc_regs,
3478         ira_available_class_regs, ira_reg_class_cover_size,
3479         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
3480         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
3481         ira_implicitly_set_insn_hard_regs): New prototypes.
3482
3483         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
3484         cost_elements_num): New variables.
3485         (allocno_costs, total_costs): Rename to costs and
3486         total_allocno_costs.
3487         (COSTS_OF_ALLOCNO): Rename to COSTS.
3488         (allocno_pref): Rename to pref.
3489         (allocno_pref_buffer): Rename to pref_buffer.
3490         (common_classes): Rename to regno_cover_class.
3491         (COST_INDEX): New.
3492         (record_reg_classes): Set allocno attributes only if allocno_p.
3493         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
3494         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
3495         and COSTS_OF_ALLOCNO.
3496         (print_costs): Rename to print_allocno_costs.
3497         (print_pseudo_costs): New.
3498         (process_bb_node_for_costs): Split into 2 functions with new
3499         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
3500         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
3501         new parameter dump_file.  Use cost_elements_num instead of
3502         ira_allocnos_num.  Make one iteration if preferred classes were
3503         already calculated for scheduler.  Make 2 versions of code
3504         depending on allocno_p.
3505         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
3506         regno_cover_class and COSTS instead of common_classes and
3507         COSTS_OF_ALLOCNO.
3508         (init_costs, finish_costs): New.
3509         (ira_costs): Set up allocno_p and cost_elements_num.  Call
3510         init_costs and finish_costs.
3511         (ira_set_pseudo_classes): New.
3512
3513         * rtl.h (allocate_reg_info): Remove.
3514         (resize_reg_info): Change return type.
3515         (reg_cover_class): New.
3516         (setup_reg_classes): Add new parameter.
3517
3518         * sched-int.h (struct deps_reg): New member implicit_sets.
3519         (sched_pressure_p, sched_regno_cover_class): New external definitions.
3520         (INCREASE_BITS): New macro.
3521         (struct reg_pressure_data, struct reg_use_data): New.
3522         (struct _haifa_insn_data): Remove reg_weight.  Add members
3523         reg_pressure, reg_use_list, reg_set_list, and
3524         reg_pressure_excess_cost_change.
3525         (struct deps): New member implicit_sets.
3526         (pressure_p): New variable.
3527         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
3528         (struct reg_pressure_data, struct reg_use_data): New.
3529         (INSN_REG_WEIGHT): Remove.
3530         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
3531         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
3532         (sched_init_region_reg_pressure_info,
3533         sched_setup_bb_reg_pressure_info): New prototypes.
3534
3535         * reginfo.c (struct reg_pref): New member coverclass.
3536         (reg_cover_class): New function.
3537         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
3538         (reg_info_size): New variable.
3539         (allocate_reg_info): Make static.  Setup reg_info_size.
3540         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
3541         (setup_reg_classes): Add a new parameter.  Setup cover class too.
3542
3543         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
3544         the dependencies.
3545
3546         * sched-rgn.c (deps_join): Set up implicit_sets.
3547         (schedule_region): Set up region and basic blocks pressure
3548         relative info.
3549
3550         * passes.c (init_optimization_passes): Move
3551         pass_subregs_of_mode_init before pass_sched.
3552
3553 2009-09-02  Martin Jambor  <mjambor@suse.cz>
3554
3555         * tree-sra.c (struct access): New field grp_hint.
3556         (dump_access): Dump grp_hint.
3557         (sort_and_splice_var_accesses): Set grp_hint if a group is read
3558         multiple times.
3559         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
3560         those which have been specifically read and somehow written to.
3561         (propagate_subacesses_accross_link): Set grp_hint of right child and
3562         also possibly of the left child.
3563
3564 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
3565
3566         * tree-object-size.c (addr_object_size): Always use object_size_type
3567         0 or 2 when determining the pointer pointed object size.
3568
3569 2009-09-02  Richard Guenther  <rguenther@suse.de>
3570
3571         Revert
3572         2009-08-31  Richard Guenther  <rguenther@suse.de>
3573
3574         * builtins.c (fold_builtin_memory_op): Use the alias oracle
3575         to query if the memory regions for memmove overlap.
3576         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
3577         asserts on pointers, instead deal with odd trees.
3578         (ptr_derefs_may_alias_p): Likewise.
3579         (refs_may_alias_p_1): Constructor bases also never alias.
3580
3581 2009-08-01  Christian Bruel  <christian.bruel@st.com>
3582
3583         Revert:
3584         2009-07-31  Christian Bruel  <christian.bruel@st.com>
3585         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
3586
3587 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
3588
3589         * doc/invoke.texi (-fvar-tracking-assignments): New.
3590         (-fvar-tracking-assignments-toggle): New.
3591         (-fdump-final-insns=file): Mark filename as optional.
3592         (--param min-nondebug-insn-uid): New.
3593         (-gdwarf-@{version}): Mention version 4.
3594         * opts.c (common_handle_option): Accept it.
3595         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
3596         * regrename.c (regrename_optimize): Drop last.  Don't count debug
3597         insns as uses.  Don't reject change because of debug insn.
3598         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
3599         from the chain starter, and check for inexact matches in DEBUG_INSNS.
3600         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
3601         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
3602         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
3603         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
3604         * doc/gimple.texi (is_gimple_debug): New.
3605         (gimple_debug_bind_p): New.
3606         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
3607         * doc/install.texi (bootstrap-debug): More details.
3608         (bootstrap-debug-big, bootstrap-debug-lean): Document.
3609         (bootstrap-debug-lib): More details.
3610         (bootstrap-debug-ckovw): Update.
3611         (bootstrap-time): New.
3612         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
3613         (insert_phi_nodes_for): Insert debug stmts.
3614         (rewrite_stmt): Take iterator.  Insert debug stmts.
3615         (rewrite_enter_block): Adjust.
3616         (maybe_replace_use_in_debug_stmt): New.
3617         (rewrite_update_stmt): Use it.
3618         (mark_use_interesting): Return early for debug stmts.
3619         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
3620         stmts before replacing stmt.
3621         (move_computations_stmt): Likewise.
3622         * ira-conflicts.c (add_copies): Skip debug insns.
3623         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
3624         (regstat_bb_compute_ri): Skip debug insns.
3625         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
3626         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
3627         check_loop_closed_ssa_stmt): Skip debug stmts.
3628         * tree-tailcall.c (find_tail_calls): Likewise.
3629         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
3630         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
3631         (build_var_debug_value_stat): Declare.
3632         (build_var_debug_value): Define.
3633         (target_for_debug_bind): Declare.
3634         * reload.c (find_equiv_reg): Skip debug insns.
3635         * rtlanal.c (reg_used_between_p): Skip debug insns.
3636         (side_effects_p): Likewise.
3637         (canonicalize_condition): Likewise.
3638         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
3639         insns never depend on debug insns.
3640         (create_ddg_dep_no_link): Likewise.
3641         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
3642         Don't add inter-loop dependencies for debug insns.
3643         (build_intra_loop_deps): Likewise.
3644         (create_ddg): Count debug insns.
3645         * ddg.h (struct ddg::num_debug): New.
3646         (num_backargs): Pair up with previous int field.
3647         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
3648         -fcompare-debug-second.
3649         * final.c (get_attr_length_1): Skip debug insns.
3650         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
3651         * gcc.c (invoke_as): Call compare-debug-dump-opt.
3652         (driver_self_specs): Map -fdump-final-insns to
3653         -fdump-final-insns=..
3654         (get_local_tick): New.
3655         (compare_debug_dump_opt_spec_function): Test for . argument and
3656         compute output name.  Compute temp output spec without flag name.
3657         Compute -frandom-seed.
3658         (OPT): Undef after use.
3659         * cfgloopanal.c (num_loop_insns): Skip debug insns.
3660         (average_num_loop_insns): Likewise.
3661         * params.h (MIN_NONDEBUG_INSN_UID): New.
3662         * gimple.def (GIMPLE_DEBUG): New.
3663         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
3664         * auto-inc-dec.c (merge_in_block): Skip debug insns.
3665         (merge_in_block): Fix whitespace.
3666         * toplev.c (flag_var_tracking): Update comment.
3667         (flag_var_tracking_assignments): New.
3668         (flag_var_tracking_assignments_toggle): New.
3669         (process_options): Don't open final insns dump file if we're not
3670         going to write to it.  Compute defaults for var_tracking.
3671         * df-scan.c (df_insn_rescan_debug_internal): New.
3672         (df_uses_record): Handle debug insns.
3673         * haifa-sched.c (ready): Initialize n_debug.
3674         (contributes_to_priority): Skip debug insns.
3675         (dep_list_size): New.
3676         (priority): Use it.
3677         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
3678         they're ready.  Disregard previous debug insns to make decisions.
3679         (queue_insn): Never queue debug insns.
3680         (ready_add, ready_remove_first, ready_remove): Count debug insns.
3681         (schedule_insn): Don't reject debug insns because of issue rate.
3682         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
3683         (queue_to_ready): Skip and discount debug insns.
3684         (choose_ready): Let debug insns through.
3685         (schedule_block): Check boundary debug insns.  Discount debug
3686         insns, schedule them early.  Adjust whitespace.
3687         (set_priorities): Check for boundary debug insns.
3688         (add_jump_dependencies): Use dep_list_size.
3689         (prev_non_location_insn): New.
3690         (check_cfg): Use it.
3691         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
3692         stmts.
3693         (remove_unused_ivs): Reset debug stmts.
3694         * modulo-sched.c (const_iteration_count): Skip debug insns.
3695         (res_MII): Discount debug insns.
3696         (loop_single_full_bb_p): Skip debug insns.
3697         (sms_schedule): Likewise.
3698         (sms_schedule_by_order): Likewise.
3699         (ps_has_conflicts): Likewise.
3700         * caller-save.c (refmarker_fn): New.
3701         (save_call_clobbered_regs): Replace regs with saved mem in
3702         debug insns.
3703         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
3704         Call refmarker_fn mark for hardregnos.
3705         (mark_reg_as_referenced): New.
3706         (replace_reg_with_saved_mem): New.
3707         * ipa-pure-const.c (check_stmt): Skip debug stmts.
3708         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
3709         searching back.
3710         (cse_extended_basic_block): Skip debug insns.
3711         (count_reg_usage): Likewise.
3712         (is_dead_reg): New, split out of...
3713         (set_live_p): ... here.
3714         (insn_live_p): Use it for debug insns.
3715         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
3716         (execute_optimize_stdarg): Likewise.
3717         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
3718         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
3719         changes in debug stmts as changes.
3720         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
3721         (moveup_expr): Don't move across debug insns.  Don't move
3722         debug insn if it would create a bookkeeping block.
3723         (moveup_expr_cached): Don't use cache for debug insns that
3724         are heads of blocks.
3725         (compute_av_set_inside_bb): Skip debug insns.
3726         (sel_rank_for_schedule): Schedule debug insns first.  Remove
3727         dead code.
3728         (block_valid_for_bookkeeping_p); Support lax searches.
3729         (create_block_for_bookkeeping): Adjust block numbers when
3730         encountering debug-only blocks.
3731         (find_place_for_bookkeeping): Deal with debug-only blocks.
3732         (generate_bookkeeping_insn): Accept no place to insert.
3733         (remove_temp_moveop_nops): New argument full_tidying.
3734         (prepare_place_to_insert): Deal with debug insns.
3735         (advance_state_on_fence): Debug insns don't start cycles.
3736         (update_boundaries): Take fence as argument.  Deal with
3737         debug insns.
3738         (schedule_expr_on_boundary): No full_tidying on debug insns.
3739         (fill_insns): Deal with debug insns.
3740         (track_scheduled_insns_and_blocks): Don't count debug insns.
3741         (need_nop_to_preserve_insn_bb): New, split out of...
3742         (remove_insn_from_stream): ... this.
3743         (fur_orig_expr_not_found): Skip debug insns.
3744         * rtl.def (VALUE): Move up.
3745         (DEBUG_INSN): New.
3746         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
3747         (nearest_common_dominator_of_uses): Take debug_stmts argument.
3748         Set it if debug stmts are found.
3749         (statement_sink_location): Skip debug stmts.  Propagate
3750         moving defs into debug stmts.
3751         * ifcvt.c (first_active_insn): Skip debug insns.
3752         (last_active_insns): Likewise.
3753         (cond_exec_process_insns): Likewise.
3754         (noce_process_if_block): Likewise.
3755         (check_cond_move_block): Likewise.
3756         (cond_move_convert_if_block): Likewise.
3757         (block_jumps_and_fallthru_p): Likewise.
3758         (dead_or_predicable): Likewise.
3759         * dwarf2out.c (debug_str_hash_forced): New.
3760         (find_AT_string): Add comment.
3761         (gen_label_for_indirect_string): New.
3762         (get_debug_string_label): New.
3763         (AT_string_form): Use it.
3764         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
3765         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
3766         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
3767         several operations that cannot be represented with DWARF opcodes.
3768         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
3769         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
3770         (dwarf2out_var_location): Take during-call mark into account.
3771         (output_indirect_string): Update comment.  Output if there are
3772         label and references.
3773         (prune_indirect_string): New.
3774         (prune_unused_types): Call it if debug_str_hash_forced.
3775         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
3776         (dw_long_long_const): Remove.
3777         (struct dw_val_struct): Change val_long_long type to rtx.
3778         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
3779         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
3780         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
3781         component instead of HOST_BITS_PER_LONG.
3782         (output_loc_operands): Likewise.  For const8* assert
3783         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
3784         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
3785         rather than HOST_BITS_PER_LONG is >= 64.
3786         (add_AT_long_long): Remove val_hi and val_lo arguments, add
3787         val_const_double.
3788         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
3789         HOST_BITS_PER_LONG for dw_val_class_long_long.
3790         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
3791         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
3792         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
3793         DW_OP_stack_value.
3794         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
3795         Handle DW_OP_implicit_value.
3796         (extract_int): Move prototype earlier.
3797         (mem_loc_descriptor): For SUBREG punt if inner
3798         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
3799         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
3800         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
3801         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
3802         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
3803         instead of Pmode size.
3804         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
3805         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
3806         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
3807         (concat_loc_descriptor, concatn_loc_descriptor,
3808         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
3809         (add_location_or_const_value_attribute): Likewise.  For single
3810         location loc_lists attempt to use add_const_value_attribute
3811         for constant decls.  Add DW_AT_const_value even if
3812         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
3813         in its expression.
3814         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
3815         (control_flow_insn_p): Likewise.
3816         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
3817         (separate_decls_in_region_debug_bind): New.
3818         (separate_decls_in_region): Process debug bind stmts afterwards.
3819         * recog.c (verify_changes): Handle debug insns.
3820         (extract_insn): Likewise.
3821         (peephole2_optimize): Skip debug insns.
3822         * dse.c (scan_insn): Skip debug insns.
3823         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
3824         Pass it on.
3825         (setup_id_for_insn): Handle debug insns.
3826         (maybe_tidy_empty_bb): Adjust whitespace.
3827         (tidy_control_flow): Skip debug insns.
3828         (sel_remove_insn): Adjust for debug insns.
3829         (sel_estimate_number_of_insns): Skip debug insns.
3830         (create_insn_rtx_from_pattern): Handle debug insns.
3831         (create_copy_of_insn_rtx): Likewise.
3832         * sel-sched-.h (sel_bb_end): Declare.
3833         (sel_bb_empty_or_nop_p): New.
3834         (get_all_loop_exits): Use it.
3835         (_eligible_successor_edge_p): Likewise.
3836         (return_nop_to_pool): Adjust.
3837         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
3838         * ira-lives.c (process_bb_node_lives): Skip debug insns.
3839         * gimple-pretty-print.c (dump_gimple_debug): New.
3840         (dump_gimple_stmt): Use it.
3841         (dump_bb_header): Skip gimple debug stmts.
3842         * regmove.c (optimize_reg_copy_1): Discount debug insns.
3843         (fixup_match_2): Likewise.
3844         (regmove_backward_pass): Likewise.  Simplify combined
3845         replacement.  Handle debug insns.
3846         * function.c (instantiate_virtual_regs): Handle debug insns.
3847         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
3848         * print-rtl.h: Include cselib.h.
3849         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
3850         * df.h (df_inns_rescan_debug_internal): Declare.
3851         * gcse.c (alloc_hash_table): Estimate n_insns.
3852         (cprop_insn): Don't regard debug insns as changes.
3853         (bypass_conditional_jumps): Skip debug insns.
3854         (one_pre_gcse_pass): Adjust.
3855         (one_code_hoisting_pass): Likewise.
3856         (compute_ld_motion_mems): Skip debug insns.
3857         (one_cprop_pass): Adjust.
3858         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
3859         (if_convertible_stmt_p): Handle debug stmts.
3860         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
3861         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
3862         * ira-build.c (create_bb_allocnos): Skip debug insns.
3863         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
3864         (has_single_use): Likewise.
3865         (single_imm_use): Likewise.
3866         (num_imm_uses): Likewise.
3867         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
3868         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
3869         (create_outofssa_var_map): Likewise.
3870         * lower-subreg.c (adjust_decomposed_uses): New.
3871         (resolve_debug): New.
3872         (decompose_multiword_subregs): Use it.
3873         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
3874         * emit-rtl.c: Include params.h.
3875         (cur_debug_insn_uid): Define.
3876         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
3877         (copy_rtx_if_shared_1): Handle debug insns.
3878         (reset_used_flags): Likewise.
3879         (set_used_flags): LIkewise.
3880         (get_max_insn_count): New.
3881         (next_nondebug_insn): New.
3882         (prev_nondebug_insn): New.
3883         (make_debug_insn_raw): New.
3884         (emit_insn_before_noloc): Handle debug insns.
3885         (emit_jump_insn_before_noloc): Likewise.
3886         (emit_call_insn_before_noloc): Likewise.
3887         (emit_debug_insn_before_noloc): New.
3888         (emit_insn_after_noloc): Handle debug insns.
3889         (emit_jump_insn_after_noloc): Likewise.
3890         (emit_call_insn_after_noloc): Likewise.
3891         (emit_debug_insn_after_noloc): Likewise.
3892         (emit_insn_after): Take loc from earlier non-debug insn.
3893         (emit_jump_insn_after): Likewise.
3894         (emit_call_insn_after): Likewise.
3895         (emit_debug_insn_after_setloc): New.
3896         (emit_debug_insn_after): New.
3897         (emit_insn_before): Take loc from later non-debug insn.
3898         (emit_jump_insn_before): Likewise.
3899         (emit_call_insn_before): Likewise.
3900         (emit_debug_insn_before_setloc): New.
3901         (emit_debug_insn_before): New.
3902         (emit_insn): Handle debug insns.
3903         (emit_debug_insn): New.
3904         (emit_jump_insn): Handle debug insns.
3905         (emit_call_insn): Likewise.
3906         (emit): Likewise.
3907         (init_emit): Take min-nondebug-insn-uid into account.
3908         Initialize cur_debug_insn_uid.
3909         (emit_copy_of_insn_after): Handle debug insns.
3910         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
3911         location of single rhs in place.
3912         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
3913         (floor_sdiv_adjust): New.
3914         (cell_sdiv_adjust): New.
3915         (cell_udiv_adjust): New.
3916         (round_sdiv_adjust): New.
3917         (round_udiv_adjust): New.
3918         (wrap_constant): Moved from cselib.
3919         (unwrap_constant): New.
3920         (expand_debug_expr): New.
3921         (expand_debug_locations): New.
3922         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
3923         debug bind stmts.
3924         (gimple_expand_cfg): Expand debug locations.
3925         * cselib.c: Include tree-pass.h.
3926         (struct expand_value_data): New.
3927         (cselib_record_sets_hook): New.
3928         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
3929         (cselib_clear_table): Move, and implemnet in terms of...
3930         (cselib_reset_table_with_next_value): ... this.
3931         (cselib_get_next_unknown_value): New.
3932         (discard_useless_locs): Don't discard preserved values.
3933         (cselib_preserve_value): New.
3934         (cselib_preserved_value_p): New.
3935         (cselib_preserve_definitely): New.
3936         (cselib_clear_preserve): New.
3937         (cselib_preserve_only_values): New.
3938         (new_cselib_val): Take rtx argument.  Dump it in details.
3939         (cselib_lookup_mem): Adjust.
3940         (expand_loc): Take regs_active in struct.  Adjust.  Silence
3941         dumps unless details are requested.
3942         (cselib_expand_value_rtx_cb): New.
3943         (cselib_expand_value_rtx): Rename and reimplment in terms of...
3944         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
3945         without details.  Copy more subregs.  Try to resolve values
3946         using a callback.  Wrap constants.
3947         (cselib_subst_to_values): Adjust.
3948         (cselib_log_lookup): New.
3949         (cselib_lookup): Call it.
3950         (cselib_invalidate_regno): Don't count preserved values as useless.
3951         (cselib_invalidate_mem): Likewise.
3952         (cselib_record_set): Likewise.
3953         (struct set): Renamed to cselib_set, moved to cselib.h.
3954         (cselib_record_sets): Adjust.  Call hook.
3955         (cselib_process_insn): Reset table when it would be cleared.
3956         (dump_cselib_val): New.
3957         (dump_cselib_table): New.
3958         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
3959         (remove_forwarder_block): Support moving debug stmts.
3960         * cselib.h (cselib_record_sets_hook): Declare.
3961         (cselib_expand_callback): New type.
3962         (cselib_expand_value_rtx_cb): Declare.
3963         (cselib_reset_table_with_next_value): Declare.
3964         (cselib_get_next_unknown_value): Declare.
3965         (cselib_preserve_value): Declare.
3966         (cselib_preserved_value_p): Declare.
3967         (cselib_preserve_only_values): Declare.
3968         (dump_cselib_table): Declare.
3969         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
3970         (try_crossjump_to_edge): Likewise.
3971         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
3972         dominated blocks when debug stmts are present.
3973         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
3974         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
3975         (set_var_live_on_entry): Likewise.
3976         * loop-invariant.c (find_invariants_bb): Skip debug insns.
3977         * cfglayout.c (curr_location, last_location): Make static.
3978         (set_curr_insn_source_location): Don't avoid bouncing.
3979         (get_curr_insn_source_location): New.
3980         (get_curr_insn_block): New.
3981         (duplicate_insn_chain): Handle debug insns.
3982         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
3983         into debug stmts.
3984         * common.opt (fcompare-debug): Move to sort order.
3985         (fdump-unnumbered-links): Likewise.
3986         (fvar-tracking-assignments): New.
3987         (fvar-tracking-assignments-toggle): New.
3988         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
3989         because of debug stmts.
3990         (mark_stmt_if_obviously_necessary): Mark debug stmts.
3991         (eliminate_unnecessary_stmts): Walk dominated blocks before
3992         dominators.
3993         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
3994         * ira.c (memref_used_between_p): Skip debug insns.
3995         (update_equiv_regs): Likewise.
3996         * sched-deps.c (sd_lists_size): Accept empty list.
3997         (sd_init_insn): Mark debug insns.
3998         (sd_finish_insn): Unmark them.
3999         (sd_add_dep): Reject non-debug deps on debug insns.
4000         (fixup_sched_groups): Give debug insns group treatment.
4001         Skip debug insns.
4002         (sched_analyze_reg): Don't mark debug insns for sched before call.
4003         (sched_analyze_2): Handle debug insns.
4004         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
4005         insns.
4006         (deps_analyze_insn): Handle debug insns.
4007         (deps_start_bb): Skip debug insns.
4008         (init_deps): Initialize last_debug_insn.
4009         * tree-ssa.c (target_for_debug_bind): New.
4010         (find_released_ssa_name): New.
4011         (propagate_var_def_into_debug_stmts): New.
4012         (propagate_defs_into_debug_stmts): New.
4013         (verify_ssa): Skip debug bind stmts without values.
4014         (warn_uninialized_vars): Skip debug stmts.
4015         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
4016         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
4017         (rtx_equal_p): Likewise.
4018         * ira-costs.c (scan_one_insn): Skip debug insns.
4019         (process_bb_node_for_hard_reg_moves): Likewise.
4020         * rtl.h (DEBUG_INSN_P): New.
4021         (NONDEBUG_INSN_P): New.
4022         (MAY_HAVE_DEBUG_INSNS): New.
4023         (INSN_P): Accept debug insns.
4024         (RTX_FRAME_RELATED_P): Likewise.
4025         (INSN_DELETED_P): Likewise
4026         (PAT_VAR_LOCATION_DECL): New.
4027         (PAT_VAR_LOCATION_LOC): New.
4028         (PAT_VAR_OCATION_STATUS): New.
4029         (NOTE_VAR_LOCATION_DECL): Reimplement.
4030         (NOTE_VAR_LOCATION_LOC): Likewise.
4031         (NOTE_VAR_LOCATION_STATUS): Likewise.
4032         (INSN_VAR_LOCATION): New.
4033         (INSN_VAR_LOCATION_DECL): New.
4034         (INSN_VAR_LOCATION_LOC): New.
4035         (INSN_VAR_LOCATION_STATUS): New.
4036         (gen_rtx_UNKNOWN_VAR_LOC): New.
4037         (VAR_LOC_UNKNOWN_P): New.
4038         (NOTE_DURING_CALL_P): New.
4039         (SCHED_GROUP_P): Accept debug insns.
4040         (emit_debug_insn_before): Declare.
4041         (emit_debug_insn_before_noloc): Declare.
4042         (emit_debug_insn_beore_setloc): Declare.
4043         (emit_debug_insn_after): Declare.
4044         (emit_debug_insn_after_noloc): Declare.
4045         (emit_debug_insn_after_setloc): Declare.
4046         (emit_debug_insn): Declare.
4047         (make_debug_insn_raw): Declare.
4048         (prev_nondebug_insn): Declare.
4049         (next_nondebug_insn): Declare.
4050         (delegitimize_mem_from_attrs): Declare.
4051         (get_max_insn_count): Declare.
4052         (wrap_constant): Declare.
4053         (unwrap_constant): Declare.
4054         (get_curr_insn_source_location): Declare.
4055         (get_curr_insn_block): Declare.
4056         * tree-inline.c (insert_debug_decl_map): New.
4057         (processing_debug_stmt): New.
4058         (remap_decl): Don't create new mappings in debug stmts.
4059         (remap_gimple_op_r): Don't add references in debug stmts.
4060         (copy_tree_body_r): Likewise.
4061         (remap_gimple_stmt): Handle debug bind stmts.
4062         (copy_bb): Skip debug stmts.
4063         (copy_edges_for_bb): Likewise.
4064         (copy_debug_stmt): New.
4065         (copy_debug_stmts): New.
4066         (copy_body): Copy debug stmts at the end.
4067         (insert_init_debug_bind): New.
4068         (insert_init_stmt): Take id.  Skip and emit debug stmts.
4069         (setup_one_parameter): Remap variable earlier, register debug mapping.
4070         (estimate_num_insns): Skip debug stmts.
4071         (expand_call_inline): Preserve debug_map.
4072         (optimize_inline_calls): Check for no debug_stmts left-overs.
4073         (unsave_expr_now): Preserve debug_map.
4074         (copy_gimple_seq_and_replace_locals): Likewise.
4075         (tree_function_versioning): Check for no debug_stmts left-overs.
4076         Init and destroy debug_map as needed.  Split edges unconditionally.
4077         (build_duplicate_type): Init and destroy debug_map as needed.
4078         * tree-inline.h: Include gimple.h instead of pointer-set.h.
4079         (struct copy_body_data): Add debug_stmts and debug_map.
4080         * sched-int.h (struct ready_list): Add n_debug.
4081         (struct deps): Add last_debug_insn.
4082         (DEBUG_INSN_SCHED_P): New.
4083         (BOUNDARY_DEBUG_INSN_P): New.
4084         (SCHEDULE_DEBUG_INSN_P): New.
4085         (sd_iterator_cond): Accept empty list.
4086         * combine.c (create_log_links): Skip debug insns.
4087         (combine_instructions): Likewise.
4088         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
4089         return value is always unshared.
4090         (struct rtx_subst_pair): New.
4091         (auto_adjust_pair): New.
4092         (propagate_for_debug_subst): New.
4093         (propagate_for_debug): New.
4094         (try_combine): Skip debug insns.  Propagate removed defs into
4095         debug insns.
4096         (next_nonnote_nondebug_insn): New.
4097         (distribute_notes): Use it.  Skip debug insns.
4098         (distribute_links): Skip debug insns.
4099         * tree-outof-ssa.c (set_location_for_edge): Likewise.
4100         * resource.c (mark_target_live_regs): Likewise.
4101         * var-tracking.c: Include cselib.h and target.h.
4102         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
4103         MO_VAL_SET.
4104         (micro_operation_type_name): New.
4105         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
4106         (struct micro_operation_def): Update comments.
4107         (decl_or_value): New type.  Use instead of decls.
4108         (struct emit_note_data_def): Add vars.
4109         (struct attrs_def): Use decl_or_value.
4110         (struct variable_tracking_info_def): Add permp, flooded.
4111         (struct location_chain_def): Update comment.
4112         (struct variable_part_def): Use decl_or_value.
4113         (struct variable_def): Make var_part a variable length array.
4114         (valvar_pool): New.
4115         (scratch_regs): New.
4116         (cselib_hook_called): New.
4117         (dv_is_decl_p): New.
4118         (dv_is_value_p): New.
4119         (dv_as_decl): New.
4120         (dv_as_value): New.
4121         (dv_as_opaque): New.
4122         (dv_onepart_p): New.
4123         (dv_pool): New.
4124         (IS_DECL_CODE): New.
4125         (check_value_is_not_decl): New.
4126         (dv_from_decl): New.
4127         (dv_from_value): New.
4128         (dv_htab_hash): New.
4129         (variable_htab_hash): Use it.
4130         (variable_htab_eq): Support values.
4131         (variable_htab_free): Free from the right pool.
4132         (attrs_list_member, attrs_list_insert): Use decl_or_value.
4133         (attrs_list_union): Adjust.
4134         (attrs_list_mpdv_union): New.
4135         (tie_break_pointers): New.
4136         (canon_value_cmp): New.
4137         (unshare_variable): Return possibly-modified slot.
4138         (vars_copy_1): Adjust.
4139         (var_reg_decl_set): Adjust.  Split out of...
4140         (var_reg_set): ... this.
4141         (get_init_value): Adjust.
4142         (var_reg_delete_and_set): Adjust.
4143         (var_reg_delete): Adjust.
4144         (var_regno_delete): Adjust.
4145         (var_mem_decl_set): Split out of...
4146         (var_mem_set): ... this.
4147         (var_mem_delete_and_set): Adjust.
4148         (var_mem_delete): Adjust.
4149         (val_store): New.
4150         (val_reset): New.
4151         (val_resolve): New.
4152         (variable_union): Adjust.  Speed up merge of 1-part vars.
4153         (variable_canonicalize): Use unshared slot.
4154         (VALUED_RECURSED_INTO): New.
4155         (find_loc_in_1pdv): New.
4156         (struct dfset_merge): New.
4157         (insert_into_intersection): New.
4158         (intersect_loc_chains): New.
4159         (loc_cmp): New.
4160         (canonicalize_loc_order_check): New.
4161         (canonicalize_values_mark): New.
4162         (canonicalize_values_star): New.
4163         (variable_merge_over_cur): New.
4164         (variable_merge_over_src): New.
4165         (dataflow_set_merge): New.
4166         (dataflow_set_equiv_regs): New.
4167         (remove_duplicate_values): New.
4168         (struct dfset_post_merge): New.
4169         (variable_post_merge_new_vals): New.
4170         (variable_post_merge_perm_vals): New.
4171         (dataflow_post_merge_adjust): New.
4172         (find_mem_expr_in_1pdv): New.
4173         (dataflow_set_preserve_mem_locs): New.
4174         (dataflow_set_remove_mem_locs): New.
4175         (dataflow_set_clear_at_call): New.
4176         (onepart_variable_different_p): New.
4177         (variable_different_p): Use it.
4178         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
4179         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
4180         if not needed.
4181         (track_loc_p): Pass it true.
4182         (struct count_use_info): New.
4183         (find_use_val): New.
4184         (replace_expr_with_values): New.
4185         (log_op_type): New.
4186         (use_type): New, partially split out of...
4187         (count_uses): ... this.  Count new micro-ops.
4188         (count_uses_1): Adjust.
4189         (count_stores): Adjust.
4190         (count_with_sets): New.
4191         (VAL_NEEDS_RESOLUTION): New.
4192         (VAL_HOLDS_TRACK_EXPR): New.
4193         (VAL_EXPR_IS_COPIED): New.
4194         (VAL_EXPR_IS_CLOBBERED): New.
4195         (add_uses): Adjust.  Generate new micro-ops.
4196         (add_uses_1): Adjust.
4197         (add_stores): Generate new micro-ops.
4198         (add_with_sets): New.
4199         (find_src_status): Adjust.
4200         (find_src_set_src): Adjust.
4201         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
4202         Handle new micro-ops.  Canonicalize value equivalances.
4203         (vt_find_locations): Compute total size of hash tables for
4204         dumping.  Perform merge for var-tracking-assignments.  Don't
4205         disregard single-block loops.
4206         (dump_attrs_list): Handle decl_or_value.
4207         (dump_variable): Take variable.  Deal with decl_or_value.
4208         (dump_variable_slot): New.
4209         (dump_vars): Use it.
4210         (dump_dataflow_sets): Adjust.
4211         (set_slot_part): New, extended to support one-part variables
4212         after splitting out of...
4213         (set_variable_part): ... this.
4214         (clobber_slot_part): New, split out of...
4215         (clobber_variable_part): ... this.
4216         (delete_slot_part): New, split out of...
4217         (delete_variable_part): .... this.
4218         (check_wrap_constant): New.
4219         (vt_expand_loc_callback): New.
4220         (vt_expand_loc): New.
4221         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
4222         EMIT_NOTE_AFTER_CALL_INSN.
4223         (emit_notes_for_differences_1): Adjust.  Handle values.
4224         (emit_notes_for_differences_2): Likewise.
4225         (emit_notes_for_differences): Adjust.
4226         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
4227         Adjust.  Handle new micro-ops.
4228         (vt_add_function_parameters): Adjust.  Create and bind values.
4229         (vt_initialize): Adjust.  Initialize scratch_regs and
4230         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
4231         operations.  Move some code to count_with_sets and add_with_sets.
4232         (delete_debug_insns): New.
4233         (vt_debug_insns_local): New.
4234         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
4235         cselib.
4236         (var_tracking_main): If var-tracking-assignments is enabled
4237         but var-tracking isn't, delete debug insns and leave.  Likewise
4238         if we exceed limits or fail the stack adjustments tests, and
4239         after all var-tracking processing.
4240         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
4241         (dataflow_set): Add traversed_vars.
4242         (value_chain, const_value_chain): New typedefs.
4243         (value_chain_pool, value_chains): New variables.
4244         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
4245         add_value_chains, add_cselib_value_chains, remove_value_chain,
4246         remove_value_chains, remove_cselib_value_chains): New functions.
4247         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
4248         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
4249         static inlines.
4250         (shared_hash_find_slot_unshare, shared_hash_find_slot,
4251         shared_hash_find_slot_noinsert, shared_hash_find): Update.
4252         (dst_can_be_shared): New variable.
4253         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
4254         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
4255         different from set->vars, look up slot again instead of using the
4256         passed in slot.
4257         (dataflow_set_init): Initialize traversed_vars.
4258         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
4259         lookup if set->vars is shared.  Don't keep slot cleared before
4260         calling unshare_variable.  Unshare set->vars if needed.  Adjust
4261         unshare_variable callers.  Clear dst_can_be_shared if needed.
4262         Even ->refcount == 1 vars must be unshared if set->vars is shared
4263         and var needs to be modified.
4264         (dataflow_set_union): Set traversed_vars during canonicalization.
4265         (VALUE_CHANGED, DECL_CHANGED): Define.
4266         (set_dv_changed, dv_changed_p): New static inlines.
4267         (track_expr_p): Clear DECL_CHANGED.
4268         (dump_dataflow_sets): Set it.
4269         (variable_was_changed): Call set_dv_changed.
4270         (emit_note_insn_var_location): Likewise.
4271         (changed_variables_stack): New variable.
4272         (check_changed_vars_1, check_changed_vars_2): New functions.
4273         (emit_notes_for_changes): Do nothing if changed_variables is
4274         empty.  Traverse changed_variables with check_changed_vars_1,
4275         call check_changed_vars_2 on each changed_variables_stack entry.
4276         (emit_notes_in_bb): Add SET argument.  Just clear it at the
4277         beginning, use it instead of local &set, don't destroy it at the end.
4278         (vt_emit_notes): Call dataflow_set_clear early on all
4279         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
4280         computed set, dataflow_set_clear also VTI(bb)->in when we are
4281         done with the basic block.  Initialize changed_variables_stack,
4282         free it afterwards.  If ENABLE_CHECKING verify that after noting
4283         differences to an empty set value_chains hash table is empty.
4284         (vt_initialize): Initialize value_chains and value_chain_pool.
4285         (vt_finalize): Delete value_chains htab, free value_chain_pool.
4286         (variable_tracking_main): Call dump_dataflow_sets before calling
4287         vt_emit_notes, not after it.
4288         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
4289         (propagate_var_def_into_debug_stmts): Declare.
4290         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
4291         (df_set_note): Reject debug insns.
4292         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
4293         add notes to debug insns.
4294         (df_note_bb_compute): Adjust.  Likewise.
4295         (df_simulate_uses): Skip debug insns.
4296         (df_simulate_initialize_backwards): Likewise.
4297         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
4298         (subst_stack_regs_pat): Reject debug insns.
4299         (convert_regs_1): Handle debug insns.
4300         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
4301         (print-rtl.o): Depend on cselib.h.
4302         (cselib.o): Depend on TREE_PASS_H.
4303         (var-tracking.o): Depend on cselib.h and TARGET_H.
4304         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
4305         (init_ready_list): Skip boundary debug insns.
4306         (add_branch_dependences): Skip debug insns.
4307         (free_block_dependencies): Check for blocks with only debug insns.
4308         (compute_priorities): Likewise.
4309         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
4310         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
4311         all callers.
4312         (gimple_build_debug_bind_stat): New.
4313         (empty_body_p): Skip debug stmts.
4314         (gimple_has_side_effects): Likewise.
4315         (gimple_rhs_has_side_effects): Likewise.
4316         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
4317         (gimple_build_debug_bind_stat): Declare.
4318         (gimple_build_debug_bind): Define.
4319         (is_gimple_debug): New.
4320         (gimple_debug_bind_p): New.
4321         (gimple_debug_bind_get_var): New.
4322         (gimple_debug_bind_get_value): New.
4323         (gimple_debug_bind_get_value_ptr): New.
4324         (gimple_debug_bind_set_var): New.
4325         (gimple_debug_bind_set_value): New.
4326         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
4327         (gimple_debug_bind_reset_value): New.
4328         (gimple_debug_bind_has_value_p): New.
4329         (gsi_next_nondebug): New.
4330         (gsi_prev_nondebug): New.
4331         (gsi_start_nondebug_bb): New.
4332         (gsi_last_nondebug_bb): New.
4333         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
4334         (print_insn): Handle DEBUG_INSN.
4335         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
4336         of first insn prevail.
4337         (first_stmt): Skip debug stmts.
4338         (first_non_label_stmt): Likewise.
4339         (last_stmt): Likewise.
4340         (has_zero_uses_1): New.
4341         (single_imm_use_1): New.
4342         (verify_gimple_debug): New.
4343         (verify_types_in_gimple_stmt): Handle debug stmts.
4344         (verify_stmt): Likewise.
4345         (debug_loop_num): Skip debug stmts.
4346         (remove_edge_and_dominated_blocks): Remove dominators last.
4347         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
4348         (linearize_expr): Likewise.
4349         * config/i386/i386.c (ix86_delegitimize_address): Call
4350         default implementation.
4351         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
4352         (group_barrier_needed): Skip debug insns.
4353         (emit_insn_group_barriers): Likewise.
4354         (emit_all_insn_group_barriers): Likewise.
4355         (ia64_variable_issue): Handle debug insns.
4356         (ia64_dfa_new_cycle): Likewise.
4357         (final_emit_insn_group_barriers): Skip debug insns.
4358         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
4359         def cfa without frame.
4360         (process_set): Likewise.
4361         (process_for_unwind_directive): Pass frame on.
4362         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
4363         (rs6000_delegitimize_address): New.
4364         (rs6000_debug_adjust_cost): Handle debug insns.
4365         (is_microcoded_insn): Likewise.
4366         (is_cracked_insn): Likewise.
4367         (is_nonpipeline_insn): Likewise.
4368         (insn_must_be_first_in_group): Likewise.
4369         (insn_must_be_last_in_group): Likewise.
4370         (force_new_group): Likewise.
4371         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
4372         contains only debug insns.
4373         (rtl_merge_blocks): Skip debug insns.
4374         (purge_dead_edges): Likewise.
4375         (rtl_block_ends_with_call_p): Skip debug insns.
4376         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
4377         (mark_reg_dependencies): Skip debug insns.
4378         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
4379         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
4380         * tree-ssa-threadedge.c
4381         (record_temporary_equivalences_from_stmts): Skip debug stmts.
4382         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
4383         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
4384         (copyprop_hardreg_forward_1): Handle debug insns.
4385         * reload1.c (reload): Skip debug insns.  Replace unassigned
4386         pseudos in debug insns with their equivalences.
4387         (eliminate_regs_in_insn): Skip debug insns.
4388         (emit_input_reload_insns): Skip debug insns at first, adjust
4389         them later.
4390         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
4391         (get_indirect_ref_operands): Pass opf_no_vops on.
4392         (get_expr_operands): Likewise.  Skip debug stmts.
4393         (parse_ssa_operands): Scan debug insns with opf_no_vops.
4394
4395 2009-09-01  Richard Henderson  <rth@redhat.com>
4396
4397         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
4398         stmt_ends_pp_p statements at least once.
4399         * tree-vrp.c (vrp_initialize): Likewise.
4400         (vrp_visit_stmt): Be prepared for non-interesting stmts.
4401
4402 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
4403
4404         PR bootstrap/41205
4405         Fix AIX bootstrap after PR debug/30161
4406         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
4407         that is a GNU extension.
4408         (tmpl_value_parm_die_table): Move the definition of this global
4409         outside #ifdef DWARF2_DEBUGGING_INFO region.
4410
4411 2009-09-01  Richard Guenther  <rguenther@suse.de>
4412
4413         * tree.c (tree_expr_size): New function.
4414         * tree.h (tree_expr_size): Declare.
4415         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
4416         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
4417         * langhooks.c (lhd_expr_size): Remove.
4418         * langhooks.h (struct lang_hooks): Remove expr_size.
4419         * explow.c (expr_size): Use tree_expr_size.
4420         (int_expr_size): Likewise.
4421         * langhooks-def.h (lhd_expr_size): Remove.
4422         (LANG_HOOKS_EXPR_SIZE): Likewise.
4423         (LANG_HOOKS_INITIALIZER): Adjust.
4424
4425 2009-09-01  Richard Guenther  <rguenther@suse.de>
4426
4427         * tree-flow.h (mark_addressable): Move declaration ...
4428         * tree.h (mark_addressable): ... here.
4429         * stmt.c (expand_asm_operands): Use mark_addressable, not
4430         lang_hooks.mark_addressable.
4431         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
4432         LANG_HOOKS_MARK_ADDRESSABLE.
4433         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
4434         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
4435
4436 2009-08-31  Chris Demetriou  <cgd@google.com>
4437
4438         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
4439         vectorize if not TARGET_SSE2.
4440
4441 2009-08-31  DJ Delorie  <dj@redhat.com>
4442
4443         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
4444         registers if no coprocessor is enabled.
4445
4446 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
4447
4448         PR debug/30161
4449         * cgraph.h (cgraph_get_node): Declare ...
4450         * cgraph.c (cgraph_get_node): ... new function.
4451         * dwarf2out.c (gen_generic_params_dies,
4452         generic_parameter_die, tree_add_const_value_attribute_for_decl,
4453         make_ith_pack_parameter_name,
4454         append_entry_to_tmpl_value_parm_die_table,
4455         gen_remaining_tmpl_value_param_die_attribute): New functions.
4456         (gen_subprogram_die): Generate debug info for template parameters
4457         if debug info level is higher than DINFO_LEVEL_TERSE.
4458         Use tree_add_const_value_attribute_for_decl instead of
4459         tree_add_const_value_attribute.
4460         (gen_const_die): Use tree_add_const_value_attribute_for_decl
4461         instead of tree_add_const_value_attribute.
4462         (gen_struct_or_union_type_die): Generate debug
4463         info for template parameters if debug info level is higher than
4464         DINFO_LEVEL_TERSE.
4465         (tree_add_const_value_attribute): Handle integral and pointer
4466         constants. Update comment.
4467         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
4468         (dwarf_attr_name): Support DW_AT_GNU_template_name.
4469         (reference_to_unused): Fix thinko. Remove redundant predicates from
4470         tests.
4471         (tree_add_const_value_attribute): Make this work for constant
4472         expressions only.
4473         tree_add_const_value_attribute_for_decl is to be used for variable
4474         DECLs now.
4475         (add_location_or_const_value_attribute): Use
4476         tree_add_const_value_attribute_for_decl now.
4477         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
4478         DW_TAG_template_value_param DIEs after function DIEs have been
4479         emitted.
4480         * langhooks.h (lang_hooks_for_types): Add
4481         get_argument_pack_elems.
4482         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
4483         (lang_hooks): Added get_innermost_generic_parms,
4484         get_innermost_generic_args.
4485         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
4486         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
4487         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
4488         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
4489
4490 2009-08-31  DJ Delorie  <dj@redhat.com>
4491
4492         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
4493         it once we start generating the prologue or epilogue.
4494         (mep_call_saves_register): If the frame is locked, re-use
4495         cached values.
4496         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
4497         (mep_expand_prologue): Call it.
4498         (mep_expand_epilogue): Likewise.
4499         (mep_start_function): Use the same logic as mep_expand_prologue.
4500         (mep_pass_by_reference): Make logic more readable.
4501         (mep_return_in_memory): Zero-sized objects are passed in memory.
4502         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
4503
4504 2009-08-31  Richard Guenther  <rguenther@suse.de>
4505
4506         * builtins.c (fold_builtin_memory_op): Use the alias oracle
4507         to query if the memory regions for memmove overlap.
4508         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
4509         asserts on pointers, instead deal with odd trees.
4510         (ptr_derefs_may_alias_p): Likewise.
4511         (refs_may_alias_p_1): Constructor bases also never alias.
4512
4513 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
4514
4515         * doc/install.texi (Final install): Adjust reference on where to
4516         order printed manuals.
4517
4518 2009-08-30  Olivier Hainque  <hainque@adacore.com>
4519
4520         * dwarf2out.c (switch_to_frame_table_section): Move
4521         definition prior to first use.
4522
4523 2009-08-30  Richard Guenther  <rguenther@suse.de>
4524
4525         PR tree-optimization/41186
4526         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
4527         (ao_ref_init_from_ptr_and_size): New function.
4528         (ref_maybe_used_by_call_p_1): Be more precise tracking
4529         used ranges for builtin functions.
4530         (ref_maybe_used_by_call_p): Adjust.
4531         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
4532         ranges for builtin functions.
4533         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
4534
4535 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
4536
4537         PR target/41081
4538         * fwprop.c (get_reg_use_in): Delete.
4539         (free_load_extend): New function.
4540         (forward_propagate_subreg): Use it.
4541
4542 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
4543
4544         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
4545
4546 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
4547
4548         PR/41184
4549         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
4550         padding.
4551
4552 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
4553
4554         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
4555         fini or fini_array section.
4556
4557 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4558
4559         * graphite-dependences.c (graphite_legal_transform_bb): Call
4560         pbb_remove_duplicate_pdrs.
4561         * graphite-poly.c (can_collapse_pdr): Removed.
4562         (pdr_find_duplicate): Removed.
4563         (can_collapse_pdrs): New.
4564         (pbb_remove_duplicate_pdrs): New.
4565         (new_poly_dr): Do not look for duplicates.
4566         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
4567         (PBB_PDR_DUPLICATES_REMOVED): New.
4568         (pbb_remove_duplicate_pdrs): Declared.
4569
4570 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4571
4572         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
4573         the strides by multiplying by PDR_NB_REFS.
4574         * graphite-poly.c (can_collapse_pdr): New.
4575         (pdr_find_duplicate): New.
4576         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
4577         Initialize PDR_NB_REFS.
4578         * graphite-poly.h (struct poly_dr): Add field nb_refs.
4579         (PDR_NB_REFS): New.
4580         (new_poly_dr): Number of subscripts is a graphite_dim_t.
4581
4582 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4583
4584         PR middle-end/40965
4585         * graphite-poly.c (apply_poly_transforms): Remove legality test before
4586         any transform.
4587
4588 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4589
4590         * graphite-dependences.c (pddr_original_scattering): Return NULL
4591         for read-read dependence relations.
4592         * graphite-poly.h (enum poly_dr_type): Fix comment.
4593         (pdr_read_p): New.
4594         (pdr_write_p): New.
4595         (pdr_may_write_p): New.
4596
4597 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4598
4599         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
4600         (struct poly_dr): Same.
4601         (new_poly_dr): Same.
4602         * graphite-poly.c (new_poly_dr): Same.
4603         * graphite-dependences.c (dot_deps): Disable call to system.
4604
4605 2009-08-28  Cary Coutant  <ccoutant@google.com>
4606
4607         PR debug/41063
4608         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
4609         struct/union/enum types local to a function.
4610
4611 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
4612             Sebastian Pop  <sebastian.pop@amd.com>
4613
4614         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
4615         pbb_strip_mine_time_depth.  Changed the implementation so that
4616         transformation is expressed as a transformation on
4617         time (scatttering) dimensions.  Also, ensures that the 2d+1
4618         scheduling format is preserved.
4619         (pbb_strip_mine_profitable_p): Profitability is based on the
4620         iteration number of a given time (scattering) dimension,
4621         and not on a original loop depth dimension.
4622         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
4623         (pbb_do_strip_mine): Call psct_dynamic_dim.
4624         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
4625         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
4626         (pbb_nb_dynamic_scattering_transform): New.
4627         (psct_dynamic_dim): New.
4628
4629 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
4630
4631         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
4632         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
4633         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
4634         * graphite-interchange.c (build_linearized_memory_access): Same.
4635         (memory_stride_in_loop): Same.
4636
4637 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4638
4639         * graphite-dependences.c (pddr_original_scattering): New.
4640         (graphite_legal_transform_dr): Call pddr_original_scattering.
4641         (dot_deps_1): New.
4642         (dot_deps): New.
4643         * graphite-dependences.h (dot_deps): Declared.
4644         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
4645         (print_pdr): Print PDR_ID.
4646         * graphite-poly.h (struct poly_dr): Add field id.
4647         (PDR_ID): New.
4648         (pbb_index): New.
4649         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
4650
4651 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4652
4653         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
4654         not delete the original dependence relation.
4655
4656 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4657
4658         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
4659         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
4660         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
4661         (free_poly_ddr): New.
4662         (pddr_is_empty): New.
4663         (dependence_polyhedron_1): Now returns a poly_ddr_p.
4664         (dependence_polyhedron): Same.  Remove useless gcc_assert.
4665         Remove fprintfs.
4666         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
4667         (graphite_carried_dependence_level_k): Call pddr_is_empty.
4668         * graphite-dependences.h (enum poly_dependence_kind): New.
4669         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
4670         (PDRP_SOURCE): Renamed PDDR_SOURCE.
4671         (PDRP_SINK): Renamed PDDR_SINK.
4672         (PDRP_DDP): Renamed PDDR_DDP.
4673         (PDDR_KIND): New.
4674         (free_poly_ddr): Declared.
4675         * graphite-poly.c (new_scop): Use the new hash function names.
4676         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
4677         into original_pddrs.
4678         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
4679
4680 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4681
4682         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
4683         bounds with LT_EXPR to make niter analysis more precise on code
4684         generated by Graphite.
4685
4686 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
4687
4688         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
4689         (graphite_legal_transform_bb): Same.
4690         (poly_drs_may_alias_p): Same.
4691
4692 2009-08-28  Richard Guenther  <rguenther@suse.de>
4693
4694         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
4695
4696 2009-08-28  Jan Beulich  <jbeulich@novell.com>
4697
4698         * config/i386/netware.c: Include langhooks.h.
4699         (i386_nlm_encode_section_info): Simplify.
4700         (netware_override_options): Delete.
4701         * config/i386/netware.h (netware_override_options): Delete
4702         declaration.
4703         (OVERRIDE_OPTIONS): Delete definition.
4704         (SUBTARGET_OVERRIDE_OPTIONS): Define.
4705         (ASM_COMMENT_START): Define.
4706         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
4707
4708 2009-08-28  Jan Beulich  <jbeulich@novell.com>
4709
4710         * configure.ac: For in-tree ld, do a plain version check to
4711         determine whether comdat groups are supported.
4712         * configure: Regenerate.
4713
4714 2009-08-28  Olivier Hainque  <hainque@adacore.com>
4715
4716         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
4717         always defined.  Reflect definition or absence of such for
4718         COLLECT_EXPORT_LIST.  Readability helper.
4719         (scanfilter): New enum, to help control what symbols
4720         are to be considered or ignored by scan_prog_file.
4721         (enum pass): Rename as "scanpass", moved together with scanfilter
4722         prior to scan_prog_file's prototype.
4723         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
4724         Group prototype with the scanpass/scanfilter definitions, factorize
4725         head comments for the several implementations at the prototype.
4726         (main): Reorganize the first pass link control to let AIX
4727         drag only the needed frame tables in executables.  Prevent
4728         frame tables collection during the scan aimed at static ctors.
4729         Pre-link and scan for frame tables later to compensate.
4730         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
4731         A C statement to issue assembly directives that create a reference
4732         to the given DWARF table identifier label from the current function
4733         section.
4734         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
4735         to differentiate first time section entry.  Only emit a .data
4736         tables start identifier label the first time around.
4737         (switch_to_frame_table_section): New function.  Helper for
4738         output_call_frame_info to switch possibly BACK into the eh_frame
4739         or the debug_frame section depending on FOR_EH.
4740         (output_call_frame_info): Use helper to first enter the proper
4741         frame section.
4742         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
4743         emit a link to the frame table start label from each function
4744         section.
4745         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
4746         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
4747         * config/rs6000/rs6000-protos.h: Declare it.
4748         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
4749
4750 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
4751
4752         * config/sh/sh.c (split_branches): Check the result of
4753         next_active_insn.
4754
4755 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
4756
4757         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
4758         using -pthread -fopenmp
4759
4760 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
4761
4762         * doc/service.texi (service directory): Update URL.
4763
4764 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
4765
4766         PR rtl-optimization/40861
4767         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
4768         extract word from a multi-word subreg for negative byte positions.
4769
4770 2009-08-27  Tristan Gingold  <gingold@adacore.com>
4771             Douglas B Rupp  <rupp@gnat.com>
4772
4773         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
4774         (SECTION_VMS_OVERLAY): Define.
4775         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
4776         attribute.
4777         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
4778         for common_object.
4779         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
4780         common_object declarations.
4781         (ia64_section_type_flags): Set section flag for common_object.
4782         * config/ia64/ia64-protos.h
4783         (ia64_vms_output_aligned_decl_common): Declare.
4784         (ia64_vms_elf_asm_named_section): Declare.
4785
4786 2009-08-27  Michael Matz  <matz@suse.de>
4787
4788         * expr.c (expand_expr_real_2): New function taking exploded
4789         unary or binary expression, split out from ...
4790         (expand_expr_real_1): ... here.  Move over all unary/binary
4791         switch parts to above function, in particular these codes:
4792         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
4793         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
4794         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
4795         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
4796         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
4797         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
4798         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
4799         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
4800         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
4801         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
4802         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
4803         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
4804         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
4805         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
4806         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
4807         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
4808         VEC_PACK_FIX_TRUNC_EXPR.
4809         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
4810         full expression.
4811
4812 2009-08-27  Richard Guenther  <rguenther@suse.de>
4813
4814         * gengtype.c (main): Handle uint64_t.
4815         * ipa-utils.c (get_base_var): Indent properly.
4816         * tree-ssa-live.c (debug_scope_block): New function.
4817         * tree-flow.h (debug_scope_block): Declare.
4818         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
4819         * basic-block.h (enum profile_status): Rename to
4820         enum profile_status_d.
4821         (x_profile_status): Adjust type.
4822
4823 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
4824
4825         PR debug/41170
4826         * dwarf2out.c (get_context_die): Declare this static function.
4827         (gen_type_die_with_usage): Make sure a DIE is a generated for
4828         the context of a typedef.
4829
4830 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
4831
4832         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
4833         switch.
4834
4835 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
4836
4837         * config/mips/mips-protos.h (mips_output_sync): Declare.
4838         (mips_sync_loop_insns): Likewise.
4839         (mips_output_sync_loop): Replace first two parameters with an rtx.
4840         * config/mips/mips.c (mips_multi_member): New structure.
4841         (mips_multi_members): New variable.
4842         (mips_multi_start): New function.
4843         (mips_multi_add): Likewise.
4844         (mips_multi_add_insn): Likewise.
4845         (mips_multi_add_label): Likewise.
4846         (mips_multi_last_index): Likewise.
4847         (mips_multi_copy_insn): Likewise.
4848         (mips_multi_set_operand): Likewise.
4849         (mips_multi_write): Likewise.
4850         (mips_print_operand_punctuation): Remove '%|' and '%-'.
4851         (mips_init_print_operand_punct): Update accordingly.
4852         (mips_start_ll_sc_sync_block): New function.
4853         (mips_end_ll_sc_sync_block): Likewise.
4854         (mips_output_sync): Likewise.
4855         (mips_sync_insn1_template): Likewise.
4856         (mips_sync_insn2_template): Likewise.
4857         (mips_get_sync_operand): Likewise.
4858         (mips_process_sync_loop): Likewise.
4859         (mips_output_sync_loop): Use mips_process_sync_loop.
4860         (mips_sync_loop_insns): New function.
4861         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
4862         (MIPS_COMPARE_AND_SWAP_12): Likewise.
4863         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
4864         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
4865         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
4866         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
4867         (MIPS_SYNC_OLD_OP_12): Likewise.
4868         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
4869         (MIPS_SYNC_NEW_OP_12): Likewise.
4870         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
4871         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
4872         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
4873         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
4874         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
4875         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
4876         * config/mips/mips.md (sync_mem): New attribute.
4877         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
4878         (sync_exclusive_mask, sync_required_oldval): Likewise.
4879         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
4880         (sync_release_barrier): Likewise.
4881         (length): Handle sync loops.
4882         (sync): Use mips_output_sync.
4883         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
4884         (sync_compare_and_swap<mode>): Set the new sync_* attributes
4885         and use mips_output_sync_loop.
4886         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
4887         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
4888         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
4889         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
4890         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
4891         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
4892         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
4893         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
4894         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
4895
4896 2009-08-26  Richard Guenther  <rguenther@suse.de>
4897
4898         PR middle-end/41163
4899         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
4900         the types to not match.
4901         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
4902         verification.
4903         * tree-ssa.c (useless_type_conversion_p): Conversions to
4904         pointers to unprototyped functions are useless.
4905
4906 2009-08-26  Richard Guenther  <rguenther@suse.de>
4907
4908         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
4909         whole-program condition, prepare to be called for non-globals.
4910         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
4911         params build a representative with known type and track its fields.
4912
4913 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
4914
4915         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
4916         clearing by a taken branch.
4917         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
4918         effectively after bbro pass.
4919         (sync_nand<mode>): Ditto.
4920         (sync_old_<fetchop_name><mode>): Ditto.
4921         (sync_old_nand<mode>): Ditto.
4922         (sync_new_<fetchop_name><mode>): Dito.
4923         (sync_new_nand<mode>): Ditto.
4924         (sync_compare_and_swap<mode>_1): Ditto.
4925         (*sync_compare_and_swap<mode>): Ditto.
4926         (sync_lock_test_and_set<mode>_1): Ditto.
4927         ("sync_lock_test_and_set<mode>): Ditto.
4928
4929 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
4930
4931         * hwint.h (HOST_LONG_FORMAT): New macro
4932         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
4933         Use HOST_PTR_PRINTF.
4934         * system.h (HOST_PTR_PRINTF): Resurrect old macro
4935         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
4936         (HOST_PTR_PRINTF): Document.
4937
4938 2009-08-25 Jan Hubicka  <jh@suse.cz>
4939
4940         * config/i386/bmmintrin.h: Replace by #error.
4941
4942         Revert:
4943         Michael Meissner  <michael.meissner@amd.com>
4944         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4945         Tony Linthicum  <tony.linthicum@amd.com>
4946
4947         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
4948         (TARGET_ROUND): New macro for the round/ptest instructions which
4949         are shared between SSE4.1 and SSE5.
4950         (OPTION_MASK_ISA_ROUND): Ditto.
4951         (OPTION_ISA_ROUND): Ditto.
4952         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
4953         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
4954
4955         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
4956         (-mfused-madd): New switch to give users control over whether the
4957         compiler optimizes to use the multiply/add SSE5 instructions.
4958
4959         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
4960         (ix86_handle_option): Turn off 3dnow if -msse5.
4961         (override_options): Add SSE5 support.
4962         (print_operand): %Y prints comparison codes for SSE5 com/pcom
4963         instructions.
4964         (ix86_expand_sse_movcc): Add SSE5 support.
4965         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
4966         vector type to the next largest size.
4967         (ix86_expand_sse5_pack): New function to use pperm to pack a
4968         vector type to the next smallest size.
4969         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
4970         (IX86_BUILTIN_FMADDSD): Ditto.
4971         (IX86_BUILTIN_FMADDPS): Ditto.
4972         (IX86_BUILTIN_FMADDPD): Ditto.
4973         (IX86_BUILTIN_FMSUBSS): Ditto.
4974         (IX86_BUILTIN_FMSUBSD): Ditto.
4975         (IX86_BUILTIN_FMSUBPS): Ditto.
4976         (IX86_BUILTIN_FMSUBPD): Ditto.
4977         (IX86_BUILTIN_FNMADDSS): Ditto.
4978         (IX86_BUILTIN_FNMADDSD): Ditto.
4979         (IX86_BUILTIN_FNMADDPS): Ditto.
4980         (IX86_BUILTIN_FNMADDPD): Ditto.
4981         (IX86_BUILTIN_FNMSUBSS): Ditto.
4982         (IX86_BUILTIN_FNMSUBSD): Ditto.
4983         (IX86_BUILTIN_FNMSUBPS): Ditto.
4984         (IX86_BUILTIN_FNMSUBPD): Ditto.
4985         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
4986         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
4987         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
4988         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
4989         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
4990         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
4991         (IX86_BUILTIN_PPERM): Ditto.
4992         (IX86_BUILTIN_PERMPS): Ditto.
4993         (IX86_BUILTIN_PERMPD): Ditto.
4994         (IX86_BUILTIN_PMACSSWW): Ditto.
4995         (IX86_BUILTIN_PMACSWW): Ditto.
4996         (IX86_BUILTIN_PMACSSWD): Ditto.
4997         (IX86_BUILTIN_PMACSWD): Ditto.
4998         (IX86_BUILTIN_PMACSSDD): Ditto.
4999         (IX86_BUILTIN_PMACSDD): Ditto.
5000         (IX86_BUILTIN_PMACSSDQL): Ditto.
5001         (IX86_BUILTIN_PMACSSDQH): Ditto.
5002         (IX86_BUILTIN_PMACSDQL): Ditto.
5003         (IX86_BUILTIN_PMACSDQH): Ditto.
5004         (IX86_BUILTIN_PMADCSSWD): Ditto.
5005         (IX86_BUILTIN_PMADCSWD): Ditto.
5006         (IX86_BUILTIN_PHADDBW): Ditto.
5007         (IX86_BUILTIN_PHADDBD): Ditto.
5008         (IX86_BUILTIN_PHADDBQ): Ditto.
5009         (IX86_BUILTIN_PHADDWD): Ditto.
5010         (IX86_BUILTIN_PHADDWQ): Ditto.
5011         (IX86_BUILTIN_PHADDDQ): Ditto.
5012         (IX86_BUILTIN_PHADDUBW): Ditto.
5013         (IX86_BUILTIN_PHADDUBD): Ditto.
5014         (IX86_BUILTIN_PHADDUBQ): Ditto.
5015         (IX86_BUILTIN_PHADDUWD): Ditto.
5016         (IX86_BUILTIN_PHADDUWQ): Ditto.
5017         (IX86_BUILTIN_PHADDUDQ): Ditto.
5018         (IX86_BUILTIN_PHSUBBW): Ditto.
5019         (IX86_BUILTIN_PHSUBWD): Ditto.
5020         (IX86_BUILTIN_PHSUBDQ): Ditto.
5021         (IX86_BUILTIN_PROTB): Ditto.
5022         (IX86_BUILTIN_PROTW): Ditto.
5023         (IX86_BUILTIN_PROTD): Ditto.
5024         (IX86_BUILTIN_PROTQ): Ditto.
5025         (IX86_BUILTIN_PROTB_IMM): Ditto.
5026         (IX86_BUILTIN_PROTW_IMM): Ditto.
5027         (IX86_BUILTIN_PROTD_IMM): Ditto.
5028         (IX86_BUILTIN_PROTQ_IMM): Ditto.
5029         (IX86_BUILTIN_PSHLB): Ditto.
5030         (IX86_BUILTIN_PSHLW): Ditto.
5031         (IX86_BUILTIN_PSHLD): Ditto.
5032         (IX86_BUILTIN_PSHLQ): Ditto.
5033         (IX86_BUILTIN_PSHAB): Ditto.
5034         (IX86_BUILTIN_PSHAW): Ditto.
5035         (IX86_BUILTIN_PSHAD): Ditto.
5036         (IX86_BUILTIN_PSHAQ): Ditto.
5037         (IX86_BUILTIN_FRCZSS): Ditto.
5038         (IX86_BUILTIN_FRCZSD): Ditto.
5039         (IX86_BUILTIN_FRCZPS): Ditto.
5040         (IX86_BUILTIN_FRCZPD): Ditto.
5041         (IX86_BUILTIN_CVTPH2PS): Ditto.
5042         (IX86_BUILTIN_CVTPS2PH): Ditto.
5043         (IX86_BUILTIN_COMEQSS): Ditto.
5044         (IX86_BUILTIN_COMNESS): Ditto.
5045         (IX86_BUILTIN_COMLTSS): Ditto.
5046         (IX86_BUILTIN_COMLESS): Ditto.
5047         (IX86_BUILTIN_COMGTSS): Ditto.
5048         (IX86_BUILTIN_COMGESS): Ditto.
5049         (IX86_BUILTIN_COMUEQSS): Ditto.
5050         (IX86_BUILTIN_COMUNESS): Ditto.
5051         (IX86_BUILTIN_COMULTSS): Ditto.
5052         (IX86_BUILTIN_COMULESS): Ditto.
5053         (IX86_BUILTIN_COMUGTSS): Ditto.
5054         (IX86_BUILTIN_COMUGESS): Ditto.
5055         (IX86_BUILTIN_COMORDSS): Ditto.
5056         (IX86_BUILTIN_COMUNORDSS): Ditto.
5057         (IX86_BUILTIN_COMFALSESS): Ditto.
5058         (IX86_BUILTIN_COMTRUESS): Ditto.
5059         (IX86_BUILTIN_COMEQSD): Ditto.
5060         (IX86_BUILTIN_COMNESD): Ditto.
5061         (IX86_BUILTIN_COMLTSD): Ditto.
5062         (IX86_BUILTIN_COMLESD): Ditto.
5063         (IX86_BUILTIN_COMGTSD): Ditto.
5064         (IX86_BUILTIN_COMGESD): Ditto.
5065         (IX86_BUILTIN_COMUEQSD): Ditto.
5066         (IX86_BUILTIN_COMUNESD): Ditto.
5067         (IX86_BUILTIN_COMULTSD): Ditto.
5068         (IX86_BUILTIN_COMULESD): Ditto.
5069         (IX86_BUILTIN_COMUGTSD): Ditto.
5070         (IX86_BUILTIN_COMUGESD): Ditto.
5071         (IX86_BUILTIN_COMORDSD): Ditto.
5072         (IX86_BUILTIN_COMUNORDSD): Ditto.
5073         (IX86_BUILTIN_COMFALSESD): Ditto.
5074         (IX86_BUILTIN_COMTRUESD): Ditto.
5075         (IX86_BUILTIN_COMEQPS): Ditto.
5076         (IX86_BUILTIN_COMNEPS): Ditto.
5077         (IX86_BUILTIN_COMLTPS): Ditto.
5078         (IX86_BUILTIN_COMLEPS): Ditto.
5079         (IX86_BUILTIN_COMGTPS): Ditto.
5080         (IX86_BUILTIN_COMGEPS): Ditto.
5081         (IX86_BUILTIN_COMUEQPS): Ditto.
5082         (IX86_BUILTIN_COMUNEPS): Ditto.
5083         (IX86_BUILTIN_COMULTPS): Ditto.
5084         (IX86_BUILTIN_COMULEPS): Ditto.
5085         (IX86_BUILTIN_COMUGTPS): Ditto.
5086         (IX86_BUILTIN_COMUGEPS): Ditto.
5087         (IX86_BUILTIN_COMORDPS): Ditto.
5088         (IX86_BUILTIN_COMUNORDPS): Ditto.
5089         (IX86_BUILTIN_COMFALSEPS): Ditto.
5090         (IX86_BUILTIN_COMTRUEPS): Ditto.
5091         (IX86_BUILTIN_COMEQPD): Ditto.
5092         (IX86_BUILTIN_COMNEPD): Ditto.
5093         (IX86_BUILTIN_COMLTPD): Ditto.
5094         (IX86_BUILTIN_COMLEPD): Ditto.
5095         (IX86_BUILTIN_COMGTPD): Ditto.
5096         (IX86_BUILTIN_COMGEPD): Ditto.
5097         (IX86_BUILTIN_COMUEQPD): Ditto.
5098         (IX86_BUILTIN_COMUNEPD): Ditto.
5099         (IX86_BUILTIN_COMULTPD): Ditto.
5100         (IX86_BUILTIN_COMULEPD): Ditto.
5101         (IX86_BUILTIN_COMUGTPD): Ditto.
5102         (IX86_BUILTIN_COMUGEPD): Ditto.
5103         (IX86_BUILTIN_COMORDPD): Ditto.
5104         (IX86_BUILTIN_COMUNORDPD): Ditto.
5105         (IX86_BUILTIN_COMFALSEPD): Ditto.
5106         (IX86_BUILTIN_COMTRUEPD): Ditto.
5107         (IX86_BUILTIN_PCOMEQUB): Ditto.
5108         (IX86_BUILTIN_PCOMNEUB): Ditto.
5109         (IX86_BUILTIN_PCOMLTUB): Ditto.
5110         (IX86_BUILTIN_PCOMLEUB): Ditto.
5111         (IX86_BUILTIN_PCOMGTUB): Ditto.
5112         (IX86_BUILTIN_PCOMGEUB): Ditto.
5113         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
5114         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
5115         (IX86_BUILTIN_PCOMEQUW): Ditto.
5116         (IX86_BUILTIN_PCOMNEUW): Ditto.
5117         (IX86_BUILTIN_PCOMLTUW): Ditto.
5118         (IX86_BUILTIN_PCOMLEUW): Ditto.
5119         (IX86_BUILTIN_PCOMGTUW): Ditto.
5120         (IX86_BUILTIN_PCOMGEUW): Ditto.
5121         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
5122         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
5123         (IX86_BUILTIN_PCOMEQUD): Ditto.
5124         (IX86_BUILTIN_PCOMNEUD): Ditto.
5125         (IX86_BUILTIN_PCOMLTUD): Ditto.
5126         (IX86_BUILTIN_PCOMLEUD): Ditto.
5127         (IX86_BUILTIN_PCOMGTUD): Ditto.
5128         (IX86_BUILTIN_PCOMGEUD): Ditto.
5129         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
5130         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
5131         (IX86_BUILTIN_PCOMEQUQ): Ditto.
5132         (IX86_BUILTIN_PCOMNEUQ): Ditto.
5133         (IX86_BUILTIN_PCOMLTUQ): Ditto.
5134         (IX86_BUILTIN_PCOMLEUQ): Ditto.
5135         (IX86_BUILTIN_PCOMGTUQ): Ditto.
5136         (IX86_BUILTIN_PCOMGEUQ): Ditto.
5137         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
5138         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
5139         (IX86_BUILTIN_PCOMEQB): Ditto.
5140         (IX86_BUILTIN_PCOMNEB): Ditto.
5141         (IX86_BUILTIN_PCOMLTB): Ditto.
5142         (IX86_BUILTIN_PCOMLEB): Ditto.
5143         (IX86_BUILTIN_PCOMGTB): Ditto.
5144         (IX86_BUILTIN_PCOMGEB): Ditto.
5145         (IX86_BUILTIN_PCOMFALSEB): Ditto.
5146         (IX86_BUILTIN_PCOMTRUEB): Ditto.
5147         (IX86_BUILTIN_PCOMEQW): Ditto.
5148         (IX86_BUILTIN_PCOMNEW): Ditto.
5149         (IX86_BUILTIN_PCOMLTW): Ditto.
5150         (IX86_BUILTIN_PCOMLEW): Ditto.
5151         (IX86_BUILTIN_PCOMGTW): Ditto.
5152         (IX86_BUILTIN_PCOMGEW): Ditto.
5153         (IX86_BUILTIN_PCOMFALSEW): Ditto.
5154         (IX86_BUILTIN_PCOMTRUEW): Ditto.
5155         (IX86_BUILTIN_PCOMEQD): Ditto.
5156         (IX86_BUILTIN_PCOMNED): Ditto.
5157         (IX86_BUILTIN_PCOMLTD): Ditto.
5158         (IX86_BUILTIN_PCOMLED): Ditto.
5159         (IX86_BUILTIN_PCOMGTD): Ditto.
5160         (IX86_BUILTIN_PCOMGED): Ditto.
5161         (IX86_BUILTIN_PCOMFALSED): Ditto.
5162         (IX86_BUILTIN_PCOMTRUED): Ditto.
5163         (IX86_BUILTIN_PCOMEQQ): Ditto.
5164         (IX86_BUILTIN_PCOMNEQ): Ditto.
5165         (IX86_BUILTIN_PCOMLTQ): Ditto.
5166         (IX86_BUILTIN_PCOMLEQ): Ditto.
5167         (IX86_BUILTIN_PCOMGTQ): Ditto.
5168         (IX86_BUILTIN_PCOMGEQ): Ditto.
5169         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
5170         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
5171         (enum multi_arg_type): New enum for describing the various SSE5
5172         intrinsic argument types.
5173         (bdesc_multi_arg): New table for SSE5 intrinsics.
5174         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
5175         (ix86_expand_multi_arg_builtin): New function for creating SSE5
5176         intrinsics.
5177         (ix86_expand_builtin): Add SSE5 intrinsic support.
5178         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
5179         operand instructions.
5180         (ix86_expand_sse5_multiple_memory): New function to split the
5181         second memory reference from SSE5 instructions.
5182         (type_has_variadic_args_p): Delete in favor of stdarg_p.
5183         (ix86_return_pops_args): Use stdarg_p to determine if the function
5184         has variable arguments.
5185         (ix86_setup_incoming_varargs): Ditto.
5186         (x86_this_parameter): Ditto.
5187
5188         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
5189         declaration.
5190         (ix86_expand_sse5_pack): Ditto.
5191         (ix86_sse5_valid_op_p): Ditto.
5192         (ix86_expand_sse5_multiple_memory): Ditto.
5193
5194         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
5195         constant for SSE5 support.
5196         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
5197         (UNSPEC_SSE5_TRUEFALSE): Ditto.
5198         (UNSPEC_SSE5_PERMUTE): Ditto.
5199         (UNSPEC_SSE5_ASHIFT): Ditto.
5200         (UNSPEC_SSE5_LSHIFT): Ditto.
5201         (UNSPEC_FRCZ): Ditto.
5202         (UNSPEC_CVTPH2PS): Ditto.
5203         (UNSPEC_CVTPS2PH): Ditto.
5204         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
5205         (PCOM_TRUE): Ditto.
5206         (COM_FALSE_S): Ditto.
5207         (COM_FALSE_P): Ditto.
5208         (COM_TRUE_S): Ditto.
5209         (COM_TRUE_P): Ditto.
5210         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
5211         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
5212         types.
5213         (memory attribute): Ditto.
5214         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
5215         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
5216         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
5217         (floor<mode>2): Ditto.
5218         (ceil<mode>2): Ditto.
5219         (btrunc<mode>2): Ditto.
5220         (nearbyintdf2): Ditto.
5221         (nearbyintsf2): Ditto.
5222         (sse_setccsf): Disable if SSE5.
5223         (sse_setccdf): Ditto.
5224         (sse5_setcc<mode>): New support for SSE5 conditional move.
5225         (sse5_pcmov_<mode>): Ditto.
5226
5227         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
5228         (SSEMODEF4): Ditto.
5229         (SSEMODEF2P): Ditto.
5230         (ssemodesuffixf4): New mode attribute for SSE5.
5231         (ssemodesuffixf2s): Ditto.
5232         (ssemodesuffixf2c): Ditto.
5233         (sserotatemax): Ditto.
5234         (ssescalarmode): Ditto.
5235         (sse_maskcmpv4sf3): Disable if SSE5.
5236         (sse_maskcmpv2df3): Ditto.
5237         (sse_vmmaskcmpv4sf3): Ditto.
5238         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
5239         (sse5_vmfmadd<mode>4): Ditto.
5240         (sse5_fmsub<mode>4): Ditto.
5241         (sse5_vmfmsub<mode>4): Ditto.
5242         (sse5_fnmadd<mode>4): Ditto.
5243         (sse5_vmfnmadd<mode>4): Ditto.
5244         (sse5_fnmsub<mode>4): Ditto.
5245         (sse5_vmfnmsub<mode>4): Ditto.
5246         (sse5i_fmadd<mode>4): Ditto.
5247         (sse5i_fmsub<mode>4): Ditto.
5248         (sse5i_fnmadd<mode>4): Ditto.
5249         (sse5i_fnmsub<mode>4): Ditto.
5250         (sse5i_vmfmadd<mode>4): Ditto.
5251         (sse5i_vmfmsub<mode>4): Ditto.
5252         (sse5i_vmfnmadd<mode>4): Ditto.
5253         (sse5i_vmfnmsub<mode>4): Ditto.
5254         (mulv16qi3): Add SSE5 support.
5255         (mulv4si3): Ditto.
5256         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
5257         (sse2_mulv4si3): Disable if SSE5.
5258         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
5259         (sse4_1_roundps): Ditto.
5260         (sse4_1_roundsd): Ditto.
5261         (sse4_1_roundss): Ditto.
5262         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
5263         be generated.
5264         (sse_maskcmpsf3): Ditto.
5265         (sse_vmmaskcmpv4sf3): Ditto.
5266         (sse2_maskcmpv2df3): Ditto.
5267         (sse2_maskcmpdf3): Ditto.
5268         (sse2_vmmaskcmpv2df3): Ditto.
5269         (sse2_eq<mode>3): Ditto.
5270         (sse2_gt<mode>3): Ditto.
5271         (sse5_pcmov_<mode>): Add SSE5 support.
5272         (vec_unpacku_hi_v16qi): Ditto.
5273         (vec_unpacks_hi_v16qi): Ditto.
5274         (vec_unpacku_lo_v16qi): Ditto.
5275         (vec_unpacks_lo_v16qi): Ditto.
5276         (vec_unpacku_hi_v8hi): Ditto.
5277         (vec_unpacks_hi_v8hi): Ditto.
5278         (vec_unpacku_lo_v8hi): Ditto.
5279         (vec_unpacks_lo_v8hi): Ditto.
5280         (vec_unpacku_hi_v4si): Ditto.
5281         (vec_unpacks_hi_v4si): Ditto.
5282         (vec_unpacku_lo_v4si): Ditto.
5283         (vec_unpacks_lo_v4si): Ditto.
5284         (sse5_pmacsww): New SSE5 intrinsic insn.
5285         (sse5_pmacssww): Ditto.
5286         (sse5_pmacsdd): Ditto.
5287         (sse5_pmacssdd): Ditto.
5288         (sse5_pmacssdql): Ditto.
5289         (sse5_pmacssdqh): Ditto.
5290         (sse5_pmacsdqh): Ditto.
5291         (sse5_pmacsswd): Ditto.
5292         (sse5_pmacswd): Ditto.
5293         (sse5_pmadcsswd): Ditto.
5294         (sse5_pmadcswd): Ditto.
5295         (sse5_pcmov_<move>): Conditional move support on SSE5.
5296         (sse5_phaddbw): New SSE5 intrinsic insn.
5297         (sse5_phaddbd): Ditto.
5298         (sse5_phaddbq): Ditto.
5299         (sse5_phaddwd): Ditto.
5300         (sse5_phaddwq): Ditto.
5301         (sse5_phadddq): Ditto.
5302         (sse5_phaddubw): Ditto.
5303         (sse5_phaddubd): Ditto.
5304         (sse5_phaddubq): Ditto.
5305         (sse5_phadduwd): Ditto.
5306         (sse5_phadduwq): Ditto.
5307         (sse5_phaddudq): Ditto.
5308         (sse5_phsubbw): Ditto.
5309         (sse5_phsubwd): Ditto.
5310         (sse5_phsubdq): Ditto.
5311         (sse5_pperm): Ditto.
5312         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
5313         (sse5_pperm_zero_v16qi_v8hi): Ditto.
5314         (sse5_pperm_sign_v8hi_v4si): Ditto.
5315         (sse5_pperm_zero_v8hi_v4si): Ditto.
5316         (sse5_pperm_sign_v4si_v2di): Ditto.
5317         (sse5_pperm_sign_v4si_v2di): Ditto.
5318         (sse5_pperm_pack_v2di_v4si): Ditto.
5319         (sse5_pperm_pack_v4si_v8hi): Ditto.
5320         (sse5_pperm_pack_v8hi_v16qi): Ditto.
5321         (sse5_perm<mode>): New SSE5 intrinsic insn.
5322         (rotl<mode>3): Ditto.
5323         (sse5_rotl<mode>3): Ditto.
5324         (sse5_ashl<mode>3): Ditto.
5325         (sse5_lshl<mode>3): Ditto.
5326         (sse5_frcz<mode>2): Ditto.
5327         (sse5s_frcz<mode>2): Ditto.
5328         (sse5_cvtph2ps): Ditto.
5329         (sse5_cvtps2ph): Ditto.
5330         (sse5_vmmaskcmp<mode>3): Ditto.
5331         (sse5_com_tf<mode>3): Ditto.
5332         (sse5_maskcmp<mode>3): Ditto.
5333         (sse5_maskcmp_uns<mode>3): Ditto.
5334         (sse5_maskcmp_uns2<mode>3): Ditto.
5335         (sse5_pcom_tf<mode>3): Ditto.
5336
5337         * config/i386/predicates.md (sse5_comparison_float_operator):
5338         New predicate to match the comparison operators supported by
5339         the SSE5 com instruction.
5340         (ix86_comparison_int_operator): New predicate to match just the
5341         signed int comparisons.
5342         (ix86_comparison_uns_operator): New predicate to match just the
5343         unsigned int comparisons.
5344
5345         * doc/invoke.texi (-msse5): Add documentation.
5346         (-mfused-madd): Ditto.
5347
5348         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
5349
5350         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
5351         mmintrin-common.h.
5352         (x86_64-*-*): Ditto.
5353
5354         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
5355
5356         * config/i386/bmmintrin.h: New file, provide common x86 compiler
5357         intrinisics for SSE5.
5358
5359         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
5360         mmintrin-common.h.
5361
5362         * config/i386/mmintrin-common.h: New file, to contain common
5363         instructions between SSE4.1 and SSE5.
5364
5365         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
5366         FOREACH_FUNCTION_ARGS to iterate over the argument list.
5367         (gen_regparm_prefix): Ditto.
5368
5369         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
5370         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
5371         prototype_p to determine if a function is prototyped.
5372
5373 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
5374
5375         * c-common.c (c_common_reswords) add the alignof keyword,
5376         with same RID as __alignof and __alignof__
5377
5378 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
5379
5380         * hooks.h (hook_bool_const_int_const_int_true): Declare.
5381         * hooks.c (hook_bool_const_int_const_int_true): New function.
5382         * target.h (struct gcc_target): Add can_eliminate field.
5383         * target-def.h (TARGET_CAN_ELIMINATE): Define.
5384         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
5385         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
5386         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
5387         (elim_table): Revise comment.
5388         * system.h (CAN_ELIMINATE): Poison.
5389         * defaults.h (CAN_ELIMINATE): Remove.
5390         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
5391
5392         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
5393         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
5394         Define macro.
5395         (alpha_vms_can_eliminate): Declare as static, change return type to
5396         bool.
5397         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
5398
5399         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
5400         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
5401         (arm_can_eliminate): New function.
5402
5403         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
5404         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
5405         (avr_can_eliminate): Declare as static.
5406         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
5407
5408         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
5409         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
5410         (bfin_can_eliminate): New function.
5411
5412         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
5413         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
5414         (crx_can_eliminate): New function.
5415
5416         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
5417         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
5418         (fr30_can_eliminate): New function.
5419
5420         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
5421         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
5422         (frv_can_eliminate): New function.
5423
5424         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
5425         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
5426         (h8300_can_eliminate): New function.
5427
5428         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
5429         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
5430         (i386_can_eliminate): Declare as static, change return type to bool.
5431         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
5432
5433         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
5434         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
5435         (ia64_can_eliminate): New function.
5436
5437         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
5438         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
5439         (iq2000_can_eliminate): New function.
5440
5441         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
5442         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
5443         (m32r_can_eliminate): New function.
5444
5445         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
5446         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
5447         (m68hc11_can_eliminate): New function.
5448
5449         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
5450         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
5451         (m68k_can_eliminate): New function.
5452
5453         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
5454         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
5455         (mep_can_eliminate): New function.
5456
5457         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
5458         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
5459         (mips_can_eliminate): New function.
5460
5461         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
5462         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
5463         (rs6000_can_eliminate): New function.
5464
5465         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
5466         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
5467         (s390_can_eliminate): Declare as static.
5468         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
5469
5470         * config/score/score.h (CAN_ELIMINATE): Remove macro.
5471         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
5472         (score_can_eliminate): New function.
5473
5474         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
5475         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
5476         (sparc_can_eliminate): Declare as static.
5477         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
5478
5479         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
5480         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
5481         (xstormy16_can_eliminate): New function.
5482
5483         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
5484         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
5485         (v850_can_eliminate): New function.
5486
5487 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
5488
5489         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
5490         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
5491         (*movdfcc_ext[1234]): Disable for IEEE mode.
5492
5493 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
5494
5495         * gimplify.c (prepare_gimple_addressable): New static function.
5496         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
5497         it addressable.
5498         (gimplify_addr_expr): Invoke it similarly on the operand instead of
5499         manually fiddling with it.
5500
5501 2009-08-25  Michael Matz  <matz@suse.de>
5502
5503         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
5504         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
5505         full expression.
5506         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
5507         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
5508         (do_jump): Split out code for simple binary comparisons into ...
5509         (do_jump_1): ... this, taking the individual operands and code.
5510         Change callers to helper function above accordingly.
5511         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
5512         comparisons.
5513
5514 2009-08-25  Michael Matz  <matz@suse.de>
5515
5516         * expr.h (struct separate_ops, sepops): New type for passing
5517         around an exploded simple expression.
5518         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
5519         Use this structure instead of expression tree.
5520         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
5521         expression, only its type.
5522         (expand_vec_cond_expr): Take type and individual operands instead
5523         of full expression.
5524         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
5525         expand_vec_shift_expr): Change prototype accordingly.
5526         * tree-vect-stmts.c (vectorizable_condition): Change call of
5527         expand_vec_cond_expr_p to pass only type.
5528         * expr.c (do_store_flags): Change prototype and implementation
5529         to take an exploded expression.
5530         (expand_expr_real_1): New local ops initialized with details
5531         of the full expression.  Use it instead of full
5532         expression in calls to do_store_flags, expand_vec_cond_expr,
5533         expand_widen_pattern_expr and expand_vec_shift_expr.
5534
5535 2009-08-25  Michael Matz  <matz@suse.de>
5536
5537         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
5538         treeop2 initialized with first three operands of the full expression.
5539         Substitute all TREE_OPERAND (exp, [012]) calls with them.
5540
5541 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
5542
5543         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
5544         (__gthread_objc_condition_allocate): Mark arguments as unused.
5545         (__gthread_objc_condition_deallocate): Likewise.
5546         (__gthread_objc_condition_wait): Likewise.
5547         (__gthread_objc_condition_broadcast): Likewise.
5548         (__gthread_objc_condition_signal): Likewise.
5549         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
5550         (__gthread_objc_thread_id): Likewise.
5551
5552 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
5553
5554         PR middle-end/41149
5555         * tree-pretty-print.c (print_call_name): Print the correct call name
5556         for procedure pointer components.
5557
5558 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
5559
5560         * config/ia64/ia64.c (ia64_promote_function_mode): Call
5561         default_promote_function_mode when not VMS.
5562
5563 2009-08-24  Olivier Hainque  <hainque@adacore.com>
5564
5565         * convert.c (convert_to_integer): Don't assume an input pointer is
5566         POINTER_SIZE wide.  Fetch from the type instead.
5567
5568 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5569
5570         * configure.ac (AC_PREREQ): Bump to 2.64.
5571
5572 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
5573
5574         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
5575         (process_command): Don't search standard_exec_prefix_1 and
5576         standard_exec_prefix_2.
5577
5578 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5579
5580         * config/arm/arm.c (output_return_instruction): Handle for
5581         unified syntax.
5582
5583 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5584
5585         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
5586
5587 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5588
5589         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
5590         (*arm_movdf_vfp): Likewise.
5591
5592 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5593
5594         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
5595         (vashr<mode>3): Rename from ashr<mode>3.
5596         (vlshr<mode>3): Rename from lshr<mode>3.
5597
5598 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
5599
5600         PR/40786
5601         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
5602         (check_format_info_main): Use scalar_identify_flag.
5603         (check_format_types): Check for scalar size identity if
5604         scalar_identify_flag is set.
5605         (printf_length_specs): Extend by new field.
5606         (asm_fprintf_length_specs): Likewise.
5607         (gcc_diag_length_specs): Likewise.
5608         (scanf_length_specs): Likewise.
5609         (strfmon_length_specs): Likewise.
5610         (gcc_gfc_length_specs): Likewise.
5611         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
5612         (ms_printf_flag_specs): Likewise.
5613         * c-format.h (format_length_info): Add new member scalar_identity_flag.
5614
5615 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
5616
5617         PR target/40718
5618         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
5619         (*call_value_pop_1): Ditto.
5620         (*sibcall_pop_1): New insn pattern.
5621         (*sibcall_value_pop_1): Ditto.
5622
5623 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
5624
5625         PR target/41081
5626         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
5627         ashrsi3_64): New.
5628
5629 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
5630
5631         PR target/41081
5632         * fwprop.c (try_fwprop_subst): Allow multiple sets.
5633         (get_reg_use_in): New function.
5634         (forward_propagate_subreg): Propagate through subreg of zero_extend
5635         or sign_extend.
5636
5637 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
5638
5639         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
5640         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
5641
5642 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5643
5644         * configure.ac: Remove --with-datarootdir, --with-docdir,
5645         --with-htmldir switches.  No need to call AC_SUBST for
5646         datarootdir, docdir, htmldir any more.
5647         * configure: Regenerate.
5648         * doc/install.texi (Configuration): Document --datarootdir,
5649         --docdir, --htmldir, --pdfdir; update documentation for
5650         --infodir, --mandir.
5651         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
5652         M4 to 1.4.6.
5653
5654         * aclocal.m4: Regenerate.
5655         * config.in: Regenerate.
5656         * configure: Regenerate.
5657
5658 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
5659             Olivier Hainque  <hainque@adacore.com>
5660
5661         * config/ia64/ia64.c: Include libfuncs.h.
5662         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
5663         (ia64_expand_call): Use reg 25 on VMS.
5664         (ia64_initialize_trampoline): Fix for VMS ABI.
5665         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
5666         (ia64_function_arg): Initialize reg 25 on VMS.
5667         Fix OpenVMS ABI issues for varargs.
5668         For OpenVMS, emit the Argument Information register set in the
5669         incoming/sibcall case as well.
5670         (ia64_arg_type): New function.
5671         (ia64_function_arg_advance): Keep track of cum->words.
5672         Fix OpenVMS ABI issues for varargs.
5673         (ia64_function_value): On VMS, promote mode of non-aggregate types.
5674         (ia64_override_options): Set flag_no_common on VMS.
5675         (ia64_init_builtins): Disable FWRITE builtin.
5676         (ia64_asm_output_external): Call DO_CRTL_NAMES.
5677         (ia64_vms_init_libfuncs): Add decc$ routines.
5678         (ia64_vms_valid_pointer_mode): New function.
5679         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
5680         (ia64_promote_function_mode): New function
5681         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
5682         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
5683         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
5684         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
5685         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
5686         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
5687         Suppress trailing '#' if VALUE is numeric.
5688         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
5689         ia64_promote_function_mode.
5690         (TARGET_VALID_POINTER_MODE): Define.
5691
5692 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
5693
5694         PR target/40671
5695         * config/rs6000/rs6000.c (rs6000_override_options): Use
5696         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
5697
5698         PR target/41145
5699         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
5700         reporting of vector + decimal/boolean/complex error.
5701
5702 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
5703
5704         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
5705         __vector double TYPE_DECL.
5706
5707 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
5708
5709         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
5710         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
5711         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
5712         to pointer to enum machine_mode.  Update all callers as needed.
5713
5714 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
5715
5716         * config/alpha/alpha.md (exception_receiver): Emit alternative
5717         GP load sequence if flag_reorder_blocks_and_partition is set.
5718         (*exception_receiver_2): Also enable when
5719         flag_reorder_blocks_and_partition is set.
5720
5721 2009-08-20  Matt Rice  <ratmice@gmail.com>
5722             Diego Novillo  <dnovillo@google.com>
5723
5724         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
5725         tree-ssa-sccvn.h.
5726
5727 2009-08-20  Richard Guenther  <rguenther@suse.de>
5728
5729         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
5730         * c-tree.h (c_dup_lang_specific_decl): Remove.
5731         (struct lang_decl, struct lang_type): Move definitions ...
5732         * c-lang.h: ... here.  New file.
5733         * c-decl.c: Include c-lang.h.
5734         (c_dup_lang_specific_decl): Remove.
5735         * c-typeck.c: Include c-lang.h.
5736         * Makefile.in (c-decl.o): Add c-lang.h dependency.
5737         (c-typeck.o): Likewise.
5738         * c-config-lang.in (gtfiles): Add c-lang.h.
5739         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
5740         like c-tree.h.
5741
5742 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
5743
5744         * config/alpha/alpha.c (alpha_end_function): Do not clear
5745         crtl->emit structure and free insn locators if cfun->is_thunk is true,
5746         this is now handled in generic code.
5747
5748 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
5749
5750         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
5751         (s390_z10_fix_long_loop_prediction): New function.
5752         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
5753         (s390_reorg): Walk over the INSNs and invoke
5754         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
5755
5756 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
5757
5758         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
5759         "*brx_64bit", "*brx_31bit"): New patterns.
5760         * config/s390/s390.c ('E'): New output modifier.
5761
5762 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5763             Richard Earnshaw  <richard.earnshaw@arm.com>
5764
5765         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
5766         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
5767
5768 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5769
5770         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
5771         patterns.
5772         * pa.c (emit_move_sequence): Check if address of operand1 is valid
5773         for mode mode of operand0 when doing secondary reload for SAR.
5774
5775 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
5776
5777         PR middle-end/41123
5778         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
5779         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
5780
5781 2009-08-19  Jason Merrill  <jason@redhat.com>
5782
5783         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
5784         supported template depth in C++0x.
5785
5786 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
5787
5788         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
5789         free_after_compilation.
5790         * config/score/score7.c (score7_output_mi_thunk): Likewise.
5791         * config/score/score3.c (score3_output_mi_thunk): Likewise.
5792         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
5793         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
5794         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
5795         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
5796         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5797
5798 2009-08-19  Ian Lance Taylor  <iant@google.com>
5799
5800         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
5801         of (plus (mult (neg B) C) A).
5802
5803 2009-08-18  Michael Matz  <matz@suse.de>
5804
5805         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
5806         instead of comparing TYPE_MAIN_VARIANT for equality.
5807         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
5808         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
5809         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
5810         * gimplify.c (goa_lhs_expr_p): Ditto and use
5811         STRIP_USELESS_TYPE_CONVERSION.
5812
5813 2009-08-18  Michael Matz  <matz@suse.de>
5814
5815         * tree-ssa-structalias.c (create_variable_info_for): Also mark
5816         first field in a struct.
5817         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
5818
5819 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
5820
5821         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
5822         locators before emit_insn is called.  Remove assert that
5823         cfun->is_thunk.
5824         (alpha_end_function): Clear crtl->emit structure and free insn
5825         locators if cfun->is_thunk is true.
5826
5827 2009-08-18  Jason Merrill  <jason@redhat.com>
5828
5829         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
5830         type if available.
5831         * configure.ac: Test for it.
5832         * configure, config.in: Regenerate.
5833         * doc/install.texi: Document --enable-gnu-unique-object.
5834
5835 2009-08-18  Richard Guenther  <rguenther@suse.de>
5836
5837         PR middle-end/41094
5838         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
5839         pow(x,y*z) only if x is nonnegative.
5840
5841 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
5842
5843         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
5844         on jumps.
5845
5846         PR target/40971
5847         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
5848         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
5849
5850 2009-08-17  DJ Delorie  <dj@redhat.com>
5851
5852         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
5853         * config/m32c/prologue.md (epilogue_freit): New.
5854         (fset_b): New.
5855         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
5856         (bank_switch_p): Likewise.
5857         (fast_interrupt_p): Likewise.
5858         (interrupt_p): Likewise.
5859         (m32c_conditional_register_usage): Round memregs size up.
5860         (need_to_save): We only need to save $a0 when we use ENTER.
5861         (interrupt_p): Check for fast_interrupt too.
5862         (bank_switch_p): New.
5863         (fast_interrupt_p): New.
5864         (m32c_attribute_table): Add bank_switch and fast_interrupt.
5865         (m32c_emit_prolog): Support bank switching and fast interrupts.
5866         * doc/extend.texi (Function Attributes): Add bank_switch and
5867         fast_interrupt.
5868
5869 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
5870
5871         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
5872         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
5873
5874 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
5875
5876         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
5877         (menu): Add IA-64/VMS Options.
5878         (IA-64/VMS Options): Likewise.
5879
5880 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
5881
5882         PR target/38599
5883         * config/mips/mips.md (*lwxs): Use :P for pointer values.
5884
5885 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
5886
5887         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
5888         (mips_pop_asm_switch): Likewise.
5889         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
5890         with...
5891         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
5892         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
5893         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
5894         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
5895         instead of set_noreorder.
5896         (mips_output_function_prologue): Use the new functions.
5897         (mips_output_function_epilogue): Likewise.
5898         (mips_need_noat_wrapper_p): New function, split out from...
5899         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
5900         Use mips_push_asm_switch and mips_pop_asm_switch.
5901         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
5902         and mips_pop_asm_switch.
5903         (ASM_OUTPUT_REG_POP): Likewise.
5904         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
5905         Use mips_pop_asm_switch.
5906         (mips_asm_switch): New structure.
5907         (set_noreorder, set_nomacro): Replace with...
5908         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
5909         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
5910         instead of set_nomacro.
5911         (fix_truncsfsi2_macro): Likewise.
5912         (cprestore): Likewise.
5913         (hazard): Use mips_noreorder instead of set_noreorder.
5914         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
5915
5916 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
5917
5918         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
5919         from prev_active_insn.
5920
5921 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
5922
5923         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
5924         * config/avr/avr.c (avr_override_options): Initialize
5925         avr_current_arch variable.
5926         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
5927         __AVR_HAVE_16BIT_SP__ according to the device type.
5928         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
5929         TARGET_TINY_STACK.
5930         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
5931         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
5932
5933 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
5934
5935         PR debug/37801
5936         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
5937         generating inlined subroutine die only. We shouldn't be
5938         called for anything else.
5939         (gen_block_die): Don't generate inline subroutine debug info for
5940         abstract blocks.
5941
5942 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
5943
5944         * graphite-poly.c (print_pbb): Print PBB index.
5945
5946 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
5947
5948         PR middle-end/40981
5949         * graphite-interchange.c (ppl_max_for_le): Moved...
5950         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
5951         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
5952         ppl_Pointset_Powerset_C_Polyhedron_maximize.
5953         * graphite-ppl.h (ppl_max_for_le): Declared.
5954
5955 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
5956
5957         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
5958         supported on all platforms.
5959         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
5960         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
5961         * c-pragma.c: Likewise.
5962         * target-def.h (TARGET_INITIALIZER): Remove
5963         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
5964         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
5965
5966 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
5967
5968         * config/ia64/fde-vms.c: New file.
5969         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
5970         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
5971         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
5972         (uw_frame_state_for): Only register a personality routine if it is
5973         known to be compatible with our expectations.
5974         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
5975         Declare unw_table_entry stack variable and
5976         mod all calls to _Unwind_FindTableEntry to add arg.
5977         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
5978         (_Unwind_FindTableEntry): Add arg to prototype.
5979
5980 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
5981
5982         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
5983         field 'signal_pfs_loc'.
5984         (uw_frame_state_for): Remove duplicate code dealing with leaf
5985         procedures without unwind info.
5986         If in the frame after unwinding through a signal handler, restore
5987         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
5988         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
5989         'pfs_loc' to the AR.PFS location in the signal context; instead
5990         set 'signal_pfs_loc'.
5991         Manually generate the unwind info for the AR.PFS register.
5992         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
5993         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
5994         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
5995         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
5996         instead set 'signal_pfs_loc'.
5997         Remove code preventing the AR.PFS register from being restored
5998         from the signal context.
5999
6000 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
6001             Tristan Gingold  <gingold@adacore.com>
6002
6003         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
6004         * config/ia64/t-vms: New file.
6005         * config/ia64/vms64.h: New file.
6006         * config/ia64/vms.h: New file.
6007         * config/ia64/vms-crtinit.asm: New file.
6008         * config/ia64/vms_symvec_libgcc_s.opt: New file.
6009         * config/ia64/vms-unwind.h: New file.
6010
6011 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
6012
6013         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
6014         TFmode compares.
6015
6016 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6017
6018         PR middle-end/30789
6019         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
6020         Move declaration...
6021         * real.h (do_mpc_arg2): ... here.
6022         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
6023         and RDIV_EXPR.
6024
6025 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
6026
6027         * final.c (add_debug_prefix_map): Don't use GC memory for
6028         old_prefix and new_prefix.
6029
6030 2009-08-14  Richard Guenther  <rguenther@suse.de>
6031
6032         * ipa-prop.c (compute_complex_pass_through): If we cannot
6033         compute a non-varying offset for IPA_JF_ANCESTOR punt.
6034
6035 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6036
6037         * c-lex.c (c_lex_with_flags): Increase size of local variable
6038         to avoid memory clobber.
6039
6040 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
6041
6042         PR target/40934
6043         * config/i386/i386.c (ix86_fp_comparison_strategy):
6044         Only enable/disable sahf at function granularity.
6045
6046 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
6047
6048         PR rtl-optimization/41064
6049         * reload1.c (reload_as_needed): Don't call extract_insn
6050         for known invalid replacements after calling
6051         validate_replace_rtx_group and verify_changes.
6052
6053 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
6054
6055         PR target/41019
6056         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
6057         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
6058         ix86_expand_fp_vcond.
6059         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
6060         Assert that operation is supported by ix86_expand_int_vcond.
6061         (vcondu<SSEMODE124C8:mode>): Ditto.
6062
6063 2009-08-13  DJ Delorie  <dj@redhat.com>
6064
6065         * config/i386/djgpp-stdint.h: New.
6066         * config.gcc (djgpp): Use it.
6067
6068 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
6069
6070         * config/sh/sh.c (sh_override_options): When flag_exceptions or
6071         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
6072
6073 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
6074
6075         * tree-ssa-loop-prefetch.c
6076         (prune_ref_by_group_reuse): Enhance probabilistic analysis
6077         for long-stride pruning.
6078         (compute_miss_rate): New function to compute the probability
6079         that two memory references access different cache lines.
6080
6081 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
6082
6083         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
6084
6085 2009-08-13  Richard Guenther  <rguenther@suse.de>
6086
6087         PR middle-end/41047
6088         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
6089         use the constant pointer type.
6090         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
6091         of CV qualifiers on the target pointer type.
6092         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
6093         conversion check before restrict check.
6094
6095 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
6096
6097         PR target/41029
6098         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
6099
6100 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
6101
6102         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
6103
6104 2009-08-12  Richard Guenther  <rguenther@suse.de>
6105
6106         PR tree-optimization/41011
6107         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
6108         and reference constructing.
6109
6110 2009-08-12  Xinliang David Li  <davidxl@google.com>
6111
6112         PR tree-optimization/41012
6113         * tree-flow.h : New external interface.
6114         * gimple-low.c (check_call_arg): Change to public function.
6115         Remove argument mismatch check in lowering.
6116         * tree-inline.h (tree_can_inline_p): Interface change.
6117         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
6118         into this function.
6119         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
6120         Call change to tree_can_inline_p function.
6121         (cgraph_decide_inlining_incrementally): Ditto.
6122
6123 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
6124
6125         PR tree-optimization/41031
6126         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
6127         on the partition variable rather than promote_mode on the source
6128         type.  Assert that the partition variable's type has the same
6129         mode as the source value's.
6130
6131 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
6132
6133         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
6134         for for_return == 2.
6135         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
6136         comments.
6137         * calls.c (expand_call): Fix typo.
6138         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
6139         and PARM_DECL.
6140         * stmt.c (expand_value_return): Use promote_function_mode to copy out
6141         of pseudo.
6142         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
6143         * config/cris/cris.c (cris_promote_function_mode): Likewise.
6144         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
6145         * config/pa/pa.c (pa_promote_function_mode): Likewise.
6146
6147 2009-08-12  Andrew Haley  <aph@redhat.com>
6148
6149         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
6150
6151 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6152
6153         PR bootstrap/40103
6154         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
6155
6156 2009-08-12  Richard Guenther  <rguenther@suse.de>
6157
6158         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
6159         * gimplify.c (gimplify_modify_expr): Do not use
6160         lang_hooks.types_compatible_p.
6161         * tree-ssa.c (useless_type_conversion_p): For aggregates
6162         just return false if the canonical types differ.
6163
6164 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6165
6166         PR middle-end/40980
6167         * sese.c (convert_for_phi_arg): New.
6168         (add_guard_exit_phis): Use convert_for_phi_arg.
6169
6170 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6171
6172         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
6173         unknown subscript upper bounds.
6174
6175 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6176             Pranav Garg  <pranav.garg2107@gmail.com>
6177
6178         * graphite-interchange.c (gather_access_strides): Removed.
6179         (ppl_max_for_le): New.
6180         (build_linearized_memory_access): New.
6181         (memory_stride_in_loop): New.
6182         (pbb_interchange_profitable_p): Reimplemented.
6183         * graphite-ppl.h (ppl_new_id_map): New.
6184         (ppl_interchange): New.
6185
6186 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6187
6188         * graphite-interchange.c (compute_subscript): Removed.
6189         (compute_array_size_cstr): Removed.
6190         (compute_array_size_poly): Removed.
6191         (compute_array_size): Removed.
6192         (gather_access_strides_poly): Removed.
6193         (gather_access_strides): Empty.
6194
6195 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6196
6197         * graphite-dependences.c (dependence_polyhedron_1): Replace
6198         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
6199         (graphite_legal_transform_dr): Same.
6200         (graphite_carried_dependence_level_k): Same.
6201         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
6202         Initialize PDR_NB_SUBSCRIPTS.
6203         (print_pdr_access_layout): Replace pdr_nb_subscripts with
6204         PDR_NB_SUBSCRIPTS.
6205         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
6206         (PDR_NB_SUBSCRIPTS): New.
6207         (pdr_nb_subscripts): Removed.
6208         (pdr_dim): Simplified.
6209         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
6210         with PDR_NB_SUBSCRIPTS.
6211
6212 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6213
6214         * graphite-interchange.c (compute_array_size): Remove use of
6215         PDR_DATA_CONTAINER.
6216         * graphite-poly.c (new_poly_dr): Remove argument data_container.
6217         Do not initialize PDR_DATA_CONTAINER.
6218         (print_pdr): Do not print PDR_DATA_CONTAINER.
6219         * graphite-poly.h (struct poly_dr): Remove data_container field.
6220         (PDR_DATA_CONTAINER): Removed.
6221         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
6222         PDR_DATA_CONTAINER.
6223         (build_poly_dr): Same.
6224
6225 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
6226             Sebastian Pop  <sebastian.pop@amd.com>
6227
6228         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
6229         copy of the dependence polyhedron.  Free the temporary objects.
6230         (graphite_carried_dependence_level_k): Free unused objects before
6231         returning.
6232
6233 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6234
6235         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
6236         Early return without analyzing the data dependences if no
6237         transform has been done.  Call restore_scattering if the transform
6238         is not legal.
6239         (graphite-interchange.c): Same.
6240         * graphite-poly.c (print_scattering_function): Test for
6241         PBB_TRANSFORMED.
6242         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
6243         (apply_poly_transforms): Do not gcc_assert that
6244         the transform is legal.
6245         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
6246         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
6247         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
6248         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
6249         * graphite-poly.h (struct poly_scattering): New.
6250         (struct poly_bb): Add original, transformed, and saved fields.
6251         Remove transformed_scattering, original_scattering,
6252         nb_local_variables and nb_scattering_transform fields.
6253         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
6254         (poly_scattering_new): New.
6255         (poly_scattering_free): New.
6256         (poly_scattering_copy): New.
6257         (store_scattering_pbb): New.
6258         (store_scattering): New.
6259         (restore_scattering_pbb): New.
6260         (restore_scattering): New.
6261         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
6262         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
6263
6264 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6265
6266         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
6267         (print_scop): Same.
6268
6269 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6270
6271         * Makefile.in (graphite.o): Depends on PREDICT_H.
6272         * graphite.c: Include predict.h.
6273         (graphite_finalize): Call tree_estimate_probability.
6274         * predict.c (predict_loops): Do not call scev_initialize and
6275         scev_finalize.
6276         (tree_estimate_probability_bb): New.
6277         (tree_estimate_probability): Do not initialize loops: move that
6278         code to the driver.  Call tree_estimate_probability_bb.
6279         (tree_estimate_probability_driver): New.
6280         (pass_profile): Use tree_estimate_probability_driver.
6281         * predict.h (tree_estimate_probability): Declared.
6282
6283 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
6284
6285         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
6286         * graphite-dependences.c (graphite_legal_transform): Add time to
6287         TV_GRAPHITE_DATA_DEPS.
6288         (dependency_between_pbbs_p): Same.
6289         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
6290
6291 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
6292
6293         PR rtl-optimization/41033
6294         * alias.c (nonoverlapping_component_refs_p): Punt when strict
6295         aliasing is disabled.
6296
6297 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
6298
6299         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
6300         si_mask_operand, and_load_operand, low_bitmask_operand,
6301         and_reg_operand, and_operand): New predicates.
6302         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
6303         * config/mips/mips.c (and_operands_ok): New function.
6304         * config/mips/mips-protos.h (and_operands_ok): Declare it.
6305         * config/mips/mips.md (move_type): Add ext_ins and logical.
6306         (type): Handle them.
6307         (and<mode>3): Use and_reg_operand as the second operand's predicate.
6308         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
6309         shift_shift.  Remove commutative constraint modifier.
6310         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
6311         shift_shift.
6312         (*clear_upper32_dext): Remove define_insn_and_split.
6313         (*clear_upper32): Turn this define_insn_and_split ...
6314         (splitter for ANDing register with 0xffff_ffff): .. into this.
6315
6316 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
6317
6318         * combine.c (try_widen_shift_mode): Factor out code to check if an
6319         integer constant is a low-order bitmask from here ...
6320         * rtlanal.c (low_bitmask_len): ... to here.
6321         * rtl.h (low_bitmask_len): Declare.
6322
6323 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
6324
6325         PR target/8603
6326         * config/alpha/alpha.md (addsi3): Remove expander.
6327         (addsi3): Rename from *addsi3_internal insn pattern.
6328         (subsi3): Remove expander.
6329         (subsi3): Rename from *subsi3_internal insn pattern.
6330
6331 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
6332
6333         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
6334         FWRITE_UNLOCKED.
6335
6336 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
6337             Eric Botcazou  <botcazou@adacore.com>
6338             Douglas B Rupp  <rupp@gnat.com>
6339
6340         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
6341         that records that fit in 64 bits are returned by immediate value,
6342         as required by OpenVMS Calling Standard.
6343         (function_value): Adjust for above modification.
6344         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
6345         virtual_incoming_args_rtx as base object, not next_arg.
6346         * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6347
6348 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6349
6350         * reload.c (find_reloads_subreg_address): Check the original
6351         req_equiv_mem address to detect the case where an address is
6352         not valid in the outer mode.
6353
6354 2009-08-11  Richard Guenther  <rguenther@suse.de>
6355
6356         PR bootstrap/40788
6357         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
6358
6359 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
6360
6361         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
6362         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
6363
6364 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
6365             Douglas B Rupp  <rupp@gnat.com>
6366
6367         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
6368         PT_STACK when frame_pointer_needed on OpenVMS.
6369         (alpha_pv_save_size, alpha_using_fp): Remove.
6370         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
6371         with proper processing for PT_NULL.
6372         (alpha_vms_initial_elimination_offset): New function. Support for
6373         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
6374         (alpha_sa_size): Force procedure type to PT_STACK when
6375         frame_pointer_needed on OpenVMS.
6376         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
6377         (alpha_using_fp): Likewise.
6378         (alpha_vms_can_eliminate): Add prototype.
6379         (alpha_vms_initial_elimination_offset): Likewise.
6380         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
6381         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
6382
6383 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
6384             Douglas B Rupp  <rupp@gnat.com>
6385
6386         * config/alpha/alpha.c (common_object_handler): New function.
6387         (vms_attribute_table): Declare a single attribute "common_object".
6388         (vms_output_aligned_decl_common): New global function.
6389         (SECTION_VMS_OVERLAY): Delete.
6390         (SECTION_VMS_GLOBAL): Likewise.
6391         (SECTION_VMS_INITIALIZE): Likewise.
6392         (vms_asm_named_section): Remove support for above flags.
6393         (vms_section_type_flags): Delete.
6394         (TARGET_SECTION_TYPE_FLAGS): Likewise.
6395         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
6396         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
6397         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
6398
6399 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
6400
6401         PR target/41015
6402         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
6403         (sub_ddmmss): Likewise.
6404
6405 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
6406
6407         PR bootstrap/41018
6408         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
6409         year.
6410
6411 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6412
6413         PR target/37053
6414         * reload1.c (reload_as_needed): Use cancel_changes to completely
6415         undo a failed replacement attempt.
6416
6417 2009-08-10  Richard Guenther  <rguenther@suse.de>
6418
6419         PR middle-end/41006
6420         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
6421         (useless_type_conversion_p): ... here.  Require pointer targets
6422         to be compatible.
6423
6424 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
6425
6426         PR c++/40866
6427         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
6428         loose the original type of the statement list.
6429
6430 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
6431
6432         * config/alpha/alpha.c: Include libfuncs.h
6433         (avms_asm_output_extern): New function.
6434         (alpha_init_libfuncs): Init some decc libfuncs.
6435         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
6436         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
6437         (DO_CRTL_NAMES): Define.
6438         (LIB_SPEC): Remove.
6439         * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
6440         (LONG_TYPE_SIZE): Define.
6441         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
6442         (SUBTARGET_SWITCHES): Define malloc64 switch.
6443         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
6444         (MASK_RETURN_ADDR): Define.
6445         doc/invoke.texi (mmalloc64): Document switch.
6446
6447 2009-08-09  Olivier Hainque  <hainque@adacore.com>
6448             Douglas B Rupp  <rupp@gnat.com>
6449
6450         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
6451         uses_condition_handler.
6452         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
6453         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
6454         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
6455         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
6456         (code_for_builtin): New insn codes for the new alpha_builtins.
6457         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
6458         (alpha_sa_size): Account for uses_condition_handler.
6459         (alpha_expand_prologue): Likewise.
6460         (alpha_start_function): Likewise.
6461         (alpha_expand_epilogue): Likewise.
6462         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
6463         establish/revert expanders.
6464         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
6465         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
6466         New expander, resorting to the alpha.c associated function.
6467         (builtin_revert_vms_condition_handler): Likewise.
6468         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
6469         __gcc_shell_handler, the static VMS condition handler used as
6470         an indirection wrapper to the current dynamically established
6471         handler.
6472         * config/alpha/vms-unwind.h: Complete rewrite.
6473         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
6474         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
6475
6476 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
6477             Douglas B Rupp  <rupp@gnat.com>
6478
6479         * config/alpha/alpha.c (alpha_links): Add 'target' field.
6480         (alpha_need_linkage): Handle aliases.  Return function symbol.
6481         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
6482         Use ultimate alias target for the linkage name.
6483         * config/alpha/alpha.md (movmemdi): Use the symbol returned
6484         by alpha_need_linkage for the function symbol.
6485         (setmemdi): Likewise.
6486
6487 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
6488
6489         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
6490         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
6491         (ASM_WEAKEN_LABEL): Define.
6492         (CRT_CALL_STATIC_FUNCTION): Define.
6493         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
6494         (ENDFILE_SPEC): Define.
6495         (INIT_SECTION_ASM_OP): Define.
6496         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
6497         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
6498         crtend.o crtendS.o.
6499         (MULTILIB_OSDIRNAMES): Define.
6500         (shlib_version): Define.
6501         (SHLIB_EXT): Define.
6502         (SHLIB_OBJS): Define.
6503         (SHLIB_NAME): Define.
6504         (SHLIB_MULTILIB): Define.
6505         (SHLIB_INSTALL): Define.
6506         (SHLIB_SYMVEC): Define.
6507         (SHLIB_SYMVECX2): Define.
6508         (SHLIB_LINK): Define.
6509
6510 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
6511
6512         * config/alpha/alpha.c (alpha_initialize_trampoline):
6513         Initialize VMS trampoline IAW ABI for bounded procedure calls.
6514         (alpha_start_function): Emit transfer address on nested functions
6515         for VMS trampoline call.
6516         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
6517         since no longer used.
6518         * config/alpha/vms-tramp.asm: Remove.
6519         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
6520         since now only data initialized at runtime.
6521
6522 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
6523
6524         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
6525         (LINK_GCC_C_SEQUENCE_SPEC): Define.
6526         (MD_EXEC_PREFIX): Remove, no longer used.
6527         (MD_STARTFILE_PREFIX): Likewise.
6528         (INCLUDE_DEFAULTS): Likewise.
6529         * config/alpha/t-vms:
6530         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
6531
6532 2009-08-09  Richard Guenther  <rguenther@suse.de>
6533
6534         PR tree-optimization/41016
6535         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
6536         (operand_precision): Remove.
6537         (integral_operand_p): Likewise.
6538         (recognize_single_bit_test): Adjust.
6539
6540 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
6541
6542         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
6543         operation overflows.  Likewise non-cast unary arithmetic.
6544         If one arm of a conditional expression is always taken,
6545         inhibit evaluation warnings for the other arm.  Likewise inhibit
6546         evaluation warnings for the second && or || operand if the first
6547         operand is enough to determine the result.
6548         * c-typeck.c (build_conditional_expr): Apply the same inhibition
6549         rules here.
6550         (build_binary_op): Prevent duplicate evaluation warnings.
6551
6552 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
6553
6554         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
6555         and destination have different modes, Use promote_mode to
6556         determine the signedness of the conversion.  Assert that the
6557         promoted source mode matches the destination mode.  Don't pass
6558         the destination and destination mode to expand_expr if the source
6559         mode is different.  Simplify conversion logic.
6560
6561 2009-08-09  Ira Rosen  <irar@il.ibm.com>
6562
6563         PR tree-optimization/41008
6564         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
6565         from condition only in case it's a comparison. Adjust checks.
6566
6567 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
6568
6569         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
6570         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
6571         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
6572         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
6573         (dump_cand): Handle them.
6574         (struct iv_cand): New members COST_STEP and AINC_USE.
6575         (stmt_after_increment): Likewise.
6576         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
6577         callers changed.  Use gimple_uid comparison instead of scanning.
6578         (add_candidate_1): When looking for identical candidates, take
6579         AINC_USE into account.  Set it for new candidates.
6580         (force_expr_to_var_cost): Cast target_spill_cost to int.
6581         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
6582         All callers changed.  Check for availability of autoinc addressing
6583         modes, both in general for a given mode, and in the specific use case.
6584         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
6585         changed.
6586         (get_computation_cost): Likewise.
6587         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
6588         add_autoinc_candidates): New static functions.
6589         (add_candidate): Call add_autoinc_candidates for candidates based on
6590         a USE_ADDRESS use.
6591         (find_iv_candidates): Call set_autoinc_for_original_candidates.
6592         (determine_use_iv_cost_address): If we have an autoinc candidate at
6593         the matching use, verify autoinc is possible and subtract the cost
6594         of the candidate's step from the cost.
6595         (determine_iv_cost): Record the cost of the increment in the COST_STEP
6596         member of the candidate.
6597         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
6598         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
6599
6600 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
6601
6602         * config.build (ia64-hp-*vms*): New target.
6603         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
6604         with ia64-hp-*vms*.
6605         * config.gcc (ia64-hp-*vms*): New target.
6606         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
6607         with ia64-hp-*vms*.
6608         * config.host (ia64-hp-*vms*): New target.
6609         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
6610         with ia64-hp-*vms*.
6611
6612 2009-08-08  Richard Guenther  <rguenther@suse.de>
6613
6614         PR tree-optimization/40991
6615         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
6616
6617 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
6618
6619         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
6620         mode check.  Do truncations in an integer mode.
6621         (force_to_mode): Handle subregs for all mode types.  Only do
6622         arithmetic simplifications on integer modes.
6623
6624 2009-08-07  Richard Guenther  <rguenther@suse.de>
6625
6626         PR tree-optimization/40999
6627         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
6628         (maybe_fold_reference): Lookup constant initializers.
6629         (fold_gimple_assign): Likewise.
6630
6631 2009-08-07  Richard Guenther  <rguenther@suse.de>
6632
6633         * tree-ssa.c (useless_type_conversion_p_1): Only for types
6634         that require structural equality defer to the langhook.
6635
6636 2009-08-07  Martin Jambor  <mjambor@suse.cz>
6637
6638         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
6639         comments.
6640         (struct ipa_pass_through_data): New type.
6641         (struct ipa_ancestor_jf_data): New type.
6642         (union jump_func_value): Removed field formal_id, added fields
6643         pass_through and ancestor.
6644         (struct ipa_param_call_note): Changed type of formal_id to int from
6645         unsigned.
6646         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
6647         operations jump functions and ancestor jump functions.
6648         (compute_complex_pass_through): New function.
6649         (compute_scalar_jump_functions): Call compute_complex_pass_through,
6650         reflect changes in the jump function strucutre.
6651         (update_jump_functions_after_inlining): Ignore complex pass-through
6652         and ancestor jump functions.
6653         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
6654         polynomial pass-through with operation jump functions.
6655
6656 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
6657
6658         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
6659         fde->dw_fde_begin as begin label instead of hot/cold label.
6660         Use LLSDAC label instead of LLSDA for second section lsda.
6661         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
6662         label instead of LLSDA if it is true.
6663         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
6664         callers.
6665         * except.c (add_call_site, dw2_size_of_call_site_table): Add
6666         SECTION argument.  Use it as index into crtl->eh.call_site_record
6667         array.
6668         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
6669         use it to determine how to print table entries instead of using
6670         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
6671         label instead of normal begin label as base.
6672         (sjlj_assign_call_site_values): Adjust add_call_site caller.
6673         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
6674         ensure no EH range spans between sections and that landing pads
6675         are always in the corresponding section.
6676         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
6677         for crtl->eh.call_site_record being an array rather than scalar.
6678         (output_one_function_exception_table): New function, copied
6679         from output_function_exception_table.  Adjust
6680         dw2_size_of_call_site_table, dw2_output_call_site_table
6681         callers.  For SECOND section use *C suffixed labels.
6682         (output_function_exception_table): Call
6683         output_one_function_exception_table and, when doing hot/cold
6684         partitioning, also another time for the second section.
6685         * opts.c: Include except.h.
6686         (decode_options): Allow -freorder-blocks-and-partition with
6687         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
6688         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
6689         * function.h (struct rtl_eh): Change call_site_record from
6690         scalar into array of 2 elements.
6691
6692 2009-08-07  Martin Jambor  <mjambor@suse.cz>
6693
6694         * ipa-prop.c (count_formal_params_1): New function.
6695         (ipa_get_vector_of_formal_parms): New function.
6696         (get_vector_of_formal_parm_types): New function.
6697         (ipa_modify_formal_parameters): New function.
6698         (ipa_modify_call_arguments): New function.
6699         (index_in_adjustments_multiple_times_p): New function.
6700         (ipa_combine_adjustments): New function.
6701         (ipa_dump_param_adjustments): New function.
6702         * ipa-prop.h (struct ipa_parm_adjustment): New type.
6703         (ipa_get_vector_of_formal_parms): Declare.
6704         (ipa_modify_formal_parameters): Declare.
6705         (ipa_modify_call_arguments): Declare.
6706         (ipa_combine_adjustments): Declare.
6707         (ipa_dump_param_adjustments): Declare.
6708         (build_ref_for_offset): Declare.
6709         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
6710         * tree-sra.c: Include ipa-prop.c.
6711         (build_ref_for_offset): Make public.
6712
6713 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
6714
6715         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
6716
6717 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
6718
6719         * gcc/doc/extend.texi (__builtin_extract_return_address)
6720         (__builtin_frob_return_address): Document.
6721
6722 2009-08-06  Paul Brook  <paul@codesourcery.com>
6723
6724         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
6725         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
6726         implementation on ARMv6-M.
6727
6728 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
6729
6730         * doc/extend.texi (pcs): Document new attribute for ARM.
6731
6732 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
6733
6734         * arm.c (pcs_attribute_args): Comment out unsupported attribute
6735         variants.
6736
6737 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
6738
6739         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
6740         warning ().
6741
6742 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
6743
6744         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
6745
6746 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
6747
6748         Merge ARM/hard_vfp_branch to trunk.
6749
6750         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
6751
6752         * arm.c (libcall_eq): New function.
6753         (libcall_hash): New function.
6754         (add_libcall): New function.
6755         (arm_libcall_uses_aapcs_base): New function.
6756         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
6757         libcalls using the base PCS.
6758         (arm_init_cumulative_args): Likewise.
6759
6760         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
6761
6762         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
6763         Use base ABI for conversion libfuncs between HFmode and SFmode.
6764
6765         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
6766
6767         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
6768         V4SImode as representatives of all 64-bit and 128-bit vector
6769         types.  Allow vector types without vector modes.
6770         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
6771         without vector modes like BLKmode.
6772         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
6773         BLKmode.  Avoid unsupported vector modes or TImode moves for
6774         non-TARGET_NEON.
6775         (aapcs_vfp_allocate_return_reg): Likewise.
6776         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
6777         V8QImode if TARGET_NEON || TARGET_IWMMXT.
6778
6779         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
6780
6781         * config/arm/arm.c (arm_handle_pcs_attribute): New.
6782         (arm_get_pcs_model): Pass attribute arguments to
6783         arm_pcs_from_attribute.
6784         (arm_init_cumulative_args): Use base AAPCS for conversions from
6785         floating-point types to DImode.
6786         (arm_attribute_table): Add pcs attribute.
6787         (arm_handle_pcs_attribute): New.
6788         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
6789         conversions from floating-point types to DImode, also declare them
6790         to use base AAPCS and declare functions they call to use base
6791         AAPCS and their RTABI names.
6792
6793         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
6794
6795         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
6796         -mfloat-abi=hard not being supported for VFP.
6797
6798         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
6799
6800         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
6801         SYMBOL_REF to hard_libcall_value.
6802
6803         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
6804             Richard Earnshaw  <rearnsha@arm.com>
6805
6806         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
6807         has been put on the stack, all remaining co-processory arguments for
6808         that co-processor also go on the stack.
6809
6810         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
6811
6812         * config/arm/arm.c (arm_return_in_memory): Handle returning
6813         vectors of suitable size in registers also for AAPCS case.
6814
6815         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
6816
6817         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
6818
6819         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
6820
6821         ARM Hard-VFP calling convention
6822         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
6823         * target.h (gcc_target): Add libcall_value to table of call hooks.
6824         * targhooks.h (default_libcall_value): Default implementation.
6825         * targhooks.c (default_libcall_value): Likewise.
6826         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
6827         * optabs.c (expand_unop): Use it.
6828         * expr.h (hard_libcall_value): Pass the function RTX through.
6829         * calls.c (emit_library_call_value_1): Update call to
6830         hard_libcall_value.
6831         * explow.c (hard_libcall_value): Use new target hook.
6832         * testsuite/lib/target-supports.exp
6833         (check_effective_target_arm_hard_vfp_ok): New hook.
6834         (check_effective_target_arm_neon_ok): Improve test for neon
6835         availability.
6836         * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
6837         * config/arm/arm.c: Include cgraph.h
6838         (TARGET_FUNCTION_VALUE): Override default hook.
6839         (arm_pcs_default): New variable.
6840         (arm_override_options): Don't fault hard calling convention with VFP.
6841         Add support for AAPCS variants.
6842         (arm_function_value): Make static.  Handle AAPCS variants.
6843         (arm_libcall_value): New function.
6844         (arm_apply_result_size): Handle VFP registers in results.
6845         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
6846         conventions.
6847         (pcs_attribute_args): New variable.
6848         (arm_pcs_from_attribute): New function.
6849         (arm_get_pcs_model): New function.
6850         (aapcs_vfp_cum_init): New function.
6851         (aapcs_vfp_sub_candidate): New function.
6852         (aapcs_vfp_is_return_candidate): New function.
6853         (aapcs_vfp_is_call_candidate): New function.
6854         (aapcs_vfp_allocate): New function.
6855         (aapcs_vfp_allocate_return_reg): New function.
6856         (aapcs_vfp_advance): New function.
6857         (aapcs_cp_arg_layout): New variable.
6858         (aapcs_select_call_coproc): New function.
6859         (aapcs_select_return_coproc): New function.
6860         (aapcs_allocate_return_reg): New function.
6861         (aapcs_libcall_value): New function.
6862         (aapcs_layout_arg): New function.
6863         (arm_init_cumulative_args): Initialize AAPCS args data.
6864         (arm_function_arg): Handle AAPCS variants using new interface.
6865         (arm_arg_parital_bytes): Likewise.
6866         (arm_function_arg_advance): New function.
6867         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
6868         calling conventions.
6869         (arm_setup_incoming_varargs): Handle new AAPCS args data.
6870         * arm.h (NUM_VFP_ARG_REGS): Define.
6871         (LIBCALL_VALUE): Update.
6872         (FUNCTION_VALUE): Delete.
6873         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
6874         (arm_pcs): New enum.
6875         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
6876         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
6877         (FUNCTION_ARG_REGNO_P): Add VFP regs.
6878         * arm-protos.h (arm_function_arg_advance): Add.
6879         (aapcs_libcall_value): Add.
6880         (arm_function_value): Delete.
6881
6882 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
6883             H.J. Lu  <hongjiu.lu@intel.com>
6884
6885         PR target/40957
6886         * config/i386/i386.c (standard_sse_mode_p): Remove.
6887         (standard_sse_constant_p): Return 2 for integer mode
6888         vector_all_ones_operand when SSE2 is enabled.
6889         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
6890         (ix86_expand_vector_move): Do not check for negative values from
6891         standard_sse_constant_p.
6892
6893 2009-08-06  Richard Guenther  <rguenther@suse.de>
6894
6895         * tree-ssa.c (useless_type_conversion_p_1): Make function and
6896         array type comparisons frontend independent.
6897         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
6898         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
6899         out array reference lower bound and element size operands.
6900         (ao_ref_init_from_vn_reference): Properly compute the offset
6901         for ARRAY_RANGE_REF.
6902         (vn_reference_fold_indirect): Fill out array reference lower
6903         bound and element size operands.
6904         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
6905         a non gimple valued reference operand which can happen for
6906         array reference lower bound or element size.
6907         (create_component_ref_by_pieces_1): Properly generate the
6908         element size operand for array references.
6909
6910 2009-08-06  Richard Guenther  <rguenther@suse.de>
6911
6912         PR tree-optimization/40964
6913         * tree.c (iterative_hash_host_wide_int): Export.
6914         * tree.h (iterative_hash_host_wide_int): Declare.
6915         * tree-ssa-structalias.c (heapvar_map): New struct.
6916         (heapvar_map_eq): New function.
6917         (heapvar_map_hash): Likewise.
6918         (heapvar_lookup): Adjust.
6919         (heapvar_insert): Likewise.
6920         (make_constraint_from_heapvar): Allow multiple heap variables
6921         per decl at different offsets.
6922         (init_alias_heapvars): Adjust.
6923
6924 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
6925
6926         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
6927         * mips_output_sync_loop (mips_output_sync_loop): Only emit
6928         trailing sync if TARGET_SYNC_AFTER_SC.
6929
6930 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
6931
6932         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
6933         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
6934         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
6935         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
6936         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
6937         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
6938         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
6939         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
6940         test_and_set_12): Rewrite calls to mips_output_sync_loop.
6941         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
6942         the prototype declaration match the definition.
6943         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
6944         instructions explicitly.  Add barrier_before and operands
6945         parameters.
6946         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
6947         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
6948         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
6949         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
6950         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
6951         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
6952
6953 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
6954
6955         * tree-ssa-alias.c: Fix intervals to use [) syntax.
6956
6957 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
6958             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
6959
6960         PR target/40906
6961         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
6962         source operand.
6963
6964 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
6965
6966         PR rtl-optimization/40924
6967         * dse.c (canon_address): Before calling cselib_expand_value_rtx
6968         make sure canon_rtx (mem_address) isn't simpler than
6969         canon_rtx (expanded_mem_address).
6970
6971 2009-08-05  Li Feng  <nemokingdom@gmail.com>
6972
6973         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
6974         for each poly_bb_p.
6975         (build_scop_drs): Build alias set for each SCoP.
6976
6977 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
6978
6979         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
6980         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
6981         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
6982         (MIPS_ARCH_FLOAT_SPEC): Likewise.
6983         (BASE_DRIVER_SELF_SPECS): Likewise.
6984
6985 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
6986
6987         * tree-ssa-alias.c: Fix some comment typos.
6988
6989 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
6990
6991         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
6992         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
6993
6994 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
6995
6996         PR c/39902
6997         * simplify-rtx.c (simplify_binary_operation_1): Disable
6998         simplifications for decimal float operations.
6999
7000 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
7001
7002         PR middle-end/40943
7003         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
7004         operand of INDIRECT_REF.
7005
7006 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
7007
7008         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
7009         constants referencing TLS symbols.
7010
7011 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7012
7013         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
7014         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
7015
7016 2009-08-03  Richard Guenther  <rguenther@suse.de>
7017
7018         * tree.c (make_vector_type): Build a main variant first,
7019         get the canonical one and then build the variant.
7020         * tree-ssa.c (useless_type_conversion_p_1): Handle
7021         fixed-point types.
7022         (useless_type_conversion_p): Conversions to pointers to
7023         incomplete record types are useless.
7024
7025 2009-08-03  Richard Guenther  <rguenther@suse.de>
7026
7027         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
7028         file will be created.
7029         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
7030         * toplev.c (compile_file): Adjust comment.
7031
7032 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
7033
7034         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
7035         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
7036         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7037         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
7038         (sh_promote_function_mode): Fix typo.
7039
7040 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
7041
7042         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
7043
7044 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7045
7046         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
7047         declaration arguments.
7048
7049 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
7050
7051         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
7052         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
7053         (ix86_split_ashl): Ditto.
7054         (ix86_expand_vector_init_one_nonzero): Ditto.
7055         (ix86_expand_vector_set): Ditto.
7056         (ix86_expand_reduc_v4sf): Ditto.
7057
7058 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
7059
7060         * explow.c (promote_function_mode): Remove assert.
7061         * config/sh/sh.c (sh_promote_function_mode): Declare.
7062
7063 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7064
7065         * config/pa/pa.c (pa_promote_function_mode): Declare.
7066         Change to static.  Fix promote_mode call.
7067
7068         * gthr-dce.h (CONST_CAST2): Define if not defined.
7069         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
7070
7071         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
7072
7073 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
7074
7075         * expr.c (store_constructor): Use promote_decl_mode.  Remove
7076         now write-only variable unsignedp.
7077         (expand_expr_real_1): Use promote_decl_mode.
7078         * expr.h (promote_function_mode, promote_decl_mode): New.
7079         (promote_mode): Remove last argument.
7080         * function.c (assign_temp): Drop last argument of promote_mode.
7081         (assign_parm_find_data_types): Use promote_function_mode.
7082         (assign_parm_setup_reg): Likewise.
7083         (expand_function_end): Use promote_function_mode.
7084         * calls.c (initialize_argument_information): Use promote_function_mode.
7085         (precompute_arguments): Use promote_mode instead of checking if
7086         only PROMOTE_FUNCTION_MODE is defined.
7087         (expand_call): When making sibcall decisions, use promote_function_mode.
7088         Below, remove an if for targetm.calls.promote_function_return and
7089         and use promote_function_mode.
7090         (emit_library_call_value_1): Use promote_function_mode, fix bug
7091         where promote_mode was passed FOR_CALL == 0 for a return value in an
7092         assertion.
7093         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
7094         * explow.c (promote_function_mode, promote_decl_mode): New.
7095         (promote_mode): Keep only the FOR_CALL == 0 case.
7096         * combine.c (setup_incoming_promotion): Remove test of
7097         promote_function_args.  Use promote_function_mode.
7098         * stmt.c (expand_value_return): Use promote_decl_mode.
7099         (expand_decl): Use promote_decl_mode.
7100
7101         * expr.c (store_constructor): Use promote_decl_mode.  Remove
7102         now write-only variable unsignedp.
7103         (expand_expr_real_1): Use promote_decl_mode.
7104         * expr.h (promote_function_mode, promote_decl_mode): New.
7105         (promote_mode): Remove last argument.
7106         * function.c (assign_temp): Drop last argument of promote_mode.
7107         (assign_parm_find_data_types): Use promote_function_mode.
7108         (assign_parm_setup_reg): Likewise.
7109         (expand_function_end): Use promote_function_mode.
7110         * calls.c (initialize_argument_information): Use promote_function_mode.
7111         (precompute_arguments): Use promote_mode instead of checking if
7112         only PROMOTE_FUNCTION_MODE is defined.
7113         (expand_call): When making sibcall decisions, use promote_function_mode.
7114         Below, remove an if for targetm.calls.promote_function_return and
7115         and use promote_function_mode.
7116         (emit_library_call_value_1): Use promote_function_mode, fix bug
7117         where promote_mode was passed FOR_CALL == 0 for a return value in an
7118         assertion.
7119         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
7120         * explow.c (promote_function_mode, promote_decl_mode): New.
7121         (promote_mode): Keep only the FOR_CALL == 0 case.
7122         * combine.c (setup_incoming_promotion): Remove test of
7123         promote_function_args.  Use promote_function_mode.
7124         * stmt.c (expand_value_return): Use promote_decl_mode.
7125         (expand_decl): Use promote_decl_mode.
7126
7127         * explow.c (promote_function_mode): Just call the target hook.
7128         * targhooks.c (default_promote_function_mode,
7129         default_promote_function_mode_always_promote): New.
7130         * targhooks.h (default_promote_function_mode,
7131         default_promote_function_mode_always_promote): Declare.
7132         * target.h (promote_function_args, promote_function_return): Remove.
7133         (promote_function_mode): New.
7134         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
7135         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7136         (TARGET_PROMOTE_FUNCTION_MODE): New.
7137         (TARGET_CALLS): Adjust.
7138         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
7139         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
7140
7141         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
7142         * config/s390/s390.c (s390_promote_function_mode): ... here,
7143         with pointer handling.
7144         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7145         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7146
7147         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
7148         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
7149         with pointer handling.
7150         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7151         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7152
7153         * config/sh/sh-protos.h (sh_promote_function_mode): New.
7154         * config/sh/sh.c (sh_promote_function_mode): New.
7155         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7156         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7157
7158         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
7159         * config/cris/cris.c (cris_promote_function_mode): ... here.
7160         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7161         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
7162
7163         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
7164         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
7165         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7166         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
7167
7168         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
7169         * config/arm/arm.c (arm_promote_function_mode): ... here, without
7170         complex type handling.
7171         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7172         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7173
7174         * config/pa/pa.c (pa_promote_function_mode): New.
7175         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7176         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7177
7178         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
7179         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
7180         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
7181         * config/xtensa/xtensa.c: Likewise.
7182         * config/stormy16/stormy16.c: Likewise.
7183         * config/iq2000/iq2000.c: Likewise.
7184         * config/rs6000/rs6000.c: Likewise.
7185         * config/picochip/picochip.c: Likewise.
7186         * config/arc/arc.c: Likewise.
7187         * config/mcore/mcore.c: Likewise.
7188         * config/score/score.c: Likewise.
7189         * config/mips/mips.c: Likewise.
7190         * config/bfin/bfin.c: Likewise.
7191         * config/ia64/ia64.c: Likewise (disabled though).
7192
7193         * config/frv/frv.h: Remove pointless remark.
7194
7195         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
7196         TARGET_PROMOTE_FUNCTION_ARGS,
7197         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
7198         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
7199
7200 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
7201
7202         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
7203         -floop-parallelize-all.
7204         * toplev.c (process_options): Rename flag_graphite_force_parallel to
7205         flag_loop_parallelize_all.
7206         * tree-ssa-loop.c (gate_graphite_transforms): Same.
7207         * graphite.c (graphite_transform_loops): Same.
7208         * common.opt: Same.
7209         * graphite-poly.c (apply_poly_transforms): Same.
7210
7211 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
7212
7213         PR tree-optimization/40914
7214         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
7215         if set, then check the delta field of the PMF record.
7216         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
7217         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
7218         call is stored in the delta.
7219
7220 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
7221
7222         * config/mips/mips.md (*clear_upper32_dext): New pattern.
7223
7224 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
7225
7226         * config/i386/bsd.h (ASM_BYTE): New define.
7227         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
7228         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
7229         .byte.  Use fputs or putc instead of fprintf where appropriate.
7230         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
7231         fputs or putc instead of fprintf where appropriate.
7232         * config/i386/i386elf.h: Ditto.
7233         * config/i386/sysv4.h: Ditto.
7234
7235         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
7236         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
7237         (*tls_global_dynamic_64): Ditto.
7238
7239 2009-07-31  Christian Bruel  <christian.bruel@st.com>
7240
7241         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
7242
7243 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7244
7245         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
7246         Remove dead code for MINUS.
7247
7248 2009-07-31  Anthony Green  <green@moxielogic.com>
7249
7250         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
7251         $r12 in prologue.
7252         (moxie_expand_epilogue): Ditto for epilogue.
7253         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
7254         incoming arguments.
7255         (moxie_function_arg): Ditto.
7256         (moxie_pass_by_reference): Ditto.
7257         (moxie_arg_partial_bytes): Ditto.
7258         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
7259         (FUNCTION_ARG_ADVANCE) Ditto.
7260         (REG_PARM_STACK_SPACE) Ditto.
7261         (FUNCTION_ARG_REGNO_P) Dito.
7262
7263         * config.gcc: Add moxie linux config support.
7264         * gcc/config/moxie/uclinux.h: New file.
7265
7266 2009-07-31  DJ Delorie  <dj@redhat.com>
7267
7268         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
7269         (UNSPECV_SP_SWITCH_E): New.
7270         (sp_switch_1): Change to an unspec.
7271         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
7272         replace $r15.
7273         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
7274         reference the new stack's address
7275
7276 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7277
7278         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
7279         graphite-clast-to-gimple.o, graphite-dependences.o,
7280         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
7281         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
7282         (graphite-blocking.o,
7283         graphite-clast-to-gimple.o, graphite-dependences.o,
7284         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
7285         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
7286         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
7287         * cfgloop.h (struct loop): Add can_be_parallel field.
7288         * common.opt (fgraphite-identity): Moved up.
7289         (fgraphite-force-parallel): New flag.
7290         * graphite.c: Rewrite.
7291         * graphite.h: Rewrite.
7292         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
7293         after Graphite.
7294         * toplev.c (graphite_out_file): New file descriptor.
7295         (graphite_in_file): New.
7296         (process_options): flag_graphite_force_parallel cannot be used without
7297         Graphite.
7298         * tree-ssa-loop.c: Include toplev.h.
7299         (gate_graphite_transforms): Enable flag_graphite for
7300         flag_graphite_force_parallel.
7301
7302 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7303
7304         * ChangeLog.graphite: New.
7305         * graphite-blocking.c: New.
7306         * graphite-clast-to-gimple.c: New.
7307         * graphite-clast-to-gimple.h: New.
7308         * graphite-dependences.c: New.
7309         * graphite-dependences.h: New.
7310         * graphite-interchange.c: New.
7311         * graphite-poly.c: New.
7312         * graphite-poly.h: New.
7313         * graphite-ppl.c: New.
7314         * graphite-ppl.h: New.
7315         * graphite-scop-detection.c: New.
7316         * graphite-scop-detection.h: New.
7317         * graphite-sese-to-poly.c: New.
7318         * graphite-sese-to-poly.h: New.
7319         * sese.c: New.
7320         * sese.h: New.
7321
7322 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7323
7324         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
7325         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
7326
7327 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7328
7329         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
7330         (scev_is_linear_expression): Return false if the evolution is not
7331         affine multivariate.
7332
7333 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7334
7335         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
7336         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
7337
7338 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7339
7340         * tree-data-ref.c (debug_data_references): New.
7341         (debug_data_reference): New.
7342         * tree-data-ref.h (debug_data_references): Declared.
7343         (debug_data_reference): Declared.
7344
7345 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7346
7347         * tree-data-ref.c (stmt_simple_memref_p: Removed.
7348         * tree-data-ref.h (scop_p): Removed.
7349         (struct data_reference): Remove field scop.
7350         (DR_SCOP): Removed.
7351         (stmt_simple_memref_p): Removed.
7352
7353 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7354
7355         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
7356         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
7357         basic block empty.
7358
7359 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7360
7361         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
7362
7363 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7364
7365         * doc/invoke.texi (-fgraphite-identity): Documented.
7366
7367 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7368
7369         * tree-scalar-evolution.c: Fix comment.
7370         (instantiate_scev_1): Return unknow from scev instantiation if the
7371         result is not above instantiate_below.
7372
7373 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
7374
7375         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
7376         static anymore.  Instantiate the symbols that may have been introduced
7377         by chrec_apply.
7378         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
7379         Declared.
7380
7381 2009-07-30  DJ Delorie  <dj@redhat.com>
7382
7383         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
7384         .vliw directive to VLIW sections.
7385
7386 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7387
7388         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
7389         New variables.
7390         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
7391         (AUTOHEADER): New variable.
7392         ($(srcdir)/cstamp-h.in): Use it.
7393
7394 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
7395             Pat Haugen  <pthaugen@us.ibm.com>
7396             Revital Eres <ERES@il.ibm.com>
7397
7398         * config/rs6000/vector.md (VEC_F): Add VSX support.
7399         (VEC_A): Ditto.
7400         (VEC_N): Ditto.
7401         (mov<mode>): Ditto.
7402         (vector_load_<mode>): Ditto.
7403         (vector_store_<mode>): Ditto.
7404         (vector GPR move split): Ditto.
7405         (vec_reload_and_plus_<mptrsize>): Ditto.
7406         (vec_reload_and_reg_<mptrsize>): Ditto.
7407         (add<mode>3): Ditto.
7408         (sub<mode>3): Ditto.
7409         (mul<mode>3): Ditto.
7410         (neg<mode>2): Ditto.
7411         (abs<mode>2): Ditto.
7412         (smin<mode>3): Ditto.
7413         (smax<mode>3): Ditto.
7414         (vector_eq<mode>): Ditto.
7415         (vector_gt<mode>): Ditto.
7416         (vector_ge<mode>): Ditto.
7417         (vector_gtu<mode>): Ditto.
7418         (vector_select_<mode>_uns): Ditto.
7419         (vector_eq_<mode>_p): Ditto.
7420         (vector_gt_<mode>_p): Ditto.
7421         (vector_ge_<mode>_p): Ditto.
7422         (vector_gtu_<mode>_p): Ditto.
7423         (cr6_test_for_zero): Ditto.
7424         (cr6_test_for_zero_reverse): Ditto.
7425         (cr6_test_for_lt): Ditto.
7426         (cr6_test_for_lt_reverse): Ditto.
7427         (xor<mode>3): Ditto.
7428         (ior<mode>3): Ditto.
7429         (and<mode>3): Ditto.
7430         (one_cmpl<mode>2): Ditto.
7431         (nor<mode>2): Ditto.
7432         (andc<mode>2): Ditto.
7433         (float<VEC_int<mode>2): Ditto.
7434         (unsigned_float<VEC_int><mode>2): Ditto.
7435         (fix_trunc<mode><VEC_int>2): Ditto.
7436         (fixuns_trunc<mode><VEC_int>2): Ditto.
7437         (vec_init<mode>):
7438         (vec_set<mode>): Ditto.
7439         (vec_extract<mode>): Ditto.
7440         (vec_interleave_highv4sf): Ditto.
7441         (vec_interleave_lowv4sf): Ditto.
7442         (vec_realign_load_<mode>): Ditto.
7443         (vec_shl_<mode>): Ditto.
7444         (vec_shr_<mode>): Ditto.
7445         (div<mode>3): New patterns for VSX.
7446         (vec_interleave_highv2df): Ditto.
7447         (vec_interleave_lowv2df): Ditto.
7448         (vec_pack_trunc_v2df): Ditto.
7449         (vec_pack_sfix_trunc_v2df): Ditto.
7450         (vec_pack_ufix_trunc_v2df): Ditto.
7451         (vec_unpacks_hi_v4sf): Ditto.
7452         (vec_unpacks_lo_v4sf): Ditto.
7453         (vec_unpacks_float_hi_v4si): Ditto.
7454         (vec_unpacks_float_lo_v4si): Ditto.
7455         (vec_unpacku_float_hi_v4si): Ditto.
7456         (vec_unpacku_float_lo_v4si): Ditto.
7457         (movmisalign<mode>): Ditto.
7458         (vector_ceil<mode>2): New patterns for vectorizing math library.
7459         (vector_floor<mode>2): Ditto.
7460         (vector_btrunc<mode>2): Ditto.
7461         (vector_copysign<mode>3): Ditto.
7462
7463         * config/rs6000/predicates.md (easy_vector_constant_msb): New
7464         predicate for setting the high bit in each word, used for copysign.
7465
7466         * config/rs6000/ppc-asm.h (f19): Whitespace.
7467         (f32-f63): Define if VSX.
7468         (v0-v31): Define if Altivec.
7469         (vs0-vs63): Define if VSX.
7470
7471         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
7472
7473         * config/rs6000/power7.md: New file, provide tuning parameters for
7474         -mcpu=power7.
7475
7476         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
7477         (rs6000_cpu_cpp_builtins): Ditto.
7478         (altivec_overloaded_builtins): Ditto.
7479         (altivec_resolve_overloaded_builtin): Ditto.
7480
7481         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
7482         debug switch to disable vectorizing simple math builtin
7483         functions.
7484
7485         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
7486         Vectorize simple math builtin functions.
7487         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
7488         hook to vectorize math builtins.
7489         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
7490         (rs6000_builtin_conversion): Add VSX/power7 support.
7491         (rs6000_builtin_vec_perm): Ditto.
7492         (vsplits_constant): Add support for loading up a vector constant
7493         with just the high bit set in each part.
7494         (rs6000_expand_vector_init): Add VSX/power7 support.
7495         (rs6000_expand_vector_set): Ditto.
7496         (rs6000_expand_vector_extract): Ditto.
7497         (rs6000_emit_move): Ditto.
7498         (bdesc_3arg): Ditto.
7499         (bdesc_2arg): Ditto.
7500         (bdesc_1arg): Ditto.
7501         (rs6000_expand_ternop_builtin): Ditto.
7502         (altivec_expand_builtin): Ditto.
7503         (rs6000_expand_unop_builtin): Ditto.
7504         (rs6000_init_builtins): Ditto.
7505         (altivec_init_builtins): Ditto.
7506         (builtin_function_type): Ditto.
7507         (rs6000_common_init_builtins): Ditto.
7508         (rs6000_handle_altivec_attribute); Ditto.
7509         (rs6000_mangle_type): Ditto.
7510         (rs6000_vector_mode_supported_p): Ditto.
7511         (rs6000_mode_dependent_address): Altivec addresses with AND -16
7512         are mode dependent.
7513
7514         * config/rs6000/vsx.md: New file for VSX support.
7515
7516         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
7517         identifing values with just the most significant bit set.
7518         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
7519         vectorized builtins.
7520
7521         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
7522         (UNSPEC_VRFIM): Delete.
7523         (splitter for loading up vector with most significant bit): New
7524         splitter for vectorizing copysign.
7525         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
7526         vectorizing simple math functions.
7527         (altivec_vrfip): Add support for vectorizing simple math functions.
7528         (altivec_vrfim): Ditto.
7529         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
7530
7531         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
7532         (power7.md, vsx.md): Include for power7 support.
7533         (copysigndf3): Use VSX instructions if -mvsx.
7534         (negdf2_fpr): Ditto.
7535         (absdf2_fpr): Ditto.
7536         (nabsdf2_fpr): Ditto.
7537         (adddf3_fpr): Ditto.
7538         (subdf3_fpr): Ditto.
7539         (muldf3_fpr): Ditto.
7540         (divdf3_fpr): Ditto.
7541         (fix_truncdfdi2_fpr): Ditto.
7542         (cmpdf_internal1): Ditto.
7543         (fred, fred_fpr): Convert into expander/insn to add VSX support.
7544         (btruncdf2, btruncdf2_fpr): Ditto.
7545         (ceildf2, ceildf2_fpr): Ditto.
7546         (floordf2, floordf2_fpr): Ditto.
7547         (floatdidf2, floatdidf2_fpr): Ditto.
7548         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
7549         (fmsubdf4_fpr): Ditto.
7550         (fnmadddf4_fpr_1): Ditto.
7551         (fnmadddf4_fpr_2): Ditto.
7552         (fnmsubdf4_fpr_1): Ditto.
7553         (fnmsubdf4_fpr_2): Ditto.
7554         (fixuns_truncdfdi2): Add expander for VSX support.
7555         (fix_truncdfdi2): Ditto.
7556         (fix_truncdfsi2): Ditto.
7557         (ftruncdf2): Ditto.
7558         (btruncsf2): Whitespace.
7559         (movdf_hardfloat32): Add support for VSX registers.
7560         (movdf_softfloat32): Ditto.
7561         (movdf_hardfloat64): Ditto.
7562         (movdf_hardfloat64_mfpgpr): Ditto.
7563         (movdf_softfloat64): Ditto.
7564         (movti splitters): Add check for vector registers supporting
7565         TImode in the future.
7566         (bpermd): Add power7 bpermd instruction.
7567
7568         * config/rs6000/altivec.h (vec_div): Define if VSX.
7569         (vec_mul): Ditto.
7570         (vec_msub): Ditto.
7571         (vec_nmadd): Ditto.
7572         (vec_nearbyint): Ditto.
7573         (vec_rint): Ditto.
7574         (vec_sqrt): Ditto.
7575         (all predicates): Use the generic builtin function, and not the V4SF
7576         specific function so that the predicates will work with VSX's V2DF.
7577         (vec_all_*): Ditto.
7578         (vec_any_*): Ditto.
7579
7580         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
7581         Document new VSX functions and types.
7582
7583         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
7584         switches.
7585
7586         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
7587         "wa", and "j" constraints.  Modify "v" to talk about Altivec
7588         instead of just vector.
7589
7590 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
7591
7592         PR debug/26475
7593         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
7594         location for phi arguments.
7595         (rewrite_update_phi_arguments): Find locations for reaching defs.
7596         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
7597         Add location to add_phi_arg calls.
7598         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
7599         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
7600         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
7601         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
7602         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
7603         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
7604         * tree-phinodes.c (make_phi_node): Initialize location.
7605         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
7606         (add_phi_arg): Add location parameter.
7607         (remove_phi_arg_num): Move location when moving phi argument.
7608         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
7609         location.
7610         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
7611         slpeel_update_phi_nodes_for_guard1,
7612         slpeel_update_phi_nodes_for_guard2,
7613         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
7614         vect_loop_versioning): Set locations.
7615         * tree-parloops.c (create_phi_for_local_result,
7616         transform_to_exit_first_loop, create_parallel_loop): Add locations.
7617         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
7618         * tree-vect-loop.c (get_initial_def_for_induction,
7619         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
7620         locations.
7621         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
7622         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
7623         (gimple_phi_arg_set_location): New.  Set locus.
7624         (gimple_phi_arg_has_location): New.  Check for locus.
7625         (redirect_edge_var_map_location): New.  Return locus from var_map.
7626         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
7627         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
7628         combining PHI arguments.
7629         (cond_store_replacement): Set location.
7630         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
7631         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
7632         scop_add_exit_phis_edge): Add locations.
7633         * tree-cfgcleanup.c (remove_forwarder_block,
7634         remove_forwarder_block_with_phi): Add locations.
7635         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
7636         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
7637         locations.
7638         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
7639         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
7640         flush_pending_stmts): Add source location.
7641         * lambda-code.c (perfect_nestify): Maintain location stack with argument
7642         stack to preserve locations.
7643         * tree-vect-stmts.c (vectorizable_load): Add location.
7644         * tree-inline.c (copy_phis_for_bb): Copy locus.
7645         (setup_one_parameter): Add call locus to inlined parameter stmts.
7646         (initialize_inlined_parameters): Pass in call location as parameter
7647         assignment locus.
7648         (tree_function_versioning): Pass location to setup_one_parameter.
7649         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
7650         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
7651         copy and edge lists.
7652         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
7653         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
7654         locus parameter and override the stmt default if provided.
7655         (new_elim_graph, clear_elim_graph, delete_elim_graph,
7656         elim_graph_add_edge, elim_graph_remove_succ_edge,
7657         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
7658         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
7659         eliminate_phi):  Add locus info in elimination graph for each edge and
7660         value copy.
7661         (insert_backedge_copies): Copy locus if present.
7662         * tree-flow.h (struct _edge_var_map): Add locus field.
7663         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
7664         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
7665         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
7666         locations.
7667         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
7668
7669 2009-07-30  Martin Jambor  <mjambor@suse.cz>
7670
7671         PR tree-optimization/40570
7672         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
7673         use inlining loops.
7674
7675 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
7676
7677         * ssa-loop-manip.c: Include langhooks.h.
7678         (rewrite_phi_with_iv): New.
7679         (rewrite_all_phi_nodes_with_iv): New.
7680         (canonicalize_loop_ivs): Move here from tree-parloops.c.
7681         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
7682         * tree-parloops.c (loop_parallel_p): Move out all conditions
7683         except dependency check.
7684         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
7685         (gen_parallel_loop): Call canonicalize_loop_ivs without
7686         reduction_list argument.
7687         (build_new_reduction): New.
7688         (gather_scalar_reductions): New.
7689         (try_get_loop_niter): New.
7690         (try_create_reduction_list): New.
7691         (parallleize_loops): Change the parallel conditions check.
7692         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
7693         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
7694
7695 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
7696
7697         * opt-functions.awk (opt_args): Allow argument to be enclosed in
7698         curly braces.
7699         * doc/options.texi (Option properties):  Mention new quoting syntax.
7700
7701 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
7702
7703         * config/alpha/alpha.c (alpha_start_function):
7704         Handle VMS_DEBUG_MAIN_POINTER
7705         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
7706         * doc/invoke.texi: Document -mdebug-main switch.
7707
7708 2009-07-29  Richard Henderson  <rth@redhat.com>
7709
7710         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
7711         (cgraph_create_edge_including_clones): Likewise.
7712         * tree-inline.c (copy_bb): Operate on the correct edges
7713         when updating the callgraph.
7714
7715 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
7716
7717         * config/alpha/vms-cc.c: Deleted.
7718         * config/alpha/vms-ld.c: Deleted.
7719         * config/alpha/t-vms64: Moved to config/vms
7720         * config/alpha/vms-crt0-64.c: Moved to config/vms
7721         * config/alpha/vms-crt0.c: Moved to config/vms
7722         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
7723         * config/alpha/vms-psxcrt0.c: Moved to config/vms
7724         * config/alpha/xm-vms.h: Moved to config/vms
7725         * config/alpha/x-vms: Moved to config/vms
7726         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
7727         config/vms/t-vms.
7728         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
7729         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
7730         (version): Set.
7731         * config/vms/t-vms64: Moved here from config/alpha
7732         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
7733         (argc,argv,envp): Enforce 32bit malloc'ing.
7734         * config/vms/vms-psxcrt0-64.c: Likewise.
7735         * config/vms/vms-crt0.c: Moved here from config/alpha.
7736         * config/vms/vms-psxcrt0.c: Likewise.
7737         * config/vms/vms-crtl-64.h: New file.
7738         * config/vms/vms-crtl.h: New file.
7739         * config/vms/vms.opt: New file.
7740         * config/vms/xm-vms64.h: New file.
7741         * config/vms/xm-vms.h: Moved here from config/alpha.
7742         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
7743         Set.
7744         * config/vms/x-vms: Moved here from config/alpha.
7745         (version, VMS_EXTRA_PARTS): Moved to t-vms.
7746         (vms-ld.o, vms-cc.o): Removed.
7747         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
7748
7749 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
7750
7751         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
7752         correct stack (obvious VMS fix).
7753
7754 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
7755
7756         * dwarf2out.c (output_file_names): Output VMS style file name, size,
7757         date, version info if VMS_DEBUGGING_INFO defined.
7758         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
7759         size, date calculating code moved here.
7760
7761 2009-07-29  Paul Brook  <paul@codesourcery.com>
7762
7763         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
7764         do_push/do_pop.
7765
7766 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
7767
7768         PR target/40577
7769         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
7770         to DImode when generating insq_le insn.
7771
7772 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
7773
7774         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
7775         New macro set for VMS_DEBUGGGING_INFO.
7776         (AT_string_form): Use it.
7777
7778 2009-07-28  DJ Delorie  <dj@redhat.com>
7779
7780         * config/mep/mep.c (vtext_section): New.
7781         (vftext_section): New.
7782         (ftext_section): New.
7783         (mep_select_section): Add support for functions.
7784         (mep_unique_section): Likewise.
7785         (mep_asm_init_sections): Likewise.
7786         (mep_encode_section_info): Remove it from here.
7787
7788         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
7789
7790 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
7791
7792         * tree.h (TREE_DEPRECATED): Document it is used for types too.
7793         (TYPE_VECTOR_OPAQUE): Use default_def_flag
7794
7795 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
7796
7797         * dwarf2out.c (output_file_names): Test new macro
7798         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
7799         (add_comp_dir_attribute): Likewise.
7800
7801 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
7802
7803         * config/i386/mingw-w64.h (LINK_SPEC): Add
7804         separating space between commands.
7805
7806 2009-07-28  Jan Hubicka  <jh@suse.cz>
7807
7808         PR tree-optimization/40759
7809         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
7810         for renaming.
7811
7812 2009-07-27  DJ Delorie  <dj@redhat.com>
7813
7814         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
7815         types are dword-aligned.
7816         (mep_expand_va_start): Likewise.
7817
7818 2009-07-27  Olivier Hainque  <hainque@adacore.com>
7819             Douglas B Rupp  <rupp@gnat.com>
7820
7821         * convert.c (convert_to_pointer): Don't assume the target
7822         pointer type is POINTER_SIZE long. Fetch its precision instead.
7823
7824 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
7825
7826         * system.h (fopen): Undefine if macro.
7827
7828 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
7829
7830         * dwarf2out.c (output_cfi_p): Removed.
7831         (output_cfis): New function.
7832         (output_fde): New function, split from output_call_frame_info.
7833         (output_call_frame_info): Use it.
7834         (dwarf2out_switch_text_section): Use output_cfis.
7835
7836 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
7837
7838         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
7839         TARGET_BI_ARCH is specified without enabling SJLJ.
7840         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
7841         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
7842
7843 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
7844
7845         * arm.md (negdi2): Use DImode if forcing a value into a register.
7846
7847 2009-07-26  Ira Rosen  <irar@il.ibm.com>
7848
7849         PR tree-optimization/40801
7850         * tree-vect-stmts.c (vectorizable_call): Get previous copy
7851         of vector operand from the previous copy of vector statement.
7852         Pass the correct definition type value to
7853         vect_get_vec_def_for_stmt_copy().
7854
7855 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7856
7857         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
7858         const char ** conversion.
7859
7860 2009-07-25 David Daney <ddaney@caviumnetworks.com>
7861
7862         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
7863         fancy_abort() if !ENABLE_ASSERT_CHECKING.
7864         (gcc_unreachable): Invoke __builtin_unreachable() if
7865         !ENABLE_ASSERT_CHECKING.
7866
7867 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
7868
7869         PR rtl-optimization/40445
7870         * emit-rtl.c (next_nonnote_insn_bb): New function.
7871         * rtl.h (next_nonnote_insn_bb): Declare new function.
7872         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
7873         with no successors that is the successor of the ENTRY_BLOCK.
7874         Continue from the top after removing an empty fallthrough block.
7875         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
7876         of next_nonnote_insn.
7877
7878 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
7879
7880         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
7881
7882 2009-07-25  Martin Jambor  <mjambor@suse.cz>
7883
7884         * c-common.c (c_common_attribute_table): New element for noclone.
7885         (handle_noclone_attribute): New function. Forward-declare.
7886         * tree-inline.c (tree_versionable_function_p): Check for noclone
7887         attribute.
7888         * doc/extend.texi (Labels as Values): Document need for noclone.
7889         (Function Attributes): Document noclone attribute.
7890
7891 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
7892
7893         PR rtl-optimization/34999
7894         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
7895         and dw_fde_switched_cold_to_hot fields.
7896         (output_cfi_p): New function.
7897         (output_call_frame_info): If fde->dw_fde_switched_sections,
7898         output 2 FDEs instead of one with corrupted header.
7899         (dwarf2out_do_cfi_startproc): New function.
7900         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
7901         and fde->dw_fde_switched_cold_to_hot.
7902         (dwarf2out_switch_text_section): Compute
7903         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
7904         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
7905         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
7906         Otherwise, compute fde->dw_fde_switch_cfi.
7907
7908 2009-07-24  Cary Coutant  <ccoutant@google.com>
7909
7910         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
7911
7912 2009-07-24  Cary Coutant  <ccoutant@google.com>
7913
7914         * cfghooks.c (split_block): Copy discriminator to new block.
7915         * tree-cfg.c (assign_discriminator): Check location of last
7916         instruction in block as well as first.
7917
7918 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
7919
7920         * config/i386/linux.c: Use fputs or putc instead of fprintf
7921         where appropriate.
7922         * config/i386/gas.h: Ditto.
7923         * config/i386/x86-64.h: Ditto.
7924         * config/i386/att.h: Ditto.
7925
7926 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7927
7928         * expmed.c (emit_store_flag): Use a recursive call to optimize the
7929         xor case.
7930
7931 2009-07-24  Martin Jambor  <mjambor@suse.cz>
7932
7933         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
7934         (ipa_push_func_to_list_1): Declare.
7935         (ipa_push_func_to_list): New function.
7936
7937         * ipa-prop.c (ipa_push_func_to_list_1): New function.
7938         (ipa_init_func_list): Call ipa_push_func_to_list_1.
7939         (ipa_push_func_to_list): Removed.
7940         (ipa_pop_func_from_list): Clear node_enqueued flag.
7941
7942 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
7943
7944         * config/s390/s390.c (override_options): Default
7945         max-unrolled-insns to 100 for z10 tuning.
7946
7947 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
7948
7949         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
7950         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
7951         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
7952         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
7953         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
7954         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
7955         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
7956
7957 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
7958
7959         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
7960         use default set in mingw32.h header.
7961         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
7962         64-bit /mingw/include path.
7963         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
7964         path.
7965
7966 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
7967
7968         PR rtl-optimization/40209
7969         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
7970
7971 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
7972
7973         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
7974         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
7975         with the rest of string where appropriate.  Use fputs or putc
7976         instead of fprintf where appropriate.
7977
7978 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
7979             Pat Haugen  <pthaugen@us.ibm.com>
7980             Revital Eres <ERES@il.ibm.com>
7981
7982         * config/rs6000/vector.md: New file.  Move most of the vector
7983         expander support here from altivec.md to allow for the VSX vector
7984         unit in the future.  Add support for secondary_reload patterns.
7985         Rewrite the patterns for vector comparison, and vector comparison
7986         predicate instructions so that the RTL expresses the desired
7987         behavior, instead of using unspec.
7988
7989         * config/rs6000/constraints.md ("f" constraint): Use
7990         rs6000_constraints to hold the precalculated register class.
7991         ("d" constraint): Ditto.
7992         ("wd" constraint): New constraint for VSX.
7993         ("wf" constraint): Ditto.
7994         ("ws" constraint): Ditto.
7995         ("wa" constraint): Ditto.
7996         ("wZ" constraint): Ditto.
7997         ("j" constraint): Ditto.
7998
7999         * config/rs6000/predicates.md (vsx_register_operand): New
8000         predicate for VSX.
8001         (vfloat_operand): New predicate for vector.md.
8002         (vint_operand): Ditto.
8003         (vlogical_operand): Ditto.
8004         (easy_fp_constant): If VSX, 0.0 is an easy constant.
8005         (easy_vector_constant): Add VSX support.
8006         (altivec_indexed_or_indirect_operand): New predicate for
8007         recognizing Altivec style memory references with AND -16.
8008
8009         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
8010         for vector secondary reload support.
8011         (rs6000_vector_reg_class): Delete, replacing it with
8012         rs6000_constraints.
8013         (rs6000_vsx_reg_class): Ditto.
8014         (rs6000_constraints): New array to hold the register classes of
8015         each of the register constraints that can vary at runtime.
8016         (builtin_mode_to_type): New static array for builtin function type
8017         creation.
8018         (builtin_hash_table): New static hash table for builtin function
8019         type creation.
8020         (TARGET_SECONDARY_RELOAD): Define target hook.
8021         (TARGET_IRA_COVER_CLASSES): Ditto.
8022         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
8023         registers are 128 bits if VSX memory reference instructions are used.
8024         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
8025         unit is being used.
8026         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
8027         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
8028         Print several of the scheduling related parameters.
8029         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
8030         rs6000_constraints instead of rs6000_vector_reg_class.  Move
8031         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
8032         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
8033         Altivec.  Add VSX support.  Setup for secondary reload support on
8034         Altivec/VSX registers.
8035         (rs6000_override_options): Make power7 set the scheduling groups
8036         like the power5.  Add support for new debug switches to override
8037         the scheduling defaults.  Temporarily disable -mcpu=power7 from
8038         setting -mvsx.  Add support for debug switches -malways-hint,
8039         -msched-groups, and -malign-branch-targets.
8040         (rs6000_buitlin_conversion): Add support for returning unsigned
8041         vector conversion functions to fix regressions due to stricter
8042         type checking.
8043         (rs6000_builtin_mul_widen_even): Ditto.
8044         (rs6000_builtin_mul_widen_odd): Ditto.
8045         (rs6000_builtin_vec_perm): Ditto.
8046         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
8047         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
8048         to zero a register.
8049         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
8050         generated upstream.
8051         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
8052         VSX types for bit operations.  Changes to accomidate vector.md.
8053         (bdesc_2arg): Ditto.
8054         (bdesc_1arg): Ditto.
8055         (struct builtin_description_predicates): Rewrite predicate
8056         handling so that RTL describes the operation, instead of passing
8057         the instruction to be used as a string argument.
8058         (bdesc_altivec_preds): Ditto.
8059         (altivec_expand_predicate_builtin): Ditto.
8060         (altivec_expand_builtin): Ditto.
8061         (rs6000_expand_ternop_builtin): Use a switch instead of an if
8062         statement for vsldoi support.
8063         (altivec_expand_ld_builtin): Change to use new names from vector.md.
8064         (altivec_expand_st_builtin): Ditto.
8065         (paired_expand_builtin): Whitespace changes.
8066         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
8067         builtin_mode_to_type table for secondary reload.  Call
8068         builtin_function_type to build random builtin functions.
8069         (altivec_init_builtins): Change to use builtin_function_type to
8070         create builtin function types dynamically as we need them.
8071         (builtin_hash_function): New support for hashing the tree types
8072         for builtin function as we need it, rather than trying to build
8073         all of the trees that we need.  Add initial preliminary VSX support.
8074         (builtin_function_type): Ditto.
8075         (builtin_function_eq): Ditto.
8076         (builtin_hash_struct): Ditto.
8077         (rs6000_init_builtins): Ditto.
8078         (rs6000_common_init_builtins): Ditto.
8079         (altivec_init_builtins): Ditto.
8080         (rs6000_common_init_builtins): Ditto.
8081         (enum reload_reg_type): New enum for simplifing reg classes.
8082         (rs6000_reload_register_type): Simplify register classes into GPR,
8083         Vector, and other registers.  Altivec and VSX addresses in reload.
8084         (rs6000_secondary_reload_inner): Ditto.
8085         (rs6000_ira_cover_classes): New target hook, that returns the
8086         appropriate cover classes, based on -mvsx being used or not.
8087         (rs6000_secondary_reload_class): Add VSX support.
8088         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
8089         (get_vsel_insn): Ditto.
8090         (rs6000_emit_vector_compare): Rewrite vector conditional support
8091         so that where we can, we use RTL operators, instead of blindly use
8092         UNSPEC.
8093         (rs6000_emit_vector_select): Ditto.
8094         (rs6000_emit_vector_cond_expr): Ditto.
8095         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
8096         (create_TOC_reference): Add -mdebug=addr support.
8097         (emit_frame_save): VSX loads/stores need register indexed addressing.
8098
8099         * config/rs6000/rs6000.md: Include vector.md.
8100
8101         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
8102
8103         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8104         support for V2DI, V2DF in logical, permute, select operations.
8105
8106         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
8107         switch for vsx/power7.
8108         (-mvsx-scalar-memory): Ditto.
8109         (-mvsx-align-128): Ditto.
8110         (-mallow-movmisalign): Ditto.
8111         (-mallow-df-permute): Ditto.
8112         (-msched-groups): Ditto.
8113         (-malways-hint): Ditto.
8114         (-malign-branch-targets): Ditto.
8115
8116         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
8117         hook instead.
8118         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
8119         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
8120         (rs6000_vector_reg_class): Delete.
8121         (rs6000_vsx_reg_class): Ditto.
8122         (enum rs6000_reg_class_enum): New enum for the constraints that
8123         vary based on target switches.
8124         (rs6000_constraints): New array to hold the register class for all
8125         of the register constraints that vary based on the switches used.
8126         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
8127         (enum rs6000_builtins): Add unsigned varients for the builtin
8128         declarations returned by target hooks for expanding multiplies,
8129         select, and permute operations.  Add VSX builtins.
8130         (enum rs6000_builtin_type_index): Add entries for VSX.
8131         (V2DI_type_node): Ditto.
8132         (V2DF_type_node): Ditto.
8133         (unsigned_V2DI_type_node): Ditto.
8134         (bool_long_type_node): Ditto.
8135         (intDI_type_internal_node): Ditto.
8136         (uintDI_type_internal_node): Ditto.
8137         (double_type_internal_node): Ditto.
8138
8139         * config/rs6000/altivec.md (whole file): Move all expanders to
8140         vector.md from altivec.md.  Rename insn matching functions to be
8141         altivec_foo.
8142         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
8143         (altivec_vcmp*): Ditto.
8144         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
8145         (VM): New iterator for moves that includes the VSX types.
8146         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
8147         (altivec_vperm_<mode>_uns): New, for unsigned types.
8148         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
8149         (altivec_eq<mode>): Ditto.
8150         (altivec_gt<mode>): Ditto.
8151         (altivec_gtu<mode>): Ditto.
8152         (altivec_eqv4sf): Ditto.
8153         (altivec_gev4sf): Ditto.
8154         (altivec_gtv4sf): Ditto.
8155         (altivec_vcmpbfp_p): Ditto.
8156
8157 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
8158
8159         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
8160         unsigned HWI.
8161
8162 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
8163
8164         PR target/40832
8165         * config/i386/i386.c (output_387_ffreep): Rewrite to use
8166         ASM_SHORT instead of .word.
8167         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
8168         instead of .word in asm template.
8169
8170 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
8171
8172         PR target/37488
8173         * ira-lives.c (bb_has_abnormal_call_pred): New function.
8174         (process_bb_node_lives): Use it.
8175
8176         * ira.c (setup_cover_and_important_classes): Don't setup
8177         ira_important_class_nums.  Add cover classes to the end of
8178         important classes.
8179         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
8180         New.
8181         (find_reg_class_closure): Use reorder_important_classes.
8182
8183         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
8184
8185         * config/i386/i386.c (i386_ira_cover_classes): New function.
8186         (TARGET_IRA_COVER_CLASSES): Redefine.
8187
8188         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
8189         importance of order of cover classes in the array.
8190
8191 2009-07-22  Diego Novillo  <dnovillo@google.com>
8192
8193         * tree-pass.h (TDF_EH): Define.
8194         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
8195         contains TDF_EH, print the EH region number holding GS.
8196         * tree-dump.c (dump_options): Add "eh".
8197         * doc/invoke.texi: Document it.
8198
8199 2009-07-22  Doug Kwan  <dougkwan@google.com>
8200
8201         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
8202
8203 2009-07-22  Michael Matz  <matz@suse.de>
8204
8205         PR tree-optimization/35229
8206         PR tree-optimization/39300
8207
8208         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
8209         (inhibit_phi_insertion): New function.
8210         (insert_into_preds_of_block): Call it for REFERENCEs.
8211         (init_pre): Initialize and finalize scalar evolutions.
8212         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
8213
8214 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
8215
8216         * config/i386/predicates.md (zero_extended_scalar_load_operand):
8217         Use CONST_VECTOR_NUNITS to determine number of elements.
8218
8219 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
8220
8221         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
8222         (U, W): Constraints are now deprecated and will be removed if we
8223         run out of letters.
8224         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
8225         the file.
8226         ("prefetch"): Add the stcmh instruction for prefetching.
8227         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
8228         changes.
8229         (s390_short_displacement): Return always true if compiling for
8230         machines not providing the long displacement facility.
8231         (s390_mem_constraint): Support the new constraint letter Z.
8232         (s390_check_qrst_address): New function.
8233
8234 2009-07-21  DJ Delorie  <dj@redhat.com>
8235
8236         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
8237         alone too.
8238
8239 2009-07-21  Jason Merrill  <jason@redhat.com>
8240
8241         * c-common.c (max_tinst_depth): Increase default to 1024.
8242
8243 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
8244
8245         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
8246         (vec_unpacku_float_lo_v4si): Ditto.
8247
8248 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
8249
8250         PR target/40811
8251         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
8252         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
8253         (builtin_description): Add __builtin_ia32_cvtudq2ps.
8254         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
8255
8256 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
8257
8258         PR tree-optimization/40813
8259         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
8260         it.
8261
8262 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
8263
8264         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
8265         with a NOP_EXPR if needed.
8266
8267 2009-07-21  Paul Brook <paul@codesourcery.com>
8268
8269         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
8270         Terminate debug dump with newline.
8271
8272 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8273
8274         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
8275         Cast "1" to unsigned HOST_WIDE_INT.
8276         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
8277         deposit length to the maximum length - lsb.  Extend length if
8278         HOST_BITS_PER_WIDE_INT is 32.
8279
8280 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
8281
8282         * cgraph.h (constant_pool_htab): New function.
8283         (constant_descriptor_tree): Move from varasm.c.
8284         * varasm.c (constant_pool_htab): New function.
8285         (constant_descriptor_tree): Move to cgraph.h.
8286
8287 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
8288
8289         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
8290
8291 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
8292
8293         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
8294         $(VARRAY_H).
8295
8296 2009-07-20  Xinliang David Li  <davidxl@google.com>
8297
8298         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
8299
8300 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
8301
8302         * config/mips/mips.md (move_type): Add arith.
8303         (type): Handle arith.
8304         (zero_extendsidi2): Rename this into ...
8305         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
8306         (zero_extendsidi2): New expander.
8307         (*zero_extendsidi2_dext): New pattern.
8308
8309 2009-07-20  Nick Clifton  <nickc@redhat.com>
8310
8311         * config.gcc (mips64-*-*): Add definition of tm_defines in order
8312         to set MIPS_ABI_DEFAULT.
8313         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
8314
8315 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
8316
8317         * tree-object-size.c (addr_object_size): Handle unions with
8318         array in it as last field of structs in __bos (, 1) as __bos (, 0).
8319
8320         PR tree-optimization/40792
8321         * tree.c (build_function_type_skip_args): Remove bogus assert.
8322
8323 2009-07-20  Jan Hubicka  <jh@suse.cz>
8324             Martin Jambor  <mjambor@suse.cz>
8325
8326         * cgraph.h (combined_args_to_skip): New field.
8327         * cgraph.c (cgraph_create_virtual_clone): Properly handle
8328         combined_args_to_skip and args_to_skip.
8329         * tree-inline.c (update_clone_info): New function.
8330         (tree_function_versioning): Call update_clone_info.
8331         * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
8332         functions.
8333         (cgraph_materialize_all_clones): More extensive dumping, working
8334         with combined_args_to_skip rather than args_to_skip.
8335
8336 2009-07-20  Ira Rosen  <irar@il.ibm.com>
8337
8338         * tree-vectorizer.h (vectorizable_condition): Add parameters.
8339         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
8340         (get_initial_def_for_reduction): Likewise.
8341         (vectorizable_reduction): Skip the check of first operand in case
8342         of COND_EXPR. Add check that it is outer loop vectorization if
8343         nested cycle was detected. Call vectorizable_condition() for
8344         COND_EXPR. If reduction epilogue cannot be created do not fail for
8345         nested cycles (if it is not double reduction). Assert that there
8346         is only one type in the loop in case of COND_EXPR. Call
8347         vectorizable_condition() to vectorize COND_EXPR.
8348         * tree-vect-stmts.c (vectorizable_condition): Update comment.
8349         Add parameters. Allow nested cycles if called from
8350         vectorizable_reduction(). Use reduction vector variable if provided.
8351         (vect_analyze_stmt): Call vectorizable_reduction() before
8352         vectorizable_condition().
8353         (vect_transform_stmt): Update call to vectorizable_condition().
8354
8355 2009-07-20  Christian Bruel  <christian.bruel@st.com>
8356
8357         * config/sh/sh.opt (-mfmovd): Resurrect and document.
8358         * doc/invoke.texi (-mfmovd): Likewise.
8359         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
8360
8361 2009-07-20  Jan Hubicka  <jh@suse.cz>
8362
8363         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
8364         when handling SSA name.
8365
8366 2009-07-19  Jan Hubicka  <jh@suse.cz>
8367
8368         PR tree-optimization/40676
8369         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
8370         virtual PHIs in empty BBs.
8371
8372 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
8373
8374         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
8375         re-expanded the compound use gen_lowpart instead to convert to the
8376         desired mode.
8377
8378 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
8379
8380         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
8381         OUTER_CONST arguments.
8382         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
8383         the new wider mode will be masked off.
8384         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
8385
8386 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
8387
8388         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
8389         high-order bits are zero.
8390
8391 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
8392
8393         * combine.c (simplify_shift_const_1): Split code to determine
8394         shift_mode into ...
8395         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
8396         new bits shifted in are identical to the old sign bit.
8397
8398 2009-07-18  Richard Guenther  <rguenther@suse.de>
8399
8400         PR c/40787
8401         * gimplify.c (gimplify_call_expr): Reject code using results from
8402         functions returning void.
8403
8404 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
8405
8406         * doc/md.texi: Document the new PowerPC "es" constraint.
8407         Document that "m" can include automodified addresses on this target,
8408         and explain how %U must be used.  Extend the "Q" and "Z" documentation
8409         to suggest "es" as well as "m".
8410         * config/rs6000/constraints.md (es): New memory constraint.
8411         (Q, Z): Update strings to match new documentation.
8412
8413 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
8414
8415         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
8416         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
8417         * config/rs6000/predicates.md (volatile_mem_operand): Use
8418         offsettable_nonstrict_memref_p.
8419         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
8420         (*floatunssidf2_internal): Likewise.
8421         (*fix_truncdfsi2_internal): Likewise.
8422         (*fix_trunctfsi2_internal): Likewise.
8423
8424 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
8425
8426         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
8427         atmega32u2 devices.
8428         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
8429
8430 2009-07-17  Richard Guenther  <rguenther@suse.de>
8431
8432         PR c/40401
8433         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
8434         (pass_warn_unused_result): Likewise.
8435         (TODO_set_props): Remove.
8436         * omp-low.c (diagnose_omp_structured_block_errors): Change to
8437         run as a pass.
8438         (pass_diagnose_omp_blocks): Define.
8439         * c-decl.c (pop_file_scope): Do not finalize the CU here.
8440         (c_gimple_diagnostics_recursively): Remove.
8441         (finish_function): Do not call it.
8442         (c_write_global_declarations): Continue after errors.
8443         Finalize the CU here.
8444         * c-gimplify.c (c_genericize): Do not gimplify here.
8445         * c-common.c (c_warn_unused_result): Move ...
8446         * tree-cfg.c (do_warn_unused_result): ... here.
8447         (run_warn_unused_result): New function.
8448         (gate_warn_unused_result): New function.
8449         (pass_warn_unused_result): New pass.
8450         * c-common.h (c_warn_unused_result): Remove.
8451         * flags.h (flag_warn_unused_result): Declare.
8452         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
8453         * opts.c (flag_warn_unused_result): Initialize to false.
8454         * toplev.c (compile_file): Add comment.
8455         * omp-low.c (create_omp_child_function): Do not register
8456         the function with the frontend.
8457         (diagnose_omp_structured_block_errors): Prepare to be
8458         called as optimization pass.
8459         (gate_diagnose_omp_blocks): New function.
8460         (pass_diagnose_omp_blocks): New pass.
8461         * cgraph.h (cgraph_optimize): Remove.
8462         (cgraph_analyze_function): Likewise.
8463         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
8464         * cgraphunit.c (cgraph_lower_function): Lower nested functions
8465         before their parents here.
8466         (cgraph_finalize_function): Not here.
8467         (cgraph_analyze_function): Gimplify functions here.
8468         (cgraph_finalize_compilation_unit): Continue after errors.
8469         Optimize the callgraph from here.
8470         (cgraph_optimize): Make static.
8471         * langhooks.c (write_global_declarations): Finalize the CU.
8472         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
8473         (gimplify_function_tree): Assert we gimplify only once.
8474         Set PROP_gimple_any property.
8475         * tree-nested.c (gimplify_all_functions): New function.
8476         (lower_nested_functions): Gimplify all nested functions.
8477         * gimple.h (diagnose_omp_structured_block_errors): Remove.
8478         * passes.c (init_optimization_passes): Add pass_warn_unused_result
8479         and pass_diagnose_omp_blocks after gimplification.  Do not
8480         set TODO_set_props on all_lowering_passes.
8481         (execute_one_pass): Do not handle TODO_set_props.
8482         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
8483         (gimplify.o): Add tree-pass.h dependency.
8484         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
8485         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
8486         (unsave_r): Likewise.
8487         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
8488         temporary variable.
8489
8490 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
8491
8492         * doc/service.texi (Service): Restore previously removed link,
8493         which isn't broken after all.
8494
8495 2009-07-17  Richard Guenther  <rguenther@suse.de>
8496
8497         PR tree-optimization/40321
8498         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
8499         PHI nodes to the maximal set.
8500         (make_values_for_phi): Add PHI arguments to the maximal set.
8501         (execute_pre): Dump PHI_GEN and the maximal set.
8502
8503 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
8504
8505         PR c++/40780
8506         * gimplify.c (gimplify_conversion): Don't change non-conversions into
8507         VIEW_CONVERT_EXPR.
8508
8509 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
8510
8511         * doc/extend.texi (Nested Functions): Replace broken link with
8512         textual reference.
8513         * doc/service.texi (Service): Remove broken link.
8514
8515 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
8516
8517         PR bootstrap/40781
8518         * builtins.c (expand_builtin_memcmp): Use loc instead of
8519         EXPR_LOCATION (exp).
8520         (expand_builtin_strncmp): Likewise.
8521
8522 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
8523             Manuel López-Ibáñez  <manu@gcc.gnu.org>
8524
8525         PR 40435
8526         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
8527         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
8528         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
8529         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
8530         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
8531         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
8532         tree-inline.c, c-common.c, c-common.h, gimple.c,
8533         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
8534         convert.c: Add location argument to fold_{unary,binary,ternary},
8535         fold_build[123], build_call_expr, build_size_arg,
8536         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
8537         fold_build1_initializer, fold_build2_initializer,
8538         fold_build3_initializer, fold_build_call_array,
8539         fold_build_call_array_initializer, fold_single_bit_test,
8540         omit_one_operand, omit_two_operands, invert_truthvalue,
8541         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
8542         combine_comparisons, fold_builtin_*, fold_call_expr,
8543         build_range_check, maybe_fold_offset_to_address, round_up,
8544         round_down.
8545
8546 2009-07-16  Jason Merrill  <jason@redhat.com>
8547
8548         PR libstdc++/37907
8549         * c-common.c (c_common_reswords): Add __is_standard_layout
8550         and __is_trivial.
8551         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
8552         * doc/implement-cxx.texi: New.
8553         * doc/gcc.texi: Include it.
8554
8555 2009-07-16  DJ Delorie  <dj@redhat.com>
8556
8557         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
8558         compares that may be indirectly affected by previous instructions.
8559
8560 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8561
8562         * builtins.c (do_mpc_arg2): New.
8563         (fold_builtin_2): Fold builtin cpow.
8564         * real.h (HAVE_mpc_pow): New.
8565
8566 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
8567
8568         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
8569         comparison to skip unprofitable schedule
8570
8571 2009-07-16  Simon Baldwin  <simonb@google.com>
8572
8573         * gcc.c (option_map): New flag -no-canonical-prefixes.
8574         * (display_help): Print help text for new flag.
8575         * (process_command): Move options translation and language specifics
8576         and handle new flag early.  Use it to set a function pointer to a
8577         prefix builder.  Replace make_relative_prefix calls with calls to
8578         the function pointed to.  Ignore new flag in regular options handling.
8579         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
8580
8581 2009-07-15  DJ Delorie  <dj@redhat.com>
8582
8583         * config/mep/mep.md (sibcall_internal): Change register to avoid
8584         argument registers.
8585         (sibcall_value_internal): Likewise.
8586
8587 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
8588
8589         PR rtl-optimization/40710
8590         * resource.c (mark_target_live_regs): Reset DF problem to LR.
8591
8592 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
8593
8594         * config/mips/mips.md (*extenddi_truncate<mode>,
8595         *extendsi_truncate<mode>): Change type attribute to move_type
8596         with shift_shift.  Split out code handling exts from here ...
8597         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
8598         pattern.
8599         (*extendhi_truncateqi): Change type attribute to move_type with
8600         shift_shift.  Split out code handling exts from here ...
8601         (*extendhi_truncateqi_exts): ... to this new pattern.
8602
8603 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
8604
8605         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
8606         instead of "and" with inverted sign bit mask value.  Use
8607         "nonimmediate_operand" for operand 1 and operand 2 predicate.
8608         Allocate registers only for operand 4 and operand 5.
8609
8610 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
8611
8612         PR middle-end/40747
8613         * fold-const.c (fold_cond_expr_with_comparison): When folding
8614         < and <= to MIN, make sure the MIN uses the same type as the
8615         comparison's operands.
8616
8617 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
8618
8619         * arm.md (ior_xor): New code iterator.
8620         (split for ior/xor with shift and zero-extend): New split pattern.
8621         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
8622
8623 2009-07-15  Richard Guenther  <rguenther@suse.de>
8624
8625         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
8626         offset member.
8627
8628 2009-07-15  Richard Guenther  <rguenther@suse.de>
8629
8630         PR middle-end/40753
8631         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
8632
8633 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
8634
8635         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
8636         handle 2.6.30 kernel.
8637
8638 2009-07-15  DJ Delorie  <dj@redhat.com>
8639
8640         * config/mep/mep.md (sibcall_internal): Change register to allow
8641         for 24-bit addresses.
8642         (sibcall_value_internal): Likewise.
8643
8644 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
8645
8646         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
8647         that are enabled/disabled by the flags introduced by a previous patch.
8648
8649 2009-07-14  DJ Delorie  <dj@redhat.com>
8650
8651         * config/mep/mep.md (sibcall_internal): Include non-toggling
8652         non-jmp case.
8653         (sibcall_value_internal): Likewise.
8654
8655 2009-07-14  Taras Glek  <tglek@mozilla.com>
8656             Rafael Espindola  <espindola@google.com>
8657
8658         * doc/sourcebuild.texi: Document install-plugin target.
8659         * configure.ac: Added install-plugin target to language makefiles.
8660         * configure: Regenerate.
8661         * Makefile.in: (install-plugin): Install more headers,
8662         depend on lang.install-plugin.
8663
8664 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8665
8666         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
8667         translation.
8668
8669 2009-07-14  DJ Delorie  <dj@redhat.com>
8670
8671         * config/mep/mep.c (mep_vliw_jmp_match): New function.
8672         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
8673         * config/mep/mep.md (sibcall_internal): Change test from
8674         mep_vliw_mode_match to mep_vliw_jmp_match.
8675         (sibcall_value_internal): Likewise.
8676
8677 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
8678
8679         * config/i386/sse.md (copysign<mode>3): New expander.
8680         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
8681         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
8682         Use ix86_build_const_vector.
8683         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
8684         IX86_BUILTIN_CPYSGNPD.
8685         (builtin_description): Add __builtin_ia32_copysignps and
8686         __builtin_ia32_copysignpd.
8687         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
8688         and BUILT_IN_COPYSIGNF.
8689
8690 2009-07-13  Jason Merrill  <jason@redhat.com>
8691
8692         * builtins.c (can_trust_pointer_alignment): New fn.
8693         (get_pointer_alignment): Factor it out from here.
8694         * tree.h: Declare it.
8695
8696 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
8697
8698         * config/rs6000/predicates.md (offsettable_mem_operand): Test
8699         RTX_AUTOINC class.
8700
8701 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
8702
8703         PR debug/40705
8704         PR c++/403057
8705         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
8706
8707 2009-07-14  Richard Guenther  <rguenther@suse.de>
8708             Andrey Belevantsev <abel@ispras.ru>
8709
8710         PR middle-end/40745
8711         * cfgexpand.c (partition_stack_vars): Do not bother to update
8712         alias information when not optimizing.
8713
8714 2009-07-14  Richard Guenther  <rguenther@suse.de>
8715             Andrey Belevantsev <abel@ispras.ru>
8716
8717         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
8718         (pt_solution_set): Likewise.
8719         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
8720         * tree-ssa-structalias.c (pt_solution_set): New function.
8721         * final.c (rest_of_clean_state): Free SSA data structures.
8722         * print-rtl.c (print_decl_name): Remove.
8723         (print_mem_expr): Implement in terms of print_generic_expr.
8724         * alias.c (ao_ref_from_mem): New function.
8725         (rtx_refs_may_alias_p): Likewise.
8726         (true_dependence): Query alias-export info.
8727         (canon_true_dependence): Likewise.
8728         (write_dependence_p): Likewise.
8729         * tree-dfa.c (get_ref_base_and_extent): For void types leave
8730         size unknown.
8731         * emit-rtl.c (component_ref_for_mem_expr): Remove.
8732         (mem_expr_equal_p): Use operand_equal_p.
8733         (set_mem_attributes_minus_bitpos): Do not use
8734         component_ref_for_mem_expr.
8735         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
8736         (update_alias_info_with_stack_vars): Likewise.
8737         (partition_stack_vars): Call update_alias_info_with_stack_vars.
8738         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
8739         explicitly nor clear stmt operands.
8740         Free the decl-to-pointer map.
8741         * tree-optimize.c (execute_free_datastructures): Do not free
8742         SSA data structures here.
8743         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
8744         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
8745         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
8746         dependencies.
8747         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
8748
8749 2009-07-13  DJ Delorie  <dj@redhat.com>
8750
8751         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
8752         unrolling at the right iteration count.
8753
8754         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
8755         calculations.
8756
8757 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
8758
8759         * haifa-sched.c (rank_for_schedule): Introduced flags to
8760         enable/disable individual scheduling heuristics.
8761         * common.opt: Introduced flags to enable/disable individual
8762         heuristics in the scheduler.
8763         * doc/invoke.texi: Introduced flags to enable/disable individual
8764         heuristics in the scheduler.
8765
8766 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
8767
8768         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
8769         config/i386/mingw-tls.c.
8770         * config/i386/mingw-tls.c: Removed.
8771
8772 2009-07-13  Ira Rosen  <irar@il.ibm.com>
8773
8774         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
8775         checks access only relevant statements.
8776         (vectorizable_reduction): Likewise.
8777
8778 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
8779
8780         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
8781         just for 32-bit case.
8782
8783 2009-07-12  Jan Hubicka  <jh@suse.cz>
8784
8785         PR tree-optimization/40585
8786         * except.c (expand_resx_expr): When there already is resume
8787         instruction, produce linked list.
8788         (build_post_landing_pads): Assert that resume is empty.
8789         (connect_post_landing_pads): Handle resume lists.
8790         (dump_eh_tree): Dump resume list.
8791
8792 2009-07-12  Ira Rosen  <irar@il.ibm.com>
8793
8794         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
8795         with additional argument.
8796         * tree-vectorizer.h (enum vect_def_type): Add
8797         vect_double_reduction_def.
8798         (vect_is_simple_reduction): Add argument.
8799         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
8800         indentation.
8801         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
8802         vect_is_simple_reduction with additional argument.
8803         (vect_analyze_loop_operations): Handle exit phi nodes in case of
8804         double reduction.
8805         (reduction_code_for_scalar_code): Handle additional codes by
8806         returning ERROR_MARK for them. Fix comment and indentation.
8807         (vect_is_simple_reduction): Fix comment, add argument to specify
8808         double reduction. Detect double reduction.
8809         (get_initial_def_for_induction): Fix indentation.
8810         (get_initial_def_for_reduction): Fix comment and indentation.
8811         Handle double reduction. Create initial definitions that do not
8812         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
8813         (vect_create_epilog_for_reduction): Fix comment, add argument to
8814         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
8815         epilogue result extraction. Create double reduction phi node and
8816         replace relevant uses.
8817         (vectorizable_reduction): Call vect_is_simple_reduction with
8818         additional argument. Fix indentation. Update epilogue code treatment
8819         according to the changes in reduction_code_for_scalar_code. Check
8820         for double reduction. Call vect_create_epilog_for_reduction with
8821         additional argument.
8822         * tree-vect-stmts.c (process_use): Handle double reduction, update
8823         documentation.
8824         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
8825         (vect_get_vec_def_for_operand): Likewise.
8826
8827 2009-07-12  Danny Smith  <dansmister@gmail.com>
8828
8829         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
8830         dllexport if !TREE_PUBLIC.
8831         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
8832
8833 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
8834
8835         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
8836         (avr_extra_arch_macro) Remove declatation.
8837         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
8838         (avr_extra_arch_macro) Declare as static.
8839         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
8840
8841 2009-07-11  Jan Hubicka  <jh@suse.cz>
8842
8843         PR middle-end/48388
8844         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
8845
8846 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
8847
8848         PR debug/40713
8849         * dwarf2out.c (dw_fde_struct): Add in_std_section and
8850         cold_in_std_section bits.
8851         (dwarf2out_begin_prologue): Initialize them.
8852         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
8853         if already covered by text_section or cold_text_section range.
8854
8855         PR rtl-optimization/40667
8856         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
8857         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
8858         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
8859         * config/i386/i386.c (ix86_minimum_alignment): New function.
8860         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
8861         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
8862         * emit-rtl.c (gen_reg_rtx): Likewise.
8863         * function.c (assign_parms): Likewise.  If nominal_type needs
8864         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
8865         rather than passed_type's alignment.
8866
8867         PR target/40668
8868         * function.c (assign_parm_setup_stack): Adjust
8869         MEM_OFFSET (data->stack_parm) if promoted_mode is different
8870         from nominal_mode on big endian.
8871
8872 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
8873
8874         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
8875
8876 2009-07-10  DJ Delorie  <dj@redhat.com>
8877
8878         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
8879
8880 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
8881
8882         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
8883         attribute.
8884         (thumb2_cbnz): Likewise.
8885
8886 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
8887
8888         PR target/39079
8889         * config.gcc (supported_defaults): Add synci.
8890         (with_synci): Add validation.
8891         (all_defaults): Add synci.
8892         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
8893         ISA_HAS_SYNCI.
8894         (synci): Same.
8895         * config/mips/mips.opt (msynci): New option.
8896         * config/mips/mips.c (mips_override_options): Warn on use of
8897         -msynci for targets that do now support it.
8898         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
8899         msynci.
8900         * gcc/doc/invoke.texi (-msynci): Document the new option.
8901         * doc/install.texi (--with-synci): Document the new option.
8902
8903 2009-07-10  Richard Guenther  <rguenther@suse.de>
8904
8905         PR tree-optimization/40496
8906         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
8907         the PHI result with a compatible type.
8908
8909 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8910
8911         PR 25509
8912         PR 40614
8913         * c.opt (Wunused-result): New.
8914         * doc/invoke.texi: Document it.
8915         * c-common.c (c_warn_unused_result): Use it.
8916
8917 2009-07-09  DJ Delorie  <dj@redhat.com>
8918
8919         * targhooks.c (default_target_can_inline_p): Rename from
8920         default_target_option_can_inline_p.
8921         * targhooks.h (default_target_can_inline_p): Likewise.
8922         * target-def.h (TARGET_CAN_INLINE_P): Rename from
8923         TARGET_OPTION_CAN_INLINE_P.
8924         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
8925         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
8926         (mep_target_can_inline_p): Rename from
8927         mep_target_option_can_inline_p.
8928
8929         PR target/40626
8930         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
8931         registers used to pass vectors.
8932
8933         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
8934
8935 2009-07-09  Tom Tromey  <tromey@redhat.com>
8936
8937         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
8938         * config/mmix/mmix.c: Include dwarf2.h.
8939         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
8940         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
8941         * config/sh/sh.c: Include dwarf2.h.
8942         * config/i386/i386.c: Include dwarf2.h.
8943         * Makefile.in (DWARF2_H): Remove 'elf'.
8944         * except.c: Include dwarf2.h.
8945         * unwind-dw2.c: Include dwarf2.h.
8946         * dwarf2out.c: Include dwarf2.h.
8947         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
8948         * unwind-dw2-fde.c: Include dwarf2.h.
8949         * dwarf2asm.c: Include dwarf2.h.
8950
8951 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
8952
8953         * haifa-sched.c (insn_finishes_cycle_p): New static function.
8954         (max_issue): Use it.
8955         * sched-int.h (struct sched_info: insn_finishes_block_p): New
8956         scheduler hook.
8957         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
8958         (region_sched_info): Update.
8959         * sched-ebb.c (ebb_sched_info): Update.
8960         * modulo-sched.c (sms_sched_info): Update.
8961         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
8962
8963 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
8964
8965         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
8966
8967 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
8968
8969         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
8970
8971 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
8972
8973         PR middle-end/40692
8974         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
8975         arg1 with arg01 if arg1 is already INTEGER_CST.
8976
8977 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
8978
8979         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
8980         Transform (and (truncate)) into (truncate (and)).
8981
8982 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
8983
8984         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
8985         creating LHS paradoxical subregs.  Fix surrounding returns to
8986         use NULL_RTX rather than 0.
8987
8988 2009-07-08  DJ Delorie  <dj@redhat.com>
8989
8990         * config/mep/mep.c: (mep_option_can_inline_p): New.
8991         (TARGET_OPTION_CAN_INLINE_P): Define.
8992
8993 2009-07-08  Mark Wielaard  <mjw@redhat.com>
8994
8995         PR debug/40659
8996         * dwarf2out.c (add_data_member_location_attribute): When we have
8997         only a constant offset don't emit a new location description using
8998         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
8999         dwarf_version > 2.
9000
9001 2009-07-08  Richard Henderson  <rth@redhat.com>
9002
9003         PR target/38900
9004         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
9005         (enum reg_class): Add CLOBBERED_REGS.
9006         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
9007         * config/i386/i386.c (ix86_conditional_register_usage): Moved
9008         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
9009         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
9010         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
9011         force 64-bit sibcalls into R11.
9012         * config/i386/constraints.md (U): New constraint.
9013         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
9014         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
9015         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
9016
9017 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
9018
9019         * basic-block.h (dump_regset, debug_regset): Remove duplicate
9020         prototypes.
9021         * c-objc-common.h (c_initialize_diagnostics): Ditto.
9022         * ebitmap.h (dump_ebitmap): Ditto.
9023         * optabs.h (optab_libfunc): Ditto.
9024         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
9025         * tree-flow.h (vect_can_force_dr_alignment_p,
9026         get_vectype_for_scalar_type): Ditto.
9027         (vectorize_loops): Move prototype to ...
9028         * tree-vectorizer.h: ... here. Also, adjust comment.
9029         (vect_set_verbosity_level): Remove duplicate prototype.
9030         * tree-ssa-loop.c: Include tree-vectorizer.h.
9031         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
9032
9033 2009-07-08  Nick Clifton  <nickc@redhat.com>
9034
9035         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
9036         forward slash.
9037
9038 2009-07-08  DJ Delorie  <dj@redhat.com>
9039
9040         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
9041         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
9042         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
9043         written to.
9044         * config/mep/intrinsics.md: Regenerated.
9045         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
9046         registers when asm() or calls are detected.
9047
9048 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9049
9050         PR c++/31246
9051         * gimplify.c (gimplify_expr): Propagate no_warning flag when
9052         gimplifying.
9053         * gimple (gimple_build_call_from_tree): Likewise.
9054         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
9055         no_warning flag before warning.
9056
9057 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9058
9059         * tree.c (set_expr_locus): Remove.
9060         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
9061         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
9062         EXPR_LOCATION.
9063         * gimplify.c (internal_get_tmp_var): Likewise.
9064         (gimplify_call_expr): Likewise.
9065         (gimplify_one_sizepos): Likewise.
9066
9067 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
9068
9069         PR debug/40666
9070         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
9071         to variables for debugging purposes.
9072
9073 2009-06-23  Mark Loeser  <mark@halcy0n.com>
9074
9075         PR build/40010
9076         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
9077
9078 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9079
9080         * pretty-print.c (pp_base_format): Remove %J.
9081         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
9082         gcc_cxxdiag_char_table): Likewise.
9083         (init_dynamic_diag_info): Likewise.
9084
9085 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9086
9087         * pretty-print.c (pp_base_format): Remove %H.
9088         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
9089         gcc_cxxdiag_char_table): Likewise.
9090         (init_dynamic_diag_info): Likewise.
9091         * config/mep/mep.c (mep_select_section): Likewise.
9092
9093 2009-07-07  Duncan Sands  <baldrick@free.fr>
9094
9095         * final.c (pass_clean_state): Give the pass a name.
9096         * passes.c (pass_rest_of_compilation): Likewise.
9097         * tree-optimize.c (pass_all_optimizations): Likewise.
9098
9099 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
9100
9101         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
9102         an extra 'decl' for error_at.
9103
9104 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
9105
9106         PR middle-end/40669
9107         * tree-tailcall.c (adjust_return_value_with_ops,
9108         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
9109         if it has complex or vector type.
9110
9111 2009-07-07  Olivier Hainque  <hainque@adacore.com>
9112
9113         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
9114         pthread symbols.
9115
9116 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
9117
9118         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
9119
9120 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9121
9122         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
9123         * c-decl.c: Likewise.
9124         * function.c: Likewise.
9125         * varasm.c: Likewise.
9126         * tree-ssa.c: Likewise.
9127         * c-common.c: Likewise.
9128         * tree-cfg.c: Likewise.
9129         * config/spu/spu.c: Likewise.
9130         * config/ia64/ia64.c: Likewise.
9131         * config/v850/v850.c: Likewise.
9132
9133 2009-07-06  DJ Delorie  <dj@redhat.com>
9134
9135         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
9136         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
9137         unspecified accesses to control registers.
9138         * config/mep/intrinsics.md: Regenerate.
9139         * config/mep/intrinsics.h: Regenerate.
9140         * config/mep/mep-intrin.h: Regenerate.
9141
9142 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9143
9144         * c-lex.c: Replace %H by an explicit location. Update all calls.
9145         * c-common.c: Likewise.
9146         * c-decl.c: Likewise.
9147         * c-typeck.c: Likewise.
9148         * fold-const.c: Likewise.
9149         * gimplify.c: Likewise.
9150         * stmt.c: Likewise.
9151         * tree-cfg.c: Likewise.
9152         * tree-ssa-loop-niter.c: Likewise.
9153         * tree-vrp.c: Likewise.
9154         * value-prof.c: Likewise.
9155
9156 2009-07-06  Diego Novillo  <dnovillo@google.com>
9157
9158         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
9159         if it has one.  Handle cases where VAR does not have an
9160         annotation or cfun is NULL.
9161
9162 2009-07-06  Diego Novillo  <dnovillo@google.com>
9163
9164         * tree.c: Include debug.h.
9165         (initialize_tree_contains_struct): New.
9166         (init_ttree): Call it.
9167         (tree_node_structure_for_code): Factor out of ...
9168         (tree_node_structure): ... here.
9169         * treestruct.def (TS_PHI_NODE): Remove.
9170         (TS_GIMPLE_STATEMENT): Remove.
9171
9172 2009-07-06  Diego Novillo  <dnovillo@google.com>
9173
9174         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
9175         (debug_tree_chain): Handle cycles.
9176
9177 2009-07-06  Nick Clifton  <nickc@redhat.com>
9178             DJ Delorie  <dj@redhat.com>
9179
9180         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
9181         __FMOVD_ENABLED__ is defined.
9182         * config/sh/sh.h
9183         (TARGET_FMOVD): Provide a default definition.
9184         (MASK_FMOVD): Likewise.
9185         (TARGET_CPU_CPP_BUILTINS): Define
9186         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
9187         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
9188         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
9189         (split for DF load from memory into register): Also handle
9190         MEMs which consist of REG+DISP addressing.
9191         (split for DF store from register to memory): Likewise.
9192         (movsf_ie): Always use single fp_mode.
9193         * config/sh/sh.c (sh_override_options): Do not automatically
9194         enable TARGET_MOVD for the SH2A when supporting doubles - leave
9195         that to the -mfmovd command line switch.
9196         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
9197         (fldi_ok): Always allow.
9198         * config/sh/sh.opt (mfmovd): Remove this switch.
9199         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
9200
9201 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
9202             Kaz Kojima  <kkojima@gcc.gnu.org>
9203
9204         PR rtl-optimization/30807
9205         * postreload.c (reload_combine): For every new use of REG_SUM,
9206         record the use of BASE.
9207
9208 2009-07-06  Jan Hubicka  <jh@suse.cz>
9209
9210         * params.def: Revert my accidental commit at 2009-06-30.
9211
9212 2009-07-04  Ian Lance Taylor  <iant@google.com>
9213
9214         PR target/40636
9215         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
9216         EXPORTED_CONST.
9217         (mingw_format_attribute_overrides): Likewise.
9218
9219 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
9220
9221         PR debug/40596
9222         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
9223         don't check cfa.reg.  Instead of cfa.indirect use
9224         fde && fde->drap_reg != INVALID_REGNUM test.
9225
9226 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
9227
9228         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
9229
9230 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
9231
9232         PR target/40587
9233         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
9234
9235 2009-07-03  Richard Guenther  <rguenther@suse.de>
9236
9237         PR tree-optimization/40640
9238         * tree-switch-conversion.c (build_arrays): Perform arithmetic
9239         in original type.
9240
9241 2009-07-03  Jan Hubicka  <jh@suse.cz>
9242
9243         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
9244         for size, reduce amount of inlining.
9245
9246 2009-07-03  Richard Guenther  <rguenther@suse.de>
9247
9248         PR middle-end/34163
9249         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
9250         if t +- x is known to not overflow and the conversion widens the
9251         operation.
9252         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
9253
9254 2009-07-03  Jan Hubicka  <jh@suse.cz>
9255
9256         * ipa-pure-const.c (analyze): Update loop optimizer init.
9257         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
9258         try_remove_empty_loop, remove_empty_loops): Remove.
9259         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
9260         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
9261         to mark regular loops as neccesary.
9262         (degenerate_phi_p): New function.
9263         (propagate_necessity, remove_dead_phis): Use it.
9264         (forward_edge_to_pdom): Likewise.
9265         (eliminate_unnecessary_stmts): Take care to remove uses of results of
9266         virtual PHI nodes that became unreachable.
9267         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
9268         * tree-flow.h (remove_empty_loops): Remove.
9269         * passes.c (init_optimization_passes): Remove.
9270
9271 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
9272
9273         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
9274         can_create_pseudo_p.
9275         (*fix_trunc<mode>_i387_1): Ditto.
9276         (*floathi<mode>2_1): Ditto.
9277         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
9278         (*fistdi2_1): Ditto.
9279         (*fist<mode>2_1): Ditto.
9280         (frndintxf2_floor): Ditto.
9281         (*fist<mode>2_floor_1): Ditto.
9282         (frndintxf2_ceil): Ditto.
9283         (*fist<mode>2_ceil_1): Ditto.
9284         (frndintxf2_trunc): Ditto.
9285         (frndintxf2_mask_pm): Ditto.
9286         (fxam<mode>2_i387_with_temp): Ditto.
9287         * config/i386/sse.md (mulv16qi3): Ditto.
9288         (*sse2_mulv4si3): Ditto.
9289         (mulv2di3): Ditto.
9290         (sse4_2_pcmpestr): Ditto.
9291         (sse4_2_pcmpistr): Ditto.
9292
9293 2009-07-03  Jan Hubicka  <jh@suse.cz>
9294
9295         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
9296         (mark_stmt_necessary): Set it.
9297         (mark_operand_necessary): Set it.
9298         (mark_control_dependent_edges_necessary): Set it.
9299         (mark_virtual_phi_result_for_renaming): New function.
9300         (get_live_post_dom): New function.
9301         (forward_edge_to_pdom): New function.
9302         (remove_dead_stmt): Fix handling of control dependences.
9303         (tree_dce_init): Init new bitmap.
9304         (tree_dce_done): Free it.
9305
9306 2009-07-02  Richard Guenther  <rguenther@suse.de>
9307
9308         PR bootstrap/40617
9309         * tree-ssa-structalias.c (new_var_info): Initialize
9310         is_restrict_var.
9311
9312 2009-07-02  Jan Hubicka  <jh@suse.cz>
9313
9314         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
9315         local.
9316
9317 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
9318
9319         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
9320         instead of recomputing it.  Adjust calls.
9321         (emit_store_flag): Adjust recursive calls.
9322
9323 2009-07-02  Richard Guenther  <rguenther@suse.de>
9324
9325         * tree-ssa-live.c (remove_unused_locals): Do not remove
9326         heap variables.
9327         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
9328         of DECL_EXTERNAL for HEAP variables.
9329         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
9330         HEAP variables.  Do not adjust RESTRICT vars.
9331         (find_what_var_points_to): Nobody cares if something
9332         points to READONLY.
9333
9334 2009-07-02  Ben Elliston  <bje@au.ibm.com>
9335
9336         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
9337         pc_low and pc_high declarations to the top of the function.
9338
9339 2009-07-01  DJ Delorie  <dj@redhat.com>
9340
9341         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
9342         registers as fixed.
9343         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
9344         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
9345         unspecified accesses to control registers.
9346         * config/mep/intrinsics.md: Regenerate.
9347         * config/mep/intrinsics.h: Regenerate.
9348         * config/mep/mep-intrin.h: Regenerate.
9349
9350 2009-07-01  Anthony Green  <green@moxielogic.com>
9351
9352         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
9353         instruction when possible.
9354         (moxie_expand_prologue): Ditto.  Also, save an instruction and
9355         some complexity by popping off of $r12 instead of $sp.
9356         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
9357         operands.
9358
9359 2009-07-01  Richard Henderson  <rth@redhat.com>
9360
9361         PR bootstrap/40347
9362         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
9363         contained no insns, reposition note before last insn.
9364
9365 2009-07-01  Richard Henderson  <rth@redhat.com>
9366
9367         PR debug/40431
9368         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
9369         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
9370
9371 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
9372
9373         PR bootstrap/40558
9374         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
9375         darwin9 for printing reg addresses with %y.
9376
9377 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
9378
9379         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
9380         truncation from operands in binary operations.
9381
9382 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
9383
9384         Revert:
9385         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
9386         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
9387         subreg of op0 to the original op0.
9388
9389         * expmed.c (store_bit_field_1): Use a temporary as the destination
9390         instead of a paradoxical subreg when we need to truncate the result.
9391
9392 2009-07-01  DJ Delorie  <dj@redhat.com>
9393
9394         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
9395         names to VLIW variants.
9396         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
9397         * config/mep/intrinsics.md: Regenerate.
9398         * config/mep/intrinsics.h: Regenerate.
9399         * config/mep/mep-intrin.h: Regenerate.
9400
9401 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
9402
9403         PR debug/40462
9404         * jump.c (returnjump_p): Revert last patch.
9405         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
9406
9407 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9408
9409         PR target/40575
9410         * pa.md (casesi32p): Use jump table label to determine the offset
9411         of the jump table.
9412         (casesi64p): Likewise.
9413
9414         * pa.c (forward_branch_p): Return bool type.  Use instruction
9415         addresses when available.  Assert that INSN has a jump label.
9416         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
9417         have a jump label.
9418
9419 2009-07-01  Richard Guenther  <rguenther@suse.de>
9420
9421         PR tree-optimization/19831
9422         * tree-ssa-dce.c (propagate_necessity): Calls to functions
9423         that only act as barriers do not make any previous stores necessary.
9424         * tree-ssa-structalias.c (handle_lhs_call): Delay making
9425         HEAP variables global, do not add a constraint from nonlocal.
9426         (find_func_aliases): Handle escapes through return statements.
9427         (compute_points_to_sets): Make escaped HEAP variables global.
9428
9429 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
9430
9431         PR bootstrap/40597
9432         * expmed.c (emit_store_flag): Perform a conversion if necessary,
9433         after reducing a DImode cstore to SImode.
9434
9435 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
9436
9437         * expr.c (expand_expr_real_1): Reinstate fallthrough to
9438         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
9439
9440 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
9441
9442         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
9443         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
9444         to 0.
9445         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
9446         and umod_optab if TARGET_BSD_DIVMOD.
9447         * config/vax/lib1funcs.asm: New file.
9448         * config/vax/t-linux: New file.
9449         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
9450
9451 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
9452
9453         PR c++/40566
9454         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
9455         to type arguments that have void type.
9456
9457         PR debug/40573
9458         * dwarf2out.c (gen_formal_parameter_die): Call
9459         equate_decl_number_to_die if node is different from origin.
9460
9461 2009-06-30  Anthony Green  <green@moxielogic.com>
9462
9463         Clean up moxie port for --enable-build-with-cxx.
9464         * config/moxie/moxie.c (moxie_function_value): First two
9465         parameters are const_tree, not tree.
9466         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
9467         (REG_CLASS_NAMES): Ditto.
9468         (REGNO_REG_CLASS): Ditto.
9469         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
9470         (moxie_function_value): Fix constyness of arguments.
9471
9472 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
9473
9474         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
9475         finalize_size_functions before further processing.
9476         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
9477         (variable_size): Call self_referential_size on size expressions
9478         that contain a PLACEHOLDER_EXPR.
9479         (size_functions): New static variable.
9480         (copy_self_referential_tree_r): New static function.
9481         (self_referential_size): Likewise.
9482         (finalize_size_functions): New global function.
9483         * tree.c: Include tree-inline.h.
9484         (push_without_duplicates): New static function.
9485         (find_placeholder_in_expr): New global function.
9486         (substitute_in_expr) <tcc_declaration>: Return the replacement object
9487         on equality.
9488         <tcc_expression>: Likewise.
9489         <tcc_vl_exp>: If the replacement object is a constant, try to inline
9490         the call in the expression.
9491         * tree.h (finalize_size_functions): Declare.
9492         (find_placeholder_in_expr): Likewise.
9493         (FIND_PLACEHOLDER_IN_EXPR): New macro.
9494         (substitute_placeholder_in_expr): Update comment.
9495         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
9496         is true.
9497         (copy_tree_body_r): Likewise.
9498         (copy_tree_body): New static function.
9499         (maybe_inline_call_in_expr): New global function.
9500         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
9501         (maybe_inline_call_in_expr): Declare.
9502         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
9503         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
9504         GIMPLE_H.
9505
9506 2009-06-30  Richard Guenther  <rguenther@suse.de>
9507
9508         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
9509         continue walking.
9510         (propagate_necessity): Do not mark reaching defs of stores
9511         as necessary.
9512
9513 2009-06-30  Jan Hubicka  <jh@suse.cz>
9514
9515         * cfgloopanal.c (check_irred): Move into ...
9516         (mark_irreducible_loops): ... here; return true if ireducible
9517         loops was found.
9518         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
9519         (analyze_function): Try to prove loop finiteness.
9520         * cfgloop.h (mark_irreducible_loops): Update prototype.
9521         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
9522
9523 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
9524
9525         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
9526
9527 2009-06-30  Ira Rosen  <irar@il.ibm.com>
9528
9529         PR tree-optimization/40542
9530         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
9531         types.
9532
9533 2009-06-30  Martin Jambor  <mjambor@suse.cz>
9534
9535         PR tree-optimization/40582
9536         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
9537         than useless_type_conversion_p.
9538         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
9539         proper place.
9540
9541 2009-06-30  Martin Jambor  <mjambor@suse.cz>
9542
9543         PR middle-end/40554
9544         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
9545
9546 2009-06-30  Richard Guenther  <rguenther@suse.de>
9547
9548         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
9549         use ao_ref references.
9550         (walk_aliased_vdefs): Likewise.
9551         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
9552         * tree-ssa-dce.c (struct ref_data): Remove.
9553         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
9554         (mark_aliased_reaching_defs_necessary): Adjust.
9555         (mark_all_reaching_defs_necessary_1): Likewise.
9556
9557 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
9558
9559         PR boostrap/40597
9560         * expmed.c (emit_cstore): New name of emit_store_flag_1.
9561         (emit_store_flag_1): Extract from emit_store_flag, adjust
9562         calls to (what now is) emit_cstore.
9563         (emit_store_flag): Call emit_store_flag_1 and also use it
9564         for what used to be recursive calls.
9565
9566 2009-06-30  Wei Guozhi  <carrot@google.com>
9567
9568         PR/40416
9569         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
9570         if the target bb post dominates from bb.
9571         * config/i386/i386.c (memory_address_length): Check existence of base
9572         register before using it.
9573
9574 2009-06-30  Nick Clifton  <nickc@redhat.com>
9575             DJ Delorie  <dj@redhat.com>
9576
9577         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
9578         __FMOVD_ENABLED__ is defined.
9579         * config/sh/sh.h
9580         (TARGET_FMOVD): Provide a default definition.
9581         (MASK_FMOVD): Likewise.
9582         (TARGET_CPU_CPP_BUILTINS): Define
9583         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
9584         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
9585         two fmov instructions depending upon whether TARGET_FMOVD is
9586         enabled.
9587         (split for DF load from memory into register): Also handle
9588         MEMs which consist of REG+DISP addressing.
9589         (split for DF store from register to memory): Likewise.
9590         * config/sh/sh.opt (mfmovd): Remove this switch.
9591         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
9592         * config/sh/sh.c (sh_override_options): Do not automatically
9593         enable TARGET_MOVD for the SH2A when supporting doubles - leave
9594         that to the -mfmovd command line switch.
9595
9596         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
9597         the SH4 and SH4A.
9598         (fldi_ok): Always allow.
9599         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
9600
9601 2009-06-29  DJ Delorie  <dj@redhat.com>
9602
9603         * doc/install.texi (mep-x-elf): Correct chip's full name.
9604
9605 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
9606
9607         * doc/extend.texi: Fix typo.
9608
9609 2009-06-29  Tom Tromey  <tromey@redhat.com>
9610
9611         * dwarf2.h: Remove.
9612         * Makefile.in (DWARF2_H): New variable.
9613         (except.o): Use it.
9614         (dwarf2out.o): Likewise.
9615         (dwarf2asm.o): Likewise.
9616         * config/i386/t-i386: Use DWARF2_H.
9617         * except.c: Include elf/dwarf2.h.
9618         * unwind-dw2.c: Include elf/dwarf2.h.
9619         * dwarf2out.c: Include elf/dwarf2.h.
9620         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
9621         <dtprel>: New field.
9622         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
9623         (size_of_loc_descr): Likewise.
9624         (output_loc_operands_raw): Likewise.
9625         (output_loc_operands): Handle new dtprel field.
9626         (loc_checksum): Update.
9627         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
9628         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
9629         * unwind-dw2-fde.c: Include elf/dwarf2.h.
9630         * dwarf2asm.c: Include elf/dwarf2.h.
9631         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
9632         * config/mmix/mmix.c: Include elf/dwarf2.h.
9633         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
9634         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
9635         * config/sh/sh.c: Include elf/dwarf2.h.
9636         * config/i386/i386.c: Include elf/dwarf2.h.
9637
9638 2009-06-29  DJ Delorie  <dj@redhat.com>
9639
9640         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
9641
9642         * doc/extend.texi: Add MeP attributes and pragmas.
9643         * doc/invoke.text: Add MeP Options.
9644         * doc/contrib.texi: Add MeP contribution.
9645         * doc/md.texi: Add MeP constraints.
9646         * doc/install.texi: Add MeP target.
9647
9648 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
9649
9650         * target.h (struct gcc_target): Add frame_pointer_required field.
9651         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
9652         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
9653         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
9654         hook.
9655         * reload1.c (update_eliminables): (Ditto.).
9656         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
9657         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
9658         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
9659
9660         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
9661
9662         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
9663         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
9664         (arm_frame_pointer_required): New function.
9665
9666         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
9667         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9668         (avr_frame_pointer_required_p): Declare as static.
9669         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
9670
9671         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
9672         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
9673         (bfin_frame_pointer_required): Make as static, change return type
9674         to bool.
9675         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
9676
9677         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
9678         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9679         (cris_frame_pointer_required): New function.
9680
9681         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
9682
9683         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
9684         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9685         (fr30_frame_pointer_required): New function.
9686
9687         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
9688         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
9689         (frv_frame_pointer_required): Make as static, change return type
9690         to bool.
9691         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
9692
9693         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
9694         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9695         (ix86_frame_pointer_required): Make as static, change return type to
9696         bool.
9697         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
9698
9699         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
9700         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9701
9702         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
9703
9704         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
9705
9706         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
9707
9708         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
9709         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9710         (mips_frame_pointer_required): Make as static.
9711         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
9712
9713         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
9714         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9715         (mmix_frame_pointer_required): Mew function.
9716
9717         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
9718         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9719
9720         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
9721
9722         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
9723
9724         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
9725
9726         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
9727         (CAN_ELIMINATE): Redefine.
9728         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
9729         (sparc_frame_pointer_required): New function.
9730         (sparc_can_eliminate): New function.
9731         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
9732
9733         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
9734         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
9735
9736         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
9737         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
9738         (xtensa_frame_pointer_required): Make as static, change return type
9739         to bool.
9740         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
9741         Remove.
9742
9743 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
9744
9745         * doc/plugins.texi: Document PLUGIN_START_UNIT.
9746         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
9747         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
9748         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
9749         (register_callback): Handle PLUGIN_START_UNIT.
9750         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
9751
9752 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
9753
9754         * tree.c (process_call_operands): Propagate TREE_READONLY from the
9755         operands.
9756         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
9757         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
9758
9759 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
9760
9761         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
9762         move cost.
9763
9764 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
9765
9766         * doc/extend.texi (Additional Floating Types): __float128 is also
9767         supported on i386 targets.
9768
9769 2009-06-29  Richard Guenther  <rguenther@suse.de>
9770
9771         PR middle-end/14187
9772         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
9773         flag.
9774         (pt_solutions_same_restrict_base): Declare.
9775         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
9776         flag.
9777         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
9778         (make_constraint_from, make_copy_constraint): Move earlier.
9779         (make_constraint_from_heapvar): New function.
9780         (make_constraint_from_restrict): Likewise.
9781         (handle_lhs_call): Use it.
9782         (find_func_aliases): Use it to track conversions to restrict
9783         qualified pointers.
9784         (struct fieldoff): Add only_restrict_pointers flag.
9785         (push_fields_onto_fieldstack): Initialize it.
9786         (create_variable_info_for): Track global restrict qualified pointers.
9787         (intra_create_variable_infos): Use make_constraint_from_heapvar.
9788         Track restrict qualified pointer arguments.
9789         (set_uids_in_ptset): Use varinfo is_global_var flag.
9790         (find_what_var_points_to): Set the vars_contains_restrict flag.
9791         Always create the points-to solution for sets including restrict tags.
9792         (pt_solutions_same_restrict_base): New function.
9793         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
9794         qualified pointers use pt_solutions_same_restrict_base as
9795         additional source for disambiguation.
9796
9797 2009-06-29  Richard Guenther  <rguenther@suse.de>
9798
9799         PR middle-end/38212
9800         * alias.c (find_base_decl): Remove.
9801         (get_deref_alias_set_1): Remove restrict handling.
9802         * c-common.c (c_apply_type_quals_to_decl): Do not set
9803         DECL_POINTER_ALIAS_SET.
9804         * gimplify.c (find_single_pointer_decl_1): Remove.
9805         (find_single_pointer_decl): Likewise.
9806         (internal_get_tmp_var): Remove restrict handling.
9807         (gimple_regimplify_operands): Likewise.
9808         * omp-low.c (expand_omp_atomic_pipeline): Do not set
9809         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
9810         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
9811         * tree.c (restrict_base_for_decl): Remove.
9812         (init_ttree): Do not allocate it.
9813         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
9814         LABEL_DECL_UID for label decls.
9815         (copy_node_stat): Do not copy restrict information.
9816         (decl_restrict_base_lookup): Remove.
9817         (decl_restrict_base_insert): Likewise.
9818         (print_restrict_base_statistics): Likewise.
9819         (dump_tree_statistics): Do not call print_restrict_base_statistics.
9820         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
9821         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
9822         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
9823         (LABEL_DECL_UID): Adjust.
9824         (DECL_BASED_ON_RESTRICT_P): Remove.
9825         (DECL_GET_RESTRICT_BASE): Likewise.
9826         (SET_DECL_RESTRICT_BASE): Likewise.
9827         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
9828
9829         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
9830         instead of DECL_POINTER_ALIAS_SET.
9831         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
9832         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
9833         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
9834
9835 2009-06-29  Richard Guenther  <rguenther@suse.de>
9836
9837         PR tree-optimization/40579
9838         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
9839         the IL to simplify has constants that overflowed.
9840
9841 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
9842
9843         PR tree-optimization/40550
9844         * tree-vect-generic.c (expand_vector_operations_1): Compute in
9845         vector_compute_type only when the size of vector_compute_type is
9846         less than the size of type.
9847
9848 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
9849
9850         * fold-const.c (contains_label_1): Fix comments.
9851         (contains_label_p): Do not walk trees multiple time.
9852
9853 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
9854
9855         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
9856         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
9857         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
9858         ix86_fp_comparison_operator.
9859         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
9860         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
9861         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
9862         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
9863         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
9864         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
9865         (related splits): Change predicate to ix86_fp_comparison_operator.
9866         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
9867         instead of ix86_fp_comparison_codes.
9868         (ix86_trivial_fp_comparison_operator,
9869         ix86_fp_comparison_operator): New.
9870         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
9871         (ix86_expand_compare): Eliminate last two parameters.
9872         (ix86_fp_jump_nontrivial_p): Kill.
9873         * config/i386/i386.c (put_condition_code): Eliminate call to
9874         ix86_fp_comparison_codes and subsequent assertion.
9875         (ix86_fp_comparison_codes): Eliminate.
9876         (ix86_fp_swap_condition): New.
9877         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
9878         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
9879         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
9880         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
9881         and ix86_fp_swap_condition.
9882         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
9883         Use ix86_fp_comparison_strategy.
9884         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
9885         (ix86_fp_jump_nontrivial_p): Eliminate.
9886         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
9887         call to ix86_expand_compare.
9888         (ix86_split_fp_branch, ix86_expand_setcc,
9889         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
9890         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
9891
9892 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
9893
9894         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
9895         related to jump_clobbers.
9896         * config/arm/arm.md (conds): Remove jump_clob case.
9897         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
9898         splits): Change comparison_operator to arm_comparison_operator.
9899         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
9900         Eliminate.
9901
9902 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
9903
9904         * dojump.c (do_compare_rtx_and_jump): Try swapping the
9905         condition for floating point modes.
9906         * expmed.c (emit_store_flag_1): Move here a bigger part
9907         of emit_store_flag.
9908         (emit_store_flag): Try swapping the condition for floating point
9909         modes.
9910         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
9911
9912 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
9913
9914         * expr.c (expand_expr_real_1): Just use do_store_flag.
9915         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
9916         emit_store_flag_force.
9917         * expmed.c (emit_store_flag_force): Copy here trick
9918         previously in expand_expr_real_1.  Try reversing the comparison.
9919         (emit_store_flag_1): Work if target is NULL.
9920         (emit_store_flag): Work if target is NULL, using the result mode
9921         from the comparison.  Use split_comparison, restructure final part
9922         to simplify conditionals.
9923
9924 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
9925
9926         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
9927         * dojump.c (do_jump): Change handling of floating-point
9928         ops to use just do_compare_and_jump.
9929         (split_comparison): New.
9930         (do_compare_rtx_and_jump): Add here logic coming previously
9931         in do_jump, using split_comparison.
9932
9933 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
9934
9935         PR target/40489
9936         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
9937
9938 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
9939
9940         * tree-ssa-alias.c: Fix unintentional commit.
9941
9942 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
9943
9944         * passes.c (execute_one_pass): Fix unintentional commit.
9945
9946 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
9947
9948         * df-problems.c (df_set_seen, df_unset_seen): Delete.
9949         (df_rd_local_compute, df_md_local_compute): Inline them.
9950
9951         (df_md_scratch): New.
9952         (df_md_alloc, df_md_free): Allocate/free it.
9953         (df_md_local_compute): Only include live registers in init.
9954         (df_md_transfer_function): Prune the in-set computed by
9955         the confluence function, and the gen-set too.
9956
9957 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
9958
9959         PR rtl-optimization/26854
9960         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
9961         * df-problems.c (df_rd_add_problem): Fix comment.
9962         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
9963         df_md_simulate_artificial_defs_at_top,
9964         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
9965         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
9966         df_md_transfer_function, df_md_init, df_md_confluence_0,
9967         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
9968         problem_MD, df_md_add_problem): New.
9969         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
9970         df_md_get_bb_info): New.
9971         (DF_LAST_PROBLEM_PLUS1): Adjust.
9972
9973         * Makefile.in (fwprop.o): Include domwalk.h.
9974         * fwprop.c: Include domwalk.h.
9975         (reg_defs, reg_defs_stack): New.
9976         (bitmap_only_bit_between): Remove.
9977         (process_defs): New.
9978         (process_uses): Use reg_defs and local_md instead of
9979         bitmap_only_bit_between and local_rd.
9980         (single_def_use_enter_block): New, from build_single_def_use_links.
9981         (single_def_use_leave_block): New.
9982         (build_single_def_use_links): Remove code moved to
9983         single_def_use_enter_block, invoke domwalk.
9984         (use_killed_between): Adjust comment.
9985
9986 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
9987
9988         * bitmap.h (bitmap_ior_and_into): New.
9989         * bitmap.c (bitmap_ior_and_into): New.
9990
9991 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
9992
9993         * domwalk.h (struct dom_walk_data): Remove all callbacks except
9994         before_dom_children_before_stmts and after_dom_children_after_stmts.
9995         Rename the two remaining callbacks to just before_dom_children and
9996         after_dom_children. Remove other GIMPLE statement walking bits.
9997         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
9998         * graphite.c: Do not include domwalk.h.
9999         * tree-into-ssa.c (interesting_blocks): New global.
10000         (struct mark_def_sites_global_data): Remove it and names_to_rename.
10001         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
10002         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
10003         now that they're not domwalk callbacks.
10004         (rewrite_initialize_block): Rename to...
10005         (rewrite_enter_block): ... this, place after called functions.  Test
10006         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
10007         (rewrite_finalize_block): Rename to...
10008         (rewrite_leave_block): ... this, place after called functions.
10009         (rewrite_update_init_block): Rename to...
10010         (rewrite_update_enter_block): ... this, place after called functions.
10011         Test interesting_blocks, call rewrite_update_stmt and
10012         rewrite_update_phi_arguments.
10013         (rewrite_update_fini_block): Rename to...
10014         (rewrite_leave_block): ... this, place after called functions.
10015         (rewrite_blocks): Remove last argument, simplify initialization of
10016         walk_data.
10017         (mark_def_sites_initialize_block): Rename to...
10018         (mark_def_sites_block): ... this, call mark_def_sites.
10019         (mark_def_sites_blocks): Remove argument, simplify initialization of
10020         walk_data.
10021         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
10022         (update_ssa): Likewise.
10023         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
10024         callback.
10025         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
10026         (dom_opt_initialize_block): Rename to...
10027         (dom_opt_enter_block): ... this, place after called functions.  Walk
10028         statements here, inline propagate_to_outgoing_edges.
10029         (dom_opt_finalize_block): Rename to...
10030         (dom_opt_leave_block): ... this, place after called functions.
10031         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
10032         domwalk callback.
10033         (dse_enter_block, dse_record_phi): New.
10034         (dse_record_phis): Delete.
10035         (dse_finalize_block): Rename to...
10036         (dse_leave_block): ... this.
10037         (tree_ssa_dse): Simplify initialization of walk_data.
10038         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
10039         Adjust initialization of walk_data.
10040         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
10041         * tree-ssa-loop-phiopt.c (get_non_trapping):
10042         Adjust initialization of walk_data.
10043         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
10044         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
10045         it's not a domwalk callback.
10046         (uncprop_initialize_block): Rename to...
10047         (dse_enter_block): ... this, call uncprop_into_successor_phis.
10048         (dse_finalize_block): Rename to...
10049         (dse_leave_block): ... this.
10050         (tree_ssa_uncprop): Simplify initialization of walk_data.
10051         * Makefile.in: Adjust dependencies.
10052
10053 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
10054
10055         * arm.md (casesi): Fix test for Thumb1.
10056         (thumb1_casesi_internal_pic): Likewise.
10057         (thumb1_casesi_dispatch): Likewise.
10058
10059 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
10060
10061         * config/arm/arm-cores.def: Added core cortex-m0.
10062         * config/arm/arm-tune.md: Regenerated.
10063         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
10064
10065 2009-06-26  DJ Delorie  <dj@redhat.com>
10066
10067         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
10068
10069         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
10070         the scheduler doesn't tag jump insns.
10071
10072 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
10073
10074         * c-decl.c (merge_decls): Re-indent.
10075
10076 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
10077
10078         PR c/39902
10079         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
10080         Special-case decimal float constants.
10081
10082 2009-06-26  Richard Henderson  <rth@redhat.com>
10083
10084         * function.h (struct function): Add cannot_be_copied_reason,
10085         and cannot_be_copied_set.
10086         * tree-inline.c (has_label_address_in_static_1): Rename from
10087         inline_forbidden_p_2; don't set inline_forbidden_reason here.
10088         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
10089         don't set inline_forbidden_reason.
10090         (copy_forbidden): New function, split out of inline_forbidden_p.
10091         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
10092         (inline_forbidden_p): Use copy_forbidden.
10093         (tree_versionable_function_p): Likewise.
10094         (inlinable_function_p): Merge into tree_inlinable_function_p.
10095         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
10096         * ipa-cp.c (ipcp_versionable_function_p): New function.
10097         (ipcp_cloning_candidate_p): Use it.
10098         (ipcp_node_modifiable_p): Likewise.
10099
10100 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
10101
10102         * builtins.c (expand_builtin_alloca): Handle builtin alloca
10103         that is marked not to be inlined. Remove flag_mudflap use.
10104         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
10105         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
10106
10107 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
10108
10109         PR bootstrap/40338
10110         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
10111         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
10112
10113 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
10114
10115         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
10116         shared libgcc.
10117         (__mingwthr_remove_key_dtor): Likewise.
10118
10119 2009-06-26  Richard Guenther  <rguenther@suse.de>
10120
10121         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
10122
10123 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
10124
10125         PR middle-end/40525
10126         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
10127         try the non-cond_exec path also.
10128
10129 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10130
10131         PR target/40468
10132         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
10133         (output_cbranch): Use new functions.
10134         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
10135         Likewise.
10136
10137 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
10138             Pat Haugen  <pthaugen@us.ibm.com>
10139             Revital Eres <ERES@il.ibm.com>
10140
10141         * config/rs6000/rs6000.c (print_operand): Correct lossage message
10142         for %c error.  Add %x support to print VSX registers as a unified
10143         register set, instead of separate float and altivec registers.
10144         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
10145         %y case, and add support for VSX pre-modify addresses.
10146         (output_toc): Add assert for CONST containing an integer constant
10147         in the PLUS case.
10148         (rs6000_adjust_cost): Add POWER7 support.
10149         (insn_must_be_first_in_group): Ditto.
10150         (insn_must_be_last_in_group): Ditto.
10151         (rs6000_emit_popcount): Ditto.
10152         (rs6000_vector_mode_supported_p): Ditto.
10153
10154         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
10155         Change some of the functions called by macros to being called
10156         through a pointer, so debug functions can be inserted if
10157         -mdebug=addr or -mdebug=cost.
10158         (rs6000_preferred_reload_class_ptr): Ditto.
10159         (rs6000_secondary_reload_class_ptr): Ditto.
10160         (rs6000_secondary_memory_needed_ptr): Ditto.
10161         (rs6000_cannot_change_mode_class_ptr): Ditto.
10162         (rs6000_secondary_reload_inner): Ditto.
10163         (rs6000_legitimize_reload_address): Ditto.
10164         (rs6000_legitimize_reload_address_ptr): Ditto.
10165         (rs6000_mode_dependent_address): Ditto.
10166         (rs6000_mode_dependent_address_ptr): Ditto.
10167
10168         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
10169         function to return true if the mode allows reg + integer
10170         addresses.
10171         (virtual_stack_registers_memory_p): New function to return true if
10172         the address refers to a virtual stack register.
10173         (rs6000_legitimate_offset_address_p): Move code to say whether a
10174         mode supports reg+int addressing to reg_offset_addressing_ok_p and
10175         call it.
10176         (rs6000_legitimate_address_p): Add checks for modes that only can
10177         do reg+reg addressing.  Start adding VSX support.
10178         (rs6000_legitimize_reload_address): Ditto.
10179         (rs6000_legitimize_address): Ditto.
10180         (rs6000_debug_legitimate_address_p): New debug functions for
10181         -mdebug=addr and -mdebug=cost.
10182         (rs6000_debug_rtx_costs): Ditto.
10183         (rs6000_debug_address_costs): Ditto.
10184         (rs6000_debug_adjust_cost): Ditto.
10185         (rs6000_debug_legitimize_address): Ditto.
10186         (rs6000_legitimize_reload_address_ptr): Point to call normal
10187         function or debug function.  Make functions called via pointer
10188         static.
10189         (rs6000_mode_dependent_address_ptr): Ditto.
10190         (rs6000_secondary_reload_class_ptr): Ditto.
10191         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
10192         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
10193         into a friendlier error.
10194         (rs6000_init_builtins): Add initial VSX support.
10195         (rs6000_adjust_cost): Fix some spacing issues.
10196
10197         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
10198         (REG_CLASS_NAMES): Ditto.
10199         (REG_CLASS_CONTENTS): Ditto.
10200         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
10201         pointer, to add -mdebug=addr support.
10202         (CANNOT_CHANGE_MODE_CLASS): Ditto.
10203         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
10204         -mdebug=addr support.
10205         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
10206         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
10207         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
10208
10209         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
10210         16-bit values.
10211         (bswapsi*): Set attribute types for load/store.  Add combiner
10212         patterns to eliminate zero extend on 64-bit.
10213         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
10214         stdbrx if the hardware supports those instructions.
10215
10216 2009-06-25  Ian Lance Taylor  <iant@google.com>
10217
10218         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
10219         (Link Options): Document -static-libstdc++.
10220
10221 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10222
10223         PR target/38731
10224         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
10225         DATA_ALIGNMENT instead.
10226
10227 2009-06-25  Richard Guenther  <rguenther@suse.de>
10228
10229         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
10230         indirect references against the callused/escaped solutions.
10231         (call_may_clobber_ref_p_1): Likewise.
10232
10233 2009-06-25  Martin Jambor  <mjambor@suse.cz>
10234
10235         PR tree-optimization/40493
10236         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
10237         (enum unscalarized_data_handling): New type.
10238         (handle_unscalarized_data_in_subtree): Return what has been done.
10239         (load_assign_lhs_subreplacements): Handle left flushes differently.
10240         (sra_modify_assign): Use unscalarized_data_handling, simplified
10241         condition determining whether to remove the statement.
10242
10243 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
10244
10245         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
10246         excerpt - @ should be doubled for texinfo.
10247
10248 2009-06-24  Ian Lance Taylor  <iant@google.com>
10249
10250         * config/arc/arc.c: Include "df.h".
10251         (arc_attribute_table): Make static.  Move higher in file.
10252         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
10253         (output_shift): Initialize n later to avoid warning.
10254         * config/arm/arm.c (arm_attribute_table): Make static.  Move
10255         higher in file.
10256         * config/avr/avr.c (avr_attribute_table): Make static.  Move
10257         higher in file.
10258         (reg_class_tab): Change array type from int to enum reg_class.
10259         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
10260         LABEL_REF.
10261         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
10262         (lshrhi3_out): Likewise.
10263         (class_likely_spilled_p): Change return type to bool.
10264         (avr_rtx_costs): Use local code variable with enum type.
10265         * config/avr/avr.md (movmemhi): Use add_reg_note.
10266         (andhi3, andsi3): Don't use AS2 with "and".
10267         (iorhi3, iorsi3): Don't use AS2 with "or".
10268         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
10269         * config/crx/crx.c: Include "df.h".
10270         (crx_attribute_table): Make static.
10271         * config/m32r/m32r.c: Include "df.h".
10272         (m32r_attribute_table): Make static.  Move higher in file.
10273         (pop): Use add_reg_note.
10274         (block_move_call): Change 0 to LCT_NORMAL in function call.
10275         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
10276         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
10277         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
10278         declare, not just when TREE_CODE is defined.
10279         * config/m68hc11/m68hc11.c: Include "expr.h".
10280         (m68hc11_attribute_table): Make static.  Move higher in file.
10281         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
10282         function call.
10283         (m68hc11_register_indirect_p): Likewise.
10284         (m68hc11_function_arg_padding): Change return type to enum
10285         direction.
10286         (emit_move_after_reload): Use add_reg_note.
10287         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
10288         (m68hc11_split_logical): Likewise.
10289         (m68hc11_rtx_costs): Add local code_and outer_code variables with
10290         enum type.
10291         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
10292         to VOIDmode in function call.
10293         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
10294         tree is defined.
10295         (m68hc11_split_logical): Update declaration.
10296         (m68hc11_function_arg_padding): Update declaration.
10297         * config/mcore/mcore.c (regno_reg_class): Change form array of int
10298         to array of enum reg_class.
10299         (mcore_attribute_table): Make static.  Move higher in file.
10300         (mcore_rtx_costs): Add cast to enum type.
10301         * config/mcore/mcore.h (regno_reg_class): Update declaration.
10302         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
10303         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
10304         in file.
10305         * config/sh/predicates.md (trapping_target_operand): Rename and to
10306         and_expr.
10307         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
10308         higher in file.
10309         * config/spu/spu.c (spu_attribute_table): Make static.  Move
10310         higher in file.
10311         * config/v850/v850.c (v850_attribute_table): Make static.  Move
10312         higher in file.
10313         (v850_rtx_costs): Use local code with enum type.
10314         (expand_epilogue): Add cast.
10315         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
10316
10317 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
10318
10319         PR target/40515
10320         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
10321         -m2a-single-only and -m2a-nofpu.
10322         * config/sh/sh.opt: Document m2a generates FPU code.
10323
10324 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
10325
10326         * defaults.h (CAN_ELIMINATE): Provide default.
10327         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
10328         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
10329         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
10330         * config/spu/spu.h (CAN_ELIMINATE): Delete.
10331         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
10332         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
10333         * config/cris/cris.h (CAN_ELIMINATE): Delete.
10334         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
10335         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
10336         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
10337
10338 2009-06-24  DJ Delorie  <dj@redhat.com>
10339
10340         * mep-ext-cop.cpu: Fix copyright notice.
10341         * mep-default: Fix copyright notice.
10342         * mep-core: Fix copyright notice.
10343         * mep: Fix copyright notice.
10344         * mep-ivc2: Fix copyright notice.
10345         * mep-c5: Fix copyright notice.
10346
10347 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
10348
10349         * doc/contrib.texi (Contributors):
10350
10351 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
10352
10353         PR middle-end/40501
10354         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
10355         src and dst operands if necessary.
10356
10357 2009-06-23  DJ Delorie  <dj@redhat.com>
10358
10359         Add MeP port.
10360         * config.gcc: Add mep support.
10361         * recog.c: Resurrect validate_replace_rtx_subexp().
10362         * recog.h: Likewise.
10363         * config/mep/: Add new port:
10364         * config/mep/constraints.md: New file.
10365         * config/mep/default.h: New file.
10366         * config/mep/intrinsics.h: New file.
10367         * config/mep/intrinsics.md: New file.
10368         * config/mep/ivc2-template.h: New file.
10369         * config/mep/mep-c5.cpu: New file.
10370         * config/mep/mep-core.cpu: New file.
10371         * config/mep/mep-default.cpu: New file.
10372         * config/mep/mep-ext-cop.cpu: New file.
10373         * config/mep/mep-intrin.h: New file.
10374         * config/mep/mep-ivc2.cpu: New file.
10375         * config/mep/mep-lib1.asm: New file.
10376         * config/mep/mep-lib2.c: New file.
10377         * config/mep/mep-pragma.c: New file.
10378         * config/mep/mep-protos.h: New file.
10379         * config/mep/mep-tramp.c: New file.
10380         * config/mep/mep.c: New file.
10381         * config/mep/mep.cpu: New file.
10382         * config/mep/mep.h: New file.
10383         * config/mep/mep.md: New file.
10384         * config/mep/mep.opt: New file.
10385         * config/mep/predicates.md: New file.
10386         * config/mep/t-mep: New file.
10387
10388 2009-06-23  Ian Lance Taylor  <iant@google.com>
10389
10390         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
10391         from loose_warn into c_loose_warn and from strict_warn into
10392         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
10393         --enable-build-with-cxx.  Set and substitute
10394         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
10395         * Makefile.in (CXXFLAGS): New variable.
10396         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
10397         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
10398         the default is the same as $(STRICT_WARN).
10399         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
10400         (CXX): New variable.
10401         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
10402         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
10403         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
10404         (HOST_LIBS): New variable.
10405         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
10406         (ALL_CXXFLAGS): New variable.
10407         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
10408         * doc/install.texi (Configuration): Document
10409         --enable-build-with-cxx, --with-stage1-ldflags,
10410         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
10411         * configure: Rebuild.
10412
10413 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10414
10415         * config/arm/arm.c (arm_override_options): Fix braces and formatting
10416         from previous commit.
10417
10418 2009-06-23  Ian Lance Taylor  <iant@google.com>
10419
10420         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
10421
10422 2009-06-23  Ian Lance Taylor  <iant@google.com>
10423
10424         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
10425         with ATTRIBUTE_UNUSED.
10426
10427 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
10428             Pat Haugen  <pthaugen@us.ibm.com>
10429             Revital Eres  <eres@il.ibm.com>
10430
10431         * config.in (HAVE_AS_POPCNTD): Add default definition.
10432         (HAVE_AS_LWSYNC): Ditto.
10433
10434         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
10435         release number.
10436         (gcc_cv_as_powerpc_cmpb): Ditto.
10437         (gcc_cv_as_powerpc_dfp): Ditto.
10438         (gcc_cv_as_powerpc_vsx): Ditto.
10439         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
10440         supporting the popcntd/lwsync instructions.
10441         (gcc_cv_as_powerpc_lwsync): Ditto.
10442         * configure: Regenerate.
10443
10444         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
10445         -mcpu=native and -mcpu=power7.
10446         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
10447
10448         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
10449         a variable instead of a mask to reduce the number of mask bits.
10450         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
10451         (-mbit-word): Ditto.
10452         (-mregnames): Ditto.
10453         * config/rs6000/rs6000.opt (-mupdate): Ditto.
10454         (-mfused-madd): Ditto.
10455
10456         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
10457         2.06 instructions.
10458         (-mvsx): New switch for VSX instructions.
10459         (-misel): Move from a variable to a mask to allow it to be set by
10460         -mcpu=.
10461
10462         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
10463         function declaration to an array declaration.
10464         (rs6000_hard_regno_nregs): New external array declaration.
10465
10466         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
10467         files included by rs6000.md.
10468
10469         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
10470         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
10471
10472         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
10473         a target mask.
10474         (rs6000_debug_reg): New -mdebug= variables.
10475         (rs6000_debug_addr): Ditto.
10476         (rs6000_debug_cost): Ditto.
10477         (rs6000_pmode): New variable to hold Pmode.
10478         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
10479         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
10480         calculated at compiler start.
10481         (rs6000_hard_regno_nregs): Change function to an array which holds
10482         HARD_REGNO_NREGS calculated at compiler start.
10483         (rs6000_explicit_options): Delete isel field.
10484         (rs6000_vector_unit): New array to hold which vector unit
10485         supports arithmetic options for a given type.
10486         (rs6000_vector_mem): New array to hold which vector unit supports
10487         memory reference operations for a given type.
10488         (rs6000_vector_align): New array to given the alignment of each
10489         vector type.
10490         (power7_cost): New basic costs for power7.
10491         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
10492         (rs6000_hard_regno_nregs_internal): New function, moved from
10493         HARD_REGNO_NREGS, to calculate the number of registers each hard
10494         register takes for each type.
10495         (rs6000_debug_reg_print): New function for -mdebug=reg support.
10496         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
10497         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
10498         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
10499         unit information here so it is calculated once at compiler startup
10500         time.
10501         (rs6000_override_options): Make -misel a target mask.  Add more
10502         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
10503         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
10504         -mdebug=cost.
10505         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
10506         (rs6000_handle_option): Move -misel from variable to target mask.
10507         (rs6000_builtin_mask_for_load): Add VSX support.
10508         (rs6000_conditional_register_usage): Ditto.
10509         (USE_ALTIVEC_FOR_ARG_P): Ditto.
10510         (function_arg_boundary): Ditto.
10511         (rs6000_expand_builtin): Ditto.
10512         (def_builtin): Make abort message a little friendlier.
10513         (rs6000_emit_int_cmove): Add support for 64-bit isel.
10514
10515         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
10516         assembler support the popcntd instruction instead of a vsx
10517         instruction to enable power7 support.
10518         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
10519         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
10520         option to the assembler if -mcpu=native.
10521         (ASM_CPU_NATIVE_SPEC): Ditto.
10522         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
10523         ISA 2.06 features.
10524         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
10525         the lwsync instruction.
10526         (enum processor_type): Add PROCESSOR_POWER7.
10527         (rs6000_debug_reg): New -mdebug= options.
10528         (rs6000_debug_addr): Ditto.
10529         (rs6000_debug_cost): Ditto.
10530         (rs6000_isel): Delete.
10531         (enum rs6000_vector): New enum to say what vector unit we have.
10532         (VECTOR_UNIT_*): New macros to say which vector unit has
10533         arithmetic operations for a given type.
10534         (VECTOR_MEM_*): New macros to say which vector unit has memory
10535         operations for a given type.
10536         (TARGET_LDBRX): Whether the machine supports the ldbrx
10537         instruction.
10538         (TARGET_ISEL): Delete, -misel moved to be a mask.
10539         (TARGET_ISEL64): New macro for 64-bit isel support.
10540         (UNITS_PER_VSX_WORD): New macro.
10541         (POINTER_SIZE): Move to be an external variable, rather than
10542         calculating whether we are generating 32 ot 64-bit code.
10543         (Pmode): Ditto.
10544         (STACK_BOUNDARY): Add VSX support.
10545         (LOCAL_ALIGNMENT): Ditto.
10546         (SLOW_UNALIGNED_ACCESS): Ditto.
10547         (VSX_REGNO_P): New macro for VSX support.
10548         (VFLOAT_REGNO_P): Ditto.
10549         (VINT_REGNO_P): Ditto.
10550         (VLOGICAL_REGNO_P): Ditto.
10551         (VSX_VECTOR_MODE): Ditto.
10552         (VSX_SCALAR_MODE): Ditto.
10553         (VSX_MODE): Ditto.
10554         (VSX_MOVE_MODE): Ditto.
10555         (VSX_REG_CLASS_P): Ditto.
10556         (HARD_REGNO_NREGS): Instead of calling a function, use an array
10557         lookup.
10558         (UNITS_PER_SIMD_WORD): Add VSX support.
10559         (MODES_TIEABLE_P): Ditto.
10560         (STARTING_FRAME_OFFSET): Ditto.
10561         (STACK_DYNAMIC_OFFSET): Ditto.
10562         (EPILOGUE_USES): Ditto.
10563         (REGNO_REG_CLASS): Move to array lookup.
10564         (CLASS_MAX_NREGS): Ditto.
10565         (rs6000_vector_reg_class): Add declaration.
10566         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
10567         overlap with the floating point and Altivec registers.
10568
10569         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
10570
10571         * config/rs6000/driver-rs6000.c (asm_names): New static array to
10572         give the appropriate asm switches if -mcpu=native.
10573         (host_detect_local_cpu): Add support for "asm".
10574         (host_detect_local_cpu): Follow GNU code guidelines for name.
10575
10576         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
10577         -mbit-word to a variable instead of being a target mask.
10578
10579         * config/rs6000/sync.md (lwsync): If the assembler supports it,
10580         emit the lwsync instruction instead of emitting the instruction as
10581         an integer constant.
10582
10583         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
10584         fixuns_trundfsi2, move expander into rs6000.md.
10585
10586         * config/rs6000/rs6000.md (cpu): Add power7.
10587         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
10588         (logical predicate patterns): Change the single instruction
10589         primitives that set CR0 to be fast_compare instead of compare.
10590         (norsi*): Ditto.
10591         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
10592         (popcntddi2): Ditto.
10593         (popcount<mode>): Ditto.
10594         (floating multiply/add insns): Name the floating point
10595         multiply/add insns.
10596         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
10597         (isel_unsigned_<mode>): Ditto.
10598         (fixuns_trundfsi2): Move expander here from spe.md.
10599         (smindi3): Define if we have -misel on 64-bit systems.
10600         (smaxdi3): Ditto.
10601         (umindi3): Ditto.
10602         (umaxdi3): Ditto.
10603
10604 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
10605
10606         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
10607         extra_objs.
10608         * config/avr/avr.c (avr_current_device): New variable.
10609         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
10610         (avr_arch, mcu_type_s): Move to avr.h.
10611         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
10612         default_data_section_start fields.
10613         (avr_arch): Moved from avr.c.
10614         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
10615         library_name fields.
10616         (avr_current_device, avr_mcu_types, avr_arch_types,
10617         avr_device_to_arch, avr_device_to_data_start,
10618         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
10619         (EXTRA_SPEC_FUNCTIONS): Define.
10620         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
10621         options mapping. Use device_to_arch and device_to_data_start insted.
10622         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
10623         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
10624         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
10625         * config/avr/driver-avr.c: New file.
10626         * config/avr/avr-devices.c: New file.
10627
10628 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
10629
10630         * var-tracking.c (unshare_variable): Force initialized to
10631         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
10632         (set_variable_part): Likewise.
10633         (struct variable_union_info): Remove pos_src field.
10634         (vui_vec, vui_allocated): New variables.
10635         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
10636         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
10637         == 1 use a simpler sorting algorithm.  Compute pos field right
10638         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
10639         Avoid quadratic comparison if !flag_var_tracking_uninit.
10640         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
10641         unshare_variable unconditionally.
10642         (dataflow_set_different_2): Removed.
10643         (dataflow_set_different): Don't traverse second hash table.
10644         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
10645         unconditionally to var_reg_set or var_mem_set.
10646         (emit_notes_in_bb): Likewise.
10647         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
10648         unshare_variable.
10649         (emit_note_insn_var_location): Don't set initialized to
10650         VAR_INIT_STATUS_INITIALIZED early.
10651         (vt_finalize): Free vui_vec if needed, clear vui_vec and
10652         vui_allocated.
10653         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
10654
10655         * tree-object-size.c (addr_object_size): Instead of checking
10656         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
10657         are no FIELD_DECLs following it.
10658
10659 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
10660
10661         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
10662         order to match bswaps with signed source operands.
10663
10664 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10665
10666         * sdbout.c (sdbout_one_type): Fix braces in switch.
10667
10668 2009-06-23  Richard Guenther  <rguenther@suse.de>
10669
10670         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
10671         member.
10672         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
10673         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
10674         var_callused, callused_tree, var_storedanything, storedanything_tree,
10675         var_integer, integer_tree): Remove global variables.
10676         (new_var_info): Do not pass new id, append the new var to the
10677         global variable vector.
10678         (do_ds_constraint): Use is_global_var member of the variable-info.
10679         (new_scalar_tmp_constraint_exp): Adjust.
10680         (create_function_info_for): Likewise.
10681         (create_variable_info_for): Likewise.
10682         (find_what_var_points_to): Remove dead code.
10683         (init_base_vars): Simplify.
10684         (compute_points_to_sets): Adjust.
10685
10686 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
10687
10688         * combine.c (try_combine): Dump information about the insns we're
10689         combining.
10690
10691 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
10692
10693         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
10694         check when calling force_to_mode on TRUNCATE's operand.
10695
10696 2009-06-22  Ian Lance Taylor  <iant@google.com>
10697
10698         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
10699
10700 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
10701
10702         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
10703
10704 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10705
10706         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
10707         override library linkage flags such as -static-libgcc or
10708         -shared-libgcc.
10709
10710 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
10711
10712         * config/m68k/m68k-devices.def: Add line for MCF5221x.
10713
10714 2009-06-22  Ian Lance Taylor  <iant@google.com>
10715
10716         * config/linux.opt: Put mglibc ahead of muclibc.
10717
10718         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
10719         for duplicate decls.
10720
10721 2009-06-22  Matthias Klose  <doko@ubuntu.com>
10722
10723         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
10724
10725 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
10726
10727         PR objc/28050
10728         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
10729         instead of NULL if a parser error occurs.
10730
10731 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10732
10733         * dwarf2out.c (dwarf2_debug_hooks): Initialize
10734         non-DWARF2_DEBUGGING_INFO version.
10735
10736 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
10737
10738         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
10739         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
10740
10741         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
10742         (LIBGCC2_TF_CEXT): Define.
10743         (TF_SIZE): Define.
10744
10745 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10746
10747         PR target/40463
10748         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
10749
10750 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10751
10752         * config/arm/arm.c (arm_override_options): Disable
10753         -mcaller-super-interworking and -mcallee-super-interworking.
10754         * doc/invoke.texi (ARM Options): Document this.
10755
10756 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
10757
10758         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
10759         * config/arm/constraints.md (j): New constraint for movw operands.
10760         (N): Remove thumb2 meaning.
10761         * config/arm/arm.md (*arm_movw): Delete.
10762         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
10763         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
10764         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
10765
10766 2009-06-22  Martin Jambor  <mjambor@suse.cz>
10767
10768         PR tree-optimization/40492
10769         * tree-sra.c (sra_modify_assign): Pass zero offsets to
10770         build_ref_for_offset.
10771
10772 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
10773
10774         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
10775         JUMP_TABLE_DATA_P predicates where applicable.
10776         * auto-inc-dec.c: Ditto.
10777         * builtins.c: Ditto.
10778         * caller-save.c: Ditto.
10779         * calls.c: Ditto.
10780         * cfgcleanup.c: Ditto.
10781         * cfglayout.c: Ditto.
10782         * cfgrtl.c: Ditto.
10783         * combine.c: Ditto.
10784         * combine-stack-adj.c: Ditto.
10785         * cse.c: Ditto.
10786         * cselib.c: Ditto.
10787         * dbxout.c: Ditto.
10788         * df-scan.c: Ditto.
10789         * dse.c: Ditto.
10790         * dwarf2asm.c: Ditto.
10791         * dwarf2out.c: Ditto.
10792         * emit-rtl.c: Ditto.
10793         * except.c: Ditto.
10794         * explow.c: Ditto.
10795         * expmed.c: Ditto.
10796         * expr.c: Ditto.
10797         * final.c: Ditto.
10798         * function.c: Ditto.
10799         * fwprop.c: Ditto.
10800         * gcse.c: Ditto.
10801         * genpreds.c: Ditto.
10802         * genrecog.c: Ditto.
10803         * ifcvt.c: Ditto.
10804         * ira-costs.c: Ditto.
10805         * ira-lives.c: Ditto.
10806         * jump.c: Ditto.
10807         * loop-iv.c: Ditto.
10808         * lower-subreg.c: Ditto.
10809         * modulo-sched.c: Ditto.
10810         * optabs.c: Ditto.
10811         * postreload.c: Ditto.
10812         * print-rtl.c: Ditto.
10813         * recog.c: Ditto.
10814         * reginfo.c: Ditto.
10815         * regmove.c: Ditto.
10816         * reload1.c: Ditto.
10817         * reload.c: Ditto.
10818         * reorg.c: Ditto.
10819         * rtlanal.c: Ditto.
10820         * rtl.c: Ditto.
10821         * sched-vis.c: Ditto.
10822         * sdbout.c: Ditto.
10823         * sel-sched-ir.c: Ditto.
10824         * simplify-rtx.c: Ditto.
10825         * targhooks.c: Ditto.
10826         * var-tracking.c: Ditto.
10827         * vmsdbgout.c: Ditto.
10828
10829 2009-06-22  Matthias Klose  <doko@ubuntu.com>
10830
10831         * Makefile.in (install-plugin): Always use DESTDIR.
10832
10833 2009-06-22  Olivier Hainque  <hainque@adacore.com>
10834
10835         * config/pa/pa.c (output_call): Don't optimize post call jumps
10836         into return address adjustments if the call may throw.
10837
10838 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
10839
10840         * arm.c (thumb1_output_casesi): New function.
10841         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
10842         optimizing for size or PIC.
10843         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
10844         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
10845         (casesi): Handle Thumb-1 when optimizing for size or PIC.
10846         (thumb1_casesi_internal_pic): New expand rule.
10847         (thumb1_casesi_dispatch): New pattern.
10848         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
10849         thumb-1 mode.
10850         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
10851         in the text seciton when PIC or optimizing for size.
10852         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
10853         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
10854         preservation properties of code.
10855         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
10856         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
10857         (__gnu_thumb1_case_si): New function.
10858         * t-arm (LIB1ASMSRC): Define here.
10859         (LIB1ASMFUNCS): Add some common functions.
10860         * t-arm-elf (LIB1ASMSRC): Delete.
10861         (LIB1ASMFUNCS): Append to existing set.
10862         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
10863         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
10864         * t-symbian (LIB1ASMFUNCS): Likewise.
10865         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
10866         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
10867
10868 2009-06-21  Richard Guenther  <rguenther@suse.de>
10869
10870         PR tree-optimization/38729
10871         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
10872         to loops with a single exit if -fno-expensive-optimizations.
10873
10874 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
10875
10876         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
10877         (dataflow_set): Change vars type from htab_t to shared_hash.
10878         (shared_hash_pool, empty_shared_hash): New variables.
10879         (vars_clear): Removed.
10880         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
10881         shared_hash_find_slot_unshare, shared_hash_find_slot,
10882         shared_hash_find_slot_noinsert, shared_hash_find): New
10883         static inlines.
10884         (shared_hash_unshare, shared_hash_destroy): New functions.
10885         (unshare_variable): Unshare set->vars if shared, use
10886         shared_hash_htab.
10887         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
10888         (get_init_value, find_src_set_src, dump_dataflow_set,
10889         clobber_variable_part, emit_notes_for_differences): Use
10890         shared_hash_htab.
10891         (dataflow_set_init): Remove second argument, set vars to
10892         empty_shared_hash instead of creating a new htab.
10893         (dataflow_set_clear): Call shared_hash_destroy and set vars
10894         to empty_shared_hash instead of calling vars_clear.
10895         (dataflow_set_copy): Don't call vars_copy, instead just share
10896         the src htab with dst.
10897         (variable_union): Use shared_hash_*, use initially NO_INSERT
10898         lookup if set->vars is shared.  Don't keep slot cleared before
10899         calling unshare_variable.  Unshare set->vars if needed.
10900         Even ->refcount == 1 vars must be unshared if set->vars is shared
10901         and var needs to be modified.
10902         (variable_canonicalize): New function.
10903         (dataflow_set_union): If dst->vars is empty, just share src->vars
10904         with dst->vars and traverse with variable_canonicalize to canonicalize
10905         and unshare what is needed.
10906         (dataflow_set_different): If old_set and new_set use the same shared
10907         htab, they aren't different.  If number of htab elements is different,
10908         htabs are different.  Use shared_hash_*.
10909         (dataflow_set_destroy): Call shared_hash_destroy instead of
10910         htab_delete.
10911         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
10912         second argument to dataflow_set_init.
10913         (vt_initialize): Likewise.  Initialize shared_hash_pool and
10914         empty_shared_hash, move bb in/out initialization afterwards.
10915         Use variable_htab_free instead of NULL as changed_variables del hook.
10916         (variable_was_changed): Change type of second argument to pointer to
10917         dataflow_set.  When inserting var into changed_variables, bump
10918         refcount.  Unshare set->vars if set is shared htab and slot needs to
10919         be cleared.
10920         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
10921         lookup if set->vars is shared.  Unshare set->vars if needed.
10922         Even ->refcount == 1 vars must be unshared if set->vars is shared
10923         and var needs to be modified.  Adjust variable_was_changed caller.
10924         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
10925         vars must be unshared if set->vars is shared and var needs to be
10926         modified.  Adjust variable_was_changed caller.
10927         (emit_note_insn_var_location): Don't pool_free var.
10928         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
10929         instead of 1.
10930         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
10931         free_alloc_pool on shared_hash_pool.
10932
10933 2009-06-20  Anthony Green  <green@moxielogic.com>
10934
10935         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
10936         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
10937
10938 2009-06-20  Richard Guenther  <rguenther@suse.de>
10939
10940         * tree-ssa-structalias.c (find_func_aliases): For memset use
10941         a constraint from NULL if we memset to zero.
10942         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
10943         we explicitly handle that do not read from memory.
10944         (call_may_clobber_ref_p_1): Properly handle builtins that may
10945         set errno.
10946
10947 2009-06-20  Richard Guenther  <rguenther@suse.de>
10948
10949         PR tree-optimization/40495
10950         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
10951         (new_scalar_tmp_constraint_exp): New function.
10952         (process_constraint): Do not create temporary decls.
10953         (process_all_all_constraints): Likewise.
10954         (handle_const_call): Likewise.
10955         (create_function_info_for): Do not set decl.
10956
10957 2009-06-19  Ian Lance Taylor  <iant@google.com>
10958
10959         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
10960         (rs6000_attribute_table): Make static; move before use.
10961
10962 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
10963
10964         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
10965         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
10966         Propagate the TREE_READONLY flag without overwriting it.
10967         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
10968         Propagate the TREE_READONLY flag onto the result.
10969         (process_call_operands): Move around.  Use correct constant value.
10970
10971 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10972
10973         PR target/40482
10974         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
10975         * config/arm/arm.md: Likewise.
10976
10977 2009-06-19  Ian Lance Taylor  <iant@google.com>
10978
10979         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
10980         to GIMPLE_ERROR_MARK.
10981
10982         * c-typeck.c (build_conditional_expr): Add op1_original_type and
10983         op2_original_type parameters.  Warn about using different enum types.
10984         * c-parser.c (c_parser_conditional_expression): Pass original
10985         types to build_conditional_expr.
10986         * c-tree.h (build_conditional_expr): Update declaration.
10987
10988 2009-06-19  Ian Lance Taylor  <iant@google.com>
10989
10990         * config/i386/i386.c (ix86_function_specific_save): Test that
10991         fields match values, rather than testing the values are in a
10992         certain range.
10993
10994 2009-06-19  Richard Guenther  <rguenther@suse.de>
10995
10996         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
10997         ADDR_EXPR pointers.
10998         (ptr_derefs_may_alias_p): Likewise.
10999         (ptr_deref_may_alias_ref_p_1): New function.
11000         (ptr_deref_may_alias_ref_p): Likewise.
11001         (ref_maybe_used_by_call_p_1): Handle builtins that are not
11002         covered by looking at the ESCAPED solution.
11003         (call_may_clobber_ref_p_1): Likewise.
11004         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
11005         Handle NULL_TREE offset.  Do not produce redundant constraints.
11006         (process_all_all_constraints): New helper function.
11007         (do_structure_copy): Use it.
11008         (handle_lhs_call): Likewise.
11009         (find_func_aliases): Handle some builtins with pointer arguments
11010         and/or return values explicitly.
11011
11012 2009-06-19  Ian Lance Taylor  <iant@google.com>
11013
11014         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
11015
11016 2009-06-19  Ian Lance Taylor  <iant@google.com>
11017
11018         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
11019
11020 2009-06-19  Ian Lance Taylor  <iant@google.com>
11021
11022         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
11023         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
11024         version.
11025
11026         * c-decl.c (finish_decl): If -Wc++-compat, warn about
11027         uninitialized const.
11028
11029 2009-06-19  Ian Lance Taylor  <iant@google.com>
11030
11031         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
11032         all uses.
11033
11034         * c-decl.c (in_struct, struct_types): Remove.
11035         (struct c_binding): Add in_struct field.
11036         (c_binding_ptr): Define type, along with VEC.
11037         (struct c_struct_parse_info): Define.
11038         (struct_parse_info): New static variable.
11039         (bind): Initialize in_struct field.
11040         (start_struct): Remove enclosing_in_struct and
11041         enclosing_struct_types parameters.  Add
11042         enclosing_struct_parse_info parameter.  Change all callers.  Set
11043         struct_parse_info rather than in_struct and struct_types.
11044         (grokfield): If -Wc++-compat and there is a symbol binding for the
11045         field name, set the in_struct flag and push it on the
11046         struct_parse_info->fields vector.
11047         (warn_cxx_compat_finish_struct): New static function.
11048         (finish_struct): Remove enclosing_in_struct and
11049         enclosing_struct_types parameters.  Add
11050         enclosing_struct_parse_info parameter.  Change all callers.  Don't
11051         set C_TYPE_DEFINED_IN_STRUCT here.  Call
11052         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
11053         parameter.  Only push on struct_types if warn_cxx_compat.
11054         (finish_enum): Only push on struct_types if warn_cxx_compat.
11055         (declspecs_add_type): Add loc parameter.  Change all callers.
11056         Change all error calls to error_at.  Pass loc, not input_location,
11057         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
11058         defined in a struct.  If -Wc++-compat and parsing a struct, record
11059         that a typedef name was used.
11060         * c-parser.c (c_parser_declspecs): Get location to pass to
11061         declspecs_add_type.
11062         (c_parser_struct_or_union_specifier): Update calls to start_struct
11063         and finish_struct.
11064         * c-tree.h (struct c_struct_parse_info): Declare.
11065         (finish_struct, start_struct): Update declarations.
11066         (declspecs_add_type): Update declaration.
11067
11068 2009-06-19  Ian Lance Taylor  <iant@google.com>
11069
11070         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
11071         variable with an anonymous type.
11072
11073 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
11074
11075         * see.c: Remove for real.
11076
11077 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
11078
11079         * optabs.h (enum optab_index): Add new OTI_significand.
11080         (significand_optab): Define corresponding macro.
11081         * optabs.c (init_optabs): Initialize significand_optab.
11082         * genopinit.c (optabs): Implement significand_optab using
11083         significand?f2 patterns.
11084         * builtins.c (expand_builtin_mathfn): Handle
11085         BUILT_IN_SIGNIFICAND{,F,L}.
11086         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
11087         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
11088
11089         * config/i386/i386.md (significandxf2, significand<mode>2): New
11090         expanders to implement significandf, significand and significandl
11091         built-ins as inline x87 intrinsics.
11092
11093 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
11094
11095         * config/avr/avr.c (avr_override_options): Remove setting value of
11096         PARAM_INLINE_CALL_COST.
11097
11098 2009-06-18  Richard Henderson  <rth@redhat.com>
11099
11100         PR 40488
11101         * tree-pass.h (TDF_ASMNAME): New.
11102         * tree-dump.c (dump_options): Add asmname.
11103         * doc/invoke.texi: Document it.
11104
11105         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
11106         (dump_decl_name): ...here.
11107         (dump_function_name): New flags arg; mind TDF_ASMNAME.
11108         (dump_generic_node): Update dump_function_name calls.
11109         (print_call_name): New flags arg; update all dump calls.
11110         * diagnostic.h (print_call_name): Update.
11111         * gimple-pretty-print.c (dump_gimple_call): Update.
11112
11113 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11114
11115         PR target/40470
11116         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
11117
11118 2009-06-18  Diego Novillo  <dnovillo@google.com>
11119
11120         * doc/plugins.texi: Document plugin_is_GPL_compatible.
11121         * plugin.c (str_license): Declare.
11122         (try_init_one_plugin): Assert that the symbol
11123         'plugin_is_GPL_compatible' exists.
11124
11125 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
11126
11127         * see.c: Remove.
11128         * Makefile.in (OBJS-common): Remove see.o.
11129         (see.o): Remove.
11130         * common.opt (fsee): Mark as preserved for backward compatibility.
11131         * opts.c (common_handle_option): Add OPT_fsee to the backward
11132         compatibility section.
11133         * passes.c (init_optimization_passes, pass_see): Remove pass.
11134         * timevar.def (TV_SEE): Remove.
11135         * tree-pass.h (pass_see): Remove declaration.
11136         * doc/invoke.texi (-fsee): Remove documentation.
11137
11138 2009-06-18  Martin Jambor  <mjambor@suse.cz>
11139
11140         * tree-sra.c: Include statistics.h
11141         (sra_stats): New variable.
11142         (sra_initialize): Clear sra_stats.
11143         (create_access_replacement): Increment sra_stats.replacements.
11144         (get_access_replacement): Do not return twice.
11145         (analyze_all_variable_accesses): Increment statistics counter by the
11146         number of scalarized aggregates.
11147         (generate_subtree_copies): Increment sra_stats.subtree_copies.
11148         (sra_modify_expr): Increment sra_stats.exprs.
11149         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
11150         (sra_modify_assign): Increment sra_stats.exprs,
11151         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
11152         (perform_intra_sra): Update statistics counters.
11153         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
11154
11155 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
11156
11157         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
11158         (arm_scalar_mode_supported_p): New function.
11159
11160 2009-06-18  Paul Brook  <paul@codesourcery.com>
11161             Sandra Loosemore  <sandra@codesourcery.com>
11162
11163         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
11164         (__extendhfsf2, __truncsfhf2): Define.
11165         * config/arm/fp16.c: New file.
11166         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
11167         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
11168
11169 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
11170
11171         * doc/extend.texi (Half-Precision): New section.
11172         * doc/invoke.texi (Option Summary): List -mfp16-format.
11173         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
11174         * config/arm/arm.opt (mfp16-format=): New.
11175         * config/arm/arm.c: Include intl.h.
11176         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
11177         (TARGET_INVALID_RETURN_TYPE): Redefine.
11178         (TARGET_PROMOTED_TYPE): Redefine.
11179         (TARGET_CONVERT_TO_TYPE): Redefine.
11180         (arm_fp16_format): Define.
11181         (all_fpus): Add entry for neon-fp16.
11182         (fp_model_for_fpu): Likewise.
11183         (struct fp16_format): Declare.
11184         (all_fp16_formats): Define.
11185         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
11186         functions.
11187         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
11188         and no ldrh.
11189         (arm_legitimate_index_p): Treat HFmode like HImode.
11190         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
11191         (coproc_secondary_reload_class): Special-case HFmode.
11192         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
11193         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
11194         (arm_init_fp16_builtins): New.
11195         (arm_init_builtins): Call it.
11196         (arm_invalid_parameter_type): New.
11197         (arm_invalid_return_type): New.
11198         (arm_promoted_type): New.
11199         (arm_convert_to_type).
11200         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
11201         format.
11202         (arm_emit_fp16_const): New function.
11203         (arm_mangle_type): Mangle __fp16 as "Dh".
11204         * config/arm/arm.h (TARGET_VFPD32): Make it know about
11205         FPUTYPE_NEON_FP16.
11206         (TARGET_NEON_FP16): New.
11207         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
11208         (enum fputype): Add FPUTYPE_NEON_FP16.
11209         (enum arm_fp16_format_type): Declare.
11210         (arm_fp16_format): Declare.
11211         (LARGEST_EXPONENT_IS_NORMAL): Define.
11212         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
11213         * config/arm/arm-modes.def (HFmode): Define.
11214         * config/arm/vfp.md: (*movhf_vfp): New.
11215         (extendhfsf2): New.
11216         (truncsfhf2): New.
11217         * config/arm/arm.md: (fpu): Add neon_fp16.
11218         (floatsihf2, floatdihf2): New.
11219         (fix_trunchfsi2, fix_trunchfdi2): New.
11220         (truncdfhf2): New.
11221         (extendhfdf2): New.
11222         (movhf): New.
11223         (*arm32_movhf): New.
11224         (*thumb1_movhf): New.
11225         (consttable_2): Add check for HFmode constants.
11226         (consttable_4): Handle HFmode constants.
11227
11228 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
11229
11230         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
11231
11232 2009-06-17  Olivier Hainque  <hainque@adacore.com>
11233
11234         * collect2.c (main): Use CONST_CAST2 to perform char ** to
11235         const char ** conversion in AIX specific section.
11236
11237 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
11238
11239         * config/i386/i386.c (ix86_special_builtin_type): Remove
11240         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
11241         (bdesc_special_args): Updated.
11242         (ix86_init_mmx_sse_builtins): Likewise.
11243         (ix86_expand_special_args_builtin): Likewise.
11244
11245 2009-06-17  Richard Henderson  <rth@redhat.com>
11246
11247         * tree-pretty-print.c (maybe_dump_asm_name): New.
11248         (dump_decl_name): Use it.
11249         (PRINT_FUNCTION_NAME): Merge into...
11250         (dump_function_name): ... here.  Use maybe_dump_asm_name.
11251
11252 2009-06-17  Cary Coutant  <ccoutant@google.com>
11253
11254         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
11255         Change caller.
11256         * debug.c (struct gcc_debug_hooks): Change placeholder for
11257         source_line hook.
11258         (debug_nothing_int_charstar_int): Replaced by...
11259         (debug_nothing_int_charstar_int_bool): ...this.
11260         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
11261         source_line prototype.
11262         (debug_nothing_int_charstar_int): Replaced by...
11263         (debug_nothing_int_charstar_int_bool): ...this.
11264         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
11265         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
11266         Output is_stmt operand when necessary.
11267         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
11268         (notice_source_line): Add is_stmt parameter.
11269         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
11270         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
11271         Change callers.
11272         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
11273         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
11274
11275 2009-06-17  Ian Lance Taylor  <iant@google.com>
11276
11277         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
11278         Change all uses.
11279         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
11280         call uses.
11281
11282 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
11283
11284         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
11285         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
11286         tree_strip_sign_nop_conversions and
11287         tree_ssa_strip_useless_type_conversions rather than stripping
11288         the operations here.
11289         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
11290         Declare them.
11291         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
11292         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
11293         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
11294         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
11295         functions.
11296
11297 2009-06-17  Michael Eager  <eager@eagercon.com>
11298
11299         * config/rs6000/constraints.md (register_constraint "d"): New.
11300         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
11301         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
11302         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
11303         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
11304         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
11305         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
11306         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
11307         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
11308         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
11309         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
11310         __fctiwz): Same.
11311         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
11312         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
11313         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
11314         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
11315         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
11316         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
11317         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
11318         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
11319         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
11320         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
11321         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
11322         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
11323         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
11324         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
11325
11326 2009-06-16  Ian Lance Taylor  <iant@google.com>
11327
11328         * profile.c (total_num_never_executed): Don't define.
11329         (compute_branch_probabilities): Don't count or print
11330         num_never_executed.
11331         (init_branch_prob): Don't set total_num_never_executed.
11332         (end_branch_prob): Don't print total_num_never_executed.
11333
11334 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
11335
11336         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
11337
11338 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
11339
11340         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
11341         (nabstd2_fpr): Same.
11342
11343 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
11344
11345         * expr.c (expand_assignment): Change complex type check.
11346
11347 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
11348
11349         * doc/plugins.texi (Building GCC plugins): Added new section.
11350
11351 2009-06-17  Ian Lance Taylor  <iant@google.com>
11352
11353         * c-pch.c (get_ident): Don't set size of templ array.
11354         (pch_init): Don't set size of partial_pch array.
11355
11356         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
11357         string constant to intialize an array whose size is the length of
11358         the string.
11359
11360 2009-06-17  Richard Guenther  <rguenther@suse.de>
11361
11362         PR tree-optimization/40389
11363         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
11364         to addressable types.
11365         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
11366
11367 2009-06-17  Richard Guenther  <rguenther@suse.de>
11368
11369         PR middle-end/40460
11370         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
11371         if there is no evolution of left in the loop bail out.
11372         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
11373         chrec_fold_multiply.
11374
11375 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
11376             Janis Johnson  <janis187@us.ibm.com>
11377
11378         PR target/39254
11379         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
11380         for the symbol ref of a constant that is the source of a move
11381         - nor for any other not-obvious-label-ref constants.
11382
11383 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
11384
11385         * plugin.c (position_pass): Skip newly inserted pass during list
11386         traversal to avoid repeated insertion.
11387
11388 2009-06-16  Ian Lance Taylor  <iant@google.com>
11389
11390         * vec.h (VEC_stack_alloc): Define different version if
11391         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
11392         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
11393         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
11394         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
11395
11396 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
11397
11398         * config.gcc (extra_headers): Add ia32intrin.h for x86.
11399
11400         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
11401         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
11402         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
11403         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
11404         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
11405         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
11406         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
11407         (bdesc_special_args): Add __builtin_ia32_rdtsc and
11408         __builtin_ia32_rdtscp.
11409         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
11410         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
11411         and __builtin_ia32_rorhi.
11412         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
11413         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
11414         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
11415         (ix86_expand_args_builtin): Likewise.
11416         (ix86_expand_special_args_builtin): Likewise.
11417
11418         * config/i386/i386.md (UNSPECV_RDTSCP): New.
11419         (UNSPECV_RDTSC): Likewise.
11420         (UNSPECV_RDPMC): Likewise.
11421         (*bsr): Renamed to ...
11422         (bsr): This
11423         (*bsr_rex64): Renamed to ...
11424         (bsr_rex64): This.
11425         (rdpmc): New.
11426         (*rdpmc): Likewise.
11427         (*rdpmc_rex64): Likewise.
11428         (rdtsc): Likewise.
11429         (*rdtsc): Likewise.
11430         (*rdtsc_rex64): Likewise.
11431         (rdtscp): Likewise.
11432         (*rdtscp): Likewise.
11433         (*rdtscp_rex64): Likewise.
11434
11435         * config/i386/ia32intrin.h: New.
11436
11437         * config/i386/x86intrin.h: Include <ia32intrin.h>.
11438
11439 2009-06-16  Ian Lance Taylor  <iant@google.com>
11440
11441         * ira-build.c (copy_info_to_removed_store_destinations):
11442         Initialize parent_a.
11443
11444 2009-06-16  Ian Lance Taylor  <iant@google.com>
11445
11446         * c-decl.c (grokdeclarator): Change size_varies to bool.
11447
11448 2009-06-16  Ian Lance Taylor  <iant@google.com>
11449
11450         * sel-sched.c: Make forward declarations of move_op_hooks and
11451         fur_hooks explicitly extern.
11452
11453 2009-06-16  Ian Lance Taylor  <iant@google.com>
11454
11455         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
11456         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
11457
11458 2009-06-16  Ian Lance Taylor  <iant@google.com>
11459
11460         * resource.c (mark_referenced_resources): Change
11461         include_delayed_effects parameter to bool.  Change all callers.
11462         (mark_end_of_function_resources): Likewise.
11463         * reorg.c (insn_references_resource_p): Likewise.
11464         (insn_sets_resource_p): Likewise.
11465         * resource.h (mark_referenced_resources): Update declaration.
11466         (mark_end_of_function_resources): Update declaration.
11467
11468 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
11469
11470         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
11471
11472 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
11473
11474         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
11475         GCC can bootstrap on AIX with GNU Binutils 2.20.
11476
11477 2009-06-16  Ian Lance Taylor  <iant@google.com>
11478
11479         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
11480
11481 2009-06-16  Ian Lance Taylor  <iant@google.com>
11482
11483         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
11484         inline, not extern inline.
11485         (exact_log2): Likewise.
11486         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
11487         test CLZ_HWI.
11488         (exact_log2): Likewise, but don't test CTZ_HWI.
11489
11490 2009-06-16  Ian Lance Taylor  <iant@google.com>
11491
11492         * bitmap.c (bitmap_clear): Don't declare as inline.
11493         * gimple.c (gimplify_assign): Likewise.
11494         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
11495         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
11496         (sched_scan_info): Remove duplicate definition.
11497
11498 2009-06-16  Ian Lance Taylor  <iant@google.com>
11499
11500         * c-common.c (skip_evaluation): Don't define.
11501         (c_inhibit_evaluation_warnings): Define global variable.
11502         (overflow_warning): Check c_inhibit_evaluation_warnings rather
11503         than skip_evaluation.
11504         (convert_and_check, warn_for_div_by_zero): Likewise.
11505         * c-common.h (skip_evaluation): Don't declare.
11506         (c_inhibit_evaluation_warnings): Declare.
11507         * c-parser.c (c_parser_typeof_specifier): Set
11508         c_inhibit_evaluation_warnings rather than skip_evaluation.
11509         (c_parser_conditional_expression): Likewise.
11510         (c_parser_binary_expression): Likewise.
11511         (c_parser_sizeof_expression): Likewise.
11512         (c_parser_alignof_expression): Likewise.
11513         * c-typeck.c (build_indirect_ref): Check
11514         c_inhibit_evaluation_warnings rather than skip_evaluation.
11515         (build_conditional_expr, build_binary_op): Likewise.
11516
11517 2009-06-16  Richard Guenther  <rguenther@suse.de>
11518
11519         * tree-ssa-alias.c (is_escape_site): Remove.
11520         * tree-ssa-alias.h (enum escape_type): Remove.
11521         (is_escape_site): Likewise.
11522         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
11523         via casts and asms without deferring to is_escape_site.
11524
11525 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
11526
11527         PR middle-end/40446
11528         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
11529         use gen_lowpart if op0 has complex mode.
11530
11531 2009-06-16  Richard Guenther  <rguenther@suse.de>
11532
11533         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
11534         variables add them to ESCAPED.
11535         (find_func_aliases): Do not make all indirectly stored values escaped.
11536
11537 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
11538
11539         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
11540         make_decl_one_only.
11541
11542 2009-06-16  Martin Jambor  <mjambor@suse.cz>
11543
11544         PR tree-optimization/40432
11545         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
11546         check whether we need to force gimple register operand.
11547
11548 2009-06-16  Martin Jambor  <mjambor@suse.cz>
11549
11550         PR tree-optimization/40413
11551         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
11552         build_ref_for_offset.
11553         (propagate_subacesses_accross_link): Fix a typo in a comment.
11554
11555 2009-06-16  Ira Rosen  <irar@il.ibm.com>
11556
11557         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
11558         with additional parameter.
11559         * tree-vectorizer.h (enum vect_def_type): Add new value
11560         vect_nested_cycle.
11561         (enum vect_relevant): Add comments.
11562         (vect_is_simple_reduction): Add new argument.
11563         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
11564         Detect nested cycles.
11565         (vect_is_simple_reduction): Update documentation, add an argument to
11566         distinguish inner-loop reduction from nested cycle, detect nested
11567         cycles, fix printings and indentation, don't swap operands in case
11568         of nested cycle.
11569         (get_initial_def_for_reduction): Handle subtraction.
11570         (vect_create_epilog_for_reduction): Add new argument to specify
11571         reduction variable.
11572         (vect_finalize_reduction): Handle subtraction, fix comments.
11573         (vectorizable_reduction): Handle nested cycles. In case of nested
11574         cycle keep track of the reduction variable position. Call
11575         vect_is_simple_reduction with additional parameter. Use original
11576         statement code in reduction epilogue for nested cycle. Call
11577         vect_create_epilog_for_reduction with additional parameter.
11578         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
11579         inner-loop vectorization.
11580         (vect_recog_widen_sum_pattern): Likewise.
11581         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
11582         and reductions.
11583         (vect_mark_stmts_to_be_vectorized): Likewise.
11584         (vect_get_vec_def_for_operand): Handle nested cycles.
11585
11586 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11587
11588         * doc/invoke.texi (Debugging Options): Fix option index entries
11589         for -fdump-statistics, -frandom-seed add entries for
11590         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
11591         (FRV Options): Fix entries for -mTLS, -mtls.
11592         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
11593         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
11594         (M68hc1x Options): Fix @itemx for -mnominmax.
11595         (MCore Options): Fix entry for -mno-lsim.
11596         (MMIX Options): Fix entry for -mabi=mmixware.
11597         (PDP-11 Options): Fix entry for -mbcopy-builtin.
11598
11599 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
11600
11601         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
11602         Mention the plugin mode of gengtype.
11603         * doc/gty.texi (Source Files Containing Type Information): Likewise.
11604         * gengtype.c: Updated copyright.
11605         (plugin_files, nb_plugin_files) Added new static variables.
11606         (measure_input_list) Care about plugin_files.
11607         (write_rtx_next): Added early return in plugin mode.
11608         (create_file): Updated copyright year in generated file. Added
11609         asserts.
11610         (oprintf): Added early return if NULL outf.
11611         (get_output_file_with_visibility): Care of plugin_files.
11612         (get_output_file_name): May return null.
11613         (write_local): Added early return.
11614         (put_mangled_filename): Ditto.
11615         (finish_root_table): Added check for base_files.
11616         (write_roots): Care about null when plugins.
11617         (main): Added plugin mode.
11618
11619 2009-06-15  Ian Lance Taylor  <iant@google.com>
11620
11621         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
11622         * gcov.c (read_count_file): Add braces around variables declared
11623         before label.
11624
11625         * c.opt (Wjump-misses-init): New warning.
11626         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
11627         -Wall and -Wc++-compat if not already set.
11628         (c_common_post_options): Clear warn_jump_misses_init if it was not
11629         set.
11630         * c-decl.c (struct c_binding): Change type field to a union with
11631         new label field.  Make it the first field in the struct.  Update
11632         references to type to use u.type instead.
11633         (struct c_spot_bindings): Define.
11634         (struct c_goto_bindings): Define.
11635         (c_goto_bindings_p): Define, along with VECs.
11636         (struct c_label_vars): Define.
11637         (struct c_scope): Add has_label_bindings field.
11638         (bind_label, set_spot_bindings): New static functions.
11639         (decl_jump_unsafe, update_spot_bindings): New static functions.
11640         (update_label_decls): New static function.
11641         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
11642         Update binding u.label field to shadowed field.
11643         (c_binding_start_stmt_expr): New function.
11644         (c_binding_end_stmt_expr): New function.
11645         (pushdecl): Don't call c_begin_vm_scope.
11646         (make_label): Add defining and p_label_vars parameters.  Change
11647         all callers.
11648         (lookup_label): Correct test for whether a label has not yet been
11649         defined.  Call bind_label rather than bind.
11650         (warn_about_goto): New static function.
11651         (lookup_label_for_goto): New function.
11652         (declare_label): Call bind_label rather than bind.
11653         (check_earlier_gotos): New static function.
11654         (define_label): Don't give errors about jumping into statement
11655         expressions or scopes of variably modified types.  Call
11656         set_spot_bindings and check_earlier_gotos.  Call bind_label
11657         instead of bind.  Don't set label_context_stack_se or
11658         label_context_stack_vm.
11659         (c_get_switch_bindings): New function.
11660         (c_release_switch_bindings): New function.
11661         (c_check_switch_jump_warnings): New function.
11662         (start_function): Don't set label_context_stack_se or
11663         label_context_stack_vm.
11664         (finish_function): Likewise.
11665         * c-typeck.c (label_context_stack_se): Don't define.
11666         (label_context_stack_vm): Don't define.
11667         (c_finish_goto_label): Call lookup_label_for_goto rather than
11668         lookup_label.  Don't give errors about jumping into a statement
11669         expression or the scope of a variably modified type.  Don't set
11670         label_context_stack_se or label_context_stack_vm.
11671         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
11672         fields.  Add bindings field.
11673         (c_start_case): Don't set deleted fields.  Set bindings field.
11674         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
11675         or blocked_vm.  Call c_check_switch_jump_warnings.
11676         (c_finish_case): Don't test blocked_stmt_expr field.  Call
11677         c_release_switch_bindings.
11678         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
11679         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
11680         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
11681         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
11682         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
11683         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
11684         (c_begin_vm_scope, c_end_vm_scope): Don't define.
11685         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
11686         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
11687         (C_DECL_UNJUMPABLE_VM): Don't define.
11688         (C_DECL_UNDEFINABLE_VM): Don't define.
11689         (struct c_label_list): Don't define.
11690         (struct c_label_context_se): Don't define.
11691         (struct c_label_context_vm): Don't define.
11692         (struct c_spot_bindings): Declare.
11693         (c_bindings_start_stmt_expr): Declare.
11694         (c_bindings_end_stmt_expr): Declare.
11695         (lookup_label_for_goto): Declare.
11696         (c_get_switch_bindings, c_release_switch_bindings): Declare.
11697         (c_check_switch_jump_warnings): Declare.
11698         (label_context_stack_se, label_context_stack_vm): Don't declare.
11699         (c_finish_goto_label): Update declaration.
11700         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
11701         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
11702         (Warning Options): Document -Wjump-misses-init.
11703
11704 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
11705
11706         * tree-object-size.c (addr_object_size): Fix a pasto in the last
11707         change.
11708
11709 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
11710
11711         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
11712
11713 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
11714
11715         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
11716
11717 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
11718
11719         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
11720
11721 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
11722
11723         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
11724         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
11725         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
11726         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
11727         * dwarf2asm.c (dw2_force_const_mem): Update call to
11728         make_decl_one_only.
11729         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
11730         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
11731         * langhooks.c (lhd_comdat_group): Remove.
11732         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
11733         * tree.h (DECL_COMDAT_GROUP): New.
11734         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
11735         (tree_decl_with_vis): Add comdat_group. Remove one_only.
11736         (make_decl_one_only): Change signature.
11737         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
11738         make_decl_one_only.
11739         (make_decl_one_only): Change signature.
11740         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
11741
11742 2009-06-15  Richard Guenther  <rguenther@suse.de>
11743
11744         PR middle-end/40439
11745         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
11746
11747 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11748
11749         * tree-ssa-math-opts.c: Remove extra divide.
11750
11751 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11752
11753         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
11754
11755 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11756
11757         * passes.c: Add bswap pass.
11758         * tree-pass.h: Add pass_optimize_bswap declaration.
11759         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
11760         Include rtl.h, expr.h and optabs.h for optab_handler check.
11761         (struct symbolic_number, pass_optimize_bswap): New definition.
11762         (do_shift_rotate, verify_symbolic_number_p): New functions.
11763         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
11764         (gate_optimize_bswap): New function.
11765         * tree.c (widest_int_cst_value): New function.
11766         * tree.h (widest_int_cst_value): Prototype added.
11767
11768 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
11769
11770         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
11771         REG_EQUAL/REG_EQUIV notes.
11772
11773 2009-06-14  Richard Guenther  <rguenther@suse.de>
11774
11775         PR middle-end/40389
11776         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
11777         has its address taken if NRV was applied and it is addressable.
11778         * tree-ssa-structalias.c (get_constraint_for_address_of): New
11779         function split out from ...
11780         (get_constraint_for_1): ... here.
11781         (handle_rhs_call): Use it to mark the return slot escaped if
11782         it is addressable and NRV was applied.
11783
11784 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
11785
11786         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
11787         Change first argument type to location_t.
11788         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
11789         Do not set input_location.
11790         Use loc instead of input_location throughout.
11791
11792 2009-06-13  Richard Guenther  <rguenther@suse.de>
11793
11794         PR tree-optimization/40421
11795         * tree-predcom.c (should_unroll_loop_p): Remove.
11796         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
11797
11798 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
11799
11800         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11801         Add location argument.
11802
11803 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
11804
11805         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
11806         build_decl.
11807         * config/s390/s390.c (s390_build_builtin_va_list): Same.
11808         (s390_gimplify_va_arg): Pass location to create_artificial_label.
11809         * config/spu/spu-protos.h: Add location to
11810         spu_resolve_overloaded_builtin.
11811         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
11812         spu_build_builtin_va_list.
11813         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
11814         argument.  Pass location to build_function_call_vec.
11815         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
11816         build_decl.
11817         (emit_fpu_switch): Same.
11818         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
11819         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
11820         to build_decl and create_artificial_label.
11821         (xtensa_gimplify_va_arg_expr): Same.
11822         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
11823         (xstormy16_gimplify_va_arg_expr): Same.
11824         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
11825         * config/arm/arm.c (arm_build_builtin_va_list): Same.
11826         * config/mips/mips.c (mips_build_builtin_va_list): Same.
11827         (mips16_build_function_stub): Same.
11828         (mips16_build_call_stub): Same.
11829
11830 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
11831
11832         PR target/40327
11833         * arm/constraints.md (Pa, Pb): New constraints.
11834         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
11835         split pattern to deal with them.
11836
11837 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
11838
11839         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
11840         fix index entry for -Xpreprocessor.
11841
11842 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
11843
11844         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11845         Add location argument to build_decl call.
11846         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
11847         (rs6000_init_builtins): Same.
11848         (spe_init_builtins): Same.
11849         (rs6000_gimplify_va_arg): Add location argument to
11850         create_artificial_label call.
11851
11852 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
11853
11854         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
11855         * combine-stack-adj.c (pass_stack_adjustments): Use it.
11856         * Makefile.in: Fix GGC dependency for gcse.o.
11857
11858 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
11859
11860         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
11861         * gimple-pretty-print.c (dump_gimple_stmt): Same.
11862         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
11863         created.
11864         * c-parser.c (c_parser_binary_expression): Use current column while
11865         building binary operations.
11866         * common.opt (fshow-column): Enable by default.
11867         * tree-vrp.c (check_array_ref): Use warning_at.
11868         (check_array_bounds): Use location from call back if expr has no
11869         location.
11870         * tree.h: Add location argument to maybe_fold_*.
11871         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
11872         (maybe_fold_offset_to_array_ref): Add location argument and use it.
11873         (maybe_fold_offset_to_component_ref): Same.
11874         (maybe_fold_offset_to_reference): Same.
11875         (maybe_fold_offset_to_address): Same.
11876         (maybe_fold_stmt_indirect): Same.
11877         (maybe_fold_stmt_addition): Same.
11878         (fold_stmt_r): Pass location to maybe_fold_*.
11879         (fold_gimple_assign): Same.
11880         * c-tree.h: Add location argument to finish_decl,
11881         default_function_array_conversion, store_init_value.
11882         * c-decl.c (define_label): Use error_at.
11883         (c_make_fname_decl): Pass location to finish_decl.
11884         (finish_decl): New location argument.
11885         (build_compound_literal): Pass location to store_init_value.
11886         (grokdeclarator): Pass location to finish_decl.
11887         (grokfield): Same.
11888         * c-typeck.c (array_to_pointer_conversion): New location argument.
11889         (function_to_pointer_conversion): Same.
11890         (default_function_array_conversion): Same.
11891         (parser_build_unary_op): Pass location to overflow_warning.
11892         (parser_build_binary_op): Same.  Use warning_at.
11893         (build_unary_op): Pass location to array_to_pointer_conversion.
11894         (build_c_cast): Pass location to digest_init.
11895         (build_modify_expr): New location argument.
11896         (convert_for_assignment): Same.
11897         (store_init_value): Same.
11898         (digest_init): Same.
11899         (output_init_element): Pass location to digest_init and
11900         array_to_pointer_conversion.
11901         (c_finish_return): Pass location to convert_for_assignment.
11902         * gimplify.c (gimplify_conversion): Pass location to
11903         maybe_fold_offset_to_address.
11904         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
11905         to maybe_fold_stmt_addition.
11906         * c-omp.c (c_finish_omp_atomic): Pass new location to
11907         build_modify_expr.
11908         (c_finish_omp_for): Same.
11909         * c-common.c (overflow_warning): New argument.
11910         * c-common.h: New argument to build_modify_expr, overflow_warning.
11911         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
11912         finish_decl.
11913         (c_parser_initializer): Pass location to
11914         default_function_array_conversion.
11915         (c_parser_initelt): Same.
11916         (c_parser_initval): Same.
11917         (c_parser_asm_operands): Same.
11918         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
11919         (c_parser_conditional_expression): Same.
11920         (c_parser_binary_expression): Add location info to stack.  Use it.
11921         (c_parser_unary_expression): Pass location to
11922         default_function_array_conversion, parser_build_unary_op,
11923         build_indirect_ref, c_parser_postfix_expression_after_primary.
11924         (c_parser_postfix_expression_after_primary): New location argument.
11925         Use it.
11926         (c_parser_expression_conv): Pass location to
11927         default_function_array_conversion.
11928         (c_parser_expr_list): Same.
11929         (c_parser_omp_atomic): Same.
11930         (c_parser_omp_for_loop): Same.
11931         * c-tree.h: (struct c_declarator): Add comment to id_loc.
11932         (build_array_declarator): New argument.
11933         * c-decl.c (build_array_declarator): Add location argument.
11934         (grokdeclarator): Set id_loc for cdk_array.
11935         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
11936         build_array_declarator.
11937         * tree.c (build_omp_clause): Add location argument.
11938         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
11939         (OMP_CLAUSE_LOCATION): New macro.
11940         (struct tree_omp_clause): Add location field.
11941         (build_omp_clause): Add argument.
11942         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
11943         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
11944         build_omp_clause.
11945         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
11946         (cp_parser_omp_clause_collapse): Same.
11947         (cp_parser_omp_clause_default): Same.
11948         (cp_parser_omp_clause_if): Same.
11949         (cp_parser_omp_clause_nowait): Same.
11950         (cp_parser_omp_clause_num_threads): Same.
11951         (cp_parser_omp_clause_ordered): Same.
11952         (cp_parser_omp_clause_schedule): Same.
11953         (cp_parser_omp_clause_untied): Same.
11954         (cp_parser_omp_for_loop): Same.
11955         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
11956         * c-tree.h (c_start_case): Add location argument.
11957         (c_process_expr_stmt): Same.
11958         (c_finish_goto_*): Same.
11959         * tree-parloops.c (initialize_reductions): Pass location to
11960         build_omp_clause.
11961         (create_parallel_loop): Same.
11962         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
11963         (gfc_trans_omp_reduction_list): Same.
11964         (gfc_trans_omp_clauses): Same.
11965         (gfc_trans_omp_do): Same.
11966         * c-typeck.c (c_finish_goto_label): Same.
11967         (c_finish_goto_ptr): New location argument.
11968         (c_start_case): Same.
11969         (emit_side_effect_warnings): Same.
11970         (c_process_expr_stmt): Same.
11971         (c_finish_stmt_expr): Same.
11972         (c_finish_omp_clauses): Use error_at instead of error.
11973         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
11974         build_omp_clause.
11975         * c-omp.c (c_split_parallel_clauses): New location argument.
11976         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
11977         to build_omp_clause.
11978         (convert_local_reference_stmt): Same.
11979         (convert_gimple_call): Same.
11980         * c-common.h (c_split_parallel_clauses): New argument.
11981         * c-parser.c (c_parser_statement_after_labels): Pass location to
11982         c_finish_goto_label.
11983         (c_parser_switch_statement): Pass location to c_start_case.
11984         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
11985         and c_process_expr_stmt.
11986         (c_parser_omp_variable_list): Add location argument.
11987         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
11988         (c_parser_omp_clause_default): Same.
11989         (c_parser_omp_clause_if): Same.
11990         (c_parser_omp_clause_num_threads): Same.
11991         (-c_parser_omp_clause_ordered): Same.
11992         (c_parser_omp_clause_reduction): Pass location to
11993         c_parser_omp_variable_list.
11994         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
11995         (c_parser_omp_clause_untied): Same.
11996         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
11997         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
11998
11999         * c-tree.h (check_for_loop_decls, undeclared_variable,
12000         build_component_ref, build_array_ref, build_external_ref,
12001         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
12002         build_conditional_expr, build_compound_expr, c_cast_expr,
12003         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
12004         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
12005         argument.
12006         * c-semantics.c (build_stmt): Same.
12007         (build_case_label): Same.
12008         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
12009         (undeclared_variable): New argument.
12010         (make_label): Same.
12011         (lookup_label): Pass location on down.
12012         (define_label): Same.
12013         (finish_decl): Same.
12014         (build_compound_literal): Same.
12015         (finish_struct): Same.
12016         (finish_function): Do not set location here.
12017         (check_for_loop_decls): New argument.
12018         * tree.c (save_expr): Set location.
12019         (build_empty_stmt): New argument.
12020         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
12021         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
12022         * builtins.c (gimplify_va_arg_expr): Use locations.
12023         (expand_builtin_sync_operation): Same.
12024         * c-typeck.c (build_component_ref): New argument.
12025         (build_array_ref): Same.
12026         (build_external_ref): Same.
12027         (c_expr_sizeof_expr): Same.
12028         (c_expr_sizeof_type): Same.
12029         (parser_build_unary_op): Same.
12030         (build_conditional_expr): Same.
12031         (build_compound_expr): Pass location on down.
12032         (build_compound_expr): New argument.
12033         (build_c_cast): Same.
12034         (c_cast_expr): Same.
12035         (build_asm_expr): Same.
12036         (c_finish_return): Same.
12037         (c_process_expr_stmt): Pass location on down.
12038         (c_finish_stmt_expr): New argument.
12039         (push_clenaup): Same.
12040         (c_finish_omp_parallel): Same.
12041         (c_finish_omp_task): Same.
12042         * gimplify.c (gimplify_call_expr): Pass location on down.
12043         * c-omp.c (c_finish_omp_master): New argument.
12044         (c_finish_omp_critical): Same.
12045         (c_finish_omp_ordered): Same.
12046         (c_finish_omp_barrier): Same.
12047         (-c_finish_omp_taskwait): Same.
12048         (c_finish_omp_atomic): Same.
12049         (c_finish_omp_flush): Same.
12050         * tree-inline.c (copy_tree_body_r): Pass location on down.
12051         (inline_forbidden_p): Remove use of input_location.
12052         * c-gimplify.c (c_build_bind_expr): New argument.
12053         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
12054         (c_sizeof_or_alignof_type): New argument.
12055         (c_alignof_expr): Same.
12056         (build_va_arg): Same.
12057         (c_add_case_label): Same.
12058         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
12059         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
12060         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
12061         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
12062         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
12063         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
12064         New argument.
12065         * stub-objc.c (objc_build_selector_expr): Same.
12066         (objc_build_throw_stmt): Same.
12067         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
12068         (c_parser_initelt): Same.
12069         (c_parser_compound_statement): Same.
12070         (c_parser_compound_statement_nostart): Same.
12071         (c_parser_label): Same.
12072         (c_parser_statement_after_labels): Same.
12073         (c_parser_if_body): Same.
12074         (c_parser_else_body): Same.
12075         (c_parser_if_statement): Same.
12076         (c_parser_switch_statement): Same.
12077         (c_parser_while_statement): Same.
12078         (c_parser_do_statement): Same.
12079         (c_parser_for_statement): Same.
12080         (c_parser_asm_statement): Same.
12081         (c_parser_conditional_expression): Same.
12082         (c_parser_binary_expression): Same.
12083         (c_parser_cast_expression): Same.
12084         (c_parser_unary_expression): Same.
12085         (c_parser_sizeof_expression): Same.
12086         (c_parser_alignof_expression): Same.
12087         (c_parser_postfix_expression): Same.
12088         (c_parser_expression): Same.
12089         (c_parser_objc_receiver): Same.
12090         (c_parser_omp_variable_list): Same.
12091         (c_parser_omp_structured_block): Same.
12092         (c_parser_omp_atomic): New argument.
12093         (c_parser_omp_barrier): Same.
12094         (c_parser_omp_critical): Same.
12095         (c_parser_omp_flush): Pass location on down.
12096         (c_parser_omp_for_loop): New argument.
12097         (c_parser_omp_for): Same.
12098         (c_parser_omp_master): Same.
12099         (c_parser_omp_ordered): Same.
12100         (c_parser_omp_sections_scope): Same.
12101         (c_parser_omp_sections): Same.
12102         (c_parser_omp_parallel): Same.
12103         (c_parser_omp_single): Same.
12104         (c_parser_omp_task): Same.
12105         (c_parser_omp_taskwait): Pass location on down.
12106         (c_parser_omp_construct): Same.
12107         (c_parser_omp_threadprivate): Same.
12108         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
12109         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
12110         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
12111         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
12112         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
12113         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
12114         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
12115         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
12116         config/i386/i386.c, stmt.c:
12117         Add location argument to the following function definitions and/or
12118         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
12119         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
12120         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
12121         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
12122         do_case, c_finish_bc_stmt, build_compound_literal,
12123         build_function_call.
12124         * c-decl.c (build_compound_literal): Add location argument.
12125         Make all diagnostic calls use location.
12126         (start_struct): Same.
12127         (finish_struct): Same.
12128         (start_enum): Same.
12129         (build_enumerator): Same.
12130         (start_function): Same.
12131         (grokdeclarator): Make all diagnostic calls use location.
12132         (store_parm_decls_oldstyle): Same.
12133         * c-typeck.c (build_function_call): Add location argument.
12134         Make all diagnostic calls use location.
12135         (do_case): Same.
12136         (c_finish_bc_stmt): Same.
12137         * tree-nested.c (get_trampoline_type): Add argument.
12138         Pass location to build_decl.
12139         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
12140         * rtl.h (RTL_LOCATION): New.
12141         * c-common.c (c_add_case_label): Add location argument.
12142         Make all diagnostic calls use location.
12143         * c-common.h: Add location argument to make_fname_decl, do_case,
12144         c_add_case_label, build_function_call, resolve_overloaded_builtin.
12145         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
12146         Set it appropriately for every case.  Pass enum_loc to start_enum
12147         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
12148         parser_xref_tag.
12149         (c_parser_struct_or_union_specifier): Save location.  Use it for
12150         start_struct, finish_struct, and parser_xref_tag.
12151
12152 2009-06-12  Ian Lance Taylor  <iant@google.com>
12153
12154         * fold-const.c (fold_unary): Rename local variable and to and_expr.
12155
12156         * c-opts.c (c_common_handle_option): For -Wc++-compat set
12157         cpp_opts->warn_cxx_operator_names.
12158
12159 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12160
12161         PR tree-opt/38865
12162         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
12163         is returns NULL and OP is a VCE, look through the VCE.
12164
12165 2009-06-12  Ian Lance Taylor  <iant@google.com>
12166
12167         PR bootstrap/40430
12168         * collect2.c (main): Use CONST_CAST2 in code inside #if
12169         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
12170
12171 2009-06-12  Joey Ye  <joey.ye@intel.com>
12172
12173         PR middle-end/39146
12174         * cfgexpand.c (get_decl_align_unit): Update
12175         max_used_stack_slot_alignment with align instead of
12176         stack_alignment_needed.
12177
12178         * function.c (assign_stack_local_1): Update
12179         max_used_stack_slot_alignment with alignment_in_bits instead
12180         of stack_alignment_needed.
12181         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
12182         here.
12183
12184 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
12185
12186         * dwarf2out.c (last_var_location_insn): New variable.
12187         (dwarf2out_end_epilogue): Clear last_var_location_insn.
12188         (dwarf2out_var_location): Don't record anything after last real
12189         insn.  Only change labels if there were any real instructions
12190         in between last note and this one, or if changed sections.
12191
12192 2009-06-11  Richard Henderson  <rth@redhat.com>
12193
12194         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
12195         note when storing the frame pointer in a register.
12196         (FRP): Don't redefine to nothing for epilogue.
12197         (alpha_expand_epilogue): Mark register and sp restores.
12198         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
12199
12200         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
12201         when gen_lowpart is needed.
12202
12203 2009-06-11  Richard Henderson  <rth@redhat.com>
12204
12205         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
12206
12207         * dwarf2out.c (need_data_align_sf_opcode): New.
12208         (div_data_align): Move earlier.
12209         (def_cfa_1, reg_save): Use it.
12210
12211 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
12212
12213         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
12214         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
12215         (ix86_handle_option): Handle OPT_mcrc32.
12216         (ix86_target_string): Add -mcrc32.
12217         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
12218
12219         * config/i386/i386.h (TARGET_CRC32): New.
12220
12221         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
12222         (sse4_2_crc32di): Likewise.
12223
12224         * config/i386/i386.opt (mcrc32): New.
12225
12226         * doc/invoke.texi: Document -mcrc32.
12227
12228 2009-06-11  Richard Henderson  <rth@redhat.com>
12229
12230         * common.opt (gdwarf-): Accept a version number.
12231         * doc/invoke.texi (gdwarf-): Update docs.
12232         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
12233         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
12234         version level, and record it.
12235
12236         * dwarf2.h (DW_CIE_VERSION): Remove.
12237         * dwarf2out.c (DWARF_VERSION): Remove.
12238         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
12239         (output_call_frame_info): Use CIE version 3 for dwarf3,
12240         or if the return register column is out of range for version 1.
12241         (dwarf_stack_op_name): Add all dwarf3 values.
12242         (DEBUG_PUBTYPES_SECTION): New.
12243         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
12244         encoding change for dwarf3.
12245         (output_die) [dw_val_class_die_ref]: Likewise.
12246         (output_compilation_unit_header): Emit correct version for dwarf3.
12247         (output_line_info): Likewise.
12248         (output_pubnames): Update for DWARF_VERSION removal.
12249         (output_aranges): Likewise.
12250         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
12251         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
12252         (dwarf2out_finish): Likewise.
12253
12254 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
12255
12256         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
12257         in r148403.
12258
12259 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
12260
12261         PR c/39252
12262         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
12263         * builtins.c (expand_builtin_unreachable): New function.
12264         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
12265         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
12266         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
12267         successors.
12268         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
12269         searching for missing barriers.
12270
12271 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12272
12273         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
12274         when -fprofile-generate* was passed.
12275         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
12276
12277 2009-06-11  Anthony Green  <green@moxielogic.com>
12278
12279         * config/moxie/moxie.md: Define length attribute for all instructions.
12280         (rCC): Define.
12281         (*b<cond:code>): Support limited branch ranges for new PC-relative
12282         branch instructions.
12283         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
12284
12285 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
12286
12287         * config/i386/i386.c (min_insn_size): Use get_attr_length
12288         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
12289         For __asm return 0.
12290
12291         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
12292         instead of emit_insn_before.
12293
12294 2009-06-10  Ian Lance Taylor  <iant@google.com>
12295
12296         PR bootstrap/40408
12297         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
12298         GIMPLE_SWITCH.
12299
12300 2009-06-10  Revital Eres  <eres@il.ibm.com>
12301
12302         * passes.c (init_optimization_passes): Reschedule
12303         predictive-commoning pass before complete unroll pass.
12304
12305 2009-06-10  Martin Jambor  <mjambor@suse.cz>
12306
12307         * cgraph.c (cgraph_node_can_be_local_p): New function.
12308         (cgraph_make_node_local): New function.
12309         * cgraph.h (cgraph_node_can_be_local_p): Declare.
12310         (cgraph_make_node_local): Declare.
12311
12312 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
12313
12314         * tree.h (tree_base): Add packed_flag and user_align fields.
12315         Decrease size of spare field.
12316         (TYPE_USER_ALIGN): Use user_align from tree_base.
12317         (DECL_USER_ALIGN): Likewise.
12318         (TYPE_PACKED): Use packed_flag from tree_base.
12319         (DECL_PACKED): Likewise.
12320         (tree_type): Delete packed_flag and user_align fields.  Widen
12321         precision field.  Widen mode field and shuffle fields to align
12322         mode on an 8-bit boundary.
12323         (tree_decl_common): Delete decl_flag_1 and user_align fields.
12324         Renumber decl_flag_* fields.  Fix comments.  Widen
12325         decl_common_unused field.
12326         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
12327         (DECL_EXTERNAL): Likewise.
12328         (DECL_BIT_FIELD): Likewise.
12329         (DECL_NONADDRESSABLE_P): Likewise.
12330         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
12331         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
12332
12333 2009-06-10  Ian Lance Taylor  <iant@google.com>
12334
12335         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
12336         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
12337         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
12338         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
12339         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
12340         DEF_VEC_ALLOC_FUNC_P.
12341         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
12342         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
12343         DEF_VEC_ALLOC_FUNC_O.
12344         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
12345         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
12346         DEF_VEC_ALLOC_FUNC_I.
12347         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
12348         (vec_stack_p_reserve_exact_1): Declare.
12349         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
12350         (vec_stack_free): Declare.
12351         (VEC_stack_alloc): Define.
12352         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
12353         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
12354         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
12355         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
12356         for void_p.
12357         (stack_vecs): New static variable.
12358         (vec_stack_p_reserve_exact_1): New function.
12359         (vec_stack_o_reserve_1): New static function.
12360         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
12361         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
12362         (vec_stack_free): New function.
12363         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
12364         (VEC_df_ref_stack_alloc): Define.
12365         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
12366         DEF_VEC_ALLOC_P_STACK.
12367         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
12368         (struct df_collection_rec): Change _vec fields to VEC.  Remove
12369         _use fields.
12370         (df_free_collection_rec): Adjust for new fields.
12371         (df_insn_rescan): Use new df_collection_rec fields.
12372         (df_notes_rescan, df_canonize_collection_rec): Likewise.
12373         (df_ref_create_structure, df_ref_record): Likewise.
12374         (df_get_conditional_uses, df_get_call_refs): Likewise.
12375         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
12376         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
12377         (df_record_exit_block_uses, df_bb_verify): Likewise.
12378         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
12379         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
12380         Remove count parameter.  Change return type to void.  Change all
12381         callers.
12382         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
12383         Remove count parameter.  Change return type to void.  Change all
12384         callers.
12385         (df_install_refs): Change old_vec parameter to VEC.  Remove count
12386         parameter.  Change all callers.
12387         (df_install_mws): Change old_vec parameter to VEC.  Remove count
12388         parameter.  Change all callers.
12389         (df_refs_verify): Change new_rec parameter to VEC.  Change call
12390         callers.
12391         (df_mws_verify): Likewise.
12392
12393 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
12394
12395         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
12396
12397 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
12398
12399         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
12400
12401 2009-06-10  Anthony Green  <green@moxielogic.com>
12402
12403         * config/moxie/crti.asm: New file.
12404         * config/moxie/crtn.asm: New file.
12405         * config/moxie/moxie.c: New file.
12406         * config/moxie/moxie.h: New file.
12407         * config/moxie/sfp-machine.h: New file.
12408         * config/moxie/moxie-protos.h: New file.
12409         * config/moxie/t-moxie: Created.
12410         * config/moxie/t-moxie-softfp: Created.
12411         * config/moxie/moxie.md: Created.
12412         * config/moxie/constraints.md: Created.
12413         * config.gcc: Add moxie support.
12414         * doc/md.texi (Machine Constraints): Add moxie constraints.
12415         * doc/contrib.texi (Contributors): Mention moxie port.
12416         * doc/install.texi (Specific): Mention the moxie port.
12417
12418 2009-06-09  Ian Lance Taylor  <iant@google.com>
12419
12420         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
12421         compiling with C++.
12422         * optabs.c (optab_table): Only use designated initializers if
12423         HAVE_DESIGNATED_INITIALIZERS is defined.
12424         (convert_optab_table): Likewise.
12425         (init_optabs): Always call init_insn_codes if
12426         HAVE_DESIGNATED_INITIALIZERS is not defined.
12427
12428 2009-06-09  Ian Lance Taylor  <iant@google.com>
12429
12430         * targhooks.c (default_builtin_vectorized_function): Change fn
12431         parameter to unsigned int.
12432         (default_builtin_vectorized_conversion): Change code parameter to
12433         unsigned int.
12434         (default_builtin_reciprocal): Change fn parameter to unsigned int.
12435         * targhooks.h: Update declarations.
12436         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
12437         parameter to unsigned int.
12438
12439         * c-typeck.c (comptypes_check_enum_int): New static function.
12440         (comptypes_internal): Add enum_and_int_p parameter.  Change all
12441         callers.
12442         (comp_target_types): Add location parameter.  Change all callers.
12443         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
12444         Change all callers.
12445         (function_types_compatible_p, type_lists_compatible_p): Likewise.
12446         (build_conditional_expr): Add colon_loc parameter.  Change all
12447         callers.
12448         (convert_for_assignment): Add location parameter.  Change all callers.
12449         * c-parser.c (c_parser_conditional_expression): Pass location of
12450         colon to build_conditional_expr.
12451         * c-tree.h (build_conditional_expr): Update declaration.
12452
12453 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
12454
12455         * graphite.c: Revert previous patch.
12456
12457 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
12458
12459         PR bootstrap/40103
12460         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
12461
12462 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
12463
12464         * tree-ssa-loop-prefetch.c
12465         (loop_prefetch_arrays): Fixed a portability problem in printf format
12466         string.
12467
12468 2009-06-09  Martin Jambor  <mjambor@suse.cz>
12469
12470         PR tree-optimization/40351
12471         * tree-sra.c (propagate_subacesses_accross_link): Check that a
12472         refrence to a potential artifical subaccess can be constructed.
12473
12474 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
12475
12476         * config/sh/sh-protos.h (sh_optimization_options): Declare.
12477         (sh_override_options): Likewise.
12478         * config/sh/sh.c: Include params.h.
12479         (sh_optimization_options): New.
12480         (sh_override_options): Likewise.
12481         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
12482         (OVERRIDE_OPTIONS): Use sh_override_options.
12483
12484 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
12485
12486         * dwarf2out.c (emit_cfa_remember): New variable.
12487         (add_fde_cfi): If emit_cfa_remember, recurse to add
12488         DW_CFA_remember_state first.
12489         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
12490         instead just set emit_cfa_remember.
12491
12492 2009-06-08  Jan Hubicka  <jh@suse.cz>
12493
12494         PR debug/40126
12495         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
12496
12497 2009-06-08  Jan Hubicka  <jh@suse.cz>
12498
12499         PR middle-end/39834
12500         * cgraphunit.c (save_inline_function_body): Do not copy transform
12501         hooks for saved inline bodies.
12502         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
12503         for given function.
12504
12505 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
12506
12507         * jump.c (returnjump_p): Handle delayed branches.  Add missing
12508         function comment.
12509
12510 2009-06-08  Jan Hubicka  <jh@suse.cz>
12511
12512         PR middle-end/40102
12513         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
12514         original node might've been modified.
12515         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
12516
12517 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
12518
12519         * tree-object-size.c (addr_object_size): Add OSI argument.
12520         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
12521         (compute_builtin_object_size, expr_object_size): Adjust callers.
12522         (plus_stmt_object_size): Call addr_object_size instead of
12523         compute_builtin_object_size.
12524
12525 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
12526             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
12527
12528         * tree-ssa-loop-prefetch.c
12529         (gather_memory_references): Introduced a counter for the number of
12530         memory references.
12531         (anything_to_prefetch_p): Introduced a counter for the number of
12532         prefetches.
12533         (is_loop_prefetching_profitable): New function with a cost model
12534         for prefetching.
12535         (loop_prefetch_arrays): Use the new cost model to determine if
12536         prefetching is profitable.
12537         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
12538         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
12539         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
12540         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
12541         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
12542         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
12543
12544 2009-06-08  Michael Matz  <matz@suse.de>
12545
12546         PR debug/40012
12547         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
12548         partitions use the same.
12549         (expand_one_var): Deal with DECL_RTL sometimes begin set also
12550         for basevars of SSA_NAMEs.
12551         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
12552         to not expand them twice.
12553         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
12554         multiple places.
12555
12556 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
12557
12558         * common.opt (fcompare-debug=, fcompare-debug-second): New.
12559         (fdump-final-insns=, gtoggle): New.
12560         * doc/invoke.texi: Document them.
12561         * final.c (rest_of_clean_state): Dump final insn stream.
12562         * gcc.c (invoke_as): Hook in -fcompare-debug.
12563         (static_spec_functions): Add compare-debug-dump-opt,
12564         compare-debug-self-opt and compare-debug-auxbase-opt.
12565         (compare_debug, compare_debug_second, compare_debug_opt): New.
12566         (switches_debug_check, n_switches_debug_check): New.
12567         (debug_auxbase_opt, debug_check_temp_file): New.
12568         (process_command): Handle -fno-compare-debug, -fcompare-debug and
12569         -fcompare-debug=*.
12570         (do_self_spec): Handle arguments after switches.
12571         (do_spec_1): Add .gk extension to temp file basenames for compare.
12572         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
12573         (cc1_options): Use it instead of normal auxbase computation for
12574         the second compare-debug compilation.
12575         (compare_files): New.
12576         (main): Set up and implement compare debug mode.
12577         (compare_debug_dump_opt_spec_function): New.
12578         (compare_debug_self_opt_spec_function): New.
12579         (compare_debug_auxbase_opt_spec_function): New.
12580         * toplev.c (process_options): Handle flag_gtoggle,
12581         flag_dump_final_insns.
12582         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
12583         during -fcompare-debug-second compilation.
12584
12585 2009-06-07  Ian Lance Taylor  <iant@google.com>
12586
12587         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
12588         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
12589
12590         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
12591         with no default node.  Change warning with %H to warning_at.
12592         Don't clear warn_switch around case checking.
12593         * doc/invoke.texi (Warning Options): Clarify distinction between
12594         -Wswitch and -Wswitch-enum.
12595
12596 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12597
12598         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
12599
12600 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12601
12602         * gbl-ctors.h: Add header guard.
12603
12604 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12605
12606         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
12607         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
12608         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
12609         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
12610         prototypes for removed functions.
12611         (expressions_equal_p): Move to ...
12612         * tree-ssa-sccvn.h: ... here and ...
12613         * matrix-reorg.c: ... adjust includes.
12614
12615 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12616
12617         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
12618
12619 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12620
12621         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
12622         (finish_function): Remove erroneous whitespace.
12623
12624 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12625
12626         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
12627         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
12628
12629 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12630
12631         * errors.c (internal_error): Commentary typo fix.
12632         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
12633         * tree-ssa-pre.c: Ditto.
12634
12635 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12636
12637         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
12638         them is supposed to hold actual statements.
12639
12640 2009-06-06  Ian Lance Taylor  <iant@google.com>
12641
12642         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
12643         empty statements can now have attributes.
12644
12645 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
12646
12647         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
12648         * config/mips/mips.md: Ditto.
12649
12650 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
12651
12652         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
12653         _RELOCATABLE.
12654         (__eabi_uconvert): Likewise.
12655
12656 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
12657
12658         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
12659         CFI_* definitions with IN_GCC.
12660
12661 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
12662
12663         * xcoffout.h (xcoffout_source_line): Update prototype.
12664
12665 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12666
12667         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
12668         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
12669
12670 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
12671
12672         PR middle-end/40340
12673         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
12674         inlined_function_outer_scope_p blocks for artificial inlines
12675         even at -g0/-g1.
12676         * tree.c (tree_nonartificial_location): Rewrite using
12677         block_nonartificial_location.
12678
12679 2009-06-05  Revital Eres  <eres@il.ibm.com>
12680             Leehod Baruch  <leehod@il.ibm.com>
12681
12682         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
12683         (expand_expr_real_1): Remove comment.
12684         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12685         Vectorize misaligned access when the target supports it.
12686         (vect_supportable_dr_alignment): Check for unaligned access support.
12687         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
12688         and remove asset.
12689
12690 2009-06-05  Julian Brown  <julian@codesourcery.com>
12691
12692         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
12693         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
12694
12695 2009-06-05  Richard Guenther  <rguenther@suse.de>
12696
12697         PR bootstrap/40350
12698         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
12699         as possibly unused.
12700
12701 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
12702
12703         * config/s390/s390.c (global_not_special_regno_p): New static inline.
12704         (save_gprs): Don't tell unwinder when a global register is saved.
12705         (s390_emit_epilogue): Emit needed epilogue unwind info.
12706
12707 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
12708
12709         * dwarf2out.c (deferred_asm_name): New.
12710         (add_name_and_src_coords_attributes): Defer creation of
12711         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
12712         computed yet.
12713         (move_linkage_attr): New.
12714         (dwarf2out_finish): Revisit deferrals and emit attributes at the
12715         right place.
12716
12717 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
12718
12719         * tree-nested.c (finalize_nesting_tree_1): Declare the
12720         frame_decl in the binding tree.
12721
12722 2009-06-04  Cary Coutant  <ccoutant@google.com>
12723
12724         * basic-block.h (struct basic_block_def): Add discriminator field.
12725         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
12726         callers.
12727         * debug.c (do_nothing_debug_hooks): Add additional entry.
12728         (debug_nothing_int_charstar_int): New function.
12729         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
12730         (debug_nothing_int_charstar_int): New declaration.
12731         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
12732         discriminator value in .loc directive.
12733         * final.c (last_discriminator): New variable.
12734         (discriminator): New variable.
12735         (final_start_function): Initialize above variables, pass current
12736         discriminator to debug hook.
12737         (notice_source_line): Check for discriminator change.
12738         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
12739         * sdbout.c (sdbout_source_line): New parameter.
12740         * tree-cfg.c (struct locus_discrim_map): New structure type.
12741         (discriminator_per_locus): New hash table.
12742         (build_gimple_cfg): Allocate and free discriminator hash table.
12743         (make_edges): Call assign_discriminator.
12744         (locus_map_hash): New function.
12745         (locus_map_eq): New function.
12746         (next_discriminator_for_locus): New function.
12747         (same_line_p): New function.
12748         (assign_discriminator): New function.
12749         (make_cond_expr_edges): Call assign_discriminator.
12750         (make_gimple_switch_edges): Likewise.
12751         (first_non_label_stmt): New function.
12752         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
12753         all callers.
12754         * xcoffout.c (xcoffout_source_line): Add new parameter.
12755
12756         * configure.ac (gcc_cv_as_discriminator): New configury check for
12757         gas support for discriminator.
12758         * configure: Regenerate.
12759         * config.in: Regenerate.
12760
12761 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12762
12763         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
12764         val after checking for integers.
12765
12766 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
12767
12768         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
12769         X64_REGPARM_MAX.
12770         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
12771         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
12772         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
12773         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
12774         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
12775         X64_SSE_REGPARM_MAX.
12776         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
12777         X64_SSE_REGPARM_MAX.
12778
12779 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
12780
12781         * gcc.c (report_times_to_file): New.
12782         (execute): Implement it.
12783         (process_command): Support -time=.
12784         * doc/invoke.texi: Document it.
12785
12786 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
12787
12788         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
12789         that have value exprs.
12790
12791 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
12792
12793         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
12794         declarations for constants until...
12795         (dw2_output_indirect_constant_1): ... this point.
12796
12797 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
12798
12799         PR target/10242
12800         * arm.md (arm_addsi3): Don't try to split an add with an
12801         eliminable register until after reload has completed.
12802
12803 2009-06-03  Ian Lance Taylor  <iant@google.com>
12804
12805         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
12806         * genattrtab.c (write_length_unit_log): Likewise.
12807         * genchecksum.c (dosum): Likewise.
12808         * gengtype.c (write_rtx_next): Likewise.
12809         (finish_root_table, write_roots): Likewise.
12810         * gimple.c (gimple_ops_offset_): Likewise.
12811         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
12812         * config/arc/arc.c (arc_attribute_table): Likewise.
12813         * config/arm/arm.c (arm_attribute_table): Likewise.
12814         * config/avr/avr.c (avr_attribute_table): Likewise.
12815         * config/crx/crx.c (crx_attribute_table): Likewise.
12816         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
12817         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
12818         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
12819         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
12820         * config/sh/sh.c (sh_attribute_table): Likewise.
12821         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
12822         * config/spu/spu.c (spu_attribute_table): Likewise.
12823         * config/v850/v850.c (v850_attribute_table): Likewise.
12824
12825         * config/alpha/alpha.c (vms_attribute_table): Make static.
12826         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
12827         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
12828         * config/mips/mips.c (mips_attribute_table): Likewise.
12829
12830         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
12831         $(SYSTEM_H).
12832         (cc1-checksum.o): Likewise.
12833
12834 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
12835
12836         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
12837
12838 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
12839
12840         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
12841         insn if it is changing sp.  Use gen_add3_insn instead of
12842         conditionally gen_addsi3 and gen_adddi3.
12843         (offset_below_red_zone_p): New static inline function.
12844         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
12845         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
12846         * config/rs6000/ppc-asm.h: Include auto-host.h.
12847         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
12848         CFI_RESTORE): Define.
12849         * config/rs6000/crtresxgpr.asm: Add unwind info.
12850         * config/rs6000/crtresxfpr.asm: Likewise.
12851         * config/rs6000/crtresgpr.asm: Likewise.
12852         * config/rs6000/crtresfpr.asm: Likewise.
12853         * config/rs6000/crtsavgpr.asm: Likewise.
12854         * config/rs6000/crtsavfpr.asm: Likewise.
12855
12856         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
12857         argument of DWARF2_FRAME_REG_OUT macros.
12858
12859 2009-06-03  Julian Brown  <julian@codesourcery.com>
12860
12861         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
12862         words or less (including TImode) in core registers.
12863
12864 2009-06-03  Richard Guenther  <rguenther@suse.de>
12865
12866         PR middle-end/40328
12867         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
12868
12869 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
12870
12871         * statistics.c (statistics_counter_event): Do not record event
12872         in pass dump if its number == -1.
12873         (curr_statistics_hash): Add assert that we never get passes
12874         with static number == -1.
12875
12876 2009-06-03  Richard Guenther  <rguenther@suse.de>
12877             Andrey Belevantsev  <abel@ispras.ru>
12878
12879         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
12880         non-BLKmode arrays addressable.
12881
12882 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
12883
12884         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
12885         * config/m68k/m68k.h: ... here.
12886
12887 2009-06-03  Martin Jambor  <mjambor@suse.cz>
12888
12889         PR tree-optimization/40323
12890         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
12891         assignment.
12892
12893 2009-06-03  Richard Guenther  <rguenther@suse.de>
12894
12895         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
12896         consistently.
12897
12898 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
12899
12900         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
12901         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
12902         JUMP_TABLE_DATA_P where applicable.
12903         * config/sh/sh.c: Ditto.
12904         * config/sh/sh.h: Ditto.
12905         * config/sh/sh.md: Ditto.
12906         * config/sh/symbian.c: Ditto.
12907
12908 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
12909
12910         * config/i386/driver-i386.c (describe_cache): Optimize
12911         concatenation of strings.  Use snprintf instead of sprintf.
12912         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
12913         target when not compiling with GCC.
12914
12915 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
12916
12917         * config/sh/sh.c: Revert last change.
12918         (sh_expand_epilogue): Emit a blockage insn before the frame
12919         pointer adjustment unconditionally.
12920
12921 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
12922
12923         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
12924         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
12925         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
12926         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
12927         to COLLECT_GCC_OPTIONS.
12928
12929 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
12930
12931         * collect2.c (target_system_root): New variable.
12932         (main): Handle --sysroot=.
12933         (ignore_library): Strip the sysroot from the library path.
12934
12935 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
12936
12937         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
12938         (collect2.o): Depend on collect2-aix.h.
12939         (collect2-aix.o): New rule.
12940         * collect2-aix.h: New file.
12941         * collect2-aix.c: Likewise.
12942         * collect2.c: Include collect2-aix.h.  Don't undefine
12943         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
12944         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
12945         Use TARGET_AIX_VERSION instead of _AIX51.
12946         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
12947         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
12948         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
12949         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
12950         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
12951
12952 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
12953
12954         * collect2.c (ignore_library): Avoid premature post-increment
12955         and null deference.
12956
12957 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
12958
12959         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
12960         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
12961         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
12962         CROSS_DIRECTORY_STRUCTURE too.
12963         (LINK_LIBG_SPEC): Likewise.
12964         (LIB_SPEC): Add %R to sysroot paths.
12965         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
12966         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
12967         * config/rs6000/aix51.h: As for aix43.h.
12968         * config/rs6000/aix52.h: Likewise.
12969         * config/rs6000/aix53.h: Likewise.
12970         * config/rs6000/aix61.h: Likewise.
12971         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
12972         to the beginning of sysroot paths.
12973
12974 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
12975
12976         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
12977         INSN_LISTs that are out of the REG_NOTE range.
12978
12979 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
12980
12981         * loop-unroll.c (struct iv_to_split): Add pointer to next.
12982         (struct var_to_expand): Likewise.
12983         (struct opt_info): Add head and tail for linked lists of the above.
12984         (analyze_insn_to_expand_var): Initialize next.
12985         (analyze_iv_to_split_insn): Likewise.
12986         (analyze_insns_in_loop): Create linked lists.
12987         (allocate_basic_variable): Simplify for use without hash table.
12988         (insert_var_expansion_initialization): Likewise, make it type-safer.
12989         (combine_var_copies_in_loop_exit): Likewise.
12990         (apply_opt_in_copies): Walk lists rather than hash tables.
12991         (release_var_copies): Simplified and inlined by hand into...
12992         (free_opt_info): ... this function.
12993
12994 2009-06-02  Richard Guenther  <rguenther@suse.de>
12995
12996         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
12997         for field decls.
12998
12999 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13000
13001         * cfgexpand.c (gimple_expand_cfg): Discard the source location
13002         only for builtins that are not overridden.
13003
13004 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13005
13006         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
13007         label string.
13008
13009 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13010
13011         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
13012
13013 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13014
13015         * combine.c (move_deaths): Compare LUIDs within the same BB only.
13016
13017 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13018
13019         * common.opt (fdump-unnumbered-links): New.
13020         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
13021         * print-rtl.c (flag_dump_unnumbered_links): New.
13022         (print_rtx): Test it.
13023
13024 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
13025
13026         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
13027         push/pop multiple to 8-byte alignment.
13028
13029 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
13030
13031         * config/i386/i386.c (queued_cfa_restores): New static variable.
13032         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
13033         functions.
13034         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
13035         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
13036         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
13037         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
13038         note unconditionally.
13039         (ix86_emit_restore_regs_using_mov): Likewise.
13040         (ix86_emit_restore_sse_regs_using_mov): Likewise.
13041         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
13042         it through to ix86_emit_restore_reg_using_pop.
13043         (ix86_emit_leave): Add RED_OFFSET argument.  Call
13044         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
13045         instead of adding REG_CFA_OFFSET note unconditionally.
13046         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
13047         the above functions.  Call ix86_add_queued_cfa_restore_notes when
13048         needed.
13049
13050         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
13051         force output of the label even for dwarf2out_do_cfi_asm.
13052         (add_fde_cfi): If -g2 and above and cfi might change CFA,
13053         force creation of CFI label and chain DW_CFA_set_loc jumping to it
13054         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
13055         caller.
13056         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
13057         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
13058         dwarf2out_cfi_label callers.
13059         * tree.h (dwarf2out_cfi_label): Adjust prototype.
13060         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
13061         Adjust dwarf2out_cfi_label callers.
13062         * config/vax/vax.c (vax_output_function_prologue): Likewise.
13063
13064         * config/i386/i386.h (struct machine_cfa_state,
13065         struct machine_function): Guard with ifndef USED_FOR_TARGET
13066         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
13067
13068         PR other/40024
13069         * emutls.c (__emutls_get_address): Change arr->size to mean number
13070         of allocated arr->data entries instead of # of slots + 1.
13071
13072         PR middle-end/40316
13073         * recog.c (peep2_reinit_state): New function.
13074         (peephole2_init_state): Use it at the end of a basic block and also
13075         when seeing a RTX_FRAME_RELATED_P insn.
13076
13077 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
13078
13079         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
13080         fixuns_truncrfdi2): New.
13081         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
13082         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
13083         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
13084         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
13085         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
13086         *recip_approx): Remove.
13087         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
13088         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
13089         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
13090         move to div.md.
13091         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
13092         setf_exp_rf): New.
13093
13094 2009-06-01  Ian Lance Taylor  <iant@google.com>
13095
13096         * attribs.c (register_attribute): Use CONST_CAST.
13097         * collect2.c (main): Use CONST_CAST2.
13098         (scan_prog_file): Likewise.
13099         * gcc.c (process_command, main): Likewise.
13100         * toplev.c (toplev_main): Likewise.
13101
13102         * c-typeck.c (handle_warn_cast_qual): New static function,
13103         partially broken out of build_c_cast.
13104         (build_c_cast): Call handle_warn_cast_qual.
13105         * doc/invoke.texi (Warning Options): Document new effect of
13106         -Wcast-qual.
13107
13108 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
13109
13110         * diagnostic.c (diagnostic_build_prefix): Always print columns.
13111         (diagnostic_report_current_module): Print columns.
13112         * common.opt (flag_show_column): Enable by default.
13113
13114 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
13115
13116         * alias.c (find_base_term): Check for NULL term before returning.
13117
13118 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
13119
13120         Revert due to PR40320:
13121         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
13122         * calls.c (emit_library_call_value_1): Don't force_operand for move
13123         and push insns.
13124
13125 2009-06-01  Olivier Hainque  <hainque@adacore.com>
13126             Eric Botcazou  <ebotcazou@adacore.com>
13127
13128         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
13129         to be processed as a bitfield for constructor output purposes.
13130         * output.h (initializer_constant_valid_for_bitfield_p): Declare
13131         new function.
13132         * varasm.c (oc_local_state): New type, output_constructor
13133         local state to support communication with helpers.
13134         (oc_outer_state): New type, output_constructor outer state of
13135         relevance in recursive calls.
13136         (output_constructor_array_range): New output_constructor helper,
13137         extracted code for an array range element.
13138         (output_constructor_regular_field): New output_constructor helper,
13139         extracted code for an element that is not a bitfield.
13140         (output_constructor_bitfield): New output_constructor helper,
13141         extracted code for a bitfield element.  Accept an OUTER state
13142         argument for recursive processing.  Recurse on record or array
13143         CONSTRUCTOR values, possibly past noop conversions.
13144         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
13145         VALUE is a valid constant-valued expression for use in a static
13146         bit-field initializer.
13147         (output_constructor): Rework to use helpers.  Accept and honor an
13148         OUTER state argument for recursive calls.  Return total size.  Be
13149         prepared for nested constructors initializing bitfields.
13150         (output_constant): Feed OUTER in calls to output_constructor.
13151
13152 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
13153
13154         * calls.c (emit_library_call_value_1): Don't force_operand for move
13155         and push insns.
13156
13157 2009-06-01  Nick Clifton  <nickc@redhat.com>
13158
13159         * doc/invoke.texi (IA-64 Options): Fix typo.
13160
13161 2009-06-01  Ira Rosen  <irar@il.ibm.com>
13162
13163         PR tree-optimization/39129
13164         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
13165         printed message.
13166         (vect_do_peeling_for_loop_bound): Use
13167         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
13168         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
13169         (vect_loop_versioning): Likewise.
13170         (vect_create_cond_for_alias_checks): Fix indentation.
13171         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
13172         macros.
13173         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
13174         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
13175         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
13176         "control flow in loop".
13177         (vect_estimate_min_profitable_iters): Use
13178         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
13179         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
13180         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
13181         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
13182         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
13183         statement belongs to a group of strided accesses with the exact code
13184         check.
13185         (vectorizable_load): Likewise.
13186         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
13187         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
13188
13189 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
13190
13191         * config/freebsd-stdint.h: New file.
13192         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
13193         Add freebsd-stdint.h to tm_file.
13194
13195 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
13196
13197         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
13198         (thumb2_extendhidi2): Likewise.
13199
13200 2009-05-31  Ian Lance Taylor  <iant@google.com>
13201
13202         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
13203
13204 2009-05-31  Ian Lance Taylor  <iant@google.com>
13205
13206         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
13207         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
13208         (ipa-reference.o): Depend upon gt-ipa-reference.h.
13209
13210 2009-05-31  Jason Merrill  <jason@redhat.com>
13211
13212         * tree-pretty-print.c (print_call_name): Take the callee, not the
13213         call itself.  Make non-static.  Use dump_function_name for functions.
13214         (dump_generic_node): Adjust.
13215         * diagnostic.h: Declare print_call_name.
13216         * gimple-pretty-print.c (dump_gimple_call): Use it.
13217
13218 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
13219
13220         * config/sh/sh.md (ashldi3_std): New define_expand.
13221         (ashldi3): Use it.
13222
13223 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
13224
13225         PR target/40313
13226         * config/sh/sh.c: Include debug.h.
13227         (sh_expand_epilogue): Emit a blockage insn before the frame
13228         pointer adjustment also when dwarf2out_do_frame returns true.
13229
13230 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
13231
13232         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
13233         (thumb2_extendqidi2): New pattern.
13234
13235 2009-05-31  Ira Rosen  <irar@il.ibm.com>
13236
13237         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
13238         mark phis for renaming.
13239         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
13240         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
13241         Call mark_sym_for_renaming.
13242         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
13243         * tree-vect-loop.c (vect_transform_loop): Remove
13244         vect_memsyms_to_rename initialization and a call to
13245         mark_set_for_renaming.
13246
13247 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
13248
13249         PR middle-end/40304
13250         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
13251         frame related even if !set_cfa && style < 0.
13252
13253 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
13254
13255         * config/i386/mingw-tls.c: New file.
13256         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
13257         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
13258         defining _WIN32 but not __CYGWIN__.
13259
13260 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13261
13262         * configure.ac: Add MPC support.
13263
13264         * config.in, configure: Regenerate.
13265
13266 2009-05-29  Richard Henderson  <rth@redhat.com>
13267
13268         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
13269         NOTE_INSN_BASIC_BLOCK.
13270         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
13271         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
13272         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
13273         to be deleted.
13274         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
13275         add in_use field.
13276         (add_cfi): Disable check redefining cfa away from drap.
13277         (lookup_cfa_1): Add remember argument; handle remember/restore.
13278         (lookup_cfa): Pass remember argument.
13279         (cfa_remember): New.
13280         (compute_barrier_args_size_1): Remove sibcall check.
13281         (dwarf2out_frame_debug_def_cfa): New.
13282         (dwarf2out_frame_debug_adjust_cfa): New.
13283         (dwarf2out_frame_debug_cfa_offset): New.
13284         (dwarf2out_frame_debug_cfa_register): New.
13285         (dwarf2out_frame_debug_cfa_restore): New.
13286         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
13287         (dwarf2out_begin_epilogue): New.
13288         (dwarf2out_frame_debug_restore_state): New.
13289         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
13290         DW_CFA_restore_state.
13291         (output_cfi_directive): Likewise.
13292         (convert_cfa_to_fb_loc_list): Likewise.
13293         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
13294         * dwarf2out.h: Update.
13295         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
13296         (copy_insn_1): Early out for null.
13297         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
13298         and dwarf2out_frame_debug_restore_state.
13299         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
13300         (prologue_insn_hash, epilogue_insn_hash): New.
13301         (free_after_compilation): Adjust freeing accordingly.
13302         (record_insns): Create hash table if needed; push insns into
13303         hash instead of array.
13304         (maybe_copy_epilogue_insn): New.
13305         (contains): Search hash table instead of array.
13306         (sibcall_epilogue_contains): Remove.
13307         (thread_prologue_and_epilogue_insns): Split eh_return insns
13308         and mark them as epilogues.
13309         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
13310         scanning in terms of basic blocks.
13311         * insn-notes.def (CFA_RESTORE_STATE): New.
13312         * jump.c (returnjump_p_1): Accept EH_RETURN.
13313         (eh_returnjump_p_1, eh_returnjump_p): New.
13314         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
13315         CFA_REGISTER, CFA_RESTORE): New.
13316         * rtl.def (EH_RETURN): New.
13317         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
13318
13319         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
13320         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
13321
13322         * config/i386/i386.c (gen_push): Update cfa state.
13323         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
13324         add a CFA_ADJUST_CFA note.
13325         (ix86_dwarf_handle_frame_unspec): Remove.
13326         (ix86_expand_prologue): Update cfa state.
13327         (ix86_emit_restore_reg_using_pop): New.
13328         (ix86_emit_restore_regs_using_pop): New.
13329         (ix86_emit_leave): New.
13330         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
13331         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
13332         * config/i386/i386.h (struct machine_cfa_state): New.
13333         (ix86_cfa_state): New.
13334         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
13335         (eh_return_internal): Merge from eh_return_<mode>,
13336         use eh_return rtx, split w/ epilogue.
13337
13338 2009-05-29  Ian Lance Taylor  <iant@google.com>
13339
13340         * builtins.c (validate_gimple_arglist): Don't use va_arg with
13341         enum type.
13342         * calls.c (emit_library_call_value_1): Likewise.
13343
13344         * c-typeck.c (c_build_va_arg): New function.
13345         * c-tree.h (c_build_va_arg): Declare.
13346         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
13347         instead of build_va_arg.
13348
13349 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
13350
13351         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
13352         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
13353         (ptr_difference_cost): Use affine combinations to compute it.
13354         (difference_cost): Likewise.
13355         (get_computation_cost_at): Compute more accurate cost for addresses
13356         if the ratio is a multiplier allowed in addresses.
13357         For non-addresses, consider that an additional offset or symbol is
13358         added only once.
13359
13360 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
13361
13362         * config/i386/i386.c (ix86_decompose_address): Avoid useless
13363         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
13364
13365         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
13366         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
13367         (prefix_rex): For UNIT_MMX don't imply the prefix by default
13368         if MODE_DI.
13369         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
13370         to 1 for TYPE_SSE{IADD1,CVT1}.
13371         (prefix_vex_imm8): Removed.
13372         (length_vex): Only pass 1 as second argument to
13373         ix86_attr_length_vex_default if prefix_extra is 0.
13374         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
13375         (length): For prefix vex computation use length_immediate
13376         attribute instead of prefix_vex_imm8.
13377         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
13378         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
13379         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
13380         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
13381         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
13382         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
13383         a space in between the operands.
13384         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
13385         if one operand is 0xff and the other one si, di, bp or sp.
13386         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
13387         other one si, di, bp or sp.
13388         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
13389         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
13390         type and mode attributes.
13391         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
13392         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
13393         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
13394         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
13395         prefix_data16 attribute iff MODE_DF.
13396         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
13397         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
13398         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
13399         constm128_operand in length_immediate computation.
13400         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
13401         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
13402         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
13403         length_immediate attribute to 1.
13404         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
13405         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
13406         for certain alternatives.
13407         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
13408         prefix_data16 attribute if MODE_V1DF.
13409         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
13410         length_immediate to 1.
13411         (set_got_rex64, set_rip_rex64): Remove length attribute, set
13412         length_address to 4, set mode attribute to MODE_DI.
13413         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
13414         (fxam<mode>2_i387): Set length attribute to 4.
13415         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
13416         *prefetch_3dnow_rex): Override length_address attribute.
13417         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
13418         attributes.
13419         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
13420         (constm128_operand): Removed.
13421         * config/i386/i386.c (memory_address_length): For
13422         disp && !index && !base in 64-bit mode account for SIB byte if
13423         print_operand_address can't optimize disp32 into disp32(%rip)
13424         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
13425         for fs: or gs: segment.
13426         (ix86_attr_length_immediate_default): When checking if shortform
13427         is possible, truncate immediate to the length of the non-shortened
13428         immediate.
13429         (ix86_attr_length_address_default): Ignore MEM_P operands
13430         with X constraint.
13431         (ix86_attr_length_vex_default): Only check for DImode on
13432         GENERAL_REG_P operands.
13433         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
13434         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
13435         (sse_cvttps2pi): Clear prefix_rep attribute.
13436         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
13437         attribute.
13438         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
13439         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
13440         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
13441         iff operand 2 is const_int_operand.
13442         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
13443         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
13444         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
13445         instead of vex.
13446         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
13447         prefix_data16.
13448         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
13449         prefix_data16 attribute for movlpd and movhpd instructions.
13450         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
13451         length_immediate for shufpd instruction.
13452         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
13453         (avx_cmpp<avxmodesuffixf2c><mode>3,
13454         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
13455         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
13456         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
13457         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
13458         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
13459         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
13460         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
13461         prefix_data16 attribute for the first alternative to 1.
13462         (*avx_loadlps): Override length_immediate for the first alternative.
13463         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
13464         attributes for second alternative.
13465         (*vec_concatv2sf_sse4_1): Override length_immediate and
13466         prefix_data16 attributes for second alternative.
13467         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
13468         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
13469         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
13470         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
13471         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
13472         prefix_data16 and length_immediate to 1.
13473         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
13474         to 1.
13475         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
13476         prefix_extra attribute for variants that don't have 0f prefix alone.
13477         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
13478         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
13479         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
13480         *sse4_1_pextrd): Set length_immediate to 1.
13481         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
13482         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
13483         to 1.
13484         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
13485         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
13486         length_immediate to 1 for second alternative.
13487         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
13488         prefix_extra and length_immediate attributes for the first
13489         alternative.
13490         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
13491         first alternative.
13492         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
13493         to 1 for the first and third alternative.
13494         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
13495         alternative.
13496         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
13497         attribute.
13498         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
13499         attribute to 0.
13500         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
13501         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
13502         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
13503         *avx_psign<mode>3): Set prefix_extra attribute to 1.
13504         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
13505         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
13506         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
13507         ssse3_psign<mode>3): Override prefix_rex attribute.
13508         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
13509         (ssse3_palignrti): Override length_immediate to 1.
13510         (ssse3_palignrdi): Override length_immediate to 1, override
13511         prefix_rex attribute.
13512         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
13513         (sse4a_extrqi): Override length_immediate to 2.
13514         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
13515         (sse4a_insertq): Override prefix_data16 to 0.
13516         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
13517         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
13518         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
13519         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
13520         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
13521         and length_immediate to 1.
13522         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
13523         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
13524         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
13525         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
13526         and length_immediate to 1.
13527         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
13528         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
13529         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
13530         avx_ptest256): Override prefix_extra to 1.
13531         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
13532         Override prefix_data16 and length_immediate to 1.
13533         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
13534         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
13535         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
13536         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
13537         prefix_data16 to 0 and prefix_extra to 2.
13538         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
13539         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
13540         attribute.
13541         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
13542         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
13543         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
13544         and prefix_extra to 2.
13545         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
13546         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
13547         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
13548         avx_vpermilvar<mode>3,
13549         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
13550         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
13551         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
13552         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
13553         Override prefix_extra to 1.
13554         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
13555         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
13556         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
13557         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
13558         prefix_extra and length_immediate to 1.
13559         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
13560         modrm to 0.
13561         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
13562         to 1 for the first alternative.
13563         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
13564         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
13565         cases.
13566         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
13567         *movv2sf_internal_avx, *movv2sf_internal): Override
13568         prefix_rep attribute for certain alternatives.
13569         (*mov<mode>_internal): Override prefix_rep or prefix_data16
13570         attributes for certain alternatives.
13571         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
13572         attributes for certain alternatives.
13573         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
13574         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
13575         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
13576         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
13577         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
13578         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
13579         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
13580         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
13581         length_immediate to 1 if operand 2 is const_int_operand.
13582         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
13583         *vec_extractv2si_1): Set length_immediate attribute to 1.
13584         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
13585         using old 3DNOW insn rather than SSE/3DNOW_A.
13586         (mmx_emms, mmx_femms): Clear modrm attribute.
13587
13588 2009-05-29  Martin Jambor  <mjambor@suse.cz>
13589
13590         * tree-sra.c:  New implementation of SRA.
13591
13592         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
13593         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
13594         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
13595         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
13596         (SRA_MAX_STRUCTURE_COUNT): Removed.
13597         (SRA_FIELD_STRUCTURE_RATIO): Removed.
13598         * doc/invoke.texi (sra-max-structure-size): Removed.
13599         (sra-field-structure-ratio): Removed.
13600
13601 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
13602
13603         PR middle-end/40291
13604         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
13605         before expansion.
13606
13607 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
13608
13609         PR rtl-optimization/40101
13610         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
13611         seqno.  Adjust comment.
13612         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
13613         inserting bookkeeping before a jump, the jump is not scheduled.
13614         When no positive seqno found, provide a value.  Add comment.
13615
13616 2009-05-29  Richard Guenther  <rguenther@suse.de>
13617
13618         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
13619         short-cutting on the first component.
13620
13621 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
13622
13623         PR middle-end/39958
13624         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
13625         for trees other than decls/types.
13626
13627 2009-05-29  Richard Guenther  <rguenther@suse.de>
13628
13629         * tree-ssa-operands.c (get_expr_operands): Do not handle
13630         INDIRECT_REFs in the handled-component case.  Remove
13631         unused get_ref_base_and_extent case.
13632         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
13633         tree_low_cst and host_integerp where possible.
13634         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
13635         codes for equivalence.
13636         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
13637
13638 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
13639
13640         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
13641         to tmake_file for i[34567]86-*-cygwin*.
13642
13643 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
13644
13645         PR target/40017
13646         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
13647         (altivec_categorize_keyword, init_vector_keywords,
13648         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
13649         similar to bool.
13650
13651 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
13652
13653         * tree.c (handle_dll_attribute): Check if node is
13654         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
13655
13656 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
13657
13658         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
13659         component.
13660         (thumb2_zero_extendqidi2): Likewise.
13661
13662 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
13663
13664         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
13665         instead of gen_movrt.
13666         * config/sh/sh.md (movrt): Remove.
13667
13668 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
13669
13670         * doc/invoke.texi (IA-64 Options):
13671         Add -msdata, -mfused-madd, -mno-inline-float-divide,
13672         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
13673         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
13674         -msched-prefer-non-control-spec-insns,
13675         -msched-stop-bits-after-every-cycle,
13676         -msched-count-spec-in-critical-path,
13677         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
13678         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
13679         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
13680         and -msched-spec-verbose.
13681
13682 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
13683
13684         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
13685         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
13686         error if used.
13687         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
13688
13689 2009-05-28  Richard Guenther  <rguenther@suse.de>
13690
13691         * tree-ssa-alias.c (ao_ref_init): New function.
13692         (ao_ref_base): Likewise.
13693         (ao_ref_base_alias_set): Likewise.
13694         (ao_ref_alias_set): Likewise.
13695         (refs_may_alias_p_1): Change signature.
13696         (refs_may_alias_p): Adjust.
13697         (refs_anti_dependent_p): Likewise.
13698         (refs_output_dependent_p): Likewise.
13699         (call_may_clobber_ref_p_1): Change signature.
13700         (call_may_clobber_ref_p): Adjust.
13701         (stmt_may_clobber_ref_p_1): New function split out from ...
13702         (stmt_may_clobber_ref_p): ... here.
13703         (maybe_skip_until): Adjust signature.
13704         (get_continuation_for_phi): Likewise.
13705         (walk_non_aliased_vuses): Likewise.
13706         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
13707         (ao_ref_init): Declare.
13708         (ao_ref_base): Likewise.
13709         (ao_ref_alias_set): Likewise.
13710         (stmt_may_clobber_ref_p_1): Likewise.
13711         (walk_non_aliased_vuses): Adjust.
13712         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
13713         (get_ref_from_reference_ops): remove.
13714         (vn_reference_lookup_2): Adjust signature.
13715         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
13716         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
13717         (vn_reference_lookup): Adjust.
13718         (vn_reference_insert): Likewise.
13719         (vn_reference_insert_pieces): Adjust signature.
13720         (visit_reference_op_call): Adjust.
13721         * tree-ssa-pre.c (get_expr_type): Simplify.
13722         (phi_translate_1): Adjust.
13723         (compute_avail): Likewise.
13724         (translate_vuse_through_block): Do not re-build trees.
13725         (value_dies_in_block_x): Likewise.
13726         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
13727         fields.
13728         (vn_reference_lookup_pieces): Adjust declaration.
13729         (vn_reference_insert_pieces): Likewise.
13730
13731 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
13732
13733         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
13734         with checking disabled.
13735
13736 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
13737
13738         PR target/37216
13739
13740         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
13741         macro definition for support of three-operand format aligned
13742         .comm directive in assembler on cygwin/pe/mingw target OS.
13743         * configure:  Regenerate.
13744         * config.h:  Regenerate.
13745
13746         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
13747         aligned form of .comm directive if -mpe-aligned-commons is in effect.
13748         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
13749
13750         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
13751         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
13752
13753 2009-05-28  Ira Rosen  <irar@il.ibm.com>
13754
13755         PR tree-optimization/40254
13756         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
13757         in analysis of basic blocks.
13758
13759 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
13760
13761         PR middle-end/33699
13762         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
13763         * target-def.h (TARGET_CONST_ANCHOR): New macro.
13764         (TARGET_INITIALIZER): Use it.
13765         * cse.c (CHEAPER): Move it up to the other macros.
13766         (insert): Rename this ...
13767         (insert_with_costs): ... to this.  Add cost parameters.  Update
13768         function comment.
13769         (insert): New function.  Call insert_with_costs.
13770         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
13771         find_reg_offset_for_const, try_const_anchors): New functions.
13772         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
13773         when using a const-anchor.  Call insert_const_anchors.
13774         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
13775         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
13776
13777 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
13778
13779         * tree-inline.c (remap_decls): Enable nonlocalized variables
13780         when not optimizing.
13781
13782 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
13783
13784         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
13785         Simplify other tests involving optimize.
13786
13787 2009-05-27  Tom Tromey  <tromey@redhat.com>
13788
13789         * unwind-dw2.c (_Unwind_DebugHook): New function.
13790         (uw_install_context): Call _Unwind_DebugHook.
13791
13792 2009-05-27  Tom Tromey  <tromey@redhat.com>
13793
13794         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
13795
13796 2009-05-27  Ian Lance Taylor  <iant@google.com>
13797
13798         * Makefile.in (LINKER, LINKER_FLAGS): Define.
13799         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
13800         (ALL_LINKERFLAGS): Define.
13801         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
13802         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
13803         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
13804         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
13805         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
13806         $(LINKER_FOR_BUILD).
13807         (build/gcov-iov$(build_exeext)): Likewise.
13808
13809 2009-05-27  Julian Brown  <julian@codesourcery.com>
13810
13811         * gcse.c (target.h): Include.
13812         (can_assign_to_reg_without_clobbers_p): Check that the target allows
13813         copy of argument to a pseudo register.
13814
13815 2009-05-27  Diego Novillo  <dnovillo@google.com>
13816
13817         * tree-ssa-live.c (dump_scope_block): Document arguments.
13818         (dump_scope_blocks): Document.
13819         (debug_scope_blocks): New.
13820         * tree-flow.h (debug_scope_blocks): Declare.
13821
13822 2009-05-21  Denis Chertykov  <denisc@overta.ru>
13823
13824         * doc/contrib.texi (Contributors): Add myself to the list.
13825
13826 2009-05-27  Olivier Hainque  <hainque@adacore.com>
13827
13828         * expr.c (target_align): New function.  Alignment the TARGET of an
13829         assignment may be assume to have.
13830         (highest_pow2_factor_for_target): Use it instead of relying on
13831         immediate tree attributes of TARGET, not necessarily honored when
13832         intermediate bitfields are involved.
13833
13834 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
13835
13836         PR target/40266
13837         * config/i386/driver-i386.c (host_detect_local_cpu): Support
13838         AVX, SSE4, AES, PCLMUL and POPCNT.
13839
13840 2009-05-27  Diego Novillo  <dnovillo@google.com>
13841
13842         * tree-pretty-print.c (dump_location): New.
13843         (dump_generic_node): Call it.
13844         Factor code to handle BLOCK nodes ...
13845         (dump_block_node): ... here.
13846
13847 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
13848
13849         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
13850         with it.
13851         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
13852         included.
13853         * gcc-plugin.h: Include config.h and system.h.
13854         (IN_GCC): Define if not defined.
13855
13856 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
13857
13858         PR middle-end/40249
13859         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
13860         with -fno-inline.
13861
13862 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
13863
13864         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
13865         applicable.
13866         * config/m32r/m32r.h: Ditto.
13867         * config/m32r/m32r.md: Ditto.
13868         * config/m32r/predicates.md: Ditto.
13869
13870 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
13871
13872         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
13873
13874 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
13875
13876         * doc/plugins.texi
13877         (Loading plugins): typo.
13878         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
13879         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
13880         (Interacting with the GCC Garbage Collector): Added new section.
13881         (Giving information about a plugin): Added new section for
13882         PLUGIN_INFO.
13883         * ggc.h (ggc_register_root_tab): Added declaration.
13884         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
13885         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
13886         (register_callback): Improved comment in declaration.
13887         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
13888         (extra_root_vec) Added static variable for dynamic roots registration.
13889         (ggc_register_root_tab) Added new routine.
13890         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
13891         PLUGIN_GGC_MARKING event.
13892         * ggc-zone.c: Include plugin.h.
13893         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
13894         * ggc-page.c: Include plugin.h.
13895         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
13896         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
13897         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
13898         (register_callback): check lack of callbacks for
13899         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
13900         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
13901         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
13902         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
13903         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
13904         dependency on plugin.h.
13905         (plugin.o): Added dependency on ggc.h...
13906
13907 2009-05-26  Richard Guenther  <rguenther@suse.de>
13908
13909         PR middle-end/40248
13910         Revert
13911         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
13912         with mismatched comparison modes.
13913
13914         * expr.c (expand_expr_real_1): Expand the operand of a
13915         VIEW_CONVERT_EXPR in its natural mode.
13916
13917 2009-05-26  Ian Lance Taylor  <iant@google.com>
13918
13919         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
13920         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
13921         (ALL_COMPILERFLAGS): Define.
13922         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
13923         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
13924         (collect2$(exeext), collect2.o): Likewise.
13925         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
13926         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
13927         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
13928         (libbackend.o, intl.o, cppdefault.o): Likewise.
13929         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
13930         (build/%.o): Use $(COMPILER_FOR_BUILD).
13931         (build/gen%$(build_exeext)): Likewise.
13932         (build/gcov-iov$(build_exeext)): LIkewise.
13933         * config/t-darwin (darwin.o): Use $(COMPILER).
13934         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
13935         * config/t-sol2 (sol2-c.o): Likewise.
13936         (sol2.o): Likewise.
13937         * config/t-vxworks (vxworks.o): Likewise.
13938         * config/x-darwin (host-darwin.o): Likewise.
13939         * config/x-hpux (host-hpux.o): Likewise.
13940         * config/x-linux (host-linux.o): Likewise.
13941         * config/x-solaris (host-solaris.o): Likewise.
13942         * config/alpha/x-alpha (driver-alpha.o): Likewise.
13943         * config/arm/t-arm (arm-c.o): Likewise.
13944         * config/arm/t-pe (pe.o): Likewise.
13945         * config/arm/t-wince-pe (pe.o): Likewise.
13946         * config/i386/t-cygming (winnt.o): Likewise.
13947         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
13948         * config/i386/t-cygwin (cygwin1.o): Likewise.
13949         (cygwin2.o): Likewise.
13950         * config/i386/t-i386 (i386-c.o): Likewise.
13951         * config/i386/t-interix (winnt.o): Likewise.
13952         * config/i386/t-netware (netware.o): Likewise.
13953         * config/i386/t-nwld (nwld.o): Likewise.
13954         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
13955         * config/i386/x-i386 (driver-i386.o): Likewise.
13956         * config/i386/x-cygwin (host-cygwin.o): Likewise.
13957         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
13958         * config/ia64/t-ia64 (ia64-c.o): Likewise.
13959         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
13960         * config/mips/x-native (driver-native.o): Likewise.
13961         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
13962         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
13963         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13964         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
13965         * config/score/t-score-elf (score7.o): Likewise.
13966         (score3.o): Likewise.
13967         * config/sh/t-sh (sh-c.o): Likewise.
13968         * config/sh/t-symbian (sh-c.o): Likewise.
13969         (symbian.o): Likewise.
13970         * config/spu/t-spu-elf (spu-c.o): Likewise.
13971         * config/v850/t-v850 (v850-c.o): Likewise.
13972         * config/v850/t-v850e (v850-c.o): Likewise.
13973
13974 2009-05-26  Richard Guenther  <rguenther@suse.de>
13975
13976         PR tree-optimization/40122
13977         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
13978         VECTOR_CSTs if possible.
13979         (fold_gimple_assign): Likewise.
13980
13981 2009-05-26  Richard Guenther  <rguenther@suse.de>
13982
13983         PR middle-end/40252
13984         * fold-const.c (fold_binary): Use the correct types for building
13985         rotates.
13986
13987 2009-05-26  Richard Guenther  <rguenther@suse.de>
13988
13989         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
13990         redundant calls to merge_alias_info.
13991         (bump_vector_ptr): Likewise.
13992         * tree-ssa-copy.c (merge_alias_info): Remove.
13993         (replace_exp_1): Remove call to merge_alias_info.
13994         (propagate_tree_value): Likewise.
13995         (fini_copy_prop): Propagate points-to info.
13996         * tree-flow.h (merge_alias_info): Remove.
13997
13998 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
13999
14000         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
14001
14002 2009-05-25  Jan Hubicka  <jh@suse.cz>
14003
14004         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
14005         * cgraph.h (struct inline_summary): New filed self_wize,
14006         size_inlining_benefit, self_time and time_inlining_benefit.
14007         (struct cgraph_global_info): Replace insns by time ans size fields.
14008         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
14009         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
14010         (ipcp_update_callgraph): Do not touch function bodies.
14011         * ipa-inline.c: Include except.h
14012         (MAX_TIME): New constant.
14013         (overall_insns): Remove.
14014         (leaf_node_p): New.
14015         (overall_size, max_benefit): New static variables.
14016         (cgraph_estimate_time_after_inlining): New function.
14017         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
14018         (cgraph_clone_inlined_nodes): Update size.
14019         (cgraph_mark_inline_edge): Update size.
14020         (cgraph_estimate_growth): Use size info.
14021         (cgraph_check_inline_limits): Check size.
14022         (cgraph_default_inline_p): Likewise.
14023         (cgraph_edge_badness): Compute badness based on benefit and size cost.
14024         (cgraph_decide_recursive_inlining): Check size.
14025         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
14026         and times.
14027         (cgraph_decide_inlining): Likewise.
14028         (cgraph_decide_inlining_incrementally): Likewise; honor
14029         PARAM_EARLY_INLINING_INSNS.
14030         (likely_eliminated_by_inlining_p): New predicate.
14031         (estimate_function_body_sizes): New function.
14032         (compute_inline_parameters): Use it.
14033         * except.c (must_not_throw_labels): New function.
14034         * except.h (must_not_throw_labels): Declare.
14035         * tree-inline.c (init_inline_once): Kill inlining_weigths
14036         * tree-ssa-structalias.c: Avoid uninitialized warning.
14037         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
14038         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
14039         (PARAM_INLINE_CALL_COST): Remove.
14040         (PARAM_EARLY_INLINING_INSNS): New.
14041
14042 2009-05-25  Richard Guenther  <rguenther@suse.de>
14043
14044         PR tree-optimization/36327
14045         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
14046         callback for reference translation or lookup at the point of may-defs.
14047         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
14048         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
14049         for union COMPONENT_REFs.
14050         (vn_reference_lookup_3): New callback.  Lookup from memset
14051         and CONSTRUCTOR assignment, translate through struct copies.
14052         (vn_reference_lookup_pieces): Make sure to not free the
14053         passed operands array.  Adjust walk_non_aliased_vuses call.
14054         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
14055         make sure we do not leak memory.
14056
14057 2009-05-25  Richard Guenther  <rguenther@suse.de>
14058
14059         * tree-ssa-alias.h (dump_points_to_solution): Declare.
14060         * tree-inline.c (expand_call_inline): Reset the escaped and
14061         callused solutions.
14062         * tree-ssa-structalias.c (pass_build_ealias): New.
14063         * tree-pass.h (pass_build_ealias): Declare.
14064         * passes.c (init_optimization_passes): Add PTA during
14065         early optimizations.
14066         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
14067         and CALLUSED solutions.
14068         (dump_points_to_solution): New function, split out from ...
14069         (dump_points_to_info_for): ... here.
14070         * tree-parloops.c (parallelize_loops): Reset the escaped and
14071         callused solutions.
14072
14073 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14074
14075         PR bootstrap/40027
14076         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
14077         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
14078
14079 2009-05-25  Ira Rosen  <irar@il.ibm.com>
14080
14081         PR tree-optimization/40238
14082         * tree-vect-stmts.c (vect_init_vector): Insert initialization
14083         statements after basic block's labels.
14084         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
14085         to free the allocated memory.
14086
14087 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
14088
14089         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
14090         return address with a USE.
14091
14092 2009-05-24  Richard Guenther  <rguenther@suse.de>
14093
14094         PR middle-end/40233
14095         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
14096         array type from the main variant of the inner type.
14097
14098 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14099
14100         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
14101         definition to bool (from int) to un-break build.
14102         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
14103
14104 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
14105
14106         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
14107         discard_stmt_changes): Delete.
14108         * tree-ssa-operands.c (scb_stack): Delete.
14109         (init_ssa_operands): Do not initialize it.
14110         (fini_ssa_operands): Do not free it.
14111         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
14112
14113         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
14114         update_stmt, remove the others.  Fix comments.
14115         * tree-dfa.c (optimize_stack_restore): Likewise.
14116         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
14117         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
14118         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
14119         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
14120         Likewise.
14121         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
14122         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
14123         (dom_opt_finalize_block): Likewise, adjusting access to
14124         stmts_to_rescan.
14125         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
14126         (stmts_to_rescan): Change item type to gimple.
14127         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
14128
14129 2009-05-24  Ira Rosen  <irar@il.ibm.com>
14130
14131         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
14132         * tree-pass.h (pass_slp_vectorize): New pass.
14133         * params.h (SLP_MAX_INSNS_IN_BB): Define.
14134         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
14135         * tree-vectorizer.c (timevar.h): Include.
14136         (user_vect_verbosity_level): Declare.
14137         (vect_location): Fix comment.
14138         (vect_set_verbosity_level): Update user_vect_verbosity_level
14139         instead of vect_verbosity_level.
14140         (vect_set_dump_settings): Add an argument. Ignore user defined
14141         verbosity if dump flags require higher level of verbosity. Print to
14142         stderr only for loop vectorization.
14143         (vectorize_loops): Update call to vect_set_dump_settings.
14144         (execute_vect_slp): New function.
14145         (gate_vect_slp): Likewise.
14146         (struct gimple_opt_pass pass_slp_vectorize): New.
14147         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
14148         access its members.
14149         (vec_info_for_bb): New function.
14150         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
14151         (VECTORIZATION_ENABLED): New macro.
14152         (SLP_ENABLED, SLP_DISABLED): Likewise.
14153         (vect_is_simple_use): Add bb_vec_info argument.
14154         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
14155         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
14156         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
14157         vect_schedule_slp, vect_analyze_slp): Likewise.
14158         (vect_analyze_stmt): Add slp_tree argument.
14159         (find_bb_location): Declare.
14160         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
14161         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
14162         (vect_analyze_loop_operations, vect_analyze_loop,
14163         get_initial_def_for_induction, vect_create_epilog_for_reduction,
14164         vect_finalize_reduction, vectorizable_reduction,
14165         vectorizable_live_operation, vect_transform_loop): Likewise.
14166         * tree-data-ref.c (dr_analyze_innermost): Update comment,
14167         skip evolution analysis if analyzing a basic block.
14168         (dr_analyze_indices): Likewise.
14169         (initialize_data_dependence_relation): Skip the test whether the
14170         object is invariant for basic blocks.
14171         (compute_all_dependences): Skip dependence analysis for data
14172         references in basic blocks.
14173         (find_data_references_in_stmt): Don't fail in case of invariant
14174         access in basic block.
14175         (find_data_references_in_bb): New function.
14176         (find_data_references_in_loop): Move code to
14177         find_data_references_in_bb and add a call to it.
14178         (compute_data_dependences_for_bb): New function.
14179         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
14180         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
14181         that STEP is 0.
14182         (vect_analyze_data_ref_dependence): Check for interleaving in case of
14183         unknown dependence in basic block and fail in case of dependence in
14184         basic block.
14185         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
14186         dependence instances from either loop or basic block vectorization
14187         info.
14188         (vect_compute_data_ref_alignment): Check if it is loop vectorization
14189         before calling nested_in_vect_loop_p.
14190         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
14191         dependence instances from either loop or basic block vectorization
14192         info.
14193         (vect_verify_datarefs_alignment): Likewise.
14194         (vect_enhance_data_refs_alignment): Adjust function calls.
14195         (vect_analyze_data_refs_alignment): Likewise.
14196         (vect_analyze_group_access): Fix printing. Skip different checks if
14197         DR_STEP is 0. Keep strided stores either in loop or basic block
14198         vectorization data structure. Fix indentation.
14199         (vect_analyze_data_ref_access): Fix comments, allow zero step in
14200         basic blocks.
14201         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
14202         dependence instances from either loop or basic block vectorization
14203         info.
14204         (vect_analyze_data_refs): Update comment. Call
14205         compute_data_dependences_for_bb to analyze basic blocks.
14206         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
14207         case of loop vectorization. In case of basic block vectorization use
14208         data-ref itself as a base.
14209         (vect_create_data_ref_ptr): In case of basic block vectorization:
14210         don't advance the pointer, add new statements before the current
14211         statement.  Adjust function calls.
14212         (vect_supportable_dr_alignment): Support only aligned accesses in
14213         basic block vectorization.
14214         * common.opt (ftree-slp-vectorize): New flag.
14215         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
14216         (vect_pattern_recog_1): Likewise.
14217         * tree-vect-stmts.c (process_use): Likewise.
14218         (vect_init_vector): Add new statements in the beginning of the basic
14219         block in case of basic block SLP.
14220         (vect_get_vec_def_for_operand): Adjust function calls.
14221         (vect_finish_stmt_generation): Likewise.
14222         (vectorizable_call): Add assert that it is loop vectorization, adjust
14223         function calls.
14224         (vectorizable_conversion, vectorizable_assignment): Likewise.
14225         (vectorizable_operation): In case of basic block SLP, take
14226         vectorization factor from statement's type and skip the relevance
14227         check. Adjust function calls.
14228         (vectorizable_type_demotion): Add assert that it is loop
14229         vectorization, adjust function calls.
14230         (vectorizable_type_promotion): Likewise.
14231         (vectorizable_store): Check for outer loop only in case of loop
14232         vectorization. Adjust function calls. For basic blocks, skip the
14233         relevance check and don't advance pointers.
14234         (vectorizable_load): Likewise.
14235         (vectorizable_condition): Add assert that it is loop vectorization,
14236         adjust function calls.
14237         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
14238         that it is not reduction, get vector type, call only supported
14239         functions, skip loop specific parts.
14240         (vect_transform_stmt): Check for outer loop only in case of loop
14241         vectorization.
14242         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
14243         (vect_is_simple_use): Fix comment, add new argument, fix conditions
14244         for external definition.
14245         * passes.c (pass_slp_vectorize): New pass.
14246         * tree-vect-slp.c (find_bb_location): New function.
14247         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
14248         check for patterns only in loops.
14249         (vect_build_slp_tree): Add argument, adjust function calls, fail in
14250         case of multiple types in basic block SLP.
14251         (vect_mark_slp_stmts_relevant): New function.
14252         (vect_supported_load_permutation_p): Fix comment.
14253         (vect_analyze_slp_instance): Add argument. In case of basic block
14254         SLP, take vectorization factor from statement's type, check that
14255         unrolling factor is 1. Adjust function call. Save SLP instance in
14256         either loop or basic block vectorization structure. Return FALSE,
14257         if SLP failed.
14258         (vect_analyze_slp): Add argument. Get strided stores groups from
14259         either loop or basic block vectorization structure. Return FALSE
14260         if basic block SLP failed.
14261         (new_bb_vec_info): New function.
14262         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
14263         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
14264         (vect_schedule_slp): Add argument. Get SLP instances from either
14265         loop or basic block vectorization structure. Set vectorization factor
14266         to be 1 for basic block SLP.
14267         (vect_slp_transform_bb): New function.
14268         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
14269
14270 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
14271
14272         * final.c (shorten_branches): Do not align labels for jump tables.
14273         (final_scan_insn): Use JUMP_TABLE_DATA_P.
14274
14275 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
14276
14277         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
14278         Remove outdated reference to flow.c and fix nits.
14279         * doc/gccint.texi: Tweak RTL description.
14280         * doc/rtl.texi: Likewise.
14281
14282 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
14283
14284         * config/avr/avr.c: Change my email address.
14285         * config/avr/avr.h: Likewise.
14286         * config/avr/avr.md: Likewise.
14287         * config/avr/avr-protos.h: Likewise.
14288         * config/avr/libgcc.S: Likewise.
14289
14290 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
14291
14292         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
14293         (spu_split_load, spu_split_store): Change return type to int.
14294         (spu_split_convert): Declare.
14295         * config/spu/predicates.md (spu_mem_operand): Remove.
14296         (spu_mov_operand): Update.
14297         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
14298         * config/spu/spu.c (regno_aligned_for_load): Remove.
14299         (reg_aligned_for_addr, spu_expand_load): Define.
14300         (spu_expand_extv): Reimplement and handle MEM.
14301         (spu_expand_insv): Handle MEM.
14302         (spu_sched_reorder): Handle insn's with length 0.
14303         (spu_legitimate_address_p): Reimplement.
14304         (store_with_one_insn_p): Return TRUE for any mode with size
14305         larger than 16 bytes.
14306         (address_needs_split): Define.
14307         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
14308         operands.
14309         (spu_convert_move): Define.
14310         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
14311         (spu_split_store): Change all MEM's to TImode.
14312         (spu_init_expanders): Preallocate registers that correspond to
14313         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
14314         mark_reg_pointer.
14315         (spu_split_convert): Define.
14316         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
14317         (_move<mode>, _movdi, _movti): Update predicate and condition.
14318         (load, store): Change to define_split.
14319         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
14320         extend<mode>ti2.
14321         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
14322         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
14323         define_insn_and_split of lshr<mode>3.
14324         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
14325         (<v>ashr<mode>3_imm): Define.
14326         (extv, extzv, insv): Allow MEM operands.
14327         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
14328         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
14329         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
14330         (_spu_convert2): Change to define_insn_and_split and remove the
14331         corresponding define_peephole2.
14332         (stack_protect_set, stack_protect_test, stack_protect_test_si):
14333         Change predicates to memory_operand.
14334
14335 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
14336
14337         * config/arm/thumb2.md: Add 16-bit multiply instructions.
14338
14339 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14340
14341         PR tree-optimization/40219
14342         * tree.c (iterative_hash_expr): Make sure the builtin function is
14343         a normal builtin function and not a front end or back end builtin
14344         before indexing into the built_in_decls array.
14345
14346 2009-05-22  Richard Guenther  <rguenther@suse.de>
14347
14348         PR middle-end/38964
14349         * alias.c (write_dependence_p): Do not use TBAA for answering
14350         anti-dependence or output-dependence.
14351         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
14352         (emit_pointer_definition): Remove.
14353         (emit_alias_warning): Likewise.
14354         (find_what_var_points_to): Remove TBAA pruning code.
14355         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
14356         violations.
14357         (compute_points_to_sets): Remove code computing the set of
14358         dereferenced pointers.
14359         * tree-data-ref.c (dr_may_alias_p): Properly use the split
14360         oracle for querying anti and output dependencies.
14361         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
14362         if TBAA may be applied.
14363         (refs_anti_dependent_p): New function.
14364         (refs_output_dependent_p): Likewise.
14365         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
14366         (refs_output_dependent_p): Likewise.
14367         * doc/tree-ssa.texi (Memory model): New section.
14368         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
14369         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
14370         * cfgexpand.c (expand_gimple_basic_block): Do not handle
14371         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
14372         * expr.c (expand_expr_real_1): Likewise.
14373         * gimple-low.c (lower_stmt): Likewise.
14374         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
14375         (dump_gimple_cdt): Remove.
14376         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
14377         (gimple_size): Likewise.
14378         (walk_gimple_op): Likewise.
14379         (is_gimple_stmt): Likewise.
14380         (walk_stmt_load_store_addr_ops): Likewise.
14381         (gimple_build_cdt): Remove.
14382         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
14383         * gimple.h (gimple_cdt_new_type): Remove.
14384         (gimple_cdt_new_type_ptr): Likewise.
14385         (gimple_cdt_set_new_type): Likewise.
14386         (gimple_cdt_location): Likewise.
14387         (gimple_cdt_location_ptr): Likewise.
14388         (gimple_cdt_set_location): Likewise.
14389         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
14390         * tree-cfg.c (remove_useless_stmts_1): Do not handle
14391         GIMPLE_CHANGE_DYNAMIC_TYPE.
14392         (verify_types_in_gimple_stmt): Likewise.
14393         * tree-inline.c (estimate_num_insns): Likewise.
14394         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
14395         (copy_decl_to_var): Likewise.
14396         (copy_result_decl_to_var): Likewise.
14397         * tree-pretty-print.c (dump_generic_node): Do not handle
14398         CHANGE_DYNAMIC_TYPE_EXPR.
14399         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14400         * tree-ssa-operands.c (get_expr_operands): Likewise.
14401         * tree-ssa-structalias.c (struct variable_info): Remove
14402         no_tbaa_pruning member.
14403         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
14404         (unify_nodes): Do not copy it.
14405         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
14406         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
14407         (set_uids_in_ptset): Do not check it.
14408         (find_what_var_points_to): Likewise.
14409         (compute_tbaa_pruning): Remove.
14410         (compute_points_to_sets): Do not call it.
14411         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
14412         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
14413         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
14414         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
14415         (DECL_NO_TBAA_P): Likewise.
14416         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
14417         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
14418         (expand_omp_atomic_pipeline): Do not set it.
14419         * print-tree.c (print_node): Do not dump it.
14420         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
14421         redundant check.
14422
14423 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
14424
14425         PR target/39856
14426         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
14427         for clobber.
14428
14429 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
14430
14431         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
14432         non-external.
14433
14434 2009-05-22  Ben Elliston  <bje@au.ibm.com>
14435
14436         * Makefile.in (bversion.h, s-bversion): New targets.
14437         (TOPLEV_H): Add bversion.h.
14438         * toplev.h: Include "bversion.h".
14439         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
14440         the __format__ attribute only if compiling with the same version
14441         of GCC as the sources (the "build version").
14442
14443 2009-05-22  Ben Elliston  <bje@au.ibm.com>
14444
14445         * c-format.c (handle_format_attribute): Fix comment typo.
14446
14447 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
14448
14449         PR target/37846
14450         * config/ia64/ia64.opt (mfused-madd): New.
14451         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
14452         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
14453         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
14454         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
14455         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
14456         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
14457         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
14458         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
14459         instruction if !TARGET_FUSED_MADD.
14460         (fpma, fpms): Remove colon from name.
14461
14462 2009-05-22  Richard Guenther  <rguenther@suse.de>
14463
14464         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
14465         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
14466         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
14467         TARGET_MEM_REF.
14468         (create_expression_by_pieces): Only convert if necessary.
14469         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
14470         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
14471
14472 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
14473
14474         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
14475         regular pattern from a template and rename it ...
14476         (*extzv_truncsi_exts): ... to this.
14477
14478 2009-05-21  Richard Guenther  <rguenther@suse.de>
14479
14480         * cgraph.h (struct cgraph_node): Remove inline_decl member.
14481         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
14482         (cgraph_default_inline_p): Likewise.
14483         (cgraph_decide_inlining_incrementally): Likewise.
14484
14485 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14486             Uros Bizjak  <ubizjak@gmail.com>
14487
14488         * config/i386/cpuid.h (bit_MOVBE): New.
14489
14490         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
14491
14492         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
14493         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
14494         (ix86_handle_option): Handle OPT_mmovbe.
14495         (ix86_target_string): Add -mmovbe.
14496         (pta_flags): Add PTA_MOVBE.
14497         (processor_alias_table): Add PTA_MOVBE to "atom".
14498         (override_options): Handle PTA_MOVBE.
14499
14500         * config/i386/i386.h (TARGET_MOVBE): New.
14501
14502         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
14503         (*bswapsi_movbe): New.
14504         (*bswapdi_movbe): Likewise.
14505         (bswapdi2): Renamed to ...
14506         (*bswapdi_1): This.
14507         (bswapdi2): New expander.
14508
14509         * config/i386/i386.opt (mmovbe): New.
14510
14511         * doc/invoke.texi: Document -mmovbe.
14512
14513 2009-05-21  Taras Glek  <tglek@mozilla.com>
14514
14515         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
14516         * gcc-plugin.h (plugin_init): Updated signature.
14517         * gcc-plugin.h (plugin_name_args): Moved to this header.
14518         * doc/plugins.texi (plugin_init): Updated documention to reflect
14519         API change.
14520         * doc/plugins.texi (plugin_name_args): Added to documention.
14521
14522 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
14523
14524         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
14525         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
14526
14527 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
14528
14529         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
14530         JUMP_TABLE_DATA_P predicates where applicable.
14531         * config/i386/predicates.md: Ditto.
14532         * config/i386/sse.md: Ditto.
14533
14534 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
14535
14536         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
14537         operand2 -128 override length_immediate attribute to 1.
14538         * config/i386/predicates.md (constm128_operand): New predicate.
14539
14540         * config/i386/i386.c (memory_address_length): Handle %r12
14541         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
14542         also check REGNO.
14543         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
14544         mode look through optional ZERO_EXTEND and SUBREG.
14545         * config/i386/i386.md (R12_REG): New define_constant.
14546         (prefix_data16): For sse unit set also for MODE_TI insns.
14547         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
14548         insns set if operand 1 is ext_QIreg_operand.
14549         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
14550         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
14551         immediate.
14552         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
14553         mode from MODE_DI to MODE_SI.
14554         (movdi_1_rex64): Override modrm and length_immediate attributes
14555         only for movabs (TYPE_IMOV, alternative 2).
14556         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
14557         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
14558         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
14559         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
14560         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
14561         prefix_rex attribute if DImode.
14562         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
14563         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
14564         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
14565         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
14566         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
14567         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
14568         Likewise.  For TYPE_IMOV clear length_immediate attribute.
14569         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
14570         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
14571         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
14572         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
14573         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
14574         or one operand TYPE_ISHIFT.
14575         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
14576         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
14577         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
14578         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
14579         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
14580         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
14581         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
14582         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
14583         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
14584         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
14585         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
14586         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
14587         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
14588         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
14589         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
14590         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
14591         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
14592         set mode attribute, don't override length attribute.
14593         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
14594         to 1.
14595         (return_internal_long): Set length attribute to 2 instead of 1.
14596         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
14597         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
14598         prefix_rex attribute.
14599         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
14600         New predicates.
14601         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
14602
14603 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14604
14605         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
14606
14607 2009-05-20  Ian Lance Taylor  <iant@google.com>
14608
14609         * tree.c (build_tree_list_vec_stat): New function.
14610         (ctor_to_vec): New function.
14611         (build_nt_call_vec): New function.
14612         (build_call_array): Change args to be a const pointer.
14613         (build_call_vec): New function.
14614         * tree.h (build_nt_call_vec): Declare.
14615         (build_tree_list_vec_stat): Declare.
14616         (build_tree_list_vec): Define.
14617         (build_call_array): Update declaration.
14618         (build_call_vec): Declare.
14619         (ctor_to_vec): Declare.
14620         * c-common.c (tree_vector_cache): New static variable.
14621         (make_tree_vector): New function.
14622         (release_tree_vector): New function.
14623         (make_tree_vector_single): New function.
14624         (make_tree_vector_copy): New function.
14625         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
14626         (make_tree_vector_single, make_tree_vector_copy): Declare.
14627         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
14628         (c_parser_expr_list): Don't manage cache here, instead call
14629         make_tree_vector.
14630         (c_parser_release_expr_list): Remove static function.
14631         (c_parser_vec_to_tree_list): Remove static function.
14632         (c_parser_attributes): Call build_tree_list_vec instead of
14633         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
14634         c_parser_release_expr_list.
14635         (c_parser_postfix_expression_after_primary): Likewise.
14636         (c_parser_objc_keywordexpr): Likewise.
14637
14638 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
14639
14640         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
14641         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
14642         TARGET_CONVERT_TO_TYPE.
14643         * hooks.c (hook_tree_const_tree_null): Define.
14644         * hooks.h (hook_tree_const_tree_null): Declare.
14645         * target.h (struct gcc_target):  Add invalid_parameter_type,
14646         invalid_return_type, promoted_type, and convert_to_type fields.
14647         * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
14648         (TARGET_INVALID_RETURN_TYPE): Define.
14649         (TARGET_PROMOTED_TYPE): Define.
14650         (TARGET_CONVERT_TO_TYPE): Define.
14651         (TARGET_INITIALIZER): Update for new fields.
14652         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
14653         (grokparms): Check targetm.invalid_parameter_type.
14654         * c-typeck.c (default_conversion): Check targetm.promoted_type.
14655         * c-convert.c (convert): Check targetm.convert_to_type.
14656
14657 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
14658
14659         * config/mips/mips.md (*extenddi_truncate<mode>,
14660         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
14661         defintions.
14662         (*extendhi_truncateqi): New define_insn_and_sptit.
14663
14664 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
14665
14666         PR middle-end/40204
14667         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
14668         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
14669
14670 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
14671
14672         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
14673         the operand of VIEW_CONVERT_EXPR.
14674
14675 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
14676
14677         * config/i386/driver-i386.c (host_detect_local_cpu): Check
14678         extended family and model for Intel processors.  Support Intel Atom.
14679
14680 2009-05-20  Olivier Hainque  <hainque@adacore.com>
14681
14682         * gstab.h (stab_code_type): Define, to be used instead of the
14683         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
14684         notice.
14685         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
14686         occurrences by stab_code_type.
14687         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
14688
14689 2009-05-20  Martin Jambor  <mjambor@suse.cz>
14690
14691         * tree-flow.h (insert_edge_copies_seq): Undeclare.
14692         (sra_insert_before): Likewise.
14693         (sra_insert_after): Likewise.
14694         (sra_init_cache): Likewise.
14695         (sra_type_can_be_decomposed_p): Likewise.
14696         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
14697         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
14698         (sra_insert_before): Likewise.
14699         (sra_insert_after): Likewise.
14700         (sra_init_cache): Likewise.
14701         (insert_edge_copies_seq): Made static and moved upwards.
14702
14703         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
14704         case.
14705
14706         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
14707
14708         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
14709         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
14710         simple copies.
14711
14712 2009-05-20  Richard Guenther  <rguenther@suse.de>
14713
14714         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
14715         with mismatched comparison modes.
14716
14717 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14718
14719         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
14720         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
14721         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
14722         with shifts for Thumb2.
14723         (orsi_notsi): New for orn.
14724         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
14725         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
14726         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
14727         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
14728         Don't invert remainder for IOR.
14729
14730 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
14731
14732         PR tree-optimization/40087
14733         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
14734         number_of_iterations_ne): Rename never_infinite argument.
14735         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
14736         number_of_iterations_le): Handle pointer-type ivs when
14737         exit_must_be_taken is false.
14738         (number_of_iterations_cond):  Do not always assume that
14739         exit_must_be_taken if the control variable is a pointer.
14740
14741 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14742
14743         * c-typeck.c (build_binary_op): Allow % on integal vectors.
14744         * doc/extend.texi (Vector Extension): Document that % is allowed too.
14745
14746 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
14747
14748         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
14749         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
14750
14751 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14752
14753         PR c/40172
14754         * c.opt (Wlogical-op): Disabled by default.
14755         * c-opt (c_common_post_options): Do not enable Wlogical-op with
14756         Wextra.
14757         * doc/invoke.texi (Wlogical-op): Likewise.
14758
14759 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
14760
14761         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
14762         into CASE_CONVERT.
14763         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
14764         Propagate the type of the first operand.
14765         <ASSERT_EXPR>: Simplify.
14766         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
14767         Rewrite using the RHS code as discriminant.
14768         <NOP_EXPR>: Turn into CASE_CONVERT.
14769         <PLUS_EXPR>: Propagate the type of the first operand.
14770
14771 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
14772
14773         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
14774         (ia64_dconst_0_375): New.
14775         * config/ia64/ia64.c (ia64_override_options): Remove
14776         -minline-sqrt-min-latency warning.
14777         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
14778         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
14779         * config/ia64/ia64.md (*sqrt_approx): Remove.
14780         (sqrtsf2): Remove #if 0.
14781         (sqrtsf2_internal_thr): Rewrite and move to div.md.
14782         (sqrtdf): Remove assert.
14783         (sqrtdf2_internal_thr): Rewrite and move to div.md.
14784         (sqrtxf2): Remove #if 0.
14785         (sqrtxf2_internal_thr): Rewrite and move to div.md.
14786         * div.md (sqrt_approx_rf): New.
14787         (sqrtsf2_internal_thr): New implementation.
14788         (sqrtsf2_internal_lat): New.
14789         (sqrtdf2_internal_thr: New implementation.
14790         (sqrtxf2_internal): New implementation.
14791
14792 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
14793             Hans-Peter Nilsson  <hp@axis.com>
14794
14795         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
14796         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
14797         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
14798         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
14799         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
14800         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
14801         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
14802         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
14803         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
14804         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
14805         * c-common.c: ...from here.
14806
14807 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14808
14809         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
14810
14811 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14812
14813         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
14814
14815 2009-05-19  Ben Elliston  <bje@au.ibm.com>
14816
14817         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
14818         assignments with memcpy calls.
14819         (add_fdes): Likewise.
14820         (binary_search_unencoded_fdes): Likewise.
14821         (linear_search_fdes): Eliminate type puns.
14822
14823 2009-05-19  Richard Guenther  <rguenther@suse.de>
14824
14825         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
14826         not falsely claim to have propagated into all uses.
14827
14828 2009-05-19  Ben Elliston  <bje@au.ibm.com>
14829
14830         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
14831         version to v3.0.
14832
14833 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
14834
14835         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
14836         * config/sh/sh.c (sh_legitimate_address_p): Make static.
14837         (TARGET_LEGITIMATE_ADDRESS_P): New.
14838         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14839         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
14840
14841 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
14842
14843         PR debug/40109
14844         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
14845         child of the containing namespace's DIE.
14846
14847 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
14848
14849         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
14850         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
14851         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
14852         extend patterns.
14853
14854 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14855
14856         PR target/39942
14857         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
14858         gen_align with gen_pad.
14859         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
14860         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
14861
14862         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
14863         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
14864
14865         * config/i386/i386.md (align): Renamed to ...
14866         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
14867         ASM_OUTPUT_MAX_SKIP_PAD.
14868
14869 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
14870
14871         * config.gcc: Fix variable syntax.
14872
14873         PR target/39531
14874         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
14875         before calling exact_log2.
14876         (output_iorsi3): Likewise.
14877         (output_xorsi3): Likewise.
14878
14879 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
14880
14881         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
14882         for the none zero constant operand except for EQ and NE
14883         comprisons even when the first operand is R0.
14884
14885 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
14886
14887         * config/s390/2064.md: Remove trailing whitespaces.
14888         * config/s390/2084.md: Likewise.
14889         * config/s390/constraints.md: Likewise.
14890         * config/s390/fixdfdi.h: Likewise.
14891         * config/s390/libgcc-glibc.ver: Likewise.
14892         * config/s390/s390-modes.def: Likewise.
14893         * config/s390/s390-protos.h: Likewise.
14894         * config/s390/s390.c: Likewise.
14895         * config/s390/s390.h: Likewise.
14896         * config/s390/s390.md: Likewise.
14897         * config/s390/tpf-unwind.h: Likewise.
14898
14899 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
14900
14901         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
14902
14903 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
14904
14905         M68K TLS support.
14906         * configure.ac (m68k-*-*): Check if binutils support TLS.
14907         * configure: Regenerate.
14908         * config/m68k/predicates.md (symbolic_operand): Extend comment.
14909         * config/m68k/constraints.md (Cu): New constraint.
14910         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
14911         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
14912         (movsi): Handle TLS symbols.
14913         (addsi3_5200): Handle XTLS symbols, indent.
14914         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
14915         (m68k_tls_reference_p): Declare.
14916         (m68k_legitimize_address): Declare.
14917         (m68k_unwrap_symbol): Declare.
14918         * config/m68k/m68k.opt (mxtls): New option.
14919         * config/m68k/m68k.c (ggc.h): Include.
14920         (m68k_output_dwarf_dtprel): Implement hook.
14921         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
14922         (m68k_expand_prologue): Load GOT pointer when function needs it.
14923         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
14924         (m68k_legitimate_constant_address_p): Same.
14925         (m68k_decompose_address): Handle TLS references.
14926         (m68k_get_gp): New static function.
14927         (enum m68k_reloc): New contants.
14928         (TLS_RELOC_P): New macro.
14929         (m68k_wrap_symbol): New static function.
14930         (m68k_unwrap_symbol): New function.
14931         (m68k_final_prescan_insn_1): New static function.
14932         (m68k_final_prescan_insn): New function.
14933         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
14934         functions.
14935         (legitimize_pic_address): Handle TLS references..
14936         (m68k_tls_get_addr, m68k_get_tls_get_addr)
14937         (m68k_libcall_value_in_a0_p)
14938         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
14939         (m68k_call_m68k_read_tp): Helper variables and functions for ...
14940         (m68k_legitimize_tls_address): Handle TLS references.
14941         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
14942         New functions.
14943         (m68k_legitimize_address): Handle TLS symbols.
14944         (m68k_get_reloc_decoration): New static function.
14945         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
14946         UNSPEC_RELOC32.
14947         (m68k_output_dwarf_dtprel): Implement hook.
14948         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
14949         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
14950         m68k_call_* routines.
14951         (sched_attr_op_type): Handle TLS symbols.
14952         (gt-m68k.h): Include.
14953         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
14954         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
14955
14956 2009-05-18  Martin Jambor  <mjambor@suse.cz>
14957
14958         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
14959         (visit_store_addr_for_mod_analysis): New function.
14960         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
14961         (determine_cst_member_ptr): Use gimple_assign_single_p.
14962         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
14963         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
14964         operands.  Don't check number of operands of a NOP_EXPR.
14965
14966 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
14967
14968         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
14969
14970 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14971
14972         PR c/40172
14973         * c-common.c (warn_logical_operator): Don't warn if one of
14974         expression isn't always true or false.
14975
14976 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
14977
14978         * config/i386/biarch32.h: New file.
14979         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
14980
14981 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
14982
14983         * config/mips/mips.md (*zero_extend<mode>_trunchi,
14984         *zero_extend<mode>_truncqi): Merge these into ...
14985         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
14986         Name the pattern following this as *zero_extendhi_truncqi.
14987
14988 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
14989
14990         PR middle-end/39301
14991         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
14992         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
14993         (output_info): Make field HOST_WIDEST_INT.
14994         (print_statistics): Use HOST_WIDEST_INT_PRINT.
14995         (dump_bitmat_statistics): Same.
14996
14997 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
14998
14999         * config.gcc (use_gcc_stdint):  Set to wrap.
15000         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
15001         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
15002         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15003         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
15004         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
15005         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
15006         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15007         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
15008
15009 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
15010
15011         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
15012         tune_64.
15013         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
15014         Move definitions earlier.
15015         (OPT_ARCH64, OPT_ARCH32): Define.
15016         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
15017         and tune_64.
15018
15019 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
15020
15021         PR target/40153
15022         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
15023         implies.
15024
15025 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
15026
15027         * arm.md (movdi2): Copy non-reg values to DImode registers.
15028
15029 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
15030
15031         PR target/39942
15032         * final.c (label_to_max_skip): New function.
15033         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
15034         CODE_LABEL_NUMBER <= max_labelno.
15035         * output.h (label_to_max_skip): New prototype.
15036         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
15037         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
15038         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
15039         Handle CODE_LABELs with >= 16 byte alignment or with
15040         max_skip == (1 << align) - 1.
15041         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
15042         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
15043
15044         PR target/39942
15045         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
15046         .p2align 3 if MAX_SKIP is smaller than 7.
15047         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15048
15049 2009-05-15  Ian Lance Taylor  <iant@google.com>
15050
15051         * alias.c (struct alias_set_entry_d): Rename from struct
15052         alias_set_entry.  Change all uses.
15053         * except.c (struct call_site_record_d): Rename from struct
15054         call_site_record.  Change all uses.
15055         * except.h (struct eh_region_d): Rename from struct eh_region.
15056         Change all uses.
15057         * gcse.c (struct hash_table_d): Rename from struct hash_table.
15058         Change all uses.
15059         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
15060         ivtype_map_elt.  Change all uses.
15061         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
15062         Change all uses.
15063         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
15064         * graphite.h (struct name_tree_d): Rename from struct name_tree.
15065         Change all uses.
15066         (struct sese_d): Rename from struct sese.  Change all uses.
15067         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
15068         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
15069         * optabs.h (struct optab_d): Rename from struct optab.  Change all
15070         uses.
15071         (struct convert_optab_d): Rename from struct convert_optab.
15072         Change all uses.
15073         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
15074         ipa_opt_pass.  Change all uses.
15075         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
15076         all uses.
15077
15078         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
15079         defined as a typedef.
15080         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
15081         defined as a tag.
15082
15083 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15084
15085         PR 16302
15086         * fold-const.c (make_range,build_range_check,merge_ranges): Move
15087         declaration to...
15088         (merge_ranges): Returns bool.
15089         * tree.h (make_range): .. to here.
15090         (build_range_check): Likewise.
15091         (merge_ranges): Likewise. Renamed from merge_ranges.
15092         * c-typeck.c (parser_build_binary_op): Update calls to
15093         warn_logical_operator.
15094         * c-common.c (warn_logical_operator): Add new warning.
15095         * c-common.h (warn_logical_operator): Update declaration.
15096
15097 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15098
15099         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
15100
15101 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15102
15103         * doc/install.texi: Document MPC requirements, flags etc.
15104
15105         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
15106         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
15107         Evaluate constant arguments.
15108         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
15109         (fold_builtin_1): Likewise, also evaluate constant arguments.
15110         Remove superfluous break.
15111         (do_mpc_ckconv): New.
15112         * real.h: Include mpc.h.
15113         * toplev.c (print_version): Output MPC version info if available.
15114
15115 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
15116
15117         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
15118
15119 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15120
15121         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
15122         only once.
15123
15124 2009-05-15  Jan Hubicka  <jh@suse.cz>
15125
15126         * doc/invoke.texi (max-early-inliner-iterations): New flag.
15127         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
15128         (try_inline): Fix return value.
15129         (cgraph_decide_inlining_incrementally): Honor new value.
15130         (cgraph_early_inlining): Handle indirect inlining.
15131         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
15132
15133 2009-05-15  Jan Hubicka  <jh@suse.cz>
15134
15135         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
15136         * cgraphunit.c (cgraph_finalize_function): Set it.
15137         (cgraph_expand_function): Use it.
15138
15139 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
15140
15141         * real.c (encode_ieee_half): Define.
15142         (decode_ieee_half): Define.
15143         (ieee_half_format): Define.
15144         (arm_half_format): Define.
15145         * real.h (ieee_half_format): Declare.
15146         (arm_half_format): Declare.
15147
15148 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
15149
15150         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
15151         swapped, and reversed optabs exist before trying to use them.
15152
15153 2009-05-15  Paul Brook  <paul@codesourcery.com>
15154             Sandra Loosemore  <sandra@codesourcery.com>
15155
15156         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
15157         loads.  Allow PRE_DEC.
15158         (output_move_neon): Handle PRE_DEC.
15159         (arm_print_operand): Add 'A' for neon structure loads.
15160         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
15161         * config/arm/neon.md (neon_mov): Update comment.
15162         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
15163         calls.
15164         (Um): New constraint.
15165
15166 2009-05-15  Jan Hubicka  <jh@suse.cz>
15167
15168         Revert the following patch until testsuite fallout is fixed:
15169         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
15170         * cgraph.h (struct inline_summary): New filed self_wize,
15171         size_inlining_benefit, self_time and time_inlining_benefit.
15172         (struct cgraph_global_info): Replace insns by time ans size fields.
15173         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
15174         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
15175         (ipcp_update_callgraph): Do not touch function bodies.
15176         * ipa-inline.c: Include except.h
15177         (MAX_TIME): New constant.
15178         (overall_insns): Remove
15179         (overall_size, max_benefit): New static variables.
15180         (cgraph_estimate_time_after_inlining): New function.
15181         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
15182         (cgraph_clone_inlined_nodes): Update size.
15183         (cgraph_mark_inline_edge): Update size.
15184         (cgraph_estimate_growth): Use size info.
15185         (cgraph_check_inline_limits): Check size.
15186         (cgraph_default_inline_p): Likewise.
15187         (cgraph_edge_badness): Compute badness based on benefit and size cost.
15188         (cgraph_decide_recursive_inlining): Check size.
15189         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
15190         and times.
15191         (cgraph_decide_inlining): Likewise.
15192         (cgraph_decide_inlining_incrementally): Likewise; honor
15193         PARAM_EARLY_INLINING_INSNS.
15194         (likely_eliminated_by_inlining_p): New predicate.
15195         (estimate_function_body_sizes): New function.
15196         (compute_inline_parameters): Use it.
15197         * except.c (must_not_throw_labels): New function.
15198         * except.h (must_not_throw_labels): Declare.
15199         * tree-inline.c (init_inline_once): Kill inlining_weigths
15200         * tree-ssa-structalias.c: Avoid uninitialized warning.
15201         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
15202         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
15203         (PARAM_INLINE_CALL_COST): Remove.
15204         (PARAM_EARLY_INLINING_INSNS): New.
15205
15206 2009-05-15  Richard Guenther  <rguenther@suse.de>
15207
15208         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
15209         not TODO_update_ssa.
15210
15211 2009-05-15  Richard Guenther  <rguenther@suse.de>
15212
15213         PR tree-optimization/39999
15214         * gimple.h (gimple_expr_type): Use the expression type looking
15215         through useless conversions.
15216         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
15217         (vn_nary_op_insert_stmt): Likewise.
15218         (simplify_binary_expression): Likewise.
15219
15220 2009-05-15  Richard Guenther  <rguenther@suse.de>
15221
15222         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
15223         New options, enabled by default.
15224         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
15225         Document.
15226         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
15227         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
15228         * tree-ssa-structalias.c (gate_tree_pta): New function.
15229         (pass_build_alias): Use it.
15230
15231 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
15232
15233         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
15234         recurse on an invariant address if a conversion from a pointer
15235         type to a wider integer type is involved.
15236
15237 2009-05-15  Jan Hubicka  <jh@suse.cz>
15238
15239         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
15240         * cgraph.h (struct inline_summary): New filed self_wize,
15241         size_inlining_benefit, self_time and time_inlining_benefit.
15242         (struct cgraph_global_info): Replace insns by time ans size fields.
15243         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
15244         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
15245         (ipcp_update_callgraph): Do not touch function bodies.
15246         * ipa-inline.c: Include except.h
15247         (MAX_TIME): New constant.
15248         (overall_insns): Remove
15249         (overall_size, max_benefit): New static variables.
15250         (cgraph_estimate_time_after_inlining): New function.
15251         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
15252         (cgraph_clone_inlined_nodes): Update size.
15253         (cgraph_mark_inline_edge): Update size.
15254         (cgraph_estimate_growth): Use size info.
15255         (cgraph_check_inline_limits): Check size.
15256         (cgraph_default_inline_p): Likewise.
15257         (cgraph_edge_badness): Compute badness based on benefit and size cost.
15258         (cgraph_decide_recursive_inlining): Check size.
15259         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
15260         and times.
15261         (cgraph_decide_inlining): Likewise.
15262         (cgraph_decide_inlining_incrementally): Likewise; honor
15263         PARAM_EARLY_INLINING_INSNS.
15264         (likely_eliminated_by_inlining_p): New predicate.
15265         (estimate_function_body_sizes): New function.
15266         (compute_inline_parameters): Use it.
15267         * except.c (must_not_throw_labels): New function.
15268         * except.h (must_not_throw_labels): Declare.
15269         * tree-inline.c (init_inline_once): Kill inlining_weigths
15270         * tree-ssa-structalias.c: Avoid uninitialized warning.
15271         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
15272         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
15273         (PARAM_INLINE_CALL_COST): Remove.
15274         (PARAM_EARLY_INLINING_INSNS): New.
15275         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
15276         (inline-call-cost): Remove.
15277         (early-inlining-insns): New.
15278
15279 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
15280
15281         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
15282         for bounds.
15283         (print_int_cst_bounds_in_octal_p): Likewise.
15284         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
15285         with subtypes.
15286         * dwarf2out.c (base_type_die): Likewise.
15287         (is_subrange_type): Delete.
15288         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
15289         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
15290         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
15291         if the destination type is boolean.
15292         (build_range_check): Do not special-case subtypes.
15293         (fold_sign_changed_comparison): Likewise.
15294         (fold_unary): Likewise.
15295         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
15296         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
15297         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
15298         * tree.c (subrange_type_for_debug_p): New predicate based on the
15299         former is_subrange_type.
15300         * tree.h (subrange_type_for_debug_p): Declare.
15301         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
15302         (convert_affine_scev): Remove call to above function.
15303         (chrec_convert_aggressive): Likewise.
15304         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
15305         false for conversions involving subtypes.
15306         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
15307         (vrp_val_min): Likewise.
15308         (needs_overflow_infinity): Likewise.
15309         (extract_range_from_unary_expr): Likewise.
15310
15311 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
15312
15313         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
15314         * config/frv/frv.c: Likewise.
15315         * config/s390/s390.c: Likewise.
15316         * config/sparc/sparc.h: Likewise.
15317         * config/i386/i386.h: Likewise.
15318         * config/i386/i386.c: Likewise.
15319         * config/crx/crx.c: Likewise.
15320         * config/m68hc11/m68hc11.h: Likewise.
15321         * config/iq2000/iq2000.c: Likewise.
15322         * config/mn10300/mn10300.h: Likewise.
15323         * config/mn10300/mn10300.c: Likewise.
15324         * config/m68k/m68k.c: Likewise.
15325         * config/rs6000/rs6000.c: Likewise.
15326         * config/rs6000/xcoff.h: Likewise.
15327         * config/rs6000/linux64.h: Likewise.
15328         * config/rs6000/sysv4.h: Likewise.
15329         * config/score/score3.c: Likewise.
15330         * config/score/score7.c: Likewise.
15331         * config/score/score.c: Likewise.
15332         * config/arm/arm.md: Likewise.
15333         * config/mips/mips.c: Likewise.
15334         * config/mips/mips.md: Likewise.
15335         * config/bfin/bfin.h: Likewise.
15336         * config/pa/pa.c: Likewise.
15337         * config/pa/constraints.md: Likewise.
15338
15339         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
15340         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
15341         * config/pdp11/pdp11.h: Use memory_address_p instead.
15342
15343 2009-05-14  Ian Lance Taylor  <iant@google.com>
15344
15345         * passes.c (finish_optimization_passes): Change i to int.
15346         * plugin.c (plugins_active_p): Change event to int.
15347         (dump_active_plugins): Likewise.
15348         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
15349         Add cast.
15350         * tree.c (tree_range_check_failed): Change c to unsigned int.
15351         (omp_clause_range_check_failed): Likewise.
15352         (build_common_builtin_nodes): Change mode to int.  Add cast.
15353         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
15354         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
15355
15356         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
15357         ++ or -- with a variable of enum type.
15358
15359 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
15360
15361         PR driver/40144
15362         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
15363
15364 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
15365
15366         * store-motion.c: Do not include params.h
15367         * Makefile.in: Fix dependencies for various files.
15368
15369 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
15370
15371         * auto-inc-dec.c: Fix pass description, remove apparent
15372         accidental duplication.
15373
15374 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15375
15376         PR middle-end/40147
15377         * ipa-utils.h (memory_identifier_string): Moved to ...
15378         * tree.h (memory_identifier_string): Here.  Add GTY(()).
15379
15380 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
15381
15382         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
15383         in the former documentation of...
15384         (GO_IF_LEGITIMATE_ADDRESS): ... this.
15385         * ira-conflicts.c (get_dup_num): Use address_operand.
15386         * targhooks.c (default_legitimate_address_p): New.
15387         * targhooks.h (default_legitimate_address_p): New.
15388         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
15389         Call hook.
15390         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
15391         * target.h (struct target): Add legitimate_address_p.
15392         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
15393         (TARGET_INITIALIZER): Include it.
15394
15395         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15396         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
15397         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
15398         (TARGET_LEGITIMATE_ADDRESS_P): New.
15399
15400         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15401         (REG_OK_STRICT_P): Delete.
15402         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
15403         (frv_legitimate_address_p_1): ... this.
15404         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
15405         (frv_legitimate_address_p_1): ... the renamed old
15406         frv_legitimate_address_p.
15407         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
15408         (TARGET_LEGITIMATE_ADDRESS_P): New.
15409
15410         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15411         * config/s390/s390-protos.h (legitimate_address_p): Remove.
15412         * config/s390/s390.c (legitimate_address_p): Rename to...
15413         (s390_legitimate_address_p): ... this, make static.
15414         (legitimize_address): Adjust call.
15415         (TARGET_LEGITIMATE_ADDRESS_P): New.
15416         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
15417
15418         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15419         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
15420         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
15421         (TARGET_LEGITIMATE_ADDRESS_P): New.
15422
15423         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15424         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
15425         * config/spu/spu.c (spu_legitimate_address): Rename to...
15426         (spu_legitimate_address_p): ... this, make static.
15427         (TARGET_LEGITIMATE_ADDRESS_P): New.
15428
15429         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15430         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
15431         * config/sparc/sparc.c (legitimate_address_p): Rename to...
15432         (sparc_legitimate_address_p): ... this, make static and return bool.
15433         (legitimize_address): Adjust call.
15434         (TARGET_LEGITIMATE_ADDRESS_P): New.
15435
15436         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15437         * config/i386/i386-protos.h (legitimate_address_p): Remove.
15438         * config/i386/i386.c (legitimate_address_p): Rename to...
15439         (ix86_legitimate_address_p): ... this, make static.
15440         (constant_address_p): Move after it, adjust call.
15441         (TARGET_LEGITIMATE_ADDRESS_P): New.
15442
15443         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15444         * config/avr/avr-protos.h (legitimate_address_p): Remove.
15445         * config/avr/avr.c (legitimate_address_p): Rename to...
15446         (avr_legitimate_address_p): ... this, make static.
15447         (legitimize_address): Adjust call.
15448         (TARGET_LEGITIMATE_ADDRESS_P): New.
15449
15450         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15451         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
15452         * config/crx/crx.c (crx_legitimate_address_p): Make static.
15453         (TARGET_LEGITIMATE_ADDRESS_P): New.
15454
15455         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15456         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
15457         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
15458         (TARGET_LEGITIMATE_ADDRESS_P): New.
15459
15460         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15461         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
15462         Remove.
15463         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15464         Make static.
15465         (TARGET_LEGITIMATE_ADDRESS_P): New.
15466
15467         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15468         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
15469         Remove.
15470         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
15471         Rename to...
15472         (m68hc11_legitimate_address_p): ... this, make static.
15473         (go_if_legitimate_address_internal): Rename to...
15474         (m68hc11_legitimate_address_p_1): ... this.
15475         (legitimize_address): Adjust call.
15476         (TARGET_LEGITIMATE_ADDRESS_P): New.
15477
15478         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15479         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
15480         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
15481         (TARGET_LEGITIMATE_ADDRESS_P): New.
15482
15483         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15484         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
15485         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
15486         (mn10300_legitimate_address_p): ... this, make static.
15487         (TARGET_LEGITIMATE_ADDRESS_P): New.
15488
15489         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15490         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
15491         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
15492         (TARGET_LEGITIMATE_ADDRESS_P): New.
15493
15494         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15495         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
15496         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
15497         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15498         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
15499         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
15500         (rs6000_legitimate_address_p): ... this, make static.
15501         (TARGET_LEGITIMATE_ADDRESS_P): New.
15502         (REG_MODE_OK_FOR_BASE_P): Delete.
15503         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
15504
15505         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15506         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
15507         Delete.
15508         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
15509         static, adjust types.
15510         (TARGET_LEGITIMATE_ADDRESS_P): New.
15511
15512         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15513         * config/score/score.c (score_address_p): Rename to...
15514         (score_legitimate_address_p): ... this.
15515         (TARGET_LEGITIMATE_ADDRESS_P): New.
15516         * config/score/score3.c (score3_address_p): Rename to...
15517         (score3_legitimate_address_p): ... this.
15518         * config/score/score7.c (score7_address_p): Rename to...
15519         (score7_legitimate_address_p): ... this.
15520
15521         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
15522         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
15523         GO_IF_LEGITIMATE_ADDRESS): Delete.
15524         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
15525         thumb2_legitimate_address_p): Delete.
15526         (arm_legitimate_address_p): Rename to...
15527         (arm_legitimate_address_outer_p): ... this.
15528         * config/arm/constraints.md ("Uq"): Adjust call.
15529         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
15530         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
15531         to...
15532         (arm_legitimate_address_outer_p): ... this.
15533         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
15534         static.
15535         (TARGET_LEGITIMATE_ADDRESS_P): New.
15536
15537         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15538         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
15539         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
15540         (TARGET_LEGITIMATE_ADDRESS_P): New.
15541
15542         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15543         * config/vax/vax-protos.h (legitimate_address_p): Remove.
15544         * config/vax/vax.c (legitimate_address_p): Rename to...
15545         (vax_legitimate_address_p): ... this, make static.
15546         (TARGET_LEGITIMATE_ADDRESS_P): New.
15547
15548         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15549         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
15550         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
15551         (TARGET_LEGITIMATE_ADDRESS_P): New.
15552
15553         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15554         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
15555         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
15556         (mmix_legitimate_address_p): ... this, make static.
15557         (TARGET_LEGITIMATE_ADDRESS_P): New.
15558
15559         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15560         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
15561         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
15562         (TARGET_LEGITIMATE_ADDRESS_P): New.
15563
15564 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
15565
15566         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
15567         of MODE_COMPLEX_INT.
15568
15569 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15570
15571         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
15572         LCT_NORMAL in function call.
15573         * mips-tdump.c (print_file_desc): Add cast to enum type.
15574         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
15575         (mark_stabs): Add casts to enum types.
15576         (parse_stabs_common): Add casts to enum types.
15577
15578 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
15579
15580         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
15581         Check for invalid values of LETTER.
15582
15583 2009-05-13  Taras Glek  <tglek@mozilla.com>
15584
15585         * attribs.c (register_attribute): moved out attribute registration
15586         into register_attribute.
15587         * doc/plugins.texi: Documented register_attribute and
15588         PLUGIN_ATTRIBUTES.
15589         * gcc-plugin.h: Added forward decl for register_attribute.
15590         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
15591         * plugin.c (register_callback, invoke_plugin_callbacks): Added
15592         PLUGIN_ATTRIBUTES boilerplate.
15593
15594 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
15595
15596         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
15597         values even in sentinel and empty entries.
15598         (ms_printf_flag_specs):  Likewise.
15599         (ms_scanf_flag_specs):  Likewise.
15600         (ms_strftime_flag_specs):  Likewise.
15601         (ms_print_char_table):  Likewise.
15602         (ms_scan_char_table):  Likewise.
15603         (ms_time_char_table):  Likewise.
15604
15605 2009-05-13  Doug Kwan  <dougkwan@google.com>
15606
15607         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
15608
15609 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
15610
15611         * config/mips/mips.md (store): Add attributes for QI and HI.
15612         Update comment.
15613         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
15614         (truncdi<mode>2): ... this new pattern.
15615
15616 2009-05-13  Brad Hards  <bradh@kde.org>
15617
15618         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
15619
15620 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
15621             Ben Elliston <bje@au.ibm.com>
15622
15623         PR middle-end/40035
15624         * dse.c (check_mem_read_rtx): Guard against width == -1.
15625
15626 2009-05-13  Michael Matz  <matz@suse.de>
15627
15628         PR middle-end/39976
15629         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
15630         (trivially_conflicts_p): New function.
15631         (insert_backedge_copies): Use it.
15632
15633 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
15634
15635         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
15636         (handle_stdc_pragma): Use new enum constant names.
15637         (handle_pragma_float_const_decimal64): Ditto.
15638
15639 2009-05-13  Ian Lance Taylor  <iant@google.com>
15640
15641         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
15642         tree.def.
15643
15644 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
15645
15646         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
15647         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
15648         multilibs.
15649         * config/m68k/m68k.h (FL_UCLINUX): Define.
15650
15651 2009-05-13  Jan Hubicka  <jh@suse.cz>
15652
15653         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
15654
15655 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
15656
15657         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
15658         unless -fschedule-insns is specified.
15659
15660 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
15661
15662         PR target/39561
15663         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
15664         TARGET_EXPAND_CBRANCHDI4.
15665         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
15666         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
15667         (cmpeqdi): Fix comment.
15668
15669 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
15670
15671         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
15672         (sh_legitimate_address_p): Likewise.
15673         * config/sh/sh.c (sh_legitimate_index_p): New.
15674         (sh_legitimate_address_p): Likewise.
15675         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
15676         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
15677         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
15678         (MAYBE_BASE_REGISTER_RTX_P): New macro.
15679         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
15680         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
15681         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
15682         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
15683         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
15684
15685 2009-05-12  Jan Hubicka  <jh@suse.cz>
15686
15687         * tree-inline.c (estimate_operator_cost): Add operands;
15688         when division happens by constant, it is cheap.
15689         (estimate_num_insns): Loads and stores are not having cost of 0;
15690         EH magic stuff is cheap; when computing runtime cost of switch,
15691         use log2 base of amount of its cases; builtin_expect has cost of 0;
15692         compute cost for moving return value of call.
15693         (init_inline_once): Initialize time_based flags.
15694         * tree-inline.h (eni_weights_d): Add time_based flag.
15695
15696 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
15697
15698         * df-core.c: Update head documentation.
15699
15700 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
15701
15702         PR bootstrap/40118
15703         * rs6000.c (rs6000_generate_compare): Use op1b instead of
15704         shadowing exisiting variable op1.
15705
15706 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
15707
15708         PR target/37179
15709         * config/i386/driver-i386.c (processor_signatures): New enum.
15710         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
15711         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
15712         processor signature to detect geode processor.
15713
15714 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
15715
15716         Revert:
15717
15718         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
15719
15720         * optabs.c (prepare_cmp_insn): Temporarily disable test that
15721         causes spurious differences between trunk and cond-optab branch.
15722
15723 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
15724
15725         * dojump.c (compare_from_rtx): Delete.
15726         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
15727         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
15728         if the comparison does not satisfy the predicate; test predicates for
15729         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
15730         further if one existing pattern fails.
15731         * expr.h (compare_from_rtx): Delete.
15732         (prepare_operand): Declare it.
15733         * optabs.c: Change "lib call" to "libcall" throughout.
15734         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
15735         HAVE_conditional_trap, emit_cmp_insn): Delete.
15736         (can_compare_p): Delete cmp_optab case.
15737         (prepare_float_lib_cmp): Return an rtx and a machine mode.
15738         Accept other parameters by value.
15739         (prepare_operand): Make non-static.
15740         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
15741         other parameters by value.  Try to widen operands here based on
15742         an optab_methods argument and looking at cbranch_optab.
15743         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
15744         loop.  Use cbranch_optab directly.
15745         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
15746         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
15747         assertion.
15748         (emit_conditional_move, emit_conditional_add): Inline what's needed
15749         of compare_from_rtx, using new prepare_cmp_insn for the rest.
15750         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
15751         with COMPARE.  Move cmov_optab and cstore_optab above
15752         with cbranch_optab, move cmp_optab down with ucmp_optab,
15753         remove tst_otpab.  Do not initialize trap_rtx.
15754         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
15755         for trap code.  Do not check HAVE_conditional_trap.  Use
15756         prepare_cmp_insn.  Accept no predicate for operand 3.
15757         * optabs.h (OTI_cmp): Mark as used only for libcalls.
15758         (OTI_ctrap, ctrap_optab): New.
15759         (tst_optab): Delete.
15760         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
15761         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
15762         with lookup of ctrap_optab.
15763         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
15764         Delete.
15765         (ctrap_optab): New.
15766
15767         * combine.c (combine_simplify_rtx, simplify_set): Do not
15768         special case comparing against zero for cc0 machines.
15769         * simplify-rtx.c (simplify_binary_operation_1): Never remove
15770         COMPARE on cc0 machines.
15771         (simplify_relational_operation): Return a new expression when
15772         a COMPARE could be removed.
15773         * final.c (final_scan_insn): Compare cc_status values
15774         against LHS of a (compare FOO (const_int 0)) cc0 source.
15775         Also check if cc_status.value is the full compare.
15776
15777         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
15778         (cstoreMM4): Document.
15779         (conditional_trap): Document ctrapMM4 instead.
15780         (sync_compare_and_swapMM): Refer to cbranchcc4.
15781         (Dependent Patterns): Eliminate obsolete information referring to
15782         the old jump optimization phase.
15783         (Canonicalization): Include cbranchcc4 case, omit canonicalization
15784         of compares with 0 on cc0 machines.
15785         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
15786         avoiding references to cc0.  Remove text about storing operands
15787         in cmpMM.
15788         * doc/tm.texi (Condition Codes): Include blurb on different
15789         condition code representations, separate into subsections for
15790         CC0, MODE_CC and conditional execution.
15791
15792         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
15793         alpha_emit_setcc): Accept operands and a machine mode.
15794         * config/alpha/alpha.c (alpha_emit_conditional_branch):
15795         Get code/op0/op1 from operands, use machine mode argument
15796         instead of alpha_compare.fp_p.  Emit the branch here.
15797         (alpha_emit_setcc): Likewise, and return boolean.
15798         (alpha_emit_conditional_move): Likewise.  Assert that
15799         cmp_op_mode == cmp_mode, and simplify accordingly.
15800         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
15801         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
15802         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
15803         Delete.
15804         (stack probe test): Use cbranchdi4.
15805         * config/alpha/predicates.md (alpha_cbranch_operator): New.
15806
15807         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
15808         * config/arc/arc.h (movsicc, movsfcc): Use it.
15809         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
15810         (cbranchsi4, cstoresi4): New.
15811         (cmpsi, bCC and sCC expanders): Remove.
15812
15813         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
15814         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
15815         * config/arm/predicates.md (arm_comparison_operator): Only include
15816         floating-point operators if there is a hardware floating-point unit.
15817         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
15818         deferring to cbranch_cc and cstore_cc respectively.
15819         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
15820         cbranch_cc, cstore_cc): New.
15821         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
15822         arm_compare_op1.
15823         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
15824
15825         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
15826         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
15827         as an argument.
15828         (adjust_insn_length): Adjust calls.
15829         (avr_reorg): Handle (compare (foo) (const_int 0)).
15830         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
15831         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
15832         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
15833         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
15834         (bCC): Remove.
15835         (cbranchqi4, cbranchhi4, cbranchsi4): New.
15836         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
15837
15838         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
15839         (cbranchsi4, cstorebi4, cstoresi4): New.
15840         (movbisi): This insn is duplicate, split it to zero_extend.
15841         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
15842         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
15843         (bfin_optimize_loop): Use cbranch expander.
15844         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
15845         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
15846         (bfin_bimode_comparison_operator): ... this.
15847         (bfin_direct_comparison_operator): New.
15848
15849         * config/cris/cris.c (cris_normal_notice_update_cc): Look
15850         inside (compare FOO (const_int 0)).
15851         (cris_rtx_costs): Handle ZERO_EXTRACT.
15852         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
15853         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
15854         (*tstdi_v32): Delete.
15855         (*cmpdi_non_v32): Add M alternative for operand 1.
15856         (cmpsi, cmp<mode>): Make private.
15857         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
15858         with COMPARE.
15859         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
15860
15861         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
15862         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
15863         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
15864         (cc_reg_operand): New.
15865         (any_cond): Delete.
15866         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
15867         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
15868         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
15869         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
15870         crx_expand_scond): Delete.
15871
15872         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
15873         (cbranchsi4): New.
15874         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
15875         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
15876
15877         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
15878         cstoresi4, cstoresf4, cstoredf4): New.
15879         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
15880         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
15881         Receive the entire operands array.
15882         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
15883         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
15884         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
15885         Get test/op0/op1 from the operands array.
15886         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
15887
15888         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
15889         (h8300_expand_store): New.
15890         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
15891         (const_int 0)).
15892         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
15893         (h8300_expand_store): New.
15894         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
15895         or do not try to produce (set (cc0) REG).
15896         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
15897         change a compare into a move to a scratch register.  Disable some
15898         peepholes when comparing with zero.
15899         (tstsi, tsthi, tstsi, cmpqi): Make private.
15900         (cmphi): Delete.
15901         (bCC, sCC): Delete.
15902         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
15903         cstoresi4): New.
15904
15905         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
15906         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
15907         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
15908         (ix86_emit_i387_log1p): Use cbranchxf2.
15909         (ix86_expand_setcc): Return void.
15910         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
15911         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
15912         cmp<MODEF>, cmpcc): Remove.
15913         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
15914         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
15915         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
15916         (sCC and bCC expanders): Remove.
15917         (stack_protect_test): Use cbranchcc4.
15918
15919         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
15920         Delete.
15921         (ia64_expand_compare): Accept three rtx by reference and return void.
15922         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
15923         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
15924         from *expr.  Update *expr with the BImode comparison to do.
15925         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
15926         cmptf, bCC, sCC, conditional_trap): Delete.
15927         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
15928         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
15929         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
15930         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
15931         * config/ia64/predicates.md (ia64_cbranch_operator): New.
15932
15933         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
15934         type of last argument.
15935         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
15936         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
15937         use machine mode argument instead of branch_type.  Remove dead
15938         code for floating-point comparisons.
15939         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
15940         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
15941         Remove.
15942         (cbranchsi4, cstoresi4): New.
15943         * config/iq2000/predicates.md (reg_or_const_operand): New.
15944
15945         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
15946         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
15947         (b<code>_op): Rewrite to...
15948         (bcc_op): ... this, using match_operator.
15949         (s<code>_op): Rewrite to...
15950         (scc_op): ... this, using match_operator.
15951         (s<code>_24_op): Rewrite to...
15952         (scc_op_24): ... this, using match_operator.
15953         (s<code>_<mode>): Rewrite to...
15954         (cstore<mode>4): ... this, using match_operator.
15955         (s<code>_<mode>_24): Rewrite to...
15956         (cstore<mode>4_24): ... this, using match_operator.
15957         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
15958         m32c_unpend_compare, m32c_expand_scc): Delete.
15959         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
15960         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
15961         (m32c_expand_movcc): Change NE to EQ if necessary.
15962         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
15963
15964         * config/m32r/m32r-protos.h (gen_cond_store): New.
15965         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
15966         (gen_cond_store): New, from sCC patterns.
15967         (m32r_expand_block_move): Use cbranchsi4.
15968         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
15969         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
15970         (cbranchsi4, cstoresi4): New.
15971
15972         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
15973         Delete.
15974         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
15975         (m68hc11_notice_update_cc): Look into a compare with 0.
15976         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
15977         Delete.
15978         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
15979         cmphi, cmpqi, bCC): Delete.
15980         (cbranchsi4, cbranchhi4, cbranchqi4): New.
15981         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
15982         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
15983         sets with COMPARE.
15984
15985         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
15986         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
15987         * config/m68k/constraints.md (H): New.
15988         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
15989         the define_insn below.
15990         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
15991         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
15992         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
15993         patterns): Wrap RHS with COMPARE.
15994         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
15995         (*cmpdi_internal): Name this pattern.
15996         (cmpdi): Change to define_insn.
15997         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
15998         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
15999         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
16000         predicate.
16001         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
16002         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
16003         (conditional_trap): Change to...
16004         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
16005         (*conditional_trap): Use the ordered_comparison_operator and
16006         const1_operand predicates.
16007         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
16008         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
16009         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
16010         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
16011
16012         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
16013         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
16014         (mcore_gen_compare): New.
16015         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
16016         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
16017         (mcore_gen_compare): ... this.
16018         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
16019         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
16020         (stack probe pattern): Use cbranchsi4.
16021
16022         * config/mips/predicates.md (mips_cstore_operator): New.
16023         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
16024         * config/mips/mips.md (any_cond): Delete.
16025         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
16026         always succeed.
16027         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
16028         fixuns_truncsfdi2): Use cbranch patterns.
16029         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
16030         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
16031         Adjust call to mips_expand_conditional_branch.
16032         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
16033         cstore<GPR:mode>4.
16034         * config/mips/mips-protos.h (mips_expand_conditional_branch,
16035         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
16036         * config/mips/mips.c (cmp_operands): Delete.
16037         (mips_emit_compare): Get comparison operands from *op0/*op1.
16038         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
16039         that it succeeds.  Use op0/op1 instead of cmp_operands.
16040         (mips_expand_conditional_branch, mips_expand_conditional_move,
16041         mips_expand_conditional_trap): Likewise.
16042         (mips_block_move_loop): Use cbranch patterns.
16043         * config/mips/mips.h (cmp_operands): Delete.
16044
16045         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
16046         (mmix_gen_compare_reg): Just return a register in the right CC mode.
16047         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
16048         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
16049         (*cmpcc_folded): Rename to...
16050         (*cmpdi_folded): this.
16051         (*cmpcc): Rename to...
16052         (*cmps): ... this.
16053         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
16054         (bCC): Remove.
16055         (cbranchdi4): New.
16056         (cbranchdf4): New.  Handle invalid comparisons here.
16057         * config/mmix/predicates.md (float_comparison_operator): New.
16058
16059         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
16060         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
16061         * config/mn10300/mn10300.md (tst): Delete.
16062         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
16063         Name these patterns and wrap RHS in a compare.
16064         (*cmpsi): Make this pattern private.  Include tst.
16065         (*cmpsf): Make this pattern private.
16066         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
16067         (compare with zero peepholes): Likewise.
16068         (bCC): Remove.
16069         (cbranchsi4, cbranchsf4): New.
16070         (casesi): Use cbranchsi4.
16071
16072         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
16073         hppa_branch_type): Delete.
16074         (return_addr_rtx): Use cbranchsi4.
16075         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
16076         Emit CCFPmode comparison here.
16077         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
16078         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
16079         hppa_branch_type): Delete.
16080         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
16081         (movsicc, movdicc): Remove references to hppa_compare_op0,
16082         hppa_compare_op1 and compare_from_rtx.
16083         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
16084         (casesi): Use cbranchsi4.
16085
16086         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
16087         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
16088         * config/pdp11/pdp11.md (register_or_const0_operand): New.
16089         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
16090         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
16091         (bCC): Delete.
16092         (cbranchdf4, cbranchhi4, cbranchqi4): New.
16093         (*branch, *branch_inverted): New.
16094
16095         * config/picochip/picochip.md (cbranchhi4): Use
16096         ordered_comparison_operator.
16097         (cmphi, bCC): Remove.
16098
16099         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
16100         (trap_comparison_operator): Delete.
16101         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
16102         rs6000_emit_cbranch): Accept mode and operands.
16103         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
16104         rs6000_compare_fp_p): Delete.
16105         (rs6000_generate_compare): Accept mode and comparison.  Extract code
16106         and op0/op1 from there.  Replace references to rs6000_compare_op0
16107         and rs6000_compare_op1.
16108         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
16109         extract result from passed operands.
16110         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
16111         extract loc from passed operands.
16112         (rs6000_emit_cmove): Likewise.
16113         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
16114         rs6000_compare_fp_p): Delete.
16115         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
16116         (cbranch<GPR>4, cbranch<FP>4): New.
16117         (cstore<mode>4): New.  Consolidate here all choices about when to use
16118         portable or specialized sCC sequences.
16119         (stack_protect_test): Use cbranchsi4.
16120         (conditional_trap): Replace with ctrap<GPR>4.
16121         (conditional trap insn): Replace trap_comparison_operator with
16122         ordered_comparison_operator.
16123
16124         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
16125         (s390_emit_prologue): Use ctrap.
16126         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
16127         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
16128         New predicates replacing...
16129         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
16130         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
16131         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
16132         (add<mode>cc): Do not use s390_compare_op0/op1.
16133         (s<code>): Change to...
16134         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
16135         (seq): Change to...
16136         (cstorecc4): ... this.  Handle EQ or NE equally.
16137         (*sne): Un-privatize for use in cstorecc4.
16138         (b<code>): Change to...
16139         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
16140         (conditional_trap): Replace with...
16141         (ctrap<GPR>4, ctrap<FP>4): ... these.
16142         (stack_protect): Use cbranchcc4.
16143
16144         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
16145         * config/score/score-protos.h (score_gen_cmp): Delete.
16146         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
16147         (score_block_move-loop): Use cbranchsi4.
16148         * config/score/score.md (cbranchsi4): New.
16149         (cmpsi, bCC): Delete.
16150         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
16151         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
16152         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
16153         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
16154         * config/score/score3.h (score3_gen_cmp): Delete.
16155         * config/score/score7.h (score7_gen_cmp): Delete.
16156
16157         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
16158         (sh_emit_scc_to_t): ... this.  Return void.
16159         (from_compare): Rename to...
16160         (sh_emit_compare_and_branch): ... this.
16161         (sh_emit_compare_and_set): New.
16162         (sh_expand_t_scc): Accept operands.
16163         * config/sh/predicates.md (sh_float_comparison_operator): New.
16164         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
16165         (prepare_scc_operands): Rename to...
16166         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
16167         arguments.
16168         (sh_emit_cheap_store_flag): New.
16169         (sh_emit_set_t_insn): New.
16170         (from_compare): Rename to...
16171         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
16172         handling of TARGET_SH2E floating point to avoid recursive call.
16173         Generate branch here.
16174         (sh_emit_compare_and_set): New.
16175         (sh_expand_t_scc): Get op0/op1 from arguments.
16176         (sh_emit_cheap_store_flag): New.
16177         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
16178         cases.
16179         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
16180         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
16181         (movsicc, movdicc): Do nothing when it recreated operands from
16182         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
16183         prepare_scc_operands (now sh_emit_scc_to_t).
16184         (udivdi3): Use cstoresi4.
16185         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
16186         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
16187         (cbranchint4_media, cbranchfp4_media): New.
16188         (casesi): Use cbranchdi4.
16189         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
16190         Delete.
16191         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
16192         (movnegt): Remove second operand.
16193         (cbranchsf4, cbranchdf4): New.
16194         (stack_protect): Use cbranchdi4/cbranchsi4.
16195
16196         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
16197         (gen_compare_reg): Accept comparison, extract part of it to...
16198         (gen_compare_reg_1): ... this.
16199         (gen_compare_operator): Delete.
16200         (gen_v9_scc): Accept separate destination, comparison code and arms.
16201         Do not use sparc_compare_op0/sparc_compare_op1.
16202         (emit_scc_insn, emit_conditional_branch_insn): New.
16203         (emit_v9_brxx): Make static.  Remove useless assertion.
16204         (sparc_emit_float_lib_cmp): Return RTL instead of calling
16205         emit_cmp_insn.
16206         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
16207         * config/sparc/sparc-protos.h (gen_compare_reg,
16208         sparc_emit_float_lib_cmp): Adjust prototype.
16209         (emit_scc_insn, emit_conditional_branch_insn): New.
16210         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
16211         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
16212         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
16213         iterators to the top.
16214         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
16215         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
16216         snedi_special_trunc): Delete.
16217         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
16218         and snedi_special_trunc.
16219         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
16220         cbranchdi4, cbranch<F:mode>4): New.
16221         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
16222         here.  Use gen_compare_reg instead of gen_compare_operator.
16223         (conditional_trap): Replace with...
16224         (ctrapsi4, ctrapdi4): ... this.
16225         (stack_protect_test): Use cbranchcc4.
16226
16227         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
16228         argument to rtx.
16229         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
16230         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
16231         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
16232         from operands[0] or operands[3] depending on is_set.
16233         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
16234         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
16235         cmpdf, bCC), sCC: Remove.
16236         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
16237         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
16238         cstoredf4): New.
16239         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
16240         spu_emit_branch_or_set.
16241
16242         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
16243         Add two arguments.
16244         * config/stormy16/stormy16.h (xstormy16_compare_op0,
16245         xstormy16_compare_op1): Delete.
16246         * config/stormy16/stormy16.c (xstormy16_compare_op0,
16247         xstormy16_compare_op1): Delete.
16248         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
16249         Adjust calls.
16250         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
16251         (cmphi, cmpsi, bCC): Remove.
16252
16253         * config/v850/v850.md (tstsi, cmpsi): Fold into...
16254         (*cmpsi): ... this one.
16255         (cbranchsi4, cstoresi4): New.
16256         (bCC expanders): Delete.
16257         (sCC insns): Fold into...
16258         (*setcc): ... this one.
16259         (casesi): Do not use gen_cmpsi and gen_bgtu.
16260         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
16261         (movsicc): Simplify.
16262         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
16263
16264         * config/vax/vax-protos.h (cond_name): New.
16265         (vax_output_conditional_branch): Remove.
16266         * config/vax/vax.c (cond_name): New.
16267         (vax_output_conditional_branch): Remove.
16268         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
16269         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
16270         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
16271         (bit<VAXint>): Wrap source with (compare).
16272         (b<code> and following unnamed pattern): Rename to *branch and
16273         *branch_reversed.  Change macroization to match_operator.
16274         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
16275
16276         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
16277         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
16278         Change last argument to machine_mode.
16279         (xtensa_expand_scc): Add machine_mode argument.
16280         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
16281         (gen_conditional_move, xtensa_expand_conditional_branch,
16282         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
16283         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
16284         Adjust operand numbers.
16285         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
16286         Delete.
16287         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
16288         (cmpsi, cmpsf, b<code>, s<code>): Delete.
16289         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
16290
16291 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
16292
16293         * optabs.c (prepare_cmp_insn): Temporarily disable test that
16294         causes spurious differences between trunk and cond-optab branch.
16295
16296 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
16297
16298         PR target/37137
16299         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
16300
16301 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
16302
16303         * tree.c (iterative_hash_pointer): Delete.
16304         (iterative_hash_expr): Short-circuit handling of NULL pointer.
16305         Hash UIDs and versions of SSA names.  Don't special-case built-in
16306         function declarations.
16307
16308 2009-05-11  Ian Lance Taylor  <iant@google.com>
16309
16310         PR bootstrap/40103
16311         * graphite.c: Force -Wc++-compat to only be a warning before
16312         #including "cloog/cloog.h".
16313
16314 2009-05-11  Martin Jambor  <mjambor@suse.cz>
16315
16316         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
16317
16318 2009-05-11  Jan Hubicka  <jh@suse.cz>
16319
16320         * tree-ssa-loop-ivcanon.c: Include target.h
16321         (struct loop_size): new structure.
16322         (constant_after_peeling): New predicate.
16323         (tree_estimate_loop_size): New function.
16324         (estimated_unrolled_size): Rewrite for new estimates.
16325         (try_unroll_loop_completely): Use new estimates.
16326         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
16327
16328 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16329
16330         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
16331         libcpp interface change.
16332         (spu_macro_to_expand): Likewise.
16333
16334 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
16335
16336         PR tree-optimization/40026
16337         * gimplify.c (gimplify_init_constructor): Change initial conditional
16338         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
16339         optimize_compound_literals_in_ctor.
16340
16341 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
16342
16343         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
16344         New devices.
16345         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
16346
16347 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
16348
16349         * tree-vect-data-refs.c (vect_analyze_group_access): Use
16350         HOST_WIDE_INT for gap.
16351
16352 2009-05-11  Ira Rosen  <irar@il.ibm.com>
16353
16354         PR tree-optimization/40074
16355         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
16356         account in group size and step comparison.
16357
16358 2009-05-11  Richard Guenther  <rguenther@suse.de>
16359
16360         * passes.c (init_optimization_passes): Strip now incorrect comment.
16361         (execute_function_todo): Do not set PROP_alias.
16362         * tree-pass.h (PROP_alias): Remove.
16363         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
16364         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
16365         * tree-nrv.c (pass_return_slot): Likewise.
16366         * tree-object-size.c (pass_object_sizes): Likewise.
16367         * tree-ssa-dom.c (pass_dominator): Likewise.
16368         (pass_phi_only_cprop): Likewise.
16369         * tree-ssa-dse.c (pass_dse): Likewise.
16370         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
16371         (pass_cselim): Likewise.
16372         * tree-ssa-pre.c (pass_pre): Likewise.
16373         (pass_fre): Likewise.
16374         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16375         * tree-ssa-sink.c (pass_sink_code): Likewise.
16376         * tree-stdarg.c (pass_stdarg): Likewise.
16377         * tree-tailcall.c (pass_tail_calls): Likewise.
16378         * tree-vrp.c (pass_vrp): Likewise.
16379
16380 2009-05-10  Ian Lance Taylor  <iant@google.com>
16381
16382         * basic-block.h (enum profile_status): Break out of struct
16383         control_flow_graph.
16384         * cgraph.h (struct inline_summary): Break out of struct
16385         cgraph_local_info.
16386         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
16387         of struct cgraph_order_sort.
16388         * combine.c (enum undo_kind): New enum, broken out of struct undo.
16389         * cse.c (struct branch_path): Break out of struct
16390         cse_basic_block_data.
16391         * except.h (enum eh_region_type): Break out of struct eh_region.
16392         * gcc.c (enum add_del): Break out of struct modify_target.
16393         * genrecog.c (enum decision_type): Break out of struct decision_test.
16394         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
16395         ggc_pch_data.
16396         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
16397         * regmove.c (enum match_use): New enum, broken out of struct match.
16398         * sched-int.h (enum post_call_group): New enum, broken out of
16399         struct deps.
16400         (struct deps_reg): Break out of struct deps.
16401         * target.h (struct asm_int_op): Break out of struct gcc_target.
16402         * tree-eh.c (struct goto_queue_node): Break out of struct
16403         leh_tf_state.
16404         * tree-inline.h (enum copy_body_cge_which): Break out of
16405         copy_body_data.
16406         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
16407
16408         * c-decl.c (in_struct, struct_types): New static variables.
16409         (pushtag): Add loc parameter.  Change all callers.
16410         (lookup_tag): Add ploc parameter.  Change all callers.
16411         (check_compound_literal_type): New function.
16412         (parser_xref_tag): Add loc parameter.  Change all callers.  If
16413         -Wc++-compat, warn about struct/union/enum types defined within a
16414         struct or union.
16415         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
16416         and loc parameters.  Change all callers.  Change error calls to
16417         error_at, using loc.  For a redefinition, if the location of the
16418         original definition is known, report it.  Set in_struct and
16419         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
16420         (finish_struct): Add new parameters enclosing_in_struct and
16421         enclosing_struct_types.  Change all callers.  Set
16422         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
16423         in the struct.  If in a struct, add this struct to struct_types.
16424         (start_enum): Add loc parameter.  Change all callers.  Use
16425         error_at for errors, using loc.  For a redefinition, if the
16426         location of the original definition is known, report it.  If in a
16427         struct, add this enum type to struct_types.  If -Wc++-compat warn
16428         if in sizeof, typeof, or alignof.
16429         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
16430         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
16431         (c_parser_enum_specifier): Get enum location for start_enum.
16432         (c_parser_struct_or_union_specifier): Get struct location for
16433         start_struct.  Save in_struct and struct_types status between
16434         start_struct and finish_struct.
16435         (c_parser_cast_expression): Get location of cast.
16436         (c_parser_alignof_expression): Get location of type.
16437         (c_parser_postfix_expression): Likewise.
16438         (c_parser_postfix_expression_after_paren_type): Add type_loc
16439         parameter.  Change all callers.  Call check_compound_literal_type.
16440         Use type_loc for error about variable size type.
16441         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
16442         of an enum constant from an enum type defined in a struct or union.
16443         (c_cast_expr): Add loc parameter.  Change all callers.  If
16444         -Wc++-compat, warn about defining a type in a cast.
16445         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
16446         (start_enum, start_struct, finish_struct): Update declarations.
16447         (parser_xref_tag, c_cast_expr): Update declarations.
16448         (check_compound_literal_type): Declare.
16449
16450 2009-05-11  Ben Elliston  <bje@au.ibm.com>
16451
16452         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
16453         for recent libcpp interface change.
16454         (rs6000_macro_to_expand): Likewise.
16455
16456 2009-05-10  Michael Matz  <matz@suse.de>
16457
16458         PR target/40031
16459         * config/arm/arm.c (require_pic_register): Emit on entry edge,
16460         not at entry of function.
16461
16462 2009-05-10  Richard Guenther  <rguenther@suse.de>
16463
16464         PR tree-optimization/40081
16465         Revert
16466         * tree-sra.c (instantiate_element): Instantiate scalar replacements
16467         using the main variant of the element type.  Do not fiddle with
16468         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
16469
16470         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
16471         structs with volatile fields.
16472
16473 2009-05-10  Jan Hubicka  <jh@suse.cz>
16474
16475         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
16476         (estimate_move_cost): Assert that it does not get called for
16477         VOID_TYPE_P.
16478         (estimate_num_insns): Skip VOID types in argument handling.
16479         (optimize_inline_calls): Delete unreachable blocks and verify that
16480         callgraph is valid.
16481
16482 2009-05-10  Jan Hubicka  <jh@suse.cz>
16483
16484         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
16485         * cgraph.c (cgraph_mark_address_taken_node): New function.
16486         (dump_cgraph_node): Dump new flag.
16487         * cgraph.h (struct cgraph_node): Add address_taken.
16488         (cgraph_mark_address_taken_node): New function.
16489         * ipa.c (cgraph_postorder): Prioritize functions with address taken
16490         since new direct calls can be born.
16491
16492 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
16493
16494         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
16495         tok->val.node.node.
16496
16497 2009-05-10  Jan Hubicka  <jh@suse.cz>
16498
16499         PR middle-end/40084
16500         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
16501         argument; rewrite.
16502         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
16503         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
16504         * tree-inline.c (copy_bb): Set frequency correctly.
16505         (fold_marked_statements): Update call to
16506         cgraph_update_edges_for_call_stmt.
16507
16508 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
16509
16510         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
16511         identifiers in diagnostics.
16512         * config/arm/arm.c (arm_handle_fndecl_attribute,
16513         arm_handle_isr_attribute): Likewise.
16514         * config/avr/avr.c (avr_handle_progmem_attribute,
16515         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
16516         * config/bfin/bfin.c (handle_int_attribute,
16517         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
16518         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
16519         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
16520         Likewise.
16521         * config/darwin.c (darwin_handle_kext_attribute,
16522         darwin_handle_weak_import_attribute): Likewise.
16523         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
16524         h8300_handle_eightbit_data_attribute,
16525         h8300_handle_tiny_data_attribute): Likewise.
16526         * config/i386/i386.c (ix86_handle_cconv_attribute,
16527         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
16528         * config/i386/winnt.c (ix86_handle_shared_attribute,
16529         ix86_handle_selectany_attribute): Likewise.
16530         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
16531         * config/m32c/m32c.c (function_vector_handler): Likewise.
16532         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
16533         m68hc11_handle_fntype_attribute): Likewise.
16534         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
16535         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
16536         * config/mips/mips.c (mips_insert_attributes,
16537         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
16538         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
16539         rs6000_handle_struct_attribute): Likewise.
16540         * config/sh/sh.c (sh_insert_attributes,
16541         sh_handle_resbank_handler_attribute,
16542         sh_handle_interrupt_handler_attribute,
16543         sh2a_handle_function_vector_handler_attribute,
16544         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
16545         Likewise.
16546         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
16547         * config/spu/spu.c (spu_handle_fndecl_attribute,
16548         spu_handle_vector_attribute): Likewise.
16549         * config/stormy16/stormy16.c
16550         (xstormy16_handle_interrupt_attribute): Likewise.
16551         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
16552         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
16553
16554 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
16555
16556         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
16557         (pp_translate_identifiers): New.
16558         (pp_identifier): Only conditionally translate identifier to locale
16559         character set.
16560         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
16561         (pp_base_tree_identifier): Only conditionally translate identifier
16562         to locale character set.
16563         * c-pretty-print.c (M_): Define.
16564         (pp_c_type_specifier, pp_c_primary_expression): Mark English
16565         fragments for conditional translation with M_.
16566         * tree-pretty-print.c (maybe_init_pretty_print): Disable
16567         identifier translation.
16568
16569 2009-05-10  Richard Guenther  <rguenther@suse.de>
16570
16571         PR tree-optimization/40081
16572         * tree-sra.c (instantiate_element): Instantiate scalar replacements
16573         using the main variant of the element type.  Do not fiddle with
16574         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
16575
16576 2009-05-09  Jan Hubicka  <jh@suse.cz>
16577
16578         PR middle-end/40080
16579         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
16580         indirect calls; verify cgraph afterwards.
16581
16582 2009-05-09  Jan Hubicka  <jh@suse.cz>
16583
16584         PR bootstrap/40082
16585         * ipa.c (update_inlined_to_pointer): New function.
16586         (cgraph_remove_unreachable_nodes): Use it.
16587
16588 2009-05-09  Jan Hubicka  <jh@suse.cz>
16589
16590         * tree-eh.c (struct leh_state): Remove prev_try.
16591         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
16592         not track prev_try.
16593         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
16594         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
16595         remove_eh_handler_and_replace, foreach_reachable_handler,
16596         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
16597         * except.h (struct eh_region): Remove eh_region_u_cleanup.
16598         (gen_eh_region_cleanup): Update prototype.
16599
16600 2009-05-09  Jan Hubicka  <jh@suse.cz>
16601
16602         PR middle-end/40043
16603         * except.c (copy_eh_region): Always set prev_try.
16604         (redirect_eh_edge_to_label): Find outer try.
16605         (foreach_reachable_handler): When looking for prev try
16606         handle case where previous try is not going to be taken.
16607
16608 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
16609
16610         PR tree-optimization/40049
16611         * tree-vect-stmts.c (vectorizable_operation): If the machine has
16612         only vector/vector shifts, convert the type of the constant to the
16613         appropriate type to avoid building incorrect trees, which
16614         eventually have problems with garbage collection.
16615
16616 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
16617
16618         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
16619         -1 for complex floating-point types if honoring signed zeros.
16620
16621 2009-05-08  Jan Hubicka  <jh@suse.cz>
16622
16623         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
16624         argument; handle correctly when profile is absent.
16625         (build_cgraph_edges): Update.
16626         (rebuild_cgraph_edges): Update.
16627         * cgraph.c: Do not include varray.h.
16628         (cgraph_set_call_stmt_including_clones): New function.
16629         (cgraph_create_edge_including_clones): Likewise
16630         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
16631         (cgraph_update_edges_for_call_stmt): Handle clones.
16632         (cgraph_remove_node): Handle clone tree.
16633         (cgraph_remove_node_and_inline_clones): New function.
16634         (dump_cgraph_node): Dump clone tree.
16635         (cgraph_clone_node): Handle clone tree.
16636         (clone_function_name): Bring here from tree-inline.c.
16637         (cgraph_create_virtual_clone): New function.
16638         * cgraph.h (ipa_replace_map): Move here from ipa.h.
16639         (cgraph_clone_info): New function.
16640         (strut cgraph_node): Add clone_info and new clone tree pointers.
16641         (cgraph_remove_node_and_inline_clones,
16642         cgraph_set_call_stmt_including_clones,
16643         cgraph_create_edge_including_clones,
16644         cgraph_create_virtual_clone): Declare.
16645         (cgraph_function_versioning): Use VEC argument.
16646         (compute_call_stmt_bb_frequency): Update prototype.
16647         (cgraph_materialize_all_clones): New function.
16648         * ipa-cp.c (ipcp_update_cloned_node): Remove.
16649         (ipcp_create_replace_map): Update to VECtors.
16650         (ipcp_update_callgraph): Use virtual clones.
16651         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
16652         (ipcp_update_profiling): Do not update local profiling.
16653         (ipcp_insert_stage): Use VECtors and virtual clones.
16654         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
16655         (clone_of_p): New function.
16656         (cgraph_preserve_function_body_p): Use clone tree.
16657         (cgraph_optimize): Materialize clones.
16658         (cgraph_function_versioning): Update for VECtors.
16659         (save_inline_function_body): Use clone tree.
16660         (cgraph_materialize_clone): New function.
16661         (cgraph_materialize_all_clones): Likewise.
16662         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
16663         * ipa.c: Include gimple.h.
16664         (cgraph_remove_unreachable_nodes): Use clone tree.
16665         * ipa-prop.c (ipa_note_param_call): Update call to
16666         compute_call_stmt_bb_frequencycall.
16667         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
16668         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
16669         (copy_bb): Handle updating of clone tree; add new edge when new call
16670         appears.
16671         (expand_call_inline): Be strict about every call having edge.
16672         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
16673         (delete_unreachable_blocks_update_callgraph): New function.
16674         (tree_function_versioning): Use VECtors; always remove unreachable
16675         blocks and fold conditionals.
16676         * tree-inline.h: Do not include varray.h.
16677         (tree_function_versioning): Remove.
16678         * Makefile.in (GTFILES): Remove tree-inline.c
16679         * passes.c (do_per_function): Do only functions having body.
16680         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
16681         tree.
16682
16683 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
16684             Andrew Morrow  <acm@google.com>
16685
16686         PR c/36892
16687         * c-common.c (c_common_attribute_table): Permit deprecated
16688         attribute to take an optional argument.
16689         (handle_deprecated_attribute): If the optional argument to
16690         __attribute__((deprecated)) is not a string ignore the attribute
16691         and emit a warning.
16692
16693         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
16694         * c-typeck.c (build_component_ref): Likewise.
16695         (build_external_ref): Likewise.
16696
16697         * toplev.c (warn_deprecated_use): Add an attribute argument.
16698         Emit the message associated with __attribute__((deprecated)).
16699
16700         * toplev.h (warn_deprecated_use): Updated.
16701
16702         * doc/extend.texi: Document new optional parameter to
16703         __attribute__((deprecated))
16704
16705 2009-05-08  Michael Eager <eager@eagercon.com>
16706
16707         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
16708         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
16709
16710 2009-05-08  Richard Guenther  <rguenther@suse.de>
16711
16712         PR tree-optimization/40062
16713         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
16714         Avoid exponential behavior.
16715
16716 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
16717
16718         PR rtl-optimization/33928
16719         PR 26854
16720         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
16721         process_uses, build_single_def_use_links): New.
16722         (update_df): Update use_def_ref.
16723         (forward_propagate_into): Use get_def_for_use instead of use-def
16724         chains.
16725         (fwprop_init): Call build_single_def_use_links and let it initialize
16726         dataflow.
16727         (fwprop_done): Free use_def_ref.
16728         (fwprop_addr): Eliminate duplicate call to df_set_flags.
16729         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
16730         df_rd_simulate_one_insn): New.
16731         (df_rd_bb_local_compute_process_def): Update head comment.
16732         (df_chain_create_bb): Use the new RD simulation functions.
16733         * df.h (df_rd_simulate_artificial_defs_at_top,
16734         df_rd_simulate_one_insn): New.
16735         * opts.c (decode_options): Enable fwprop at -O1.
16736         * doc/invoke.texi (-fforward-propagate): Document this.
16737
16738 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
16739
16740         PR c/24581
16741         * c-typeck.c (build_binary_op): Handle arithmetic between one real
16742         and one complex operand specially.
16743         * tree-complex.c (some_nonzerop): Do not identify a real value as
16744         zero if flag_signed_zeros.
16745
16746 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
16747
16748         PR rtl-optimization/33928
16749         * loop-invariant.c (record_use): Fix && vs. || mishap.
16750
16751 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
16752
16753         PR rtl-optimization/33928
16754         * loop-invariant.c (struct use): Add addr_use_p.
16755         (struct def): Add n_addr_uses.
16756         (struct invariant): Add cheap_address.
16757         (create_new_invariant): Set cheap_address.
16758         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
16759         (record_uses): Pass df_ref to record_use.
16760         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
16761         used only as such.
16762
16763 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
16764
16765         * config/sh/sh.c: Do not include c-pragma.h.
16766
16767 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16768
16769         * config/spu/spu.c: Remove include of c-common.h.
16770
16771 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
16772
16773         PR c/39037
16774         * c-common.h (mark_valid_location_for_stdc_pragma,
16775         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
16776         clear_float_const_decimal64, float_const_decimal64_p): New.
16777         * c.opt (Wunsuffixed-float-constants): New.
16778         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
16779         unsuffixed float constant, handle new warning.
16780         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
16781         * c-decl.c (c_scope): New flag float_const_decimal64.
16782         (set_float_const_decimal64, clear_float_const_decimal64,
16783         float_const_decimal64_p): New.
16784         (push_scope): Set new flag.
16785         * c-parser.c (c_parser_translation_unit): Mark when it's valid
16786         to use STDC pragmas.
16787         (c_parser_external_declaration): Ditto.
16788         (c_parser_compound_statement_nostart): Ditto.
16789         * c-pragma.c (valid_location_for_stdc_pragma,
16790         mark_valid_location_for_stdc_pragma,
16791         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
16792         handle_pragma_float_const_decimal64): New.
16793         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
16794         * cp/semantics.c (valid_location_for_stdc_pragma_p,
16795         set_float_const_decimal64, clear_float_const_decimal64,
16796         float_const_decimal64_p): New dummy functions.
16797         * doc/extend.texi (Decimal Float): Remove statement that the
16798         pragma, and suffix for double constants, are not supported.
16799         * doc/invoke.texi (Warning Options): List new option.
16800         (-Wunsuffixed-float-constants): New.
16801
16802 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
16803
16804         * config/i386/i386.c: Do not include c-common.h.
16805
16806 2009-05-07  Mark Heffernan  <meheff@google.com>
16807
16808         * doc/invoke.texi (Debugging Options): Document change of debugging
16809         dump location.
16810         * opts.c (decode_options): Make dump_base_name relative to
16811         aux_base_name directory.
16812
16813 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
16814
16815         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
16816         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
16817
16818 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
16819
16820         * Makefile.in (install-plugin): Simplify a bit.
16821
16822 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
16823
16824         * Makefile.in (OBJS-common): Add regcprop.o.
16825         (regcprop.o): New.
16826         * timevar.def (TV_CPROP_REGISTERS): New.
16827         * regrename.c (regrename_optimize): Return 0.
16828         (rest_of_handle_regrename): Delete.
16829         (pass_rename_registers): Point to regrename_optimize.
16830         (struct value_data_entry, struct value_data,
16831         kill_value_one_regno, kill_value_regno, kill_value,
16832         set_value_regno, init_value_data, kill_clobbered_value,
16833         kill_set_value, kill_autoinc_value, copy_value,
16834         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
16835         replace_oldest_value_reg, replace_oldest_value_addr,
16836         replace_oldest_value_mem, copyprop_hardreg_forward_1,
16837         debug_value_data, validate_value_data): Move...
16838         * regcprop.c: ... here.
16839         (rest_of_handle_cprop): Delete.
16840         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
16841
16842 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
16843
16844         PR middle-end/40057
16845         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
16846         GEN_INT for 1 << bitnum.
16847         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
16848         build_int_cst_type.
16849
16850 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
16851
16852         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
16853         Remove wrong description of "nand" operation.
16854
16855 2009-05-06  Richard Guenther  <rguenther@suse.de>
16856             Adam Nemet  <anemet@caviumnetworks.com>
16857
16858         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
16859         comment.  Add that if LHS is not a gimple register, then RHS1 has
16860         to be a single object (GIMPLE_SINGLE_RHS).
16861
16862 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
16863
16864         * expr.c (get_def_for_expr): Move it up in the file.
16865         (store_field): When expanding a bit-field store, look at the
16866         defining gimple stmt for the masking conversion.
16867
16868 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
16869
16870         PR middle-end/39986
16871         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
16872         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
16873         32-bit memcpy into long.
16874
16875 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
16876
16877         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
16878         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
16879         new_reg_loc_descr.
16880         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
16881         instead of appending DW_OP_deref*.
16882
16883 2009-05-06  Michael Matz  <matz@suse.de>
16884
16885         PR middle-end/40021
16886         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
16887         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
16888
16889 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
16890
16891         * Makefile.in (install-plugin): Fix srcdir handling.
16892
16893 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
16894
16895         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
16896         when processing for not_regs_needed bitmap.
16897         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
16898         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
16899         handling it for rhs.
16900
16901 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
16902
16903         * config/i386/i386.md (unnamed inc/dec peephole): Use
16904         optimize_insn_for_size_p instead of optimize_size.
16905         * config/i386/predicates.md (incdec_operand): Likewise.
16906         (aligned_operand): Likewise.
16907         * config/i386/sse.md (divv8sf3): Likewise.
16908         (sqrtv8sf2): Likewise.
16909
16910 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
16911
16912         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
16913
16914         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
16915
16916 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
16917
16918         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
16919         ssemodesuffixf2c with avxmodesuffixf2c.
16920
16921 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
16922
16923         PR c/40032
16924         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
16925
16926 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
16927
16928         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
16929         (struct tree_base): Adjust spacing for 8 bit boundaries.
16930         (struct tree_decl_common): Add decl_by_reference_flag bit.
16931         (DECL_BY_REFERENCE): Adjust.
16932         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
16933         print DECL_BY_REFERENCE bit.
16934         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
16935         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
16936         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
16937         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
16938         unconditionally.
16939
16940         PR middle-end/39666
16941         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
16942         range of the type, but default label is missing, add it with one
16943         of the existing labels instead of adding a new label for it.
16944
16945 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
16946
16947         * dwarf.h: Remove.
16948
16949 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
16950
16951         * Makefile.in (enable_plugin, plugin_includedir): New.
16952         (install): Depend on install-plugin.
16953         (PLUGIN_HEADERS): New.
16954         (install-plugin): New.
16955         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
16956
16957 2009-05-05  Richard Guenther  <rguenther@suse.de>
16958
16959         PR tree-optimization/40022
16960         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
16961         the only vuse.
16962         (phivn_valid_p): Fix tuplification error, simplify.
16963         (phiprop_insert_phi): Add dumps.
16964         (propagate_with_phi): Simplify.
16965
16966 2009-05-05  Richard Guenther  <rguenther@suse.de>
16967
16968         PR middle-end/40023
16969         * builtins.c (gimplify_va_arg_expr): Properly build the address.
16970
16971 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
16972
16973         * tree.h (strip_float_extensions): Remove duplicate declaration.
16974         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
16975         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
16976         block_ultimate_origin): Rearrange the declarations line to match the
16977         comment that indicates the .c file which the functions are defined.
16978         (dwarf2out_*, set_decl_rtl): Add comment.
16979         (get_base_address): Adjust comment.
16980         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
16981         declarations line and add comment.
16982         (is_builtin_name): Add blank after function name, for clarity.
16983
16984 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
16985
16986         * attribs.c (decl_attributes): Use %qE for identifiers in
16987         diagnostics.
16988         * cgraphunit.c (verify_cgraph_node): Translate function names to
16989         locale character set in diagnostics.
16990         * coverage.c (get_coverage_counts): Use %qE for identifiers in
16991         diagnostics.
16992         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
16993         Document that functions are named in UTF-8.
16994         * expr.c (expand_expr_real_1): Translate function names to locale
16995         character set in diagnostics.
16996         * gimplify.c (omp_notice_variable, omp_is_private,
16997         gimplify_scan_omp_clauses): Use %qE for identifiers in
16998         diagnostics.
16999         * langhooks.c (lhd_print_error_function): Translate function names
17000         to locale character set.
17001         * langhooks.h (decl_printable_name): Document that return value is
17002         in internal character set.
17003         * stmt.c: Include pretty-print.h
17004         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
17005         diagnostics.
17006         (resolve_operand_name_1): Translate named operand name to locale
17007         character set.
17008         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
17009         diagnostics.
17010         * toplev.c (announce_function): Translate function names to locale
17011         character set.
17012         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
17013         (default_tree_printer): Use pp_identifier or translate identifiers
17014         to locale character set.  Mark "<anonymous>" for translation.
17015         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
17016         for identifiers in diagnostics.
17017         * tree.c (handle_dll_attribute): Use %qE for identifiers in
17018         diagnostics.
17019         * varasm.c (output_constructor): Use %qE for identifiers in
17020         diagnostics.
17021
17022 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
17023
17024         * configure.ac: use ` ` instead of $()
17025         * configure: Regenerate.
17026
17027 2009-05-05  Ben Elliston  <bje@au.ibm.com>
17028
17029         * config/pa/linux-atomic.c: Eliminate conditional include of
17030         errno.h on non-LP64 systems to simplify build requirements.
17031
17032 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
17033
17034         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
17035         diagnostics.
17036         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
17037         and pass value to identifier_to_locale.
17038         (warn_variable_length_array): Make name a tree.
17039         (grokdeclarator): Separate diagnostic texts for named and unnamed
17040         declarators.  Use %qE for named declarators.
17041         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
17042         diagnostics.
17043         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
17044         identifiers in diagnostics.
17045         * c-typeck.c (push_member_name, start_init): Pass identifiers to
17046         identifier_to_locale.  Mark "anonymous" strings for translation.
17047
17048 2009-05-04  Michael Eager <eager@eagercon.com>
17049
17050         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
17051         address for DImode/DFmode only if double-precision FP regs.
17052
17053 2009-05-04  Michael Eager <eager@eagercon.com>
17054
17055         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
17056         TARGET_SINGLE_FLOAT check.
17057
17058 2009-05-04  Michael Eager <eager@eagercon.com>
17059
17060         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
17061
17062 2009-05-04  Michael Eager <eager@eagercon.com>
17063
17064         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
17065         * config/rs6000/t-xilinx: New
17066
17067 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
17068
17069         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
17070         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
17071         * gcc/explow.c (memory_address): Use target hook.
17072         * gcc/targhooks.c (default_legitimize_address): New.
17073         * gcc/targhooks.h (default_legitimize_address): New.
17074         * gcc/target.h (legitimize_address): New.
17075         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
17076         (TARGET_INITIALIZER): Include it.
17077         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
17078
17079         * config/bfin/bfin-protos.h (legitimize_address): Remove.
17080         * config/bfin/bfin.c (legitimize_address): Remove.
17081         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
17082         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
17083         Remove.
17084         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
17085         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
17086
17087         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
17088         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
17089         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
17090         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
17091         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
17092         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
17093         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
17094         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
17095         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
17096         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
17097         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
17098         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
17099         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
17100         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
17101         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
17102         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
17103         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
17104         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
17105         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
17106         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
17107         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
17108         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
17109         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
17110
17111         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
17112         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
17113         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
17114         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
17115         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
17116         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
17117         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
17118         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
17119         (thumb_legitimize_address): Delete.
17120         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
17121         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
17122         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
17123         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
17124         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
17125         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
17126         Delete.
17127         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
17128         Delete.
17129
17130         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
17131         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
17132         * config/m32r/m32r.c (m32r_legitimize_address): New.
17133         * config/m68k/m68k.c (m68k_legitimize_address): New.
17134         * config/score/score.c (score_legitimize_address): Standardize.
17135         * config/score/score3.c (score3_legitimize_address): Standardize.
17136         * config/score/score3.h (score3_legitimize_address): Adjust.
17137         * config/score/score7.c (score7_legitimize_address): Standardize.
17138         * config/score/score7.h (score7_legitimize_address): Adjust.
17139         * config/sh/sh.c (sh_legitimize_address): New.
17140         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
17141
17142         * gcc/config/s390/s390.c (legitimize_address): Rename to...
17143         (s390_legitimize_address): ... this.
17144         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
17145         (sparc_legitimize_address): ... this.
17146         * gcc/config/i386/i386.c (legitimize_address): Rename to...
17147         (ix86_legitimize_address): ... this.
17148         * gcc/config/avr/avr.c (legitimize_address): Rename to...
17149         (avr_legitimize_address): ... this.
17150         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
17151         (mn10300_legitimize_address): ... this.
17152         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
17153         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
17154         (alpha_expand_mov): Adjust call.
17155
17156         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
17157         * config/spu/spu.c (spu_legitimize_address): Likewise.
17158         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
17159         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
17160
17161 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
17162
17163         * intl.c (locale_encoding, locale_utf8): New.
17164         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
17165         * intl.h (locale_encoding, locale_utf8): Declare.
17166         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
17167         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
17168         New.
17169         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
17170         argument.
17171         (pp_tree_identifier): Define to call pp_base_tree_identifier.
17172         (pp_base_tree_identifier): Declare as function.
17173         (identifier_to_locale): Declare.
17174         * Makefile.in (pretty-print.o): Update dependencies.
17175         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
17176
17177 2009-05-04  Richard Guenther  <rguenther@suse.de>
17178
17179         PR middle-end/40015
17180         * builtins.c (fold_builtin_memory_op): Do not decay to element
17181         type if the size matches the whole array.
17182
17183 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
17184
17185         * expmed.c (synth_mult): When trying out a shift, pass the result
17186         of a signed shift.
17187
17188 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
17189
17190         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
17191         (shiftsub1_cost): New.
17192         (init_expmed): Compute shiftsub1_cost.
17193         (synth_mult): Optimize multiplications by constants of the form
17194         -(2^^m-1) for some constant positive integer m.
17195
17196 2009-05-03  Richard Guenther  <rguenther@suse.de>
17197
17198         PR c/39983
17199         * c-typeck.c (array_to_pointer_conversion): Do not built
17200         ADDR_EXPRs of arrays of pointer-to-element type.
17201         * c-gimplify.c (c_gimplify_expr): Revert change fixing
17202         up wrong ADDR_EXPRs after-the-fact.
17203         * c-common.c (strict_aliasing_warning): Strip pointer
17204         conversions for obtaining the original type.
17205         * builtins.c (fold_builtin_memset): Handle array types.
17206         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
17207         and array types
17208
17209 2009-05-03  Richard Guenther  <rguenther@suse.de>
17210
17211         PR middle-end/23329
17212         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
17213         Do not lose casts from array types with unknown extent to array
17214         types with known extent.
17215         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
17216         alias set compatibility.
17217
17218 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17219
17220         * flags.h (extra_warnings): Delete.
17221         * toplev.c (process_options): Handle Wuninitialized here.
17222         * opts.c (extra_warnings): Delete.
17223         (set_Wextra): Delete.
17224         (common_handle_option): -Wextra can be handled automatically.
17225         * c-opts.c (c_common_handle_option): Delete obsolete code.
17226         (c_common_post_options): Simplify comment.
17227         * common.opt (W): Add Var.
17228         (Wextra): Add Var.
17229         (Wuninitialized): Initialize to -1.
17230
17231 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
17232             Richard Guenther  <rguenther@suse.de>
17233
17234         * expr.c (get_def_for_expr): New function.
17235         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
17236         SSA rather than trees.
17237         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
17238         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
17239
17240 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
17241
17242         * c-common.c (reswords): Add _Imaginary.
17243         * c-common.c (enum rid): Add RID_IMAGINARY.
17244
17245 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
17246
17247         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
17248         Patch by Richard Guenther.
17249
17250 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
17251
17252         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
17253         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
17254         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
17255         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
17256         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
17257         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
17258         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
17259         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
17260         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
17261         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
17262         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
17263         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
17264         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
17265         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
17266         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
17267         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
17268         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
17269         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
17270
17271 2009-05-02  Richard Guenther  <rguenther@suse.de>
17272
17273         PR tree-optimization/39940
17274         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
17275         doing so.
17276
17277 2009-05-02  Richard Guenther  <rguenther@suse.de>
17278
17279         PR middle-end/40001
17280         * tree-ssa.c (execute_update_addresses_taken): Properly check
17281         if we can mark a variable DECL_GIMPLE_REG_P.
17282         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
17283         back to the end of the function.
17284         (is_gimple_reg_type): Remove complex type special casing.
17285         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
17286         if not optimizing.
17287
17288 2009-05-02  Ben Elliston  <bje@au.ibm.com>
17289
17290         * doc/collect2.texi (Collect2): Document search path behaviour
17291         when configured with --with-ld.
17292
17293 2009-05-02  Jan Hubicka  <jh@suse.cz>
17294
17295         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
17296         parameter; update callers.
17297         (coalesce_cost_edge): EH edges are costier because they needs
17298         splitting even if not critical and even more costier when there are
17299         multiple EH predecestors.
17300
17301 2009-05-02  Jan Hubicka  <jh@suse.cz>
17302
17303         * except.c (remove_eh_handler_and_replace): Handle updating after
17304         removing TRY blocks.
17305
17306 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
17307
17308         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
17309
17310 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
17311
17312         * varasm.c: Do not include c-pragma.h.
17313         * attribs.c: Do not incude c-common.h.
17314
17315 2009-05-01  Michael Matz  <matz@suse.de>
17316
17317         * calls.c (initialize_argument_information): Handle SSA names like
17318         decls with a non MEM_P DECL_RTL.
17319
17320 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
17321
17322         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
17323         * ipa-utils.c: Likewise.
17324         * ipa-type-escape.c: Likewise.
17325         * cgraphunit.c Do not include c-common.h.
17326         * ipa-pure-const.c: Likewise.
17327         * tree-if-conv.c: Likewise.
17328         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
17329         * ipa-struct-reorg.c: Likewise.
17330         * tree-nomudflap.c: Likewise.
17331         * tree-ssa-structalias.c: Likewise.
17332
17333 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
17334
17335         * store-motion.c: Many cleanups to make this pass a first-class
17336         citizen instead of an appendix to gcse load motion.  Add TODO list
17337         to make this pass faster/cleaner/better.
17338
17339         (struct ls_expr): Post gcse.c-split cleanups.
17340         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
17341         "stores" field to "avail_stores".
17342         (pre_ldst_mems): Rename to store_motion_mems.
17343         (pre_ldst_table): Rename to store_motion_mems_table.
17344         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
17345         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
17346         (ldst_entry): Rename to st_expr_entry, update users.
17347         (free_ldst_entry): Rename to free_st_expr_entry, update users.
17348         (free_ldst_mems): Rename to free_store_motion_mems, update users.
17349         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
17350         update caller.
17351         (first_ls_expr): Rename to first_st_expr, update users.
17352         (next_ls_expr): Rename to next_st_expr, update users.
17353         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
17354         fields properly for store motion instead of names inherited from load
17355         motion in gcse.c.
17356         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
17357         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
17358         are done with it.
17359
17360         (ae_kill): Rename to st_kill, update users.
17361         (ae_gen): Rename to st_avloc, update users.
17362         (transp): Rename to st_transp, update users.
17363         (pre_insert_map): Rename to st_insert_map, update users.
17364         (pre_delete_map): Rename to st_delete_map, update users.
17365         (insert_store, build_store_vectors, free_store_memory,
17366         one_store_motion_pass): Update for abovementioned changes.
17367
17368         (gcse_subst_count, gcse_create_count): Remove.
17369         (one_store_motion_pass): New statistics counters "n_stores_deleted"
17370         and "n_stores_created", local variables.
17371
17372         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
17373         use for_each_rtx.
17374
17375         (regvec, compute_store_table_current_insn): Remove.
17376         (reg_set_info, reg_clear_last_set): Remove.
17377         (compute_store_table): Use DF caches instead of local dataflow
17378         solvers.
17379
17380 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
17381
17382         * c-objc-common.c (c_tree_printer): Print identifiers with
17383         pp_identifier, not pp_string.  Mark "({anonymous})" for
17384         translation.
17385         * c-pretty-print.c (pp_c_ws_string): New.
17386         (pp_c_cv_qualifier, pp_c_type_specifier,
17387         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
17388         pp_c_storage_class_specifier, pp_c_function_specifier,
17389         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
17390         pp_c_primary_expression, pp_c_postfix_expression,
17391         pp_c_unary_expression, pp_c_shift_expression,
17392         pp_c_relational_expression, pp_c_equality_expression,
17393         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
17394         use pp_string and pp_c_ws_string in place of pp_identifier and
17395         pp_c_identifier for non-identifiers.  Mark English strings for
17396         translation.
17397         * c-pretty-print.h (pp_c_ws_string): Declare.
17398
17399 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
17400             Roland McGrath <roland@redhat.com>
17401
17402         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
17403         (ENABLE_LD_BUILDID): New configuration option.
17404         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
17405         (LINK_BUILDID_SPEC): New macro.
17406         (init_spec): If defined, prepend it between LINK_EH_SPEC and
17407         link_spec.
17408         * doc/install.texi: Document --enable-linker-build-id option.
17409         * configure: Rebuild.
17410         * config.in: Rebuild.
17411
17412 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
17413
17414         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
17415         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
17416         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
17417         MIPS_GP_SAVE_AREA_SIZE.
17418         * config/mips/mips.c (struct mips_frame_info): Update comment
17419         before arg_pointer_offset and hard_frame_pointer_offset.
17420         (mips_compute_frame_info): Update diagram before function: to
17421         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
17422         indicate the position of frame_pointer_rtx with -fstack-protector and
17423         to show args_size.  Don't allocate cprestore area for leaf functions
17424         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
17425         cprestore_size.
17426         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
17427
17428 2009-04-30  Michael Matz  <matz@suse.de>
17429
17430         PR tree-optimization/39955
17431         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
17432
17433 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
17434
17435         * ira.c (setup_cover_and_important_classes):  Use safe macro
17436         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
17437         directly.
17438         * genpreds.c (write_tm_preds_h):  Output suitable definition of
17439         REG_CLASS_FOR_CONSTRAINT.
17440
17441 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
17442
17443         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
17444         instead of an int.
17445         * bitmap.c (bitmap_descriptor): Likewise.
17446         * ggc-common.c (loc_descriptor): Likewise.
17447         * varray.c (varray_descriptor): Likewise.
17448         * vec.c (vec_descriptor): Likewise.
17449
17450 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
17451
17452         * Makefile.in (dce.o): Add $(EXCEPT_H).
17453         * dce.c: Include except.h and delete redundant vector definitions.
17454         (deletable_insn_p): Return false for non-call insns that can throw
17455         if DF is running.
17456
17457 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
17458
17459         * gcse.c (ae_gen): Remove.
17460         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
17461         and make non-static function to make it available in store-motion.c.
17462         Update call sites with search-and-replace.
17463         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
17464         extract_mentioned_regs, extract_mentioned_regs_helper,
17465         find_moveable_store, compute_store_table, load_kills_store, find_loads,
17466         store_killed_in_insn, store_killed_after, store_killed_before,
17467         build_store_vectors, insert_insn_start_basic_block, insert-store,
17468         remove_reachable_equiv_notes, replace_store_insn, delete_store,
17469         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
17470         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
17471         * store-motion.c: ...new file.  Also copy data structures from gcse.c
17472         and clean up to remove parts not used by store motion.
17473         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
17474         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
17475
17476 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17477
17478         PR target/38571
17479         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
17480         when optimizing for size.
17481
17482 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
17483
17484         * gcse.c (gcse_constant_p): Fix typo in last change.
17485
17486 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
17487
17488         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
17489
17490 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
17491
17492         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
17493
17494 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
17495
17496         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
17497         CONST_HIGH_PART result.
17498
17499 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
17500
17501         * config/avr/avr.c (initial_elimination_offset): Rename to
17502         avr_initial_elimination_offset.
17503         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
17504         change return type to bool.
17505         (avr_can_eliminate): New function.
17506         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
17507         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
17508         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
17509         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
17510         avr_initial_elimination_offset.
17511         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
17512         (avr_initial_elimination_offset): Define.
17513
17514 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
17515             Steven Bosscher  <steven@gcc.gnu.org>
17516
17517         PR rtl-optimization/39938
17518         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
17519         * cfgrtl.c: Include insn-attr.h.
17520         (rest_of_pass_free_cfg): New function.
17521         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
17522         * resource.c (init_resource_info): Remove call to df_analyze.
17523
17524 2009-04-29  Richard Guenther  <rguenther@suse.de>
17525
17526         PR target/39943
17527         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
17528         allow conversion to signed integers.
17529
17530 2009-04-29  Richard Guenther  <rguenther@suse.de>
17531
17532         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
17533         shifts of floating point vectors if the shift amount is
17534         a constant multiple of the element size.
17535
17536 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
17537             Michael Matz  <matz@suse.de>
17538
17539         PR middle-end/39927
17540         PR bootstrap/39929
17541         * tree-outof-ssa.c (emit_partition_copy): New function.
17542         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
17543         insert_part_to_rtx_on_edge): Perform the partition base var
17544         copy using emit_partition_copy.
17545         (insert_value_copy_on_edge): Convert constants to the right mode.
17546         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
17547         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
17548
17549 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
17550
17551         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
17552         scan backwards to try to find a constant to initialize it.
17553
17554         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
17555         insn before the loop_end instruction, don't look past labels.
17556
17557 2009-04-29  Richard Guenther  <rguenther@suse.de>
17558
17559         PR middle-end/39937
17560         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
17561         loose type conversions.
17562         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
17563         stmts only if there are no uses of its definition.
17564
17565 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
17566
17567         * config/bfin/bfin.h (splitting_loops): Declare.
17568         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
17569         Reorder bit definitions to be ascending.
17570         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
17571         * config/bfin/bfin.c (splitting_loops): New variable.
17572         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
17573         (struct loop_info): Remove members INIT and LOOP_INIT.
17574         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
17575         the LSETUP sequence.  Allow LC to be loaded from any register, but
17576         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
17577         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
17578         set to 1.
17579         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
17580         of reload_completed.
17581
17582         From Jie Zhang:
17583         * config/bfin/bfin.md (movsi_insn): Refine constraints.
17584
17585 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
17586
17587         * Makefile.in (PLUGIN_VERSION_H): New.
17588         (OBJS-common): Remove plugin-version.o.
17589         (plugin.o): Depend on (PLUGIN_VERSION_H).
17590         (plugin-version.o): Remove.
17591         * configure: Regenerate
17592         * configure.ac: Create plugin-version.h.
17593         * gcc-plugin.h (plugin_gcc_version): Remove.
17594         (plugin_default_version_check): Change signature.
17595         * plugin-version.c: Remove.
17596         * plugin.c: Include plugin-version.h.
17597         (str_plugin_gcc_version_name): Remove.
17598         (try_init_one_plugin): Pass gcc version to plugin_init.
17599         (plugin_default_version_check): Both gcc and plugin versions are now
17600         arguments.
17601
17602 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
17603
17604         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
17605         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
17606         Remove special case testing for last insn of inner loops. Don't fail
17607         if the loop ends with a jump, emit an extra nop instead.
17608
17609         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
17610         DREGS rather than comparing directly.  Remove code that tries to
17611         account for latencies.
17612
17613 2009-04-29  Richard Guenther  <rguenther@suse.de>
17614
17615         PR tree-optimization/39941
17616         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
17617         eliminating an indirect call.
17618
17619 2009-04-29  Richard Guenther  <rguenther@suse.de>
17620
17621         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
17622         parameter.  Allow invariants as base if !require_lvalue.
17623         (verify_gimple_assign_single): Adjust.
17624
17625 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
17626
17627         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
17628         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
17629         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
17630         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
17631         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
17632         a VEC_SELECT.
17633         * config/bfin/bfin.c (bfin_expand_builtin,
17634         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
17635
17636 2009-04-28  Richard Guenther  <rguenther@suse.de>
17637
17638         * tree-vect-loop.c (get_initial_def_for_induction): Use
17639         correct types for pointer increment.
17640
17641 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17642
17643         * toplev.c (print_version): Update GMP version string calculation.
17644
17645 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
17646
17647         PR rtl-optimization/39938
17648         * resource.c (init_resource_info): Add call to df_analyze.
17649
17650 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
17651
17652         * config/alpha/alpha.md (usegp): Cast the result of
17653         alpha_find_lo_sum_using_gp to enum attr_usegp.
17654         * config/alpha/alpha.c (override_options): Remove end-of-structure
17655         marker element from cpu_table.  Use array size of cpu_table to handle
17656         -mcpu and -mtune options.
17657         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
17658
17659 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
17660
17661         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
17662         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
17663         tune_32 and tune_64.
17664         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
17665         support on PowerPC.
17666         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
17667         * config/rs6000/option-defaults.h: ... here.  New file.
17668         (OPT_64, OPT_32): Define.
17669         (MASK_64BIT): Define to 0 if not already defined.
17670         (OPT_ARCH64, OPT_ARCH32): Define.
17671         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
17672         and tune_64.
17673
17674 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17675
17676         * config/arm/arm.c (arm_override_options): Emit error on using
17677         fpa with AAPCS.
17678
17679 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
17680
17681         PR rtl-optimization/39914
17682         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
17683         registers for allocnos created from user-defined variables only
17684         when not optimizing.
17685
17686 2009-04-28  Richard Guenther  <rguenther@suse.de>
17687
17688         PR middle-end/39937
17689         * fold-const.c (fold_binary): Use distribute_real_division only
17690         on float types.
17691
17692 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
17693
17694         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
17695         add hpux-stdint.h to tm_file.
17696         (hppa[12]*-*-hpux11*): Ditto.
17697         (ia64*-*-hpux*): Ditto.
17698         * config/hpux-stdint.h: New.
17699         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
17700         __STDC_EXT__ for all compiles.
17701         * config/pa/pa-hpux.h: Ditto.
17702         * config/pa/pa-hpux10.h: Ditto.
17703         * config/pa/pa-hpux11.h: Ditto.
17704
17705 2009-04-28  Catherine Moore  <clm@codesourcery.com>
17706
17707         * debug.h (set_name): Add comment.
17708
17709 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
17710
17711         PR target/39929
17712         * config/darwin.c (machopic_gen_offset): Check
17713         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
17714         * config/arm/arm.c (require_pic_register): Likewise.
17715
17716 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
17717
17718         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
17719         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
17720         m32c_promote_prototypes): Delete.
17721
17722 2009-04-28  Michael Matz  <matz@suse.de>
17723
17724         PR middle-end/39922
17725         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
17726         constants.
17727
17728 2009-04-28  Richard Guenther  <rguenther@suse.de>
17729
17730         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
17731
17732 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17733
17734         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
17735         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
17736         * config/arm/arm-tune.md: Regenerate.
17737
17738 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
17739
17740         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
17741         block if there are complex incoming edges.
17742         (sel_merge_blocks): Remove useless assert.
17743         (sel_redirect_edge_and_branch): Check that edge was redirected.
17744         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
17745         (sel_find_rgns): Delete declaration.
17746         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
17747         the region when it is not a preheader.
17748
17749 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
17750
17751         PR c/39323
17752         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
17753
17754 2009-04-28  Richard Guenther  <rguenther@suse.de>
17755
17756         * tree.h (SSA_NAME_VALUE): Remove.
17757         (struct tree_ssa_name): Remove value_handle member.
17758         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
17759         array for jump threading.
17760         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
17761         SSA_NAME_VALUEs.
17762         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
17763         * tree-flow.h (threadedge_initialize_values): Declare.
17764         (threadedge_finalize_values): Likewise.
17765         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
17766         (SSA_NAME_VALUE): Define.
17767         (threadedge_initialize_values): New function.
17768         (threadedge_finalize_values): Likewise.
17769         * tree-ssa-dom.c (ssa_name_values): New global variable.
17770         (SSA_NAME_VALUE): Define.
17771         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
17772
17773 2009-04-28  Ira Rosen  <irar@il.ibm.com>
17774
17775         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
17776         Use REPORT_VECTORIZED_LOCATIONS instead
17777         REPORT_VECTORIZED_LOOPS.
17778         * tree-vectorizer.c (vect_verbosity_level): Make static.
17779         (vect_loop_location): Rename to vect_location.
17780         (vect_set_verbosity_level): Update comment.
17781         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
17782         and vect_location.
17783         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
17784         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
17785         instead REPORT_UNVECTORIZED_LOOPS.
17786         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
17787         and vect_loop_def to vect_external_def and vect_internal_def.
17788         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
17789         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
17790         REPORT_UNVECTORIZED_LOCATIONS.
17791         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
17792         and vect_used_in_loop and to vect_unused_in_scope and
17793         vect_used_in_scope.
17794         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
17795         (vect_verbosity_level): Remove declaration.
17796         (vect_analyze_operations): Likewise.
17797         (vect_analyze_stmt): Declare.
17798         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
17799         REPORT_UNVECTORIZED_LOCATIONS.
17800         (vect_get_loop_niters): Fix indentation.
17801         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
17802         (vect_analyze_loop_operations): New function.
17803         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
17804         vect_analyze_operations.
17805         (vect_is_simple_reduction): Use new names.
17806         (vectorizable_live_operation, vect_transform_loop): Likewise.
17807         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
17808         to specify whether the data references can be a part of interleaving
17809         chain.
17810         (vect_analyze_data_ref_dependence): Use new names.
17811         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
17812         (vect_create_addr_base_for_vector_ref): Remove redundant code.
17813         * tree-vect-patterns.c (widened_name_p): Use new names.
17814         (vect_recog_dot_prod_pattern): Likewise.
17815         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
17816         (process_use, vect_mark_stmts_to_be_vectorized,
17817         vect_model_simple_cost, vect_model_store_cost,
17818         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
17819         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
17820         vectorizable_operation, vectorizable_type_demotion,
17821         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
17822         vectorizable_condition): Likewise.
17823         (vect_analyze_operations): Split into vect_analyze_loop_operations
17824         and ...
17825         (vect_analyze_stmt): ... new function.
17826         (new_stmt_vec_info): Use new names.
17827         (vect_is_simple_use): Use new names and fix comment.
17828         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
17829         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
17830
17831 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
17832
17833         PR target/39911
17834         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
17835         and integer modes for x87 operands.  Do not ICE for unsupported size,
17836         generate error instead.  Generate error for unsupported operand types.
17837         ['z']: Do not handle HImode memory operands specially.  Warning
17838         for floating-point operands.  Fallthru to 'Z' for unsupported operand
17839         types.  Do not ICE for unsupported size, generate error instead.
17840         (output_387_binary_op): Use %Z to output operands.
17841         (output_fp_compare): Ditto.
17842         (output_387_reg_move): Ditto.
17843
17844 2009-04-28  Ben Elliston  <bje@au.ibm.com>
17845
17846         PR c++/35652
17847         Revert:
17848
17849         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17850
17851         * builtins.c (c_strlen): Do not warn here.
17852         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
17853         * c-common.c (pointer_int_sum): Take an explicit location.
17854         Warn about offsets out of bounds.
17855         * c-common.h (pointer_int_sum): Adjust declaration.
17856
17857 2009-04-27  Ian Lance Taylor  <iant@google.com>
17858
17859         * collect2.c (is_ctor_dtor): Change type of ret field in struct
17860         names to symkind.
17861         * dce.c (run_fast_df_dce): Change type of old_flags to int.
17862         * df-core.c (df_set_flags): Change return type to int.  Change
17863         type of old_flags to int.
17864         (df_clear_flags): Likewise.
17865         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
17866         (df_get_conditional_uses): Likewise.
17867         * df.h (df_set_flags, df_clear_flags): Update declarations.
17868         * dwarf2out.c (struct indirect_string_node): Change type of form
17869         field to enum dwarf_form.
17870         (AT_string_form): Change return type to enum dwarf_form.
17871         * fixed-value.c (fixed_compare): Add cast to enum type.
17872         * fwprop.c (update_df): Change 0 to VOIDmode.
17873         * gensupport.c: Change 0 to UNKNOWN.
17874         * gimple.h (gimple_cond_code): Add cast to enum type.
17875         * haifa-sched.c (reemit_notes): Add cast to enum type.
17876         * hooks.c (hook_int_void_no_regs): Remove function.
17877         * hooks.h (hook_int_void_no_regs): Remove declaration.
17878         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
17879         * predict.c (combine_predictions_for_insn): Add casts to enum type.
17880         * real.c (real_arithmetic): Add cast to enum type.
17881         (real_compare): Likewise.
17882         * target.h (struct gcc_target): Change return type of
17883         branch_target_register_class to enum reg_class.
17884         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
17885         default_branch_target_register_class.
17886         * targhooks.c (default_branch_target_register_class): New function.
17887         * targhooks.h (default_branch_target_register_class): Declare.
17888         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
17889         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
17890         cast to int.
17891         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
17892         ERROR_MARK.
17893         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
17894         vect_uninitialized_def.  Change 0 to ERROR_MARK.
17895         * tree-vect-stmts.c (supportable_widening_operation): Don't
17896         initialize icode1 and icode2.
17897         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
17898         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
17899         and to STD_C89.
17900         (cmn_err_flag_specs): Change 0 to STD_C89.
17901         (cmn_err_char_table): Likewise.
17902         * config/arm/arm.c (get_arm_condition_code): Change type of code
17903         to enum arm_cond_code.
17904         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
17905         (IWMMXT_BUILTIN2): Likewise.
17906         (neon_builtin_type_bits): Don't define typedef.
17907         (neon_builtin_datum): Change type of bits field to int.
17908         (arm_expand_neon_args): Add cast to enum type.
17909         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
17910         TLS_MODEL_NONE.
17911         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
17912         casts to enum type.
17913         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
17914         MIPS_FP_COND_f.
17915         * config/mips/mips.md (jal_macro): Return enum constant.
17916         (single_insn): Likewise.
17917         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
17918         CODE_FOR_nothing.
17919         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17920         casts to enum type.
17921         * config/s390/s390.c (s390_tune_flags): Change type to int.
17922         (s390_arch_flags): Likewise.
17923         (s390_handle_arch_option): Change flags field of struct pta to int.
17924         * config/s390/s390.h (s390_tune_flags): Update declaration.
17925         (s390_arch_flags): Likewise.
17926         * config/sh/sh.c (prepare_move_operands): Compare
17927         tls_symbolic_operand result with enum constant.
17928         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
17929         (sh_expand_prologue): Add cast to enum type.
17930         (sh_expand_epilogue): Likewise.
17931         (tls_symbolic_operand): Change return type to enum tls_model.
17932         (fpscr_set_from_mem): Add cast to enum type.
17933         (legitimize_pic_address): Compare tls_symbolic_operand result with
17934         enum constant.
17935         (sh_target_reg_class): Change return type to enum reg_class.
17936         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
17937         PROCESSOR_xxx.
17938         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
17939         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
17940         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
17941         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
17942         (delayed_branch, tls_call_delay): Likewise.
17943         (eligible_for_sibcall_delay): Likewise.
17944         (eligible_for_return_delay): Likewise.
17945         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
17946         (spu_expand_builtin_1): Likewise.
17947
17948         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
17949         for all types of conversions.
17950         (output_init_element): Issue -Wc++-compat warning if needed when
17951         initializing a bitfield with enum type.
17952         * c-parser.c (c_parser_expression): Set original_type to
17953         original_type of right hand operand of comma operator.
17954
17955 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17956
17957         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
17958         grammar nits.
17959         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
17960         * doc/cpp.texi (Standard Predefined Macros)
17961         (Implementation-defined behavior): Likewise.
17962         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
17963         * doc/gimple.texi (GIMPLE Exception Handling)
17964         (@code{GIMPLE_ASSIGN}): Likewise.
17965         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
17966         * doc/invoke.texi (Warning Options, Optimize Options)
17967         (AVR Options, Darwin Options): Likewise.
17968         (Optimize Options): Reformulate -fwhole-program description.
17969         * doc/loop.texi (Lambda): Likewise.
17970         * doc/md.texi (Output Template, Define Constraints)
17971         (Standard Names, Insn Splitting): Likewise.
17972         * doc/options.texi (Option properties): Likewise.
17973         * doc/passes.texi (Tree-SSA passes): Likewise.
17974         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
17975         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
17976         (File Names and DBX): Likewise.
17977         * doc/trouble.texi (Incompatibilities): Likewise.
17978
17979 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
17980
17981         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
17982         instruction is correct.
17983
17984 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
17985
17986         Allow non-constant arguments to conversion intrinsics.
17987         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
17988         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
17989         * spu.c (print_operand): Handle 'v' and 'w'.
17990         (exp2_immediate_p, spu_gen_exp2): Define.
17991         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
17992         spu_convtf_1): Update parameter descriptions.
17993         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
17994         * constraints.md ('v', 'w'): New.
17995         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
17996         Remove.
17997         (i2f, I2F): New define_mode_attr.
17998         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
17999         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
18000         fixuns_truncv4sfv4si2):  Update to use mode attribute.
18001         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
18002         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
18003         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
18004         patterns for combine.
18005
18006 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
18007
18008         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
18009         (cprop, hoist, pre, store_motion): New debug counters.
18010         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
18011         is not an RTL pass anymore.
18012         (pass_profiling): Remove extern decl for pass removed in 2005.
18013         (pass_gcse, pass_jump_bypass): Remove.
18014         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
18015         to 0 for clean state.
18016         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
18017         * cse.c (gate_handle_cse_after_global_opts,
18018         rest_of_handle_cse_after_global_opts): New functions.
18019         (pass_cse_after_global_opts): New pass, does local CSE.
18020         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
18021         (TV_CPROP): New timevar.
18022         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
18023         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
18024         (gcse_main, recompute_all_luids): Remove.
18025         (compute_hash_table_work): Call max_reg_num instead of reading
18026         max_gcse_regno.
18027         (cprop_jump): Don't set run_jump_opt_after_gcse.
18028         (constprop_register): Always allow to alter jumps.
18029         (cprop_insn): Likewise.
18030         (do_local_cprop): Likewise.
18031         (local_cprop_pass): Likewise.  Return non-zero if something changed.
18032         (cprop): Remove function, fold interesting bits into one_cprop_pass.
18033         (find_implicit_sets): Add note about missed optimization opportunity.
18034         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
18035         pass_rtl_cprop execute function.
18036         Don't bother tracking the pass number, each pass gets its own dumpfile
18037         now anyway.
18038         Always allow to alter jumpsand bypass jumps.
18039         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
18040         will just find no suitable set.
18041         (pre_edge_insert): Fix dumping, this function is for PRE only.
18042         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
18043         pass_rtl_pre execute function.
18044         (hoist_code): Return non-zero if something changed.  Keep track of
18045         substitutions and insertions for statistics gathering similar to PRE.
18046         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
18047         called from the pass_rtl_hoist execute function.  Show pass statistics.
18048         (compute_store_table): Use max_reg_num directly instead of using the
18049         formerly global max_gcse_regno.
18050         (build_store_vectors): Likewise.
18051         (replace_store_insn): Fix dumping.
18052         (store_motion): Rename to ...
18053         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
18054         pass, called from the pass_rtl_store_motion execute function.  Keep
18055         track of substitutions and insertions for statistics gathering similar
18056         to PRE.
18057         (bypass_jumps): Remove, fold interesting bits into ...
18058         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
18059         from the pass_rtl_cprop execute function.
18060         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
18061         pass_jump_bypass): Remove.
18062         (gate_handle_gcse, rest_of_handle_gcse): Remove.
18063         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
18064         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
18065         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
18066         (gate_rtl_store_motion, execute_rtl_store_motion,
18067         pass_rtl_store_motion): New.
18068         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
18069         make it clear that -fcse-skip-blocks is a no-op for backward compat.
18070         * passes.c (init_optimization_passes): Remove pass_gcse and
18071         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
18072         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
18073         instead of pass_jump_bypass.
18074
18075 2009-04-27  Richard Guenther  <rguenther@suse.de>
18076
18077         PR middle-end/39928
18078         * gimplify.c (gimplify_expr): If we are required to create
18079         a temporary make sure it ends up as register.
18080
18081 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
18082
18083         PR target/39903
18084         * config/i386/i386.c (construct_container): Don't call
18085         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
18086         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
18087
18088 2009-04-27  Michael Matz  <matz@suse.de>
18089
18090         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
18091         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
18092         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
18093         (dump_replaceable_exprs): Take a bitmap.
18094         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
18095         array.
18096         (expand_gimple_basic_block): Likewise.
18097         * tree-ssa-ter.c (struct temp_expr_table_d): Make
18098         replaceable_expressions member a bitmap.
18099         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
18100         (mark_replaceable): Likewise.
18101         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
18102         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
18103
18104 2009-04-27  Richard Guenther  <rguenther@suse.de>
18105
18106         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
18107         (verify_stmts): Dispatch to gimple/type verification code.
18108         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
18109         issue with call argument types.
18110
18111 2009-04-27  Michael Matz  <matz@suse.de>
18112
18113         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
18114         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
18115         to above.
18116
18117 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
18118             Eric Botcazou  <ebotcazou@adacore.com>
18119
18120         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
18121         a label's basic block.
18122         (mark_target_live_regs): Tidy and rework obsolete comments.
18123         Change back DF problem to LIVE.  If a label starts a basic block,
18124         assume that all registers that used to be live then still are.
18125         (init_resource_info): If a label starts a basic block, set its
18126         BLOCK_FOR_INSN accordingly.
18127         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
18128
18129 2009-04-27  Richard Guenther  <rguenther@suse.de>
18130
18131         * tree-flow-inline.h (function_ann): Remove.
18132         (get_function_ann): Likewise.
18133         * tree-dfa.c (create_function_ann): Remove.
18134         * tree-flow.h (struct static_var_ann_d): Remove.
18135         (struct function_ann_d): Likewise.
18136         (union tree_ann_d): Remove fdecl member.
18137         (function_ann_t): Remove.
18138         (function_ann, get_function_ann, create_function_ann): Remove
18139         declarations.
18140
18141 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
18142
18143         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
18144
18145 2009-04-27  Jan Hubicka  <jh@suse.cz>
18146
18147         * ipa-pure-const.c (struct funct_state_d): New fields
18148         state_previously_known, looping_previously_known; remove
18149         state_set_in_source.
18150         (analyze_function): Use new fields.
18151         (propagate): Avoid assumption that state_set_in_source imply
18152         nonlooping.
18153
18154         * tree-ssa-loop-niter.c (finite_loop_p): New function.
18155         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
18156         * cfgloop.h (finite_loop_p): Declare.
18157
18158 2009-04-26  Michael Matz  <matz@suse.de>
18159
18160         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
18161
18162 2009-04-26  Michael Matz  <matz@suse.de>
18163
18164         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
18165         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
18166         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
18167         pass_mark_used_blocks): Remove.
18168         * tree-optimize.c (pass_free_datastructures,
18169         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
18170         * passes.c (init_optimization_passes): Don't call
18171         pass_mark_used_blocks, remove dead code.
18172
18173 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
18174
18175         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
18176         * tree-ssa-live.h (register_ssa_partition): Likewise.
18177
18178 2009-04-26  Michael Matz  <matz@suse.de>
18179
18180         Expand from SSA.
18181         * builtins.c (fold_builtin_next_arg): Handle SSA names.
18182         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
18183         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
18184         SSA names.
18185         (compare_pairs): Swap cost comparison.
18186         (coalesce_ssa_name): Don't use change_partition_var.
18187         * tree-nrv.c (struct nrv_data): Add modified member.
18188         (finalize_nrv_r): Set it.
18189         (tree_nrv): Use it to update statements.
18190         (pass_nrv): Require PROP_ssa.
18191         * tree-mudflap.c (mf_decl_cache_locals,
18192         mf_build_check_statement_for): Use make_rename_temp.
18193         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
18194         * alias.c (find_base_decl): Handle SSA names.
18195         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
18196         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
18197         * rtl.h (set_reg_attrs_for_parm): Declare.
18198         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
18199         to "optimized", remove unused locals at finish.
18200         (execute_free_datastructures): Make global, call
18201         delete_tree_cfg_annotations.
18202         (execute_free_cfg_annotations): Don't call
18203         delete_tree_cfg_annotations.
18204
18205         * ssaexpand.h: New file.
18206         * expr.c (toplevel): Include ssaexpand.h.
18207         (expand_assignment): Handle SSA names the same as register variables.
18208         (expand_expr_real_1): Expand SSA names.
18209         * cfgexpand.c (toplevel): Include ssaexpand.h.
18210         (SA): New global variable.
18211         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
18212         (SSAVAR): New macro.
18213         (set_rtl): New helper function.
18214         (add_stack_var): Deal with SSA names, use set_rtl.
18215         (expand_one_stack_var_at): Likewise.
18216         (expand_one_stack_var): Deal with SSA names.
18217         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
18218         before unique numbers.
18219         (expand_stack_vars): Use set_rtl.
18220         (expand_one_var): Accept SSA names, add asserts for them, feed them
18221         to above subroutines.
18222         (expand_used_vars): Expand all partitions (without default defs),
18223         then only the local decls (ignoring those expanded already).
18224         (expand_gimple_cond): Remove edges when jumpif() expands an
18225         unconditional jump.
18226         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
18227         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
18228         SSA name.
18229         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
18230         members of SA; deal with PARM_DECL partitions here; expand
18231         all PHI nodes, free tree datastructures and SA.  Commit instructions
18232         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
18233         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
18234         info and statements at start, collect garbage at finish.
18235         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
18236         (VAR_ANN_PARTITION) Remove.
18237         (change_partition_var): Don't declare.
18238         (partition_to_var): Always return SSA names.
18239         (var_to_partition): Only accept SSA names.
18240         (register_ssa_partition): Only check argument.
18241         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
18242         member.
18243         (delete_var_map): Don't free it.
18244         (var_union): Only accept SSA names, simplify.
18245         (partition_view_init): Mark only useful SSA names as used.
18246         (partition_view_fini): Only deal with SSA names.
18247         (change_partition_var): Remove.
18248         (dump_var_map): Use ssa_name instead of partition_to_var member.
18249         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
18250         basic blocks.
18251         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
18252         (struct _elim_graph): New member const_dests; nodes member vector of
18253         ints.
18254         (set_location_for_edge): New static helper.
18255         (create_temp): Remove.
18256         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
18257         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
18258         (new_elim_graph): Allocate const_dests member.
18259         (clean_elim_graph): Truncate const_dests member.
18260         (delete_elim_graph): Free const_dests member.
18261         (elim_graph_size): Adapt to new type of nodes member.
18262         (elim_graph_add_node): Likewise.
18263         (eliminate_name): Likewise.
18264         (eliminate_build): Don't take basic block argument, deal only with
18265         partition numbers, not variables.
18266         (get_temp_reg): New static helper.
18267         (elim_create): Use it, deal with RTL temporaries instead of trees.
18268         (eliminate_phi): Adjust all calls to new signature.
18269         (assign_vars, replace_use_variable, replace_def_variable): Remove.
18270         (rewrite_trees): Only do checking.
18271         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
18272         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
18273         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
18274         contains_tree_r, MAX_STMTS_IN_LATCH,
18275         process_single_block_loop_latch, analyze_edges_for_bb,
18276         perform_edge_inserts): Remove.
18277         (expand_phi_nodes): New global function.
18278         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
18279         functions, initialize new parameter, remember partitions having a
18280         default def.
18281         (finish_out_of_ssa): New global function.
18282         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
18283         don't reset in_ssa_p here, don't disable TER when mudflap.
18284         (pass_del_ssa): Remove.
18285         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
18286         partition members.
18287         (execute_free_datastructures): Declare.
18288         * Makefile.in (SSAEXPAND_H): New variable.
18289         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
18290         * basic-block.h (commit_one_edge_insertion): Declare.
18291         * passes.c (init_optimization_passes): Move pass_nrv and
18292         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
18293         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
18294         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
18295         (redirect_branch_edge): Deal with super block when expanding, split
18296         out jump patching itself into ...
18297         (patch_jump_insn): ... here, new static helper.
18298
18299 2009-04-26  Michael Matz  <matz@suse.de>
18300
18301         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
18302         beyond num_ssa_names.
18303         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
18304         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
18305
18306 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
18307
18308         PR inline-asm/39543
18309         * fwprop.c (forward_propagate_asm): New function.
18310         (forward_propagate_and_simplify): Propagate also into __asm, if it
18311         doesn't increase the number of referenced registers.
18312
18313         PR c/39889
18314         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
18315
18316 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
18317
18318         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
18319         note_nonlocal_vla_type for nonlocal VLAs.
18320         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
18321         contains_remapped_vars, remap_vla_decls): New functions.
18322         (convert_nonlocal_reference_stmt): If not optimizing, call
18323         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
18324         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
18325         if it wasn't found in var_map.
18326         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
18327         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
18328         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
18329         declare_vars.
18330         * gimplify.c (nonlocal_vlas): New variable.
18331         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
18332         referenced VLAs.
18333         (gimplify_body): Create and destroy nonlocal_vlas.
18334
18335         * dwarf2out.c (loc_descr_plus_const): New function.
18336         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
18337         mem_loc_descriptor, loc_descriptor_from_tree_1,
18338         descr_info_loc, gen_variable_die): Use it.
18339
18340         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
18341         !TREE_STATIC VAR_DECLs.
18342         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
18343         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
18344         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
18345         DECL_BY_REFERENCE is valid.
18346         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
18347         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
18348         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
18349         Copy DECL_BY_REFERENCE.
18350         (struct nesting_copy_body_data): New type.
18351         (nesting_copy_decl): New function.
18352         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
18353         if they have variable length.
18354
18355 2009-04-26  Michael Matz  <matz@suse.de>
18356
18357         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
18358         mark new temporaries for renaming.
18359
18360 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
18361
18362         PR c/39581
18363         * c-decl.c (global_bindings_p): Return negative value.
18364         (c_variable_size): New.  Based on variable_size from
18365         stor-layout.c.
18366         (grokdeclarator): Call c_variable_size not variable_size.
18367
18368 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
18369
18370         * config/i386/i386.c (print_operand) ['z']: Fix typo.
18371
18372 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
18373
18374         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
18375         Redefine it to just use mingw/include.
18376         (ASM_SPEC): Rules for -m32 and -m64.
18377         (LINK_SPEC): Use Likewise.
18378         (SPEC_32): New define.
18379         (SPEC_64): Likewise.
18380         (SUB_LINK_SPEC): Likewise.
18381         (MULTILIB_DEFAULTS): New define.
18382         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
18383         Add multilib options.
18384         (MULTILIB_DIRNAMES): Likewise.
18385         (MULTILIB_OSDIRNAMES): Likewise.
18386         (LIBGCC): Likewise.
18387         (INSTALL_LIBGCC): Likewise.
18388
18389 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
18390
18391         PR c/39556
18392         * c-tree.h (enum c_inline_static_type): New.
18393         (record_inline_static): Declare.
18394         * c-decl.c (struct c_inline_static, c_inline_statics,
18395         record_inline_static, check_inline_statics): New.
18396         (pop_file_scope): Call check_inline_statics.
18397         (start_decl): Call record_inline_static instead of pedwarning
18398         directly for static in inline function.
18399         * c-typeck.c (build_external_ref): Call record_inline_static
18400         instead of pedwarning directly for static referenced in inline
18401         function.
18402
18403 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
18404
18405         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
18406         not new but only being rescanned.
18407         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
18408         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
18409         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
18410         record_set_info, compute_set, grealloc): Remove.
18411         (recompute_all_luids): New function.
18412         (gcse_main): Don't compute sets, and don't do related memory
18413         allocations/free-ing.  If something changed before the end of the
18414         pass, update LUIDs using recompute_all_luids.
18415         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
18416         (free_gcse_mem): Don't free it either.
18417         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
18418         Use the df insn LUIDs.
18419         (load_killed_in_block): Likewise.
18420         (compute_hash_table_work): Don't compute reg_set_in_block.
18421         (compute_transp): Use DF_REG_DEF_CHAINs.
18422         (local_cprop_pass): Don't use compute_sets and related functions.
18423         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
18424         Use get_max_uid() instead of max_cuid.
18425         (insert_insn_end_basic_block, pre_insert_copy_insn,
18426         update_ld_motion_stores): Don't try to
18427         keep reg_set tables up to date.
18428         (pre_insert_copies): Use df insn LUIDs.
18429         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
18430         (reg_set_info): Don't use extra bitmap argument.
18431         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
18432         information to compute regs_set_in_block.
18433         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
18434         (bypass_jumps): Don't use compute_sets and friends.
18435
18436 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18437
18438         PR testsuite/39710
18439         * opts.c (undocumented_msg): Do not leave blank even with
18440         ENABLE_CHECKING.
18441
18442 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
18443
18444         * c-decl.c (build_enumerator): Allow values folding to integer
18445         constants but not integer constant expressions with a pedwarn if
18446         pedantic.
18447
18448 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
18449
18450         PR c/39582
18451         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
18452         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
18453         type is an integer constant.
18454
18455 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
18456
18457         PR target/39897
18458         * config/i386/i386.c (print_operand) ['z']: Revert handling of
18459         HImode operands.
18460
18461 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
18462
18463         PR c/39564
18464         * c-decl.c (grokdeclarator): Diagnose declarations of functions
18465         with variably modified return type and no storage class
18466         specifiers, except for the case of nested functions.  Distinguish
18467         extern declarations of functions with variably modified return
18468         types from those of objects with variably modified types.
18469
18470 2009-04-25  Jan Hubicka  <jh@suse.cz>
18471
18472         * tree.c (list_equal_p): New function.
18473         * tree.h (list_equal_p): Declare.
18474         * coretypes.h (edge_def, edge, const_edge, basic_block_def
18475         basic_block_def, basic_block, const_basic_block): New.
18476         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
18477         (redirect_eh_edge): New function.
18478         (make_eh_edge_update_phi): EH edges are not abnormal.
18479         * except.c: Include tree-flow.h.
18480         (list_match): New function.
18481         (eh_region_replaceable_by_p): New function.
18482         (replace_region): New function.
18483         (hash_type_list): New function.
18484         (hash_eh_region): New function.
18485         (eh_regions_equal_p): New function.
18486         (merge_peers): New function.
18487         (remove_unreachable_regions): Verify EH tree when checking;
18488         merge peers.
18489         (copy_eh_region_1): New function.
18490         (copy_eh_region): New function.
18491         (push_reachable_handler): New function.
18492         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
18493         regions without label but with live RESX.
18494         * except.h (redirect_eh_edge_to_label): New.
18495         * tree-flow.h (redirect_eh_edge): New.
18496         * coretypes.h (edge_def, edge, const_edge, basic_block_def
18497         basic_block_def, basic_block, const_basic_block): Remove.
18498         * Makefile.in (except.o): Add dependency on tree-flow.h
18499         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
18500         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
18501         Remove.
18502
18503 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
18504
18505         PR bootstrap/39645
18506         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
18507         on the destination of memcpy.
18508
18509 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
18510
18511         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
18512         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
18513         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
18514
18515 2009-04-25  Jan Hubicka  <jh@suse.cz>
18516
18517         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
18518         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
18519         to be reached by different label than left.
18520         (update_eh_edges): Update comment; remove edge_to_remove if possible
18521         and return true if suceeded.
18522         (cleanup_empty_eh): Accept sharing map; handle shared regions.
18523         (cleanup_eh): Compute sharing map.
18524         * except.c (remove_eh_handler_and_replace): Add argument if we should
18525         update regions.
18526         (remove_unreachable_regions): Update for label sharing.
18527         (label_to_region_map): Likewise.
18528         (get_next_region_sharing_label): New function.
18529         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
18530         prev_try pointers.
18531         (remove_eh_handler): Update.
18532         (remove_eh_region_and_replace_by_outer_of): New function.
18533         * except.h (struct eh_region): Add next_region_sharing_label.
18534         (remove_eh_region_and_replace_by_outer_of,
18535         get_next_region_sharing_label): Declare.
18536         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
18537
18538 2009-04-25  Jan Hubicka  <jh@suse.cz>
18539
18540         * tree-cfg.c (split_critical_edges): Split also edges where we can't
18541         insert code even if they are not critical.
18542
18543 2009-04-25  Jan Hubicka  <jh@suse.cz>
18544
18545         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
18546         (gimple_can_remove_branch_p): EH edges won't remove branch by
18547         redirection.
18548         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
18549         updating of non-abnormal EH edges.
18550         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
18551         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
18552         (split_critical_edges): Split also edges where emitting code on them
18553         will lead to splitting later.
18554
18555 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
18556             H.J. Lu  <hongjiu.lu@intel.com>
18557
18558         PR target/39590
18559         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
18560         the configured assembler supports fildq and fistpq mnemonics.
18561         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
18562         * configure: Regenerated.
18563         * config.in: Ditto.
18564
18565         * config/i386/i386.c (print_operand): Handle 'Z'.
18566         ['z']: Remove handling of special fild/fist suffixes.
18567         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
18568         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
18569         suffix of fild insn.
18570         (*floatsi<mode>2_vector_mixed): Ditto.
18571         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
18572         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
18573         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
18574         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
18575         * config/i386/gas.h (GAS_MNEMONICS): Remove.
18576
18577 2009-04-25  Ben Elliston  <bje@au.ibm.com>
18578
18579         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
18580         the source of a set operation.
18581
18582 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
18583
18584         * target.h (struct gcc_target): Add case_values_threshold field.
18585         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
18586         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
18587         * targhooks.c (default_case_values_threshold): New function.
18588         * targhooks.h (default_case_values_threshold): Declare function.
18589         * stmt.c (expand_case): Use case_values_threshold target hook.
18590         * expr.h (case_values_threshold): Remove declartation.
18591         * expr.c (case_values_threshold): Remove function.
18592         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
18593
18594         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
18595         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
18596         (avr_case_values_threshold): Declare as static.
18597         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
18598
18599         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
18600         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
18601         (mn10300_case_values_threshold): New function.
18602
18603 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
18604
18605         * ira.c (setup_cover_and_important_classes): Add enum cast.
18606
18607 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
18608
18609         * genpreds.c (write_enum_constraint_num): Output definition of
18610         CONSTRAINT_NUM_DEFINED_P macro.
18611         * ira.c (setup_cover_and_important_classes): Use
18612         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
18613
18614 2009-04-24  DJ Delorie  <dj@redhat.com>
18615
18616         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
18617         __SH2A_SINGLE_ONLY__ also.
18618
18619 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
18620
18621         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
18622         (movdf_internal): Ditto.
18623         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
18624         SFmode and DFmode constants.
18625         (ia64_print_operand): Add 'G' format for printing
18626         floating point constants.
18627
18628 2009-04-24  Richard Guenther  <rguenther@suse.de>
18629
18630         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
18631         from unsigned additions.
18632
18633 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
18634
18635         * c-typeck.c (set_init_index): Allow array designators that are
18636         not integer constant expressions with a pedwarn if pedantic.
18637
18638 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
18639
18640         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
18641         zero if no overlap in nonzero bits between the operands.
18642
18643 2009-04-24  Ian Lance Taylor  <iant@google.com>
18644
18645         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
18646         (record_dead_and_set_regs): Likewise.
18647         * df.h (struct df_mw_hardreg): Change flags field to int.
18648         (struct df_base_ref): Likewise.
18649         (struct df): Change changeable_flags field to int.
18650         * df-scan.c (df_defs_record): Change clobber_flags to int.
18651         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
18652         constants rather than #define macros.
18653         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
18654         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
18655         (enum dwarf_calling_convention): Likewise.
18656         (enum dwarf_line_number_x_ops): Likewise.
18657         (enum dwarf_call_frame_info): Likewise.
18658         (enum dwarf_source_language): Likewise.
18659         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
18660         (add_calling_convention_attribute): Likewise.
18661         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
18662         (combine_comparisons): Change compcode to int.  Add cast to enum type.
18663         * genrecog.c (maybe_both_true_2): Change c to int.
18664         (write_switch): Likewise.  Add cast to enum type.
18665         * gimplify.c (gimplify_omp_for): Handle return values from
18666         gimplify_expr using MIN rather than bitwise or.
18667         (gimplify_expr): Add cast to enum type.
18668         * ipa-prop.c (update_jump_functions_after_inlining): Change
18669         IPA_BOTTOM to IPA_JF_UNKNOWN.
18670         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
18671         Add casts to enum type.
18672         (setup_cover_and_important_classes): Change cl to int.  Add casts
18673         to enum type.
18674         (setup_class_translate): Change cl and mode to int.
18675         (ira_init_once): Change mode to int.
18676         (free_register_move_costs): Likewise.
18677         (setup_prohibited_mode_move_regs): Add casts to enum type.
18678         * langhooks.c (add_builtin_function_common): Rework assertion that
18679         value fits bitfield.
18680         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
18681         * omega.c (omega_do_elimination): Avoid math on enum types.
18682         * optabs.c (expand_vec_shift_expr): Remove casts to int.
18683         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
18684         int local to handle integral_argment value.
18685         * regmove.c (try_auto_increment): Change PUT_MODE to
18686         PUT_REG_NOTE_KIND.
18687         * reload.c (push_secondary_reload): Add casts to enum type.
18688         (secondary_reload_class, find_valid_class): Likewise.
18689         * reload1.c (emit_input_reload_insns): Likewise.
18690         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
18691         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
18692         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
18693         constant.
18694         * tree.c (build_common_builtin_nodes): Add casts to enum type.
18695         * tree-complex.c (complex_lattice_t): Typedef to int rather than
18696         enum type.
18697         (expand_complex_libcall): Add casts to enum type.
18698         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
18699         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
18700         with ERROR_MARK, not NUM_TREE_CODES.
18701         (vect_create_epilog_for_reduction): Likewise.
18702         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
18703         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
18704         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
18705         enum machine_mode.
18706         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
18707         vect_unused_in_loop.  Change 0 to loop_vect.
18708         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
18709         * var-tracking.c (get_init_value): Change return type to enum
18710         var_init_status.
18711         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
18712         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
18713         arm_fp_model.
18714         (arm_override_options): Add casts to enum type.
18715         (arm_emit_tls_decoration): Likewise.
18716         * config/i386/i386.c (ix86_function_specific_restore): Add casts
18717         to enum type.
18718         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
18719         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
18720         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
18721         enum type.
18722         * config/s390/s390.c (code_for_builtin_64): Change to array of
18723         enum insn_code.
18724         (code_for_builtin_31): Likewise.
18725         (s390_expand_builtin): Change code_for_builtin to enum insn_code
18726         const *.
18727         * config/sparc/sparc.c (sparc_override_options): Change value
18728         field in struct code_model to enum cmodel.  In initializer change
18729         0 to NULL and add cast to enum type.
18730
18731         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
18732         Change all callers.  Issue a -Wc++-compat warning using
18733         lhs_origtype if necessary.
18734         (convert_for_assignment): Issue -Wc++-compat warnings about
18735         invalid conversions to enum type on assignment.
18736         * c-common.h (build_modify_expr): Update declaration.
18737
18738 2009-04-24  Nick Clifton  <nickc@redhat.com>
18739
18740         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
18741         (function_arg_advance): Likewise.
18742         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
18743         5th alternative.
18744
18745 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
18746
18747         * config/s390/constraints.md ('I', 'J'): Fix condition.
18748
18749 2009-04-24  Diego Novillo  <dnovillo@google.com>
18750
18751         * gengtype-parse.c (parse_error): Add newline after message.
18752
18753 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
18754
18755         * config/i386/sse.md (avxmodesuffixs): Removed.
18756         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
18757         (*avx_pinsr<ssevecsize>): This.
18758
18759 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
18760
18761         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
18762         follow chains of regs with a single definition, and allow expressions
18763         that are function_invariant_p.
18764         (simple_rhs_p): Allow expressions that are function_invariant_p.
18765
18766 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
18767
18768         PR middle-end/39867
18769         * fold-const.c (fold_cond_expr_with_comparison): When folding
18770         > and >= to MAX, make sure the MAX uses the same type as the
18771         comparison's operands.
18772
18773 2009-04-24  Nick Clifton  <nickc@redhat.com>
18774
18775         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
18776         addressing for DImode accesses.
18777         (frv_print_operand_address): Handle PLUS case.
18778         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
18779
18780 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
18781
18782         PR rtl-optimization/39794
18783         * alias.c (canon_true_dependence): Add x_addr argument.
18784         * rtl.h (canon_true_dependence): Adjust prototype.
18785         * cse.c (check_dependence): Adjust canon_true_dependence callers.
18786         * cselib.c (cselib_invalidate_mem): Likewise.
18787         * gcse.c (compute_transp): Likewise.
18788         * dse.c (scan_reads_nospill): Likewise.
18789         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
18790         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
18791         canon_base_addr of the group, plus optional offset.
18792         (struct group_info): Rename canon_base_mem to
18793         canon_base_addr.
18794         (get_group_info): Set canon_base_addr to canon_rtx of base, not
18795         canon_rtx of base_mem.
18796
18797 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
18798
18799         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
18800         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
18801
18802 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18803
18804         * config/spu/spu-builtins.h: Delete file.
18805
18806         * config/spu/spu.h (enum spu_builtin_type): Move here from
18807         spu-builtins.h.
18808         (struct spu_builtin_description): Likewise.  Add GTY marker.
18809         Do not use enum spu_function_code or enum insn_code.
18810         (spu_builtins): Add extern declaration.
18811
18812         * config/spu/spu.c: Do not include "spu-builtins.h".
18813         (enum spu_function_code, enum spu_builtin_type_index,
18814         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
18815         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
18816         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
18817         unsigned_V2DI_type_node): Move here from spu-builtins.h.
18818         (spu_builtin_types): Make static.  Add GTY marker.
18819         (spu_builtins): Add extern declaration with GTY marker.
18820         Include "gt-spu.h".
18821
18822         * config/spu/spu-c.c: Do not include "spu-builtins.h".
18823         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
18824         Check programmatically whether all parameters are scalar.
18825
18826         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
18827
18828 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
18829
18830         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
18831         assignment from the constructor either if the target is volatile.
18832
18833 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
18834
18835         * config/arm/arm.md (insv): Do not share operands[0].
18836
18837 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
18838
18839         * config/vxlib-tls.c (active_tls_threads): Delete.
18840         (delete_hook_installed): New.
18841         (tls_delete_hook): Don't delete the delete hook.
18842         (tls_destructor): Delete it here.
18843         (__gthread_set_specific): Adjust installing the delete hook.
18844         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
18845         __gthread_leave_tsd_dtor_context.
18846
18847 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
18848
18849         * c-format.c (gcc_tdiag_char_table): Add support for %E.
18850
18851 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
18852
18853         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
18854         enum type.
18855         (alpha_rtx_costs): Ditto.
18856         (emit_unlikely_jump): Use add_reg_note.
18857         (emit_frame_store_1): Ditto.
18858         (alpha_expand_prologue): Ditto.
18859         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
18860         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
18861
18862 2009-04-23  Nick Clifton  <nickc@redhat.com>
18863
18864         * config/v850/v850.md (epilogue): Remove suppressed code.
18865         (return): Rename to return_simple and remove test of frame size.
18866         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
18867         to gen_return_simple.
18868
18869 2009-04-22  Jing Yu  <jingyu@google.com>
18870
18871         PR testsuite/39781
18872         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
18873
18874 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18875
18876         PR C/31499
18877         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
18878         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
18879         value is a VECTOR_CST, the element type is the element type of the
18880         vector.
18881
18882 2009-04-22  DJ Delorie  <dj@redhat.com>
18883
18884         * config/m32c/m32c.h: Update GTY annotations to new syntax.
18885
18886 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
18887
18888         * alias.c (find_base_term): Move around LO_SUM case, so that
18889         CONST falls through into PLUS/MINUS handling.
18890
18891         PR c/39855
18892         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
18893         into 0, use omit_one_operand.
18894
18895 2009-04-23  Ben Elliston  <bje@au.ibm.com>
18896
18897         * config/rs6000/linux-unwind.h (get_regs): Remove type
18898         puns. Change the type of `pc' to an array of unsigned ints and
18899         update all users.  Constify frame24.
18900
18901 2009-04-22  DJ Delorie  <dj@redhat.com>
18902
18903         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
18904         declarations before code.
18905         (current_function_special_page_vector): Likewise.
18906         (m32c_expand_insv): Silence a warning.
18907
18908 2009-04-21  Taras Glek  <tglek@mozilla.com>
18909
18910         * alias.c: Update GTY annotations to new syntax.
18911         * basic-block.h: Likewise.
18912         * bitmap.h: Likewise.
18913         * c-common.h: Likewise.
18914         * c-decl.c: Likewise.
18915         * c-parser.c: Likewise.
18916         * c-pragma.c: Likewise.
18917         * c-tree.h: Likewise.
18918         * cfgloop.h: Likewise.
18919         * cgraph.h: Likewise.
18920         * config/alpha/alpha.c: Likewise.
18921         * config/arm/arm.h: Likewise.
18922         * config/avr/avr.h: Likewise.
18923         * config/bfin/bfin.c: Likewise.
18924         * config/cris/cris.c: Likewise.
18925         * config/darwin.c: Likewise.
18926         * config/frv/frv.c: Likewise.
18927         * config/i386/i386.c: Likewise.
18928         * config/i386/i386.h: Likewise.
18929         * config/i386/winnt.c: Likewise.
18930         * config/ia64/ia64.h: Likewise.
18931         * config/iq2000/iq2000.c: Likewise.
18932         * config/mips/mips.c: Likewise.
18933         * config/mmix/mmix.h: Likewise.
18934         * config/pa/pa.c: Likewise.
18935         * config/pa/pa.h: Likewise.
18936         * config/rs6000/rs6000.c: Likewise.
18937         * config/s390/s390.c: Likewise.
18938         * config/sparc/sparc.c: Likewise.
18939         * config/xtensa/xtensa.c: Likewise.
18940         * cselib.h: Likewise.
18941         * dbxout.c: Likewise.
18942         * dwarf2out.c: Likewise.
18943         * except.c: Likewise.
18944         * except.h: Likewise.
18945         * fixed-value.h: Likewise.
18946         * function.c: Likewise.
18947         * function.h: Likewise.
18948         * gimple.h: Likewise.
18949         * integrate.c: Likewise.
18950         * optabs.c: Likewise.
18951         * output.h: Likewise.
18952         * real.h: Likewise.
18953         * rtl.h: Likewise.
18954         * stringpool.c: Likewise.
18955         * tree-data-ref.c: Likewise.
18956         * tree-flow.h: Likewise.
18957         * tree-scalar-evolution.c: Likewise.
18958         * tree-ssa-address.c: Likewise.
18959         * tree-ssa-alias.h: Likewise.
18960         * tree-ssa-operands.h: Likewise.
18961         * tree.c: Likewise.
18962         * tree.h: Likewise.
18963         * varasm.c: Likewise.
18964         * varray.h: Likewise.
18965         * vec.h: Likewise.
18966         * coretypes.h: Do not define GTY macro if it is already defined.
18967         * doc/gty.texi: Update GTY documentation to new syntax.
18968         * gengtype-lex.l: Enforce attribute-like syntax for GTY
18969         annotations on structs.
18970         * gengtype-parse.c: Likewise.
18971
18972 2009-04-22  Mark Heffernan  <meheff@google.com>
18973
18974         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
18975
18976 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
18977
18978         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
18979         where appropriate.
18980
18981 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
18982
18983         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
18984         the same as a PLUS without a shift.  Increase the cost of a
18985         CONST_INT in MULT.
18986
18987 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18988
18989         * Makefile.in: Update dependencies.
18990         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
18991         * errors.h: Remove bogus comment about compatibility.
18992         (warning): Update declaration.
18993         * genautomata.c: Update all calls to warning.
18994         * gimple.c: Do not include errors.h. Include toplev.h.
18995         * tree-ssa-structalias.c: Do not include errors.h.
18996         * omega.c: Likewise.
18997         * tree-ssa-reassoc.c: Likewise.
18998         * config/spu/spu-c.c: Likewise.
18999         * config/spu/t-spu-elf: Update dependencies.
19000
19001 2009-04-22  Richard Guenther  <rguenther@suse.de>
19002
19003         PR tree-optimization/39824
19004         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
19005         make sure the types are compatible.
19006
19007 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19008
19009         PR c++/14875
19010         * c-common.c (c_parse_error): Take a token_flags parameter.
19011         Use token_type for the token type instead.
19012         Pass token_flags to cpp_type2name.
19013         * c-common.h (c_parse_error): Update declaration.
19014         * c-parser.c (c_parser_error): Pass 0 as token flags.
19015
19016 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
19017
19018         PR rtl-optimization/39580
19019         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
19020
19021 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19022
19023         * function.c (expand_function_end): Do not emit a jump to the "naked"
19024         return label for fall-through returns.
19025         * except.c (sjlj_emit_function_exit): Always place the call to the
19026         unregister function at the location installed by expand_function_end.
19027
19028 2009-04-22  Richard Guenther  <rguenther@suse.de>
19029
19030         PR tree-optimization/39845
19031         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
19032         (gen_inbound_check): Likewise.
19033
19034 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
19035
19036         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
19037         padding for PPC.
19038         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
19039         * config/vxlib.c (__gthread_once): Add race guard for PPC.
19040
19041 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
19042
19043         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
19044         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
19045         shift counts to avoid out-of-bounds array accesses.
19046
19047 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
19048
19049         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
19050         (Pmode): Move above.
19051
19052 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
19053
19054         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
19055         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
19056         GET_CODE macro.  Use IN_RANGE macro where appropriate.
19057         * config/alpha/alpha.h: Ditto.
19058         * config/alpha/alpha.md: Ditto.
19059         * config/alpha/constraints.md: Ditto.
19060         * config/alpha/predicates.md: Ditto.
19061
19062 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
19063
19064         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
19065         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19066         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19067         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19068         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19069         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19070         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19071         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19072         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19073         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19074         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19075         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19076         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19077         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19078         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19079         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19080         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19081         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19082         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19083         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19084         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19085         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19086         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19087         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19088         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19089         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19090         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
19091
19092 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
19093
19094         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
19095         references from comments.
19096         * cfgbuild.c: (count_basic_blocks): Delete.
19097         (find_basic_blocks_1): Delete.
19098         (find_basic_blocks): Delete.
19099         * except.c (finish_eh_generation): Make static.  Move comment from
19100         except.h here.  Remove find_basic_blocks references from comments.
19101         * except.h (finish_eh_generation): Delete.
19102         * basic-block.h (find_basic_blocks): Delete.
19103         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
19104
19105 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
19106
19107         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
19108         (sdbout_parms):  Likewise.
19109
19110 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
19111
19112         * config/sh/sh.c (prepare_cbranch_operands): Use
19113         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
19114         (expand_cbranchdi4): Likewise.
19115         (from_compare): Add cast to enum type.
19116         (expand_cbranchsi4): Use add_reg_note.
19117         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
19118         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
19119         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
19120         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
19121         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
19122         instead of CODE_FOR_nothing.
19123         (cbranchdi4): Likewise.  Fix the order of arguments for
19124         gen_rtx_fmt_ee.
19125         (push_fpscr): Use add_reg_note.
19126         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
19127         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
19128
19129 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
19130
19131         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
19132         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
19133         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
19134         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
19135         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
19136         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
19137         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
19138         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
19139         config/alpha/x-vms, config/arc/t-arc,
19140         config/arm/README-interworking, config/arm/arm-c.c,
19141         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
19142         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
19143         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
19144         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
19145         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
19146         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
19147         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
19148         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
19149         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
19150         config/cris/t-elfmulti, config/crx/t-crx,
19151         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
19152         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
19153         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
19154         config/h8300/t-h8300, config/i386/athlon.md,
19155         config/i386/darwin-libgcc.10.4.ver,
19156         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
19157         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
19158         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
19159         config/i386/t-linux64, config/i386/t-nwld,
19160         config/i386/t-rtems-i386, config/i386/t-sol2-10,
19161         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
19162         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
19163         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
19164         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
19165         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
19166         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
19167         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
19168         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
19169         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
19170         config/m68k/t-uclinux, config/mcore/t-mcore,
19171         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
19172         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
19173         config/mips/crtn.asm, config/mips/irix-crti.asm,
19174         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
19175         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
19176         config/mips/mips-fixed.md, config/mips/sb1.md,
19177         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
19178         config/mips/t-iris6, config/mips/t-isa3264,
19179         config/mips/t-libgcc-mips16, config/mips/t-linux64,
19180         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
19181         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
19182         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
19183         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
19184         config/mn10300/t-linux, config/mn10300/t-mn10300,
19185         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
19186         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
19187         config/picochip/libgccExtras/clzsi2.asm,
19188         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
19189         config/rs6000/darwin-libgcc.10.4.ver,
19190         config/rs6000/darwin-libgcc.10.5.ver,
19191         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
19192         config/rs6000/t-aix43, config/rs6000/t-aix52,
19193         config/rs6000/t-darwin, config/rs6000/t-fprules,
19194         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
19195         config/rs6000/t-lynx, config/rs6000/t-netbsd,
19196         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
19197         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
19198         config/rs6000/t-rtems, config/rs6000/t-spe,
19199         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
19200         config/score/t-score-elf, config/sh/divcost-analysis,
19201         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
19202         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
19203         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
19204         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
19205         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
19206         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
19207         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
19208         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
19209         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
19210         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
19211         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
19212         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
19213         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
19214         limitx.h, version.c, xcoff.h: Add copyright and license notices.
19215         * config/h8300/genmova.sh: Include copyright and license notices
19216         in generated output.
19217         * config/h8300/mova.md: Regenerate.
19218         * doc/install.texi2html: Include word "Copyright" in copyright
19219         notice and use name "Free Software Foundation, Inc.".
19220         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
19221         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
19222         ChangeLog-2007, ChangeLog-2008: Correct dates.
19223
19224 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
19225
19226         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
19227         NE_EXPR operations as well.
19228         * c-parser.c (c_parser_condition): Do not set location information on
19229         the condition.
19230         (c_parser_conditional_expression): Likewise.
19231         (c_parser_binary_expression): Set location information on operators.
19232         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
19233         TRUTH_NOT_EXPR has been folded.
19234         * fold-const.c (fold_truth_not_expr): Copy location information from
19235         the incoming expression to the outgoing one.
19236         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
19237         recursive calls on the LHS of the operator but pass that of the
19238         operator to recursive calls on the RHS of the operator.  Set it
19239         on the COND_EXPR.
19240         (shortcut_cond_expr): Set the locus of the operator on the second
19241         COND_EXPR and that of the expression on the first in degenerate cases.
19242         Pass the locus of the expression to calls to shortcut_cond_r.
19243         Set the locus of the 'then' block on the associated jump, if any.
19244         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
19245         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
19246         expression to call to gimplify_boolean_expr.
19247
19248 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
19249
19250         * config.gcc: Add additional configuration for
19251         i686-w64-mingw* and x86_64-w64-mingw* triplet.
19252         * config/i386/mingw-w64.h: New mingw-w64 specific header.
19253         (CPP_SPEC): Redefine for allowing -municode option.
19254         (STARTFILE_SPEC): Likewise.
19255         * config/i386/t-mingw-w64: New.
19256         * config/i386/mingw-w64.opt: New.
19257         (municode): Add new target option.
19258         * doc/invoke.texi (municode): Add documentation for new option.
19259
19260 2009-04-21  Ian Lance Taylor  <iant@google.com>
19261
19262         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19263         Correct test for number of arguments.
19264         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
19265
19266 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
19267
19268         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
19269         argument of emit_library_call.
19270
19271 2009-04-21  Richard Guenther  <rguenther@suse.de>
19272
19273         PR middle-end/39829
19274         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
19275         inside VIEW_CONVERT_EXPRs.
19276
19277 2009-04-21  Martin Jambor  <mjambor@suse.cz>
19278
19279         * tree-switch-conversion.c (build_constructors): Split a long line.
19280         (constructor_contains_same_values_p): New function.
19281         (build_one_array): Create assigns of constants if possible, do not
19282         call mark_sym_for_renaming, call update_stmt.
19283         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
19284         make_rename_temp.  Do not call mark_symbols_for_renaming, call
19285         update_stmt.
19286         (gen_def_assigns): Do not call mark_symbols_for_renaming or
19287         find_new_referenced_vars, call update_stmt.
19288         (gen_inbound_check): Use create_tmp_var and create ssa names manually
19289         instead of calling make_rename_temp.  Do not call
19290         find_new_referenced_vars or mark_symbols_for_renaming, call
19291         update_stmt.
19292
19293 2009-04-21  Richard Guenther  <rguenther@suse.de>
19294
19295         PR tree-optimization/39827
19296         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
19297         (tree_ssa_phiprop): Pass the correct array size.
19298
19299 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
19300
19301         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
19302
19303 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19304
19305         PR 16202
19306         * c-typeck.c (lvalue_p): Move declaration ...
19307         * c-common.h (lvalue_p): ... to here.
19308         * c-common.c (candidate_equal_p): New.
19309         (add_tlist): Use it.
19310         (merge_tlist): Use it.
19311         (warn_for_collisions_1): Likewise.
19312         (warning_candidate_p): Accept more candidates.
19313         (verify_tree): A warning candidate can be an expression. Use
19314         candidate_equal_p.
19315
19316 2009-04-21  Ben Elliston  <bje@au.ibm.com>
19317
19318         PR target/5267
19319         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
19320         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
19321         options.  Remove -mcall-solaris documentation.
19322
19323 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19324
19325         PR c++/13358
19326         * doc/invoke.texi (-Wlong-long): Update description.
19327         * c-lex (interpret_integer): Only warn if there was no previous
19328         overflow and -Wlong-long is enabled.
19329         * c-decl.c (declspecs_add_type): Drop redundant flags.
19330         * c.opt (Wlong-long): Init to -1.
19331         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
19332         and front-end warn_long_long. Wlong-long only depends on other
19333         flags if it is uninitialized.
19334         * c-parser.c (disable_extension_diagnostics): warn_long_long is
19335         the same for CPP and FE.
19336         (restore_extension_diagnostics): Likewise.
19337
19338 2009-04-20  Ian Lance Taylor  <iant@google.com>
19339
19340         Fix enum conversions which are invalid in C++:
19341         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
19342         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
19343         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
19344         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
19345         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
19346         (dbxout_parms): Likewise.
19347         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
19348         (df_clear_flags): Likewise.
19349         * df-problems.c (df_rd_bb_local_compute_process_def): Change
19350         top_flag parameter to int.
19351         (df_chain_create_bb_process_use): Likewise.
19352         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
19353         Remove cast.
19354         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
19355         (df_ref_create_structure, df_def_record_1): Likewise.
19356         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
19357         (df_notes_rescan): Change 0 to VOIDmode in function call.
19358         (df_get_call_refs, df_insn_refs_collect): Likewise.
19359         (df_bb_regs_collect): Likewise.
19360         (df_entry_block_defs_collect): Likewise.
19361         (df_exit_block_uses_collect): Likewise.
19362         * df.h: Update declarations.
19363         * double-int.c (double_int_divmod): Add cast to enum type.
19364         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
19365         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
19366         (based_loc_descr): Likewise.
19367         (loc_descriptor_from_tree_1): Change first_op and second_op to
19368         enum dwarf_location_atom.  Add cast to enum type.
19369         * expmed.c (init_expmed): Change 0 to SET in function call.
19370         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
19371         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
19372         (do_store_flag): Likewise.
19373         * fixed-value.h (struct fixed_value): Change mode to enum
19374         machine_mode.
19375         * function.c (assign_parms): Change 0 to VOIDmode in function call.
19376         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
19377         function call.
19378         (insert_insn_decl, insert_decl, insert_state): Likewise.
19379         (automata_list_finish): Likewise.
19380         * genrecog.c (process_define_predicate): Add cast to enum type.
19381         * gensupport.c (init_predicate_table): Add cast to enum type.
19382         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
19383         function call.
19384         (gimple_build_call_1, gimple_build_label): Likewise.
19385         (gimple_build_goto, gimple_build_asm_1): Likewise.
19386         (gimple_build_switch_1, gimple_build_cdt): Likewise.
19387         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
19388         (enum fallback): Rename from enum fallback_t.
19389         (fallback_t): Typedef as int.
19390         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
19391         GSI_SAME_STMT in function call.
19392         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
19393         enum type.
19394         (setup_reg_class_relations): Likewise.
19395         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
19396         (setup_prohibited_class_mode_regs): Add cast to enum type.
19397         (setup_prohibited_mode_move_regs): Likewise.
19398         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
19399         (record_address_regs): Change i to enum reg_class.
19400         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
19401         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
19402         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
19403         (GET_MODE_2XWIDER_MODE): Likewise.
19404         (GET_CLASS_NARROWEST_MODE): Likewise.
19405         * omp-low.c (expand_omp_for): Add cast to enum type.
19406         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
19407         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
19408         * postreload.c (reload_cse_simplify_operands): Change rclass local
19409         to enum reg_class.
19410         * predict.c (combine_predictions_for_insn): Change best_predictor
19411         and predictor to enum br_predictor.
19412         (combine_predictions_for_bb): Likewise.
19413         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
19414         use SET_PREDICT_EXPR_OUTCOME.
19415         * real.c (real_arithmetic): Change icode to code in function call.
19416         * reginfo.c (init_move_cost): Add casts to enum type.
19417         (init_reg_sets_1, init_fake_stack_mems): Likewise.
19418         * regmove.c (regclass_compatible_p): Change class0 and class1 to
19419         enum reg_class.
19420         * reload.c (find_valid_class): Add casts to enum type.
19421         (push_reload): Change 0 to NO_REGS in function call.
19422         (find_reloads): Change this_alternative to array of enum
19423         reg_class.  Remove some now-unnecessary casts.
19424         (make_memloc): Change 0 to VOIDmode in function call.
19425         * reload1.c (reload): Change 0 to VOIDmode in function call.
19426         (eliminate_regs_1, elimination_effects): Likewise.
19427         (eliminate_regs_in_insn): Likewise.
19428         (emit_input_reload_insns): Add cast to enum type.
19429         (delete_output_reload): Change 0 to VOIDmode in function call.
19430         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
19431         to enum type in function call.
19432         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
19433         (SET_PREDICT_EXPR_OUTCOME): Define.
19434         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
19435         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
19436         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
19437         (dump_function): Likewise.
19438         * tree-dump.h: Update declarations.
19439         * tree-pass.h: Update declarations.
19440         * varasm.c (assemble_integer): Change mclass to enum mode_class.
19441         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
19442         enum type.
19443         (arm_rtx_costs_1): Correct parenthesization.
19444         (arm_rtx_costs): Add casts to enum type.
19445         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
19446         (vfp_emit_fstmd): Use add_rg_note.
19447         (emit_multi_reg_push, emit_sfm): Likewise.
19448         (thumb_set_frame_pointer): Likewise.
19449         (arm_expand_prologue): Likewise.
19450         (arm_regno_class): Change return type to enum reg_class.
19451         (thumb1_expand_prologue): Use add_reg_note.
19452         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
19453         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
19454         in function call.
19455         * config/arm/gentune.sh: Add cast to enum type.
19456         * config/arm/arm-tune.md: Rebuild.
19457         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
19458         (ix86_split_fp_branch, predict_jump): Likewise.
19459         (ix86_expand_multi_arg_builtin): Change sub_code from enum
19460         insn_code to enum rtx_code.
19461         (ix86_builtin_vectorized_function): Add cast to enum type.
19462         * config/i386/i386.md (truncdfsf2): Change slot to enum
19463         ix86_stack_slot.
19464         (truncxf<mode>2, isinf<mode>2): Likewise.
19465         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
19466         enum type.
19467         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
19468         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
19469         (insert_bundle_state): Change 1 to INSERT in function call.
19470         (ia64_add_bundle_selector_before): Likewise.
19471         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
19472         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
19473         (restore_stack_nonlocal): Likewise.
19474         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
19475         function call.
19476         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
19477         function call.
19478         (mips_rtx_costs): Likewise.
19479         (mips_override_options): Add casts to enum type.
19480         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
19481         in function call.
19482         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
19483         (store_reg, set_reg_plus_d): Likewise.
19484         (hppa_expand_prologue, hppa_profile_hook): Likewise.
19485         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
19486         cast to enum type.
19487         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
19488         function call.
19489         (emit_unlikely_jump): Use add_reg_note.
19490         (rs6000_emit_allocate_stack): Likewise.
19491         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
19492         (output_toc): Change 1 to INSERT in function call.
19493         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
19494         (rs6000_initialize_trampoline): Likewise.
19495         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
19496         function call.
19497         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
19498         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
19499         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
19500         (save_gprs): Use add_reg_note.
19501         (s390_emit_prologue): Likewise.
19502         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
19503         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
19504         (sparc_fold_builtin): Add cast to enum type.
19505         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
19506         enum insn_code.
19507         (spu_expand_prologue): Use add_reg_note.
19508         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
19509
19510 2009-04-20  Ian Lance Taylor  <iant@google.com>
19511
19512         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
19513         (c_parser_postfix_expression_after_primary): Get VEC for list of
19514         arguments.  Get original types of arguments.  Call
19515         build_function_call_vec.
19516         (cached_expr_list_1, cached_expr_list_2): New static variables.
19517         (c_parser_expr_list): Change return type to VEC *.  Add
19518         p_orig_types parameter.  Change all callers.
19519         (c_parser_release_expr): New static function.
19520         (c_parser_vec_to_tree_list): New static function.
19521         * c-typeck.c (build_function_call): Rewrite to build a VEC and
19522         call build_function_call_vec.
19523         (build_function_call_vec): New function, based on old
19524         build_function_call.
19525         (convert_arguments): Remove nargs and argarray parameters.  Change
19526         values to a VEC.  Add origtypes parameter.
19527         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
19528         (convert_for_assignment): Add origtype parameter.  Change all
19529         callers.  If warn_cxx_compat, check for conversion to an enum
19530         type when calling a function.
19531         (store_init_value): Add origtype parameter.  Change all callers.
19532         (digest_init): Likewise.
19533         (struct init_node): Add origtype field.
19534         (add_pending_init): Add origtype parameter.  Change all callers.
19535         (output_init_element): Likewise.
19536         (output_pending_init_elements): Pass origtype from init_node to
19537         output_init_element.
19538         (process_init_element): Pass origtype from c_expr to
19539         output_init_element.
19540         (c_finish_return): Add origtype parameter.  Change all callers.
19541         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
19542         caller.
19543         (sync_resolve_params): Likewise.
19544         (sync_resolve_return): Change params to first_param.  Change caller.
19545         (resolve_overloaded_builtins): Change params to VEC *.  Change
19546         callers.  Save first parameter around call to build_function_call_vec.
19547         * c-decl.c (finish_decl): Add origtype parameter.  Change all
19548         callers.  Call build_function_call_vec rather than
19549         build_function_call for cleanup.
19550         * c-tree.h: Update declarations.
19551         * c-common.h: Update declarations.
19552         * stub-objc.c (objc_rewrite_function_call): Change parameter from
19553         params to first_param.
19554         * target.h (struct gcc_target): Change resolve_overloaded_builtin
19555         params parameter from tree to void *.
19556         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19557         Change arglist parameter to have type void *, and to be a pointer
19558         to a VEC.
19559         * config/rs6000/rs6000-protos.h
19560         (altivec_resolve_overloaded_builtin): Update declaration.
19561         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
19562         fnargs parameter to have type void *, and to be a pointer to a
19563         VEC.  Call build_function_call_vec instead of
19564         build_function_call.
19565         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
19566
19567 2009-04-20  Joey Ye  <joey.ye@intel.com>
19568             Xuepeng Guo  <xuepeng.guo@intel.com>
19569             H.J. Lu  <hongjiu.lu@intel.com>
19570
19571         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
19572
19573         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
19574         (IX86_LEA_PRIORITY): Likewise.
19575         (distance_non_agu_define): New function.
19576         (distance_agu_use): Likewise.
19577         (ix86_lea_for_add_ok): Likewise.
19578         (ix86_dep_by_shift_count): Likewise.
19579
19580         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
19581         should split for LEA.
19582
19583         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
19584         function.
19585         (ix86_dep_by_shift_count): Likewise.
19586
19587 2009-04-20  Richard Guenther  <rguenther@suse.de>
19588
19589         * expr.c (handled_component_p): Move ...
19590         * tree.h (handled_component_p): ... here.
19591         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
19592         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
19593         and REALPART_EXPR to be in one group.
19594
19595 2009-04-20  Richard Guenther  <rguenther@suse.de>
19596
19597         * basic-block.h (get_all_dominated_blocks): Declare.
19598         * dominance.c (get_all_dominated_blocks): New function.
19599         * tree-cfg.c (get_all_dominated_blocks): Remove.
19600         (remove_edge_and_dominated_blocks): Adjust.
19601         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
19602         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
19603         instead of recursing.
19604
19605 2009-04-20  Doug Kwan  <dougkwan@google.com>
19606
19607         * cgraph.h (cgraph_node_ptr): New type for vector functions.
19608         (struct cgraph_node_set_def): New type.
19609         (cgraph_node_set) New type. Also declare vector functions.
19610         (struct cgraph_node_set_element_def): New type.
19611         (cgraph_node_set_element): Ditto.
19612         (cgraph_node_set_iterator): New iterator type.
19613         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
19614         cgraph_node_set_remove, dump_cgraph_node_set,
19615         debug_cgraph_node_set): New prototypes.
19616         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
19617         cgraph_node_set_size): New inlines.
19618         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
19619         including cgraph.h.
19620         (struct ipa_opt_pass): Add struct cgraph_node_set_def
19621         argument to function 'write_summary'.
19622         * ipa.c: Include ggc.h.
19623         (hash_cgraph_node_set_element,
19624         eq_cgraph_node_set_element, cgraph_node_set_new,
19625         cgraph_node_set_add, cgraph_node_set_remove,
19626         cgraph_node_set_find, dump_cgraph_node_set,
19627         debug_cgraph_node_set): New functions.
19628         * Makefile.in (ipa.o): Add dependency on GGC_H.
19629
19630 2009-04-20  Ira Rosen  <irar@il.ibm.com>
19631
19632         PR tree-optimization/39675
19633         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
19634         check of the return code of vect_schedule_slp. Check that
19635         stmt_vec_info still exists for the statement, before checking its
19636         vectorization type.
19637
19638 2009-04-20  Michael Matz  <matz@suse.de>
19639
19640         * Makefile.in (generated_files): Take out $(simple_generated_c).
19641
19642 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
19643
19644         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
19645         (UINTPTR_TYPE):  Likewise.
19646
19647 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
19648
19649         PR c/37481
19650         * c-typeck.c (digest_init): Check for initializing an array with a
19651         string literal.
19652
19653 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
19654
19655         PR c/19771
19656         * c-semantics.c (pop_stmt_list): Propagate
19657         STATEMENT_LIST_HAS_LABEL to parent statement list.
19658
19659 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
19660
19661         * config/mips/mips.h (mips_tune_attr): New macro.
19662         * config/mips/mips.md (cpu): Use it.
19663
19664 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
19665
19666         PR c/38243
19667         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
19668         declaring a tag.
19669
19670 2009-04-19  Diego Novillo  <dnovillo@google.com>
19671
19672         * toplev.c (compile_file): Move call to coverage_finish ...
19673         * cgraphunit.c (ipa_passes): ... here.
19674         Call cgraph_process_new_functions.
19675         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
19676         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
19677
19678 2009-04-19  Jan Hubicka  <jh@suse.cz>
19679
19680         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
19681         cfun.
19682         (dump_cgraph_node): Dump can throw external flag.
19683         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
19684
19685 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19686
19687         PR c/32061
19688         PR c++/36954
19689         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
19690         * common.opt (Wlogical-op): Move from here...
19691         * c.opt (Wlogical-op): ... to here.
19692         * c-typeck.c (parser_build_binary_op): Update call to
19693         warn_logical_operator.
19694         * c-opts.c (c_common_post_options): Enable warn_logical_op with
19695         extra_warnings.
19696         * c-common.c (warn_logical_op): Update.
19697         * c-common.h (warn_logical_op): Update declaration.
19698
19699 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
19700
19701         * tree.c (protected_set_expr_location): Fix formatting.
19702
19703 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
19704
19705         PR c/27676
19706         * c-typeck.c (readonly_warning): new.
19707         (build_unary_op, build_modify_expr): Use readonly_warning for
19708         storing into something readonly but not const-qualified.
19709
19710 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
19711
19712         PR c/22367
19713         * c-typeck.c (build_unary_op): Check for taking address of
19714         expression of type void.
19715
19716 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
19717
19718         PR c/35210
19719         * c-typeck.c (build_function_call): Check for calling a function
19720         with qualified void return types.  Call require_complete_type when
19721         generating a trap.
19722
19723 2009-04-18  Jan Hubicka  <jh@suse.cz>
19724
19725         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
19726         Set nothrow flag.
19727         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
19728         can_throw_external flag.
19729         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
19730         * ipa-pure-const.c (ignore_edge): New function.
19731         (propagate): Compute order for NOTHROW computation; set NOTHROWs
19732         only over can_throw_external edges.
19733         (local_pure_const): Add nothrow flag.
19734         * ipa-utils.c (searchc): Add ignore_edge callback.
19735         (ipa_utils_reduced_inorder): Add ignore_edge callback.
19736         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
19737         (set_nothrow_function_flags): Update cgraph.
19738         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
19739
19740 2009-04-18  Richard Guenther  <rguenther@suse.de>
19741
19742         PR middle-end/39804
19743         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
19744         (fold_stmt): ... this and ...
19745         (fold_stmt_inplace): ... this.
19746         (fold_stmt_1): Fold references in calls and asms.
19747         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
19748
19749 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
19750
19751         * tree-vrp.c (ssa_name_nonzero_p): Remove.
19752         * tree.h: Remove the prototype for ssa_name_nonzero_p.
19753
19754 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
19755
19756         * tree.c (function_args_count): Remove.
19757         * tree.h: Remove the prototype for function_args_count.
19758
19759 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
19760
19761         * tree-iterator.c (expr_only): Remove.
19762         * tree.h: Remove the prototype for expr_only.
19763
19764 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
19765
19766         * reginfo.c (cannot_change_mode_set_regs): Remove.
19767         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
19768
19769 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
19770
19771         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
19772         whether operands 0 and 1 overlaps.
19773
19774 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19775
19776         PR middle-end/36902
19777         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
19778         pointer. Use warning_at instead of warning.
19779         (search_for_addr_array): Likewise.
19780         (check_array_bounds): Likewise.
19781         (check_all_array_refs): Check that the incoming edge is not in the
19782         list of edges to be removed.
19783         (check_all_array_refs): Avoid the temporal pointer.
19784         (vrp_visit_cond_stmt): Fix typo.
19785         (simplify_switch_using_ranges): Handle the case where the switch
19786         index is an integer constant.
19787
19788 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
19789
19790         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
19791
19792 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
19793
19794         * doc/extend.texi, doc/invoke.texi: Fix typos.
19795
19796 2009-04-17  Cary Coutant  <ccoutant@google.com>
19797
19798         * tree-flow-inline.h (get_lineno): Fix inverted test.
19799
19800 2009-04-17  Diego Novillo  <dnovillo@google.com>
19801
19802         * tree-ssa-pre.c (create_expression_by_pieces): Remove
19803         assertion for AVAIL_OUT.
19804
19805 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
19806
19807         PR target/38627
19808         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
19809         * config/sh/linux-atomic.asm: Likewise.
19810
19811 2009-04-17  Diego Novillo  <dnovillo@google.com>
19812
19813         * except.c (debug_eh_tree): New.
19814         (struct eh_region, struct eh_status): Move ...
19815         * except.h: ... here.
19816         (add_type_for_runtime): Declare extern.
19817         (lookup_type_for_runtime): Likewise.
19818         (debug_eh_tree): Declare.
19819         * Makefile.in (GTFILES): List except.h before except.c
19820
19821 2009-04-17  Diego Novillo  <dnovillo@google.com>
19822
19823         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
19824         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
19825         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
19826         (find_vars_r): ... here.
19827         * tree-flow.h (find_referenced_vars_in): Declare.
19828         * tree-ssa-pre.c (create_expression_by_pieces): Assert
19829         that AVAIL_OUT exists for BLOCK.
19830         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
19831         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
19832         (tree-parloops.o): Likewise.
19833
19834 2009-04-17  Simon Baldwin  <simonb@google.com>
19835
19836         * toplev.c (default_tree_printer): Add handling for %E format.
19837
19838 2009-04-17  Diego Novillo  <dnovillo@google.com>
19839
19840         * tree-pretty-print.c (dump_generic_node): Add break after
19841         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
19842         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
19843         FUNCTION_TYPE together.  Call print_struct_decl when printing
19844         structures and TDF_SLIM is not given.
19845         (print_struct_decl): Fix logic for detecting recursion.
19846
19847 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
19848
19849         PR 31567
19850         * gcc.c (create_at_file): New.
19851         (compile_input_file_p): New.
19852         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
19853         * main.c (main): Update call to toplev_main.
19854         * toplev.c (toplev_main): Change signature. Call expandargv.
19855         * toplev.h (toplev_main): Change signature.
19856
19857 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
19858
19859         * dwarf2out.c (field_byte_offset): Use the type size as the field size
19860         if the latter is not constant.
19861
19862 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
19863
19864         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
19865
19866 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
19867
19868         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
19869         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
19870
19871 2009-04-17  Richard Guenther  <rguenther@suse.de>
19872
19873         * tree-ssa-structalias.c (get_constraint_for_component_ref):
19874         Handle component references view-converting an invariant address.
19875
19876 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
19877
19878         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
19879         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
19880         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
19881         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
19882         Use @deftypevr rather than @deftypevar.
19883
19884 2009-04-17  Richard Guenther  <rguenther@suse.de>
19885
19886         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
19887         (get_prop_source_stmt): Likewise.
19888         (can_propagate_from): Likewise.
19889
19890 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
19891
19892         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
19893         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
19894         (--with-multilib-list): Add default value.
19895         * configure: Regenerate.
19896         * Makefile.in (TM_ENDIAN_CONFIG): Define.
19897         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
19898         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
19899         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
19900         Don't add default cpu to multilib list unnecessarily, but do enable
19901         the relevant compiler option..
19902         Add support for --with-multilib-list=<blank> and
19903         --with-multilib-list=!<somelib> to supress unwanted multilibs.
19904         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
19905         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
19906         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
19907         TM_MULTILIB_CONFIG.
19908         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
19909         (MULTILIB_OSDIRNAMES): New variable.
19910         * config/sh/t-1e: Delete file.
19911         * config/sh/t-mlib-sh1: Delete file.
19912         * config/sh/t-mlib-sh2: Delete file.
19913         * config/sh/t-mlib-sh2a: Delete file.
19914         * config/sh/t-mlib-sh2a-nofpu: Delete file.
19915         * config/sh/t-mlib-sh2a-single: Delete file.
19916         * config/sh/t-mlib-sh2a-single-only: Delete file.
19917         * config/sh/t-mlib-sh2e: Delete file.
19918         * config/sh/t-mlib-sh3e: Delete file.
19919         * config/sh/t-mlib-sh4: Delete file.
19920         * config/sh/t-mlib-sh4-nofpu: Delete file.
19921         * config/sh/t-mlib-sh4-single: Delete file.
19922         * config/sh/t-mlib-sh4-single-only: Delete file.
19923         * config/sh/t-mlib-sh4a: Delete file.
19924         * config/sh/t-mlib-sh4a-nofpu: Delete file.
19925         * config/sh/t-mlib-sh4a-single: Delete file.
19926         * config/sh/t-mlib-sh4a-single-only: Delete file.
19927         * config/sh/t-mlib-sh4al: Delete file.
19928         * config/sh/t-mlib-sh5-32media: Delete file.
19929         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
19930         * config/sh/t-mlib-sh5-64media: Delete file.
19931         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
19932         * config/sh/t-mlib-sh5-compact: Delete file.
19933         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
19934         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
19935         * doc/install.texi (Options specification): Add
19936         --with-multilib-list and --with-endian.
19937
19938 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
19939
19940         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
19941         REVISION_c.
19942         (OBJS-common): Add plugin-version.o.
19943         (plugin-version.o): New.
19944         * gcc-plugin.h (plugin_gcc_version): New.
19945         (plugin_default_version_check): New.
19946         (plugin_init_func, plugin_init): Add version argument.
19947         * plugin-version.c: New.
19948         * plugin.c (str_plugin_gcc_version_name): New.
19949         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
19950         pass it to the init function.
19951         (plugin_default_version_check): New.
19952
19953 2009-04-17  Richard Guenther  <rguenther@suse.de>
19954
19955         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
19956         for decl-vs-decl disambiguation.
19957
19958 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
19959
19960         * config/s390/s390.h (s390_tune_attr): New macro definition.
19961         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
19962
19963 2009-04-17  Richard Guenther  <rguenther@suse.de>
19964
19965         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
19966         (fold_stmt_r): Likewise.
19967         (maybe_fold_reference): New function.
19968         (fold_gimple_assign): Handle cases fold_stmt_r did.
19969         (fold_stmt): Do not use fold_stmt_r.
19970         (fold_stmt_inplace): Likewise.
19971
19972 2009-04-17  Richard Guenther  <rguenther@suse.de>
19973
19974         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
19975         (record_equivalences_from_stmt): Remove useless checks and
19976         simplifications.
19977         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
19978         the type is already suitable.
19979
19980 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
19981
19982         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
19983
19984 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
19985
19986         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
19987         (CMPtype): Define as __gcc_CMPtype.
19988
19989 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
19990
19991         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
19992         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
19993
19994 2009-04-17  Richard Guenther  <rguenther@suse.de>
19995
19996         PR tree-optimization/39746
19997         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
19998         special-casing for builtins and static variable use/def.
19999         (call_may_clobber_ref_p_1): Likewise.
20000
20001 2009-04-16  Ian Lance Taylor  <iant@google.com>
20002
20003         * df.h: Include "timevar.h".
20004         (struct df_problem): Change tv_id field to timevar_id_t.
20005         * tree-pass.h: Include "timevar.h".
20006         (struct opt_pass): Change tv_id field to timevar_id_t.
20007         * timevar.h (timevar_id_t): Define TV_NONE.
20008         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
20009         TV_NONE rather than tv_id != 0.
20010         (execute_one_pass): Likewise.
20011         * Makefile.in (DF_H): Add $(TIMEVAR_H).
20012         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
20013         dependencies to $(TREE_PASS_H).
20014         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
20015         to TV_NONE.
20016         (pass_branch_target_load_optimize2): Likewise.
20017         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
20018         (pass_outof_cfg_layout_mode): Likewise.
20019         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
20020         (pass_rebuild_cgraph_edges): Likewise.
20021         (pass_remove_cgraph_callee_edges): Likewise.
20022         * df-core.c (pass_df_initialize_opt): Likewise.
20023         (pass_df_initialize_no_opt): Likewise.
20024         (pass_df_finish): Likewise.
20025         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
20026         * except.c (pass_set_nothrow_function_flags): Likewise.
20027         (pass_convert_to_eh_region_ranges): Likewise.
20028         * final.c (pass_compute_alignments): Likewise.
20029         * function.c (pass_instantiate_virtual_regs): Likewise.
20030         (pass_init_function): Likewise.
20031         (pass_leaf_regs): Likewise.
20032         (pass_match_asm_constraints): Likewise.
20033         * gimple-low.c (pass_lower_cf): Likewise.
20034         (pass_mark_used_blocks): Likewise.
20035         * init-regs.c (pass_initialize_regs): Likewise.
20036         * integrate.c (pass_initial_value_sets): Likewise.
20037         * ira.c (pass_ira): Likewise.
20038         * jump.c (pass_cleanup_barriers): Likewise.
20039         * omp-low.c (pass_expand_omp): Likewise.
20040         (pass_lower_omp): Likewise.
20041         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
20042         * recog.c (pass_split_all_insns): Likewise.
20043         (pass_split_after_reload): Likewise.
20044         (pass_split_before_regstack): Likewise.
20045         (pass_split_before_sched2): Likewise.
20046         (pass_split_for_shorten_branches): Likewise.
20047         * reginfo.c (pass_reginfo_init): Likewise.
20048         (pass_subregs_of_mode_init): Likewise.
20049         (pass_subregs_of_mode_finish): Likewise.
20050         * passes.c (pass_postreload): Likewise.
20051         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
20052         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
20053         (pass_warn_function_return): Likewise.
20054         (pass_warn_function_noreturn): Likewise.
20055         * tree-complex.c (pass_lower_complex): Likewise.
20056         (pass_lower_complex_O0): Likewise.
20057         * tree-if-conv.c (pass_if_conversion): Likewise.
20058         * tree-into-ssa.c (pass_build_ssa): Likewise.
20059         * tree-mudflap.c (pass_mudflap_1): Likewise.
20060         (pass_mudflap_2): Likewise.
20061         * tree-nomudflap.c (pass_mudflap_1): Likewise.
20062         (pass_mudflap_2): Likewise.
20063         * tree-nrv.c (pass_return_slot): Likewise.
20064         * tree-object-size.c (pass_object_sizes): Likewise.
20065         * tree-optimize.c (pass_all_optimizations): Likewise.
20066         (pass_early_local_passes): Likewise.
20067         (pass_all_early_optimizations): Likewise.
20068         (pass_cleanup_cfg): Likewise.
20069         (pass_cleanup_cfg_post_optimizing): Likewise.
20070         (pass_free_datastructures): Likewise.
20071         (pass_free_cfg_annotations): Likewise.
20072         (pass_fixup_cfg): Likewise.
20073         (pass_init_datastructures): Likewise.
20074         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
20075         (pass_late_warn_uninitialized): Likewise.
20076         (pass_update_address_taken): Likewise.
20077         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
20078         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
20079         (pass_cse_sincos): Likewise.
20080         (pass_convert_to_rsqrt): Likewise.
20081         * tree-ssa-structalias.c (pass_build_alias): Likewise.
20082         * tree-stdarg.c (pass_stdarg): Likewise.
20083         * tree-tailcall.c (pass_tail_recursion): Likewise.
20084         (pass_tail_calls): Likewise.
20085         * tree-vect-generic.c (pass_lower_vector): Likewise.
20086         (pass_lower_vector_ssa): Likewise.
20087         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
20088
20089 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
20090
20091         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
20092         XLR entry.
20093         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
20094         Handle -march=xlr.
20095         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
20096         logical and signext.
20097
20098 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
20099
20100         PR target/39767
20101         * config/sh/predicates.md (arith_operand): Check if the operand
20102         of TRUNCATE is a REG.
20103
20104 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
20105
20106         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
20107         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
20108
20109 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
20110
20111         * tree-iterator.c (tsi_split_statement_list_after,
20112         tsi_split_statement_list_before): Remove.
20113         * tree-iterator.h: Remove the prototypes for
20114         tsi_split_statement_list_after and tsi_split_statement_list_before.
20115
20116 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
20117
20118         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
20119         * tree-ssa-propagate.h: Remove the prototype for
20120         stmt_makes_single_load.
20121
20122 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
20123
20124         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
20125         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
20126
20127 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
20128
20129         * tree-iterator.c (EXPR_LAST_BODY): Remove.
20130
20131 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
20132
20133         * except.c (eh_region_outer_p): Remove.
20134         * except.h: Remove the prototype for eh_region_outer_p.
20135
20136 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
20137
20138         * function.c (current_function_assembler_name): Remove.
20139         * function.h: Remove the prototype for
20140         current_function_assembler_name.
20141
20142 2009-04-16  Ian Lance Taylor  <iant@google.com>
20143
20144         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
20145         (add_reg_note): Call alloc_reg_note.
20146         * rtl.h (alloc_reg_note): Declare.
20147         * combine.c (try_combine): Use alloc_reg_note.
20148         (recog_for_combine, move_deaths): Likewise.
20149         (distribute_notes): Use alloc_reg_note and add_reg_note.
20150         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
20151         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
20152         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
20153
20154 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
20155
20156         PR rtl-optimization/39762
20157         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
20158         ira_may_move_out_cost): Add comments about way of their usage.
20159         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
20160
20161         * ira-conflicts.c (process_regs_for_copy): Use function
20162         ira_get_register_move_cost instead of global
20163         ira_register_move_cost.
20164
20165         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
20166         color_pass, move_spill_restore, update_curr_costs): Ditto.
20167
20168         * ira-lives.c (process_single_reg_class_operands): Ditto.
20169
20170         * ira-emit.c (emit_move_list): Ditto.
20171
20172         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
20173         (record_reg_classes): Ditto.  Use functions
20174         ira_get_register_move_cost and ira_get_may_move_cost instead of
20175         global vars ira_register_move_cost, ira_may_move_out_cost and
20176         ira_may_move_in_cost.
20177         (record_address_regs): Don't call ira_init_register_move_cost.
20178         Use function ira_get_may_move_cost instead of global
20179         ira_may_move_in_cost.
20180         (process_bb_node_for_hard_reg_moves): Use function
20181         ira_get_register_move_cost instead of global ira_register_move_cost.
20182         (ira_costs): Don't call ira_init_register_move_cost.
20183
20184 2009-04-16  Richard Guenther  <rguenther@suse.de>
20185
20186         * tree-cfg.c (verify_gimple_assign_binary):
20187         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
20188         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
20189         (create_general_new_stmt): Note that this function is broken.
20190
20191 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
20192
20193         * common.opt (fhelp): Add Var(help_flag).
20194         * gcc-plugin.h (plugin_info): Add help.
20195         * plugin.c (plugin_name_args): Add help.
20196         (register_plugin_info): Set plugin->help.
20197         (print_help_one_plugin): New.
20198         (print_plugins_help): New.
20199         * plugin.h (print_plugins_help): New.
20200         * toplev.c (toplev_main): Call print_plugins_help if needed.
20201
20202 2009-04-16  Richard Guenther  <rguenther@suse.de>
20203
20204         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
20205         (gimple_ior_addresses_taken_1): New function.
20206         (gimple_ior_addresses_taken): Likewise.
20207         * gimple.h (struct gimple_statement_with_ops_base): Remove
20208         addresses_taken member.
20209         (gimple_ior_addresses_taken): Declare.
20210         (gimple_addresses_taken, gimple_addresses_taken_ptr,
20211         gimple_set_addresses_taken): Remove.
20212         * ipa-reference.c (mark_address): New function.
20213         (scan_stmt_for_static_refs): Use it for marking addresses taken.
20214         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
20215         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
20216         (gimple_add_to_addresses_taken): Remove.
20217         (get_tmr_operands): Call mark_address_taken.
20218         (get_asm_expr_operands): Likewise.
20219         (get_expr_operands): Likewise.
20220         (build_ssa_operands): Do not clear the addresses_taken bitmap.
20221         (free_stmt_operands): Do not free it.
20222         * tree-ssa.c (delete_tree_ssa): Likewise.
20223         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
20224
20225 2009-04-16  Richard Guenther  <rguenther@suse.de>
20226
20227         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
20228         (walk_stmt_load_store_ops): Likewise.
20229         * gimple.c (get_base_loadstore): New function.
20230         (walk_stmt_load_store_addr_ops): Likewise.
20231         (walk_stmt_load_store_ops): Likewise.
20232         * ipa-pure-const.c (check_op): Simplify.
20233         (check_load, check_store): New functions.
20234         (check_stmt): Use walk_stmt_load_store_ops.
20235         * ipa-reference.c (mark_load): Adjust signature.
20236         (mark_store): Likewise.
20237         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
20238
20239 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
20240
20241         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
20242         (plugin_info): New.
20243         * opts.c (common_handle_option): Don't call print_version.
20244         * plugin.c (plugin_name_args): Add version.
20245         (register_plugin_info): New.
20246         (register_callback): Handle PLUGIN_INFO.
20247         (try_init_one_plugin): New.
20248         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
20249         if failed to init.
20250         (finalize_one_plugin): New.
20251         (finalize_plugins): New.
20252         (print_one_plugin): New.
20253         (print_plugins_versions): New.
20254         * plugin.h (print_plugins_versions): New.
20255         (finalize_plugins): New.
20256         * toplev.c (compile_file): Don't call initialize_plugins.
20257         (print_version): Call print_plugins_versions.
20258         (toplev_main): Call initialize_plugins. Print version if needed.
20259         Call finalize_plugins.
20260
20261 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
20262
20263         * common.opt (fversion): New.
20264         * gcc.c (print_version): New.
20265         (process_command): Don't print the version. Just set print_version.
20266         (main): Print version. Call subprocesses if print_version and
20267         verbose_flag are set.
20268         * opts.c (common_handle_option): Handle OPT_fversion.
20269
20270 2009-04-16  Richard Guenther  <rguenther@suse.de>
20271             Ira Rosen  <irar@il.ibm.com>
20272
20273         PR tree-optimization/39698
20274         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
20275         type of the reduction variable.  Only generate the def if
20276         it is needed.
20277
20278         * omp-low.c (expand_omp_for_generic): When converting to a pointer
20279         make sure to first convert to an integer of the same precision.
20280         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
20281         the type of the evolution correctly in computing the new
20282         induction variable base.
20283
20284 2009-04-16  Richard Guenther  <rguenther@suse.de>
20285
20286         PR middle-end/39625
20287         * tree-cfg.c (make_blocks): Split statements with to-be
20288         abnormal SSA names on the lhs.
20289
20290 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
20291
20292         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
20293         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
20294         * c-typeck.c (really_start_incremental_init): Likewise.
20295         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
20296         (TARGET_INITIALIZER): Remove it.
20297         * target.h (struct target): Remove vector_opaque_p.
20298         * tree.c (build_opaque_vector_type): New.
20299         * tree.h (TYPE_VECTOR_OPAQUE): New.
20300         (build_opaque_vector_type): Declare.
20301         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
20302         * config/rs6000/rs6000.c (build_opaque_vector_type,
20303         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
20304         (rs6000_init_builtins): Use build_opaque_vector_type for
20305         opaque_V4SI_type_node.
20306
20307 2009-04-15  Catherine Moore  <clm@codesourcery.com>
20308
20309         * debug.h (set_name):  Declare.
20310         * dwarf2out.c (dwarf2out_set_name): Declare.
20311         (dwarf2_debug_hooks): Add set_name.
20312         (find_AT_string): New.
20313         (add_AT_string): Call find_AT_string.
20314         (dwarf2out_set_name): New.
20315         * cp/decl.c (grokdeclarator): Call set_name.
20316         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
20317         * debug.c (do_nothing_debug_hooks):  Likewise.
20318         * dbxout.c (dbx_debug_hooks): Likewise.
20319         * sdbout.c (sdb_debug_hooks): Likewise.
20320
20321 2009-04-15  Michael Eager  <eager@eagercon.com>
20322
20323         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
20324         reg for single-precision FPU.
20325         * config/rs6000/rs6000.md (movsi_internal1): Only for
20326         !TARGET_SINGLE_FPU.
20327         (movsi_internal1_single): New. Add pattern to move SI values to/from
20328         single-precision FP regs.
20329
20330 2009-04-15  Richard Guenther  <rguenther@suse.de>
20331
20332         * omp-low.c (lower_rec_input_clauses): Build correct address
20333         expressions.
20334         (expand_omp_for_generic): Fix multiplication type.
20335         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
20336         (generate_memset_zero): Fix types.
20337         * tree-profile.c (prepare_instrumented_value): Correctly
20338         widen a pointer.
20339
20340 2009-04-15  Ian Lance Taylor  <iant@google.com>
20341
20342         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
20343         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
20344         for -Wall and for -Wc++-compat.
20345         (c_common_post_options): For C++, set warn_enum_compare if not
20346         already set.
20347         * c-tree.h (struct c_expr): Add field original_type.
20348         (build_external_ref): Update declaration.
20349         * c-parser.c (c_parser_braced_init): Set original_type.
20350         (c_parser_initelt): Likewise.
20351         (c_parser_expr_no_commas): Likewise.
20352         (c_parser_conditional_expression): Likewise.
20353         (c_parser_cast_expression): Likewise.
20354         (c_parser_unary_expression): Likewise.  Pull setting of
20355         original_code to top of function.
20356         (c_parser_sizeof_expression): Set original_type.
20357         (c_parser_alignof_expression): Likewise.
20358         (c_parser_postfix_expression): Likewise.  Pull setting of
20359         original_code to top of function.
20360         (c_parser_postfix_expression_after_paren_type): Set original_type.
20361         (c_parser_postfix_expression_after_primary): Likewise.
20362         (c_parser_expression): Likewise.
20363         * c-typeck.c (build_external_ref): Add type parameter.  Change all
20364         callers.
20365         (c_expr_sizeof_expr): Set original_type field.
20366         (parser_build_unary_op): Likewise.
20367         (parser_build_binary_op): Likewise.  Optionally warn about
20368         comparisons of enums of different types.
20369         (digest_init): Set original_type field.
20370         (really_start_incremental_init): Likewise.
20371         (push_init_level, pop_init_level): Likewise.
20372         * doc/invoke.texi (Warning Options): -Wenum-compare now
20373         supported in C.
20374
20375 2009-04-15  Richard Guenther  <rguenther@suse.de>
20376
20377         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
20378         out a necessary conversion.
20379         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
20380         names we didn't value number.
20381         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
20382
20383 2009-04-15  Richard Guenther  <rguenther@suse.de>
20384
20385         PR tree-optimization/39764
20386         * tree-ssa-ccp.c (get_value): Canonicalize value with
20387         canonicalize_float_value.
20388
20389 2009-04-15  Jan Hubicka  <jh@suse.cz>
20390
20391         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
20392         Wrong version of patch.
20393
20394 2009-04-15  Jan Hubicka  <jh@suse.cz>
20395
20396         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
20397
20398 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
20399
20400         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
20401         our distinct integral and vector types.
20402
20403 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
20404
20405         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
20406         * init.c (build_vtbl_address): Remove call to assemble_external.
20407
20408 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
20409
20410         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
20411         output for other floating point modes.
20412
20413 2009-04-14  Diego Novillo  <dnovillo@google.com>
20414
20415         * diagnostic.c (diagnostic_report_diagnostic): Do not
20416         warn about loaded plugins for DK_ERROR and DK_WARNING.
20417         * c-decl.c (declspecs_add_type): Move call to
20418         invoke_plugin_callbacks ...
20419         * c-parser.c (c_parser_declspecs): ... here.
20420         * plugin.c (dump_active_plugins): Tidy output.
20421
20422 2009-04-14  Diego Novillo  <dnovillo@google.com>
20423             Le-Chun Wu  <lcwu@google.com>
20424
20425         * configure.ac: Add --enable-plugin support.
20426         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
20427         * Makefile.in (PLUGIN_H): Define.
20428         Export ENABLE_PLUGIN and GMPINC to site.exp.
20429         Add PLUGINLIBS to link command.
20430         Add/modify dependencies for plugin.o and files including plugin.h.
20431         (plugin.o): New.
20432         * config.in: Regenerate.
20433
20434         * opts.c (common_handle_option): Handle OPT_fplugin_ and
20435         OPT_fplugin_arg_.
20436
20437 2009-04-14  Le-Chun Wu  <lcwu@google.com>
20438
20439         * tree-pass.h (register_one_dump_file): Add a prototype for
20440         register_one_dump_file.
20441         * toplev.c (compile_file): Call initialize_plugins.
20442         (do_compile): Call invoke_plugin_callbacks.
20443         (toplev_main): Call invoke_plugin_callbacks.
20444         * common.opt: Add -fplugin= and -fplugin-arg-.
20445         * gcc-plugin.h: New public header file for plugins to include.
20446         * plugin.c: New source file.
20447         * plugin.h: New internal header file.
20448         * passes.c (register_one_dump_file): Make it external.
20449
20450         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
20451
20452 2009-04-14  Diego Novillo  <dnovillo@google.com>
20453
20454         * doc/plugins.texi: New.
20455         * doc/gccint.texi: Add reference to Plugins chapter.
20456         * doc/invoke.texi: Document -fplugin and -fplugin-arg
20457         * diagnostic.c (diagnostic_report_diagnostic): Warn about
20458         loaded plugins, if any.
20459         * timevar.def (TV_PLUGIN_INIT): Define.
20460         (TV_PLUGIN_RUN): Define.
20461         * plugin.c: Include timevar.h
20462         (plugins_active_p): New.
20463         (dump_active_plugins): New.
20464         (debug_active_plugins): New.
20465
20466 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
20467
20468         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
20469         library paths.
20470         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
20471
20472 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
20473
20474         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
20475         the same as a minus without a shift.
20476
20477 2009-04-14  Nick Clifton  <nickc@redhat.com>
20478
20479         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
20480         comparisons with small integers will always produce a short
20481         branch.
20482
20483 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
20484
20485         Merge:
20486         2008-12-19  Diego Novillo  <dnovillo@google.com>
20487
20488         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
20489
20490 2009-04-14  Richard Guenther  <rguenther@suse.de>
20491
20492         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
20493         verification.
20494         (verify_gimple_assign_binary): Likewise.  Handle shifts and
20495         rotates correctly.
20496         (verify_gimple_phi): Print the mismatched argument position.
20497         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
20498         Fix types.
20499         (vect_update_init_of_dr): Likewise.
20500         * matrix-reorg.c (transform_access_sites): Do what the
20501         comment suggests.
20502         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
20503
20504 2009-04-13  Michael Eager  <eager@eagercon.com>
20505
20506         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
20507         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
20508         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
20509         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
20510         remove duplicate config
20511
20512 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
20513
20514         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
20515         file_name:line_number type locator of the call site.
20516
20517 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
20518
20519         * genautomata.c: Put blank after comma.
20520         (automaton_decls): New.
20521         (struct unit_usage): Add comments to member next.
20522         (store_alt_unit_usage): Keep the list ordered.
20523         (unit_present_on_list_p, equal_alternatives_p): New.
20524         (check_regexp_units_distribution): Check units distribution
20525         correctness correctly.
20526         (main): Don't write automata if error is found.  Return correct
20527         exit code.
20528
20529         * config/m68k/cf.md (cfv4_ds): Remove.
20530         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
20531         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
20532
20533         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
20534         power4-load-ext, power4-store, power4-store-update,
20535         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
20536         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
20537         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
20538         power4-sqrt, power4-isync): Modify reservation to make correct
20539         unit distribution to automata.
20540
20541         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
20542         power5-store-update, power5-two, power5-three, power5-lmul,
20543         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
20544
20545 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
20546
20547         * except.c (pass_set_nothrow_function_flags): Set name and add
20548         TODO_dump_func.
20549         (set_nothrow_function_flags): Mention in the dump file when
20550         changing a function to nothrow.
20551
20552 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
20553
20554         PR/39066
20555         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
20556         instead of unsigned long.
20557
20558 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20559
20560         * config/arm/arm.c (return_used_this_function): Remove.
20561         (arm_output_function_prologue): Remove use of
20562         return_used_this_function.
20563         (output_return_instruction): Replace use of
20564         return_used_this_function
20565         by cfun->machine->return_used_this_function.
20566         (arm_output_epilogue): Likewise.
20567         (arm_output_function_epilogue): Likewise.
20568         (thumb_unexpanded_epilogue): Likewise.
20569         * config/arm/arm.h (struct machine_function):
20570         New member return_used_this_function.
20571
20572 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
20573
20574         * doc/install.texi: Correct description of default directory for
20575         --with-gxx-include-dir.
20576
20577 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
20578
20579         * fold-const.c (build_range_check): Properly deal with enumeral and
20580         boolean base types.
20581
20582 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
20583
20584         * doc/invoke.texi (max_gcse_passes): Remove documentation.
20585         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
20586         * params.h (MAX_GCSE_PASSES): Remove.
20587         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
20588         in sequence.  Remove ability to run multiple passes.
20589         (bypass_jumps): Report run as third CPROP pass.
20590
20591 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
20592
20593         PR middle-end/39651
20594         * except.c (can_throw_external): Look at each insn in a SEQUENCE
20595         when deciding whether the whole SEQUENCE can throw.
20596
20597 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
20598
20599         PR target/39740
20600         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
20601         offseted label references.
20602
20603 2009-04-11  Jan Hubicka  <jh@suse.cz>
20604
20605         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
20606
20607 2009-04-11  Richard Guenther  <rguenther@suse.de>
20608
20609         PR middle-end/39732
20610         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
20611         return variables as TREE_ADDRESSABLE.
20612
20613 2009-04-11  Richard Guenther  <rguenther@suse.de>
20614
20615         PR tree-optimization/39713
20616         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
20617         reference trees have SSA_NAME operands.
20618
20619 2009-04-11  Richard Guenther  <rguenther@suse.de>
20620
20621         PR c/39712
20622         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
20623         address expressions.
20624
20625 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
20626
20627         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
20628         match changes in Cygwin 1.7
20629         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
20630         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
20631
20632 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
20633
20634         PR tree-optimization/39701
20635         * doc/invoke.texi (Optimization Options): Document change in
20636         meaning and initialization of -fdelete-null-pointer-checks.
20637
20638 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
20639
20640         PR middle-end/39701
20641         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
20642
20643         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
20644         here.
20645
20646         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
20647
20648 2009-04-10  Chao-ying Fu  <fu@mips.com>
20649
20650         * doc/tm.texi (Instruction Output): Document
20651         TARGET_ASM_FINAL_POSTSCAN_INSN.
20652         * target.h (final_postscan_insn): New field in asm_out.
20653         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
20654         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
20655         * final.c (final_scan_insn): Call
20656         targetm.asm_out.final_postscan_insn after outputting
20657         an asm macro and a normal instruction.
20658
20659         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
20660         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
20661         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
20662         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
20663         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
20664
20665 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
20666
20667         PR middle-end/39701
20668         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
20669         variables as non-NULL even with -fdelete-null-pointer-checks.
20670
20671 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
20672
20673         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
20674
20675 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
20676
20677         PR target/39678
20678         * config/i386/i386.c (classify_argument): Handle SCmode with
20679         (bit_offset % 64) != 0.
20680
20681 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
20682
20683         * doc/invoke.texi (Optimize Options): Add cross-reference to
20684         -Q --help=optimizers examples.
20685
20686 2009-04-10  Ben Elliston  <bje@au.ibm.com>
20687
20688         PR target/36800
20689         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
20690         regalign for the reg == fpr and TDmode case.
20691
20692 2009-04-09  David Ayers  <ayers@fsfe.org>
20693
20694         PR objc/29200
20695         * objc/objc-act.c (warn_with_method): Remove helper function.
20696         (check_duplicates): Call warning and inform directly.
20697         (really_start_method): Likewise.
20698
20699 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
20700
20701         * expmed.c (expand_divmod): Always use a comparison for a division
20702         by a large unsigned integer.
20703
20704         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
20705         for things others than variables or functions as nonzero.
20706
20707 2009-04-09  Nick Clifton  <nickc@redhat.com>
20708
20709         * unwind-compat.c: Change copyright header to refer to version
20710         3 of the GNU General Public License with version 3.1 of the
20711         GCC Runtime Library Exception and to point readers at the
20712         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
20713         * config/alpha/crtfastmath.c: Likewise.
20714         * config/alpha/linux-unwind.h: Likewise.
20715         * config/alpha/qrnnd.asm: Likewise.
20716         * config/alpha/vms-crt0-64.c: Likewise.
20717         * config/alpha/vms-crt0.c: Likewise.
20718         * config/alpha/vms-dwarf2.asm: Likewise.
20719         * config/alpha/vms-dwarf2eh.asm: Likewise.
20720         * config/alpha/vms-psxcrt0-64.c: Likewise.
20721         * config/alpha/vms-psxcrt0.c: Likewise.
20722         * config/alpha/vms_tramp.asm: Likewise.
20723         * config/arc/initfini.c: Likewise.
20724         * config/arc/lib1funcs.asm: Likewise.
20725         * config/arm/bpabi-v6m.S: Likewise.
20726         * config/arm/bpabi.S: Likewise.
20727         * config/arm/bpabi.c: Likewise.
20728         * config/arm/crti.asm: Likewise.
20729         * config/arm/crtn.asm: Likewise.
20730         * config/arm/ieee754-df.S: Likewise.
20731         * config/arm/ieee754-sf.S: Likewise.
20732         * config/arm/lib1funcs.asm: Likewise.
20733         * config/arm/libunwind.S: Likewise.
20734         * config/arm/linux-atomic.c: Likewise.
20735         * config/arm/mmintrin.h: Likewise.
20736         * config/arm/pr-support.c: Likewise.
20737         * config/arm/unaligned-funcs.c: Likewise.
20738         * config/arm/unwind-arm.c: Likewise.
20739         * config/arm/unwind-arm.h: Likewise.
20740         * config/avr/libgcc.S: Likewise.
20741         * config/bfin/crti.s: Likewise.
20742         * config/bfin/crtlibid.s: Likewise.
20743         * config/bfin/crtn.s: Likewise.
20744         * config/bfin/lib1funcs.asm: Likewise.
20745         * config/bfin/linux-unwind.h: Likewise.
20746         * config/cris/arit.c: Likewise.
20747         * config/cris/cris_abi_symbol.c: Likewise.
20748         * config/darwin-64.c: Likewise.
20749         * config/darwin-crt2.c: Likewise.
20750         * config/darwin-crt3.c: Likewise.
20751         * config/darwin.h: Likewise.
20752         * config/dbxelf.h: Likewise.
20753         * config/dfp-bit.c: Likewise.
20754         * config/dfp-bit.h: Likewise.
20755         * config/elfos.h: Likewise.
20756         * config/fixed-bit.c: Likewise.
20757         * config/fixed-bit.h: Likewise.
20758         * config/fp-bit.c: Likewise.
20759         * config/fp-bit.h: Likewise.
20760         * config/fr30/crti.asm: Likewise.
20761         * config/fr30/crtn.asm: Likewise.
20762         * config/fr30/lib1funcs.asm: Likewise.
20763         * config/freebsd-spec.h: Likewise.
20764         * config/frv/cmovd.c: Likewise.
20765         * config/frv/cmovh.c: Likewise.
20766         * config/frv/cmovw.c: Likewise.
20767         * config/frv/frvbegin.c: Likewise.
20768         * config/frv/frvend.c: Likewise.
20769         * config/frv/lib1funcs.asm: Likewise.
20770         * config/glibc-stdint.h: Likewise.
20771         * config/h8300/clzhi2.c: Likewise.
20772         * config/h8300/crti.asm: Likewise.
20773         * config/h8300/crtn.asm: Likewise.
20774         * config/h8300/ctzhi2.c: Likewise.
20775         * config/h8300/fixunssfsi.c: Likewise.
20776         * config/h8300/lib1funcs.asm: Likewise.
20777         * config/h8300/parityhi2.c: Likewise.
20778         * config/h8300/popcounthi2.c: Likewise.
20779         * config/i386/ammintrin.h: Likewise.
20780         * config/i386/att.h: Likewise.
20781         * config/i386/avxintrin.h: Likewise.
20782         * config/i386/biarch64.h: Likewise.
20783         * config/i386/bmmintrin.h: Likewise.
20784         * config/i386/cpuid.h: Likewise.
20785         * config/i386/cross-stdarg.h: Likewise.
20786         * config/i386/crtfastmath.c: Likewise.
20787         * config/i386/crtprec.c: Likewise.
20788         * config/i386/cygming-crtbegin.c: Likewise.
20789         * config/i386/cygming-crtend.c: Likewise.
20790         * config/i386/cygwin.asm: Likewise.
20791         * config/i386/emmintrin.h: Likewise.
20792         * config/i386/gmm_malloc.h: Likewise.
20793         * config/i386/gthr-win32.c: Likewise.
20794         * config/i386/i386.h: Likewise.
20795         * config/i386/immintrin.h: Likewise.
20796         * config/i386/linux-unwind.h: Likewise.
20797         * config/i386/linux64.h: Likewise.
20798         * config/i386/mm3dnow.h: Likewise.
20799         * config/i386/mmintrin-common.h: Likewise.
20800         * config/i386/mmintrin.h: Likewise.
20801         * config/i386/nmmintrin.h: Likewise.
20802         * config/i386/pmm_malloc.h: Likewise.
20803         * config/i386/pmmintrin.h: Likewise.
20804         * config/i386/smmintrin.h: Likewise.
20805         * config/i386/sol2-c1.asm: Likewise.
20806         * config/i386/sol2-ci.asm: Likewise.
20807         * config/i386/sol2-cn.asm: Likewise.
20808         * config/i386/sol2-gc1.asm: Likewise.
20809         * config/i386/tmmintrin.h: Likewise.
20810         * config/i386/unix.h: Likewise.
20811         * config/i386/w32-unwind.h: Likewise.
20812         * config/i386/wmmintrin.h: Likewise.
20813         * config/i386/x86-64.h: Likewise.
20814         * config/i386/x86intrin.h: Likewise.
20815         * config/i386/xmmintrin.h: Likewise.
20816         * config/ia64/crtbegin.asm: Likewise.
20817         * config/ia64/crtend.asm: Likewise.
20818         * config/ia64/crtfastmath.c: Likewise.
20819         * config/ia64/crti.asm: Likewise.
20820         * config/ia64/crtn.asm: Likewise.
20821         * config/ia64/fde-glibc.c: Likewise.
20822         * config/ia64/lib1funcs.asm: Likewise.
20823         * config/ia64/linux-unwind.h: Likewise.
20824         * config/ia64/quadlib.c: Likewise.
20825         * config/ia64/unwind-ia64.c: Likewise.
20826         * config/linux.h: Likewise.
20827         * config/m32c/m32c-lib1.S: Likewise.
20828         * config/m32c/m32c-lib2-trapv.c: Likewise.
20829         * config/m32c/m32c-lib2.c: Likewise.
20830         * config/m32r/initfini.c: Likewise.
20831         * config/m68hc11/larith.asm: Likewise.
20832         * config/m68hc11/m68hc11-crt0.S: Likewise.
20833         * config/m68k/cf.md: Likewise.
20834         * config/m68k/crti.s: Likewise.
20835         * config/m68k/crtn.s: Likewise.
20836         * config/m68k/lb1sf68.asm: Likewise.
20837         * config/m68k/linux-unwind.h: Likewise.
20838         * config/mcore/crti.asm: Likewise.
20839         * config/mcore/crtn.asm: Likewise.
20840         * config/mcore/lib1.asm: Likewise.
20841         * config/mips/linux-unwind.h: Likewise.
20842         * config/mips/loongson.h: Likewise.
20843         * config/mips/mips16.S: Likewise.
20844         * config/mmix/crti.asm: Likewise.
20845         * config/mmix/crtn.asm: Likewise.
20846         * config/pa/fptr.c: Likewise.
20847         * config/pa/hpux-unwind.h: Likewise.
20848         * config/pa/lib2funcs.asm: Likewise.
20849         * config/pa/linux-atomic.c: Likewise.
20850         * config/pa/linux-unwind.h: Likewise.
20851         * config/pa/milli64.S: Likewise.
20852         * config/pa/quadlib.c: Likewise.
20853         * config/pa/stublib.c: Likewise.
20854         * config/picochip/libgccExtras/adddi3.asm: Likewise.
20855         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
20856         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
20857         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
20858         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
20859         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
20860         * config/picochip/libgccExtras/divmod15.asm: Likewise.
20861         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
20862         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
20863         * config/picochip/libgccExtras/longjmp.asm: Likewise.
20864         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
20865         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
20866         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
20867         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
20868         * config/picochip/libgccExtras/setjmp.asm: Likewise.
20869         * config/picochip/libgccExtras/subdi3.asm: Likewise.
20870         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
20871         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
20872         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
20873         * config/rs6000/750cl.h: Likewise.
20874         * config/rs6000/altivec.h: Likewise.
20875         * config/rs6000/biarch64.h: Likewise.
20876         * config/rs6000/crtresfpr.asm: Likewise.
20877         * config/rs6000/crtresgpr.asm: Likewise.
20878         * config/rs6000/crtresxfpr.asm: Likewise.
20879         * config/rs6000/crtresxgpr.asm: Likewise.
20880         * config/rs6000/crtsavfpr.asm: Likewise.
20881         * config/rs6000/crtsavgpr.asm: Likewise.
20882         * config/rs6000/darwin-asm.h: Likewise.
20883         * config/rs6000/darwin-fallback.c: Likewise.
20884         * config/rs6000/darwin-fpsave.asm: Likewise.
20885         * config/rs6000/darwin-ldouble.c: Likewise.
20886         * config/rs6000/darwin-tramp.asm: Likewise.
20887         * config/rs6000/darwin-unwind.h: Likewise.
20888         * config/rs6000/darwin-vecsave.asm: Likewise.
20889         * config/rs6000/darwin-world.asm: Likewise.
20890         * config/rs6000/e500crtres32gpr.asm: Likewise.
20891         * config/rs6000/e500crtres64gpr.asm: Likewise.
20892         * config/rs6000/e500crtres64gprctr.asm: Likewise.
20893         * config/rs6000/e500crtrest32gpr.asm: Likewise.
20894         * config/rs6000/e500crtrest64gpr.asm: Likewise.
20895         * config/rs6000/e500crtresx32gpr.asm: Likewise.
20896         * config/rs6000/e500crtresx64gpr.asm: Likewise.
20897         * config/rs6000/e500crtsav32gpr.asm: Likewise.
20898         * config/rs6000/e500crtsav64gpr.asm: Likewise.
20899         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
20900         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
20901         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
20902         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
20903         * config/rs6000/eabi-ci.asm: Likewise.
20904         * config/rs6000/eabi-cn.asm: Likewise.
20905         * config/rs6000/eabi.asm: Likewise.
20906         * config/rs6000/linux-unwind.h: Likewise.
20907         * config/rs6000/linux64.h: Likewise.
20908         * config/rs6000/paired.h: Likewise.
20909         * config/rs6000/paired.md: Likewise.
20910         * config/rs6000/ppc64-fp.c: Likewise.
20911         * config/rs6000/ppu_intrinsics.h: Likewise.
20912         * config/rs6000/rs6000.h: Likewise.
20913         * config/rs6000/si2vmx.h: Likewise.
20914         * config/rs6000/sol-ci.asm: Likewise.
20915         * config/rs6000/sol-cn.asm: Likewise.
20916         * config/rs6000/spe.h: Likewise.
20917         * config/rs6000/spu2vmx.h: Likewise.
20918         * config/rs6000/sysv4.h: Likewise.
20919         * config/rs6000/tramp.asm: Likewise.
20920         * config/rs6000/vec_types.h: Likewise.
20921         * config/s390/linux-unwind.h: Likewise.
20922         * config/s390/tpf-unwind.h: Likewise.
20923         * config/score/crti.asm: Likewise.
20924         * config/score/crtn.asm: Likewise.
20925         * config/sh/crt1.asm: Likewise.
20926         * config/sh/crti.asm: Likewise.
20927         * config/sh/crtn.asm: Likewise.
20928         * config/sh/divtab-sh4-300.c: Likewise.
20929         * config/sh/divtab-sh4.c: Likewise.
20930         * config/sh/divtab.c: Likewise.
20931         * config/sh/lib1funcs-4-300.asm: Likewise.
20932         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
20933         * config/sh/lib1funcs.asm: Likewise.
20934         * config/sh/lib1funcs.h: Likewise.
20935         * config/sh/linux-atomic.asm: Likewise.
20936         * config/sh/linux-unwind.h: Likewise.
20937         * config/sh/shmedia.h: Likewise.
20938         * config/sh/sshmedia.h: Likewise.
20939         * config/sh/ushmedia.h: Likewise.
20940         * config/sparc/crtfastmath.c: Likewise.
20941         * config/sparc/linux-unwind.h: Likewise.
20942         * config/sparc/sol2-c1.asm: Likewise.
20943         * config/sparc/sol2-ci.asm: Likewise.
20944         * config/sparc/sol2-cn.asm: Likewise.
20945         * config/spu/divmodti4.c: Likewise.
20946         * config/spu/divv2df3.c: Likewise.
20947         * config/spu/float_disf.c: Likewise.
20948         * config/spu/float_unsdidf.c: Likewise.
20949         * config/spu/float_unsdisf.c: Likewise.
20950         * config/spu/float_unssidf.c: Likewise.
20951         * config/spu/mfc_multi_tag_release.c: Likewise.
20952         * config/spu/mfc_multi_tag_reserve.c: Likewise.
20953         * config/spu/mfc_tag_release.c: Likewise.
20954         * config/spu/mfc_tag_reserve.c: Likewise.
20955         * config/spu/mfc_tag_table.c: Likewise.
20956         * config/spu/multi3.c: Likewise.
20957         * config/spu/spu_internals.h: Likewise.
20958         * config/spu/spu_intrinsics.h: Likewise.
20959         * config/spu/spu_mfcio.h: Likewise.
20960         * config/spu/vec_types.h: Likewise.
20961         * config/spu/vmx2spu.h: Likewise.
20962         * config/stormy16/stormy16-lib2.c: Likewise.
20963         * config/svr4.h: Likewise.
20964         * config/sync.c: Likewise.
20965         * config/v850/lib1funcs.asm: Likewise.
20966         * config/vxlib-tls.c: Likewise.
20967         * config/vxlib.c: Likewise.
20968         * config/vxworks-dummy.h: Likewise.
20969         * config/xtensa/crti.asm: Likewise.
20970         * config/xtensa/crtn.asm: Likewise.
20971         * config/xtensa/ieee754-df.S: Likewise.
20972         * config/xtensa/ieee754-sf.S: Likewise.
20973         * config/xtensa/lib1funcs.asm: Likewise.
20974         * config/xtensa/lib2funcs.S: Likewise.
20975         * config/xtensa/linux-unwind.h: Likewise.
20976         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
20977         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
20978         * coretypes.h: Likewise.
20979         * crtstuff.c: Likewise.
20980         * defaults.h: Likewise.
20981         * dwarf2.h: Likewise.
20982         * emutls.c: Likewise.
20983         * gbl-ctors.h: Likewise.
20984         * gcov-io.h: Likewise.
20985         * ginclude/float.h: Likewise.
20986         * ginclude/iso646.h: Likewise.
20987         * ginclude/stdarg.h: Likewise.
20988         * ginclude/stdbool.h: Likewise.
20989         * ginclude/stddef.h: Likewise.
20990         * ginclude/stdfix.h: Likewise.
20991         * ginclude/stdint-gcc.h: Likewise.
20992         * ginclude/tgmath.h: Likewise.
20993         * gthr-aix.h: Likewise.
20994         * gthr-dce.h: Likewise.
20995         * gthr-gnat.c: Likewise.
20996         * gthr-gnat.h: Likewise.
20997         * gthr-lynx.h: Likewise.
20998         * gthr-mipssde.h: Likewise.
20999         * gthr-nks.h: Likewise.
21000         * gthr-posix.c: Likewise.
21001         * gthr-posix.h: Likewise.
21002         * gthr-posix95.h: Likewise.
21003         * gthr-rtems.h: Likewise.
21004         * gthr-single.h: Likewise.
21005         * gthr-solaris.h: Likewise.
21006         * gthr-tpf.h: Likewise.
21007         * gthr-vxworks.h: Likewise.
21008         * gthr-win32.h: Likewise.
21009         * gthr.h: Likewise.
21010         * libgcc2.c: Likewise.
21011         * libgcc2.h: Likewise.
21012         * libgcov.c: Likewise.
21013         * tsystem.h: Likewise.
21014         * typeclass.h: Likewise.
21015         * unwind-c.c: Likewise.
21016         * unwind-compat.h: Likewise.
21017         * unwind-dw2-fde-compat.c: Likewise.
21018         * unwind-dw2-fde-darwin.c: Likewise.
21019         * unwind-dw2-fde-glibc.c: Likewise.
21020         * unwind-dw2-fde.c: Likewise.
21021         * unwind-dw2-fde.h: Likewise.
21022         * unwind-dw2.c: Likewise.
21023         * unwind-dw2.h: Likewise.
21024         * unwind-generic.h: Likewise.
21025         * unwind-pe.h: Likewise.
21026         * unwind-sjlj.c: Likewise.
21027         * unwind.inc: Likewise.
21028         * config/arm/neon-gen.ml: Change generated copyright header to
21029         refer to version 3 of the GNU General Public License with
21030         version 3.1 of the GCC Runtime Library Exception and to point
21031         readers at the COPYING3 and COPYING3.RUNTIME files and the
21032         FSF's license web page.
21033         * config/arm/arm_neon.h: Regenerate.
21034
21035 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
21036
21037         * config/cris/cris.md: Change copyright header to refer to version
21038         3 of the GNU General Public License.
21039         * doc/install.texi2html: Change copyright header to refer to version
21040         3 of the GNU General Public License and to point readers at the
21041         COPYING3 file and the FSF's license web page.
21042         * config/vax/linux.h: Likewise.
21043
21044 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
21045
21046         * config/i386/i386.md (cmpcc): New.
21047         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
21048         (sync_compare_and_swap_cc*): Delete.
21049
21050         * config/s390/s390.c (s390_compare_emitted): Remove.
21051         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
21052         s390_compare_emitted used to be handled.  Assert that modes match.
21053         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
21054         refer to sync_compare_and_swap_ccsi.
21055         * config/s390/s390.h (s390_compare_emitted): Remove.
21056         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
21057         instead of s390_compare_emitted.
21058         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
21059         instead of s390_compare_emitted.
21060         * config/s390/s390.md (cmpcc): New.
21061         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
21062         CC_REGNUM, do not pretend it's set.
21063         (sync_compare_and_swap_cc*): Delete.
21064         * config/s390/predicates.md (cc_reg_operand): New.
21065
21066         * expr.c (sync_compare_and_swap_cc): Delete.
21067         * optabs.h (sync_compare_and_swap_cc): Delete.
21068         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
21069         is being used with can_compare_p.
21070         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
21071         (find_cc_set): New.
21072         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
21073         look for a MODE_CC set instead.  Use emit_store_flag.
21074         (expand_compare_and_swap_loop): Likewise, with some additional
21075         complication to avoid a force_reg when useless.  Use
21076         emit_cmp_and_jump_insns.
21077         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
21078         * doc/md.texi (sync_compare_and_swap_cc): Merge with
21079         sync_compare_and_swap documentation.
21080
21081 2009-04-09  Jan Hubicka  <jh@suse.cz>
21082
21083         * except.c (find_prev_try): Break out from ....
21084         (duplicate_eh_regions): ... here; properly update prev_try pointers
21085         when duplication part of tree.
21086         (dump_eh_tree): Improve dumping.
21087         (verify_eh_region): New.
21088         (verify_eh_tree): Use it.
21089
21090 2009-04-06  Richard Guenther  <rguenther@suse.de>
21091
21092         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
21093         &ARRAY addresses by adjusting their types and prepending
21094         a conversion.
21095         * tree-cfg.c (verify_gimple_assign_single): Verify that
21096         addresses are correct.
21097
21098 2009-04-09  Richard Guenther  <rguenther@suse.de>
21099
21100         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
21101         indices into an array reference if possible.
21102         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
21103         Fold POINTER_PLUS_EXPR statements with invariant address.
21104
21105 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
21106
21107         PR target/39634
21108         * config.gcc (powerpc64-*-linux*): Always build biarch.
21109
21110 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
21111
21112         PR c/39613
21113         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
21114         it and pedwarn if this results in an INTEGER_CST.
21115
21116 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21117
21118         * doc/install.texi: Update minimum GMP version.  Remove obsolete
21119         text in MPFR section.
21120
21121 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
21122
21123         * dwarf2out.c (class_scope_p): New static inline.
21124         (class_or_namespace_scope_p): Use it.
21125         (gen_variable_die): Use DW_TAG_member tag for static data member
21126         declarations instead of DW_TAG_variable.
21127
21128         PR middle-end/39573
21129         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
21130         variables.
21131
21132 2009-04-08  Richard Guenther  <rguenther@suse.de>
21133
21134         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
21135         valueize random data.
21136
21137 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
21138
21139         * config.gcc (aix tm_file):  Add aix-stdint.h.
21140         (aix tm clause use_gcc_stdint):  Set to wrap.
21141         * config/rs6000/aix-stdint.h:  New file.
21142
21143 2009-04-08  Richard Guenther  <rguenther@suse.de>
21144
21145         PR middle-end/36291
21146         * tree-dfa.c (add_referenced_var): Do not recurse into
21147         global initializers.
21148         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
21149         exposed variables.
21150         (fold_const_aggregate_ref): Likewise.
21151
21152 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
21153
21154         * recog.c (ordered_comparison_operator): New.
21155         * gensupport.c (std_preds): Add it.
21156         * doc/md.texi (Machine-Independent Predicates): Document it.
21157
21158 2009-04-08  Jan Hubicka  <jh@suse.cz>
21159
21160         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
21161         * function.h (rtl_eh): Remove exception_handler_label_map.
21162         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
21163         remove_exception_handler_label, for_each_eh_label_1): Remove.
21164         (rtl_remove_unreachable_regions): Remove.
21165         (convert_from_eh_region_ranges): Do not remove unreachable regions.
21166         (find_exception_handler_labels): Don't build the hashtable.
21167         (maybe_remove_eh_handler): Remove.
21168         (for_each_eh_label): Rewrite to walk the tree.
21169         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
21170         * except.h (maybe_remove_eh_handler): Remove.
21171         * passes.c (init_optimization_passes): Schedule second EH cleanup
21172         before out-of-ssa.
21173         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
21174         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
21175
21176 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
21177
21178         * genoutput.c (validate_optab_operands): New.
21179         (gen_insn, gen_expand): Call it.
21180
21181         * genflags.c (gen_insn): Detect misused iterators.
21182         (main): Pass line_no to gen_insn, exit with status 1 on error.
21183
21184         * genextract.c (line_no): Make global.
21185         (VEC_safe_set_locstr): Change assertion to error message.
21186         (main): Exit with status 1 on error.
21187
21188 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
21189
21190         PR c/39614
21191         PR c/39673
21192         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
21193         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
21194         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
21195         * c-convert.c (convert): Do not call fold on results of conversion
21196         functions when the result is a C_MAYBE_CONST_EXPR.
21197         * c-parser.c (c_parser_postfix_expression): Do not fold condition
21198         of __builtin_choose_expr.
21199         * c-typeck.c (remove_c_maybe_const_expr): New.
21200         (build_unary_op, build_conditional_expr, build_compound_expr,
21201         build_binary_op, c_objc_common_truthvalue_conversion): Call
21202         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
21203         integer operands.
21204
21205 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
21206
21207         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
21208         CODE to produce a new one. Add a prototype to use fold_convert_const
21209
21210 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
21211
21212         PR bootstrap/39660
21213         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
21214         mix declarations and code.
21215
21216 2009-04-08  Ben Elliston  <bje@au.ibm.com>
21217
21218         * gcc.c: Replace `CC' with `GCC' throughout.
21219
21220 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
21221
21222         * doc/invoke.texi: Document Atom support.
21223
21224 2009-04-07  Jason Merrill  <jason@redhat.com>
21225
21226         PR c++/25185
21227         * c-common.h, c-common.c: Add flag_pretty_templates.
21228         * c-opts.c (c_common_handle_option): Set it.
21229         * c.opt: Add -fno-pretty-templates.
21230         * doc/invoke.texi (C++ Dialect Options): Likewise.
21231
21232 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
21233
21234         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
21235         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
21236         (ia64_expand_builtin): Likewise.
21237
21238 2009-04-07  Martin Jambor  <mjambor@suse.cz>
21239
21240         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
21241         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
21242         ADDR_EXPRS are include too.
21243
21244 2009-04-07  Richard Guenther  <rguenther@suse.de>
21245
21246         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
21247         decls are only used if passes as parameters or if they are
21248         local statics and the call is not to a builtin.
21249         (call_may_clobber_ref_p_1): Likewise.
21250
21251 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
21252
21253         * expr.c (do_store_flag): Remove last argument.  Simplify code
21254         to avoid duplication of tests already done by can_compare_p.
21255         (expand_expr_real_1): Adjust caller.
21256
21257 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
21258
21259         * optabs.c (can_compare_p): Test the predicate of a
21260         cbranch and cstore pattern.
21261
21262 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
21263
21264         * expr.c (convert_move): Use emit_store_flag instead of
21265         "emulating" it.
21266
21267 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
21268
21269         * config/i386/i386.c (ix86_compare_emitted): Remove.
21270         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
21271         ix86_compare_op0 like ix86_compare_emitted used to be handled.
21272         * config/i386/i386.h (ix86_compare_emitted): Remove.
21273         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
21274         instead of ix86_compare_emitted.
21275         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
21276
21277 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
21278
21279         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
21280         Add t-sysroot-suffix to tmake_file.
21281         * config/print-sysroot-suffix.sh: New file.
21282         * config/t-sysroot-suffix: New file.
21283
21284 2009-04-07  Ben Elliston  <bje@au.ibm.com>
21285
21286         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
21287         as the latter produces a warning when the target does not support
21288         infinity.
21289
21290 2009-04-07  Ben Elliston  <bje@au.ibm.com>
21291
21292         * dfp.c: Replace type punning assignments with memcpy throughout.
21293         * Makefile.in (dfp.o-warn): Remove.
21294
21295 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
21296
21297         PR target/39634
21298         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
21299         Include soft-fp/t-softfp after rs6000/t-linux64.
21300
21301 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
21302
21303         * stor-layout.c (set_sizetype): Use the full precision of their
21304         machine mode for bitsize types.
21305
21306 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
21307
21308         * config/i386/i386.md: Revert 2 accidental checkins.
21309
21310 2009-04-06  Joey Ye  <joey.ye@intel.com>
21311             Xuepeng Guo  <xuepeng.guo@intel.com>
21312             H.J. Lu  <hongjiu.lu@intel.com>
21313
21314         Atom pipeline model, tuning and insn selection.
21315         * config.gcc (atom): Add atom config options and target.
21316
21317         * config/i386/atom.md: New.
21318
21319         * config/i386/i386.c (atom_cost): New cost.
21320         (m_ATOM): New macro flag.
21321         (initial_ix86_tune_features): Set m_ATOM.
21322         (x86_accumulate_outgoing_args): Likewise.
21323         (x86_arch_always_fancy_math_387): Likewise.
21324         (processor_target): Add Atom cost.
21325         (cpu_names): Add Atom cpu name.
21326         (override_options): Set Atom ISA.
21327         (ix86_issue_rate): New case PROCESSOR_ATOM.
21328         (ix86_adjust_cost): Likewise.
21329
21330         * config/i386/i386.h (TARGET_ATOM): New target macro.
21331         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
21332         (TARGET_OPT_AGU): New target option.
21333         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
21334         (processor_type): Add PROCESSOR_ATOM.
21335
21336         * config/i386/i386.md (cpu): Add new value "atom".
21337         (use_carry, movu): New attr.
21338         (atom.md): Include atom.md.
21339         (adddi3_carry_rex64): Set attr "use_carry".
21340         (addqi3_carry): Likewise.
21341         (addhi3_carry): Likewise.
21342         (addsi3_carry): Likewise.
21343         (*addsi3_carry_zext): Likewise.
21344         (subdi3_carry_rex64): Likewise.
21345         (subqi3_carry): Likewise.
21346         (subhi3_carry): Likewise.
21347         (subsi3_carry): Likewise.
21348         (x86_movdicc_0_m1_rex64): Likewise.
21349         (*x86_movdicc_0_m1_se): Likewise.
21350         (x86_movsicc_0_m1): Likewise.
21351         (*x86_movsicc_0_m1_se): Likewise.
21352         (*adddi_1_rex64): Emit add insn as much as possible.
21353         (*addsi_1): Likewise.
21354         (return_internal): Set atom_unit.
21355         (return_internal_long): Likewise.
21356         (return_pop_internal): Likewise.
21357         (*rcpsf2_sse): Set atom_sse_attr attr.
21358         (*qrt<mode>2_sse): Likewise.
21359         (*prefetch_sse): Likewise.
21360
21361         * config/i386/i386-c.c (ix86_target_macros_internal): New case
21362         PROCESSOR_ATOM.
21363         (ix86_target_macros_internal): Likewise.
21364
21365         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
21366         (*prefetch_sse_rex): Likewise.
21367         (sse_rcpv4sf2): Likewise.
21368         (sse_vmrcpv4sf2): Likewise.
21369         (sse_sqrtv4sf2): Likewise.
21370         (<sse>_vmsqrt<mode>2): Likewise.
21371         (sse_ldmxcsr): Likewise.
21372         (sse_stmxcsr): Likewise.
21373         (*sse_sfence): Likewise.
21374         (sse2_clflush): Likewise.
21375         (*sse2_mfence): Likewise.
21376         (*sse2_lfence): Likewise.
21377         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
21378         (<sse>_movup<ssemodesuffixf2c>): Likewise.
21379         (avx_movdqu<avxmodesuffix>): Likewise.
21380         (avx_lddqu<avxmodesuffix>): Likewise.
21381         (sse2_movntv2di): Change attr "type" to "ssemov".
21382         (sse2_movntsi): Likewise.
21383         (rsqrtv8sf2): Change attr "type" to "sseadd".
21384         (sse3_addsubv2df3): Set attr "atom_unit".
21385         (sse3_h<plusminus_insn>v4sf3): Likewise.
21386         (*sse2_pmaddwd): Likewise.
21387         (*vec_extractv2di_1_rex64): Likewise.
21388         (*vec_extractv2di_1_avx): Likewise.
21389         (sse2_psadbw): Likewise.
21390         (ssse3_phaddwv8hi3): Likewise.
21391         (ssse3_phaddwv4hi3): Likewise.
21392         (ssse3_phadddv4si3): Likewise.
21393         (ssse3_phadddv2si3): Likewise.
21394         (ssse3_phaddswv8hi3): Likewise.
21395         (ssse3_phaddswv4hi3): Likewise.
21396         (ssse3_phsubwv8hi3): Likewise.
21397         (ssse3_phsubwv4hi3): Likewise.
21398         (ssse3_phsubdv4si3): Likewise.
21399         (ssse3_phsubdv2si3): Likewise.
21400         (ssse3_phsubswv8hi3): Likewise.
21401         (ssse3_phsubswv4hi3): Likewise.
21402         (ssse3_pmaddubsw128): Likewise.
21403         (sse3_pmaddubsw: Likewise.
21404         (ssse3_palignrti): Likewise.
21405         (ssse3_palignrdi): Likewise.
21406
21407 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
21408
21409         * doc/install.texi (Specific): Fix two cross-references to MinGW.
21410
21411 2009-04-06  Richard Guenther  <rguenther@suse.de>
21412
21413         PR tree-optimization/28868
21414         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
21415         of which PHI results we inserted.
21416         (insert_into_preds_of_block): Record inserted PHIs.
21417         (eliminate): Eliminate redundant PHI nodes.
21418         (init_pre): Init inserted_phi_names.
21419
21420 2009-04-06  Richard Guenther  <rguenther@suse.de>
21421
21422         PR tree-optimization/39643
21423         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
21424         IMAGPART_EXPRs of complex constants.
21425         (execute_fold_all_builtins): If we folded a call queue
21426         TODO_update_address_taken.
21427
21428 2009-04-06  Jan Hubicka  <jh@suse.cz>
21429
21430         PR middle-end/39659
21431         * except.c (remove_unreachable_regions): Propagate may_contain_throw
21432         flag.
21433
21434 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
21435
21436         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
21437         delay slot.
21438         (ic_invalidate_array): Likewise.
21439
21440 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
21441
21442         * calls.c (emit_library_call_value_1): Fix a problem with parameter
21443         alignment for library calls.
21444
21445 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
21446
21447         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
21448         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
21449         * config/i386/mingw-stdint.h:  New file.
21450
21451 2009-04-05  Richard Guenther  <rguenther@suse.de>
21452
21453         PR tree-optimization/39648
21454         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
21455         our &A vs. &A[0] IL deficiencies.
21456
21457 2009-04-04  Jan Hubicka  <jh@suse.cz>
21458
21459         * except.c (sjlj_find_directly_reachable_regions): Be ready for
21460         removed toplevel regions.
21461         (sjlj_mark_call_sites): Likewise.
21462
21463 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
21464
21465         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
21466         (cygwin tm clause use_gcc_stdint):  Set to wrap.
21467         * config/i386/cygwin-stdint.h:  New file.
21468
21469 2009-04-04  Richard Guenther  <rguenther@suse.de>
21470
21471         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
21472         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
21473         single-argument PHIs if we are in loop-closed SSA form.
21474         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
21475         for the pre-condition.
21476         (slpeel_tree_peel_loop_to_edge): Likewise.
21477         (vect_build_loop_niters): Take an optional sequence to append stmts.
21478         (vect_generate_tmps_on_preheader): Likewise.
21479         (vect_do_peeling_for_loop_bound): Take extra guards for the
21480         pre-condition.
21481         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
21482         the cost model check.
21483         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
21484         guards if we are going to peel.  Do not apply versioning in that case.
21485         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
21486         (vect_do_peeling_for_loop_bound): Likewise.
21487         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
21488         loop bound only record extra pre-conditions, do not apply loop
21489         versioning.
21490
21491 2009-04-04  Richard Guenther  <rguenther@suse.de>
21492
21493         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
21494         renaming code.
21495
21496 2009-04-04  Jan Hubicka  <jh@suse.cz>
21497
21498         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
21499         last_basic_block for size of bb->index indexed array.
21500         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
21501         compute_out, link_btr_uses, build_btr_def_use_webs,
21502         build_btr_def_use_webs, migrate_btr_defs): Likewise.
21503
21504 2009-04-04  Jan Hubicka  <jh@suse.cz>
21505
21506         * except.c (remove_eh_handler_and_replace): Break out from ...
21507         (remove_eh_handler): ... here.
21508         (bring_to_root): New function.
21509         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
21510         handled ones, bring others to root of tree.
21511
21512 2009-04-04  Jan Hubicka  <jh@suse.cz>
21513
21514         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
21515         (all_phis_safe_to_merge): New function.
21516         (update_info): New structure.
21517         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
21518         (cleanup_empty_eh): Update SSA if possible.
21519
21520 2009-04-04  Richard Guenther  <rguenther@suse.de>
21521
21522         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
21523         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
21524         (append_vuse): Likewise.
21525
21526 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
21527
21528         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
21529         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
21530         instead of REG_UNSAVED for DW_CFA_undefined.
21531         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
21532         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
21533         outermost frame.
21534
21535 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
21536
21537         PR target/39501
21538         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
21539
21540 2009-04-04  Richard Guenther  <rguenther@suse.de>
21541
21542         PR tree-optimization/8781
21543         PR tree-optimization/37892
21544         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
21545         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
21546         (valueize_refs): Call it for *& valueizations.
21547         (shared_reference_ops_from_ref): Rename to ...
21548         (valueize_shared_reference_ops_from_ref): ... this and valueize.
21549         (shared_reference_ops_from_call): Rename to ...
21550         (valueize_shared_reference_ops_from_call): ... this and valueize.
21551         (vn_reference_lookup): Update.
21552         (visit_reference_op_call): Likewise.
21553         * tree-ssa-pre.c (phi_translate_1): Fold *&.
21554         (eliminate): Value-replace the call address in call statements.
21555
21556 2009-04-04  Richard Guenther  <rguenther@suse.de>
21557
21558         PR tree-optimization/39636
21559         * tree-ssa-forwprop.c
21560         (forward_propagate_addr_into_variable_array_index): Check for
21561         GIMPLE_ASSIGN before accessing the rhs code.
21562
21563 2009-04-03  Jason Merrill  <jason@redhat.com>
21564
21565         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
21566
21567 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
21568
21569         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
21570         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
21571         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
21572         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
21573         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
21574         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
21575         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
21576         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
21577         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
21578         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
21579         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
21580         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
21581         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
21582         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
21583         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
21584         Use fr_reg_or_fp01_operand instead of fr_register_operand
21585
21586         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
21587         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
21588         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
21589
21590 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
21591
21592         PR rtl-optimization/39607
21593         PR rtl-optimization/39631
21594
21595         Revert:
21596
21597         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
21598         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
21599         instead of DF_LR_OUT.
21600         * ira-lives.c (process_bb_node_lives): Ditto.
21601         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
21602         instead of DF_LR_{OUT,IN}.
21603         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
21604         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
21605
21606 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
21607
21608         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
21609         (execute_lower_omp): Always run but take the short way out if -fopenmp
21610         is not given.
21611         (gate_lower_omp): Remove, forcing the pass manager to always run the
21612         pass and always set PROP_gimple_lomp.
21613         (pass_lower_omp): Remove gate function.
21614         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
21615         PROP_trees.  Instead, require it.
21616         * ipa-cp.c (pass_ipa_cp): Likewise.
21617         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
21618         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
21619         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
21620         and PROP_gimple_leh.
21621
21622 2009-04-03  Richard Guenther  <rguenther@suse.de>
21623
21624         PR middle-end/13146
21625         PR tree-optimization/23940
21626         PR tree-optimization/33237
21627         PR middle-end/33974
21628         PR middle-end/34093
21629         PR tree-optimization/36201
21630         PR tree-optimization/36230
21631         PR tree-optimization/38049
21632         PR tree-optimization/38207
21633         PR tree-optimization/38230
21634         PR tree-optimization/38301
21635         PR tree-optimization/38585
21636         PR middle-end/38895
21637         PR tree-optimization/38985
21638         PR tree-optimization/39299
21639         * tree-ssa-structalias.h: Remove.
21640         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
21641         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
21642         (struct vuse_element_d): Remove.
21643         (struct vuse_vec_d): Likewise.
21644         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
21645         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
21646         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
21647         VUSE_ELEMENT_VAR): Likewise.
21648         (struct voptype_d): Likewise.
21649         (NUM_VOP_FREE_BUCKETS): Likewise.
21650         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
21651         (struct stmt_operands_d): Remove.
21652         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
21653         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
21654         VDEF_NUM, VDEF_VECT): Likewise.
21655         (copy_virtual_operands): Remove.
21656         (operand_build_cmp): Likewise.
21657         (create_ssa_artificial_load_stmt): Likewise.
21658         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
21659         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
21660         vuse_index and mayuse_index members.  Pack and move done and iter_type
21661         members to the front.
21662         (SSA_OP_VMAYUSE): Remove.
21663         (SSA_OP_VIRTUAL_USES): Adjust.
21664         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
21665         (unlink_stmt_vdef): Declare.
21666         (add_to_addressable_set): Remove.
21667         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
21668         (vrp_visit_stmt): Likewise.
21669         * doc/tree-ssa.texi (Alias analysis): Update.
21670         * doc/invoke.texi (max-aliased-vops): Remove docs.
21671         (avg-aliased-vops): Likewise.
21672         * tree-into-ssa.c (syms_to_rename): Remove.
21673         (need_to_update_vops_p): Likewise.
21674         (need_to_initialize_update_ssa_p): Rename to ...
21675         (update_ssa_initialized_fn): ... this.  Track function we are
21676         initialized for.
21677         (symbol_marked_for_renaming): Simplify.
21678         (add_new_name_mapping): Do not set need_to_update_vops_p.
21679         (dump_currdefs): Use SYMS_TO_RENAME.
21680         (rewrite_update_stmt): Always walk all uses/defs.
21681         (dump_update_ssa): Adjust.
21682         (init_update_ssa): Take function argument.  Track what we are
21683         initialized for.
21684         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
21685         (create_new_def_for): Initialize for cfun, assert we are initialized
21686         for cfun.
21687         (mark_sym_for_renaming): Simplify.
21688         (mark_set_for_renaming): Do not initialize update-ssa.
21689         (need_ssa_update_p): Simplify.  Take function argument.
21690         (name_mappings_registered_p): Assert we ask for the correct function.
21691         (name_registered_for_update_p): Likewise.
21692         (ssa_names_to_replace): Likewise.
21693         (release_ssa_name_after_update_ssa): Likewise.
21694         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
21695         (dump_decl_set): Do not print a newline.
21696         (debug_decl_set): Do it here.
21697         (dump_update_ssa): And here.
21698         * tree-ssa-loop-im.c (move_computations): Adjust.
21699         (movement_possibility): Likewise.
21700         (determine_max_movement): Likewise.
21701         (gather_mem_refs_stmt): Likewise.
21702         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
21703         or NAME_MEMORY_TAG.
21704         * tree-complex.c (update_all_vops): Remove.
21705         (expand_complex_move): Adjust.
21706         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
21707         Simplify test for memory referencing statement.  Exclude
21708         non-invariant ADDR_EXPRs.
21709         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
21710         * tree-loop-distribution.c (generate_memset_zero): Adjust.
21711         (rdg_flag_uses): Likewise.
21712         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
21713         related code.
21714         (tree_optimize_tail_calls_1): Also split the
21715         edge from the entry block if we have degenerate PHI nodes in
21716         the first basic block.
21717         * tree.c (init_ttree): Remove memory-tag related code.
21718         (tree_code_size): Likewise.
21719         (tree_node_structure): Likewise.
21720         (build7_stat): Re-write to be build6_stat.
21721         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
21722         (SSA_VAR_P): Adjust.
21723         (struct tree_memory_tag): Remove.
21724         (struct tree_memory_partition_tag): Likewise.
21725         (union tree_node): Adjust.
21726         (build7): Re-write to be build6.
21727         * tree-pass.h (pass_reset_cc_flags): Remove.
21728         (TODO_update_address_taken): New flag.
21729         (pass_simple_dse): Remove.
21730         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
21731         * params.h (MAX_ALIASED_VOPS): Remove.
21732         (AVG_ALIASED_VOPS): Likewise.
21733         * omp-low.c (expand_omp_taskreg): Update SSA form.
21734         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
21735         aliases the lhs in a copy stmt.
21736         * tree-ssa-dse.c (struct address_walk_data): Remove.
21737         (memory_ssa_name_same): Likewise.
21738         (memory_address_same): Likewise.
21739         (get_kill_of_stmt_lhs): Likewise.
21740         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
21741         unused stores.  Look through PHI nodes into post-dominated regions.
21742         (dse_optimize_stmt): Simplify.  Properly remove stores.
21743         (tree_ssa_dse): Compute dominators.
21744         (execute_simple_dse): Remove.
21745         (pass_simple_dse): Likewise.
21746         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
21747         gimple_loaded_syms and gimple_stored_syms computation.
21748         * toplev.c (dump_memory_report): Dump alias and pta stats.
21749         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
21750         (vn_reference_eq): Likewise.
21751         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
21752         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
21753         valueize_vuses): Remove.
21754         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
21755         (get_def_ref_stmt_vuse): ... this.
21756         (vn_reference_lookup_2): New function.
21757         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
21758         walking equivalent vuses.  Simplify.
21759         (vn_reference_lookup): Likewise.
21760         (vn_reference_insert): Likewise.
21761         (vn_reference_insert_pieces): Likewise.
21762         (visit_reference_op_call): Simplify.
21763         (visit_reference_op_load): Likewise.
21764         (visit_reference_op_store): Likewise.
21765         (init_scc_vn): Remove shared_lookup_vuses initialization.
21766         (free_scc_vn): Remove shared_lookup_vuses freeing.
21767         (sort_vuses, sort_vuses_heap): Remove.
21768         (get_ref_from_reference_ops): Export.
21769         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
21770         vector with single vuse pointer.
21771         (vn_reference_lookup_pieces, vn_reference_lookup,
21772         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
21773         (shared_vuses_from_stmt): Remove.
21774         (get_ref_from_reference_ops): Declare.
21775         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
21776         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
21777         memory-tag related code.
21778         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
21779         (likely_value): Add comment, skip static-chain of call statements.
21780         (surely_varying_stmt_p): Adjust.
21781         (gimplify_and_update_call_from_tree): Likewise.
21782         (execute_fold_all_builtins): Do not rebuild alias info.
21783         (gimplify_and_update_call_from_tree): Properly update VOPs.
21784         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
21785         (copy_ref_info): Remove memory-tag related code.
21786         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
21787         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
21788         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
21789         computation.
21790         * tree-ssa-dom.c (gimple_p): Remove typedef.
21791         (eliminate_redundant_computations): Adjust.
21792         (record_equivalences_from_stmt): Likewise.
21793         (avail_expr_hash): Likewise.
21794         (avail_expr_eq): Likewise.
21795         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
21796         (stmt_makes_single_load): Likewise.
21797         (stmt_makes_single_store): Likewise.
21798         * tree-ssa-alias.c: Rewrite completely.
21799         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
21800         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
21801         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
21802         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
21803         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
21804         Remove public functions.
21805         (pass_reset_cc_flags): Remove.
21806         (pass_build_alias): Move ...
21807         * tree-ssa-structalias.c (pass_build_alias): ... here.
21808         * tree-ssa-alias.c (may_be_aliased): Move ...
21809         * tree-flow-inline.h (may_be_aliased): ... here.
21810         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
21811         count_uses_and_derefs): Move ...
21812         * gimple.c: ... here.
21813         * gimple.h (count_uses_and_derefs): Declare.
21814         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
21815         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
21816         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
21817         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
21818         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
21819         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
21820         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
21821         New functions.
21822         * tree-dfa.c (refs_may_alias_p): Move ...
21823         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
21824         * tree-ssa-alias.h: New file.
21825         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
21826         (statement_sink_location): Likewise.
21827         * opts.c (decode_options): Do not adjust max-aliased-vops or
21828         avg-aliased-vops values.
21829         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
21830         (TV_CALL_CLOBBER): Likewise.
21831         (TV_FLOW_SENSITIVE): Likewise.
21832         (TV_FLOW_INSENSITIVE): Likewise.
21833         (TV_MEMORY_PARTITIONING): Likewise.
21834         (TV_ALIAS_STMT_WALK): New timevar.
21835         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
21836         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
21837         (get_address_description): Remove memory-tag related code.
21838         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
21839         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
21840         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
21841         and immediate uses in statements.  Document.
21842         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
21843         (dump_symbols): Remove.
21844         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
21845         * alias.c (get_deref_alias_set): New function split out from ...
21846         (get_alias_set): ... here.
21847         * alias.h (get_deref_alias_set): Declare.
21848         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
21849         type parameter.  Remove restrict pointer handling.  Create a
21850         ref-all pointer in case type-based alias sets do not conflict.
21851         (vect_analyze_data_refs): Remove SMT related code.
21852         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
21853         (vectorizable_load): Likewise.
21854         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
21855         (DR_SYMBOL_TAG, DR_VOPS): Remove.
21856         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
21857         Ignore vops and SMTs.
21858         (dr_analyze_alias): Likewise..
21859         (free_data_ref): Likewise.
21860         (create_data_ref): Likewise.
21861         (analyze_all_data_dependences): Likewise.
21862         (get_references_in_stmt): Adjust.
21863         * tree-flow-inline.h (gimple_aliases_computed_p,
21864         gimple_addressable_vars, gimple_call_clobbered_vars,
21865         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
21866         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
21867         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
21868         gimple_mem_ref_stats): Remove.
21869         (gimple_vop): New function.
21870         (op_iter_next_use): Remove vuses and mayuses cases.
21871         (op_iter_next_def): Remove vdefs case.
21872         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
21873         (clear_and_done_ssa_iter): Do not set removed fields.
21874         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
21875         Assert we are not iterating over vuses or vdefs if not also
21876         iterating over uses or defs.
21877         (op_iter_init_use): Likewise.
21878         (op_iter_init_def): Likewise.
21879         (op_iter_next_vdef): Remove.
21880         (op_iter_next_mustdef): Likewise.
21881         (op_iter_init_vdef): Likewise.
21882         (compare_ssa_operands_equal): Likewise.
21883         (link_use_stmts_after): Handle vuse operand.
21884         (is_call_used): Use is_call_clobbered.
21885         (is_call_clobbered): Global variables are always call clobbered,
21886         query the call-clobbers bitmap.
21887         (mark_call_clobbered): Ignore global variables.
21888         (clear_call_clobbered): Likewise.
21889         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
21890         virtual operands sanity check.
21891         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
21892         Remove.
21893         (TARGET_MEM_REF): Remove TMR_TAG operand.
21894         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
21895         Remove call-clobber related code.
21896         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
21897         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
21898         partitions or escape reason.
21899         (get_single_def_stmt, get_single_def_stmt_from_phi,
21900         get_single_def_stmt_with_phi): Remove.
21901         (dump_referenced_vars): Tidy.
21902         (get_ref_base_and_extent): Allow bare decls.
21903         (collect_dfa_stats): Adjust.
21904         * graphite.c (rename_variables_in_stmt): Adjust.
21905         (graphite_copy_stmts_from_block): Likewise.
21906         (translate_clast): Likewise.
21907         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
21908         (EXPR_DIES): New.
21909         (translate_vuse_through_block): Use the oracle.
21910         (phi_translate_1): Adjust.
21911         (value_dies_in_block_x): Use the oracle.  Cache the outcome
21912         in EXPR_DIES.
21913         (valid_in_sets): Check if the VUSE for
21914         a REFERENCE is available.
21915         (eliminate): Do not remove stmts during elimination,
21916         instead queue and remove them afterwards.
21917         (do_pre): Do not rebuild alias info.
21918         (pass_pre): Run TODO_rebuild_alias before PRE.
21919         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
21920         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
21921         (mark_all_v_defs_stmt): Remove.
21922         (mark_all_v_defs_seq): Adjust.
21923         (sra_replace): Likewise.
21924         (scalarize_use): Likewise.
21925         (scalarize_copy): Likewise.
21926         (scalarize_init): Likewise.
21927         (scalarize_ldst): Likewise.
21928         (todoflags): Remove.
21929         (tree_sra): Do not rebuild alias info.
21930         (tree_sra_early): Adjust.
21931         (pass_sra): Run TODO_update_address_taken before SRA.
21932         * tree-predcom.c (set_alias_info): Remove.
21933         (prepare_initializers_chain): Do not call it.
21934         (mark_virtual_ops_for_renaming): Adjust.
21935         (mark_virtual_ops_for_renaming_list): Remove.
21936         (initialize_root_vars): Adjust.
21937         (initialize_root_vars_lm): Likewise.
21938         (prepare_initializers_chain): Likewise.
21939         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
21940         (may_propagate_copy_into_stmt): Likewise.
21941         (merge_alias_info): Do nothing for now.
21942         (propagate_tree_value_into_stmt): Adjust.
21943         (stmt_may_generate_copy): Likewise.
21944         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
21945         not mark symbols for renaming.
21946         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
21947         with the same statement, make sure to update the new pointed-to one.
21948         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
21949         call statements, do not mark symbols for renaming.
21950         (mark_operand_necessary): Dump something.
21951         (ref_may_be_aliased): New function.
21952         (mark_aliased_reaching_defs_necessary_1): New helper function.
21953         (mark_aliased_reaching_defs_necessary): Likewise.
21954         (mark_all_reaching_defs_necessary_1): Likewise.
21955         (mark_all_reaching_defs_necessary): Likewise.
21956         (propagate_necessity): Do not process virtual PHIs.  For
21957         non-aliased loads mark all reaching definitions as necessary.
21958         For aliased loads and stores mark the immediate dominating
21959         aliased clobbers as necessary.
21960         (visited): New global static.
21961         (perform_tree_ssa_dce): Free visited bitmap after propagating
21962         necessity.
21963         (remove_dead_phis): Perform simple dead virtual PHI removal.
21964         (remove_dead_stmt): Properly unlink virtual operands when
21965         removing stores.
21966         (eliminate_unnecessary_stmts): Schedule PHI removal after
21967         stmt removal.
21968         * tree-ssa-ter.c (is_replaceable_p): Adjust.
21969         (process_replaceable): Likewise.
21970         (find_replaceable_in_bb): Likewise.
21971         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
21972         based on the single gimple vop.
21973         (verify_flow_insensitive_alias_info): Remove.
21974         (verify_flow_sensitive_alias_info): Likewise.
21975         (verify_call_clobbering): Likewise.
21976         (verify_memory_partitions): Likewise.
21977         (verify_alias_info): Likewise.
21978         (verify_ssa): Adjust..
21979         (execute_update_addresses_taken): Export.  Update SSA
21980         manually.  Optimize only when optimizing.  Use a local bitmap.
21981         (pass_update_address_taken): Remove TODO_update_ssa, add
21982         TODO_dump_func.
21983         (pass_update_address_taken): Just use TODO_update_address_taken.
21984         (init_tree_ssa): Do not initialize addressable_vars.
21985         (verify_ssa): Verify new VUSE / VDEF properties.
21986         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
21987         Do not call verify_alias_info.
21988         (delete_tree_ssa): Clear the VUSE, VDEF operands.
21989         Do not free the loaded and stored syms bitmaps.  Reset the escaped
21990         and callused solutions.  Do not free addressable_vars.
21991         Remove memory-tag related code.
21992         (warn_uninitialized_var): Aliases are always available.
21993         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
21994         * lambda-code.c (can_put_in_inner_loop): Adjust.
21995         (can_put_after_inner_loop): Likewise.
21996         (perfect_nestify): Likewise.
21997         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
21998         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
21999         (vectorizable_conversion): Do not mark symbols for renaming.
22000         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
22001         (expand_call_inline): Unlink the calls virtual operands before
22002         replacing it.
22003         (tree_function_versioning): Do not call update_ssa if we are not
22004         updating clones.  Simplify.
22005         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
22006         (propagate_with_phi): Likewise..
22007         * tree-outof-ssa.c (create_temp): Remove memory tag and call
22008         clobber code.  Assert we are not aliased or global.
22009         * tree-flow.h: Include tree-ssa-alias.h
22010         (enum escape_type): Remove.
22011         (struct mem_sym_stats_d): Likewise.
22012         (struct mem_ref_stats_d): Likewise.
22013         (struct gimple_df): Add vop member.  Remove global_var,
22014         call_clobbered_vars, call_used_vars, addressable_vars,
22015         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
22016         escaped and callused members.
22017         (struct ptr_info_def): Remove all members, add points-to solution
22018         member pt.
22019         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
22020         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
22021         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
22022         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
22023         (tree-ssa-alias.o): Likewise.
22024         (toplev.o): Add tree-ssa-alias.h
22025         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
22026         * gimple.c (gimple_set_bb): Fix off-by-one error.
22027         (is_gimple_reg): Do not handle memory tags.
22028         (gimple_copy): Also copy virtual operands.
22029         Delay updating the statement.  Do not reset loaded and stored syms.
22030         (gimple_set_stored_syms): Remove.
22031         (gimple_set_loaded_syms): Likewise.
22032         (gimple_call_copy_skip_args): Copy the virtual operands
22033         and mark the new statement modified.
22034         * tree-ssa-structalias.c (may_alias_p): Remove.
22035         (set_uids_in_ptset): Take the alias set to prune with as
22036         parameter.  Fold in the alias test of may_alias_p.
22037         (compute_points_to_sets): Compute whether a ptr is dereferenced
22038         in a local sbitmap.
22039         (process_constraint): Deal with &ANYTHING on the lhs, reject all
22040         other ADDRESSOF constraints on the lhs.
22041         (get_constraint_for_component_ref): Assert that we don't get
22042         ADDRESSOF constraints from the base of the reference.
22043         Properly generate UNKNOWN_OFFSET for DEREF if needed.
22044         (struct variable_info): Remove collapsed_to member.
22045         (get_varinfo_fc): Remove.
22046         (new_var_info): Do not set collapsed_to.
22047         (dump_constraint): Do not follow cycles.
22048         (dump_constraint_graph): Likewise.
22049         (build_pred_graph): Likewise.
22050         (build_succ_graph): Likewise.
22051         (rewrite_constraints): Likewise.
22052         (do_simple_structure_copy): Remove.
22053         (do_rhs_deref_structure_copy): Remove.
22054         (do_lhs_deref_structure_copy): Remove.
22055         (collapse_rest_of_var): Remove.
22056         (do_structure_copy): Re-implement.
22057         (pta_stats): New global variable.
22058         (dump_pta_stats): New function.
22059         (struct constraint_expr): Make offset signed.
22060         (UNKNOWN_OFFSET): Define special value.
22061         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
22062         (solution_set_expand): New helper function split out from ...
22063         (do_sd_constraint): ... here.
22064         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
22065         (do_ds_constraint): Likewise.
22066         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
22067         and CALLUSED = *CALLUSED.
22068         (set_union_with_increment): Make inc argument signed.
22069         (type_safe): Remove.
22070         (get_constraint_for_ptr_offset): Handle unknown and negative
22071         constant offsets.
22072         (first_vi_for_offset): Handle offsets before start.  Bail
22073         out early for offsets beyond the variable extent.
22074         (first_or_preceding_vi_for_offset): New function.
22075         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
22076         Together with ESCAPED = *ESCAPED this properly computes reachability.
22077         (find_what_var_points_to): New function.
22078         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
22079         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
22080         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
22081         pt_solutions_intersect): New functions.
22082         (compute_call_used_vars): Remove.
22083         (compute_may_aliases): New main entry into PTA computation.
22084         * gimple.h (gimple_p): New typedef.
22085         (struct gimple_statement_base): Remove references_memory_p.
22086         (struct gimple_statement_with_memory_ops_base): Remove
22087         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
22088         members.
22089         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
22090         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
22091         gimple_set_references_memory): Remove.
22092         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
22093         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
22094         New functions.
22095         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
22096         (verify_expr): Allow RESULT_DECL.
22097         (gimple_duplicate_bb): Do not copy virtual operands.
22098         (gimple_duplicate_sese_region): Adjust.
22099         (gimple_duplicate_sese_tail): Likewise.
22100         (mark_virtual_ops_in_region): Remove.
22101         (move_sese_region_to_fn): Do not call it.
22102         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
22103         and pass_simple_dse.
22104         (execute_function_todo): Handle TODO_update_address_taken,
22105         call execute_update_addresses_taken for TODO_rebuild_alias.
22106         (execute_todo): Adjust.
22107         (execute_one_pass): Init dump files early.
22108         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
22109         call-clobbered.
22110         (create_general_new_stmt): Clear vops.
22111         * tree-ssa-reassoc.c (get_rank): Adjust.
22112         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
22113         symbols for renaming.
22114         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
22115         (PARAM_AVG_ALIASED_VOPS): Likewise.
22116         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
22117         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
22118         * tree-ssa-operands.c: Simplify for new virtual operand representation.
22119         (operand_build_cmp, copy_virtual_operands,
22120         create_ssa_artificial_load_stmt, add_to_addressable_set,
22121         gimple_add_to_addresses_taken): Remove public functions.
22122         (unlink_stmt_vdef): New function.
22123
22124 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
22125
22126         * config.gcc (powerpc-*-linux*): Merge variants.
22127
22128 2009-04-02  Chao-ying Fu  <fu@mips.com>
22129             James Grosbach  <james.grosbach@microchip.com>
22130
22131         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
22132         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
22133         cop0_sp_offset.
22134         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
22135         keep_interrupts_masked_p, use_debug_exception_return_p.
22136         (mips_attribute_table): Add interrupt, use_shadow_register_set,
22137         keep_interrupts_masked, use_debug_exception_return.
22138         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
22139         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
22140         New functions.
22141         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
22142         (mips_print_operand): Process COP0 registers to print $0 .. $31
22143         correctly for GAS to process.
22144         (mips_interrupt_extra_call_saved_reg_p): New function.
22145         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
22146         extra registers.
22147         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
22148         (mips_compute_frame_info): Add supports for interrupt context that
22149         includes doubleword accumulators and COP0 registers.
22150         (mips_for_each_saved_acc): New function.
22151         (mips_for_each_saved_gpr_and_fpr): Change the function name from
22152         mips_for_each_saved_reg.
22153         (mips_save_reg): Save accumulators.
22154         (mips_kernel_reg_p): A new for_each_rtx callback.
22155         (mips_expand_prologue): Support interrupt handlers.
22156         (mips_restore_reg): Restore accumulators.
22157         (mips_expand_epilogue): Support interrupt handlers.
22158         (mips_can_use_return_insn): Return false for interrupt handlers.
22159         (mips_epilogue_uses): New function.
22160         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
22161         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
22162         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
22163         cop0_move): New instructions.
22164         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
22165         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
22166         defines.
22167         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
22168         New defines.
22169         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
22170         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
22171         interrupt handlers, we use K0 as the temporary register.
22172         (EPILOGUE_USES): Change to a function call.
22173         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
22174         handlers, we use K0 as the temporary register.
22175
22176         * doc/extend.texi (Function Attributes): Document interrupt,
22177         use_shadow_register_set, keep_interrupts_masked,
22178         use_debug_exception_return for MIPS attributes.
22179
22180 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
22181
22182         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
22183         Remove a number of t-files from tmake_file.
22184         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
22185         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
22186         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
22187         target_prototype, not TARGET_PROTOTYPE.
22188         (LINK_OS_GNU_SPEC): Define.
22189         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
22190         and darwin-ldoubdle.c.
22191
22192 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
22193
22194         PR driver/39293
22195         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
22196         (cpp_options): Ditto.
22197         (default_compilers): Ditto.
22198         (display_help): Ditto.
22199         (process_command): Ditto.
22200         (do_spec_1): Ditto.
22201         (set_input): Use lbasename instead of duplicate code.
22202         (save_temps_prefix): New static for -save-temps=obj.
22203         (save_temps_length): Ditto.
22204
22205         * doc/invoke.texi (-save-temps=obj): Document new variant to
22206         -save-temps switch.
22207
22208 2009-04-02  Jeff Law  <law@redhat.com>
22209
22210         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
22211         variable.
22212
22213 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
22214
22215         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
22216         * configure: Regenerated.
22217
22218 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
22219
22220         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
22221         share the argument list.
22222
22223 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
22224
22225         Merge
22226
22227         2009-02-12  Diego Novillo  <dnovillo@google.com>
22228
22229         * varpool.c (debug_varpool): New.
22230         * cgraph.h (debug_varpool): Declare.
22231
22232 2009-04-02  Jan Hubicka  <jh@suse.cz>
22233
22234         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
22235         pass.
22236
22237 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
22238
22239         * config/i386/i386.c (ix86_abi): Move initialization to ...
22240         (override_options): Here.
22241
22242 2009-04-02  Christian Bruel  <christian.bruel@st.com>
22243
22244         * config/sh/sh.c (sh_dwarf_register_span): New function.
22245         (TARGET_DWARF_REGISTER_SPAN): Define.
22246         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
22247
22248 2009-04-02  Ira Rosen  <irar@il.ibm.com>
22249
22250         PR tree-optimization/39595
22251         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
22252         interleaved loads group is not  greater than the SLP group size.
22253
22254 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
22255
22256         * builtins.c (is_builtin_name): New.
22257         (called_as_built_in): Use is_builtin_name.
22258         * tree.h (is_builtin_name): New.
22259         * varasm.c (incorporeal_function_p): Use is_builtin_name
22260
22261 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
22262
22263         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
22264
22265 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
22266
22267         PR c++/26693
22268         * c-decl.c (clone_underlying_type): Move this ...
22269         * c-common.c (set_underlying_type): ... here.
22270         Also, make sure the function properly sets TYPE_STUB_DECL() on
22271         the newly created typedef variant type.
22272         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
22273         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
22274         points.
22275
22276 2009-04-02  Richard Guenther  <rguenther@suse.de>
22277
22278         PR tree-optimization/37221
22279         * tree-flow.h (degenerate_phi_result): Declare.
22280         * tree-ssa-dom.c (degenerate_phi_result): Export.
22281         * tree-scalar-evolution.c (analyze_initial_condition): If
22282         the initial condition is defined by a degenerate PHI node
22283         use the degenerate value.
22284
22285 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
22286
22287         PR rtl-optimization/39588
22288         * combine.c (merge_outer_ops): Do not set the constant when this
22289         is not necessary.
22290         (simplify_shift_const_1): Do not modify it either in this case.
22291
22292 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
22293
22294         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
22295         tuning is deprecated if -mtune value is set to an Itanium1 variant.
22296
22297 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
22298
22299         PR c/29027
22300         * c-lex.c (interpret_float): Default (no suffix) is double.
22301
22302 2009-04-1  Xinliang David Li  <davidxl@google.com>
22303
22304         * config/i386/i386.c (legitimate_constant_p): Recognize
22305         all one vector constant.
22306
22307 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
22308
22309         * config/vax/vax.c: Add #includes to silence warnings.
22310         Change #include order to silence two warnings.
22311
22312 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
22313
22314         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
22315         (ASM_SPEC): Pass -k to the assembler for PIC code.
22316
22317 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
22318
22319         * config.gcc: Add vax-*-linux* to the switch.
22320         * config/vax/linux.h: New file. (TARGET_VERSION,
22321         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
22322
22323 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
22324
22325         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
22326         Use predicate macros instead of GET_CODE() == foo.
22327         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
22328         ashlsi3, rotrsi3, <unnamed>): Likewise.
22329
22330 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
22331
22332         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
22333         jbbccihi, jbbccisi): Remova trailing whitespace.
22334         * config/vax/constraints.md: Likewise.
22335         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
22336         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
22337         * config/vax/predicates.md: Likewise.
22338         * config/vax/vax.c (print_operand_address, vax_output_int_move,
22339         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
22340         * config/vax/vax.h: Likewise.
22341         * config/vax/vax.md (nonlocal_goto): Likewise.
22342
22343 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
22344
22345         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
22346         (indirectable_address_p, adjacent_operands_p): Add spaces around
22347         braces.
22348         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
22349
22350 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
22351
22352         * config/vax/vax.c (legitimate_constant_address_p,
22353         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
22354         index_term_p, reg_plus_index_p, legitimate_address_p,
22355         vax_mode_dependent_address_p): Update comments to match functions
22356         modified by the recent int->bool conversion.
22357
22358 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
22359
22360         * config/vax/builtins.md: Update copyright message.
22361         * config/vax/constraints.md: Likewise.
22362         * config/vax/netbsd-elf.h: Likewise.
22363         * config/vax/predicates.md: Likewise.
22364         * config/vax/vax-protos.h: Likewise.
22365         * config/vax/vax.c: Likewise.
22366         * config/vax/vax.h: Likewise.
22367         * config/vax/vax.md: Likewise.
22368         * config/vax/vax.opt: Likewise.
22369
22370 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
22371
22372         * config/vax/builtins.md (ffssi2, ffssi2_internal,
22373         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
22374         * config/vax/constraints.md (B, R): Likewise.
22375         * config/vax/predicates.md (external_memory_operand,
22376         nonimmediate_addsub_di_operand): Likewise.
22377         * config/vax/vax.c (vax_output_int_add): Likewise.
22378         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
22379         untyped_call): Likewise.
22380
22381 2009-04-01  Matt Thomas  <matt@3am-software.com>
22382
22383         * config/vax/predicates.md: New file.
22384         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
22385         external_const_operand, nonsymbolic_operand, external_memory_operand,
22386         indirect_memory_operand, indexed_memory_operand,
22387         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
22388         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
22389         predicate.
22390         * config/vax/constraints.md: New file.
22391         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
22392         New constraint.
22393         * config/vax/builtins.md: New file.
22394         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
22395         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
22396         jbbccisi): Define.
22397         * config/vax/vax.opt (mqmath): Add option.
22398         * config/vax/vax.md (isfx): Extend with DI.
22399         (VAXintQH, VAXintQHSD): Define.
22400         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
22401         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
22402         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
22403         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
22404         (movdi): Update constraints and use vax_output_int_move().
22405         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
22406         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
22407         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
22408         nonlocal_goto): New.
22409         (mov<mode>): Extend accepted operand types.
22410         (subdi3_old): Rename from subdi3, change update constraints and use
22411         a new implementation.
22412         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
22413         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
22414         MOVE_RATIO, CLEAR_RATIO): Define.
22415         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
22416         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
22417         (PRINT_OPERAND): Redefine using a function instead of inlined code.
22418         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
22419         (split_quadword_operands): Make static and really allow variable
22420         splitting.
22421         (print_operand_address): Update for PIC generation.
22422         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
22423         indexable_address_p, fixup_mathdi_operand,
22424         vax_expand_addsub_di_operands, adjacent_operands_p): New.
22425         (vax_float_literal, legitimate_constant_p,
22426         indirectable_constant_address_p, index_term_p,
22427         reg_plus_index_p): Return bool instead of int.
22428         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
22429         where needed.
22430         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
22431         generation.
22432         (vax_output_conditional_branch): Indent.
22433         (legitimate_constant_address_p, indirectable_constant_address_p,
22434         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
22435         vax_mode_dependent_address_p): Return bool instead of int, update for
22436         PIC generation.
22437         * config/vax/vax-protos.h (legitimate_constant_address_p,
22438         legitimate_constant_p, legitimate_address_p,
22439         vax_mode_dependent_address_p): Change declaration to bool.
22440         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
22441         vax_expand_addsub_di_operands, vax_output_int_subtract,
22442         vax_output_movmemsi): Declare.
22443         (split_quadword_operands, vax_float_literal): Delete declaration.
22444         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
22445         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
22446         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
22447         ASM_OUTPUT_DWARF_PCREL): Define.
22448         (ASM_SPEC): Change definition to allow PIC generation.
22449
22450 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
22451
22452         * doc/sourcebuild.texi: Update front-end requirements.
22453
22454 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
22455
22456         PR target/39226
22457         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
22458         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
22459         (booldi3_internal3): Use boolean_or_operator instead of
22460         boolean_operator.
22461
22462 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
22463
22464         PR c/39605
22465         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
22466         declarator whose size is not an integer constant expression but
22467         folds to an integer constant, then treat it as a constant
22468         subsequently.
22469
22470 2009-04-01  Richard Guenther  <rguenther@suse.de>
22471
22472         * fold-const.c (fold_plusminus_mult_expr): Do not fold
22473         i * 4 + 2 to (i * 2 + 1) * 2.
22474
22475 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
22476
22477         PR c/37772
22478         * c-parser.c (c_parser_asm_statement): Skip until close paren and
22479         return if c_parser_asm_string_literal returned NULL.
22480
22481 2009-04-01  Nick Clifton  <nickc@redhat.com>
22482
22483         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
22484         already defined.
22485         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
22486         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
22487         other typedefs to avoid conflicts with libgcc2.c.  Define labels
22488         to gain 16-bit bit-manipulation functions from libgcc2.c and then
22489         include it.
22490         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
22491         to gain 16-bit trapping arithmetic functions from libgcc2.c and
22492         then include it.
22493
22494 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
22495
22496         * varasm.c (default_function_rodata_section): Declare DOT as
22497         const char*.
22498
22499 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
22500             Andrey Galkin  <agalkin@hypercom.com>
22501
22502         PR/39492
22503         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22504         Make object_name unique for each process.
22505
22506 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
22507
22508         PR other/39591
22509         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
22510         addressable variables in the parallel that could go out of scope while
22511         running queued tasks.
22512
22513 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
22514
22515         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
22516         (CASE_VALUES_THRESHOLD): Redefine.
22517         * config/avr/avr.c (avr_override_options): Remove initialization of
22518         avr_case_values_threshold variable.
22519         (avr_case_values_threshold): Remove variable. Add new function.
22520         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
22521         * config/avr/avr.opt (mno-tablejump): Remove option.
22522         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
22523
22524 2009-04-01  DJ Delorie  <dj@redhat.com>
22525
22526         * varasm.c (default_function_rodata_section): Don't assume
22527         anything about where the first '.' in the section name is.
22528
22529 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
22530
22531         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
22532         rs6000_emit_stack_tie.
22533
22534 2009-03-31  Ian Lance Taylor  <iant@google.com>
22535
22536         * tree-eh.c (tree_remove_unreachable_handlers): Compare
22537         gimple_code with GIMPLE_RESX, not RESX.
22538
22539 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
22540
22541         * c-common.c (c_get_ident): New.
22542         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
22543
22544 2009-04-01  Ben Elliston  <bje@au.ibm.com>
22545
22546         * config/rs6000/sysv4.opt (msdata): Improve option description.
22547
22548 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
22549
22550         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
22551         (divdf3_internal_lat): Remove.
22552         (divxf3_internal_lat): Remove.
22553         (divxf3_internal_thr): Remove.
22554         (divxf): Use divxf3_internal.
22555         * config/ia64/div.md (divsf3_internal_lat): New.
22556         (divdf3_internal_lat): New.
22557         (divxf3_internal): New.
22558
22559 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
22560
22561         PR c/448
22562         * Makefile.in (USE_GCC_STDINT): Define.
22563         (stmp-int-hdrs): Install stdint.h if applicable.
22564         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
22565         if known.
22566         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
22567         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
22568         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
22569         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22570         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
22571         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
22572         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
22573         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22574         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
22575         (c_common_nodes_and_builtins): Initialize
22576         underlying_wchar_type_node.  Do not initialize
22577         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
22578         nodes for new types.
22579         (c_stddef_cpp_builtins): Define macros for new types.
22580         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
22581         Remove.
22582         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
22583         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
22584         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
22585         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
22586         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
22587         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
22588         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
22589         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
22590         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
22591         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
22592         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
22593         int16_type_node, int32_type_node, int64_type_node,
22594         uint8_type_node, uint16_type_node, c_uint32_type_node,
22595         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
22596         int_least32_type_node, int_least64_type_node,
22597         uint_least8_type_node, uint_least16_type_node,
22598         uint_least32_type_node, uint_least64_type_node,
22599         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
22600         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
22601         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
22602         uintptr_type_node): Define.
22603         * c-cppbuiltin.c (builtin_define_constants,
22604         builtin_define_type_minmax): New.
22605         (builtin_define_stdint_macros): Define more macros.
22606         (c_cpp_builtins): Define more limit macros.
22607         (type_suffix): New.
22608         (builtin_define_type_max): Define in terms of
22609         builtin_define_type_minmax.  Remove is_long parameter.  All
22610         callers changed.
22611         * config.gcc (use_gcc_stdint): Define.
22612         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
22613         Add newlib-stdint.h for generic targets.
22614         * config/glibc-stdint.h, config/newlib-stdint.h,
22615         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
22616         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
22617         * config/score/score.h (UINTPTR_TYPE): Define.
22618         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
22619         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
22620         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22621         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
22622         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
22623         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
22624         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22625         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
22626         * config/spu/spu.h (STDINT_LONG32): Define.
22627         * configure.ac (use_gcc_stdint): Substitute.
22628         * configure: Regenerate.
22629         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
22630         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
22631         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
22632         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
22633         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
22634         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
22635         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
22636         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
22637         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
22638         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
22639         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
22640         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
22641         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
22642         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
22643         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
22644         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
22645         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
22646         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
22647         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
22648         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
22649         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
22650         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
22651         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
22652         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22653         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
22654         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
22655         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
22656         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22657         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
22658
22659 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
22660
22661         * loop-iv.c (suitable_set_for_replacement): Renamed from
22662         simplify_using_assignment; changed to return bool and to accept new
22663         args DEST and SRC.  Return true iff we find a source/destination pair
22664         that can be used to make a replacement, and fill SRC and DEST if so.
22665         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
22666         changed.
22667         (simplify_using_initial_values): Deal with altered regs here and track
22668         more precisely the effect they have on the validity of our expression.
22669
22670         * loop-iv.c (simplify_using_condition): A condition of the form
22671         (EQ REG CONST) can be used to simply make a substitution.
22672         (simplify_using_initial_values): Keep track of conditions we have seen
22673         and keep using them to simplify new expressions, while applying the
22674         same substitutions to them as to the expression.
22675
22676         * simplify-rtx.c (simplify_relational_operation_1): Simplify
22677         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
22678         GEU/LTU reversed.
22679
22680         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
22681         changed.  Use this when trying to improve the upper bound.
22682         Generate the comparison by using simplify_gen_relational.
22683
22684         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
22685
22686         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
22687         functions.
22688         (simplify_using_assignment, simplify_using_initial_values): Call
22689         replace_in_expr to make replacements.  Call replace_single_def_regs
22690         once on the initial version of the expression.
22691
22692 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22693
22694         PR target/27237
22695         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
22696
22697 2009-03-31  Richard Guenther  <rguenther@suse.de>
22698
22699         PR middle-end/31029
22700         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
22701         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
22702
22703 2009-03-31  Richard Guenther  <rguenther@suse.de>
22704
22705         * tree.h (div_if_zero_remainder): Declare.
22706         * fold-const.c (div_if_zero_remainder): Export.
22707         * tree-ssa-forwprop.c
22708         (forward_propagate_addr_into_variable_array_index): Handle
22709         constant array index addition outside of the variable index.
22710
22711 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
22712
22713         PR target/39592
22714         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
22715         define_splits, floatunssi<mode>2): Require x87 conversions from
22716         DImode to be permitted.
22717
22718 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
22719
22720         PR preprocessor/15638
22721         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
22722
22723 2009-03-31  Richard Guenther  <rguenther@suse.de>
22724
22725         PR middle-end/23401
22726         PR middle-end/27810
22727         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
22728         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
22729         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
22730         a separate statement.
22731         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
22732         (lookup_tmp_var): Likewise.
22733         (is_gimple_formal_tmp_or_call_rhs): Remove.
22734         (is_gimple_reg_or_call_rhs): Rename to ...
22735         (is_gimple_reg_rhs_or_call): ... this.
22736         (is_gimple_mem_or_call_rhs): Rename to ...
22737         (is_gimple_mem_rhs_or_call): ... this.
22738         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
22739         DECL_GIMPLE_REG_P only if is_formal is true.
22740         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
22741         for non-proper post-modify expression gimplification.
22742         (gimplify_self_mod_expr): For post-modify expressions gimplify
22743         the lvalue to a minimal lvalue.
22744         (rhs_predicate_for): Remove formal temp case.
22745         (gimplify_modify_expr_rhs): Likewise.
22746         (gimplify_addr_expr): Use is_gimple_reg.
22747         (gimplify_expr): Remove formal temp cases.
22748         (gimple_regimplify_operands): Likewise.
22749         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
22750         and FILTER_EXPR like constants.
22751         * gimple.c (walk_gimple_op): Fix val_only initialization, use
22752         is_gimple_reg.
22753         (is_gimple_formal_tmp_rhs): Remove.
22754         (is_gimple_reg_rhs): Remove special casing.
22755         (is_gimple_mem_rhs): Fix.
22756         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
22757         (is_gimple_formal_tmp_var): Remove.
22758         (is_gimple_formal_tmp_reg): Likewise.
22759         (is_gimple_min_lval): Allow invariant component ref parts.
22760         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
22761         is_gimple_formal_tmp_reg): Remove declarations.
22762         * tree-cfg.c (verify_expr): Verify that variables with address
22763         taken do not have DECL_GIMPLE_REG_P set.
22764         * tree-mudflap.c (mf_build_check_statement_for): Use
22765         force_gimple_operand instead of gimplify_expr.
22766
22767 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
22768
22769         * modulo-sched.c (sms_schedule_by_order): Pass the actual
22770         schedulable rows to compute_split_row.
22771
22772 2009-03-31  Ben Elliston  <bje@au.ibm.com>
22773
22774         PR target/31635
22775         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
22776         OPT_mvrsave.
22777
22778 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
22779
22780         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
22781         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
22782         * configure: Regenerate.
22783         * config.in: Regenerate.
22784         * config/rs6000/rs6000.opt (mtls-markers): Add.
22785         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
22786         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
22787         (tls_ld_aix, tls_ld_sysv): Likewise.
22788         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
22789         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
22790
22791 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
22792
22793         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
22794
22795 2009-03-30  Jan Hubicka  <jh@suse.cz>
22796
22797         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
22798         out of RESX.
22799         (tree_remove_unreachable_handlers): Cleanup EH predecestor
22800         detection and label handling.
22801
22802 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
22803
22804         * ira-int.h (ira_allocno): Rename left_conflicts_num to
22805         left_conflicts_size.
22806         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
22807         ALLOCNO_LEFT_CONFLICTS_SIZE.
22808
22809         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
22810         remove_allocno_from_bucket_and_push,
22811         allocno_spill_priority_compare, push_allocnos_to_stack,
22812         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
22813         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
22814         (setup_allocno_left_conflicts_num): Ditto.  Rename to
22815         setup_allocno_left_conflicts_size.
22816         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
22817         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
22818         setup_allocno_left_conflicts_size instead of
22819         setup_allocno_left_conflicts_num.
22820
22821         * ira-build.c (ira_create_allocno): Use
22822         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
22823         ALLOCNO_LEFT_CONFLICTS_NUM.
22824
22825 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
22826
22827         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
22828         instead of DF_LR_OUT.
22829
22830         * ira-lives.c (process_bb_node_lives): Ditto.
22831
22832         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
22833         instead of DF_LR_{OUT,IN}.
22834
22835         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
22836
22837         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
22838
22839 2009-03-30  Jan Hubicka  <jh@suse.cz>
22840
22841         * except.c (label_to_region_map): Fix thinko.
22842
22843 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
22844
22845         PR middle-end/38237
22846         * tree.h (tree_find_value): New declaration.
22847         * tree.c (tree_find_value): New function.
22848         * varasm.c (assemble_external): Avoid duplicate entries on lists.
22849
22850 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
22851
22852         PR debug/39563
22853         * c-decl.c (struct c_binding): Add locus field.
22854         (bind): Add locus argument, set locus field from it.
22855         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
22856         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
22857         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
22858         implicitly_declare, undeclared_variable, lookup_label,
22859         declare_label, c_make_fname_decl, c_builtin_function,
22860         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
22861         bind callers.
22862
22863 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
22864
22865         PR target/38781
22866         * config/i386/i386.c (classify_argument): Check total size of
22867         structure.
22868
22869 2009-03-30  Martin Jambor  <mjambor@suse.cz>
22870
22871         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
22872         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
22873         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
22874         respectively.
22875
22876         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
22877         seen_variable_array_ref while also traversing a union.
22878
22879         * tree-inline.c (optimize_inline_calls): Do not call
22880         cgraph_node_remove_callees.
22881         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
22882         (pass_remove_cgraph_callee_edges): New variable.
22883         * passes.c (init_optimization_passes): Add
22884         pass_remove_cgraph_callee_edges after early inlining and before all
22885         late intraprocedural passes.
22886
22887         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
22888
22889 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
22890
22891         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
22892         Fix typos in names.
22893
22894 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
22895
22896         * combine.c (simplify_comparison): Use have_insn_for.
22897         * dojump.c (do_jump): Likewise.
22898
22899 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
22900
22901         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
22902         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
22903         sparc_compare_op0 like sparc_compare_emitted used to be handled.
22904         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
22905         instead of sparc_compare_emitted.
22906         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
22907         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
22908         instead of sparc_compare_emitted.
22909
22910 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
22911
22912         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
22913         enter/exit cfglayout mode.
22914         (pass_partition_block): Require it.
22915         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
22916         (combine_instructions): Track basic blocks instead of labels.
22917         (update_cfg_for_uncondjump): New.
22918         (try_combine): Use it.  Update jumps after rescanning.
22919         (pass_combine): Require PROP_cfglayout.
22920         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
22921
22922 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
22923
22924         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
22925         Provide/destroy PROP_cfglayout respectively.
22926         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
22927         * tree-pass.h (PROP_cfglayout): New.
22928
22929 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
22930
22931         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
22932         fold_convert_const_fixed_from_fixed,
22933         fold_convert_const_fixed_from_int,
22934         fold_convert_const_fixed_from_real, fold_negate_const): Do not
22935         set TREE_CONSTANT_OVERFLOW.
22936         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
22937         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
22938
22939 2009-03-30  Ira Rosen  <irar@il.ibm.com>
22940
22941         * tree-vect-loop-manip.c: New file.
22942         * tree-vectorizer.c: Update documentation and included files.
22943         (vect_loop_location): Make extern.
22944         (rename_use_op): Move to tree-vect-loop-manip.c
22945         (rename_variables_in_bb, rename_variables_in_loop,
22946         slpeel_update_phis_for_duplicate_loop,
22947         slpeel_update_phi_nodes_for_guard1,
22948         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
22949         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
22950         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
22951         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
22952         find_loop_location): Likewise.
22953         (new_stmt_vec_info): Move to tree-vect-stmts.c.
22954         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
22955         get_vectype_for_scalar_type, vect_is_simple_use,
22956         supportable_widening_operation, supportable_narrowing_operation):
22957         Likewise.
22958         (bb_in_loop_p): Move to tree-vect-loop.c.
22959         (new_loop_vec_info, destroy_loop_vec_info,
22960         reduction_code_for_scalar_code, report_vect_op,
22961         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
22962         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
22963         (vect_supportable_dr_alignment): Likewise.
22964         * tree-vectorizer.h (tree-data-ref.h): Include.
22965         (vect_loop_location): Declare.
22966         Reorganize function declarations according to the new file structure.
22967         * tree-vect-loop.c: New file.
22968         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
22969         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
22970         * tree-vect-data-refs.c: New file.
22971         * tree-vect-patterns.c (timevar.h): Don't include.
22972         * tree-vect-stmts.c: New file.
22973         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
22974         tree-vect-slp.c, tree-vect-loop.c.
22975         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
22976         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
22977         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
22978         (tree-vect-analyze.o): Remove.
22979         (tree-vect-transform.o): Likewise.
22980         (tree-vect-data-refs.o): Add rule.
22981         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
22982         tree-vect-slp.o): Likewise.
22983         (tree-vect-patterns.o): Remove redundant dependencies.
22984         (tree-vectorizer.o): Likewise.
22985         * tree-vect-slp.c: New file.
22986
22987 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22988
22989         * optc-gen.awk: Warn if an option flag has multiple different
22990         help strings.
22991
22992 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
22993
22994         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
22995         -floop-block): Document dependences on PPL, CLooG and Graphite.
22996
22997 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
22998
22999         PR rtl-optimization/323
23000         * c-common.c (c_fully_fold, convert_and_check,
23001         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
23002         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
23003         * c-common.def (EXCESS_PRECISION_EXPR): New.
23004         * c-cppbuiltin.c (builtin_define_float_constants): Define
23005         constants with enough digits for long double.
23006         * c-lex.c (interpret_float): Interpret constant with excess
23007         precision where appropriate.
23008         * c-opts.c (c_common_post_options): Set
23009         flag_excess_precision_cmdline.  Give an error for
23010         -fexcess-precision=standard for C++ for processors where the
23011         option is significant.
23012         * c-parser.c (c_parser_conditional_expression): Handle excess
23013         precision in condition.
23014         * c-typeck.c (convert_arguments): Handle arguments with excess
23015         precision.
23016         (build_unary_op): Move excess precision outside operation.
23017         (build_conditional_expr): Likewise.
23018         (build_compound_expr): Likewise.
23019         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
23020         (build_modify_expr): Handle excess precision in RHS.
23021         (convert_for_assignment): Handle excess precision in converted
23022         value.
23023         (digest_init, output_init_element, process_init_element): Handle
23024         excess precision in initializer.
23025         (c_finish_return): Handle excess precision in return value.
23026         (build_binary_op): Handle excess precision in operands and add
23027         excess precision as needed for operation.
23028         * common.opt (-fexcess-precision=): New option.
23029         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
23030         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
23031         For standard excess precision, output explicit conversion to and
23032         truncation from XFmode.
23033         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
23034         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
23035         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
23036         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
23037         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
23038         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
23039         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
23040         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
23041         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
23042         define_splits, sqrt<mode>2): Disable where appropriate for
23043         standard excess precision.
23044         * convert.c (convert_to_real): Do not shorten arithmetic to type
23045         for which excess precision would be used.
23046         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
23047         * doc/invoke.texi (-fexcess-precision=): Document option.
23048         (-mfpmath=): Correct index entry.
23049         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
23050         flag_excess_precision): New.
23051         * langhooks.c (lhd_post_options): Set
23052         flag_excess_precision_cmdline.
23053         * opts.c (common_handle_option): Handle -fexcess-precision=.
23054         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
23055         init_excess_precision): New.
23056         (lang_dependent_init_target): Call init_excess_precision.
23057         * tree.c (excess_precision_type): New.
23058         * tree.h (excess_precision_type): Declare.
23059
23060 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
23061
23062         PR c/35235
23063         * c-typeck.c (build_component_ref): Do not copy qualifiers from
23064         non-lvalue to component.
23065
23066 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
23067
23068         PR preprocessor/34695
23069         * Makefile.in (c-opts.o): Depend on c-tree.h.
23070         * c-common.c: Move down include of diagnostic.h.
23071         (done_lexing, c_cpp_error): New.
23072         * c-common.h (done_lexing): Declare.
23073         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
23074         (parse_in).
23075         * c-opts.c: Include c-tree.h.
23076         (c_common_init_options): Set preprocessor error callback.
23077         (c_common_handle_option): Do not set preprocessor
23078         inhibit_warnings, warnings_are_errors, warn_system_headers,
23079         pedantic_errors or inhibit_warnings flags.
23080         (c_common_post_options): Do not check cpp_errors (parse_in).
23081         (c_common_finish): Do not output dependencies if there were
23082         errors.  Do not check return value of cpp_finish.
23083         * c-ppoutput.c (pp_file_change): Set input_location.
23084         * c-tree.h (c_cpp_error): Declare.
23085         * diagnostic.c (diagnostic_set_info_translated): Also initialize
23086         override_column.
23087         (diagnostic_build_prefix): Check override_column.
23088         * diagnostic.h (diagnostic_info): Add override_column field.
23089         (diagnostic_override_column): Define.
23090
23091 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
23092
23093         * c-common.c (c_expand_expr, c_staticp): Remove.
23094         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
23095         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
23096         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
23097         * c-gimplify.c (gimplify_compound_literal_expr,
23098         optimize_compound_literals_in_ctor): Remove.
23099         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
23100         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
23101         * c-semantics.c (emit_local_var): Remove.
23102
23103         * langhooks-def.h (lhd_expand_expr): Remove.
23104         * langhooks.c (lhd_expand_expr): Remove.
23105         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
23106
23107         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
23108         handling from c-semantics.c; don't call into langhook.
23109         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
23110         * gimplify.c (gimplify_compound_literal_expr,
23111         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
23112         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
23113         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
23114         as was done in c-gimplify.c.
23115         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
23116         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
23117         Move from c-common.h.
23118         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
23119
23120         * tree.c (staticp): Do not call langhook.
23121         * langhooks.c (lhd_staticp): Delete.
23122         * langhooks-def.h (lhd_staticp): Delete prototype.
23123         (LANG_HOOKS_STATICP): Delete.
23124         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
23125
23126         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
23127         instead of DECL_STMTs.
23128
23129 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
23130
23131         PR c/456
23132         PR c/5675
23133         PR c/19976
23134         PR c/29116
23135         PR c/31871
23136         PR c/35198
23137         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
23138         void_type_node.
23139         (fold_call_expr): Return a NOP_EXPR from folding rather than the
23140         contained expression.
23141         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
23142         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
23143         conditional expressions for C.
23144         (decl_constant_value_for_optimization): Move from
23145         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
23146         whether optimizing and that the expression is a VAR_DECL not of
23147         array type instead of doing such checks in the caller.  Do not
23148         check pedantic.  Call gcc_unreachable for C++.
23149         * c-common.def (C_MAYBE_CONST_EXPR): New.
23150         * c-common.h (c_fully_fold, c_save_expr,
23151         decl_constant_value_for_optimization): New prototypes.
23152         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
23153         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
23154         EXPR_INT_CONST_OPERANDS): Define.
23155         * c-convert.c (convert): Strip nops from expression.
23156         * c-decl.c (groktypename): Take extra parameters expr and
23157         expr_const_operands.  Update call to grokdeclarator.
23158         (start_decl): Update call to grokdeclarator.  Add statement for
23159         expressions used in type of decl.
23160         (grokparm): Update call to grokdeclarator.
23161         (push_parm_decl): Update call to grokdeclarator.
23162         (build_compound_literal): Add parameter non_const and build a
23163         C_MAYBE_COSNT_EXPR if applicable.
23164         (grokdeclarator): Take extra parameters expr and
23165         expr_const_operands.  Track expressions used in declaration
23166         specifiers and declarators.  Fold array sizes and track whether
23167         they are constant expressions and whether they are integer
23168         constant expressions.
23169         (parser_xref_tag): Set expr and expr_const_operands fields in
23170         return value.
23171         (grokfield): Update call to grokdeclarator.
23172         (start_function): Update call to grokdeclarator.
23173         (build_null_declspecs): Set expr and expr_const_operands fields in
23174         return value.
23175         (declspecs_add_type): Handle expressions in typeof specifiers.
23176         * c-parser.c (c_parser_declspecs): Set expr and
23177         expr_const_operands fields for declaration specifiers.
23178         (c_parser_enum_specifier): Likewise.
23179         (c_parser_struct_or_union_specifier): Likewise.
23180         (c_parser_typeof_specifier): Likewise.  Update call to
23181         groktypename.  Fold expression as needed.  Return expressions with
23182         type instead of adding statements.
23183         (c_parser_attributes): Update calls to c_parser_expr_list.
23184         (c_parser_statement_after_labels): Fold expression before passing
23185         to objc_build_throw_stmt.
23186         (c_parser_condition): Fold expression.
23187         (c_parser_asm_operands): Fold expression.
23188         (c_parser_conditional_expression): Use c_save_expr.  Update call
23189         to build_conditional_expr.
23190         (c_parser_alignof_expression): Update call to groktypename.
23191         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
23192         original_code.  Fold expression argument of va_arg.  Create
23193         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
23194         argument to va_arg.  Update calls to groktypename.  Fold array
23195         index for offsetof.  Verify that first argument to
23196         __builtin_choose_expr has integer type.
23197         (c_parser_postfix_expression_after_paren_type): Update calls to
23198         groktypename and build_compound_literal.  Handle expressions with
23199         side effects in type name.
23200         (c_parser_postfix_expression_after_primary): Update call to
23201         c_parser_expr_list.  Set original_code for calls to
23202         __builtin_constant_p.
23203         (c_parser_expr_list): Take extra parameter fold_p.  Fold
23204         expressions if requested.
23205         (c_parser_objc_type_name): Update call to groktypename.
23206         (c_parser_objc_synchronized_statement): Fold expression.
23207         (c_parser_objc_receiver): Fold expression.
23208         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
23209         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
23210         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
23211         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
23212         (struct c_typespec): Add elements expr and expr_const_operands.
23213         (struct c_declspecs): Add elements expr and expr_const_operands.
23214         (groktypename, build_conditional_expr, build_compound_literal):
23215         Update prototypes.
23216         (in_late_binary_op): Declare.
23217         * c-typeck.c (note_integer_operands): New function.
23218         (in_late_binary_op): New variable.
23219         (decl_constant_value_for_broken_optimization): Move to c-common.c
23220         and rename to decl_constant_value_for_optimization.
23221         (default_function_array_conversion): Do not strip nops.
23222         (default_conversion): Do not call
23223         decl_constant_value_for_broken_optimization.
23224         (build_array_ref): Do not fold result.
23225         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
23226         result when operand is a VLA.
23227         (c_expr_sizeof_type): Update call to groktypename.  Handle
23228         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
23229         result when operand names a VLA type.
23230         (build_function_call): Update call to build_compound_literal.
23231         Only fold result for calls to __builtin_* functions.  Strip
23232         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
23233         the function designator.
23234         (convert_arguments): Fold arguments.  Update call to
23235         convert_for_assignment.
23236         (build_unary_op): Handle increment and decrement of
23237         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
23238         decrement earlier.  Fold operand of increment and decrement.
23239         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
23240         built for integer operand.  Wrap returns that are INTEGER_CSTs
23241         without being integer constant expressions or that have integer
23242         constant operands without being INTEGER_CSTs.
23243         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
23244         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
23245         result is an integer constant expression or can be used in
23246         unevaluated parts of one and avoid folding and wrap as
23247         appropriate.  Fold operands before possibly doing -Wsign-compare
23248         warnings.
23249         (build_compound_expr): Wrap result for C99 if operands can be used
23250         in integer constant expressions.
23251         (build_c_cast): Update call to digest_init.  Do not ignore
23252         overflow from casting floating-point constants to integers.  Wrap
23253         results that could be confused with integer constant expressions,
23254         null pointer constants or floating-point constants.
23255         (c_cast_expr): Update call to groktypename.  Handle expressions
23256         included in type name.
23257         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
23258         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
23259         Update calls to convert_for_assignment.
23260         (convert_for_assignment): Take new parameter
23261         null_pointer_constant.  Do not strip nops or call
23262         decl_constant_value_for_broken_optimization.  Set
23263         in_late_binary_op for conversions to boolean.
23264         (store_init_value): Update call to digest_init.
23265         (digest_init): Take new parameter null_pointer_constant.  Do not
23266         call decl_constant_value_for_broken_optimization.  pedwarn for
23267         initializers not constant expressions.  Update calls to
23268         convert_for_assignment.
23269         (constructor_nonconst): New.
23270         (struct constructor_stack): Add nonconst element.
23271         (really_start_incremental_init, push_init_level, pop_init_level):
23272         Handle constructor_nonconst and nonconst element.
23273         (set_init_index): Call constant_expression_warning for array
23274         designators.
23275         (output_init_element): Fold value.  Set constructor_nonconst as
23276         applicable.  pedwarn for initializers not constant expressions.
23277         Update call to digest_init.  Call constant_expression_warning
23278         where constant initializers are required.
23279         (process_init_element): Use c_save_expr.
23280         (c_finish_goto_ptr): Fold expression.
23281         (c_finish_return): Fold return value.  Update call to
23282         convert_for_assignment.
23283         (c_start_case): Fold switch expression.
23284         (c_process_expr_stmt): Fold expression.
23285         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
23286         ensure statement expression is not evaluated in constant expression.
23287         (build_binary_op): Track whether results are integer constant
23288         expressions or may occur in such, disable folding and wrap results
23289         as applicable.  Fold operands for -Wsign-compare warnings unless
23290         in_late_binary_op.
23291         (c_objc_common_truthvalue_conversion): Handle results folded to
23292         integer constants that are not integer constant expressions.
23293         * doc/extend.texi: Document when typeof operands are evaluated,
23294         that condition of __builtin_choose_expr is an integer constant
23295         expression, and more about use of __builtin_constant_p in
23296         initializers.
23297
23298 2009-03-29  Richard Guenther  <rguenther@suse.de>
23299
23300         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
23301         propagate addresses of array references.
23302
23303 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
23304
23305         * regmove.c (perhaps_ends_bb_p): Remove.
23306         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
23307         from INSN and check that the main loop stays within that basic block.
23308         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
23309         (regmove_forward_pass): Split out from regmove_optimize.  Use
23310         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
23311         (regmove_backward_pass): Split out from regmove_optimize.  Use
23312         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
23313         (regmove_optimize): Simplify.
23314
23315 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
23316
23317         PR target/39545
23318         * config/i386/i386.c (classify_argument): Ignore flexible array
23319         member in struct and warn ABI change.
23320
23321 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
23322
23323         * config/i386/i386-protos.h (ix86_agi_dependent): New.
23324
23325         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
23326         (ix86_adjust_cost): Updated.
23327
23328 2009-03-29  Jan Hubicka  <jh@suse.cz>
23329
23330         PR middle-end/28850
23331         * tree-pass.h (pass_cleanup_eh): New function.
23332         (remove_unreachable_regions): Break code handling RTL
23333         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
23334         that can not be reached by runtime.
23335         (can_be_reached_by_runtime): New function.
23336         (label_to_region_map): New function.
23337         (num_eh_regions): New function.
23338         (rtl_remove_unreachable_regions): New function.
23339         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
23340         (remove_eh_region): New function.
23341         * except.h: Include sbitmap and vecprim.
23342         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
23343         num_eh_regions): Declare.
23344         * passes.c (init_optimization_passes): Schedule cleanup_eh.
23345         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
23346         * tree-eh.c (tree_remove_unreachable_handlers): New function.
23347         (tree_empty_eh_handler_p): New function.
23348         (cleanup_empty_eh): New function.
23349         (cleanup_eh): New function.
23350         (pass_cleanup_eh): New function.
23351
23352 2009-03-29  Jan Hubicka  <jh@suse.cz>
23353
23354         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
23355         for removed regions.
23356
23357 2009-03-29  Jan Hubicka  <jh@suse.cz>
23358
23359         * except.c (dump_eh_tree): Dump all datastructures.
23360
23361 2009-03-29  Jan Hubicka  <jh@suse.cz>
23362
23363         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
23364         (duplicate_eh_regions_1): Likewise.
23365         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
23366         vector; call EH verification.
23367         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
23368         Be ready for region being removed.
23369
23370 2009-03-29  Jan Hubicka  <jh@suse.cz>
23371
23372         * bitmap.c (bitmap_last_set_bit): New function.
23373         * bitmap.h (bitmap_last_set_bit): Declare.
23374
23375 2009-03-29  David Ayers  <ayers@fsfe.org>
23376
23377         PR objc/27377
23378         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
23379         by calling objc_compare_types and surpress warnings about
23380         incompatible C pointers that are compatible ObjC pointers.
23381
23382 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
23383
23384         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
23385         call initialize_inline_failed.
23386         (initialize_inline_failed): Move it from here ...
23387         * cgraph.c (initialize_inline_failed): ... to here.
23388         (cgraph_create_edge): Call initialize_inline_failed rather than
23389         setting inline_failed directly.
23390
23391 2009-03-29  Ben Elliston  <bje@au.ibm.com>
23392
23393         PR target/32542
23394         * sysv4.opt (msdata): Improve comment.
23395         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
23396         * sysv4.h (SVR4_ASM_SPEC): Likewise.
23397
23398 2009-03-29  Ben Elliston  <bje@au.ibm.com>
23399
23400         PR target/30451
23401         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
23402         load and store attributes.
23403
23404 2009-03-29  Ben Elliston  <bje@au.ibm.com>
23405
23406         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
23407         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
23408         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
23409         * doc/extend.texi (X86 Built-in Functions): Add index entries for
23410         __builtin_infq and __builtin_huge_valq.
23411
23412 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
23413
23414         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
23415         atmega8m1 devices.
23416         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
23417         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
23418
23419 2009-03-28  Xinliang David Li  <davidxl@google.com>
23420
23421         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
23422         (do_dbg_cnt): New function.
23423
23424 2009-03-28  Jan Hubicka  <jh@suse.cz>
23425
23426         Merge from pretty-ipa:
23427
23428         2009-03-27  Jan Hubicka  <jh@suse.cz>
23429
23430         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
23431         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
23432         * passes.c (function_called_by_processed_nodes_p): New.
23433         * ipa-pure-const.c (check_call): Fix handling of operands.
23434         (analyze_function): Dump debug output for skipped bodies.
23435         (local_pure_const): Use function_called_by_processed_nodes_p.
23436         * dwarf2out.c (reference_to_unused): Use output.
23437         * passes.c (do_per_function_toporder): Likewise.
23438
23439         2008-11-12  Jan Hubicka  <jh@suse.cz>
23440
23441         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
23442         * ipa-pure-const.c (funct_state_d): Add can throw field; make
23443         state_set_in_source enum
23444         (check_decl): Ignore memory tags; do not set fake looping flags;
23445         dump diagnostics.
23446         (check_operand, check_tree, check_rhs_var, check_lhs_var,
23447         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
23448         (check_call, analyze_function): Rewrite.
23449         (check_stmt): New.
23450         (add_new_function): Update call of analyze_function.
23451         (generate_summary): Add call of analyze_function.
23452         (propagate): Propagate can_throw; handle state_set_in_source correctly.
23453         (local_pure_const): New function.
23454         (pass_local_pure_const): New pass.
23455         * ipa-inline.c (inline_transform): Set after_inlining.
23456         * tree-eh.c (stmt_can_throw_external): New.
23457         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
23458         work with aliasing built.
23459         * tree-flow.h (stmt_can_throw_external): New.
23460         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
23461         and local pure/const pass in early and late optimization queue.
23462
23463 2009-03-28  Martin Jambor  <mjambor@suse.cz>
23464
23465         * fold-const.c (get_pointer_modulus_and_residue): New parameter
23466         allow_func_align.
23467         (fold_binary): Allow function decl aligment consideration is the
23468         second argument is integer constant one.
23469         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
23470         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
23471         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
23472
23473 2009-03-28  Jan Hubicka  <jh@suse.cz>
23474
23475         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
23476         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
23477         * function.h (rtl_data): Add nothrow flag.
23478         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
23479         set DECL_NOTHROW for AVAILABLE functions.
23480
23481 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
23482
23483         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
23484         following vector keyword has expansion starting with pixel or bool
23485         keyword, expand vector to __vector and pixel or bool to __pixel or
23486         __bool.
23487
23488         PR c++/39554
23489         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
23490         warn_if_disallowed_function_p): Removed.
23491         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
23492         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
23493         warning_if_disallowed_function_p.
23494         * flags.h (warn_if_disallowed_function_p,
23495         warn_disallowed_functions): Removed.
23496         * common.opt (Wdisallowed-function-list=): Removed.
23497         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
23498
23499 2009-03-28  Richard Guenther  <rguenther@suse.de>
23500
23501         PR tree-optimization/38723
23502         * tree-ssa-pre.c (compute_avail): Add all default definitions to
23503         the entry block.
23504
23505 2009-03-28  Jan Hubicka  <jh@suse.cz>
23506
23507         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
23508         test introduced by my previous patch.
23509
23510 2009-03-28  Richard Guenther  <rguenther@suse.de>
23511
23512         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
23513         the PHIs value undefined.
23514
23515 2009-03-28  Jan Hubicka  <jh@suse.cz>
23516
23517         * tree-pass.h (pass_fixup_cfg): New pass.
23518         * ipa-inline.c (inline_transform): Set
23519         always_inline_functions_inlined/after_inlining.
23520         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
23521         (pass_fixup_cfg): New pass.
23522         * passes.c (init_optimization_passes): Add fixup_cfg.
23523
23524 2009-03-28  Richard Guenther  <rguenther@suse.de>
23525
23526         PR tree-optimization/38458
23527         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
23528         argument use the arguments copy-of value.
23529
23530 2009-03-28  Richard Guenther  <rguenther@suse.de>
23531
23532         PR tree-optimization/38180
23533         * tree-ssa-ccp.c (get_default_value): Simplify.
23534         (likely_value): Likewise.
23535         (surely_varying_stmt_p): Properly handle VOP case.
23536         (ccp_initialize): Likewise.
23537         (ccp_fold): Handle propagating through *&.
23538         (fold_const_aggregate_ref): Also handle decls.
23539
23540 2009-03-28  Jan Hubicka  <jh@suse.cz>
23541
23542         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
23543         * cgraph.h (cgraph_node): Likewise.
23544         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
23545         (cgraph_reset_node): Use process flag.
23546         (cgraph_mark_functions_to_output): Likewise.
23547         (cgraph_expand_function): Likewise.
23548         (cgraph_expand_all_functions): Likewise.
23549         (cgraph_output_in_order): Likewise.
23550         * dwarf2out.c (reference_to_unused): Likewise.
23551         * passes.c do_per_function_toporder): Likewise.
23552
23553 2009-03-28  Jan Hubicka  <jh@suse.cz>
23554
23555         Bring from lto-branch:
23556
23557         2008-09-03  Doug Kwan  <dougkwan@google.com>
23558
23559         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
23560         enums instead of reason strings.
23561         * cgraph.c (cgraph_create_edge): Same.
23562         (cgraph_inline_failed_string): New function.
23563         * cgraph.h (cgraph_inline_failed_t): New enum type.
23564         (cgraph_inline_failed_string): New prototype.
23565         (struct cgraph_edge): Change type of INLINED_FAILED from constant
23566         char pointer to cgraph_inline_failed_t.
23567         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
23568         (cgraph_default_inline_p): Ditto.
23569         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
23570         to cgraph_inline_failed_t pointer.
23571         * cif-code.def: New file.
23572         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
23573         reason string.
23574         (cgraph_check_inline_limits): Change type of REASON to pointer to
23575         cgraph_inline_failed_t.  Replace reason strings with enums.
23576         (cgraph_default_inline_p): Ditto.
23577         (cgraph_recursive_inlining_p): Ditto.
23578         (update_caller_keys): Change type of FAILED_REASON to
23579         cgraph_inline_failed_t.
23580         (cgraph_set_inline_failed): Change type of REASON to pointer to
23581         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
23582         convert enums to strings for text output.
23583         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
23584         to be of type cgraph_inline_failed_t.  Replace reason strings with
23585         enums.  Call cgraph_inline_failed_string to covert enums
23586         to strings for text output.
23587         (cgraph_decide_inlining): Replace reason strings with enums.
23588         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
23589         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
23590         for text output.
23591         * tree-inline.c (expand_call_inline): Change type of REASON
23592         to cgraph_inline_failed_t.  Replace reason strings with enums.
23593         Call cgraph_inline_failed_string for text output.
23594         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
23595         (cgraph.o): Ditto.
23596
23597 2009-03-28  Jan Hubicka  <jh@suse.cz>
23598
23599         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
23600         cgraph_clone_node): Remove master clone handling.
23601         (cgraph_is_master_clone, cgraph_master_clone): Remove.
23602         * cgraph.h (master_clone): Remove.
23603         (cgraph_is_master_clone, cgraph_master_clone): Remove.
23604         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
23605         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
23606
23607 2009-03-28  Jan Hubicka  <jh@suse.cz>
23608
23609         * cgraph.c (cgraph_function_body_availability): Functions declared
23610         inline are always safe to assume that it is not going to be replaced.
23611
23612 2009-03-28  Richard Guenther  <rguenther@suse.de>
23613
23614         PR tree-optimization/38513
23615         * tree-ssa-pre.c (eliminate): Remove redundant stores.
23616         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
23617         EXC_PTR_EXPR and FILTER_EXPR.
23618         (get_ref_from_reference_ops): Likewise.
23619
23620 2009-03-28  Richard Guenther  <rguenther@suse.de>
23621
23622         PR tree-optimization/38968
23623         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
23624         Use FLOOR_MOD_EXPR to compute misalignment.
23625
23626 2009-03-28  Richard Guenther  <rguenther@suse.de>
23627
23628         PR tree-optimization/37795
23629         * tree.h (combine_comparisons): Declare.
23630         * fold-const.c (combine_comparisons): Export.
23631         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
23632         comparisons.
23633         (ifcombine_iforif): Use combine_comparisons.
23634
23635 2009-03-28  Jan Hubicka  <jh@suse.cz>
23636
23637         * tree-eh.c (inlinable_call_p): New function.
23638         (make_eh_edges): Use it.
23639         (verify_eh_edges): Use it.
23640         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
23641         * except.c (reachable_next_level): Add inlinable_function argument
23642         (sjlj_find_directly_reachable_regions): Update.
23643         (add_reachable_handler): Do not set saw_any_handlers.
23644         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
23645         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
23646         Add new inlinable call parameter.
23647         (can_throw_internal, can_throw_external): Update.
23648         * except.h (can_throw_internal_1, can_throw_external_1,
23649         foreach_reachable_handler): Update declaration.
23650
23651 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
23652
23653         * config/arm/t-arm-coff, config/h8300/coff.h,
23654         config/i386/i386-aout.h, config/i386/i386-coff.h,
23655         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
23656         config/pdp11/2bsd.h, config/rs6000/aix41.h,
23657         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
23658         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
23659         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
23660         sys-types.h: Remove.
23661         * Makefile.in: Remove protoize and fixproto support and references
23662         in comments.
23663         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
23664         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
23665         Remove.
23666         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
23667         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
23668         unprotoize$(exeext).
23669         (rest.encap): Don't depend on $(STMP_FIXPROTO)
23670         (.PHONY): Don't depend on proto.
23671         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
23672         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
23673         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
23674         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
23675         build/gen-protos.o, build/scan.o, xsys-protos.h,
23676         build/fix-header$(build_exeext), build/fix-header.o,
23677         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
23678         stmp-install-fixproto): Remove.
23679         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
23680         SYSCALLS.c or fixproto files.
23681         (install-common): Don't install protoize.
23682         (install-headers-tar, install-headers-cpio, install-headers-cp):
23683         Don't depend on $(STMP_FIXPROTO).
23684         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
23685         install fixproto files or write out fixproto settings.
23686         (uninstall): Don't uninstall protoize.
23687         * config.gcc (use_fixproto): Remove.
23688         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
23689         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
23690         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
23691         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
23692         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
23693         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
23694         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
23695         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
23696         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
23697         * config/t-vxworks (STMP_FIXPROTO): Remove.
23698         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
23699         STMP_FIXPROTO): Remove.
23700         * config.in, configure: Regenerate.
23701         * crtstuff.c (gid_t, uid_t): Don't undefine.
23702         * doc/install.texi: Change m68k-coff to m68k-elf in example.
23703         (arm-*-coff, arm-*-aout: Remove target entries.
23704         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
23705         Remove mention of AIX 4.1.
23706         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
23707         * doc/invoke.texi (Running Protoize): Remove.
23708         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
23709         (Protoize Caveats): Remove.
23710         * tsystem.h: Update comments on headers assumed to exist.
23711
23712 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
23713
23714         * genautomata.c: Add a new year to the copyright.  Add a new
23715         reference.
23716         (struct insn_reserv_decl): Add comments for member bypass_list.
23717         (find_bypass): Remove.
23718         (insert_bypass): New.
23719         (process_decls): Use insert_bypass.
23720         (output_internal_insn_latency_func): Output all bypasses with the
23721         same input insn in one switch case.
23722
23723         * rtl.def (define_bypass): Describe bypass choice.
23724         * doc/md.texi (define_bypass): Ditto.
23725
23726 2009-03-27  Richard Guenther  <rguenther@suse.de>
23727
23728         * gimplify.c (mark_addressable): Export.
23729         * tree-flow.h (mark_addressable): Declare.
23730         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
23731         * tree-ssa.c (verify_phi_args): Verify that address taken
23732         variables have TREE_ADDRESSABLE set.
23733
23734 2009-03-27  Richard Guenther  <rguenther@suse.de>
23735
23736         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
23737         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
23738         Do not mark decls TREE_ADDRESSABLE.
23739         (build_fold_addr_expr): Adjust.
23740         (fold_addr_expr): Remove.
23741         (fold_unary): Use build_fold_addr_expr.
23742         (fold_comparison): Likewise.
23743         (split_address_to_core_and_offset): Likewise.
23744         * coverage.c (tree_coverage_counter_addr): Mark the array decl
23745         TREE_ADDRESSABLE.
23746         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
23747         (gimplify_modify_expr_to_memcpy): Mark source and destination
23748         addressable.
23749         * omp-low.c (create_omp_child_function): Mark the object decl
23750         TREE_ADDRESSABLE.
23751         (lower_rec_input_clauses): Mark the var we take the address of
23752         TREE_ADDRESSABLE.
23753         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
23754
23755 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23756
23757         PR middle-end/39315
23758         * cfgexpand.c (expand_one_stack_var_at): Change alignment
23759         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
23760
23761 2009-03-27  Richard Guenther  <rguenther@suse.de>
23762
23763         PR tree-optimization/39120
23764         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
23765         constraints.
23766         (handle_lhs_call): Process return constraints.  Add escape
23767         constraints if necessary.
23768         (handle_const_call): Fill out return constraints.  Make nested
23769         case more precise.  Avoid consttmp if possible.
23770         (handle_pure_call): Fill out return constraints.  Avoid
23771         callused if possible.
23772         (find_func_aliases): Simplify call handling.
23773
23774 2009-03-27  Richard Guenther  <rguenther@suse.de>
23775
23776         PR tree-optimization/39120
23777         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
23778         as a representative.
23779         (solve_graph): Do propagate CALLUSED.
23780         (handle_pure_call): Use a scalar constraint from CALLUSED for
23781         the return value.
23782         (find_what_p_points_to): CALLUSED shall not appear in poins-to
23783         solutions.
23784
23785 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23786
23787         PR c/39323
23788         * c-common.c (handle_aligned_attribute): Properly check alignment
23789         overflow.  Use (1U << i) instead of (1 << i).
23790
23791         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
23792
23793         * expr.h (get_mem_align_offset): Updated.
23794
23795         * tree.h (tree_decl_common): Change align to "unsigned int" and
23796         move it before pointer_alias_set.
23797
23798 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23799             Jakub Jelinek  <jakub@redhat.com>
23800
23801         PR target/38034
23802         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
23803         gr_register_operand with gr_reg_or_0_operand.
23804         (cmpxchg_rel_di): Likewise.
23805         (sync_lock_test_and_set<mode>): Likewise.
23806
23807 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23808
23809         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
23810         (true_regnum): Likewise.
23811
23812         * rtlanal.c (subreg_info): Moved to ...
23813         * rtl.h (subreg_info): Here.  New.
23814         (subreg_get_info): New.
23815
23816         * rtlanal.c (subreg_get_info): Make it extern.
23817
23818 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23819
23820         PR target/39472
23821         * config/i386/i386.c (ix86_abi): New.
23822         (override_options): Handle -mabi=.
23823         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
23824         (ix86_call_abi_override): Likewise.
23825         (init_cumulative_args): Likewise.
23826         (function_arg_advance): Likewise.
23827         (function_arg_64): Likewise.
23828         (function_arg): Likewise.
23829         (ix86_pass_by_reference): Likewise.
23830         (ix86_function_value_regno_p): Likewise.
23831         (ix86_build_builtin_va_list_abi): Likewise.
23832         (setup_incoming_varargs_64): Likewise.
23833         (is_va_list_char_pointer): Likewise.
23834         (ix86_init_machine_status): Likewise.
23835         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
23836         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
23837         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
23838         (ix86_function_abi): Make it static and return enum calling_abi.
23839         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
23840         with ix86_abi.
23841         (ix86_fn_abi_va_list): Updated.
23842
23843         * config/i386/i386.h (ix86_abi): New.
23844         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
23845         (CONDITIONAL_REGISTER_USAGE): Likewise.
23846         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
23847         (machine_function): Likewise.
23848
23849         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
23850         with ix86_abi.
23851         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
23852         (STACK_BOUNDARY): Likewise.
23853         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
23854
23855         * config/i386/i386.opt (mabi=): New.
23856
23857         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
23858         return enum calling_abi.
23859         (ix86_function_type_abi): Likewise.
23860         (ix86_function_abi): Removed.
23861
23862         * doc/invoke.texi: Document -mabi= option for x86.
23863
23864 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23865
23866         * builtins.c (real_dconstp): Delete.
23867         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
23868
23869 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
23870             Jakub Jelinek  <jakub@redhat.com>
23871
23872         PR debug/37959
23873         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
23874         (gen_subprogram_die): When a function is explicit, generate the
23875         DW_AT_explicit attribute.
23876         * langhooks.h (struct lang_hooks_for_decls): Add
23877         function_decl_explicit_p langhook.
23878         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
23879         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
23880
23881 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
23882
23883         * builtins.c (fold_builtin_memory_op): Optimize memmove
23884         into memcpy if we can prove source and destination don't overlap.
23885
23886         * tree-inline.c: Include gt-tree-inline.h.
23887         (clone_fn_id_num): New variable.
23888         (clone_function_name): New function.
23889         (tree_function_versioning): Use it.
23890         * Makefile.in (GTFILES): Add tree-inline.c.
23891
23892 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
23893
23894         * BASE-VER: Change to 4.5.0.
23895
23896 2009-03-27  Xinliang David Li  <davidxl@google.com>
23897
23898         PR tree-optimization/39557
23899         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
23900
23901 2009-03-27  Xinliang David Li  <davidxl@google.com>
23902
23903         PR tree-optimization/39548
23904         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
23905         candidate check.
23906
23907 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23908
23909         * c-common.c (pointer_int_sum): Use %wd on return from
23910         tree_low_cst.
23911
23912 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23913
23914         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
23915         on return from tree_low_cst.
23916
23917 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23918
23919         PR c++/36799
23920         * ginclude/stdarg.h (va_copy): Define also for
23921         __GXX_EXPERIMENTAL_CXX0X__.
23922
23923 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23924
23925         PR c++/35652
23926         * builtins.h (c_strlen): Do not warn here.
23927         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
23928         * c-common.c (pointer_int_sum): Take an explicit location.
23929         Warn about offsets out of bounds.
23930         * c-common.h (pointer_int_sum): Adjust declaration.
23931
23932 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23933
23934         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
23935         markup glitch.
23936
23937 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
23938
23939         PR c++/39554
23940         * opts.c (warn_if_disallowed_function_p): Don't assume
23941         get_callee_fndecl must return non-NULL.
23942
23943 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
23944
23945         PR rtl-optimization/39522
23946         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
23947         when reg_reloaded_valid is set.
23948
23949 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23950
23951         * config/spu/divv2df3.c: New file.
23952         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
23953         (DPBIT_FUNCS): Filter out _div_df.
23954
23955 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
23956
23957         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
23958         a jump insn, count that jump in the distance to the loop start.
23959
23960 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
23961
23962         PR target/39523
23963         * config/sh/sh.c (calc_live_regs): Fix condition for global
23964         registers except PIC_OFFSET_TABLE_REGNUM.
23965
23966 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
23967
23968         PR/39518
23969         * doc/invoke.texi (-mconsole): New.
23970         (-mcygwin): New.
23971         (-mno-cygwin): New.
23972         (-mdll): New.
23973         (-mnop-fun-dllimport): New.
23974         (-mthread): New.
23975         (-mwin32): New.
23976         (-mwindows): New.
23977         (sub section "i386 and x86-64 Windows Options"): New.
23978
23979 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
23980
23981         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
23982         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
23983
23984 2009-03-25  Richard Guenther  <rguenther@suse.de>
23985
23986         PR middle-end/39497
23987         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
23988         of -Wno-error.
23989
23990 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
23991
23992         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
23993         neither of haifa/selective schedulers are working.
23994
23995 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23996
23997         * doc/invoke.texi (Debugging Options): Fix description of
23998         -fno-merge-debug-strings.
23999
24000 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
24001
24002         * config/cris/libgcc.ver: New version-script.
24003         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
24004
24005         * configure.ac <GAS features, nop mnemonic>: Add pattern
24006         crisv32-*-* for "nop".
24007         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
24008         * configure: Regenerate.
24009
24010 2009-03-24  Ira Rosen  <irar@il.ibm.com>
24011
24012         PR tree-optimization/39529
24013         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
24014         mark_sym_for_renaming for the tag copied to the new vector
24015         pointer.
24016
24017 2009-03-24  Arthur Loiret  <aloiret@debian.org>
24018
24019         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
24020         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
24021         EXTRA_SPEC_FUNCTIONS.
24022         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
24023         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
24024         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
24025         -march and -mtune options.
24026
24027 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
24028
24029         * config/m68k/t-rtems: Add m5329 multilib.
24030
24031 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
24032             Jakub Jelinek  <jakub@redhat.com>
24033
24034         PR debug/39524
24035         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
24036         nodes.
24037
24038 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
24039
24040         PR c/39495
24041         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
24042         instead of c_parser_expression_conv, if original_code isn't one of the
24043         4 allowed comparison codes, fail.
24044
24045 2009-03-23  Richard Guenther  <rguenther@suse.de>
24046
24047         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
24048         * tree.h (struct tree_type): Likewise.
24049         * reload.h (struct insn_chain): Likewise.
24050         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
24051         * function.h (struct function): Likewise.
24052         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
24053
24054 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
24055
24056         PR tree-optimization/39516
24057         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
24058
24059 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
24060
24061         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
24062         should be set true if BITS_PER_WORD of target is bigger than 32
24063
24064 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
24065
24066         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
24067         Translate -B-options to -rpath-link.  Correct existing
24068         rpath-link and conditionalize on !nostdlib.
24069
24070 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24071
24072         * doc/extend.texi (Function Attributes, Variable Attributes):
24073         Fix typos.
24074         * doc/invoke.texi (Debugging Options, Optimize Options)
24075         (i386 and x86-64 Options, MCore Options): Likewise.
24076
24077 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
24078
24079         PR debug/37890
24080         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
24081         it for block local namespace aliases.
24082         (gen_decl_die): Pass context_die to gen_namespace_die.
24083
24084 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
24085
24086         PR c/39495
24087         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
24088         minimum or maximum value.
24089
24090 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
24091
24092         * reginfo.c (globalize_reg): Recompute derived reg sets.
24093
24094 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
24095
24096         PR target/39063
24097         * libgcc2.c (mprotect): Do not use signed arguments for
24098         VirtualProtect, use DWORD arguments.  Also fix the 'may
24099         be used uninitialized' warning for the np variable.
24100
24101 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
24102
24103         PR target/39496
24104         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
24105         functions using regparm calling conventions when not optimizing.
24106         (ix86_function_sseregparm): Similarly for sseregparm calling
24107         conventions.
24108
24109 2009-03-19  Li Feng  <nemokingdom@gmail.com>
24110
24111         PR middle-end/39500
24112         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
24113         dependence if the first conflict is after niter iterations.
24114
24115 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
24116
24117         PR middle-end/38609
24118         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
24119         functions with dynamic stack-pointer adjustments.
24120
24121 2009-03-19  Ben Elliston  <bje@au.ibm.com>
24122
24123         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
24124         option; change to -msdata=data.
24125
24126 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24127
24128         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
24129         and -fopenmp.
24130
24131 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
24132
24133         PR target/35180
24134         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
24135
24136 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
24137
24138         * doc/invoke.texi (Code Gen Options): Expand discussion of
24139         -fno-common.
24140
24141 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
24142
24143         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
24144         * matrix-reorg.c (struct matrix_info): Likewise.
24145         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
24146         * rtl.h (struct mem_attrs): Likewise.
24147         * df.h (struct df): Likewise.
24148         * tree-data-ref.h (struct data_dependence_relation): Likewise.
24149         * ira-int.h (struct ira_allocno): Likewise.
24150         * df-scan.c (struct df_collection_rec): Likewise.
24151         * ira.c (struct equivalence): Likewise.
24152         * function.c (struct temp_slot): Likewise.
24153         * cfgloop.h (struct loop): Likewise.
24154
24155         PR debug/39485
24156         * function.c (use_register_for_decl): When not optimizing, disregard
24157         register keyword for variables with types containing methods.
24158
24159 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
24160
24161         PR middle-end/39447
24162         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
24163         (is_simple_operand): Call contains_component_ref_p before calling data
24164         reference analysis that would fail on COMPONENT_REFs.
24165
24166         * tree-vrp.c (search_for_addr_array): Fix formatting.
24167
24168 2009-03-18  Richard Guenther  <rguenther@suse.de>
24169
24170         * tree-vect-transform.c (vect_loop_versioning): Fold the
24171         generated comparisons.
24172         * tree-vectorizer.c (set_prologue_iterations): Likewise.
24173         (slpeel_tree_peel_loop_to_edge): Likewise.
24174
24175 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24176
24177         PR middle-end/37805
24178         * opts.c (print_specific_help): In addition to `undocumented',
24179         accept `separate' and `joined' flags if passed alone.  Describe
24180         output by the first matched one of those.
24181         (common_handle_option): Skip over empty strings.
24182         * gcc.c (display_help): Fix help string for `--help='.
24183         * doc/invoke.texi (Option Summary, Overall Options): With
24184         `--help=', classes and qualifiers can both be repeated, but
24185         only the latter can be negated.  One should not pass only
24186         negated qualifiers.  Fix markup and examples.
24187
24188         Revert
24189         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
24190         PR middle-end/37805
24191         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
24192         and -fhelp=separate.
24193
24194 2009-03-17  Jing Yu  <jingyu@google.com>
24195
24196         PR middle-end/39378
24197         * function.h (struct rtl_data): Move is_thunk from here...
24198         (struct function): ...to here.
24199         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
24200         * varasm.c (assemble_start_function): Change is_thunk from crtl to
24201         cfun.
24202         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
24203         cfun.
24204         (alpha_does_function_need_gp, alpha_start_function): Likewise.
24205         (alpha_output_function_end_prologue): Likewise.
24206         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
24207         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
24208         (rs6000_output_function_epilogue): Likewise.
24209         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
24210
24211 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
24212
24213         PR target/39482
24214         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
24215         from different units in a single alternative.
24216         (*truncdfsf_i387): Ditto.
24217         (*truncxfsf2_mixed): Ditto.
24218         (*truncxfdf2_mixed): Ditto.
24219
24220 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
24221
24222         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
24223         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
24224
24225         PR debug/39474
24226         * tree-ssa-live.c (remove_unused_locals): Don't remove local
24227         unused non-artificial variables when not optimizing.
24228
24229         PR debug/39471
24230         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
24231         DW_TAG_imported_module even if decl is IMPORTED_DECL with
24232         NAMESPACE_DECL in its DECL_INITIAL.
24233
24234         PR middle-end/39443
24235         * optabs.c (set_user_assembler_libfunc): New function.
24236         * expr.h (set_user_assembler_libfunc): New prototype.
24237         * c-common.c: Include libfuncs.h.
24238         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
24239         for memcmp, memset, memcpy, memmove and abort.
24240         * Makefile.in (c-common.o): Depend on libfuncs.h.
24241
24242         PR debug/39412
24243         * dwarf2out.c (gen_inlined_enumeration_type_die,
24244         gen_inlined_structure_type_die, gen_inlined_union_type_die,
24245         gen_tagged_type_instantiation_die): Removed.
24246         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
24247         do nothing.
24248
24249 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
24250
24251         PR testsuite/38526
24252         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
24253         its use.
24254         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
24255         (check-parallel-%): Ditto.
24256         (check-consistency): Ditto.
24257
24258 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
24259
24260         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
24261         local variable rhs by NULL_TREE.
24262
24263 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
24264
24265         PR target/39477
24266         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
24267
24268 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
24269
24270         PR target/39476
24271         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
24272
24273 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
24274
24275         PR target/39473
24276         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
24277         for ms->sysv ABI calls only in 64bit mode.
24278
24279         * config/i386/i386.md (untyped_call): Support 32bit.
24280
24281 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24282
24283         * doc/extend.texi: Replace x86_65 with x86_64.
24284
24285 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
24286
24287         PR tree-optimization/39455
24288         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
24289         mismatches for POINTER_TYPE_P (type).
24290         (number_of_iterations_le): Likewise.
24291
24292 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
24293
24294         * config/picochip/picochip.c: Removed profiling support.
24295         * config/picochip/picochip.md: Removed profiling instruction.
24296         * config/picochip/picochip.h: Removed profiling builtin.
24297
24298 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
24299
24300         * doc/install.texi (--with-host-libstdcxx): Document.
24301
24302 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
24303
24304         PR target/34299
24305         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
24306         generate a warning if the function name does not begin with
24307         "__vector" and the function has either the 'signal' or 'interrupt'
24308         attribute, from here to ...
24309         (avr_declare_function_name): ...here. New function.
24310         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
24311         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
24312
24313 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
24314
24315         PR bootstrap/39454
24316         * cse.c (fold_rtx): Don't modify original const_arg1 when
24317         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
24318         separate variable instead.
24319         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
24320         from out of range shift counts.
24321         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
24322
24323 2009-03-13  Catherine Moore  <clm@codesourcery.com>
24324
24325         * config/i386/x-mingw32 (host-mingw32.o): Replace
24326         diagnostic.h with $(DIAGNOSTIC_H).
24327
24328 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
24329
24330         PR target/39431
24331         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
24332         predicate.
24333         * config/i386/sync.md (sync_compare_and_swap<mode>,
24334         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
24335         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
24336         into a register.
24337         (sync_double_compare_and_swapdi_pic,
24338         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
24339         cmpxchg8b_pic_memory_operand instead of just memory_operand.
24340
24341 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
24342
24343         PR target/39445
24344         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
24345
24346 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
24347
24348         PR target/39327
24349         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
24350         (avx_addsubv4df3): Likewise.
24351         (*avx_addsubv4sf3): Likewise.
24352         (sse3_addsubv4sf3): Likewise.
24353
24354 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
24355
24356         PR target/38824
24357         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
24358
24359 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
24360
24361         PR debug/39432
24362         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
24363         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
24364         registers for allocnos created from user-defined variables.
24365
24366 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24367
24368         PR target/39181
24369         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
24370         of non-integer mode as well.
24371
24372 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
24373
24374         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
24375         for functions for which the parameter types are unknown.
24376
24377 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
24378
24379         PR target/39137
24380         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
24381         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
24382         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
24383         * config/i386/i386.c (ix86_local_alignment): For
24384         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
24385         long long variables on the stack to avoid dynamic realignment.
24386         Allow the first argument to be a decl rather than type.
24387         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
24388
24389 2009-03-11  Nick Clifton  <nickc@redhat.com>
24390
24391         PR target/5362
24392         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
24393         options.
24394         Add description to mno-lsim option.
24395         * config/mcore/mcore.h: Remove comment about deprecated m4align
24396         option.
24397         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
24398         * doc/invoke.texi: Add description of mno-lsim and
24399         mstack-increment options.
24400
24401         * config/fr30/fr30.opt: Document the -mno-lsim option.
24402         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
24403         and -mno-lsim options.
24404
24405 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24406
24407         * fold-const.c (fold_comparison): Only call fold_inf_compare
24408         if the mode supports infinities.
24409
24410 2009-03-11  Jason Merrill  <jason@redhat.com>
24411
24412         PR debug/39086
24413         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
24414         end already did.  Notice GIMPLE_CALL modifications of the result.
24415         Don't copy debug information from an ignored decl or a decl from
24416         another function.
24417
24418 2009-03-10  Richard Guenther  <rguenther@suse.de>
24419             Nathan Froyd  <froydnj@codesourcery.com>
24420
24421         PR middle-end/37850
24422         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
24423         (__divMODE3): Likewise.
24424
24425 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
24426
24427         PR tree-optimization/39394
24428         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
24429         DECL_SIZE_UNIT of variable length FIELD_DECLs.
24430
24431 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24432
24433         * recog.c (verfiy_changes): Disallow renaming of hard regs in
24434         inline asms for register asm ("") declarations.
24435
24436 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
24437
24438         * fold-const.c (fold_unary): Fix comment.
24439
24440 2009-03-07  Jan Hubicka  <jh@suse.cz>
24441
24442         PR target/39361
24443         * tree-inline.c (setup_one_parameter): Do replacement of const
24444         argument by constant in SSA form.
24445
24446 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24447
24448         PR middle-end/38028
24449         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
24450         determine alignment passed to assign_stack_local.
24451         (assign_parms_unsplit_complex): Likewise.
24452         * except.c (sjlj_build_landing_pads): Likewise.
24453
24454 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
24455
24456         PR middle-end/39360
24457         * tree-flow.h (add_referenced_var): Return bool instead of void.
24458         * tree-dfa.c (add_referenced_var): Return result of
24459         referenced_var_check_and_insert call.
24460         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
24461         of referenced_var_check_and_insert.
24462
24463         PR debug/39372
24464         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
24465         (gen_variable_die): Emit DW_AT_location on abstract static variable's
24466         DIE, don't emit it if abstract origin already has it.
24467         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
24468         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
24469
24470 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
24471
24472         * genpreds.c (needs_variable): Fix parentheses at variable name
24473         detection.
24474         (write_tm_constrs_h): Indent generated code.
24475
24476 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24477
24478         * doc/extend.texi (Function Attributes): Add documentation
24479         for isr attributes.
24480
24481 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
24482
24483         PR debug/39387
24484         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
24485         take locus from its DECL_SOURCE_LOCATION instead of input_location.
24486
24487 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
24488
24489         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
24490         the loop as bad.
24491
24492 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
24493
24494         PR debug/39379
24495         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
24496         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
24497
24498 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
24499
24500         * config/i386/i386.md (R8_REG, R9_REG): New constants.
24501         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
24502         constants instead of magic numbers.
24503         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
24504         (QI_REG_P): Ditto.
24505         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
24506         (x86_64_ms_abi_int_parameter_registers): Ditto.
24507         (x86_64_int_return_registers): Ditto.
24508         (ix86_maybe_switch_abi): Ditto.
24509         (ix86_expand_call): Ditto for clobbered_registers array.
24510         (ix86_hard_regno_mode_ok): Ditto.
24511         (x86_extended_QIreg_mentioned_p): Ditto.
24512
24513 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
24514
24515         PR tree-optimization/39349
24516         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
24517
24518         * combine.c (gen_lowpart_for_combine): Use omode when generating
24519         clobber.
24520
24521 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
24522
24523         PR rtl-optimization/39235
24524         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
24525
24526 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
24527
24528         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
24529
24530 2009-03-04  Richard Guenther  <rguenther@suse.de>
24531
24532         PR tree-optimization/39362
24533         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
24534         that occur in abnormal PHIs should be varying.
24535
24536 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
24537
24538         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
24539         Extend comments.
24540         (simple_iv):  Take loop as an argument instead of statement.
24541         * tree-scalar-evolution.h (simple_iv): Declaration changed.
24542         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
24543         to simple_iv.
24544         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
24545         Ditto.
24546         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
24547         * matrix-reorg.c (analyze_transpose): Ditto.
24548         * tree-data-ref.c (dr_analyze_innermost): Ditto.
24549         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
24550         * tree-predcom.c (ref_at_iteration): Ditto.
24551         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
24552
24553 2009-03-04  Richard Guenther  <rguenther@suse.de>
24554
24555         PR tree-optimization/39358
24556         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
24557         escaped_id and callused_id.
24558         (solve_graph): Likewise.
24559
24560 2009-03-04  Richard Guenther  <rguenther@suse.de>
24561
24562         PR tree-optimization/39339
24563         * tree-sra.c (try_instantiate_multiple_fields): Make it
24564         no longer ICE on the above.
24565
24566 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
24567
24568         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
24569         that fits within Pmode.
24570
24571 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
24572
24573         PR middle-end/10109
24574         * tm.texi (LIBCALL_VALUE): Update description.
24575
24576 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
24577
24578         PR middle-end/34443
24579         * doc/extend.texi (section): Update description.
24580
24581 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
24582
24583         PR middle-end/39345
24584         * tree-inline.c (remapped_type): New.
24585         (can_be_nonlocal): Call remapped_type instead of remap_type.
24586
24587 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
24588
24589         PR fortran/39354
24590         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
24591         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
24592
24593 2009-03-03  Richard Guenther  <rguenther@suse.de>
24594
24595         PR middle-end/39272
24596         * tree.c (tree_nonartificial_location): New function.
24597         * tree.h (tree_nonartificial_location): Declare.
24598         * builtins.c (expand_builtin_memory_chk): Provide location
24599         of the call location for artificial function pieces.
24600         (maybe_emit_chk_warning): Likewise.
24601         (maybe_emit_sprintf_chk_warning): Likewise.
24602         (maybe_emit_free_warning): Likewise.
24603         * expr.c (expand_expr_real_1): Likewise.
24604
24605 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
24606
24607         PR tree-optimization/39343
24608         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
24609         COMPONENT_REF t has ARRAY_TYPE.
24610
24611 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
24612
24613         PR middle-end/39335
24614         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
24615         when the type precision of the induction variable should be
24616         larger than the type precision of nit.
24617         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
24618         * graphite.c (graphite_loop_normal_form): Same.
24619         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
24620
24621 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
24622
24623         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
24624         (*call_1_rex64_ms_sysv): Use named constants instead of magic
24625         numbers to describe clobbered registers.
24626         (*call_value_0_rex64_ms_sysv): Ditto.
24627         * config/i386/mmx.md (mmx_emms): Ditto.
24628         (mmx_femms): Ditto.
24629
24630 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
24631
24632         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
24633         of ABI_64.
24634
24635 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24636
24637         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
24638         (spu_section_type_flags): New function.
24639
24640 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
24641
24642         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
24643         reg_class_contents of FLOAT_REGS into a temporary.
24644
24645 2009-03-02  Richard Guenther  <rguenther@suse.de>
24646             Ira Rosen  <irar@il.ibm.com>
24647
24648         PR tree-optimization/39318
24649         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
24650         information to the vectorized statement.
24651
24652 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
24653
24654         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
24655         variable.  Use defined names instead of magic constants for REX SSE
24656         registers.
24657
24658 2009-03-01  Richard Guenther  <rguenther@suse.de>
24659
24660         PR tree-optimization/39331
24661         * omp-low.c (lower_send_shared_vars): Do not receive new
24662         values for the reference of DECL_BY_REFERENCE parms or results.
24663
24664 2009-03-01  Jan Hubicka  <jh@suse.cz>
24665
24666         PR debug/39267
24667         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
24668         BLOCK_NONLOCALIZED_VAR): New macros.
24669         (tree_block): Add nonlocalized_vars.
24670         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
24671         gen_decl_die): Add origin argument.  Allow generation of die with
24672         origin at hand only.
24673         (gen_member_die, gen_type_die_with_usage, force_decl_die,
24674         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
24675         of gen_*.
24676         (gen_block_die): Fix checking for unused blocks.
24677         (process_scope_var): Break out from .... ; work with origins only.
24678         (decls_for_scope) ... here; process nonlocalized list.
24679         (dwarf2out_ignore_block): Look for nonlocalized vars.
24680         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
24681         vars.
24682         (dump_scope_block): Dump them.
24683         * tree-inline.c (remap_decls): Handle nonlocalized vars.
24684         (remap_block): Likewise.
24685         (can_be_nonlocal): New predicate.
24686         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
24687
24688 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24689
24690         * configure: Regenerate.
24691
24692 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24693
24694         * optc-gen.awk: No need to duplicate option flags twice.
24695         Reuse help texts for duplicate options which do not have any.
24696
24697         * gcc.c (display_help): Document --version.
24698
24699         * gcc.c (main): If print_help_list and verbose_flag, ensure
24700         driver output comes before subprocess output.
24701
24702         * optc-gen.awk: Assign all remaining fields to help string,
24703         space-separated, for multi-line help in *.opt.
24704
24705         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
24706         -Wno-pedantic-ms-format is for MinGW targets only.
24707
24708         * doc/options.texi (Option file format): Fix bad indentation,
24709         restoring dropped sentence.
24710
24711 2009-02-28  Jan Hubicka  <jh@suse.cz>
24712
24713         * tree-inline.c (tree_function_versioning): Output debug info.
24714
24715 2009-02-28  Jan Hubicka  <jh@suse.cz>
24716
24717         PR debug/39267
24718         * tree-inline.c (setup_one_parameter): Do not copy propagate
24719         arguments when not optimizing.
24720
24721 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
24722
24723         PR target/39327
24724         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
24725         (avx_addsubv4df3): Likewise.
24726         (*avx_addsubv4sf3): Likewise.
24727         (sse3_addsubv4sf3): Likewise.
24728         (*avx_addsubv2df3): Likewise.
24729         (sse3_addsubv2df3): Likewise.
24730         (avx_unpckhps256): Correct item selectors.
24731         (avx_unpcklps256): Likewise.
24732         (avx_unpckhpd256): Likewise.
24733         (avx_unpcklpd256): Likewise.
24734
24735 2009-02-28  Jan Hubicka  <jh@suse.cz>
24736
24737         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
24738         static vars.
24739         (copy_arguments_for_versioning): If var is declared don't declare it.
24740         (tree_function_versioning): First setup substitutions and then copy
24741         args.
24742
24743 2009-02-27  Jan Hubicka  <jh@suse.cz>
24744
24745         PR debug/39267
24746         * cgraph.h (varpool_output_debug_info): Remove.
24747         * cgraphunit.c (varpool_output_debug_info): Remove.
24748         * dwarf2out.c (deferred_locations_struct): New struct
24749         (deferred_locations): New type.
24750         (deferred_locations_list): New static var.
24751         (deffer_location): New function.
24752         (gen_variable_die): Use it.
24753         (decls_for_scope): Output info on local static vars.
24754         (dwarf2out_finish): Process deferred locations.
24755         * varpool.c (varpool_output_debug_info): Remove.
24756
24757 2009-02-27  Jan Hubicka  <jh@suse.cz>
24758
24759         PR debug/39267
24760         * tree.h (TREE_PROTECTED): Fix comment.
24761         (BLOCK_HANDLER_BLOCK): Remove.
24762         (struct tree_block): Remove handler_block add body_block.
24763         (inlined_function_outer_scope_p): New.
24764         (is_body_block): Remove.
24765         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
24766         * dwarf2out.c (is_inlined_entry_point): Remove.
24767         (add_high_low_attributes): Use inlined_function_outer_scope_p.
24768         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
24769         code.
24770         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
24771         * gimplify.c (gimplify_expr): Gimplify body blocks.
24772         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
24773         block with multiple subblocks.
24774         (dump_scope_block): Prettier output; dump more flags and info.
24775         (dump_scope_blocks): New.
24776         (remove_unused_locals): Use dump_scope_blocks.
24777         * tree-flow.h (dump_scope_blocks): Declare.
24778         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
24779         * stmt.c (is_body_block): Remove.
24780         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
24781         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
24782
24783 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
24784
24785         PR middle-end/39308
24786         * graphite.c (graphite_loop_normal_form): Do not call
24787         number_of_iterations_exit from a gcc_assert.
24788
24789 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24790
24791         * config/s390/s390.c (s390_swap_cmp): Look for conditional
24792         jumps if COND is NULL.
24793         (find_cond_jump): New function.
24794         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
24795         * config/s390/s390.md: Remove z10_cobra attribute value.
24796
24797 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
24798
24799         * config/alpha/alpha.h (alpha_expand_mov): Return false if
24800         force_const_mem returns NULL_RTX.
24801
24802 2009-02-26  Jan Hubicka  <jh@suse.cz>
24803
24804         PR debug/39267
24805         * cgraph.h (varpool_output_debug_info): Remove.
24806         * cgraphunit.c (varpool_output_debug_info): Remove.
24807         * dwarf2out.c (deferred_locations_struct): New struct
24808         (deferred_locations): New type.
24809         (deferred_locations_list): New static var.
24810         (deffer_location): New function.
24811         (gen_variable_die): Use it.
24812         (decls_for_scope): Output info on local static vars.
24813         (dwarf2out_finish): Process deferred locations.
24814         * varpool.c (varpool_output_debug_info): Remove.
24815
24816 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
24817
24818         PR rtl-optimization/39241
24819         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
24820         to subreg_offset_representable_p.
24821
24822 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
24823
24824         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
24825         execute function prototype.  Get f and nregs from max_reg_num
24826         and get_insns.  Remove the first backward pass as it's dead,
24827         guard the forward pass by flag_expensive_optimizations.
24828         (rest_of_handle_regmove): Delete.
24829         (pass_regmove): Replace it with regmove_optimize.
24830
24831 2009-02-25  Martin Jambor  <mjambor@suse.cz>
24832
24833         PR tree-optimization/39259
24834         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
24835         calls_alloca function flags.
24836         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
24837         calls are detected.
24838
24839 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
24840
24841         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
24842         flags_set_1_rtx, flags_set_1_set): Delete.
24843         (regmove_optimize): Do not call mark_flags_life_zones.
24844
24845 2009-02-24  Julian Brown  <julian@codesourcery.com>
24846
24847         PR target/35965
24848         * config/arm/arm.c (require_pic_register): Only set
24849         cfun->machine->pic_reg once per function.
24850
24851 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
24852
24853         * doc/invoke.texi (Link Options): Document an easier way to pass
24854         options that take arguments to the GNU linker using -Xlinker and -Wl.
24855
24856 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
24857
24858         PR target/33785
24859         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
24860
24861 2009-02-24  Richard Guenther  <rguenther@suse.de>
24862
24863         PR debug/39285
24864         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
24865
24866 2009-02-24  Richard Guenther  <rguenther@suse.de>
24867             Zdenek Dvorak  <ook@ucw.cz>
24868
24869         PR tree-optimization/39233
24870         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
24871         from converting them to a generic type.
24872
24873 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
24874
24875         PR tree-optimization/39260
24876         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
24877         contains a condition with a real type.
24878         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
24879
24880 2009-02-23  Jason Merrill  <jason@redhat.com>
24881
24882         PR c++/38880
24883         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
24884         narrowing_initializer_constant_valid_p.
24885         (narrowing_initializer_constant_valid_p): Don't return
24886         null_pointer_node for adding a pointer to itself.
24887
24888 2009-02-23  Jan Hubicka  <jh@suse.cz>
24889
24890         PR c/12245
24891         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
24892         resizing.
24893
24894 2009-02-23  Jan Hubicka  <jh@suse.cz>
24895
24896         PR tree-optimization/37709
24897         * tree.c (block_ultimate_origin): Move here from dwarf2out.
24898         * tree.h (block_ultimate_origin): Declare.
24899         * dwarf2out.c (block_ultimate_origin): Move to tree.c
24900         * tree-ssa-live.c (remove_unused_scope_block_p):
24901         Eliminate blocks containig no instructions nor live variables nor
24902         nested blocks.
24903         (dump_scope_block): New function.
24904         (remove_unused_locals): Enable removal of dead blocks by default;
24905         enable dumping at TDF_DETAILS.
24906
24907 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
24908
24909         * config/i386/i386.c (classify_argument): Don't allow COImode
24910         and OImode.
24911         (function_arg_advance_32): Don't allow OImode.
24912         (function_arg_32): Likewise.
24913         (function_value_32): Likewise.
24914         (return_in_memory_32): Likewise.
24915         (function_arg_64): Remove OImode comment.
24916
24917 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
24918
24919         PR target/39261
24920         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
24921         ix86_expand_vector_set for V4DImode in 64bit mode only.
24922         (ix86_expand_vector_init_one_var): Likewise.
24923
24924 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
24925
24926         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
24927
24928 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
24929
24930         PR bootstrap/39257
24931         * loop-iv.c: Revert last change.
24932         * emit-rtl.c: Likewise.
24933
24934 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
24935
24936         PR target/39256
24937         * config/i386/i386.c (type_natural_mode): Remove an extra
24938         space in the warning message.
24939         (function_value_32): Handle 32-byte vector modes.
24940         (return_in_memory_32): Likewise.
24941
24942 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
24943
24944         * loop-iv.c (truncate_value): New function.
24945         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
24946         of lowpart_subreg.
24947         (lowpart_subreg): Move to...
24948         * emit-rtl.c: ...here.
24949
24950 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
24951
24952         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
24953         accidental and undocumented change at revision 140860.
24954
24955 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
24956
24957         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
24958         take gimple_seq * arguments.
24959         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
24960         types_compatible_p langhook.
24961
24962 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
24963             Joseph Myers  <joseph@codesourcery.com>
24964
24965         * config/arm/arm.c (arm_builtin_va_list): New function.
24966         (arm_expand_builtin_va_start): Likewise.
24967         (arm_gimplify_va_arg_expr): Likewise.
24968         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
24969         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
24970         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
24971         (va_list_type): New variable.
24972         (arm_mangle_type): Mangle va_list_type appropriately.
24973
24974 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
24975
24976         PR middle-end/39157
24977         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
24978         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
24979         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
24980         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
24981         parameter to 1000 for -O1 by default.
24982         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
24983         parameter.
24984         * loop-invariant.c: Include params.h.
24985         (move_loop_invariants): Don't call move_single_loop_invariants on
24986         very large loops.
24987
24988 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
24989
24990         * calls.c (emit_library_call_value_1): Use slot_offset instead of
24991         offset when calculating bounds for indexing stack_usage_map.  Fixes
24992         a buffer overflow with certain target setups.
24993
24994 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
24995
24996         PR target/39240
24997         * calls.c (expand_call): Clear try_tail_call if caller and callee
24998         disagree in promotion of function return value.
24999
25000 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
25001
25002         PR target/39175
25003         * c-common.c (c_determine_visibility): If visibility changed and
25004         DECL_RTL has been already set, call make_decl_rtl to update symbol
25005         flags.
25006
25007 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
25008
25009         PR c++/39188
25010         * varasm.c (assemble_variable): Don't check DECL_NAME when
25011         globalizing a variable.
25012
25013 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
25014
25015         PR c/38483
25016         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
25017         expression before any __builtin_trap call.
25018         * c-typeck.c (build_function_call): Convert and check function
25019         arguments before generating a call to a trap.  Evaluate the
25020         function arguments before the trap.
25021
25022 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
25023
25024         PR target/39228
25025         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
25026         (UNSPEC_FXAM_MEM): New unspec.
25027         (fxam<mode>2_i387_with_temp): New insn and split pattern.
25028         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
25029         memory using fxam<mode>2_i387_with_temp to remove excess precision.
25030
25031 2009-02-19  Richard Guenther  <rguenther@suse.de>
25032
25033         PR tree-optimization/39207
25034         PR tree-optimization/39074
25035         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
25036         storedanything_tree): New.
25037         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
25038         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
25039         (build_succ_graph): Add edges from STOREDANYTHING to all
25040         non-direct nodes.
25041         (init_base_vars): Initialize STOREDANYTHING.
25042         (compute_points_to_sets): Free substitution info after
25043         building the succ graph.
25044         (ipa_pta_execute): Likewise.
25045
25046         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
25047         field.
25048         (do_ds_constraint): Do not add to special var or non-pointer
25049         field solutions.
25050         (type_could_have_pointers): Split out from ...
25051         (could_have_pointers): ... here.  For arrays use the element type.
25052         (create_variable_info_for): Initialize may_have_pointers.
25053         (new_var_info): Likewise.
25054         (handle_lhs_call): Make the HEAP variable unknown-sized.
25055         (intra_create_variable_infos): Use a type with pointers for
25056         PARM_NOALIAS, make it unknown-sized.
25057
25058 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
25059
25060         PR target/39224
25061         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
25062
25063 2009-02-18  Jason Merrill  <jason@redhat.com>
25064
25065         PR target/39179
25066         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
25067         value if DECL_EXTERNAL.
25068         * tree-sra.c (sra_walk_gimple_assign): Likewise.
25069         * target.h (gcc_target::binds_local_p): Clarify "module".
25070         * tree.h (TREE_PUBLIC): Clarify "module".
25071
25072 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
25073
25074         PR target/38891
25075         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
25076         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
25077
25078 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
25079
25080         PR target/39082
25081         * c.opt (Wabi): Support C and ObjC.
25082         (Wpsabi): New.
25083
25084         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
25085
25086         * config/i386/i386.c (classify_argument): Warn once about the ABI
25087         change when passing union with long double.
25088
25089         * doc/invoke.texi: Update -Wabi for warning psABI changes.
25090
25091 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
25092
25093         PR c/35447
25094         * c-parser.c (c_parser_compound_statement): Always enter and leave
25095         a scope.
25096
25097 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25098
25099         PR target/34587
25100         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
25101
25102 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
25103
25104         PR tree-optimization/36922
25105         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
25106         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
25107         Likewise.
25108
25109 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
25110
25111         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
25112         to 0 for EABI64.
25113
25114 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
25115
25116         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
25117
25118 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
25119
25120         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
25121         tree sharing.
25122
25123 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
25124             Richard Sandiford  <rdsandiford@googlemail.com>
25125
25126         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
25127         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
25128         (loongson_biadd): ...this.
25129
25130 2009-02-17  Richard Guenther  <rguenther@suse.de>
25131
25132         PR tree-optimization/39202
25133         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
25134         a var make sure to follow existing collapses.
25135
25136 2009-02-17  Richard Guenther  <rguenther@suse.de>
25137
25138         PR middle-end/39214
25139         * langhooks.c (lhd_print_error_function): Check for NULL block.
25140
25141 2009-02-17  Richard Guenther  <rguenther@suse.de>
25142
25143         PR tree-optimization/39204
25144         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
25145         of the PHI arg.
25146
25147 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
25148
25149         * config/soft-fp/double.h: Update from glibc CVS.
25150
25151 2009-02-17  Richard Guenther  <rguenther@suse.de>
25152
25153         PR tree-optimization/39207
25154         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
25155         strict-aliasing warnings for pointers pointing to NULL.
25156
25157 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
25158
25159         PR c/35446
25160         * c-parser.c (c_parser_braced_init): Call pop_init_level when
25161         skipping until next close brace.
25162
25163 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
25164
25165         PR target/37049
25166         * config/i386/i386.c (ix86_expand_push): Set memory alignment
25167         to function argument boundary.
25168
25169 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
25170
25171         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
25172         in the lea_add. Reload eventually constraints it properly.
25173         * config/picochip/constraints.md: Remove the target constraint
25174         "b", since it is not needed anymore.
25175
25176 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
25177
25178         * gthr-dce.h: Uglify function parameter and local variable names.
25179         * gthr-gnat.h: Likewise.
25180         * gthr-mipssde.h: Likewise.
25181         * gthr-nks.h: Likewise.
25182         * gthr-posix95.h: Likewise.
25183         * gthr-posix.h: Likewise.
25184         * gthr-rtems.h: Likewise.
25185         * gthr-single.h: Likewise.
25186         * gthr-solaris.h: Likewise.
25187         * gthr-tpf.h: Likewise.
25188         * gthr-vxworks.h: Likewise.
25189         * gthr-win32.h: Likewise.
25190
25191 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
25192
25193         PR target/39196
25194         * config/i386/i386.md: Restrict the new peephole2 to move
25195         between MMX/SSE registers.
25196
25197 2009-02-15  Richard Guenther  <rguenther@suse.de>
25198
25199         Revert
25200         2009-02-13  Richard Guenther  <rguenther@suse.de>
25201
25202         * configure.ac: Enable LFS.
25203         * configure: Re-generate.
25204         * config.in: Likewise.
25205
25206 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25207
25208         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
25209         spu_srqwbyte, spu_srqwbytebc): Define.
25210         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
25211         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
25212         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
25213         "shrqby_<mode>"): New insn-and-split patterns.
25214         * config/spu/spu.c (expand_builtin_args): Determine and return
25215         number of operands using spu_builtin_description data.
25216         (spu_expand_builtin_1): Use it.
25217
25218 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
25219
25220         PR target/38056
25221         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
25222         TARGET_CONST_GP.
25223
25224 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
25225
25226         PR target/39149
25227         * config/i386/i386.c (override_options): Correct warning
25228         messages for -malign-loops, -malign-jumps and -malign-functions.
25229
25230 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
25231
25232         PR target/39152
25233         * config/i386/i386.md: Restrict the new peephole2 to move
25234         between the general purpose registers.
25235
25236 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
25237
25238         PR target/39162
25239         * config/i386/i386.c (type_natural_mode): Add a new argument.
25240         Return the original mode and warn ABI change if vector size is 32byte.
25241         (function_arg_advance): Updated.
25242         (function_arg): Likewise.
25243         (ix86_function_value): Likewise.
25244         (ix86_return_in_memory): Likewise.
25245         (ix86_sol10_return_in_memory): Likewise.
25246         (ix86_gimplify_va_arg): Likewise.
25247         (function_arg_32): Don't warn ABX ABI change here.
25248         (function_arg_64): Likewise.
25249
25250 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
25251
25252         * loop-iv.c (implies_p): In the final case, test that operands 0
25253         of the two comparisons match.
25254
25255         * config/bfin/bfin.c (find_prev_insn_start): New function.
25256         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
25257         (find_next_insn_start): Move.
25258
25259 2009-02-13  Richard Guenther  <rguenther@suse.de>
25260
25261         * configure.ac: Enable LFS.
25262         * configure: Re-generate.
25263         * config.in: Likewise.
25264
25265 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
25266
25267         PR c/35444
25268         * c-parser.c (c_parser_parms_list_declarator): Discard pending
25269         sizes on syntax error after some arguments have been parsed.
25270
25271 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
25272
25273         * doc/invoke.texi (-fira): Remove.
25274
25275 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
25276
25277         * caller-save.c: Replace regclass.c with reginfo.c in comments.
25278         * recog.c: Likewise.
25279         * rtl.h: Likewise.
25280
25281 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
25282
25283         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
25284         (umul_ppmm): Likewise.
25285         (count_leading_zeros): Likewise.
25286         (count_trailing_zeros): Likewise.
25287         (UMUL_TIME): Likewise.
25288
25289 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
25290
25291         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
25292         soft-fp/t-softfp to tmake_file.
25293
25294         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
25295         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
25296         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
25297         IA64_BUILTIN_INFQ]: New.
25298         (ia64_init_builtins): Initialize __builtin_infq,
25299         __builtin_fabsq and __builtin_copysignq if not HPUX.
25300         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
25301         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
25302
25303         * config/ia64/lib1funcs.asm (__divtf3): Define only if
25304         SHARED is defined.
25305         (__fixtfti): Likewise.
25306         (__fixunstfti): Likewise.
25307         (__floattitf): Likewise.
25308
25309         * config/ia64/libgcc-glibc.ver: New.
25310         * config/ia64/t-fprules-softfp: Likewise.
25311         * config/ia64/sfp-machine.h: Likewise.
25312
25313         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
25314         (LIBGCC2_TF_CEXT): Likewise.
25315         (TF_SIZE): Likewise.
25316         (TARGET_INIT_LIBFUNCS): Likewise.
25317
25318         * config/ia64/t-glibc (SHLINB_MAPFILES):
25319         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
25320
25321 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
25322
25323         * config/i386/i386.c (construct_container): Rewrite processing
25324         BLKmode with X86_64_SSE_CLASS.
25325
25326 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
25327
25328         PR target/39152
25329         * config/i386/i386.md: Replace simplify_replace_rtx with
25330         replace_rtx in the new peephole2.
25331
25332 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
25333
25334         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
25335         loop unrolling do not happen at -O2.
25336
25337 2009-02-12  Michael Matz  <matz@suse.de>
25338
25339         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
25340
25341 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
25342
25343         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
25344         for -g3.
25345
25346 2009-02-12  Ben Elliston  <bje@au.ibm.com>
25347
25348         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
25349         patterns when updating the back chain.  Missed in the 2009-02-10
25350         change.
25351
25352 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
25353
25354         * doc/extend.texi (Decimal Floating Types): Update identifier of
25355         draft TR and list of missing support.
25356
25357 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
25358
25359         PR middle-end/39154
25360         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
25361         bit to variable length decl's flags, add it also to its
25362         pointer replacement variable.
25363
25364 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
25365             Jakub Jelinek  <jakub@redhat.com>
25366
25367         PR target/39118
25368         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
25369         (memory_blockage): New expander.
25370         (*memory_blockage): New insn pattern.
25371         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
25372         instead of general blockage at the end of function prologue when
25373         frame pointer is used to access red zone area.  Do not emit blockage
25374         when profiling, it is emitted in generic code.
25375         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
25376         function epilogue when frame pointer is used to access red zone area.
25377
25378 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
25379
25380         PR target/38824
25381         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
25382         by arithmetic with memory operands.
25383         * config/i386/predicates.md (commutative_operator): New.
25384
25385 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
25386
25387         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
25388         bulleted lists.
25389
25390 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
25391
25392         * alias.h (record_alias_subset): Declare.
25393         * alias.c (record_alias_subset): Make global.
25394
25395 2009-02-10  Nick Clifton  <nickc@redhat.com>
25396
25397         * tree-parloops.c: Change license to GPLv3.
25398         * ipa-struct-reorg.c: Change license to GPLv3.
25399         * ipa-struct-reorg.h: Change license to GPLv3.
25400
25401 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
25402
25403         PR c/39084
25404         * c-decl.c (start_struct): Return NULL on error.
25405
25406 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
25407
25408         PR middle-end/39124
25409         * cfgloopmanip.c (remove_path): Call remove_bbs after
25410         cancel_loop_tree, not before it.
25411
25412         PR target/39139
25413         * function.h (struct function): Add has_local_explicit_reg_vars bit.
25414         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
25415         VAR_DECLs were seen.
25416         * tree-ssa-live.c (remove_unused_locals): Recompute
25417         cfun->has_local_explicit_reg_vars.
25418         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
25419         copies or clearings if cfun->has_local_explicit_reg_vars.
25420
25421 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
25422
25423         PR target/39118
25424         * config/i386/i386.c (expand_prologue): Emit blockage at the end
25425         of function prologue when frame pointer is used to access
25426         red zone area.
25427
25428 2009-02-10  Richard Guenther  <rguenther@suse.de>
25429
25430         PR middle-end/39127
25431         * gimplify.c (gimple_regimplify_operands): Always look if
25432         we need to create a temporary.
25433
25434 2009-02-10  Richard Guenther  <rguenther@suse.de>
25435
25436         PR tree-optimization/39132
25437         * tree-loop-distribution.c (todo): New global var.
25438         (generate_memset_zero): Trigger TODO_rebuild_alias.
25439         (tree_loop_distribution): Return todo.
25440
25441 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
25442
25443         PR target/39119
25444         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
25445         (x86_64_reg_class_name): Removed.
25446         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
25447         first one isn't X86_64_SSE_CLASS or any other ones aren't
25448         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
25449         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
25450         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
25451         and 3 X86_64_SSEUP_CLASS.
25452         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
25453         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
25454
25455 2009-02-10  Ben Elliston  <bje@au.ibm.com>
25456
25457         * config/rs6000/rs6000.md (allocate_stack): Always use an update
25458         form instruction to update the stack back chain word, even if the
25459         user has disabled the generation of update instructions.
25460         (movdi_<mode>_update_stack): New.
25461         (movsi_update_stack): Likewise.
25462         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
25463         always use an update form instruction to update the stack back
25464         chain word.
25465
25466 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
25467
25468         PR middle-end/38953
25469         * graphite.c (if_region_set_false_region): After moving a region in
25470         the false branch of a condition, remove the empty dummy basic block.
25471         (gloog): Remove wrong fix for PR38953.
25472
25473 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25474
25475         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
25476         generation due to implicit sign extension.
25477
25478 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
25479
25480         PR middle-end/38981
25481         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
25482         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
25483
25484 2009-02-09  Richard Guenther  <rguenther@suse.de>
25485
25486         PR middle-end/35202
25487         * convert.c (convert_to_real): Disable (float)fn((double)x)
25488         to fnf(x) conversion if errno differences may occur and
25489         -fmath-errno is set.
25490
25491 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
25492
25493         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
25494         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
25495         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
25496
25497 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
25498
25499         PR c/35434
25500         * c-common.c (handle_alias_attribute): Disallow attribute for
25501         anything not a FUNCTION_DECL or VAR_DECL.
25502
25503 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
25504
25505         PR c/39035
25506         * real.c (do_compare): Special-case compare of zero against
25507         decimal float value.
25508
25509 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
25510
25511         PR c/36432
25512         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
25513         as indicating flexible array members unless the field itself is
25514         being declarared as the incomplete array.
25515
25516 2009-02-06  Jan Hubicka  <jh@suse.cz>
25517
25518         PR tree-optimization/38844
25519         * ipa-inline.c (try_inline): Stop inlining recursion when edge
25520         is already inlined.
25521
25522 2009-02-06  Richard Guenther  <rguenther@suse.de>
25523
25524         PR middle-end/38977
25525         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
25526         fork because we may expand it as __gcov_fork.
25527
25528 2009-02-06  Nick Clifton  <nickc@redhat.com>
25529
25530         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
25531
25532 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
25533
25534         PR tree-optimization/35659
25535         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
25536         vn_phi_eq): Shortcut if hashcode does not match.
25537         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
25538         NULL operands.
25539         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
25540         and avoid iterative_hash_expr.
25541         (FOR_EACH_VALUE_ID_IN_SET): New.
25542         (value_id_compare): Remove.
25543         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
25544         sort expressions by value id.
25545
25546 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
25547
25548         PR target/38991
25549         * config/sh/predicates.md (general_movsrc_operand): Don't check
25550         the subreg of system registers here.
25551
25552 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
25553
25554         PR c++/39106
25555         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
25556         on the copied decl.
25557
25558 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
25559
25560         PR rtl-optimization/39110
25561         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
25562         addresses, not aligned ones.
25563
25564 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
25565             Richard Guenther  <rguenther@suse.de>
25566
25567         PR tree-optimization/39100
25568         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
25569         comment says and add edges.
25570
25571 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
25572
25573         PR c/35435
25574         * c-common.c (handle_tls_model_attribute): Ignore attribute for
25575         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
25576
25577 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
25578
25579         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
25580         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
25581         register_bb_in_sese, new_sese, free_sese): Moved.
25582         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
25583         outermost_loop_in_scop, build_scop_iteration_domain,
25584         expand_scalar_variables_ssa_name, get_vdef_before_scop,
25585         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
25586         Use loop_in_sese_p instead of loop_in_scop_p.
25587         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
25588         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
25589         (scopdet_basic_block_info): Fix bug in scop detection.
25590         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
25591         eq_loop_to_cloog_loop): Remove.
25592         (nb_loops_around_loop_in_scop, nb_loop
25593         ref_nb_loops): Moved here...
25594         * graphite.h (ref_nb_loops): ... from here.
25595         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
25596         (loop_domain_dim, loop_iteration_vector_dim): Remove.
25597         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
25598
25599 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
25600             Hans-Peter Nilsson  <hp@axis.com>
25601
25602         PR rtl-optimization/37889
25603         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
25604         Move offset handling from PLUS to before the switch.  Use new
25605         arguments when considering SYMBOL_REFs too.
25606         (rtx_addr_can_trap_p): Pass dummy offset and size.
25607         (enum may_trap_p_flags): Remove.
25608         (may_trap_p_1): Pass size from MEM_SIZE.
25609
25610         PR rtl-optimization/38921
25611         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
25612         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
25613         * rtlanal.c (may_trap_after_code_motion_p): Delete.
25614         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
25615
25616 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
25617
25618         AVX Programming Reference (January, 2009)
25619         * config/i386/sse.md (*vpclmulqdq): New.
25620
25621 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
25622
25623         PR tree-optimization/38977
25624         PR gcov-profile/38292
25625         * calls.c (special_function_p): Disregard __builtin_ prefix.
25626
25627 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
25628
25629         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
25630         non-indexable addresses even before reload.
25631
25632 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
25633
25634         PR c/29129
25635         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
25636         as having variable size.  Do not give an error for unnamed
25637         parameters with [*] declarators.  Give a warning for type names
25638         with [*] declarators and mark them as variable size.
25639         * c-parser.c (c_parser_sizeof_expression): Do not give an error
25640         for sizeof applied to [*] type names.
25641
25642 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
25643
25644         PR C++/36607
25645         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
25646
25647 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
25648
25649         * gcc.c (process_command): Update copyright notice dates.
25650         * gcov.c (print_version): Likewise.
25651         * gcov-dump.c (print_version): Likewise.
25652         * mips-tfile.c (main): Likewise.
25653         * mips-tdump.c (main): Likewise.
25654
25655 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
25656
25657         PR c/35433
25658         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
25659         for composite type involving a zero-length array type.
25660
25661 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
25662
25663         PR target/35318
25664         * function.c (match_asm_constraints_1): Skip over
25665         initial optional % in the constraint.
25666
25667         PR inline-asm/39059
25668         * c-parser.c (c_parser_postfix_expression): If fixed point is not
25669         supported, don't accept FIXED_CSTs.
25670         * c-decl.c (finish_declspecs): Error if fixed point is not supported
25671         and _Sat is used without _Fract/_Accum.  Set specs->type to
25672         integer_type_node for cts_fract/cts_accum if fixed point is not
25673         supported.
25674
25675 2009-02-02  Catherine Moore  <clm@codesourcery.com>
25676
25677         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
25678
25679 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
25680
25681         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
25682         (ABI_HAS_64BIT_SYMBOLS): Use it.
25683         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
25684
25685 2009-02-02  Paul Brook  <paul@codesourcery.com>
25686
25687         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
25688
25689 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
25690
25691         PR inline-asm/39058
25692         * recog.h (asm_operand_ok): Add constraints argument.
25693         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
25694         recurse on matching constraint.
25695         (check_asm_operands): Pass constraints as 3rd argument to
25696         asm_operand_ok.  Don't look up matching constraint here.
25697         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
25698         to asm_operand_ok.
25699
25700 2009-02-02  Ben Elliston  <bje@au.ibm.com>
25701
25702         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
25703         TARGET_NARROW_VOLATILE_BITFIELD macro names.
25704
25705 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25706
25707         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
25708         information.  Remove some obsolete information.  Reorganize.
25709
25710         * config/pa/fptr.c: Revert license to GPL 2.
25711         * config/pa/milli64.S: Likewise.
25712
25713 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
25714
25715         PR target/38904
25716         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
25717         LIBRARY name in, instead of hard-coding it.
25718         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
25719         extra target make frag to tmake_files according to EH model.
25720         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
25721         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
25722         frags that define makefile variable EH_MODEL appropriately.
25723         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
25724         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
25725         to "-sjlj" according to type of EH configured.
25726         (LIBGCC_SONAME):  Concatenate it to shared library base name.
25727         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
25728         to "_sjlj" according to type of EH configured.
25729         (LIBGCC_SONAME):  Concatenate it to shared library base name.
25730         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
25731         (SHLIB_LINK):  Add missing semicolon to if-else construct.
25732         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
25733         string value of "pe_dll" command-line option.
25734         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
25735         (SHLIB_SONAME):  Use it when overriding t-cygming default.
25736         (SHLIB_IMPLIB):  Override t-cygming default.
25737         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
25738         string value of "pe_dll" command-line option.
25739
25740 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
25741
25742         PR target/38952
25743         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
25744         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
25745
25746 2009-01-31  Richard Guenther  <rguenther@suse.de>
25747
25748         PR tree-optimization/38937
25749         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
25750         computing the transitive closure.
25751
25752 2009-01-30  Richard Guenther  <rguenther@suse.de>
25753
25754         PR tree-optimization/39041
25755         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
25756         Propagate variable indices only if the types match for this stmt.
25757
25758 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
25759
25760         PR target/39013
25761         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
25762         inline but never defined.
25763
25764 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
25765
25766         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
25767         (*insv_h_di_reg_extimm): New insn.
25768         (*insv_l<mode>_reg_extimm): New insn.
25769
25770 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
25771
25772         * config/picochip/picochip.c (flag_conserve_stack): set
25773         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
25774         fconserve-stack. Reduce call-overhead used by inliner.
25775
25776 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
25777
25778         PR/38157
25779         * common.opt (flag_conserve_stack): Initialised to zero.
25780
25781 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
25782
25783         PR/39002
25784         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
25785         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
25786         method.
25787
25788 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
25789
25790         * ira-color.c (allocno_reload_assign): Update comments.
25791         * regmove.c (regmove_optimize): Likewise.
25792
25793         * ra.h: Removed.
25794
25795 2009-01-29  Robert Millan  <rmh@aybabtu.com>
25796
25797         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
25798         * config/i386/kopensolaris-gnu.h: New file.  Undefine
25799         `MD_UNWIND_SUPPORT'.
25800         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
25801
25802 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
25803
25804         PR tree-optimization/39007
25805         * tree-loop-distribution.c (generate_builtin): Use
25806         recompute_dominator to compute the immediate dominator of the
25807         basic block just after the loop.
25808
25809 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
25810
25811         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
25812         (ASM_OUTPUT_DWARF_PCREL): Define.
25813
25814 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
25815
25816         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
25817         * doc/passes.texi: Remove entries about regclass, local-alloc, and
25818         global.  Modify entries about regmove and IRA.
25819
25820         * ra-conflict.c: Remove the file.
25821
25822         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
25823
25824         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
25825         (pass_regclass_init): Rename to pass_reginfo_init.
25826
25827         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
25828
25829         * toplev.h (flag_ira): Remove.
25830
25831         * caller-save.c (setup_save_areas): Remove flag_ira.
25832
25833         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
25834
25835         * global.c: Remove the file.
25836
25837         * opts.c (decode_options): Remove flag_ira.
25838
25839         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
25840
25841         * regmove.c: Modify file description.
25842         (find_use_as_address, try_auto_increment): Define them only if
25843         AUTO_INC_DEC is defined.
25844         (replacement_quality, replace_in_call_usage, fixup_match_1,
25845         stable_and_no_regs_but_for_p): Remove.
25846         (reg_set_in_bb): Make it static.
25847         (regmove_optimize): Remove flag_ira and code which worked for
25848         !flag_ira.
25849
25850         * local-alloc.c: Remove the file.
25851
25852         * common.opt (fira): Remove.
25853
25854         * ira.c: Include except.h.
25855         (eliminable_regset): Move from global.c.
25856         (mark_elimination): Ditto.  Remove flag_ira.
25857         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
25858         equiv_mem_modified, validate_equiv_mem_from_store,
25859         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
25860         contains_replace_regs, memref_referenced_p, memref_used_between_p,
25861         no_equiv, recorded_label_ref): Move from local-alloc.c.
25862         (update_equiv_regs): Ditto.  Make it static.
25863         (print_insn_chain, print_insn_chains): Move it from global.c.
25864         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
25865         (build_insn_chain): Ditto.  Make it static.
25866         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
25867         Rename to init_live_subregs.
25868         (gate_ira): Remove flag_ira.
25869
25870         * regclass.c: Rename reginfo.c.  Change file description.
25871         (FORBIDDEN_INC_DEC_CLASSES): Remove.
25872         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
25873         (init_reg_sets_1): Remove code for evaluation of
25874         reg_class_superclasses and losing_caller_save_reg_set.
25875         (init_regs): Remove init_reg_autoinc.
25876         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
25877         ok_for_base_p_nonstrict): Remove.
25878         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
25879         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
25880         corresponding entries.
25881         (dump_regclass, record_operand_costs, scan_one_insn,
25882         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
25883         record_address_regs, auto_inc_dec_reg_p): Remove.
25884         (gt-regclass.h): Rename to gt-reginfo.h.
25885
25886         * rtl.h (dump_global_regs, retry_global_alloc,
25887         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
25888
25889         * Makefile.in (RA_H): Remove.
25890         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
25891         Rename regclass.o to reginfo.o.
25892         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
25893         gt-reginfo.h.
25894         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
25895         (GTFILES): Rename regclass.c to reginfo.c.
25896
25897         * passes.c (init_optimization_passes): Remove pass_local_alloc and
25898         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
25899
25900         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
25901         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
25902         Remove flag_ira.
25903         (finish_spills): Ditto.  Remove code for !flag_ira.
25904
25905 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
25906
25907         PR middle-end/35854
25908         * doc/invoke.texi (rtl debug options): Complete rewrite.
25909         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
25910         to auto_inc_dec".
25911         * mode-switching.c (pass_mode_switching): Rename pass from
25912         "mode-sw" to "mode_sw".
25913         * except.c (pass_convert_to_eh_ranges): Rename pass from
25914         "eh-ranges" to "eh_ranges".
25915         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
25916         to "subreg1".
25917
25918
25919 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
25920             Alexander Monakov  <amonakov@ispras.ru>
25921
25922         PR middle-end/38857
25923         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
25924         register.
25925         (move_exprs_to_boundary): Change return type and pass through
25926         should_move from move_op.  Relax assert.  Update usage ...
25927         (schedule_expr_on_boundary): ... here.  Use should_move instead of
25928         cant_move.
25929         (move_op_orig_expr_found): Indicate that insn was disconnected from
25930         stream.
25931         (code_motion_process_successors): Do not call after_merge_succs
25932         callback if original expression was not found when traversing any of
25933         the branches.
25934         (code_motion_path_driver): Change return type.  Update prototype.
25935         (move_op): Update comment.  Add a new parameter (should_move).  Update
25936         prototype.  Set *should_move based on indication provided by
25937         move_op_orig_expr_found.
25938
25939 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
25940
25941         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
25942         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
25943         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
25944         * config/rs6000/rs6000.c (rs6000_override_options): Default
25945         avoid-indexed-addresses on for Power6, off for everything else.
25946         (avoiding_indexed_address_p): New function.
25947         (rs6000_legitimize_address): Use it.
25948         (rs6000_legitimate_address): Likewise.
25949         * config/rs6000/rs6000.md (movXX_updateX): Likewise
25950
25951 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
25952
25953         PR tree-optimization/38997
25954         * tree-loop-distribution.c (generate_memset_zero): Use
25955         POINTER_PLUS_EXPR for a pointer addition.
25956
25957 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
25958
25959         * config/s390/s390.md (bswap<mode>2): New pattern added.
25960
25961 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
25962
25963         * config/s390/s390.md (*tls_load_31): Added type attribute.
25964
25965 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
25966
25967         * config/s390/s390.md: Fix a few comments.
25968
25969 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
25970
25971         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
25972         (*tm<mode>_full): Fixed z10prop attribute.
25973         (*tst<mode>_extimm): Fixed z10prop attribute.
25974         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
25975         (*tstqiCCT_cconly): Fixed z10prop attribute.
25976         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
25977         (*movsi_larl): Fixed z10prop attribute.
25978         (*movsi_zarch): Fixed z10prop attribute.
25979         (*movsi_eas): Fixed z10prop attribute.
25980         (*movhi): Fixed z10prop attribute.
25981         (*movqi): Fixed z10prop attribute.
25982         (*movstrictqi): Fixed z10prop attribute.
25983         (*mov<mode>): Fixed z10prop attribute.
25984         (*movcc): Fixed z10prop attribute.
25985         (*sethighpartdi_64): Fixed z10prop attribute.
25986         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
25987         (*negdi2_sign_cc): Fixed z10prop attribute.
25988         (*negdi2_sign): Fixed z10prop attribute.
25989         (*absdi2_sign_cc): Fixed z10prop attribute.
25990         (*absdi2_sign): Fixed z10prop attribute.
25991         (*negabsdi2_sign_cc): Fixed z10prop attribute.
25992         (*negabsdi2_sign): Fixed z10prop attribute.
25993         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
25994         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
25995         (doloop_si64): Fixed z10prop attribute.
25996         (doloop_si31): Fixed z10prop attribute.
25997         (doloop_long): Fixed z10prop attribute.
25998         (indirect_jump): Fixed z10prop attribute.
25999         (nop): Fixed z10prop attribute.
26000         (main_base_64): Fixed z10prop attribute.
26001         (reload_base_64): Fixed z10prop attribute.
26002
26003 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
26004
26005         PR rtl-optimization/38740
26006         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
26007         if !optimize.
26008         * config/mips/mips.c (mips_reorg): Likewise.
26009
26010 2009-01-28  Richard Guenther  <rguenther@suse.de>
26011
26012         PR tree-optimization/38926
26013         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
26014         with the correct value id to a value.
26015         (do_regular_insertion): Use the value number of edoubleprime
26016         for the value number of the expr.
26017
26018         Revert
26019         2008-08-21  Richard Guenther  <rguenther@suse.de>
26020
26021         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
26022         a PHI ask VN if it is already available.
26023         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
26024         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
26025
26026 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
26027
26028         PR middle-end/38934
26029         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
26030         set to varying whenever max has TREE_OVERFLOW set, similarly
26031         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
26032
26033 2009-01-28  Richard Guenther  <rguenther@suse.de>
26034
26035         PR middle-end/38908
26036         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
26037         uninitialized aggregate uses in call arguments.
26038
26039 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
26040
26041         PR tree-optimization/38984
26042         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
26043         the nothing_id variable if -fno-delete-null-pointer-checks.
26044
26045 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
26046
26047         PR target/38988
26048         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
26049         (set_got_offset_rex64): Ditto.
26050
26051 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
26052
26053         PR target/38941
26054         * doc/extend.texi: Improve local variable with asm reg.
26055
26056 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
26057
26058         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
26059         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
26060         was not supplied then set warn_packed_bitfield_compat to the
26061         default value of 1.
26062         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
26063         against 1.
26064
26065 2009-01-27  Richard Guenther  <rguenther@suse.de>
26066
26067         PR tree-optimization/38503
26068         * cfgexpand.c (expand_gimple_basic_block): Ignore
26069         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
26070         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
26071         variables that cannot have TBAA applied.
26072         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
26073         statements.
26074
26075 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
26076
26077         PR middle-end/38969
26078         * calls.c (initialize_argument_information): Do not wrap complex
26079         arguments in SAVE_EXPR.
26080
26081 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
26082
26083         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
26084         (INSTALL_LIBGCC): Revert typo commit.
26085
26086 2009-01-26  Richard Guenther  <rguenther@suse.de>
26087
26088         PR tree-optimization/38745
26089         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
26090         from special handling.
26091
26092 2009-01-26  Richard Guenther  <rguenther@suse.de>
26093
26094         PR tree-optimization/38745
26095         * tree-ssa.c (execute_update_addresses_taken): Do not include
26096         variables that cannot possibly be a register in not_reg_needs.
26097         Do not clear TREE_ADDRESSABLE on vars that may not become
26098         registers.
26099         * tree-ssa.c (update_alias_info_1): Include those in the set
26100         of addressable vars.
26101
26102 2009-01-26  Richard Guenther  <rguenther@suse.de>
26103
26104         PR middle-end/38851
26105         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
26106         * tree-ssa-dse.c: Include langhooks.h
26107         (execute_simple_dse): Remove stores with zero size.
26108
26109 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
26110
26111         PR c/38957
26112         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
26113         as PLUS_EXPR.
26114
26115 2009-01-24  Julian Brown  <julian@codesourcery.com>
26116
26117         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
26118         config/arm/linux-atomic.c.
26119         * config/arm/linux-atomic.c: New.
26120
26121 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
26122
26123         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
26124         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
26125         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
26126
26127 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
26128
26129         PR c/38938
26130         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
26131         properly.
26132
26133 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
26134
26135         PR tree-optimization/38953
26136         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
26137         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
26138         (gloog): Split the exit of the scop when the scop exit is a loop exit.
26139         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
26140         changed the CFG.
26141
26142 2009-01-24  Paul Brook  <paul@codesourcery.com>
26143
26144         * config/arm/neon.md (neon_type): Move to arm.md.
26145         (neon_mov<VSTRUCT>): Add neon_type attribute.
26146         * config/arm/arm.md (neon_type): Move to here.
26147         (conds): Add "unconditioal" and use as default for NEON insns.
26148
26149 2009-01-24  Ben Elliston  <bje@au.ibm.com>
26150
26151         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
26152         void *' warning from -Wc++-compat.
26153         * Makefile.in (dominance.o-warn): Remove.
26154
26155 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
26156
26157         PR tree-optimization/38932
26158         * fold-const.c (fold_unary_ignore_overflow): New.
26159         * tree.h (fold_unary_ignore_overflow): Declare.
26160         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
26161         * tree-ssa-sccvn.c (visit_reference_op_load,
26162         simplify_unary_expression): Likewise.
26163
26164 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
26165
26166         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
26167         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
26168         regardless of their type.
26169         * c-common.c (handle_packed_attribute): Don't ignore packed on
26170         bitfields.
26171         * c.opt (Wpacked-bitfield-compat): New warning option.
26172         * stor-layout.c (place_field): Warn if offset of a field changed.
26173         * doc/extend.texi (packed): Mention the ABI change.
26174         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
26175         (Warning Options): Add it to the list.
26176
26177 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
26178
26179         * c-opts.c (c_common_post_options): Fix a typo in comments.
26180
26181 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
26182
26183         PR middle-end/38615
26184         * gimplify.c (gimplify_init_constructor): Fix promotion of const
26185         variables to static.
26186         * doc/invoke.texi (-fmerge-all-constants): Update description.
26187
26188 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
26189
26190         PR target/38931
26191         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
26192         (*movdi_1_rex64): Use type "mmx" for alternative 5.
26193
26194 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
26195
26196         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
26197         a word boundary.
26198         (LOCAL_ALIGNMENT): Similarly.
26199
26200 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
26201             Joseph Myers  <joseph@codesourcery.com>
26202
26203         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
26204         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
26205         * config/arm/arm-tune.md: Regenerate.
26206         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
26207         -march=iwmmxt2.
26208
26209 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
26210
26211         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
26212         version number to five.
26213
26214 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
26215
26216         PR c++/38930
26217         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
26218         * c-common.c (set_underlying_type): Likewise.
26219         (is_typedef_decl ): Likewise
26220         * tree.h: Likewise
26221         (set_underlying_type): Likewise.
26222         (is_typedef_type): Likewise.
26223
26224 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
26225
26226         PR middle-end/38587
26227         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
26228         crossing setjmps.
26229
26230 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
26231
26232         PR bootstrap/37660
26233         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
26234         (LIBGCC_SPEC):  Don't define.
26235         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
26236
26237 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
26238
26239         PR rtl-optimization/38879
26240         * alias.c (base_alias_check): Unaligned access via AND address can
26241         alias all surrounding object types except those with sizes equal
26242         or wider than the size of unaligned access.
26243
26244 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
26245
26246         PR c++/26693
26247         * c-decl.c (clone_underlying_type): Move this ...
26248         * c-common.c (set_underlying_type): ... here.
26249         Also, make sure the function properly sets TYPE_STUB_DECL() on
26250         the newly created typedef variant type.
26251         (is_typedef_decl ): New entry point.
26252         * tree.h: Added a new member member_types_needing_access_check to
26253         struct tree_decl_non_common.
26254         (set_underlying_type): New entry point.
26255         (is_typedef_type): Likewise.
26256
26257 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
26258
26259         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
26260         Check whether two instructions have memory references that
26261         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
26262         are helper functions for traversing.
26263         * alias.h (insn_alias_sets_confilict_p): New prototypes.
26264         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
26265         not to draw dependency edge for instructions with non-conflicting
26266         alias sets.
26267
26268 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
26269
26270         PR other/38758
26271         * longlong.h: Update copyright years.  Use soft-fp license notice.
26272         Sync __clz_tab declaration with glibc.
26273
26274 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
26275
26276         PR target/30687
26277         * doc/extend.texi (syscall_linkage): New.
26278         (version_id): Modify.
26279
26280 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
26281             Richard Guenther  <rguenther@suse.de>
26282
26283         PR tree-optimization/38747
26284         PR tree-optimization/38748
26285         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
26286         conversion if the base address is an indirect reference and the
26287         aliasing sets could cause issues.
26288
26289 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
26290
26291         * common.opt (fgraphite, fgraphite-identity): Add comment for
26292         explaining why these options are not documented.
26293
26294 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
26295
26296         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
26297         gimple_call_lhs is NULL.
26298
26299 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26300
26301         PR target/38868
26302         * emit-rtl.c (adjust_address_1): Make sure memref is never
26303         overwritten.
26304
26305 2009-01-20  Ben Elliston  <bje@au.ibm.com>
26306
26307         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
26308         const qualifier from arg parameter. Remove unnecessary cast to char *.
26309         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
26310         const qualifier from arg 2.
26311
26312 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
26313
26314         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
26315
26316 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
26317
26318         PR c/38869
26319         * rtl.h (reinit_regs): New prototype.
26320         * regclass.c: Include ira.h.
26321         (reinit_regs): New.
26322         * Makefile.in (regclass.o): Add ira.h.
26323         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
26324
26325 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
26326
26327         PR target/38736
26328         * c-common.c (handle_aligned_attribute): Use
26329         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
26330         default alignment value.
26331
26332         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
26333
26334         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
26335         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
26336
26337         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
26338         __BIGGEST_ALIGNMENT__.
26339
26340         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
26341
26342 2009-01-18  Richard Guenther  <rguenther@suse.de>
26343
26344         PR tree-optimization/38819
26345         * tree-flow.h (operation_could_trap_helper_p): Declare.
26346         * tree-eh.c (operation_could_trap_helper_p): Export.
26347         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
26348         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
26349         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
26350         are about to insert a possibly trapping instruction and fail
26351         in this case.
26352
26353 2009-01-18  Andreas Schwab  <schwab@suse.de>
26354
26355         * doc/install.texi (Configuration): Remove obsolete paragraph
26356         about use of --with-gnu-ld with --with-gnu-as.
26357
26358 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
26359
26360         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
26361         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
26362         Follow spelling conventions.
26363
26364 2009-01-18  Ben Elliston  <bje@au.ibm.com>
26365
26366         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
26367         C++ warning about implicit conversion from void * to struct
26368         bitmap_head_def *.
26369         (bitmap_obstack_free): Likewise for bitmap_element *.
26370         * Makefile.in (bitmap.o-warn): Remove.
26371
26372 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
26373
26374         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
26375
26376 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
26377             Tobias Grosser  <tobi.grosser@amd.com>
26378
26379         * graphite.c (graphite_trans_scop_block): Do not block single
26380         nested loops.
26381
26382 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
26383
26384         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
26385         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
26386         test with assertion.
26387
26388 2009-01-16  Richard Guenther  <rguenther@suse.de>
26389
26390         PR tree-optimization/38835
26391         PR middle-end/36227
26392         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
26393         and INT + PTR -> (INT)(PTR p+ INT) folding.
26394         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
26395
26396 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
26397
26398         PR target/38554
26399         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
26400         the subreg from a lowpart subreg if it is also casting the value.
26401
26402 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
26403             Tobias Grosser  <tobi.grosser@amd.com>
26404
26405         * graphite.c (compare_prefix_loops): New.
26406         (build_scop_canonical_schedules): Rewritten.
26407         (graphite_transform_loops): Move build_scop_canonical_schedules
26408         after build_scop_iteration_domain.
26409
26410 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
26411             Tobias Grosser  <tobi.grosser@amd.com>
26412
26413         * graphite.c (add_conditions_to_domain): Add the loops to
26414         the dimension of the iteration domain.  Do copy the domain
26415         only when it exists.
26416         (build_scop_conditions_1): Do not call add_conditions_to_domain.
26417         (add_conditions_to_constraints): New.
26418         (can_generate_code_stmt, can_generate_code): Removed.
26419         (gloog): Do not call can_generate_code.
26420         (graphite_transform_loops): Call add_conditions_to_constraints
26421         after building the iteration domain.
26422
26423 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
26424
26425         PR tree-optimization/38789
26426         * tree-ssa-threadedge.c
26427         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
26428         __builtin_constant_p.
26429
26430 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
26431
26432         * dce.c (delete_unmarked_insns): Reversed the order that insns are
26433         examined before deleting them.
26434
26435 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
26436
26437         * function.c (aggregate_value_p): Correctly extract the function
26438         type from CALL_EXPR_FN lookup.
26439
26440 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
26441
26442         * config/picochip/picochip.c (picochip_override_options): Revert
26443         CFI asm flag disable commited previously.
26444
26445 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
26446             Tobias Grosser  <tobi.grosser@amd.com>
26447             Jan Sjodin  <jan.sjodin@amd.com>
26448
26449         * graphite.c (scan_tree_for_params): On substractions negate
26450         all the coefficients of the term.
26451         (clast_to_gcc_expression_red): New.  Handle reduction expressions
26452         of more than two operands.
26453         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
26454         (get_vdef_before_scop): Handle also the case of default definitions.
26455
26456 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
26457
26458         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
26459         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
26460         Also use them when walking CALL_INSN_FUNCTION_USAGE.
26461
26462 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
26463             Joey Ye  <joey.ye@intel.com>
26464
26465         PR middle-end/37843
26466         * cfgexpand.c (expand_stack_alignment): Don't update stack
26467         boundary nor check incoming stack boundary here.
26468         (gimple_expand_cfg): Update stack boundary and check incoming
26469         stack boundary here.
26470
26471 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
26472
26473         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
26474
26475 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
26476
26477         PR rtl-optimization/38245
26478         * calls.c (expand_call): Add stack arguments to
26479         CALL_INSN_FUNCTION_USAGE even for pure calls (when
26480         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
26481         in regs and partially in memory or BLKmode arguments.
26482         (emit_library_call_value_1): Add stack arguments to
26483         CALL_INSN_FUNCTION_USAGE even for pure calls (when
26484         ACCUMULATE_OUTGOING_ARGS).
26485         * dce.c: Include tm_p.h.
26486         (find_call_stack_args): New function.
26487         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
26488         argument.
26489         (mark_insn): Call find_call_stack_args for CALL_Ps.
26490         (prescan_insns_for_dce): Walk insns backwards in bb rather than
26491         forwards.  Allocate and free arg_stores bitmap if needed, pass it
26492         down to deletable_insn_p, don't mark stores set in arg_stores
26493         bitmap, clear the bitmap at the beginning of each bb.
26494         * Makefile.in (dce.o): Depend on $(TM_P_H).
26495
26496 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
26497
26498         PR target/22599
26499         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
26500         to make sure the insn is a conditional test (bug 22599).  Reformat a
26501         few long lines.
26502
26503 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
26504
26505         PR middle-end/38431
26506         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
26507         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
26508         (gloog): Do not call cleanup_tree_cfg.
26509         (graphite_transform_loops): Call cleanup_tree_cfg after all
26510         scops have been code generated.
26511
26512 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
26513         * doc/gty.texi (Invoking the garbage collector): Added new node
26514         and section documenting ggc_collect.
26515
26516 2009-01-14  Richard Guenther  <rguenther@suse.de>
26517
26518         PR tree-optimization/38826
26519         PR middle-end/38477
26520         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
26521         initialization notes only if we actually emitted a warning.
26522         (intra_create_variable_infos): Add constraints for a result decl
26523         that is passed by hidden reference.
26524         (build_pred_graph): Mark all related variables non-direct on
26525         address-taking.
26526
26527 2009-01-14  Nick Clifton  <nickc@redhat.com>
26528
26529         * ira-conflicts.c: Include addresses.h for the definition of
26530         base_reg_class.
26531         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
26532         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
26533
26534 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
26535
26536         PR target/38811
26537         * Makefile.in (ira-lives.o): Add except.h.
26538
26539         * ira-lives.c: Include except.h.
26540         (process_bb_node_lives): Process can_throw_internal.
26541
26542 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
26543
26544         PR rtl-optimization/38774
26545         * combine.c (simplify_set): When undoing cc_use change, don't do
26546         PUT_CODE on the newly created comparison, but instead put back the
26547         old comparison.
26548
26549 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
26550
26551         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
26552         values.  Remove duplicate arm8 entry.
26553
26554 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
26555
26556         PR tree-optimization/38786
26557         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
26558         the SSA_NAME case of expand_scalar_variables_expr.
26559         Set the type of an expression to the type of its assign statement.
26560         (expand_scalar_variables_expr): Also gather the scalar computation
26561         used to index the memory access.  Do not pass loop_p.
26562         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
26563         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
26564         the gimple_stmt_iterator where it inserts new code.
26565         Do not pass loop_p.
26566         (copy_bb_and_scalar_dependences): Do not pass loop_p.
26567         (translate_clast): Update call to copy_bb_and_scalar_dependences.
26568
26569 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
26570
26571         * graphite.h (debug_value): Removed.
26572         * graphite.c (debug_value): Removed.
26573
26574 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
26575
26576         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
26577         ldrd/strd with two 32-bit instructions.
26578
26579 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
26580
26581         * config/arm/arm.c (struct processors): Pass for speed down into
26582         cost helper functions.
26583         (const_ok_for_op): Handle COMPARE and inequality nodes.
26584         (arm_rtx_costs_1): Rewrite.
26585         (arm_size_rtx_costs): Update prototype.
26586         (arm_rtx_costs): Pass speed down to helper functions.
26587         (arm_slowmul_rtx_costs): Rework cost calculations.
26588         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
26589         (arm_9e_rtx_costs): Likewise.
26590
26591 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
26592
26593         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
26594         relocations of local symbols wider than UNITS_PER_WORD are not valid.
26595         (alpha_legitimize_address): Do not split local symbols wider than
26596         UNITS_PER_WORD into HIGH/LO_SUM parts.
26597
26598 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
26599
26600         PR bootstrap/38580
26601         * gcc.c (process_command): Replace call to execvp with calls
26602         to pex_one and exit.
26603
26604 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
26605
26606         PR target/29141
26607         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
26608         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
26609         variant for devices with 3-byte PC.
26610         (__tablejump_elpm__): New.
26611
26612 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
26613
26614         PR c/32041
26615         * c-parser.c (c_parser_postfix_expression): Allow `->' in
26616         offsetof member-designator, handle it as `[0].'.
26617
26618 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26619
26620         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
26621         function when not using named sections on targets with named sections
26622         if branch distance is less than 262132.
26623
26624 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
26625
26626         * combine.c (combine_instructions):  Recompute
26627         optimize_this_for_speed_p  for each BB in the main combine loop.
26628
26629 2009-01-12  Tomas Bily  <tbily@suse.cz>
26630
26631         PR middlend/38385
26632         * tree-loop-distribution.c (prop_phis): New function.
26633         (generate_builtin): Call prop_phis.
26634
26635 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
26636
26637         PR tree-optimization/38807
26638         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
26639         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
26640
26641 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
26642
26643         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
26644         subreg of op0 to the original op0.
26645
26646 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
26647
26648         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
26649
26650 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
26651
26652         PR debug/7055
26653         * mips-tfile.c (parse_def): Fix parsing of def strings
26654         starting with digits.
26655
26656 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
26657
26658         PR target/38695
26659         * config/arm/arm.c (arm_is_long_call_p): Don't call
26660         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
26661
26662 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
26663
26664         * regrename.c (regrename_optimize): Fix dumping.
26665         (find_oldest_value_reg): Preserve REG_POINTER.
26666         (copy_hardreg_forward_1): Likewise.
26667
26668 2009-01-09  Diego Novillo  <dnovillo@google.com>
26669
26670         * gimple.h (struct gimple_statement_base) <uid>: Document
26671         the restrictions on its use.
26672         (gimple_uid): Tidy.
26673         (gimple_set_uid): Tidy.
26674
26675 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
26676
26677         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
26678         zero guard even if align_bytes != 0 and count is smaller than
26679         size_needed.
26680
26681 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
26682
26683         PR rtl-optimization/38495
26684         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
26685         (add_range_and_copies_from_move_list): Print all added ranges.
26686         Add ranges to memory optimized destination.
26687
26688 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
26689
26690         PR target/38686
26691         PR target/38708
26692         * config/i386/i386.c (override_options): Reject
26693         -mstringop-strategy=rep_8byte with -m32.
26694         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
26695         to 1.  Do count comparison against epilogue_size_needed at compile
26696         time even when count_exp was constant forced into register.  For
26697         size_needed don't jump to epilogue, instead just avoid aligning
26698         and invoke the body algorithm.  If need_zero_guard, add zero guard
26699         even if count is non-zero, but smaller than size_needed + number of
26700         bytes that could be stored for alignment.
26701         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
26702         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
26703         but smaller than size_needed + number of bytes that could be stored
26704         for alignment.  Compare size_needed with epilogue_size_needed instead
26705         of desired_align - align, don't adjust size_needed, pass
26706         epilogue_size_needed to the epilogue expanders.
26707
26708         PR c/35742
26709         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
26710
26711 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26712
26713         * pa.c (last_address): Change to unsigned.
26714         (update_total_code_bytes): Change argument to unsigned.  Don't
26715         check if insn addresses are set.
26716         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
26717         addresses are not set.
26718         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
26719
26720 2009-01-09  Nick Clifton  <nickc@redhat.com>
26721
26722         * config/sh/symbian.c: Replace uses of DECL_INLINE with
26723         DECL_DECLARED_INLINE_P.
26724
26725 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
26726
26727         PR middle-end/38347
26728         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
26729         GET_MODE (op0) in operand_subword_force calls.
26730
26731         PR middle-end/38771
26732         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
26733         fold_convert arg0 operands to TREE_TYPE (op0) first.
26734
26735 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
26736
26737         * params.def (ira-max-conflict-table-size): Decrease default value
26738         to 1000.
26739
26740 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
26741
26742         PR tree-optimization/37031
26743         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
26744         on parameter_set.
26745         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
26746         allocate it using gc instead of heap, use VEC_quick_push instead of
26747         VEC_safe_push.
26748         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
26749         instead of heap, use VEC_quick_push instead of VEC_safe_push.
26750         * tree-data-ref.h (struct access_matrix): Change matrix to gc
26751         allocated vector from heap allocated.
26752         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
26753         * tree-loop-linear.c (linear_transform_loops): Allocate nest
26754         vector only after perfect_loop_nest_depth call.
26755
26756 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
26757             Jan Sjodin  <jan.sjodin@amd.com>
26758
26759         PR tree-optimization/38559
26760         * graphite.c (debug_value, copy_constraint,
26761         swap_constraint_variables, scale_constraint_variable, ): New.
26762         (get_lower_bound, get_upper_bound): Removed.
26763         (graphite_trans_bb_strip_mine): Clean up this code that works
26764         only for constant number of iterations.  Fully copy upper and
26765         lower bound constraints, not only the constant part of them.
26766         * graphite.h (debug_value): Declared.
26767
26768 2009-01-08  Ira Rosen  <irar@il.ibm.com>
26769
26770         PR tree-optimization/37194
26771         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
26772         Don't add the cost of cost model guard in prologue to scalar
26773         outside cost in case of known number of iterations.
26774
26775 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
26776             Alan Modra  <amodra@bigpond.net.au>
26777
26778         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
26779         non-word-aligned REG+CONST addressing.
26780
26781 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
26782
26783         PR target/38706
26784         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
26785         free_after_compilation when outputting a thunk.
26786         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
26787         Do not call free_after_compilation here.
26788
26789 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
26790
26791         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
26792         (ix86_valid_target_attribute_inner_p): Ditto.
26793
26794 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
26795
26796         PR tree-optimization/38492
26797         PR tree-optimization/38498
26798         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
26799         * tree-chrec.h (scev_is_linear_expression): Declared.
26800         * graphite.c (graphite_cannot_represent_loop_niter): New.
26801         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
26802         (graphite_loop_normal_form): Use gcc_assert.
26803         (scan_tree_for_params): Use CASE_CONVERT.
26804         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
26805         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
26806         Use gcc_assert.  Discard scops that contain unhandled cases.
26807         (build_scop_conditions): Return a boolean status for unhandled cases.
26808         (strip_mine_profitable_p): Print the loop number, not its depth.
26809         (is_interchange_valid): Pass the depth of the loop nest, don't
26810         recompute it wrongly.
26811         (graphite_trans_bb_block): Same.
26812         (graphite_trans_bb_block): Print tentative of loop blocking.
26813         (graphite_trans_scop_block): Do not print that the loop has been
26814         blocked.
26815         (graphite_transform_loops): Do not handle scops that contain condition
26816         scalar phi nodes.
26817
26818 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
26819
26820         AVX Programming Reference (December, 2008)
26821         * config/i386/avxintrin.h (_mm256_stream_si256): New.
26822         (_mm256_stream_pd): Likewise.
26823         (_mm256_stream_ps): Likewise.
26824
26825         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
26826         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
26827         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
26828         (bdesc_special_args): Add __builtin_ia32_movntdq256,
26829         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
26830         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
26831         (ix86_expand_special_args_builtin): Likewise.
26832
26833         * config/i386/sse.md (AVXMODEDI): New.
26834         (avx_movnt<mode>): Likewise.
26835         (avx_movnt<mode>): Likewise.
26836         (<sse>_movnt<mode>): Remove AVX support.
26837         (sse2_movntv2di): Likewise.
26838
26839 2009-01-07  Richard Guenther  <rguenther@suse.de>
26840
26841         PR middle-end/38751
26842         * fold-const.c (extract_muldiv): Remove obsolete comment.
26843         (fold_plusminus_mult_expr): Undo MINUS_EXPR
26844         to PLUS_EXPR canonicalization for the canonicalization.
26845
26846 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
26847
26848         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
26849         hosted cross-compilers generating less efficient code.
26850
26851 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
26852
26853         * function.h (rtl_data): Add a dbr_scheduled_p field.
26854         * reorg.c (dbr_schedule): Set it.
26855         (gate_handle_delay_slots): Check it.
26856         * config/mips/mips.c (mips_base_delayed_branch): Delete.
26857         (mips_reorg): Check flag_delayed_branch instead of
26858         mips_base_delayed_branch.
26859         (mips_override_options): Don't set mips_base_delayed_branch
26860         or flag_delayed_branch.
26861
26862 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
26863
26864         PR rtl-optimization/38426.
26865         * ira.c (ira): Set current_function_is_leaf earlier.
26866
26867 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
26868
26869         PR rtl-optimization/38722
26870         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
26871         too early, only set a flag and modify after last possible
26872         undo_all point.
26873
26874 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
26875
26876         PR c/34252
26877         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
26878         * real.c (decimal_single_format): Correct values of emin and emax.
26879         (decimal_double_format): Ditto.
26880         (decimal_quad_format): Ditto.
26881         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
26882         computation of DECnn_MIN and DECnn_MAX for corrected values of
26883         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
26884         __DECnn_MIN__, and adjust its computation for the corrected value
26885         of emin.
26886
26887 2009-01-06  Jan Hubicka  <jh@suse.cz>
26888
26889         PR target/38744
26890         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
26891
26892 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
26893
26894         * doc/contrib.texi (Contributors): Slightly adjust the end note.
26895         Add Robert Clark to the list of testers.
26896
26897 2009-01-06  Jan Hubicka  <jh@suse.cz>
26898             Kai Tietz  <kai.tietz@onevision.com>
26899
26900         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
26901         * config/i386/i386.c (ix86_expand_call): Add clobbers.
26902
26903 2009-01-06  Jan Hubicka  <jh@suse.cz>
26904             Kai Tietz  <kai.tietz@onevision.com>
26905
26906         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
26907         for w64 ABI.
26908         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
26909         (ix86_nsaved_regs): Count only general purpose regs.
26910         (ix86_nsaved_sseregs): New.
26911         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
26912         to 16 for w64; compute padding and size of sse reg save area.
26913         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
26914         general purpose regs.
26915         (ix86_emit_save_sse_regs_using_mov): New.
26916         (ix86_expand_prologue): Save SSE regs if needed.
26917         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
26918         (ix86_emit_restore_sse_regs_using_mov): New.
26919         (ix86_expand_epilogue): Save SSE regs if needed.
26920
26921 2009-01-06  Jan Hubicka  <jh@suse.cz>
26922             Kai Tietz  <kai.tietz@onevision.com>
26923
26924         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
26925         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
26926         functions when accumulate outgoing args is off.
26927
26928 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
26929
26930         PR bootstrap/38742
26931         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
26932         before using pseudos_have_intersected_live_ranges_p.
26933
26934         * ira-int.h (ira_assert): Always define.
26935
26936 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
26937
26938         AVX Programming Reference (December, 2008)
26939         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
26940         (_mm256_permute2_pd): Likewise.
26941         (_mm_permute2_ps): Likewise.
26942         (_mm256_permute2_ps): Likewise.
26943         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
26944         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
26945
26946         * config/i386/i386.c (ix86_builtins): Remove
26947         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
26948         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
26949         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
26950         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
26951         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
26952         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
26953         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
26954         __builtin_ia32_vpermil2ps256.
26955         (ix86_init_mmx_sse_builtins): Updated.
26956         (ix86_expand_args_builtin): Likewise.
26957
26958 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26959
26960         * pa.c (output_call): Relocate non-jump insns in the delay slot of
26961         long absolute calls when generating PA 2.0 code.
26962
26963 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
26964
26965         PR rtl-optimization/38583
26966         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
26967
26968         * params.def (ira-max-conflict-table-size): New.
26969
26970         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
26971
26972         * ira.h (ira_conflicts_p): New external definition.
26973
26974         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
26975         table.  Report this.  Return result of building.
26976         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
26977         building conflict table.
26978
26979         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
26980         (ira_color): Use ira_conflicts_p.
26981
26982         * global.c: Include ira.h.
26983         (pseudo_for_reload_consideration_p, build_insn_chain): Use
26984         ira_conflicts_p.
26985
26986         * Makefile.in (global.o): Add ira.h.
26987
26988         * ira-build.c (mark_all_loops_for_removal,
26989         propagate_some_info_from_allocno): New.
26990         (remove_unnecessary_allocnos): Call
26991         propagate_some_info_from_allocno.
26992         (remove_low_level_allocnos): New.
26993         (remove_unnecessary_regions): Add parameter.  Call
26994         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
26995         parameter to remove_unnecessary_regions.
26996         (ira_build): Remove all regions but root if the conflict table was
26997         not built.  Update conflict hard regs for allocnos crossing calls.
26998
26999         * ira.c (ira_conflicts_p): New global.
27000         (ira): Define and use ira_conflicts_p.
27001
27002         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
27003         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
27004         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
27005
27006 2009-01-06  Ben Elliston  <bje@au.ibm.com>
27007
27008         * gengtype-lex.l (YY_NO_INPUT): Define.
27009
27010 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27011
27012         PR c/34911
27013         * c-common.c (handle_vector_size_attribute): Also reject
27014         BOOLEAN_TYPE types.
27015
27016 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
27017
27018         PR tree-optimization/38492
27019         * graphite.c (rename_map_elt, debug_rename_elt,
27020         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
27021         rename_map_elt_info, eq_rename_map_elts,
27022         get_new_name_from_old_name, bb_in_sese_p): Moved around.
27023         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
27024         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
27025         (sese_build_livein_liveouts): New.
27026         (new_sese, free_sese): New.
27027         (new_scop): Call new_sese.
27028         (free_scop): Call free_sese.
27029         (rename_variables_from_edge, rename_phis_end_scop): Removed.
27030         (register_old_new_names): Renamed register_old_and_new_names.
27031         (register_scop_liveout_renames, add_loop_exit_phis,
27032         insert_loop_close_phis, struct igp,
27033         default_liveout_before_guard, add_guard_exit_phis,
27034         insert_guard_phis, copy_renames): New.
27035         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
27036         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
27037         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
27038         (scop_adjust_phis_for_liveouts): New.
27039         (gloog): Call scop_adjust_phis_for_liveouts.
27040
27041         * graphite.h (struct sese): Documented.  Added fields liveout,
27042         num_ver and livein.
27043         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
27044         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
27045         (struct scop): Added field liveout_renames.
27046         (SCOP_LIVEOUT_RENAMES): New.
27047
27048 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
27049
27050         PR tree-optimization/38510
27051         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
27052         (translate_clast): Call recompute_all_dominators before
27053         graphite_verify.
27054         (gloog): Call recompute_all_dominators before graphite_verify.
27055
27056 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
27057             Jan Sjodin  <jan.sjodin@amd.com>
27058
27059         PR tree-optimization/38500
27060         * graphite.c (create_sese_edges): Call fix_loop_structure after
27061         splitting blocks.
27062
27063 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
27064
27065         * config.gcc: Add m32r*-*-rtems*.
27066         * config/m32r/rtems.h: New file.
27067
27068 2009-01-05  Ben Elliston  <bje@au.ibm.com>
27069
27070         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
27071         (.po.pox): Likewise.
27072         (po/gcc.pot): Likewise.
27073
27074 2009-01-04  David S. Miller  <davem@davemloft.net>
27075
27076         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
27077         (STARTING_FRAME_OFFSET): Always set to zero.
27078
27079 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
27080
27081         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
27082         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
27083         fixed-point types, and vectors of the same.
27084
27085 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
27086
27087         * config/mips/sync.md (*mb_barrier): Rename to...
27088         (*memory_barrier): ...this.
27089
27090 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
27091
27092         * doc/extend.texi (Function Attributes): Move @cindex after @item
27093         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
27094         and put in alphabetical order. Fix 'target' name and put in order.
27095         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
27096         typos.
27097
27098 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
27099
27100         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
27101         (memory_barrier): Expand as unspec instead of unspec_volatile.
27102         Remove mem:BLK from insn operands.  Use Pmode scratch register.
27103         (*memory_barrier): Define as unspec instead of unspec_volatile.
27104         Use (match_dup 0) as input operand.
27105
27106         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
27107         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
27108         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
27109         scratch register.  Remove operand 1.
27110         (*stbar): Define as unspec instead of unspec_volatile.
27111         Use (match_dup 0) as input operand, remove (const_int 8).
27112         (*membar): Define as unspec instead of unspec_volatile.
27113         Use (match_dup 0) as input operand, remove input operand 2.
27114
27115         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
27116         (memory_barrier): Expand as unspec instead of unspec_volatile.
27117         Remove mem:BLK from insn operands.  Use Pmode scratch register.
27118         (*memory_barrier): Define as unspec instead of unspec_volatile.
27119         Use (match_dup 0) as input operand.
27120
27121         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
27122         Remove mem:BLK from insn operands.  Use Pmode scratch register.
27123         Set volatile flag on operand 0.
27124         (*memory_barrier): New insn pattern.
27125
27126         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
27127         insn operands.
27128         (*memory_barrier): Use (match_dup 0) as input operand.
27129
27130         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
27131         Remove mem:BLK from insn operands.  Use Pmode scratch register.
27132         Set volatile flag on operand 0.
27133         (*mb_internal): New insn pattern.
27134
27135         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
27136
27137 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
27138
27139         PR middle-end/38586
27140         * function.c (struct temp_slot): Move to the section of the file
27141         that deals with temp slots.  Remove field 'address'.
27142         (temp_slot_address_table): New hash table of address -> temp slot.
27143         (struct temp_slot_address_entry): New struct, items for the table.
27144         (temp_slot_address_compute_hash, temp_slot_address_hash,
27145         temp_slot_address_eq, insert_temp_slot_address): Support functions
27146         for the new table.
27147         (find_temp_slot_from_address): Rewrite to use the new hash table.
27148         (remove_unused_temp_slot_addresses): Remove addresses of temp
27149         slots that have been made available.
27150         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
27151         worker function for remove_unused_temp_slot_addresses.
27152         (assign_stack_temp_for_type): Don't clear the temp slot address list.
27153         Add the temp slot address to the address -> temp slot map.
27154         (update_temp_slot_address): Update via insert_temp_slot_address.
27155         (free_temp_slots): Call remove_unused_temp_slot_addresses.
27156         (pop_temp_slots): Likewise.
27157         (init_temp_slots): Allocate the address -> temp slot map, or empty
27158         the map if it is already allocated.
27159         (prepare_function_start): Initialize temp slot processing.
27160
27161 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
27162
27163         PR middle-end/38584
27164         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
27165         Calculate the size of all stack vars assuming no packing of stack
27166         vars will happen, replacing a quadratic algorithm with a linear one.
27167
27168 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
27169
27170         PR target/38707
27171         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
27172         can't be used.
27173
27174 2009-01-03  Diego Novillo  <dnovillo@google.com>
27175
27176         * doc/contrib.texi: Update contributions.
27177
27178 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
27179
27180         PR c++/38705
27181         * builtins.c (fold_builtin_memory_op): Give up if either operand
27182         is volatile.  Set srctype or desttype to non-qualified version
27183         of the other type.
27184
27185         PR c/38700
27186         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
27187         and FUNCTION_DECLs.
27188
27189 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
27190
27191         PR rtl-optimization/35805
27192         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
27193         problem if fast dce is able to remove any instructions.
27194         * dce.c (dce_process_block): Fix dump message.
27195
27196 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
27197
27198         PR 33649
27199         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
27200
27201 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
27202
27203         PR middle-end/38690
27204         * tree-flow.h (op_code_prio, op_prio): New prototypes.
27205         * tree-pretty-print.c (op_code_prio): New function.
27206         (op_prio): No longer static.  Use op_code_prio.
27207         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
27208         Use op_prio and op_code_prio to determine if () should be
27209         printed around operand(s) or not.
27210
27211         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
27212         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
27213         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
27214         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
27215         pp_character instead of pp_string for single letter printing.
27216
27217 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
27218
27219         * doc/extend.texi: Fix '#pragma GCC option' typo.
27220
27221 2009-01-02  Richard Guenther  <rguenther@suse.de>
27222
27223         * doc/install.texi (--enable-checking): Mention different
27224         default for stage1.
27225         (--enable-stage1-checking): Document.
27226
27227 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
27228
27229         PR middle-end/30142
27230         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
27231         case to be an error.
27232
27233 2009-01-02  Ben Elliston  <bje@au.ibm.com>
27234
27235         * config/fp-bit.h (pack_d): Constify argument.
27236         * config/fp-bit.c (makenan): Constify return type. Remove casts.
27237         (isnan): Constify argument.
27238         (isinf): Likewise.
27239         (iszero): Likewise.
27240         (pack_d): Likewise.
27241         (_fpadd_parts): Constify return type.
27242         (_fpmul_parts): Likewise.
27243         (_fpdiv_parts): Likewise.
27244
27245 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
27246
27247         PR c/36489
27248         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
27249         warn about overwriting initializer with side-effects or
27250         -Woverride-init if !IMPLICIT.
27251         (output_init_element): Likewise.  Pass IMPLICIT down to
27252         add_pending_init.
27253         (process_init_element): Add IMPLICIT argument.  Pass it down
27254         to output_init_element.
27255         (push_init_element, pop_init_level, set_designator): Adjust
27256         process_init_element callers.
27257         (set_nonincremental_init, set_nonincremental_init_from_string):
27258         Adjust add_pending_init callers.
27259         (output_pending_init_elements): Adjust output_init_element callers.
27260         * c-tree.h (process_init_element): Adjust prototype.
27261         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
27262         process_init_element callers.
27263
27264 \f
27265 Copyright (C) 2009 Free Software Foundation, Inc.
27266
27267 Copying and distribution of this file, with or without modification,
27268 are permitted in any medium without royalty provided the copyright
27269 notice and this notice are preserved.