OSDN Git Service

* config/i386/cygwin.h (LINK_SPEC): Add -tsaware flag if !mno-cygwin.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-11-09  Dave Korn  <dave.korn.cygwin@gmail.com>
2
3         * config/i386/cygwin.h (LINK_SPEC): Add -tsaware flag if !mno-cygwin.
4
5 2009-11-09  Jason Merrill  <jason@redhat.com>
6
7         * gdbinit.in (pgq): New function for printing gimple sequence.
8
9 2009-11-09  Paul Brook  <paul@codesourcery.com>
10         Daniel Jacobowitz  <dan@codesourcery.com>
11         Sandra Loosemore  <sandra@codesourcery.com>
12
13         * doc/extend.texi (Half-Precision): Update wording to reflect
14         that there are now multiple -mfpu options that enable fp16
15         hardware support.
16         * doc/invoke.texi: Update list of ARM -mfpu= options.
17         * config.gcc: Update ARM --with-fpu option list.
18         * config/arm/arm.c (all_fpus): Add vfpv3-fp16, vfpv3-d16-fp16,
19         vfpv3xd and vfpv3xd-fp16.
20         (use_vfp_abi): New function.
21         (aapcs_vfp_is_call_or_return_candidate): Avoid double precision regs
22         when undesirable.
23         (aapcs_vfp_is_return_candidate, aapcs_vfp_is_call_candidate,
24         aapcs_vfp_allocate_return_reg): Use use_vfp_abi.
25         (arm_rtx_costs_1, arm_size_rtx_costs, arm_fastmul_rtx_costs,
26         arm_9e_rtx_costs): Only expect double-precision operations if the FPU
27         provides them.
28         (coproc_secondary_reload_class): Reload HFmode via GENERAL_REGS if no
29         NEON.
30         (arm_print_operand): Handle 'p' modifier.
31         (arm_hard_regno_mode_ok): : Allow HFmode in VFP registers if
32         TARGET_FP16.
33         * config/arm/arm.h (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Define.
34         (TARGET_FP16): Define.
35         * config/arm/vfp.md: Disable double-precision patterns if the FPU
36         does not provide them.
37         (arm_movdi_vfp, thumb2_movdi_vfp): Use fcpys to move
38         double-precision values on a single-precision FPU.
39         (movdf_vfp, thumb2_movdf_vfp): Likewise.  Use "Dy" for
40         double-precision constants.
41         (movhf_vfp_neon): New pattern (was movhf_vfp).
42         (movhf_vfp): Remove NEON instructions.
43         * config/arm/constraints.md: Add new "Dy" constraint for
44         double-precision constants.  Update description of "Dv".
45         * config/arm/arm.md: Disable double-precision patterns if the FPU
46         does not provide them
47
48 2009-11-09  Jakub Jelinek  <jakub@redhat.com>
49
50         * config/i386/i386.c (print_operand) <case 'D'>: Fix formatting.
51         (print_operand) <case 'Y'>: Likewise.  Fix a pasto in operand lossage
52         diagnostics.
53
54 2009-11-08  H.J. Lu  <hongjiu.lu@intel.com>
55
56         * collect2.c (main): Search PLUGIN_LD for plugin linker.
57
58         * configure.ac (--with-plugin-ld): New.  Default to ld.
59         * configure: Regenerated.
60         * config.in: Likewise.
61
62         * exec-tool.in (ORIGINAL_PLUGIN_LD_FOR_TARGET): New.
63         (collect-ld): Use ORIGINAL_PLUGIN_LD_FOR_TARGET for -plugin.
64
65 2009-11-08  Jonathan Gray <jsg@openbsd.org>
66
67         * config/openbsd-stdint.h: Change to reflect what
68         c_common_nodes_and_builtins expects.
69
70 2009-11-08  Paolo Carlini  <paolo.carlini@oracle.com>
71
72         * builtins.c (apply_args_reg_offset): Remove commented out delaration.
73
74 2009-11-08  Jakub Jelinek  <jakub@redhat.com>
75
76         PR target/41985
77         * config/i386/i386.c (get_some_local_dynamic_name): Don't assert
78         function contains at least one local dynamic name.
79         (print_operand) <case '&'>: Instead output operand lossage diagnostics
80         here if that happens.
81
82 2009-11-08  Zbigniew Chamski  <zbigniew.chamski@gmail.com>
83             Joern Rennecke  <amylaar@spamcop.net>
84
85         * cfgrtl.c (pass_free_cfg): Add pass name.
86         * cgraphbuild.c (pass_build_cgraph_edges): Likewise.
87         (pass_rebuild_cgraph_edges, pass_remove_cgraph_callee_edges): Likewise.
88         * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Change pass name.
89         * df-core.c (pass_df_initialize_no_opt): Likewise.
90         * except.c (pass_rtl_eh): Likewise.
91         * function.c (pass_init_function, pass_leaf_regs): Likewise.
92         * gcse.c (pass_rtl_pre): Change pass name.
93         * passes.c (pass_postreload): Add pass name.
94         (make_pass_instance): Don't use duplicate-tracking logic for
95         names starting with '*'.
96         (next_pass_1): Assert that pass has a name.
97         (register_one_dump_file): If there is an space in the name,
98         skip past it.
99         * predict.c (pass_strip_predict_hints): Add pass name.
100         * reg-stack.c (pass_stack_regs): Likewise.
101         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
102         * tree-cfg.c (pass_warn_function_return,
103         pass_warn_function_noreturn): Add pass name.
104         * tree-dfa.c (pass_referenced_vars): Likewise.
105         * tree-optimize.c (pass_cleanup_cfg_post_optimizing):
106         Fix whitespace before comment.
107         (pass_fixup_cfg): Add pass name, fix whitespace before comment.
108         (pass_init_datastructures): Add pass name.
109         * tree-ssa-loop.c (pass_record_bounds): Likewise.
110         * tree-ssa.c (pass_early_warn_uninitialized,
111         pass_late_warn_uninitialized): Likewise.
112         * tree.c (pass_ipa_free_lang_data): Likewise.
113         * doc/passes.texi (pass manager): Document how to disambiguate
114         pass names.
115
116 2009-11-08  Paolo Bonzini  <bonzini@gnu.org>
117
118         * df-problems.c: Fix documentation for forward simulation of LR.
119         (df_simulate_one_insn_forwards): Use df_simulate_find_defs.
120         (df_simulate_finalize_forwards): Remove.
121         * df.h (df_simulate_finalize_forwards): Remove.
122
123 2009-11-08  Richard Guenther  <rguenther@suse.de>
124
125         * tree-ssa-structalias.c (build_succ_graph): Properly make
126         variables escape if they are stored to anything.
127
128 2009-11-08  Richard Guenther  <rguenther@suse.de>
129
130         PR rtl-optimization/41928
131         * loop-invariant.c (free_loop_data): If we didn't allocate
132         loop data do not try to free it.
133
134 2009-11-07  Jason Merrill  <jason@redhat.com>
135
136         * tree.c (reconstruct_complex_type): Preserve attributes.
137
138 2009-11-07  Richard Guenther  <rguenther@suse.de>
139
140         * tree-ssa-structalias.c (build_succ_graph): Feed stores
141         to anything only to variables that can take pointers.
142         (get_constraint_for_ssa_var): Properly exclude full
143         variables from expanding.
144         (first_vi_for_offset): Avoid overflow in arithmetic.
145         (first_or_preceding_vi_for_offset): Likewise.
146         (count_num_arguments): Fix implementation.
147         (gate_ipa_pta): Do not run when not optimizing.
148
149 2009-11-07  David Binderman <dcb314@hotmail.com>
150
151         * builtins.c (apply_args_size, expand_builtin_mathfn, expand_powi,
152         expand_builtin_expect, maybe_emit_sprintf_chk_warning): Remove some
153         set but not used variables.
154         (apply_args_reg_offset): Comment out as unused.
155         * calls.c (flags_from_decl_or_type): Likewise.
156         * genautomata.c (check_regexp_units_distribution): Likewise.
157
158 2009-11-07  Uros Bizjak  <ubizjak@gmail.com>
159
160         * config/i386/sse.md (xop_pmacsww, xop_pmacssww, xop_pmacsdd,
161         xop_pmacssdd, xop_pmacssdql, xop_pmacssdqh, xop_pmacsdql,
162         *xop_pmacsdql_mem, xop_pmacsdqh, *xop_pmacsdqh_mem, xop_pmacsswd,
163         xop_pmacswd, xop_pmadcsswd, xop_pmadcswd, xop_pcmov_<mode>,
164         xop_pcmov_<mode>256, xop_pperm, xop_pperm_pack_v2di_v4si,
165         xop_pperm_pack_v4si_v8hi, xop_pperm_pack_v8hi_v16qi): Compress
166         operand alternatives.
167
168 2009-11-06  Michael Matz  <matz@suse.de>
169
170         PR middle-end/41963
171         * tree-ssa-math-opts.c (execute_cse_reciprocals): Check all uses
172         of a potential reciprocal to really be reciprocals.
173
174 2009-11-06  Jakub Jelinek  <jakub@redhat.com>
175
176         * config/i386/x86intrin.h: Include fma4intrin.h, xopintrin.h and
177         lwpintrin.h after immintrin.h.
178         * config/i386/fma4intrin.h (__v8sf, __v4df, __m256, __m256d): Remove
179         typedefs.
180
181         PR middle-end/41935
182         * c-common.c (fold_offsetof_1) <case ARRAY_REF>: Don't crash for VLAs
183         or non-constant index, allow index one past the last element and
184         allow exceeding array bound in arrays that might be used as flexible
185         array members.
186
187 2009-11-05  Richard Henderson  <rth@redhat.com>
188
189         * config/i386/ia32intrin.h: Protect CRC32 builtins with __SSE4_2__.
190
191 2009-11-05  Paul Brook  <paul@codesourcery.com>
192
193         * config/arm/arm.c (arm_fp_model, arm_fpu_arch, arm_fpu_tune): Remove.
194         (arm_fpu_desc): New.
195         (all_fpus): Add FPU details.
196         (fp_model_for_fpu): Remove.
197         (arm_override_options): Set and use arm_fpu_desc and arm_fpu_attr.
198         (arm_output_epilogue, arm_save_coproc_regs): Use TARGET_FPA_EMU2.
199         (arm_file_start): Use arm_fpu_desc.
200         * config/arm/arm.h (TARGET_FPA, TARGET_MAVERICK, TARGET_VFP,
201         TARGET_VFPD32, TARGET_VFP3, TARGET_NEON_FP16, TARGET_NEON): Use
202         arm_fpu_desc.
203         (TARGET_FPA_EMU2): Define.
204         (arm_fp_model, fputype, arm_fpu_tune): Remove.
205         (vfp_reg_type, arm_fpu_desc): New.
206         * config/arm/arm.md (attr fpu): Simplify.
207         * config/arm/fpa.md (movxf_fpa): Use TARGET_FPA_EMU2.
208         * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Use string value.
209         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Use string value.
210         * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Use string value.
211         * config/arm/vxworks.h (FPUTYPE_DEFAULT): Use string value.
212
213 2009-11-05  Michael Matz  <matz@suse.de>
214
215         * config/i386/i386.c (ix86_builtin_reciprocal): Remove dependency
216         on TARGET_RECIP.
217         * doc/invoke.texi (-mrecip): Clarify that we don't need -mrecip
218         for 1/sqrtf.
219
220 2009-11-04  Jason Merrill  <jason@redhat.com>
221
222         PR c++/36912
223         * varasm.c (initializer_constant_valid_p): A PLUS_EXPR
224         or MINUS_EXPR of REAL_TYPE is not a valid constant initializer.
225         (output_constant): Avoid crash after error.
226
227 2009-11-05  Martin Jambor  <mjambor@suse.cz>
228
229         * tree-sra.c (struct access): Changed comment of next_sibling field.
230         (analyze_modified_params): Loop over accesses of a group rather than
231         over all with the ame base, pass a common bitmap to
232         walk_aliased_vdefs.
233         (unmodified_by_ref_scalar_representative): Build link lists of
234         accesses of a group.
235         (splice_param_accesses): Likewise.
236
237 2009-11-04  Kenneth Zadeck  <zadeck@naturalbridge.com>
238
239         * df-scan.c (df-uses-record): Add case zero_extract of mem.
240         
241 2009-11-04  Eric Botcazou  <ebotcazou@adacore.com>
242
243         PR target/10127
244         PR ada/20548
245         * config/i386/i386.md (probe_stack): New expander.
246         (logical operation peepholes): Do not split stack checking probes.
247
248 2009-11-04  Harsha Jagasia  <harsha.jagasia@amd.com>
249             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
250
251         * doc/invoke.texi (-mlwp): Add documentation.
252         * doc/extend.texi (x86 intrinsics): Add LWP intrinsics.
253         * config.gcc (i[34567]86-*-*): Include lwpintrin.h.
254         (x86_64-*-*): Ditto.
255         * config/i386/lwpintrin.h: New file, provide x86 compiler
256         intrinisics for LWP.
257         * config/i386/cpuid.h (bit_LWP): Define LWP bit.
258         * config/i386/x86intrin.h: Add LWP check and lwpintrin.h.
259         * config/i386/i386-c.c (ix86_target_macros_internal): Check
260         ISA_FLAG for LWP. 
261         * config/i386/i386.h (TARGET_LWP): New macro for LWP.
262         * config/i386/i386.opt (-mlwp): New switch for LWP support.
263         * config/i386/i386.c (OPTION_MASK_ISA_LWP_SET): New.
264         (OPTION_MASK_ISA_LWP_UNSET): New.       
265         (ix86_handle_option): Handle -mlwp.
266         (isa_opts): Handle -mlwp.
267         (enum pta_flags): Add PTA_LWP.
268         (override_options): Add LWP support.
269         (IX86_BUILTIN_LLWPCB16): New for LWP intrinsic.
270         (IX86_BUILTIN_LLWPCB32): Ditto.
271         (IX86_BUILTIN_LLWPCB64): Ditto.
272         (IX86_BUILTIN_SLWPCB16): Ditto.
273         (IX86_BUILTIN_SLWPCB32): Ditto.
274         (IX86_BUILTIN_SLWPCB64): Ditto.
275         (IX86_BUILTIN_LWPVAL16): Ditto.
276         (IX86_BUILTIN_LWPVAL32): Ditto.
277         (IX86_BUILTIN_LWPVAL64): Ditto.
278         (IX86_BUILTIN_LWPINS16): Ditto.
279         (IX86_BUILTIN_LWPINS32): Ditto.
280         (IX86_BUILTIN_LWPINS64): Ditto.
281         (enum  ix86_special_builtin_type): Add LWP intrinsic support.
282         (builtin_description): Ditto.
283         (ix86_init_mmx_sse_builtins): Ditto.
284         (ix86_expand_special_args_builtin): Ditto.
285         * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC): Add new UNSPEC for 
286         LWP support.
287         (UNSPEC_SLWP_INTRINSIC): Ditto.
288         (UNSPECV_LWPVAL_INTRINSIC): Ditto.
289         (UNSPECV_LWPINS_INTRINSIC): Ditto.
290         (lwp_llwpcbhi1): New lwp pattern.
291         (lwp_llwpcbsi1): Ditto.
292         (lwp_llwpcbdi1): Ditto.
293         (lwp_slwpcbhi1): Ditto.
294         (lwp_slwpcbsi1): Ditto.
295         (lwp_slwpcbdi1): Ditto.
296         (lwp_lwpvalhi3): Ditto.
297         (lwp_lwpvalsi3): Ditto.
298         (lwp_lwpvaldi3): Ditto.
299         (lwp_lwpinshi3): Ditto.
300         (lwp_lwpinssi3): Ditto.
301         (lwp_lwpinsdi3): Ditto.
302         
303 2009-11-04  Andrew Pinski  <andrew_pinski@playstation.sony.com>
304             Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
305
306         PR rtl-opt/41833
307         * simplify-rtx.c (simplify_binary_operation_1): Simplify vec_select of
308         a vec_duplicate.
309
310 2009-11-04  Richard Guenther  <rguenther@suse.de>
311             Rafael Avila de Espindola  <espindola@google.com>
312  
313         * gcc.c (process_command): Handle arguments name@offset.
314
315 2009-11-04  Harsha Jagasia  <harsha.jagasia@amd.com>
316             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
317         
318         * config.gcc (i[34567]86-*-*): Include xopintrin.h.
319         (x86_64-*-*): Ditto.
320         * config/i386/xopintrin.h: New file, provide common x86 compiler
321         intrinisics for XOP.
322         * config/i386/cpuid.h (bit_XOP): Define XOP bit.
323         * config/i386/x86intrin.h: Add XOP check and xopintrin.h.
324         * config/i386/i386-c.c(ix86_target_macros_internal): Check
325         ISA_FLAG for XOP. 
326         * config/i386/i386.h(TARGET_XOP): New macro for XOP.
327         * config/i386/i386.opt (-mxop): New switch for XOP support.
328         * config/i386/i386.md (UNSPEC_XOP_UNSIGNED_CMP)
329         (UNSPEC_XOP_TRUEFALSE)
330         (UNSPEC_XOP_PERMUTE)
331         (UNSPEC_FRCZ): Add new UNSPEC for XOP support.
332         (PPERM_*): New constants for vpperm instruction.
333         (xop_pcmov_<mode>): Add XOP conditional mov instructions.
334         * config/i386/i386.c (OPTION_MASK_ISA_XOP_SET): New.
335         (OPTION_MASK_ISA_XOP_UNSET): New.       
336         (OPTION_MASK_ISA_XOP_UNSET): Change definition to depend on XOP.
337         (ix86_handle_option): Handle -mxop.
338         (isa_opts): Handle -mxop.
339         (enum pta_flags): Add PTA_XOP.
340         (override_options): Add XOP support.
341         (print_operand): Add code for XOP compare instructions.
342         (ix86_expand_sse_movcc): Extend for XOP conditional move instruction.
343         (ix86_expand_int_vcond): Extend for XOP compare instruction.
344
345         (IX86_BUILTIN_VPCMOV): New for XOP intrinsic.
346         (IX86_BUILTIN_VPCMOV_V2DI): Ditto.
347         (IX86_BUILTIN_VPCMOV_V4SI): Ditto.
348         (IX86_BUILTIN_VPCMOV_V8HI): Ditto.
349         (IX86_BUILTIN_VPCMOV_V16QI): Ditto.
350         (IX86_BUILTIN_VPCMOV_V4SF): Ditto.
351         (IX86_BUILTIN_VPCMOV_V2DF): Ditto.
352
353         (IX86_BUILTIN_VPCMOV256): Ditto.
354         (IX86_BUILTIN_VPCMOV_V4DI256): Ditto.
355         (IX86_BUILTIN_VPCMOV_V8SI256): Ditto.
356         (IX86_BUILTIN_VPCMOV_V16HI256): Ditto.
357         (IX86_BUILTIN_VPCMOV_V32QI256): Ditto.
358         (IX86_BUILTIN_VPCMOV_V8SF256): Ditto.
359         (IX86_BUILTIN_VPCMOV_V4DF256): Ditto.
360
361         (IX86_BUILTIN_VPPERM): Ditto.
362
363         (IX86_BUILTIN_VPMACSSWW): Ditto.
364         (IX86_BUILTIN_VPMACSWW): Ditto.
365         (IX86_BUILTIN_VPMACSSWD): Ditto.
366         (IX86_BUILTIN_VPMACSWD): Ditto.
367         (IX86_BUILTIN_VPMACSSDD): Ditto.
368         (IX86_BUILTIN_VPMACSDD): Ditto.
369         (IX86_BUILTIN_VPMACSSDQL): Ditto.
370         (IX86_BUILTIN_VPMACSSDQH): Ditto.
371         (IX86_BUILTIN_VPMACSDQL): Ditto.
372         (IX86_BUILTIN_VPMACSDQH): Ditto.
373         (IX86_BUILTIN_VPMADCSSWD): Ditto.
374         (IX86_BUILTIN_VPMADCSWD): Ditto.
375
376         (IX86_BUILTIN_VPHADDBW): Ditto.
377         (IX86_BUILTIN_VPHADDBD): Ditto.
378         (IX86_BUILTIN_VPHADDBQ): Ditto.
379         (IX86_BUILTIN_VPHADDWD): Ditto.
380         (IX86_BUILTIN_VPHADDWQ): Ditto.
381         (IX86_BUILTIN_VPHADDDQ): Ditto.
382         (IX86_BUILTIN_VPHADDUBW): Ditto.
383         (IX86_BUILTIN_VPHADDUBD): Ditto.
384         (IX86_BUILTIN_VPHADDUBQ): Ditto.
385         (IX86_BUILTIN_VPHADDUWD): Ditto.
386         (IX86_BUILTIN_VPHADDUWQ): Ditto.
387         (IX86_BUILTIN_VPHADDUDQ): Ditto.
388         (IX86_BUILTIN_VPHSUBBW): Ditto.
389         (IX86_BUILTIN_VPHSUBWD): Ditto.
390         (IX86_BUILTIN_VPHSUBDQ): Ditto.
391
392         (IX86_BUILTIN_VPROTB): Ditto.
393         (IX86_BUILTIN_VPROTW): Ditto.
394         (IX86_BUILTIN_VPROTD): Ditto.
395         (IX86_BUILTIN_VPROTQ): Ditto.
396         (IX86_BUILTIN_VPROTB_IMM): Ditto.
397         (IX86_BUILTIN_VPROTW_IMM): Ditto.
398         (IX86_BUILTIN_VPROTD_IMM): Ditto.
399         (IX86_BUILTIN_VPROTQ_IMM): Ditto.
400
401         (IX86_BUILTIN_VPSHLB): Ditto.
402         (IX86_BUILTIN_VPSHLW): Ditto.
403         (IX86_BUILTIN_VPSHLD): Ditto.
404         (IX86_BUILTIN_VPSHLQ): Ditto.
405         (IX86_BUILTIN_VPSHAB): Ditto.
406         (IX86_BUILTIN_VPSHAW): Ditto.
407         (IX86_BUILTIN_VPSHAD): Ditto.
408         (IX86_BUILTIN_VPSHAQ): Ditto.
409
410         (IX86_BUILTIN_VFRCZSS): Ditto.
411         (IX86_BUILTIN_VFRCZSD): Ditto.
412         (IX86_BUILTIN_VFRCZPS): Ditto.
413         (IX86_BUILTIN_VFRCZPD): Ditto.
414         (IX86_BUILTIN_VFRCZPS256): Ditto.
415         (IX86_BUILTIN_VFRCZPD256): Ditto.
416
417         (IX86_BUILTIN_VPCOMEQUB): Ditto.
418         (IX86_BUILTIN_VPCOMNEUB): Ditto.
419         (IX86_BUILTIN_VPCOMLTUB): Ditto.
420         (IX86_BUILTIN_VPCOMLEUB): Ditto.
421         (IX86_BUILTIN_VPCOMGTUB): Ditto.
422         (IX86_BUILTIN_VPCOMGEUB): Ditto.
423         (IX86_BUILTIN_VPCOMFALSEUB): Ditto.
424         (IX86_BUILTIN_VPCOMTRUEUB): Ditto.
425
426         (IX86_BUILTIN_VPCOMEQUW): Ditto.
427         (IX86_BUILTIN_VPCOMNEUW): Ditto.
428         (IX86_BUILTIN_VPCOMLTUW): Ditto.
429         (IX86_BUILTIN_VPCOMLEUW): Ditto.
430         (IX86_BUILTIN_VPCOMGTUW): Ditto.
431         (IX86_BUILTIN_VPCOMGEUW): Ditto.
432         (IX86_BUILTIN_VPCOMFALSEUW): Ditto.
433         (IX86_BUILTIN_VPCOMTRUEUW): Ditto.
434
435         (IX86_BUILTIN_VPCOMEQUD): Ditto.
436         (IX86_BUILTIN_VPCOMNEUD): Ditto.
437         (IX86_BUILTIN_VPCOMLTUD): Ditto.
438         (IX86_BUILTIN_VPCOMLEUD): Ditto.
439         (IX86_BUILTIN_VPCOMGTUD): Ditto.
440         (IX86_BUILTIN_VPCOMGEUD): Ditto.
441         (IX86_BUILTIN_VPCOMFALSEUD): Ditto.
442         (IX86_BUILTIN_VPCOMTRUEUD): Ditto.
443
444         (IX86_BUILTIN_VPCOMEQUQ): Ditto.
445         (IX86_BUILTIN_VPCOMNEUQ): Ditto.
446         (IX86_BUILTIN_VPCOMLTUQ): Ditto.
447         (IX86_BUILTIN_VPCOMLEUQ): Ditto.
448         (IX86_BUILTIN_VPCOMGTUQ): Ditto.
449         (IX86_BUILTIN_VPCOMGEUQ): Ditto.
450         (IX86_BUILTIN_VPCOMFALSEUQ): Ditto.
451         (IX86_BUILTIN_VPCOMTRUEUQ): Ditto.
452
453         (IX86_BUILTIN_VPCOMEQB): Ditto.
454         (IX86_BUILTIN_VPCOMNEB): Ditto.
455         (IX86_BUILTIN_VPCOMLTB): Ditto.
456         (IX86_BUILTIN_VPCOMLEB): Ditto.
457         (IX86_BUILTIN_VPCOMGTB): Ditto.
458         (IX86_BUILTIN_VPCOMGEB): Ditto.
459         (IX86_BUILTIN_VPCOMFALSEB): Ditto.
460         (IX86_BUILTIN_VPCOMTRUEB): Ditto.
461
462         (IX86_BUILTIN_VPCOMEQW): Ditto.
463         (IX86_BUILTIN_VPCOMNEW): Ditto.
464         (IX86_BUILTIN_VPCOMLTW): Ditto.
465         (IX86_BUILTIN_VPCOMLEW): Ditto.
466         (IX86_BUILTIN_VPCOMGTW): Ditto.
467         (IX86_BUILTIN_VPCOMGEW): Ditto.
468         (IX86_BUILTIN_VPCOMFALSEW): Ditto.
469         (IX86_BUILTIN_VPCOMTRUEW): Ditto.
470
471         (IX86_BUILTIN_VPCOMEQD): Ditto.
472         (IX86_BUILTIN_VPCOMNED): Ditto.
473         (IX86_BUILTIN_VPCOMLTD): Ditto.
474         (IX86_BUILTIN_VPCOMLED): Ditto.
475         (IX86_BUILTIN_VPCOMGTD): Ditto.
476         (IX86_BUILTIN_VPCOMGED): Ditto.
477         (IX86_BUILTIN_VPCOMFALSED): Ditto.
478         (IX86_BUILTIN_VPCOMTRUED): Ditto.
479
480         (IX86_BUILTIN_VPCOMEQQ): Ditto.
481         (IX86_BUILTIN_VPCOMNEQ): Ditto.
482         (IX86_BUILTIN_VPCOMLTQ): Ditto.
483         (IX86_BUILTIN_VPCOMLEQ): Ditto.
484         (IX86_BUILTIN_VPCOMGTQ): Ditto.
485         (IX86_BUILTIN_VPCOMGEQ): Ditto.
486         (IX86_BUILTIN_VPCOMFALSEQ): Ditto.
487         (IX86_BUILTIN_VPCOMTRUEQ): Ditto.
488
489         (enum multi_arg_type): New enum for describing the various XOP
490         intrinsic argument types.
491         (bdesc_multi_arg): New table for XOP intrinsics.
492         (ix86_init_mmx_sse_builtins): Add XOP intrinsic support.
493         (ix86_expand_multi_arg_builtin): New function for creating XOP
494         intrinsics.
495
496         * config/i386/sse.md (sserotatemax): New mode attribute for XOP.
497         (xop_pmacsww): Ditto.
498         (xop_pmacssww): Ditto.
499         (xop_pmacsdd): Ditto.
500         (xop_pmacssdd): Ditto.
501         (xop_pmacssdql): Ditto.
502         (xop_pmacssdqh): Ditto.
503         (xop_pmacsdql): Ditto.
504         (xop_pmacsdql_mem): Ditto.
505         (xop_mulv2div2di3_low): Ditto.
506         (xop_pmacsdqh): Ditto.
507         (xop_pmacsdqh_mem): Ditto.
508         (xop_mulv2div2di3_high): Ditto.
509         (xop_pmacsswd): Ditto.
510         (xop_pmacswd): Ditto.
511         (xop_pmadcsswd): Ditto.
512         (xop_pmadcswd): Ditto.
513         (xop_pcmov_<mode>): Ditto.
514         (xop_pcmov_<mode>)256: Ditto.
515         (xop_phaddbw): Ditto.
516         (xop_phaddbd): Ditto.
517         (xop_phaddbq): Ditto.
518         (xop_phaddwd): Ditto.
519         (xop_phaddwq): Ditto.
520         (xop_phadddq): Ditto.
521         (xop_phaddubw): Ditto.
522         (xop_phaddubd): Ditto.
523         (xop_phaddubq): Ditto.
524         (xop_phadduwd): Ditto.
525         (xop_phadduwq): Ditto.
526         (xop_phaddudq): Ditto.
527         (xop_phsubbw): Ditto.
528         (xop_phsubwd): Ditto.
529         (xop_phsubdq): Ditto.
530         (xop_pperm): Ditto.
531         (rotl<mode>3): Ditto.
532         (rotr<mode>3): Ditto.
533         (xop_rotl<mode>3): Ditto.
534         (xop_rotr<mode>3): Ditto.
535         (vrotr<mode>3): Ditto.
536         (vrotl<mode>3): Ditto.
537         (xop_vrotl<mode>3): Ditto.
538         (vlshr<mode>3): Ditto.
539         (vashr<mode>3): Ditto.
540         (vashl<mode>3
541         (xop_ashl<mode>3): Ditto.
542         (xop_lshl<mode>3): Ditto.
543         (ashlv16qi3): Ditto.
544         (lshlv16qi3): Ditto.
545         (ashrv16qi3): Ditto.
546         (ashrv2di3): Ditto.
547         (xop_frcz<mode>2): Ditto.
548         (xop_vmfrcz<mode>2): Ditto.
549         (xop_frcz<mode>2256): Ditto.    
550         (xop_maskcmp<mode>3): Ditto.
551         (xop_maskcmp_uns<mode>3): Ditto.
552         (xop_maskcmp_uns2<mode>3): Ditto.
553         (xop_pcom_tf<mode>3): Ditto.
554
555         * doc/invoke.texi (-mxop): Add documentation.
556         * doc/extend.texi (x86 intrinsics): Add XOP intrinsics.
557         
558 2009-11-03  Mark Mitchell  <mark@codesourcery.com>
559
560         PR driver/11810
561         * gcc.c (SWITCHES_NEED_SPACES): Define to "o".
562         * config/alpha/osf.h (SWITCHES_NEED_SPACES): Remove here.
563         * config/mips/iris.h (SWITCHES_NEED_SPACES): Remove here.
564
565 2009-11-04  Richard Earnshaw  <rearnsha@arm.com>
566
567         PR target/40835
568         * arm.md (peephole2 patterns for move and compare): New.
569
570 2009-11-04  Nick Clifton  <nickc@redhat.com>
571
572         * defaults.h (CONSTANT_ADDRESS_P): Provide a default definition.
573         Make sure that it does not allow CONST_DOUBLEs.
574         * doc/tm.texi (CONSTANT_ADDRESS_P): Update description.
575         * config/avr/avr.h (CONSTANT_ADDRESS_P): Delete.
576         * config/bfin/bfin.h (CONSTANT_ADDRESS_P): Delete.
577         * config/cris/cris.h (CONSTANT_ADDRESS_P): Delete.
578         * config/fr30/fr30.h (CONSTANT_ADDRESS_P): Delete.
579         * config/frv/frv.h (CONSTANT_ADDRESS_P): Delete.
580         * config/m32c/m32c.h (CONSTANT_ADDRESS_P): Delete.
581         * config/m68hc11/m68hc11.h (CONSTANT_ADDRESS_P): Delete.
582         * config/mep/mep.h (CONSTANT_ADDRESS_P): Delete.
583         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Delete.
584         * config/moxie/moxie.h (CONSTANT_ADDRESS_P): Delete.
585         * config/pdp11/pdp11.h (CONSTANT_ADDRESS_P): Delete.
586         * config/picochip/picochip.h (CONSTANT_ADDRESS_P): Delete.
587         * config/score/score.h (CONSTANT_ADDRESS_P): Delete.
588         * config/stormy16/stormy16.h (CONSTANT_ADDRESS_P): Delete.
589
590 2009-11-04  Richard Guenther  <rguenther@suse.de>
591
592         PR tree-optimization/41919
593         * tree-vrp.c (test_for_singularity): Properly compare values.
594
595 2009-11-04  Revital Eres  <eres@il.ibm.com>
596
597         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
598         Consider peeling for alignment only for stores and remove
599         redundant assignment.
600
601 2009-11-04  Maxim Kuvyrkov  <maxim@codesourcery.com>
602
603         PR target/41302
604         * config/m68k/m68k.c (m68k_reg_present_p): New static function.
605         (m68k_ok_for_sibcall_p): Handle different result return locations.
606
607 2009-11-04  Richard Guenther  <rguenther@suse.de>
608
609         * c-opts.c (c_common_post_options): Move LTO option processing
610         code ...
611         * opts.c (decode_options): ... here.
612
613 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
614
615         * c-common.c (fold_offsetof_1): Use %wd instead of
616         HOST_WIDE_INT_PRINT_DEC.
617
618 2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
619
620         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Don't define
621         __pic__ or __PIC__.
622
623 2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
624
625         * config.gcc (vax-*-linux*): Keep the original contents of
626         tmake_file while adding vax/t-linux.
627
628 2009-11-03  Eric Botcazou  <ebotcazou@adacore.com>
629
630         PR target/10127
631         PR ada/20548
632         * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete.
633         (STACK_CHECK_PROBE_INTERVAL_EXP): New macro.
634         (STACK_CHECK_MOVING_SP): Likewise.
635         * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it.
636         * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL.
637         Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP.
638         * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK.
639         Document PROBE_STACK.
640         * explow.c (anti_adjust_stack_and_probe): New function.
641         (allocate_dynamic_stack_space): Do not directly allocate space if
642         STACK_CHECK_MOVING_SP, instead invoke above function.
643         (emit_stack_probe): Handle probe_stack insn.
644         (PROBE_INTERVAL): New macro.
645         (STACK_GROW_OPTAB): Likewise.
646         (STACK_GROW_OFF): Likewise.
647         (probe_stack_range): Use Pmode and memory_address consistently.  Fix
648         loop condition in the small constant case.  Rewrite in the general
649         case to be immune to wraparounds.  Make sure the address of probes
650         is valid.  Try to use [base + disp] addressing mode if possible.
651         * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack
652         checking is enabled and STACK_CHECK_MOVING_SP.
653         * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled,
654         return 1 for volatile references to the stack pointer.
655         * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on
656         __builtin_alloca if stack checking is enabled.
657         * unwind-dw2.c (uw_identify_context): Take into account whether the
658         context is that of a signal frame or not.
659         * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1.
660         * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise.
661
662 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
663
664         PR rtl-optimization/41917
665         * rtlanal.c (num_sign_bit_copies1) <case UMOD>: If sign bit of second
666         operand isn't known to be 0, return 1.
667
668 2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
669
670         * config/mips/mips.md: Fix typos.
671
672 2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
673
674         * doc/invoke.texi: Fix typo.
675
676 2009-11-03  Paul Brook  <paul@codesourcery.com>
677
678         * config/arm/neon.ml (vectype): Add T_floatSF.
679         (string_of_vectype): Ditto.
680         * config/arm/neon-gen.ml (signed_ctype): Add T_floatSF.
681         (deftypes): Use float for float32_t.
682         * config/arm/arm_neon.h: Regenerate.
683
684 2009-11-03  Nick Clifton  <nickc@redhat.com>
685             Kevin Buettner  <kevinb@redhat.com>
686
687         * config/rx/predicates.md (rx_store_multiple_vector): Reverse
688         order of expected registers.
689         (rx_load_multiple_vector): Likewise.
690         (rx_rtsd_vector): Likewise.
691         * config/rx/rx.c (rx_cpu_type): New variable.
692         (rx_print_operand): Fix bug printing 64-bit constant values.
693         (rx_emit_stack_pushm): Reverse order of pushed registers.
694         (gen_rx_store_vector): Likewise.
695         (is_fast_interrupt_func): Only accept "fast_interrupt" as the
696         attribute name.
697         (is_exception_func): Rename to is_interrupt_func and only accept
698         "interrupt" as the attribute name.
699         (rx_get_stack_layout): Use new function name.
700         (rx_func_attr_inlinable): Likewise.
701         (rx_attribute_table): Remove "exception".
702         (rx_expand_prologue): If necessary push the accumulator register
703         in the prologue of interrupt functions.
704         (rx_expand_epilogue): If necessary pop the accumulator.
705         (rx_builtins): Add RX_BUILTIN_MVTIPL.
706         (rx_expand_builtin_stz): Remove.
707         (rx_expand_builtin_mvtipl): New function.
708         (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
709         (rx_expand_builtin): Likewise.
710         (rx_enable_fpu): New variable.
711         (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
712         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
713         on rx_cpu_type.  Define __RX_FPU_INSNS__ if FPU insns are allowed.
714         (enum rx_cpu_types): Define.
715         (ASM_SPEC): Pass -m32bit-doubles on to assembler.
716         (INCOMING_FRAME_SP_OFFSET): Define.
717         (ARG_POINTER_CFA_OFFSET): Define.
718         (FRAME_POINTER_CFA_OFFSET): Define.
719         (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
720         (ALLOW_RX_FPU_INSNS): Define.
721         * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
722         fast_math_flags_set_p.
723         (UNSPEC_BUILTIN_MVTIPL): Define.
724         (revl): Rename to bswapsi2.
725         (bswaphi2): New pattern.
726         (mvtachi): Mark as volatile because it uses a register unknown to GCC.
727         (mvtaclo): Likewise.
728         (racw): Likewise.
729         (mvtc): Remove clobber of cc0.
730         (mvtcp): Delete.
731         (opecp): Delete.
732         * config/rx/rx.opt (mieee): Remove.
733         (fpu): Add.
734         (nofpu): Add.
735         (mcpu=): Add.
736         (patch=): Add.
737         (msave-acc-in-interrupts): Add.
738         * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit doubles.
739         (MULTILIB_DIRS): Likewise.
740         (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
741         * doc/extend.texi: Remove description of "exception" function
742         attribute.
743         * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
744         -msave-acc-in-interrupts options.
745
746 2009-11-03  Richard Guenther  <rguenther@suse.de>
747
748         * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
749
750 2009-11-03  Dodji Seketeli  <dodji@redhat.com>
751
752         PR c++/38699
753         * c-common.c (fold_offsetof_1): Issue errors when the member
754         designator of the offsetof expression is not legitimate.
755
756 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
757
758         * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
759         names instead of numerical constants.
760         (sse_prologue_save): Ditto.
761         (*sse_prologue_save_insn): Ditto.
762
763 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
764
765         PR target/41900
766         * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
767         (TARGET_CALL_ESP): New define.
768         * config/i386/i386.c (initial_ix86_tune_features): Initialize
769         X86_ARCH_CALL_ESP.
770         * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
771         *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
772         *call_1, *call_value_pop_1 and *call_value_1.  Depend on
773         TARGET_CALL_ESP.
774         (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
775         New patterns, use "lsm" as operand 1 constraint.
776         * config/i386/predicates.md (call_insn_operand): Depend on
777         index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
778
779 2009-11-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
780
781         PR tree-optimization/41857
782         * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
783         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
784         to create_mem_ref.
785         * tree-ssa-address.c (move_hint_to_base): New function.
786         (most_expensive_mult_to_index): Add TYPE argument.  Use mode and
787         address space associated with TYPE.
788         (addr_to_parts): Add TYPE and BASE_HINT arguments.  Pass TYPE to
789         most_expensive_mult_to_index.  Call move_hint_to_base.
790         (create_mem_ref): Add BASE_HINT argument.  Pass BASE_HINT and
791         TYPE to addr_to_parts.
792
793 2009-11-02  Martin Jambor  <mjambor@suse.cz>
794
795         PR tree-optimization/41750
796         * tree-sra.c (analyze_modified_params): Loop over all
797         representatives of components of a parameter.
798
799 2009-11-02  Jakub Jelinek  <jakub@redhat.com>
800
801         PR tree-optimization/41841
802         * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
803         local variables of not yet materialized clones.
804
805         PR debug/41893
806         * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
807         for a VOIDmode variable.
808
809         PR c++/41774
810         * c-pragma.c (visstack): Change into vector of ints rather than
811         enum symbol_visibility.
812         (push_visibility): Add kind argument, push default_visibility together
813         with kind.
814         (pop_visibility): Add kind argument, return true if successful, fail
815         if visibility stack is empty or if stack top is of different kind.
816         (handle_pragma_visibility): Don't check length of visstack, instead
817         call pop_visibility and issue diagnostics if it failed.  Pass 0
818         as last argument to push_visibility and pop_visibility.
819         * c-pragma.h (push_visibility): Add kind argument.
820         (pop_visibility): Likewise.  Return bool instead of void.
821
822 2009-11-01  Eric Botcazou  <ebotcazou@adacore.com>
823
824         * tree.def (TARGET_MEM_REF): Update comment.
825         * alias.c (get_alias_set): Retrieve the original memory reference for
826         a TARGET_MEM_REF before proceeding.
827
828 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
829
830         * config/frv/frv.c (frv_function_value, frv_libcall_value,
831         frv_function_value_regno_p): New functions.
832         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
833         * config/frv/frv.h: (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
834         (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
835         * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
836
837 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
838
839         * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
840         new 'outgoing' argument.
841         (mn10300_libcall_value, mn10300_function_value_regno_p): New functions.
842         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
843         * config/mn10300/mn10300.h: (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
844         LIBCALL_VALUE): Remove.
845         (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
846         * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
847         (mh10300_function_value_regno_p): Declare.
848
849 2009-10-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
850
851         * config/arm/cortex-a9.md: New - integer pipeline description.
852
853 2009-10-31  Eric Botcazou  <ebotcazou@adacore.com>
854
855         * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
856         aborting if the sizes of the two references don't match.
857
858 2009-10-31  Toon Moene  <toon@moene.org>
859
860         * ipa-inline.c (cgraph_decide_inlining):
861         Include reason for not inlining called-once functions in dump file.
862
863 2009-10-30  Daniel Gutson  <dgutson@codesourcery.com>
864
865         * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
866         * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
867         (LINK_SPEC): BE_LINK_SPEC added.
868
869 2009-10-30  Richard Guenther  <rguenther@suse.de>
870
871         PR lto/41858
872         * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
873
874 2009-10-30  Nathan Sidwell  <nathan@codesourcery.com>
875
876         * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
877         * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
878         label.
879
880 2009-10-30  Martin Jambor  <mjambor@suse.cz>
881
882         * tree-sra.c (build_ref_for_offset_1): Remove a comment.
883
884 2009-10-30  H.J. Lu  <hongjiu.lu@intel.com>
885
886         PR target/40838
887         * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
888         first.  Move assert on stack_alignment_estimated just before
889         setting stack_realign_needed.
890         (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
891         Don't call update_stack_boundary.
892
893         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
894         (verride_options): Don't check ix86_force_align_arg_pointer here.
895         (ix86_function_ok_for_sibcall): Use it.
896         (ix86_update_stack_boundary): Likewise.
897
898         * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
899
900 2009-10-30  Richard Earnshaw  <rearnsha@arm.com>
901
902         * arm.md (QHSI): New mode iterator.
903         (movqi): If generating for thumb, then truncate any immediate to
904         8 bits.
905         * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
906         with...
907         (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
908         version.
909
910 2009-10-29  Cary Coutant  <ccoutant@google.com>
911
912         PR debug/41700
913         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
914         locations in the source).
915         (store_vcall_insn): New function.
916         (lookup_vcall_insn): New function.
917         (dwarf2out_virtual_call_token): Use store_vcall_insn.
918         (dwarf2out_copy_call_info): New function.
919         (dwarf2out_virtual_call): Use lookup_vcall_insn.
920         * emit-rtl.c (try_split): Call copy_call_info debug hook.
921         * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
922         * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
923         (debug_nothing_rtx_rtx): New dummy hook.
924         * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
925         (xcoff_debug_hooks): Likewise.
926         * sdbout.c (sdb_debug_hooks): Likewise.
927         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
928
929 2009-10-29  David Daney  <ddaney@caviumnetworks.com>
930
931         * doc/invoke.texi (mmcount-ra-address): Document new command line
932         option.
933         * config/mips/mips.opt (mmcount-ra-address): New option.
934         * config/mips/mips-protos.h (mips_function_profiler): Declare new
935         function.
936         * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
937         member.
938         (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
939         (mips_function_profiler): Moved from FUNCTION_PROFILER, and
940         rewritten.
941         * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
942         mips_function_profiler.
943
944 2009-10-29  Steve Ellcey  <sje@cup.hp.com>
945
946         PR middle-end/37565
947         PR target/38018
948         * doc/tm.texi (OVERRIDE_OPTIONS): Update.
949         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
950         * optc-gen.awk (cl_target_option_restore): Include call to
951         targetm.override_options_after_change.
952         * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
953         * target.h (override_options_after_change): New.
954         * c-common.c (parse_optimize_options): Call
955         targetm.override_options_after_change.
956         * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
957         (ia64_override_options_after_change): New.
958         (ia64_override_options) Add call to above.
959
960 2009-10-29  Michael Matz  <matz@suse.de>
961
962         * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
963         (gate_convert_to_rsqrt): Ditto.
964         (pass_convert_to_rsqrt): Ditto.
965         * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
966         * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
967         to pass list.
968
969         * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
970
971 2009-10-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
972
973         * config/arm/arm.c (find_best_start): Fix type of remainder to be
974         unsigned.
975
976 2009-10-29  Martin Jambor  <mjambor@suse.cz>
977
978         PR tree-optimization/41775
979         * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
980         (generate_subtree_copies): Do not unshare agg.
981         (load_assign_lhs_subreplacements): Do not unshare rhs.
982         (sra_modify_assign): Do not unshare exprs.
983         (propagate_subacesses_accross_link): Renamed to
984         propagate_subaccesses_across_link.
985
986 2009-10-29  Richard Earnshaw  <rearnsha@arm.com>
987
988         * arm.c (count_insns_for_constant): Rework to support counting for
989         thumb2 immediates as well.
990         (find_best_start): Split out from arm_gen_constant.
991         (arm_gen_constant): Rework to support XOR with immediate.
992
993 2009-10-29  Chao-ying Fu  <fu@mips.com>
994
995         * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
996         functions.
997         (mips_expand_synci_loop):  Use the length rtx to control the
998         synci loop from the begin rtx that points to the first byte of
999         the cache line.
1000
1001 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
1002
1003         * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
1004
1005 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
1006
1007         * dbxout.c (dbxout_common_check): Accept non public trees.
1008         * dwarf2out.c (fortran_common): Accept non public trees.
1009
1010 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
1011
1012         * common.opt (fuse-linker-plugin): New option.
1013         * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
1014         fuse-linker-plugin.
1015         * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
1016
1017 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
1018
1019         PR rtl-optimization/39715
1020         * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
1021         (gen_cstoresi_ltu_thumb1): New splitter.
1022
1023 2009-10-28  Richard Guenther  <rguenther@suse.de>
1024
1025         PR lto/41808
1026         PR lto/41839
1027         * tree-ssa.c (useless_type_conversion_p): Do not treat
1028         conversions to pointers to incomplete types as useless.
1029         * gimple.c (gimple_types_compatible_p): Compare struct tags,
1030         not typedef names.
1031
1032 2009-10-28  Jakub Jelinek  <jakub@redhat.com>
1033
1034         * var-tracking.c (emit_note_insn_var_location): Don't call the second
1035         vt_expand_loc unnecessarily when location is not a register nor
1036         memory.
1037
1038         PR middle-end/41837
1039         * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
1040         fields don't have DECL_NAME.
1041
1042         PR debug/41801
1043         * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
1044         call convert_memory_address on addr.
1045
1046         PR target/41762
1047         * config/i386/i386.c (ix86_pic_register_p): Don't call
1048         rtx_equal_for_cselib_p for VALUEs discarded as useless.
1049
1050 2009-10-28  Richard Sandiford  <rdsandiford@googlemail.com>
1051
1052         * var-tracking.c (emit_note_insn_var_location): Get the mode of
1053         a variable part from its REG, MEM or VALUE.
1054
1055 2009-10-28  Richard Guenther  <rguenther@suse.de>
1056
1057         * gimple.c (gimple_get_alias_set): Fix comment typo.
1058
1059 2009-10-28  Richard Guenther  <rguenther@suse.de>
1060
1061         * tree.c (free_lang_data_in_type): Do not call get_alias_set.
1062         (free_lang_data): Unconditionally compute alias sets for all
1063         standard integer types.  Bail out if gate bailed out previously.
1064         Do not reset the types_compatible_p langhook.
1065         (gate_free_lang_data): Remove.
1066         (struct pass_ipa_free_lang_data): Enable unconditionally.
1067         * gimple.c (gimple_get_alias_set): Use the same alias-set for
1068         all pointer types.
1069
1070 2009-10-28  Richard Guenther  <rguenther@suse.de>
1071
1072         PR middle-end/41855
1073         * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
1074         (ref_maybe_used_by_call_p_1): Fix bcopy handling.
1075         (call_may_clobber_ref_p_1): Likewise.
1076         * tree-ssa-structalias.c (find_func_aliases): Likewise.
1077         * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
1078
1079 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
1080
1081         PR rtl-optimization/41812
1082
1083         Revert:
1084         2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
1085
1086         * df-problems.c (df_md_scratch): New.
1087         (df_md_alloc, df_md_free): Allocate/free it.
1088         (df_md_local_compute): Only include live registers in init.
1089         (df_md_transfer_function): Prune the in-set computed by
1090         the confluence function, and the gen-set too.
1091
1092 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
1093
1094         PR rtl-optimization/39715
1095         * combine.c (simplify_comparison): Use extensions to
1096         widen comparisons.  Try an ANDing first.
1097
1098 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
1099
1100         PR rtl-optimization/40741
1101         * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
1102         a small constant is cheap.
1103         * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
1104         force_reg on the LHS.
1105         (xorsi3): Likewise, and split the XOR if the constant is complex
1106         and not in Thumb mode.
1107
1108 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
1109
1110         * expmed.c (emit_store_flag): Check costs before
1111         transforming to the opposite representation.
1112
1113 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
1114
1115         * config/sh/sh.md (cbranchfp4_media): Remove hack extending
1116         cstore result to DImode.
1117
1118 2009-10-28  Kaz Kojima  <kkojima@gcc.gnu.org>
1119
1120         * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
1121         inside the unspec vector.
1122
1123 2009-10-27  Richard Henderson  <rth@redhat.com>
1124
1125         * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
1126
1127 2009-10-27  Richard Henderson  <rth@redhat.com>
1128
1129         PR c++/41819
1130         * tree-eh.c (eh_region_may_contain_throw_map): Rename from
1131         eh_region_may_contain_throw; update users.
1132         (eh_region_may_contain_throw): New function.
1133         (lower_catch): Check flag_exceptions before creating exception region.
1134         (lower_eh_filter, lower_eh_must_not_throw): Likewise.
1135         (lower_cleanup): Tidy existing flag_exceptions check to match.
1136
1137 2009-10-27  Kai Tietz <kai.tietz@onevision.com>
1138
1139         PR/41799
1140         * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
1141         * config/i386/mingw.opt: Add fset-stack-executable.
1142         * config/i386/i386.c (ix86_trampoline_init): Make call to
1143         emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
1144         defined and its value is not zero.
1145         * doc/invoke.texi
1146
1147 2009-10-27  Richard Guenther  <rguenther@suse.de>
1148
1149         * tree-ssa-structalias.c (find_func_aliases): In IPA mode
1150         handle calls to externally visible functions like in regular mode.
1151         (create_variable_info_for): Do not create function infos here.
1152         (have_alias_info): Remove write-only variable.
1153         (solve_constraints): New function split out from common code
1154         in compute_points_to_sets and ipa_pta_execute.
1155         (compute_points_to_sets): Adjust.
1156         (ipa_pta_execute): Likewise.  Handle clones and externally visible
1157         functions like in non-IPA mode.
1158
1159 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1160
1161         PR c/41842
1162         * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
1163         error_mark_node.
1164
1165 2009-10-27  Richard Guenther  <rguenther@suse.de>
1166
1167         * tree-complex.c (expand_complex_div_wide): Check for
1168         INTEGER_CST, not TREE_CONSTANT on comparison folding result.
1169
1170 2009-10-27  Revital Eres  <eres@il.ibm.com>
1171
1172         PR tree-optimization/40648
1173         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1174         Change decision of when to peel for alignment.
1175
1176 2009-10-27  Richard Guenther  <rguenther@suse.de>
1177
1178         PR lto/41821
1179         * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
1180
1181 2009-10-27  Aldy Hernandez  <aldyh@redhat.com>
1182
1183         PR bootstrap/41451
1184         * fold-const.c (fold_binary_loc): Do not call
1185         protected_set_expr_location.
1186
1187 2009-10-27  Wei Guozhi  <carrot@google.com>
1188
1189         PR target/41705
1190         * target.h (have_conditional_execution): Add a new target hook
1191         function.
1192         * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
1193         * targhooks.h (default_have_conditional_execution): Likewise.
1194         * targhooks.c (default_have_conditional_execution): Likewise.
1195         * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
1196         * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
1197         (arm_have_conditional_execution): New function.
1198         * ifcvt.c (noce_process_if_block, find_if_header,
1199         cond_exec_find_if_block, dead_or_predicable): Change the usage of
1200         macro HAVE_conditional_execution to a target hook call.
1201         * recog.c (peephole2_optimize): Likewise.
1202         * sched-rgn.c (add_branch_dependences): Likewise.
1203         * final.c (asm_insn_count, final_scan_insn): Likewise.
1204         * bb-reorder.c (HAVE_conditional_execution): Remove it.
1205
1206 2009-10-26  Ben Elliston  <bje@au.ibm.com>
1207             Michael Meissner  <meissner@linux.vnet.ibm.com>
1208             Ulrich Weigand  <uweigand@de.ibm.com>
1209
1210         * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
1211         * config/spu/spu_cache.h: New file.
1212
1213         * config/spu/cachemgr.c: New file.
1214         * config/spu/cache.S: New file.
1215
1216         * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
1217         (ADDR_SPACE_EA): Define.
1218         (TARGET_ADDR_SPACE_KEYWORDS): Define.
1219         * config/spu/spu.c (EAmode): New macro.
1220         (TARGET_ADDR_SPACE_POINTER_MODE): Define.
1221         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
1222         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
1223         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
1224         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
1225         (TARGET_ADDR_SPACE_CONVERT): Likewise.
1226         (TARGET_ASM_SELECT_SECTION): Likewise.
1227         (TARGET_ASM_UNIQUE_SECTION): Likewise.
1228         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
1229         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
1230         (ea_symbol_ref): New function.
1231         (spu_legitimate_constant_p): Handle __ea qualified addresses.
1232         (spu_addr_space_legitimate_address_p): New function.
1233         (spu_addr_space_legitimize_address): Likewise.
1234         (cache_fetch): New global.
1235         (cache_fetch_dirty): Likewise.
1236         (ea_alias_set): Likewise.
1237         (ea_load_store): New function.
1238         (ea_load_store_inline): Likewise.
1239         (expand_ea_mem): Likewise.
1240         (spu_expand_mov): Handle __ea qualified memory references.
1241         (spu_addr_space_pointer_mode): New function.
1242         (spu_addr_space_address_mode): Likewise.
1243         (spu_addr_space_subset_p): Likewise.
1244         (spu_addr_space_convert): Likewise.
1245         (spu_section_type_flags): Handle "._ea" section.
1246         (spu_select_section): New function.
1247         (spu_unique_section): Likewise.
1248         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
1249         and __EA64__ predefined macros.
1250         * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
1251         -matomic-updates switches.
1252
1253         * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
1254         (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
1255         libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
1256         libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
1257         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
1258         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
1259         $(T)cache128k.o): Likewise.
1260         ($(T)libgcc_%.a): Likewise.
1261
1262         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
1263         * config/spu/spu.opt (-mea32/-mea64): Add switches.
1264         (-maddress-space-conversion): Likewise.
1265         (-mcache-size=): Likewise.
1266         (-matomic-updates): Likewise.
1267         * doc/invoke.texi (-mea32/-mea64): Document.
1268         (-maddress-space-conversion): Likewise.
1269         (-mcache-size=): Likewise.
1270         (-matomic-updates): Likewise.
1271
1272 2009-10-26  Ben Elliston  <bje@au.ibm.com>
1273             Michael Meissner  <meissner@linux.vnet.ibm.com>
1274             Ulrich Weigand  <uweigand@de.ibm.com>
1275
1276         * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
1277
1278         * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
1279         defined, add the named address space keywords.
1280         (c_addr_space_name): New function.
1281         (complete_array_type): Preserve named address space.
1282         (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
1283         instead of targetm.valid_pointer_mode.
1284
1285         * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
1286         RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
1287         (ADDR_SPACE_KEYWORD): New macro.
1288         (c_addr_space_name): Add prototype.
1289
1290         * c-tree.h (struct c_declspecs): Add address_space member.
1291         (declspecs_add_addrspace): Add prototype.
1292
1293         * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
1294
1295         * c-parser.c (c_parse_init): Add assertion.
1296         (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
1297         (c_lex_one_token): Handle address space keywords.
1298         (c_token_starts_typename): Likewise.
1299         (c_token_starts_declspecs): Likewise.
1300         (c_parser_declspecs): Likewise.
1301         (c_parser_postfix_expression_after_paren_type): Diagnose compound
1302         literal within function qualified with named address space.
1303
1304         * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
1305         address space qualifiers.
1306         (shadow_tag_warned): Warn about useless address space qualifiers.
1307         (quals_from_declspecs): Handle address space qualifiers.
1308         (grokdeclarator): Likewise.
1309         (build_null_declspecs): Likewise.
1310         (declspecs_add_addrspace): New function.
1311
1312         * c-typeck.c (addr_space_superset): New function.
1313         (qualify_type): Handle named address spaces.
1314         (composite_type): Likewise.
1315         (common_pointer_type): Likewise.
1316         (comp_target_types): Likewise.
1317         (build_conditional_expr): Likewise.
1318         (handle_warn_cast_qual): Likewise.
1319         (build_c_cast): Likewise.
1320         (convert_for_assignment): Likewise.
1321         (build_binary_op): Likewise.
1322         (pointer_diff): Handle named address spaces.  Use intermediate
1323         integer type of sufficient size if required.
1324
1325 2009-10-26  Ben Elliston  <bje@au.ibm.com>
1326             Michael Meissner  <meissner@linux.vnet.ibm.com>
1327             Ulrich Weigand  <uweigand@de.ibm.com>
1328
1329         * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
1330         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
1331         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
1332
1333         * target.h (struct target_def): Add pointer_mode, address_mode,
1334         and valid_pointer_mode to addr_space substructure.
1335         * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
1336         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
1337         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
1338         (TARGET_ADDR_SPACE_HOOKS): Add them.
1339         * targhooks.c (target_default_pointer_address_modes_p): New function.
1340         * target.h (target_default_pointer_address_modes_p): Add prototype.
1341         * targhooks.c (default_addr_space_pointer_mode): New function.
1342         (default_addr_space_address_mode): Likewise.
1343         (default_addr_space_valid_pointer_mode): Likewise.
1344         * targhooks.h (default_addr_space_pointer_mode): Add prototype.
1345         (default_addr_space_address_mode): Likewise.
1346         (default_addr_space_valid_pointer_mode): Likewise.
1347         * output.h (default_valid_pointer_mode): Move to ...
1348         * targhooks.h (default_valid_pointer_mode): ... here.
1349         * varasm.c (default_valid_pointer_mode): Move to ...
1350         * targhooks.c (default_valid_pointer_mode): ... here.
1351
1352         * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
1353         instead of targetm.valid_pointer_mode.
1354
1355         * fold-const.c (fit_double_type): Use int_or_pointer_precision.
1356         * tree.c (integer_pow2p): Likewise.
1357         (tree_log2): Likewise.
1358         (tree_floor_log2): Likewise.
1359         (signed_or_unsigned_type_for): Support pointer type of different size.
1360         (int_or_pointer_precision): New function.
1361         * tree.h (int_or_pointer_precision): Add prototype.
1362         * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
1363         * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
1364         incoming pointer type instead of POINTER_SIZE.
1365
1366         * tree.c (build_pointer_type): Use appropriate pointer mode
1367         instead of ptr_mode.
1368         (build_reference_type): Likewise.
1369         * expr.c (store_expr): Likewise.
1370         (expand_expr_addr_expr): Likewise.
1371         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
1372         * cfgexpand.c (expand_debug_expr): Likewise.
1373
1374         * auto-inc-dec.c: Include "target.h".
1375         (try_merge): Use appropriate address mode instead of Pmode.
1376         (find_inc): Likewise.
1377         * combine.c (find_split_point): Likewise.
1378         * cselib.c (cselib_record_sets): Likewise.
1379         * dse.c (replace_inc_dec): Likewise.
1380         (canon_address): Likewise.
1381         * var-tracking.c (replace_expr_with_values): Likewise.
1382         (count_uses): Likewise.
1383         (add_uses): Likewise.
1384         (add_stores): Likewise.
1385         * emit-rtl.c: Include "target.h".
1386         (adjust_address_1): Use appropriate address mode instead of Pmode.
1387         (offset_address): Likewise.
1388         * explow.c (break_out_memory_refs): Likewise.
1389         (memory_address_addr_space): Likewise.
1390         (promote_mode): Likewise.
1391         * expr.c (move_by_pieces): Likewise.
1392         (emit_block_move_via_loop): Likewise.
1393         (store_by_pieces): Likewise.
1394         (store_by_pieces_1): Likewise.
1395         (expand_assignment): Likewise.
1396         (store_constructor): Likewise.
1397         (expand_expr_addr_expr): Likewise.
1398         (expand_expr_real_1): Likewise.
1399         * cfgexpand.c (expand_debug_expr): Likewise.
1400         * ifcvt.c (noce_try_cmove_arith): Likewise.
1401         * regcprop.c (kill_autoinc_value): Likewise.
1402         * regmove.c (try_auto_increment): Likewise.
1403         * reload.c (find_reloads): Likewise.
1404         (find_reloads_address): Likewise.
1405         (find_reloads_address_1): Likewise.
1406         * sched-deps.c: Include "target.h".
1407         (sched_analyze_1): Use appropriate address mode instead of Pmode.
1408         (sched_analyze_2): Likewise.
1409         * sel-sched-dump.c: Include "target.h".
1410         (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
1411         * stor-layout.c (layout_type): Likewise.
1412         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
1413         (multiplier_allowed_in_address_p): Likewise.
1414         (get_address_cost): Likewise.
1415         * varasm.c (make_decl_rtl): Likewise.
1416
1417         * expr.c (expand_assignment): Always convert offsets to appropriate
1418         address mode.
1419         (store_expr): Likewise.
1420         (store_constructor): Likewise.
1421         (expand_expr_real_1): Likewise.
1422
1423         * reload.h (form_sum): Add MODE argument.
1424         * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
1425         Update recursive calls.
1426         (subst_indexed_address): Update calls to form_sum.
1427
1428         * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
1429         * tree-ssa-address.c: Include "target.h".
1430         (templates): Replace by ...
1431         (mem_addr_template_list): ... this new vector.
1432         (TEMPL_IDX): Handle address space numbers.
1433         (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
1434         (addr_for_mem_ref): Add ADDRSPACE argument.  Use per-address-space
1435         instead of global cache.  Update call to gen_addr_rtx.
1436         (valid_mem_ref_p): Update call to addr_for_mem_ref.
1437         * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
1438
1439         * rtl.h (convert_memory_address_addr_space): Add prototype.
1440         (convert_memory_address): Define as macro.
1441         * explow.c (convert_memory_address): Rename to ...
1442         (convert_memory_address_addr_space): ... this.  Add ADDRSPACE argument.
1443         Use appropriate pointer and address modes instead of ptr_mode / Pmode.
1444         Update recursive calls.
1445         (memory_address_addr_space): Call convert_memory_address_addr_space.
1446         * expmed.c (make_tree): Likewise.
1447         * expr.c (expand_assignment): Likewise.
1448         (expand_expr_addr_expr_1): Likewise.  Also, add ADDRSPACE argument.
1449         (expand_expr_addr_expr): Likewise.  Also, update call.
1450
1451         * alias.c (find_base_value): Guard pointer size optimizations.
1452         (find_base_term): Likewise.
1453         * rtlanal.c (nonzero_bits1): Likewise.
1454         (num_sign_bit_copies1): Likewise.
1455         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1456
1457         * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
1458         (emit-rtl.o): Likewise.
1459         (auto-inc-dec.o): Likewise.
1460         (sched-deps.o): Likewise.
1461
1462 2009-10-26  Ben Elliston  <bje@au.ibm.com>
1463             Michael Meissner  <meissner@linux.vnet.ibm.com>
1464             Ulrich Weigand  <uweigand@de.ibm.com>
1465
1466         * doc/extend.texi (Named Address Spaces): New section.
1467         * coretypes.h (addr_space_t): New type.
1468         (ADDR_SPACE_GENERIC): New define.
1469         (ADDR_SPACE_GENERIC_P): New macro.
1470
1471         * doc/tm.texi (Named Address Spaces): New section.
1472         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
1473         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
1474         (TARGET_ADDR_SPACE_SUBSET_P): Document.
1475         (TARGET_ADDR_SPACE_CONVERT): Document.
1476         * target.h (struct gcc_target): Add addr_space substructure.
1477         * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
1478         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
1479         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
1480         (TARGET_ADDR_SPACE_CONVERT): Likewise.
1481         (TARGET_ADDR_SPACE_HOOKS): Likewise.
1482         (TARGET_INITIALIZER): Initialize addr_space hooks.
1483         * targhooks.c (default_addr_space_legitimate_address_p): New function.
1484         (default_addr_space_legitimize_address): Likewise.
1485         (default_addr_space_subset_p): Likewise.
1486         (default_addr_space_convert): Likewise.
1487         * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
1488         (default_addr_space_legitimize_address): Likewise.
1489         (default_addr_space_subset_p): Likewise.
1490         (default_addr_space_convert): Likewise.
1491
1492         * doc/rtl.texi (MEM_ADDR_SPACE): Document.
1493         * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
1494         (MEM_ADDR_SPACE): New macro.
1495         * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
1496         address space memory attribute.
1497         (mem_attrs_htab_hash): Handle address space memory attribute.
1498         (mem_attrs_htab_eq): Likewise.
1499         (set_mem_attributes_minus_bitpos): Likewise.
1500         (set_mem_alias_set): Likewise.
1501         (set_mem_align): Likewise.
1502         (set_mem_expr): Likewise.
1503         (set_mem_offset): Likewise.
1504         (set_mem_size): Likewise.
1505         (adjust_address_1): Likewise.
1506         (offset_address): Likewise.
1507         (widen_memoy_address): Likewise.
1508         (get_spill_slot_decl): Likewise.
1509         (set_mem_attrs_for_spill): Likewise.
1510         (set_mem_addr_space): New function.
1511         * emit-rtl.h (set_mem_addr_space): Add prototype.
1512         * print-rtl.c (print_rtx): Print address space memory attribute.
1513         * expr.c (expand_assignment): Set address space memory attribute
1514         of generated MEM RTXes as appropriate.
1515         (expand_expr_real_1): Likewise.
1516         * cfgexpand.c (expand_debug_expr): Likewise.
1517         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
1518
1519         * tree.h (struct tree_base): Add address_space bitfield.  Reduce
1520         size of "spare" bitfield.
1521         (TYPE_ADDR_SPACE): New macro.
1522         (ENCODE_QUAL_ADDR_SPACE): Likewise.
1523         (DECODE_QUAL_ADDR_SPACE): Likewise.
1524         (CLEAR_QUAL_ADDR_SPACE): Likewise.
1525         (KEEP_QUAL_ADDR_SPACE): Likewise.
1526         (TYPE_QUALS): Encode type address space.
1527         (TYPE_QUALS_NO_ADDR_SPACE): New macro.
1528         * tree.c (set_type_quals): Set type address space.
1529         (build_array_type): Inherit array address space from element type.
1530         * print-tree.c (print_node_brief): Print type address space.
1531         (print_node): Likewise.
1532         * tree-pretty-print.c (dump_generic_node): Likewise.
1533
1534         * explow.c (memory_address): Rename to ...
1535         (memory_address_addr_space): ... this.  Add ADDRSPACE argument.
1536         Use address-space aware variants of memory address routines.
1537         * recog.c (memory_address_p): Rename to ...
1538         (memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
1539         Use address-space aware variants of memory address routines.
1540         (offsettable_address_p): Rename to ...
1541         (offsettable_address_addr_space_p): ... this.  Add ADDRSPACE argument.
1542         Use address-space aware variants of memory address routines.
1543         * reload.c (strict_memory_address_p): Rename to ...
1544         (strict_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
1545         Use address-space aware variants of memory address routines.
1546         (maybe_memory_address_p): Rename to ...
1547         (maybe_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
1548         Use address-space aware variants of memory address routines.
1549         * expr.h (memory_address_addr_space): Add prototype.
1550         (memory_address): Define as macro.
1551         * recog.h (memory_address_addr_space_p): Add prototype.
1552         (memory_address_p): Define as macro.
1553         (offsettable_address_addr_space_p): Add prototype.
1554         (offsettable_address_p): Define as macro.
1555         (strict_memory_address_addr_space_p): Add prototype.
1556         (strict_memory_address_p): Define as macro.
1557
1558         * combine.c (find_split_point): Use address-space aware variants
1559         of memory address routines.
1560         * emit-rtl.c (operand_subword): Likewise.
1561         (change_address_1): Likewise.
1562         (adjust_address_1): Likewise.
1563         (offset_address): Likewise.
1564         * expr.c (emit_move_insn): Likewise.
1565         (expand_assignment): Likewise.
1566         (expand_expr_real_1): Likewise.
1567         * recog.c (verify_changes): Likewise.
1568         (general_operand): Likewise.
1569         (offsettable_memref_p): Likewise.
1570         (offsettable_nonstrict_memref_p): Likewise.
1571         (constrain_operands): Likewise.
1572         * reload.c (get_secondary_mem): Likewise.
1573         (find_reloads_toplev): Likewise.
1574         (find_reloads_address): Likewise.
1575         (find_reloads_subreg_address): Likewise.
1576         * reload1.c (reload): Likewise.
1577         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1578         * rtl.h (address_cost): Add ADDRSPACE argument.
1579         * rtlanal.c (address_cost): Add ADDRSPACE argument.  Use address-space
1580         aware variant of memory address routines.
1581         * loop-invariant.c (create_new_invariant): Update address_cost call.
1582         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1583         * fwprop.c (should_replace_address): Add ADDRSPACE argument.
1584         Use address-space aware variant of memory address routines.
1585         (propagate_rtx_1): Update call to should_replace_address.
1586         * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
1587         argument.
1588         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
1589         ADDRSPACE argument.  Use per-address-space instead of global cache.
1590         Use address-space aware variant of memory address routines.
1591         (get_address_cost): Likewise.
1592         (get_computation_cost_at): Update calls.
1593         * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
1594         Use address-space aware variant of memory address routines.
1595         (create_mem_ref_raw): Update call to valid_mem_ref_p.
1596         (most_expensive_mult_to_index): Update call to
1597         multiplier_allowed_in_address_p.
1598
1599         * dwarf2out.c (modified_type_die): Output DW_AT_address_class
1600         attribute to indicate named address spaces.
1601
1602         * varasm.c (get_variable_section): DECLs in named address spaces
1603         cannot be "common".
1604
1605         * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
1606         for addresses in a non-generic address space.
1607
1608         * expr.c (emit_block_move_hints): Do not use libcalls for
1609         memory in non-generic address spaces.
1610         (clear_storage_hints): Likewise.
1611         (expand_assignment): Likewise.
1612
1613         * fold-const.c (operand_equal_p): Expressions refering to different
1614         address spaces are not equivalent.
1615
1616         * rtl.c (rtx_equal_p_cb): MEMs refering to different address
1617         spaces are not equivalent.
1618         (rtx_equal_p): Likewise.
1619         * cse.c (exp_equiv_p): Likewise.
1620         * jump.c (rtx_renumbered_equal_p): Likewise.
1621         * reload.c (operands_match_p): Likewise.
1622
1623         * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
1624         address spaces may alias.
1625         (true_dependence): Likewise.
1626         (canon_true_dependence): Likewise.
1627         (write_dependence_p): Likewise.
1628
1629         * dse.c (canon_address): Handle named address spaces.
1630         * ifcvt.c (noce_try_cmove_arith): Likewise.
1631
1632         * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
1633         * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
1634         * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
1635         to handle conversions between different address spaces.
1636         * fold-const.c (fold_convert_loc): Likewise.
1637         (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
1638         * tree-pretty-print.c (dump_generic_node): Likewise.
1639         * gimple-pretty-print.c (dump_unary_rhs): Likewise.
1640         * tree-cfg.c (verify_gimple_assign_unary): Likewise.
1641         * tree-inline.c (estimate_operator_cost): Likewise.
1642         * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
1643         to different address spaces are not useless.
1644
1645 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
1646
1647         PR bootstrap/41345
1648         * cfgcleanup.c (trivially_empty_bb_p): New function.
1649         (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
1650
1651         PR debug/41828
1652         * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
1653         add_name_and_src_coords_attributes, gen_namespace_die,
1654         dwarf2out_set_name): Handle dwarf2_name returning NULL.
1655
1656 2009-10-26  Nick Clifton  <nickc@redhat.com>
1657
1658         * config.gcc: Add support for RX target.
1659         * config/rx: New directory.
1660         * config/rx/constraints.md: New file.
1661         * config/rx/predicates.md: New file.
1662         * config/rx/rx.c: New file.
1663         * config/rx/rx.h: New file.
1664         * config/rx/rx.md: New file.
1665         * config/rx/rx.opt: New file.
1666         * config/rx/rx-protos.h: New file.
1667         * config/rx/t-rx: New file.
1668         * doc/extend.texi: Document RX function attributes.
1669         * doc/invoke.texi: Document RX specific command line options.
1670         * doc/contrib.texi: Document RX contribution.
1671         * doc/md.texi: Document RX constraints.
1672         * doc/install.texi: Document RX support.
1673
1674 2009-10-26  Michael Matz  <matz@suse.de>
1675
1676         PR tree-optimization/41783
1677         * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
1678         case for simple diamonds.
1679         * tree-ssa-alias.h (get_continuation_for_phi): Declare.
1680         * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
1681         argument, use alias oracle to skip some vdefs.
1682         (phi_translate_1): Change call to above, don't allocate new
1683         value ids if they can stay the same.
1684         (compute_avail): Allow vuse walking when looking up references.
1685
1686 2009-10-26  Richard Guenther  <rguenther@suse.de>
1687
1688         PR tree-optimization/41826
1689         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
1690         access to re-allocated vector fields.
1691
1692 2009-10-26  Richard Guenther  <rguenther@suse.de>
1693
1694         * graphite-sese-to-poly.c (check_poly_representation): Fix
1695         compile without checking.
1696
1697 2009-10-26  Janus Weil  <janus@gcc.gnu.org>
1698
1699         PR fortran/41714
1700         * gimple.h (tree_annotate_all_with_location): Remove prototype.
1701         * gimplify.c (tree_should_carry_location_p,
1702         tree_annotate_one_with_location,tree_annotate_all_with_location):
1703         Remove obsolete functions.
1704
1705 2009-10-25  Kaz Kojima  <kkojima@gcc.gnu.org>
1706
1707         PR target/41813
1708         * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
1709
1710 2009-10-25  Richard Guenther  <rguenther@suse.de>
1711
1712         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1713         Stream DECL_RESTRICTED_P.
1714         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1715
1716 2009-10-25  Richard Sandiford  <rdsandiford@googlemail.com>
1717
1718         * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
1719         a note when expanding to nothing.
1720
1721 2009-10-25  Richard Guenther  <rguenther@suse.de>
1722
1723         PR middle-end/41814
1724         * tree.c (find_decls_types_r): Deal with Java overloading
1725         BINFO_VIRTUALS for its own purpose.
1726
1727 2009-10-24  Adam Nemet  <anemet@caviumnetworks.com>
1728
1729         * config/mips/predicates.md (hilo_operand): New predicate.
1730         * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
1731         define_insn.  Correct !ISA_HAS_EXT_INS length from 24 to 28.  Move
1732         splitter part from here ...:
1733         (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here.  Swap
1734         op0 and op4 to match the DINS case.
1735         (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
1736
1737 2009-10-24  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
1738
1739         PR middle-end/19154
1740         * avr.md (QIDI): Add new mode iterator.
1741         (sbrx_branch<mode>): Create new zero extract bit, test and jump
1742         patterns for all QI thru DI modes combinations.
1743         (sbrx_and_branch<mode>): Create new and based bit test and jump
1744         patterns for QI thru SI modes.
1745         avr.c (avr_out_sbxx_branch): Use only bit number.
1746
1747 2009-10-24  Jan Hubicka  <jh@suse.cz>
1748
1749         * ipa-reference.c (check_call): Noreturn notrhow calls do not write
1750         to memory.
1751         (analyze_function): When analyzing noreturn nothrow call, do not
1752         compute written stats; free bitmaps of vars early if possible.
1753         (generate_summary): Only update bitmaps if computed.
1754         (propagate): Only dump bitmaps if computed.
1755         (ipa_reference_read_summary): Fix pasto.
1756
1757 2009-10-24  Eric Botcazou  <ebotcazou@adacore.com>
1758
1759         * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
1760         (aliasing_component_refs_p): ...this.  Return true if there is no
1761         common base and the base access types have the same alias set.
1762         (indirect_ref_may_alias_decl_p): Adjust for above renaming.
1763         (indirect_refs_may_alias_p): Likewise.
1764
1765 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
1766
1767         PR c/40033
1768         * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
1769         a C_MAYBE_CONST_EXPR.
1770
1771 2009-10-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1772
1773         PR target/41787
1774         * config/rs6000/rs6000.c (struct machine_function): Add
1775         vsx_or_altivec_used_p to record if vector types are used.
1776         (rs6000_expand_to_rtl_hook): Rename from
1777         rs6000_alloc_sdmode_stack_slot.  If VSX, check to see if there are
1778         any vector operations, so if there are, we can set VRSAVE to
1779         non-zero when only floating point vector registers are used.
1780         (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
1781         (rs6000_check_vector_mode): Inner function to check if vector
1782         types are used in the code.
1783         (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
1784         vector instructions are used.
1785
1786         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
1787         Indicate that VSX registers which overlap floating point
1788         registers, can't be used across a call, since the ABI only states
1789         the scalar part of the register will be saved and restored.
1790
1791 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
1792
1793         PR c/41673
1794         * alias.c (get_alias_set): Call langhook before returning 0 for
1795         types with structural equality.
1796         * c-common.c (c_common_get_alias_set): Use alias set of element
1797         type for arrays with structural comparison.
1798
1799 2009-10-23  Richard Guenther  <rguenther@suse.de>
1800
1801         PR middle-end/41805
1802         * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
1803         gimple_call_nothrow_p.
1804
1805 2009-10-23  Richard Guenther  <rguenther@suse.de>
1806
1807         PR tree-optimization/41778
1808         * tree-ssa-pre.c (do_regular_insertion): Only insert if a
1809         redundancy along a path in the CFG we want to optimize for speed
1810         is going to be removed.
1811         (execute_pre): Do partial-PRE only if the function is to be
1812         optimized for speed.
1813         (gate_pre): Do not turn off all of PRE when not optimizing a
1814         function for speed.
1815
1816 2009-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1817
1818         * builtins.c (fold_builtin_cabs): Use validate_arg().
1819         (fold_builtin_cexp): Fix if-logic.
1820         (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
1821
1822 2009-10-22  Jeff Law  <law@redhat.com>
1823
1824         * ira-lives.c (process_single_reg_class_operands): Update the
1825         hard reg costs for all the hard registers desired by the
1826         single reg class operand.
1827
1828 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
1829
1830         * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
1831         for rtxes that aren't handled specially.
1832
1833 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
1834
1835         * rtl.h (shallow_copy_rtvec): Declare.
1836         * rtl.c (shallow_copy_rtvec): New function.
1837         * cselib.c (cselib_subst_to_values): Use it.  Only modify an
1838         rtx field if the subrtx has changed.
1839
1840 2009-10-22  Anatoly Sokolov  <aesok@post.ru>
1841
1842         * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
1843         (m32c_function_value): Make static, add new 'outgoing' argument.
1844         (m32c_libcall_value): Make static, add new 'fun' argument.
1845         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1846         * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1847         (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
1848         * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
1849         (m32c_function_value, m32c_libcall_value): Delete declaration.
1850
1851 2009-10-22  Diego Novillo  <dnovillo@google.com>
1852
1853         * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
1854
1855 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
1856
1857         * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
1858         space.
1859
1860 2009-10-22  Richard Guenther  <rguenther@suse.de>
1861
1862         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
1863         * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
1864         (lto_symtab_merge): Do not merge cgraph nodes here.
1865         (lto_symtab_resolve_can_prevail_p): Simplify.
1866         (lto_symtab_resolve_symbols): Store cgraph node.
1867         (lto_symtab_merge_decls_1): Simplify.  Do not drop non-prevailing
1868         functions from the symtab.
1869         (lto_symtab_merge_cgraph_nodes_1): New function.
1870         (lto_symtab_merge_cgraph_nodes): Likewise.
1871
1872 2009-10-22  Richard Guenther  <rguenther@suse.de>
1873
1874         PR lto/41791
1875         * lto-streamer-out.c (lto_output_location): Stream the
1876         system header flag.
1877         * lto-streamer-in.c (lto_input_location): Likewise.
1878
1879 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
1880
1881         * cfgloopmanip.c (duplicate_subloops): Export.
1882         * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
1883         (transform_to_exit_first_loop): Duplicate bbs starting from
1884         header up to loop->latch instead of exit->src.
1885         Initialize control variable to the correct number of iterations.
1886         (gather_scalar_reductions): Do not register double reductions.
1887         (parallelize_loops): Dump which loop is tested.
1888         Indicate whether the parallelized loop is inner or not.
1889         Remove the innermost-loop requirement.
1890         * cfgloop.h (duplicate_subloops): Export.
1891         * tree-cfg.c (add_phi_args_after_redirect): New function.
1892         (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
1893         Call duplicate_subloops.
1894         Update number of iterations at the exit condition.
1895         Don't redirect nexits always to the loop exit.
1896         Redirect copied edges from latch to the loop exit.
1897
1898 2009-10-22  Jan Hubicka  <jh@suse.cz>
1899
1900         * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
1901         flag_ltrans check.
1902         * ipa-inline.c (cgraph_mark_inline_edge,
1903         cgraph_decide_inlining_of_small_function,
1904         cgraph_decide_inlining, inline_read_summary): Disable indirect
1905         inlining for WPA for time being.
1906
1907         PR tree-optimize/40556
1908         * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
1909
1910 2009-10-22  Richard Guenther  <rguenther@suse.de>
1911
1912         * lto-streamer.h (lto_symtab_clear_resolution): Remove.
1913         * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
1914
1915 2009-10-22  Jan Hubicka  <jh@suse.cz>
1916
1917         PR lto/41730
1918         * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
1919         global vars.
1920         (check_call): Handle only indirect calls.
1921         (propagate_bits): Update comment.
1922         (write_node_summary_p): Turn bogus check to assert.
1923         (ipa_reference_write_summary): Stream calls_read_all properly.
1924         (ipa_reference_read_summary): Stream in calls_read_all properly.
1925         (read_write_all_from_decl): New function.
1926         (propagate): Handle OVERWRITABLE nodes and external calls here.
1927         * ipa-pre-const.c (check_call): In IPA mode handle indirect
1928         calls only.
1929         (analyze_function): Do not check visibility here.
1930         (add_new_function): We summary OVERWRITABLE too.
1931         (generate_summary): Stream OVERWRITABLE nodes too.
1932         (propagate): Handle external calls and OVERWRITABLE nodes here.
1933         (local_pure_const): Check visibility here.
1934
1935 2009-10-22  Jan Hubicka  <jh@suse.cz>
1936
1937         * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
1938         (pass_ipa_cp): Register them.
1939         (ipcp_init_stage): Analyze all functions for whopr/lto.
1940         (ipcp_propagate_stage): Skip external calls.
1941         (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
1942         * ipa-reference.c (write_node_summary_p): Fix thinko about
1943         availability.
1944         * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
1945         when in ltrans, skip executing of ipa passes since everything
1946         should've been done.
1947         * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
1948         (inline_generate_summary): Likewise.
1949         (inline_read_summary): New function.
1950         (inline_write_summary): New function.
1951         (pass_ipa_inline): Register new hooks.
1952         * ipa-prop.c: Inlcude lto-streamer.h
1953         (ipa_edge_args_vector): Update declaration.
1954         (ipa_count_arguments, ipa_compute_jump_functions,
1955         ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
1956         (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
1957         ipa_read_node_info): New static functions.
1958         (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
1959         (duplicate_array): Use xmalloc.
1960         (duplicate_ggc_array): New.
1961         (ipa_edge_duplication_hook): Use it.
1962         (ipa_update_after_lto_read): New function.
1963         * ipa-prop.h (ipa_prop_write_jump_functions,
1964         ipa_prop_read_jump_functions): Declare.
1965         (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
1966         jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
1967         (ipa_edge_args_vector): Move into GGC.
1968         (ipa_check_create_edge_args): Update.
1969         (ipa_update_after_lto_read): New.
1970         * passes.c (ipa_write_summaries_1): When in wpa, do not write
1971         summaries.
1972         (ipa_read_summaries): When in ltrans, so not read summaries.
1973         * lto-streamer.c (lto_get_section_name): Add
1974         LTO_section_jump_functions.
1975         * lto-streamer.h (LTO_section_jump_functions): New section.
1976         (produce_asm): Declare.
1977         * lto-cgraph.c (output_cgraph): Output edges in reverse order.
1978         * lto-streamer-out.c (produce_asm): Export.
1979         * lto-streamer-in.c: Include tree-pass.h
1980         (input_function): Free dominance info when done.
1981         (lto_read_body): Push ipa_inline in ltrans stage.
1982         * gengtype.c (open_base_files): Add ipa-prop.h into includes.
1983         * Makefile.in (GTFILES): Add ipa-prop.h
1984
1985 2009-10-22  Matthias Klose  <doko@ubuntu.com>
1986
1987         * doc/install.texi: Document --enable-browser-plugin.
1988
1989 2009-10-21  Vladimir Makarov  <vmakarov@redhat.com>
1990
1991         * doc/invoke.texi (fira-loop-pressure): Update default value.
1992         * opts.c (decode_options): Remove default value setting for
1993         flag_ira_loop_pressure.
1994         * config/ia64/ia64.c (ia64_override_options): Set
1995         flag_ira_loop_pressure up for -O3.
1996         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
1997
1998 2009-10-21  Sebastian Pop  <sebastian.pop@amd.com>
1999
2000         PR tree-optimization/41497
2001         * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
2002         chrec_dont_know if the evolution function returned by follow_ssa_edge
2003         is constant in the analyzed loop and is not compatible with the
2004         initial value before the loop.
2005         * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
2006
2007 2009-10-21  Joseph Myers  <joseph@codesourcery.com>
2008
2009         * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
2010
2011 2009-10-21  Jakub Jelinek  <jakub@redhat.com>
2012
2013         PR other/25507
2014         * doc/invoke.texi: Document -print-multi-os-directory.
2015
2016 2009-10-21  Jack Howarth  <howarth@bromo.med.uc.edu>
2017
2018         PR c++/41313
2019         * gcc/config/darwin10.h: Use default_emit_unwind_label.
2020         * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
2021         when darwin_emit_unwind_label is used.
2022
2023 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
2024
2025         * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
2026         order of checks.
2027
2028 2009-10-20  Richard Henderson  <rth@redhat.com>
2029
2030         * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
2031         before emit_post_landing_pad.
2032
2033 2009-10-20  Adam Nemet  <anemet@caviumnetworks.com>
2034
2035         * config/mips/mips.c (mips_binary_cost): Add new argument speed.
2036         Use when calling rtx_costs.
2037         (mips_rtx_costs): Fix formatting.  Use argument speed rather than the
2038         global optimize_size.  Pass speed to mips_binary_cost.
2039
2040 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
2041
2042         * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
2043         of TREE_CONSTANT.
2044
2045 2009-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
2046
2047         * rtl.h (simplify_replace_fn_rtx): Declare.
2048         (wrap_constant, unwrap_constant): Delete.
2049         * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
2050         (expand_debug_expr): Don't call wrap_constant.
2051         * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
2052         (auto_adjust_pair): Fold into...
2053         (propagate_for_debug_subst): ...here.  Only define for AUTO_INC_DEC.
2054         Just return a new value.
2055         (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
2056         otherwise use simplify_replace_rtx.
2057         * cselib.c (wrap_constant): Reinstate old definition.
2058         (cselib_expand_value_rtx_1): Don't wrap constants.
2059         * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
2060         simplify_replace_rtx.
2061         (bypass_block): Fix formatting in calls to simplify_replace_rtx.
2062         * reload1.c (reload): Skip all uses for an insn before adjusting it.
2063         Use simplify_replace_rtx.
2064         * simplify-rtx.c (simplify_replace_fn_rtx): New function,
2065         adapted from...
2066         (simplify_replace_rtx): ...here.  Turn into a wrapper for
2067         simplify_replace_fn_rtx.
2068         (simplify_unary_operation): Don't unwrap CONSTs.
2069         * var-tracking.c (check_wrap_constant): Delete.
2070         (vt_expand_loc_callback): Don't call it.
2071         (vt_expand_loc): Likewise.
2072
2073 2009-10-20  Pascal Obry  <obry@adacore.com>
2074             Eric Botcazou  <ebotcazou@adacore.com>
2075
2076         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
2077
2078 2009-10-20  Michael Matz  <matz@suse.de>
2079
2080         * loop-invariant.c (create_new_invariant): Use different magic number.
2081
2082 2009-10-20  Richard Earnshaw  <rearnsha@arm.com>
2083
2084         PR target/39247
2085         * arm.c (arm_override_options): Forcibly disable hot/cold block
2086         partitioning.
2087
2088 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
2089
2090         PR debug/41739
2091         * haifa-sched.c (try_ready): Skip debug deps updating speculation
2092         status.
2093
2094 2009-10-20  Richard Guenther  <rguenther@suse.de>
2095
2096         * ggc-page.c: Include cfgloop.h.
2097         (struct max_alignment): Drop long double, add void *.
2098         (extra_order_size_table): Add low non-power-of-two multiples
2099         of MAX_ALIGNMENT.  Drop small type-based entries, add
2100         tree_type, cgraph_node and loop.
2101         * alloc-pool.c (struct allocation_object_def): Drop long double
2102         aligning element.
2103
2104 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
2105
2106         PR debug/41340
2107         * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
2108         referenced just in DEBUG_INSNs.
2109
2110 2009-10-20  Richard Guenther  <rguenther@suse.de>
2111
2112         PR lto/41761
2113         * gimple.c (gimple_register_type): Make sure we register
2114         the types main variant first.
2115
2116 2009-10-20  Richard Guenther  <rguenther@suse.de>
2117
2118         * gimple.c (gimple_types_compatible_p): Simplify.  Move
2119         cheap checks before hashtable queries.  Add checks for
2120         TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
2121
2122 2009-10-20  Eric Botcazou  <ebotcazou@adacore.com>
2123
2124         * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
2125         without size or with size that can't be represented as a host integer.
2126
2127 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
2128
2129         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
2130         the removal of a debug stmt as a significant change.
2131
2132 2009-10-20  Wolfgang Gellerich  <gellerich@de.ibm.com>
2133
2134         * config/s390/s390.md: Added agen condition to operand
2135         forwarding bypasses.  Added bypass for early address generation
2136         use of int results.  Updated comments.
2137
2138 2009-10-20  Stefan Dösinger  <stefan@codeweavers.com>
2139
2140         * config/i386/i386.c: Remove signal.h #include.
2141
2142 2009-10-20  Jie Zhang  <jie.zhang@analog.com>
2143
2144         * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
2145         * doc/rtl.texi: Document ss_abs.
2146
2147 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
2148
2149         * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
2150         * c-lex.c (c_lex_with_flags): Likewise.  Test C_LEX_STRING_NO_JOIN
2151         instead of C_LEX_RAW_STRINGS.
2152         (lex_string): Handle CPP_UTF8STRING.
2153         * c-parser.c (c_parser_postfix_expression): Likewise.
2154         * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
2155         (C_LEX_STRING_NO_JOIN): ... this.
2156
2157 2009-10-19  Anatoly Sokolov  <aesok@post.ru>
2158
2159         * config/cris/cris.c (cris_function_value, cris_libcall_value,
2160         cris_function_value_regno_p): New functions.
2161         (cris_promote_function_mode): Update comment.
2162         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
2163         * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
2164         (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
2165         * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
2166
2167 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
2168
2169         * unwind-dw2.c (execute_stack_op): Fix operand order for
2170         DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
2171
2172 2009-10-19  Eric Botcazou  <ebotcazou@adacore.com>
2173
2174         * gimple-low.c (struct lower_data): Add cannot_fallthru field.
2175         (lower_stmt) <GIMPLE_BIND>: Add comment.
2176         <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
2177         and return.
2178         <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
2179         Otherwise lower it and set cannot_fallthru to true.
2180         <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
2181         <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
2182         <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
2183         to true for a noreturn call.  Do not remove statements.
2184         <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
2185         Set cannot_fallthru to false on function exit.
2186         (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
2187         <GIMPLE_ASSIGN>: Remove.
2188
2189 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2190
2191         * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
2192
2193 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2194
2195         * config/s390/s390.c (s390_z10_optimize_cmp): Use
2196         next/prev_active_insn to skip DEBUG_INSNs as well.
2197
2198 2009-10-19  Joseph Myers  <joseph@codesourcery.com>
2199
2200         * config/arm/arm.c (output_move_neon): Use DImode in call to
2201         adjust_address.
2202
2203 2009-10-19  Matthias Klose  <doko@ubuntu.com>
2204
2205         PR target/40134
2206         * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
2207
2208 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
2209
2210         * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
2211
2212 2009-10-17  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
2213
2214         PR middle-end/41738
2215         * optabs.c (expand_binop): Make mode of shift count expression mode
2216         of shift count not target.
2217         Remove indent nit.
2218
2219 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
2220
2221         * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
2222         case.  Force using values to replace references within the statement.
2223         (convert_local_reference_stmt): Likewise.
2224
2225 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
2226
2227         * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
2228         remove a subsequent GOTO or RETURN statement.
2229
2230 2009-10-17  Andy Hutchinson  <hutchinsonandy@aim.com>
2231
2232         * config/avr.md (*movqi): Add zero as equally preferable constraint
2233         as general register.
2234         (*movhi): Ditto.
2235
2236 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
2237
2238         * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
2239
2240 2009-10-17  Richard Guenther  <rguenther@suse.de>
2241
2242         * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
2243
2244 2009-10-17  Richard Guenther  <rguenther@suse.de>
2245
2246         * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
2247         operands in COMPONENT_REFs.
2248
2249 2009-10-17  Anatoly Sokolov  <aesok@post.ru>
2250
2251         * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
2252         if not defined. Change type of second argument to const_rtx.
2253         (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
2254         macro not defined.
2255         * targhooks.h (default_libcall_value): Update prototype.
2256         * target.h (struct gcc_target): Change type of second argument of
2257         libcall_value to const_rtx.
2258         * config/arm/arm.c (arm_libcall_value): Change type of second argument
2259         to const_rtx.
2260         (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
2261         * doc/tm.texi (TARGET_LIBCALL_VALUE):  Revise documentation.
2262
2263 2009-10-17  Jakub Jelinek  <jakub@redhat.com>
2264
2265         PR debug/40521
2266         * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
2267         * cgraphunit.c (cgraph_optimize): Call it.
2268         * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
2269         (dwarf2out_assembly_start): ... here.  New hook.
2270         (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
2271         * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
2272         hook.
2273         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
2274         * sdbout.c (sdb_debug_hooks): Likewise.
2275         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
2276         (vmsdbgout_assembly_start): New hook.
2277
2278 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
2279
2280         * rtl.h (RTL_LOCATION): Fix typo.
2281
2282 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
2283
2284         * print-rtl.c (print_rtx): Print locators in asm_operands
2285         and asm_input.
2286
2287 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
2288
2289         PR debug/41535
2290         * sched-deps.c (depl_on_debug_p): New.
2291         (attach_dep_link): Reject debug deps before nondebug deps.
2292         (add_to_deps_list): Insert debug deps after nondebug deps.
2293         (sd_lists_empty_p): Stop at first nonempty list.  Disregard debug
2294         deps.
2295         (sd_add_dep): Do not reject debug deps.
2296         (add_insn_mem_dependence): Don't count debug deps.
2297         (remove_from_deps): Likewise.
2298         (sched_analyze_2): Set up mem deps on debug insns.
2299         (sched_analyze_insn): Record reg uses for deps on debug insns.
2300         * haifa-sched.c (schedule_insn): Reset deferred debug insn.  Don't
2301         try_ready nondebug insn after debug insn.
2302         * ddg.c (create_ddg_dep_from_intra_loop_link,
2303         create_ddg_dep_no_link): Don't reject debug deps.
2304
2305 2009-10-16  Richard Guenther  <rguenther@suse.de>
2306
2307         * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
2308         (maybe_merge_incomplete_and_complete_type): Likewise.
2309         (lto_symtab_merge): Do not call them.  Do not warn for
2310         complete vs. incomplete compatible types.
2311         (lto_symtab_merge_decls_2): Simplify.
2312         * gimple.c (gimple_force_type_merge): Remove.
2313         (gimple_types_compatible_p): Make it static.
2314         * gimple.h (gimple_force_type_merge): Remove.
2315         (gimple_types_compatible_p): Likewise.
2316
2317 2009-10-16  Jakub Jelinek  <jakub@redhat.com>
2318
2319         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
2320         DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
2321
2322 2009-10-16  Richard Guenther  <rguenther@suse.de>
2323
2324         PR tree-optimization/41728
2325         * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
2326         if fold_stmt did anything.
2327
2328 2009-10-16  Richard Guenther  <rguenther@suse.de>
2329
2330         PR lto/41715
2331         * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
2332         (maybe_fixup_handled_component): New function.
2333         (input_gimple_stmt): Fixup mismatched decl replacements.
2334
2335 2009-10-16  Richard Guenther  <rguenther@suse.de>
2336
2337         PR lto/41713
2338         * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
2339         the same as VAR_DECL.
2340
2341 2009-10-16  Richard Guenther  <rguenther@suse.de>
2342
2343         * gimple.c (iterative_hash_gimple_type): For integer types
2344         also hash their minimum and maximum values and the string flag.
2345         For array types hash their domain and the string flag.
2346
2347 2009-10-16  Richard Guenther  <rguenther@suse.de>
2348
2349         * gimple.c (gimple_types_compatible_p): Restrict completing
2350         types to record or unions.  Simplify completion.
2351         Do not merge records or unions with different
2352         TYPE_STRUCTURAL_EQUALITY_P tag.
2353         (iterative_hash_gimple_type): Restrict non-recursing into
2354         pointer targets for records and unions.
2355
2356 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
2357
2358         PR debug/41717
2359         * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
2360         * dwarf2out.c (mem_loc_descriptor): Don't handle
2361         POST_INT/POST_DEC/POST_MODIFY like SUBREG.  For SUBREG
2362         punt if it is not lowpart subreg or if inner mode isn't
2363         MODE_INT.
2364
2365 2009-10-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2366
2367         * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
2368         investigating previous or next insns.
2369
2370 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
2371
2372         * tree-sra.c (build_ref_for_offset_1): Update comment.
2373
2374 2009-10-16  Wolfgang Gellerich  <gellerich@de.ibm.com>
2375
2376         * config/s390/s390.md (atype): Added missing values.
2377
2378 2009-10-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2379
2380         PR target/41702
2381         * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
2382         (casesi64p): Update pattern to reflect above.
2383
2384 2009-10-15  Steve Ellcey  <sje@cup.hp.com>
2385
2386         PR rtl-optimization/41697
2387         * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
2388
2389 2009-10-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
2390
2391         PR target/23983
2392         * config/rs6000/predicates.md: Update copyright year.
2393         * config/rs6000/altivec.md: Ditto.
2394
2395         * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
2396         (MD_INCLUDES): Add a2.md.
2397
2398         * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
2399         RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
2400         (builtin_classify): New static vector to classify various builtins
2401         to get the tree attributes correct.
2402         (def_builtin): Set the attributes of builtins based on what the
2403         builtin does (i.e. memory operation, floating point, saturation
2404         need special attributes, others are pure functions).
2405
2406         * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
2407         the builtins.
2408         (enum rs6000_builtins): Include rs6000-builtin.def to define the
2409         builtins.  Change the end marker to MAX_RS6000_BUILTINS from
2410         RS6000_BUILTIN_COUNT.
2411         (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
2412         MAX_RS6000_BUILTINS.
2413
2414         * config/rs6000/rs6000-builtin.def: New file that combines the
2415         builtin enumeration name and attributes.
2416
2417 2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2418
2419         * config/i386/linux.h (ASM_SPEC): Add --32.
2420
2421 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
2422
2423         * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
2424         and DW_TAG_template_alias.
2425         (dwarf_attr_name): Handle DW_AT_main_subprogram,
2426         DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
2427         DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
2428         DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
2429         DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
2430         and DW_AT_GNU_odr_signature.
2431         (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
2432         DW_FORM_flag_present and DW_FORM_ref_sig8.
2433         (output_signature): Only print name on the first byte.
2434         (output_die): Likewise for dw_val_class_data8.
2435
2436 2009-10-15  Alexander Monakov  <amonakov@ispras.ru>
2437
2438         * doc/invoke.texi: Clarify that most optimizations are not enabled
2439         without -O.
2440
2441 2009-10-15  Richard Guenther  <rguenther@suse.de>
2442
2443         PR lto/41668
2444         * gimple.c (compare_type_names_p): Handle anonymous names
2445         differently based on new mode argument.
2446         (gimple_types_compatible_p): For structs also compare the tags.
2447         (iterative_hash_type_name): Rename to ...
2448         (iterative_hash_name): ... this.  Hash all names.
2449         (iterative_hash_gimple_type): Fix hashing the struct tag of
2450         pointer targets.  Hash field decl names.
2451
2452 2009-10-15  Richard Guenther  <rguenther@suse.de>
2453
2454         PR lto/41669
2455         * gimple.c (gimple_get_alias_set): Avoid recursing on
2456         invalid type topology.
2457
2458 2009-10-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2459
2460         * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
2461
2462 2009-10-15  Richard Guenther  <rguenther@suse.de>
2463
2464         * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
2465
2466 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
2467
2468         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
2469         add --with-tune{,-32,-64} configured default for -mtune if explicit
2470         -mcpu is used.
2471
2472 2009-10-14  Daniel Gutson  <dgutson@codesourcery.com>
2473
2474         * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
2475
2476 2009-10-14  DJ Delorie  <dj@redhat.com>
2477
2478         * config/h8300/h8300.c (F): New.
2479         (Fpa): New.
2480         (h8300_emit_stack_adjustment): Call them.
2481         (push): Likewise.
2482         (h8300_push_pop): Likewise.
2483         (h8300_expand_prologue): Likewise.
2484         * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
2485         (MUST_USE_SJLJ_EXCEPTIONS): Define.
2486         (INCOMING_RETURN_ADDR_RTX): Define.
2487         (INCOMING_FRAME_SP_OFFSET): Define.
2488         (DWARF_CIE_DATA_ALIGNMENT): Define.
2489
2490 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
2491
2492         * stor-layout.c (place_field): Don't emit -Wpadded warnings for
2493         fields in builtin structs.
2494         (finalize_record_size): Likewise.
2495
2496 2009-10-14  Richard Guenther  <rguenther@suse.de>
2497
2498         * gimple.c (gtc_ob): New global.
2499         (struct type_pair_d): Replace pointers with type UIDs.
2500         (type_pair_hash): Adjust.
2501         (type_pair_eq): Likewise.
2502         (lookup_type_pair): Likewise.  Allocate from an obstack.
2503         (gimple_force_type_merge): Adjust.
2504         (gimple_types_compatible_p): Likewise.
2505         (free_gimple_type_tables): Free the obstack.
2506
2507 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
2508
2509         * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
2510         stmts setting DEBUG_EXPR_DECLs.
2511
2512         * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
2513         Don't crash if mode1 is VOIDmode.
2514
2515 2009-09-26  Vladimir Makarov  <vmakarov@redhat.com>
2516
2517         * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
2518         * params.h (IRA_LOOP_RESERVED_REGS): New.
2519         * tree-pass.h (pass_subregs_of_mode_init,
2520         pass_subregs_of_mode_finish): Remove.
2521         * passes.c (pass_subregs_of_mode_init,
2522         pass_subregs_of_mode_finish): Remove.
2523         (pass_reginfo_init): Move before loop optimizations.
2524         * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
2525         * common.opt (fira-loop-pressure): New.
2526         * toplev.h (flag_ira_loop_pressure): New.
2527         * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
2528         * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
2529         Make external and void type functions.
2530         (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
2531         pass_subregs_of_mode_finish): Remove.
2532         * ira-costs.c (init_costs): Call init_subregs_of_mode.
2533         * regmove.c: Include ira.h.
2534         (regmove_optimize): Call ira_set_pseudo_classes after IRA based
2535         register pressure calculation in loops.
2536         * loop-invariant.c: Include REGS_H and ira.h.
2537         (struct loop_data): New members max_reg_pressure, regs_ref, and
2538         regs_live.
2539         (struct invariant): New member orig_regno.
2540         (curr_loop): New variable.
2541         (find_exits): Initialize regs_ref and regs_live.
2542         (create_new_invariant): Initialize orig_regno.
2543         (get_cover_class_and_nregs): New.
2544         (get_inv_cost): Make aregs_needed an array.  Use regs_needed as an
2545         array.  Add code for flag_ira_loop_pressure.
2546         (gain_for_invariant): Make new_regs an array.  Add code for
2547         flag_ira_loop_pressure.
2548         (best_gain_for_invariant): Ditto.
2549         (set_move_mark): New parameter gain.  Use it for debugging output.
2550         (find_invariants_to_move): Make regs_needed and new_regs an array.
2551         Add code for flag_ira_loop_pressure.
2552         (move_invariant_reg): Set up orig_regno.
2553         (move_invariants): Set up reg classes for pseudos for
2554         flag_ira_loop_pressure.
2555         (free_loop_data): Clear regs_ref and regs_live.
2556         (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
2557         get_regno_cover_class, change_pressure, mark_regno_live,
2558         mark_regno_death, mark_reg_store, mark_reg_clobber,
2559         mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
2560         (move_loop_invariants): Calculate pressure.  Initialize curr_loop.
2561         * ira.c (ira): Call ira_set_pseudo_classes after IRA based
2562         register pressure calculation in loops if new regs were added.
2563         Call finish_subregs_of_mode.
2564         * opts.c (decode_options): Set up flag_ira_loop_pressure.
2565         * Makefile.in (loop-invariant.o): Add ira.h.
2566         (regmove.o): Ditto.
2567         * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
2568         Describe.
2569         * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
2570
2571 2009-10-14  Richard Guenther  <rguenther@suse.de>
2572
2573         * lto-symtab.c (lto_symtab_compatible): Fold in ...
2574         (lto_symtab_merge): ... here.  Rewrite both to take the
2575         prevailing and a to-be-merged entry and to queue diagnostics properly.
2576         (lto_symtab_resolve_replaceable_p): New predicate for
2577         symbol resolution.
2578         (lto_symtab_resolve_can_prevail_p): Likewise.
2579         (lto_symtab_resolve_symbols): Rewrite.  Fold in code that
2580         handles merging commons by choosing the largest decl.  Fold
2581         in code that gives ODR errors.
2582         (lto_symtab_merge_decls_2): Simplify a lot.  Emit queued
2583         diagnostics here.
2584         (lto_symtab_merge_decls_1): Re-structure.  Deal with the
2585         case of no prevailing decl here.  Diagnose mismatches
2586         in object types here.  Drop all but the prevailing decls.
2587         (lto_symtab_prevailing_decl): Return the single prevailing decl.
2588         * lto-streamer-in.c (lto_input_tree_ref): Deal with
2589         VIEW_CONVERT_EXPRs in decl slots.  Unshare the tree in this case.
2590
2591 2009-10-14  Richard Guenther  <rguenther@suse.de>
2592
2593         PR lto/41521
2594         * lto-streamer-in.c (input_bb): Replace debug stmts with
2595         nops instead of dropping them.
2596
2597 2009-10-14  Nick Clifton  <nickc@redhat.com>
2598
2599         * gcc/doc/extended.texi: Replace the dash character with @minus{}
2600         in situations where it is being used as a minus symbol.
2601         * gcc/doc/tm.texi: Likewise.
2602         * gcc/doc/md.texi: Likewise.
2603
2604 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
2605
2606         PR preprocessor/41543
2607         * input.h (BUILTINS_LOCATION): Change to 1 from 2.
2608         Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
2609         * tree.c: Include intl.h.
2610         (expand_location): Handle BUILTINS_LOCATION.
2611         * Makefile.in (tree.o): Depend on intl.h.
2612
2613         PR debug/41695
2614         * dwarf2out.c (dwarf2out_var_location): Always clear
2615         last_postcall_label when changing last_label.
2616
2617 2009-10-14  Pascal Obry  <obry@adacore.com>
2618
2619         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
2620         (process_command): Handle -E as done with -c and -S.  Do not add
2621         the target executable suffix to the output file when -E is used.
2622         (main): Adjust error message accordingly.
2623
2624 2009-10-14  Alexandre Oliva  <aoliva@redhat.com>
2625
2626         PR debug/41343
2627         PR debug/41447
2628         PR debug/41264
2629         PR debug/41338
2630         * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
2631         decl with rtl.
2632         (tree_code_size): Likewise.
2633
2634 2009-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2635
2636         * builtins.c (fold_builtin_1): Support complex "arc" functions.
2637         * real.h (HAVE_mpc_arc): Define.
2638
2639 2009-10-14  Kaz Kojima  <kkojima@gcc.gnu.org>
2640
2641         * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
2642         (struct builtin_description): Add fndecl field.
2643         (bdesc): Remove const qualifier.  Update initializer.
2644         (sh_media_init_builtins): Remove const qualifier for d.  Record
2645         the result of add_builtin_function to the fndecl field.
2646         (sh_builtin_decl): New.
2647         (sh_media_builtin_decl): New.
2648
2649 2009-10-14  Hans-Peter Nilsson  <hp@axis.com>
2650
2651         PR target/38948
2652         * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
2653         requests between special registers.
2654
2655 2009-10-13  Eric Botcazou  <ebotcazou@adacore.com>
2656
2657         * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
2658
2659 2009-10-13  Richard Henderson  <rth@redhat.com>
2660
2661         PR tree-optimization/41377
2662         * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
2663         (cleanup_empty_eh_merge_phis): New change_region parameter;
2664         pass it on to redirect_eh_edge_1.  Update callers.
2665         (cleanup_empty_eh_unsplit): Don't require an existing EH label
2666         at the destination block.
2667
2668 2009-10-13  Basile Starynkevitch  <basile@starynkevitch.net>
2669
2670         * passes.c (register_pass): Replaced gcc_unreachable by
2671         fatal_error on failure. Mentions plugins in comments & messages.
2672
2673 2009-10-13  Jakub Jelinek  <jakub@redhat.com>
2674
2675         PR target/41693
2676         * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
2677         * sched-vis.c (print_value): Use it.
2678         * cselib.c (cselib_hash_rtx): Likewise.
2679         * print-rtl.c (print_rtx): Likewise.
2680         * cfgexpand.c (expand_debug_rtx): Likewise.
2681         * var-tracking.c (vt_expand_loc_callback): Likewise.
2682
2683 2009-10-13  Richard Guenther  <rguenther@suse.de>
2684
2685         PR lto/41565
2686         * opts.c (handle_option): Split out code to handle setting
2687         the options flag var ...
2688         (set_option): ... here.
2689         * opts.h (set_option): Declare.
2690         * lto-opts.c (register_user_option_p): Include -fexceptions
2691         and all position independent code variants.
2692         (handle_common_option): Remove.
2693         (lto_reissue_options): Use set_option.
2694
2695 2009-10-13  Martin Jambor  <mjambor@suse.cz>
2696
2697         PR tree-optimization/41661
2698         * ipa-prop.c (compute_complex_pass_through): Allow only operations
2699         that are tcc_comparisons or do not change the type in any
2700         un-usleless way.
2701         * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
2702         folding tcc_comparison operations.
2703
2704 2009-10-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2705
2706         * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
2707         properly.
2708
2709 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
2710
2711         PR debug/41343
2712         PR debug/41447
2713         PR debug/41264
2714         PR debug/41338
2715         * tree.def (DEBUG_EXPR_DECL): New.
2716         * rtl.def (DEBUG_EXPR): New.
2717         * gengtype.c (adjust_field_rtx_def): Handle it.
2718         * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
2719         (insert_debug_temp_for_var_def): ... this.  Drop support for
2720         moving.  Take iterator for def stmt; insert debug stmt before it.
2721         Scan early for use count and kind in debug stmts.
2722         (propagate_defs_into_debug_stmts): Rename to...
2723         (insert_debug_temps_for_defs): ... this.  Likewise.
2724         * tree.h (DEBUG_TEMP_UID): New.
2725         * tree.c (next_debug_decl_uid): New.
2726         (make_node_stat): Count debug decls separately.
2727         (copy_node_stat): Likewise.
2728         * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
2729         * var-tracking.c (dv_is_decl_p): Recognize it.
2730         (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
2731         (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
2732         (vt_expand_loc_callback): Expand DEBUG_EXPRs.
2733         (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
2734         * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
2735         (cselib_hash_rtx): Likewise.
2736         (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
2737         * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
2738         debug bind stmts.
2739         * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
2740         (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
2741         * rtl.c (copy_rtx): Likewise.
2742         (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
2743         * print-rtl.c (print_rtx): Likewise.
2744         * sched-vis.c (print_value): Likewise.
2745         (print_insn): Handle DEBUG_EXPR_DECL.
2746         * tree-dump.c (dequeue_and_dump): Likewise.
2747         * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
2748         * gimple-iterator (gsi_replace): Check for same lhs.
2749         (gsi_remove): Insert debug temps.
2750         * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
2751         (move_computations_stmt): Drop explicit propagation into debug stmts.
2752         (rewrite_bittest): Likewise.  Use gsi_remove for propagation.
2753         * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
2754         * tree-ssa-sink.c (statement_sink_location): Likewise.
2755         * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
2756         * tree-ssanames.c (release_ssa_name): Adjust for rename.
2757         * tree-flow.h: Likewise.
2758         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
2759         debug temps without values.
2760         (eliminate_unnecessary_stmts): Don't discard just-inserted
2761         debug stmts.
2762
2763 2009-10-12  Hans-Peter Nilsson  <hp@axis.com>
2764
2765         PR target/26515
2766         * config/cris/cris.md (andu): Check that operand 1 is one of the
2767         general registers.  Fix typo in head comment.
2768
2769 2009-10-12  Stefan Dösinger  <stefan@codeweavers.com>
2770
2771         * config/i386/i386.md (vswapmov): New.
2772         * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
2773         (ix86_function_ms_hook_prologue): New.
2774         (ix86_expand_prologue): Handle ms_hook_prologue attribute.
2775         * configure.ac: Test for swap suffix support in as.
2776         * configure: Rebuild.
2777
2778 2009-10-12  Jakub Jelinek  <jakub@redhat.com>
2779
2780         PR target/41680
2781         * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
2782         paradoxical subregs to prevent partial register stalls if the inner
2783         mode is integer mode.
2784
2785 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
2786
2787         * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
2788
2789 2009-10-12  Dodji Seketeli  <dodji@redhat.com>
2790
2791         PR c++/41570
2792         * gcc/dwarf2out.c (template_parameter_pack_die,
2793         gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
2794
2795 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
2796
2797         PR debug/41616
2798         * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
2799         on updates too.
2800         (maybe_register_def): Likewise.  Take stmt iterator.
2801         (rewrite_update_stmt): Take stmt iterator and pass it on.
2802         (rewrite_update_enter_block): Pass stmt iterator.
2803
2804 2009-10-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2805
2806         * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
2807         (spu_builtin_decl): New function.
2808
2809 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
2810
2811         * config/i386/i386.md (SWIM): New mode iterator.
2812         (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
2813         using SWIM mode iterator.
2814         (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
2815         patterns using SWI48 mode iterator.
2816         (*x86_mov<mode>cc_0_m1_se):  Macroize insn from
2817         *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
2818         (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
2819         (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
2820         patterns using SWI248 mode iterator.
2821         * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
2822         gen_x86_movdicc_0_m1_rex64 for renamed function
2823
2824 2009-10-11  Jose Ruiz  <ruiz@adacore.com>
2825             Eric Botcazou  <ebotcazou@adacore.com>
2826
2827         PR target/33743
2828         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
2829         * config/sparc/sol2-unwind.h: New file.
2830
2831 2009-10-11  Olivier Hainque  <hainque@adacore.com>
2832             Eric Botcazou  <ebotcazou@adacore.com>
2833
2834         PR target/33743
2835         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
2836         * config/i386/sol2-unwind.h: New file.
2837
2838 2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>
2839
2840         PR target/41665
2841         * config/i386/i386.md (addsi_1_zext): Get the proper second
2842         operand for lea.
2843
2844 2009-10-11  Richard Sandiford  <rdsandiford@googlemail.com>
2845
2846         * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
2847         all OLD_RTXes, not just REGs.  Use copy_rtx to create the
2848         replacement value.
2849
2850 2009-10-11  Richard Guenther  <rguenther@suse.de>
2851
2852         * gimple.c (iterative_hash_type_name): Do not handle special
2853         anonymous names.
2854
2855 2009-10-11  Uros Bizjak  <ubizjak@gmail.com>
2856
2857         * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
2858         (*setcc_si_1_and): Ditto.
2859         (*setcc_si_1_movzbl): Ditto.
2860         (*setcc_<mode>_2): Ditto.
2861         (*setcc_qi): Rename from *setcc_1.
2862         (*setcc_qi_slp): Rename from *setcc_2.
2863
2864         (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
2865         (*zero_extendqisi2_movzbw_and splitter): Ditto.
2866
2867         * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
2868         "if" condition, there is already assert with reload_completed present.
2869
2870 2009-10-11  Gerald Pfeifer  <gerald@pfeifer.com>
2871
2872         * plugin.c (try_init_one_plugin): Improve constness of variable err.
2873
2874 2009-10-10  Gerald Pfeifer  <gerald@pfeifer.com>
2875
2876         * doc/install.texi (Final install): Refer to
2877         http://gcc.gnu.org/bugs/ for bug reporting.
2878
2879 2009-10-10  Peter Bergner  <bergner@vnet.ibm.com>
2880
2881         * configure.ac: Add test for dci instruction.
2882         * configure: Regenerate.
2883         * config.in: Likewise.
2884         * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
2885         * doc/invoke.texi: Add cpu_type 476 and 476fp.
2886         (-mmulhw): Add 476 to description.
2887         (-mdlmzb): Likewise.
2888         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
2889         * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
2890         (processor_target_table): Add 476 and 476fp entries.
2891         (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
2892         (rs6000_issue_rate): Add CPU_PPC476.
2893         * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
2894         (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
2895         (processor_type): Add PROCESSOR_PPC476.
2896         (EXTRA_SPECS): Add asm_cpu_476 string.
2897         * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
2898         (define_attr "cpu"): Add ppc476.
2899         Include 476.md.
2900         Update comments for 476.
2901         (isel_signed, isel_unsigned): Change to use "isel" type attribute.
2902         * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
2903         Update copyright year.
2904         * config/rs6000/476.md: New file.
2905         * config/rs6000/40x.md: Add description for "isel" attribute.
2906         Update copyright year.
2907         * config/rs6000/440.md: Likewise.
2908         * config/rs6000/603.md: Likewise.
2909         * config/rs6000/6xx.md: Likewise.
2910         * config/rs6000/7450.md: Likewise.
2911         * config/rs6000/7xx.md: Likewise.
2912         * config/rs6000/8540.md: Likewise.
2913         * config/rs6000/cell.md: Likewise.
2914         * config/rs6000/e300c2c3.md: Likewise.
2915         * config/rs6000/e500mc.md: Likewise.
2916         * config/rs6000/mpc.md: Likewise.
2917         * config/rs6000/power4.md: Likewise.
2918         * config/rs6000/power5.md: Likewise.
2919         * config/rs6000/power6.md: Likewise.
2920         * config/rs6000/power7.md: Likewise.
2921         * config/rs6000/rios1.md: Likewise.
2922         * config/rs6000/rios2.md: Likewise.
2923         * config/rs6000/rs64.md: Likewise.
2924
2925 2009-10-10  Richard Guenther  <rguenther@suse.de>
2926
2927         PR tree-optimization/41654
2928         * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
2929         a cond expr before calling gimple_cond_set_condition_from_tree.
2930         (ifcombine_iforif): Likewise.
2931
2932 2009-10-09  Ian Lance Taylor  <iant@google.com>
2933
2934         * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
2935         * configure: Rebuild.
2936
2937 2009-10-09  Neil Vachharajani <nvachhar@google.com>
2938
2939         * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
2940         deprecated.
2941
2942 2009-10-09  Richard Guenther  <rguenther@suse.de>
2943
2944         PR lto/41638
2945         * target-def.h (TARGET_BUILTIN_DECL): Define.
2946         (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
2947         * target.h (struct gcc_target): Add builtin_decl target hook.
2948         * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
2949         * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
2950         target builtins.
2951         * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
2952         not gcc_unreachable.
2953         (lto_output_builtin_tree): Sorry if the target does not support
2954         streaming target builtins.
2955         * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
2956         (rs6000_builtin_decl): New function.
2957         * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
2958         (ix86_builtin_decl): New function.
2959
2960 2009-10-09  Jakub Jelinek  <jakub@redhat.com>
2961
2962         PR preprocessor/41445
2963         * c-ppoutput.c (do_line_change): New function.
2964         (cb_line_change): Use it.
2965         (scan_translation_unit): Call do_line_change if
2966         avoid_paste or PREV_WHITE and token location is on a different line
2967         than print.src_line.
2968
2969         PR debug/40521
2970         * dwarf2out.c (dwarf2out_init): Test whether
2971         HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
2972         it is defined.
2973
2974         PR rtl-optimization/41646
2975         * calls.c (expand_call): For BLKmode types returned in registers
2976         avoid likely spilled hard regs in copy_blkmode_from_reg generated
2977         insns.
2978
2979 2009-10-09  Richard Guenther  <rguenther@suse.de>
2980
2981         PR tree-optimization/41634
2982         * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
2983         we remove the correct elements.
2984         (optimize_stmt): Make sure to update stmt operands before
2985         optimizing redundancies.
2986
2987 2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2988
2989         * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
2990
2991 2009-10-09  Richard Guenther  <rguenther@suse.de>
2992
2993         PR driver/41637
2994         * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
2995         globals.
2996         (lto_wrapper_exit): New function.
2997         (fatal): Use it.
2998         (fatal_perror): Likewise.
2999         (fork_execute): Use global args_name, do not free it.
3000         (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
3001         * lto-streamer.h: Remove duplicate prototypes.
3002
3003 2009-10-09  Richard Guenther  <rguenther@suse.de>
3004
3005         * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
3006         before calling stmt_can_throw_external.
3007
3008 2009-10-09  Eric Botcazou  <ebotcazou@adacore.com>
3009
3010         PR tree-optimization/40071
3011         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
3012         pointer if the original data reference doesn't conflict with the
3013         created vector data reference.  Fix long line.
3014
3015 2009-10-09  Uros Bizjak  <ubizjak@gmail.com>
3016
3017         * config/i386/i386.md (any_div): New code iterator.
3018         (u): Handle div and udiv.
3019         (sgnprefix): Ditto.
3020         (<u>divqi3): Macroize insn from {,u}divqi3  using any_div
3021         code iterator.
3022         (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
3023         lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
3024         (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
3025         lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
3026
3027 2009-10-08  Joseph Myers  <joseph@codesourcery.com>
3028
3029         * gcc.c (main): Remove trailing "." from diagnostics.
3030
3031 2009-10-08  Cary Coutant  <ccoutant@google.com>
3032
3033         Add support for debugging with ICF (Identical Code Folding).
3034         * calls.c (debug.h): New #include.
3035         (emit_call_1): Call virtual_call_token debug hook.
3036         * common.opt (-fenable-icf-debug): New option.
3037         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
3038         locations in the source).
3039         (poc_label_num): New variable.
3040         (dcall_entry, vcall_entry): New typedefs.
3041         (dcall_table, vcall_table): New variables.
3042         (struct vcall_insn): New type.
3043         (vcall_insn_table): New variable.
3044         (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
3045         (size_of_dcall_table): New function.
3046         (output_dcall_table): New function.
3047         (size_of_vcall_table): New function.
3048         (output_vcall_table): New function.
3049         (dwarf2out_direct_call): New function.
3050         (vcall_insn_table_hash): New function.
3051         (vcall_insn_table_eq): New function.
3052         (dwarf2out_virtual_call_token): New function.
3053         (dwarf2out_virtual_call): New function.
3054         (dwarf2out_init): Allocate new tables and sections.
3055         (prune_unused_types): Mark DIEs referenced from direct call table.
3056         (dwarf2out_finish): Output direct and virtual call tables.
3057         * final.c (final_scan_insn): Call direct_call and virtual_call
3058         debug hooks.
3059         * debug.h (struct gcc_debug_hooks): Add direct_call,
3060         virtual_call_token, virtual_call hooks.
3061         (debug_nothing_uid): New function.
3062         * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
3063         (debug_nothing_uid): New function.
3064         * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
3065         (xcoff_debug_hooks): Likewise.
3066         * sdbout.c (sdb_debug_hooks): Likewise.
3067         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3068         * doc/invoke.texi (-fenable-icf-debug): New option.
3069
3070 2009-10-08  Alexandre Oliva  <aoliva@redhat.com>
3071
3072         PR debug/41353
3073         * regmove.c (regmove_backward_pass): Replace src with dst in the
3074         debug insn, and check for dst before rather than after.
3075
3076 2009-10-08  Janis Johnson <janis187@us.ibm.com>
3077
3078         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
3079         (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
3080
3081 2009-10-08  Jan Hubicka  <jh@suse.cz>
3082
3083         PR middle-end/41626
3084         * cgraphbuild.c (record_reference): When parameter DATA is NULL,
3085         do not mark cgraph nodes as needed.
3086         (record_references_in_initializer): Add new only_vars parameter.
3087         * cgraph.h (record_references_in_initializer): New parameter.
3088         * varasm.c (assemble_variable): Update call.
3089         * varpool.c (varpool_analyze_pending_decls): Always look for
3090         referenced vars.
3091
3092 2009-10-08  Anatoly Sokolov  <aesok@post.ru>
3093
3094         * config/avr/avr.c (last_insn_address) Remove variable.
3095         (expand_prologue): Don't initialise last_insn_address variable.
3096         (final_prescan_insn): Don't output insn size.
3097         * config/avr/avr.opt (msize): Remove switch.
3098         * doc/invoke.texi (AVR Options): Remove documentation of -msize
3099         switch.
3100
3101 2009-10-08  Adam Nemet  <anemet@caviumnetworks.com>
3102
3103         * combine.c (label_tick_ebb_start): Fix comment.
3104         (combine_instructions): Set label_tick and label_tick_ebb_start before
3105         calling setup_incoming_promotions.  Start them from 1.  Increment
3106         label_tick instead of deriving it from the BB index.  Rather than
3107         comparing ticks use the block from the previous iteration to decide
3108         whether to start a new EBB.  Remove empty lines before function.
3109
3110 2009-10-08  Michael Matz  <matz@suse.de>
3111
3112         PR middle-end/41573
3113         * builtins.c (fold_builtin_isascii): Use fold_build2.
3114         (fold_builtin_isdigit): Ditto.
3115         * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
3116         * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
3117         remove_useless_stmts_cond, remove_useless_stmts_tf,
3118         remove_useless_stmts_tc, remove_useless_stmts_bind,
3119         remove_useless_stmts_goto, remove_useless_stmts_label,
3120         remove_useless_stmts_1, remove_useless_stmts,
3121         pass_remove_useless_stmts): Remove.
3122         * tree-pass.h (pass_remove_useless_stmts): Don't declare.
3123         * passes.c (init_optimization_passes): Don't add
3124         pass_remove_useless_stmts.
3125         * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
3126         * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
3127         static constants.
3128         * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
3129         for static constants.
3130         * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
3131         * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
3132
3133 2009-10-08  Richard Guenther  <rguenther@suse.de>
3134
3135         * gimple.c (free_gimple_type_tables): New function.
3136         * gimple.h (free_gimple_type_tables): Declare.
3137
3138 2009-10-07  Mark Heffernan  <meheff@google.com>
3139
3140         * ipa-prop.c (ipa_print_node_params) Only print
3141         names of named arguments.
3142
3143 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
3144
3145         * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
3146         being statically linked.
3147
3148 2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3149
3150         * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
3151
3152 2009-10-08  Jan Hubicka  <jh@suse.cz>
3153
3154         PR bootstrap/41620
3155         * ipa.c (cgraph_externally_visible_p,
3156         function_and_variable_visibility,
3157         whole_program_function_and_variable_visibility): Skip non-finalized
3158         nodes.
3159
3160 2009-10-08  Nick Clifton  <nickc@redhat.com>
3161
3162         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
3163         CONST_DOUBLEs.
3164
3165 2009-10-08  Andreas Tobler  <a.tobler@schweiz.org>
3166
3167         PR bootstrap/37739
3168         * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
3169
3170 2009-10-07  Joseph Myers  <joseph@codesourcery.com>
3171
3172         PR c/41182
3173         * c-common.c (c_fully_fold_internal): Strip nops from the result
3174         of recursive calls to c_fully_fold_internal.
3175         (c_wrap_maybe_const): New.
3176         (c_save_expr): Use c_wrap_maybe_const.
3177         * c-common.h (c_wrap_maybe_const): Declare.
3178         * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
3179         build_binary_op): Use c_wrap_maybe_const.
3180
3181 2009-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3182
3183         * real.c: Fix comment to reflect actual exponent size.
3184
3185 2009-10-08  Ben Elliston  <bje@au.ibm.com>
3186
3187         * config/rs6000/a2.md: Add FSF comment header.
3188
3189 2009-10-07  Uros Bizjak  <ubizjak@gmail.com>
3190
3191         * config/i386/i386.md (any_extend): New code iterator.
3192         (u, s): New code attributes.
3193         (sgnprefix): Ditto.
3194         (DWIH): Rewrite as code iterator for SI and DI modes.
3195         (DWI): Rewrite as mode attribute.
3196         (dwi): New mode attribute.
3197         (di): Depend on SI mode and DI mode.
3198         (doubleint_general_operand): Remove mode attribute.
3199
3200         (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
3201         DWIH mode iterator.
3202
3203         (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
3204         (*sub<mode>3_doubleword): Ditto.
3205
3206         (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
3207         using SWIM248 mode iterator.
3208         (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
3209         using SWI48 mode iterator.
3210         (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
3211         patterns using DWIH mode iterator and any_extend code iterator.
3212         (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
3213         using any_extend code iterator.
3214         (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
3215         patterns using DWIH mode iterator and any_extend code iterator.
3216         (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
3217         using any_extend code iterator.
3218         (<s>mul<mode>3_highpart): Macroize expander from
3219         {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
3220         and any_extend code iterator.
3221         (*<s>muldi3_highpart_1): Macroize insn from
3222         *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
3223         (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
3224         patterns using any_extend code iterator.
3225         (*<s>mulsi3_highpart_zext): Macroize insn from
3226         *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
3227
3228 2009-10-07  Jakub Jelinek  <jakub@redhat.com>
3229
3230         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
3231         DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
3232         refering to a DIE with DW_AT_const_value.
3233
3234 2009-10-07  Vladimir Makarov  <vmakarov@redhat.com>
3235
3236         PR middle-end/22072
3237         * ira-lives.c (check_and_make_def_conflict): Process all operands.
3238
3239 2009-10-06  Jan Hubicka  <jh@suse.cz>
3240
3241         * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
3242         correctly.
3243
3244 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
3245
3246         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
3247         *lea_2_rex64): Move before *add<mode>_1 pattern.
3248
3249 2009-10-07  Jan Hubicka  <jh@suse.cz>
3250
3251         * collect2.c (main): Add -fno-whole-program.
3252         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
3253
3254 2009-10-07  Jan Hubicka  <jh@suse.cz>
3255
3256         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
3257         has no address taken.
3258         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
3259         never needed.
3260         (cgraph_clone_node): Clear externally_visible flag for clones.
3261         * cgraph.h (cgraph_only_called_directly_p,
3262         cgraph_can_remove_if_no_direct_calls_p): New predicates.
3263         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
3264         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
3265         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
3266         ipcp_insert_stage): Likwise.
3267         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
3268         externally_visible flag.
3269         (verify_cgraph_node): Verify that inline clones look right.
3270         (process_function_and_variable_attributes): Do not set
3271         externally_visible flags.
3272         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
3273         been already run.
3274         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
3275         boundaries.
3276         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
3277         clear externally_visible when turning into inline clones
3278         (cgraph_mark_inline_edge): Use new predicates.
3279         (cgraph_estimate_growth): Likewise.
3280         (cgraph_decide_inlining): Likewise.
3281         * ipa.c (cgraph_postorder): Likewise.
3282         (cgraph_remove_unreachable_nodes): Likewise; sanity check
3283         that inline clones are not needed.
3284         (cgraph_externally_visible_p): New predicate.
3285         (function_and_variable_visibility): Add whole_program parameter;
3286         always set externally_visible flag; handle COMDAT function
3287         privatization.
3288         (local_function_and_variable_visibility): New function.
3289         (gate_whole_program_function_and_variable_visibility): New function.
3290         (whole_program_function_and_variable_visibility): New function.
3291         (pass_ipa_whole_program_visibility): New function.
3292         * passes.c  (init_optimization_passes): Add whole program visibility
3293         pass.
3294         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
3295         not care about needed/reachable flags.
3296         * varpool.c: Include flags.h
3297         (decide_is_variable_needed): When doing LTO assume whole-program mode.
3298         (varpool_finalize_decl): When we are in LTO read-back, all variables
3299         are analyzed.
3300         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
3301
3302 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3303
3304         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
3305         add MASK_HARD_DFP.
3306
3307 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3308
3309         * config.gcc: Don't include the makefile fragments intended for
3310         libgcc.
3311         * config/s390/fixdfdi.h: File removed.
3312         * config/s390/libgcc-glibc.ver: File removed.
3313         * config/s390/s390.h: Remove the fixdfdi.h hack.
3314         * config/s390/t-crtstuff: File moved to libgcc dir.
3315         * config/s390/t-linux: Likewise.
3316         * config/s390/t-tpf: libgcc specific parts removed.
3317         * config/s390/t-linux64: Likewise.
3318
3319 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
3320
3321         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
3322         (lto-compress.o): Likewise.
3323
3324 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
3325
3326         PR target/41512
3327         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
3328         dllexport to class members here.
3329         (i386_pe_determine_dllimport_p): Only check static class data for
3330         definition.
3331         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
3332         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
3333         functions for vague linkage.
3334         (i386_pe_type_dllexport_p): Fix formatting.
3335         (maybe_add_dllexport) New function.
3336         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
3337         to class members.
3338
3339 2009-10-07  Ben Elliston  <bje@au.ibm.com>
3340
3341         * config/rs6000/a2.md: Remove duplicated lines.
3342
3343 2009-10-07  Ben Elliston  <bje@au.ibm.com>
3344
3345         * config.gcc (powerpc*-*-*): Handle a2.
3346         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
3347         * config/rs6000/a2.md: New file.
3348         * config/rs6000/rs6000.opt (mno-update): New.
3349         (mupdate): Return to using a mask, not a var.
3350         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
3351         (enum processor_type): Add PROCESSOR_PPCA2.
3352         * config/rs6000/rs6000.c (ppca2_cost): New costs.
3353         (rs6000_override_options): Add "a2" to processor_target_table.
3354         Update rs6000_always_hint logic.  Correctly set rs6000_cost for a2.
3355         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
3356
3357 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
3358
3359         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
3360         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
3361         reference to nonexistent gen_truncxfxf2 function.
3362
3363 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
3364
3365         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
3366         (DWIH, g, di, doubleint_general_operand): New mode attributes.
3367         (general_operand): Handle TI mode.
3368         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
3369         using SDWIM mode iterator.
3370         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
3371         pattern from *add{di,ti}3_1 patterns and corresponding splitters
3372         using DWI mode iterator.
3373         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
3374         patterns using SWI mode iterator.
3375         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
3376         using SWI48 mode iterator.
3377         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
3378         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
3379         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
3380         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
3381         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
3382         using SDWIM mode iterator.
3383         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
3384         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
3385         using DWI mode iterator.
3386         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
3387         patterns using SWI mode iterator.
3388         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
3389         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
3390         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
3391         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
3392         patterns using plusminus code iterator.
3393         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
3394         sub<mode>3 patterns using plusminus code iterator.
3395         * config/i386/i386.c (override_options): Update the call to
3396         gen_subdi_carry_rex64 for renamed function.
3397         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
3398         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
3399         calls to instruction expanders.
3400
3401 2009-10-06  Martin Jambor  <mjambor@suse.cz>
3402
3403         PR bootstrap/41395
3404         * opts.c (decode_options): Run IPA-SRA at -O2.
3405
3406 2009-10-06  Richard Guenther  <rguenther@suse.de>
3407
3408         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
3409
3410 2009-10-06  Tobias Burnus  <burnus@net-b.de>
3411
3412         PR lto/41591
3413         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
3414         -flto and -fwhole-program flags can be combined.
3415
3416 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
3417
3418         PR driver/41217
3419         * gcc.c (process_command): Check that -o argument was specified.
3420
3421 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
3422
3423         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
3424
3425 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3426
3427         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
3428         * doc/invoke.texi (Warning Options): Annotate allowed languages
3429         for -Wunsuffixed-float-constants.
3430
3431 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
3432
3433         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
3434         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
3435         same name and isn't the main variant.
3436
3437         PR debug/41558
3438         * dwarf2out.c (loc_by_reference): Removed.
3439         (dw_loc_list_1): New function.
3440         (dw_loc_list): Remove toplev argument, add want_address argument.
3441         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
3442         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
3443         want_address == 2 to dw_loc_list.  For successful dw_loc_list
3444         set have_address to 1 only if want_address is not 0.
3445
3446 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
3447
3448         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
3449         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
3450         a code block followed by two pointers.
3451         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
3452         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
3453         (MIPS_MOVE): Likewise.
3454         (MIPS_LUI): Likewise.
3455         (MIPS_JR): Likewise.
3456         (MIPS_BAL): Likewise.
3457         (MIPS_NOP): Likewise.
3458         (mips_asm_trampoline_template): Delete.
3459         (mips_trampoline_code_size): New function.
3460         (mips_trampoline_init): Add shorter sequences for all cases
3461         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
3462         Calculate the opcodes directly, rather than copying from a template.
3463         Only flush the code part of the trampoline.
3464         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
3465
3466 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
3467
3468         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
3469         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
3470         (INCOMING_RETURN_ADDR_RTX): Likewise.
3471         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
3472         with AT_REGNUM.
3473         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
3474         with RETURN_ADDR_REGNUM.
3475         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
3476         * config/mips/mips.c (mips16_build_call_stub): Replace
3477         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
3478         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
3479         (mips_print_operand_punctuation): Likewise.
3480         (mips_frame_set): Likewise.
3481         (mips16e_output_save_restore): Likewise.
3482         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
3483         (mips_save_reg_p): Likewise.
3484         (mips_return_addr): Likewise.
3485         (mips_set_return_address): Likewise.
3486         (mips_direct_save_slot_move_p): Likewise.
3487         (mips_output_function_prologue): Likewise.
3488         (mips_restore_reg): Likewise.
3489         (mips_expand_epilogue): Likewise.
3490         (mips_epilogue_uses): Likewise.
3491         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
3492         (*mov<mode>_ra): Use it instead of a hard-coded 31.
3493         (clear_hazard_<mode>): Likewise.
3494         (call_internal): Likewise.
3495         (call_internal_direct): Likewise.
3496         (call_direct_split): Likewise.
3497         (call_value_internal): Likewise.
3498         (call_value_split): Likewise.
3499         (call_value_internal_direct): Likewise.
3500         (call_value_direct_split): Likewise.
3501         (call_value_multiple_internal): Likewise.
3502         (call_value_multiple_split): Likewise.
3503
3504 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
3505             Jakub Jelinek  <jakub@redhat.com>
3506
3507         PR rtl-optimization/41511
3508         * combine.c (record_value_for_reg): Pass explicit values as argument
3509         to get_last_value_validate.
3510         (get_last_value_validate): Document INSN parameter.
3511         For non-readonly MEMs, assume they might have been modified if INSN
3512         was in another basic block.
3513         (get_last_value): Minor reformatting.
3514
3515 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3516
3517         PR tree-opt/40992
3518         * final.c (asm_str_count): Split out from asm_insn_count.
3519         * rtl.h (asm_str_count): New prototype.
3520         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
3521         asm_str_count.
3522
3523 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
3524
3525         * doc/plugins.texi: Change plugin_pass to register_pass_info.
3526
3527 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
3528             Rafael Espindola  <espindola@google.com>
3529
3530         * gengtype.c (write_types): Moved call to write_func_for_structure
3531         into seperate loops.
3532
3533 2009-10-05  Richard Guenther  <rguenther@suse.de>
3534
3535         PR lto/41281
3536         * lto-cgraph.c (output_cgraph): Output toplevel asms.
3537         (input_cgraph_1): Input toplevel asms.
3538
3539 2009-10-05  Richard Guenther  <rguenther@suse.de>
3540
3541         PR lto/40902
3542         * lto-symtab.c (lto_compatible_attributes_p): Remove.
3543         (external_aggregate_decl_p): Likewise.
3544         (lto_symtab_compatible): Re-structure.  Remove dead code.
3545         For variables ignore toplevel qualifiers when comparing types.
3546         Issue warnings, not errors for mismatched user-alignment.
3547
3548 2009-10-05  Richard Guenther  <rguenther@suse.de>
3549
3550         PR lto/41552
3551         PR lto/41487
3552         * lto-symtab.c (struct lto_symtab_base_def): Remove.
3553         (struct lto_symtab_identifier_def): Likewise.
3554         (struct lto_symtab_decl_def): Likewise.
3555         (struct lto_symtab_entry_def): New.
3556         (lto_symtab_identifier_t): Rename to ...
3557         (lto_symtab_entry_t): ... this.
3558         (lto_symtab_decls): Remove.
3559         (lto_symtab_base_hash): Rename to ...
3560         (lto_symtab_entry_hash): ... this.
3561         (lto_symtab_base_eq): Rename to ...
3562         (lto_symtab_entry_eq): ... this.
3563         (lto_symtab_base_marked_p): Rename to ...
3564         (lto_symtab_entry_marked_p): ... this.
3565         (lto_symtab_identifier_marked_p): Remove.
3566         (lto_symtab_decl_marked_p): Likewise.
3567         (lto_symtab_maybe_init_hash_tables): Rename to ...
3568         (lto_symtab_maybe_init_hash_table): ... this.
3569         (lto_symtab_set_resolution_and_file_data): Remove.
3570         (lto_symtab_register_decl): New function.
3571         (lto_symtab_get_identifier): Remove.
3572         (lto_symtab_get): New function.
3573         (lto_symtab_get_resolution): Adjust.
3574         (lto_symtab_get_identifier_decl): Remove.
3575         (lto_symtab_set_identifier_decl): Likewise.
3576         (lto_symtab_merge_decl): Rename to ...
3577         (lto_symtab_merge): ... this.  Rewrite.
3578         (lto_symtab_merge_var): Remove.
3579         (lto_symtab_merge_fn): Likewise.
3580         (lto_symtab_prevailing_decl): Adjust.
3581         (lto_cgraph_replace_node): New function.
3582         (lto_symtab_merge_decls_2): Likewise.
3583         (lto_symtab_merge_decls_1): Likewise.
3584         (lto_symtab_fixup_var_decls): Likewise.
3585         (lto_symtab_resolve_symbols): Likewise.
3586         (lto_symtab_merge_decls): Likewise.
3587         (lto_symtab_prevailing_decl): Adjust.
3588         (lto_symtab_get_symtab_def): Remove.
3589         (lto_symtab_get_file_data): Likewise.
3590         (lto_symtab_clear_resolution): Adjust.
3591         (lto_symtab_clear_resolution): Likewise.
3592         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
3593         (input_cgraph_1): Likewise.
3594         * lto-streamer-in.c (get_resolution): Do not provide fake
3595         symbol resolutions here.
3596         (deferred_global_decls): Remove.
3597         (lto_register_deferred_decls_in_symtab): Likewise.
3598         (lto_register_var_decl_in_symtab): Change signature, register
3599         variable via lto_symtab_register_decl.
3600         (lto_register_function_decl_in_symtab): Likewise.
3601         (lto_read_tree): Adjust.
3602         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
3603         (lto_symtab_merge_var): Likewise.
3604         (lto_symtab_merge_fn): Likewise.
3605         (lto_symtab_register_decl): Declare.
3606         (lto_symtab_merge_decls): Likewise.
3607
3608 2009-10-05  Richard Guenther  <rguenther@suse.de>
3609
3610         PR tree-optimization/23821
3611         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
3612         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
3613         simple IV increments.
3614
3615 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3616
3617         * config/arm/arm.c (arm_override_options): Really initialize
3618         flag_dwarf2_cfi_asm to 0.
3619
3620 2009-10-05  Doug Kwan  <dougkwan@google.com>
3621
3622         PR rtl-optimization/41574
3623         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
3624         floating point and we are not doing unsafe math optimizations.
3625
3626 2009-10-03  Simon Baldwin  <simonb@google.com>
3627             Cary Coutant  <ccoutant@google.com>
3628             Rafael Espindola  <espindola@google.com>
3629             Richard Guenther  <rguenther@suse.de>
3630             Jan Hubicka  <jh@suse.cz>
3631             Doug Kwan <dougkwan@google.com>
3632             H.J. Lu  <hongjiu.lu@intel.com>
3633             Bill Maddox  <maddox@google.com>
3634             Ryan Mansfield  <rmansfield@qnx.com>
3635             Diego Novillo  <dnovillo@google.com>
3636             Ollie Wild  <aaw@google.com>
3637             Kenneth Zadeck <zadeck@naturalbridge.com>
3638
3639         * lto-cgraph.c: New file.
3640         * lto-compress.c: New file.
3641         * lto-compress.h: New file.
3642         * lto-opts.c: New file.
3643         * lto-section-in.c: New file.
3644         * lto-section-out.c: New file.
3645         * lto-streamer-in.c: New file.
3646         * lto-streamer-out.c: New file.
3647         * lto-streamer.c: New file.
3648         * lto-streamer.h: New file.
3649         * lto-symtab.c: New file.
3650         * lto-wpa-fixup.c: New file.
3651         * lto-wrapper.c: New file.
3652
3653 2009-10-03  Simon Baldwin  <baldwin@google.com>
3654             Ben Elliston  <bje@au.ibm.com>
3655             Rafael Espindola  <espindola@google.com>
3656             Nathan Froyd  <froydnj@codesourcery.com>
3657             Jan Hubicka  <jh@suse.cz>
3658             Doug Kwan  <dougkwan@google.com>
3659             Diego Novillo  <dnovillo@google.com>
3660             Kenneth Zadeck  <zadeck@naturalbridge.com>
3661
3662         * Makefile.in (enable_lto): New.
3663         (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
3664         (LINKER_PLUGIN_API_H): Define.
3665         (LTO_SYMTAB_H): Define.
3666         (LTO_STREAMER_H): Define.
3667         (TREE_VECTORIZER_H): Define.
3668         (INCLUDES): Add LIBELFINC.
3669         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
3670         lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
3671         lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
3672         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
3673         (native): Add lto-wrapper$(exeext)
3674         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
3675         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
3676         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
3677         (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
3678         (varasm.o): Add dependency on tree-iterator.h.
3679         (cgraph.o): Add dependency on cif-code.def.
3680         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
3681         (ipa-pure-const.o): Likewise.
3682         (GTFILES): Add lto-symtab.c.
3683         (install-lto-wrapper): New.
3684         * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
3685         and enable_lto.  If LIBELFLIBS is set, define HAVE_libelf.
3686         * config.in: Regenerate.
3687
3688 2009-10-03  Rafael Espindola  <espindola@google.com>
3689             Diego Novillo  <dnovillo@google.com>
3690
3691         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
3692         ipa_write_summaries.
3693         Call execute_ipa_summary_passes for all_regular_ipa_passes and
3694         all_lto_gen_passes.
3695         (cgraph_optimize): Make extern.
3696
3697 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
3698             Kenneth Zadeck <zadeck@naturalbridge.com>
3699
3700         * toplev.c (in_lto_p): Declare.
3701         * collect2.c (scan_prog_file): Read all the output when reading
3702         information for LTO.
3703         (enum lto_mode_d): Declare.
3704
3705 2009-10-03  Richard Guenther  <rguenther@suse.de>
3706             Diego Novillo  <dnovillo@google.com>
3707
3708         * gimple.c: Include target.h and alias.h.
3709         (gimple_types): Declare.
3710         (type_hash_cache): Declare.
3711         (gimple_alloc_stat): Make extern.
3712         (gimple_build_eh_must_not_throw): Call
3713         gimple_eh_must_not_throw_set_fndecl.
3714         (struct type_pair_d): Declare.
3715         (type_pair_t): Declare.
3716         (type_pair_hash): New.
3717         (type_pair_eq): New.
3718         (lookup_type_pair): New.
3719         (gimple_force_type_merge): New.
3720         (compare_type_names_p): New.
3721         (compare_field_offset): New.
3722         (gimple_types_compatible_p): New.
3723         (struct sccs): Declare.
3724         (next_dfs_num): Declare.
3725         (iterative_hash_gimple_type): New.
3726         (visit): New.
3727         (iterative_hash_type_name): New.
3728         (iterative_hash_gimple_type): New.
3729         (gimple_type_hash): New.
3730         (gimple_type_eq): New.
3731         (gimple_register_type): New.
3732         (print_gimple_types_stats): New.
3733         (gimple_signed_or_unsigned_type): New.
3734         (gimple_unsigned_type): New.
3735         (gimple_signed_type): New.
3736         (gimple_get_alias_set): New.
3737         (gimple_decl_printable_name): Do not use DMGL_TYPES.
3738         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
3739         (gimple_force_type_merge): Declare.
3740         (gimple_types_compatible_p): Declare.
3741         (gimple_register_type): Declare.
3742         (print_gimple_types_stats): Declare.
3743         (gimple_unsigned_type): Declare.
3744         (gimple_signed_type): Declare.
3745         (gimple_get_alias_set): Declare.
3746         (gimple_eh_must_not_throw_set_fndecl): New.
3747
3748 2009-10-03  Jan Hubicka  <jh@suse.cz>
3749             Kenneth Zadeck <zadeck@naturalbridge.com>
3750
3751         * ipa-pure-const.c: Include lto-streamer.h.
3752         (register_hooks): Factor out of ...
3753         (generate_summary): ... here.
3754         (pure_const_write_summary): New.
3755         (pure_const_read_summary): New.
3756         (pass_ipa_pure_const): Add pure_const_write_summary and
3757         pure_const_read_summary.
3758         * ipa-reference.c: Include lto-streamer.h.
3759         (add_new_function): New.
3760         (remove_node_data): New.
3761         (duplicate_node_data): New.
3762         (ipa_init): Guard against multiple calls.
3763         Move hook setup from analyze_function.
3764         (write_node_summary_p): New.
3765         (ipa_reference_write_summary): New.
3766         (ipa_reference_read_summary): New.
3767         (pass_ipa_reference): Add ipa_reference_write_summary and
3768         ipa_reference_read_summary.
3769         * cgraph.h (cgraph_local_info): Add field lto_file_data.
3770         (struct cgraph_edge): Add fields lto_stmt_uid and
3771         call_stmt_cannot_inline_p.
3772         (cgraph_optimize): Declare.
3773         (cgraph_decide_is_function_needed): Declare.
3774         (reset_inline_failed): Declare.
3775         (enum LTO_cgraph_tags): Declare.
3776         (LTO_cgraph_tag_names): Declare.
3777         (LCC_NOT_FOUND): Define.
3778
3779 2009-10-03  Doug Kwan  <dougkwan@google.com>
3780             Rafael Espindola  <espindola@google.com>
3781             Jan Hubicka  <jh@suse.cz>
3782             Diego Novillo  <dnovillo@google.com>
3783             Kenneth Zadeck  <zadeck@naturalbridge.com>
3784
3785         * passes.c (all_regular_ipa_passes): New.
3786         (all_ipa_passes): Rename to all_small_ipa_passes.
3787         (init_optimization_passes): Init all_regular_ipa_passes.
3788         * tree-pass.h (all_regular_ipa_passes): New.
3789         (all_ipa_passes): Rename to all_small_ipa_passes.
3790         * passes.c (all_lto_gen_passes): New.
3791         (init_optimization_passes): Initialize all_lto_gen_passes.
3792         (execute_ipa_summary_passes): Make non-static.
3793         (ipa_write_summaries_1): New.
3794         (ipa_write_summaries_2): New.
3795         (ipa_write_summaries): New.
3796         (ipa_write_summaries_of_cgraph_node_set): New.
3797         (ipa_read_summaries_1): New.
3798         (ipa_read_summaries): New.
3799         (execute_ipa_pass_list): Call cgraph_process_new_functions.
3800         (execute_regular_ipa_pass_list): Remove.
3801         (init_optimization_passes): Schedule
3802         pass_rebuild_cgraph_edges and pass_early_inline outside
3803         of pass_all_early_optimizations.  Document reason.
3804         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
3805         pass_ipa_lto_finish_out): New pass.
3806         (pass_ipa_summary_passes): Start and stop timers if the pass has them.
3807         (execute_all_ipa_transforms): New.
3808         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
3809         (dump_properties, debug_properties): New.
3810         * tree-optimize.c (gate_all_early_local_passes): Return
3811         false if we are in lto1.
3812         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
3813         * tree-pass.h (execute_all_ipa_transforms): Declare.
3814         (pass_ipa_function_and_variable_visibility): Declare.
3815         (pass_ipa_early_inline): Declare.
3816         (pass_ipa_lto_gimple_out): Declare.
3817         (pass_ipa_lto_wpa_fixup): Declare.
3818         (pass_ipa_lto_finish_out): Declare.
3819         (all_small_ipa_passes, all_regular_ipa_passes,
3820         all_lto_gen_passes): Declare.
3821         (execute_ipa_summary_passes): Declare.
3822         (execute_all_ipa_transforms): Declare.
3823         (ipa_write_summaries): Declare
3824         (ipa_write_summaries_of_cgraph_node_set): Declare.
3825         (ipa_read_summaries): Declare.
3826
3827 2009-10-03  Doug Kwan  <dougkwan@google.com>
3828             Ollie Wild  <aaw@google.com>
3829
3830         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
3831
3832         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
3833         (lto_mode): New variable.
3834         (maybe_run_lto_and_relink): Handle the -fwpa option.
3835         (main): Handle the -fwpa option.
3836         (maybe_unlink_list): New function.
3837         * gcc.c (link_lto_options): Replace -flto with -fwpa.
3838         * common.opt (flto): New flag.
3839         * toplev.c (flag_generate_lto): Declare.
3840
3841 2009-10-03  Simon Baldwin  <simonb@google.com>
3842
3843         * common.opt (flto-compression-level): New flag.
3844
3845         * opts.c: Include lto-opts.h.
3846         (handle_option): Call lto_register_user_option for each
3847         valid option handled.
3848         (decode_options): Clear registered options before the options
3849         handling loop.
3850
3851 2009-10-03  Cary Coutant  <ccoutant@google.com>
3852
3853         * collect2.c (is_elf): New function.
3854         (scan_prog_file): Require LTO object to be in ELF format.
3855
3856 2009-10-03  Rafael Espindola  <espindola@google.com>
3857
3858         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
3859         libgcc to the linker.
3860
3861         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
3862
3863         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
3864         (collect_execute): Add flags argument. Pass flags to pex_run. Update
3865         all callers.
3866         * collect2.h (collect_execute): Add flags argument.
3867         * tlink.c (tlink_execute): Update call to collect_execute.
3868         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
3869         (use_linker_plugin): New.
3870         (use_linker_plugin_spec_function): New.
3871         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
3872         (linker_plugin_file_spec): New.
3873         (lto_wrapper_spec): New.
3874         (lto_gcc_spec): New.
3875         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
3876         (static_spec_functions): Add use-linker-plugin.
3877         (process_command): Handle -use-linker-plugin.
3878         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
3879         linker_plugin_file_spec and lto_gcc_spec.
3880         (use_linker_plugin_spec_function): New.
3881
3882 2009-10-03  Richard Guenther  <rguenther@suse.de>
3883
3884         PR lto/41547
3885         PR lto/41548
3886         * tree.h (is_lang_specific): Include LANG_TYPE.
3887         * tree.c (find_decls_types_r): Manually add interesting parts
3888         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
3889
3890         * gimple.c (type_pair_hash): Make symmetric.
3891         (type_pair_eq): Likewise.
3892         (lookup_type_pair): Increase initial hashtable size.
3893         (gimple_force_type_merge): Rely on type-pair symmetry.
3894         (visit): Remove excessive checking code.
3895         (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
3896         (gimple_register_type): Remove getenv calls, shrink initial
3897         hashtable size.
3898
3899         PR middle-end/41502
3900         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
3901         inline functions if not generating lto output.
3902
3903         PR lto/41379
3904         * toplev.c (finalize): In WPA mode remove the asm file.
3905
3906 2009-10-03  Doug Kwan  <dougkwan@google.com>
3907
3908         * ipa-inline.c (cgraph_mark_inline): Check
3909         edge->call_stmt_cannot_inline_p instead of calling
3910         gimple_call_cannot_inline_p.
3911         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
3912         (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
3913         (inline_generate_summary): Do nothing in LTRANS.
3914         * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
3915         exists before calling gimple_call_cannot_inline_p.
3916         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
3917         (cgraph_clone_edge): Add argument STMT_UID.  Modify all callers.
3918         Update new_edge->lto_stmt_uid.
3919         * cgraphbuild.c (reset_inline_failed): New.
3920
3921         * common.opt (fwpa): New flag.
3922         (fltrans): New option.
3923         * gcc.c (gcc_lto_option_t): New type.
3924         (current_lto_option): New variable.
3925         (lto_single_spec_function): Remove and is replaced by ..
3926         (lto_option_spec_function): New function.
3927         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
3928         passing the -flto flag.
3929         (cc1_options): Separate non-LTO related parts into ..
3930         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
3931         (lto1_options): New spec for lto FE.
3932         (link_lto_options): New spec for handling LTO flags in linker.
3933         (invoke_lto_single): Re-format to fit in 80 column.  Replace
3934         lto-single with lto-option.
3935         (static_specs): Add cc1_non_lto_options, lto1_options and
3936         link_lto_options.
3937         (static_spec_function): Replace lto-single with lto-option.
3938         (process_command): Handle -flto, -fwpa and -fltran by setting
3939         current_lto_option and not passing it to subprocess unconditionally.
3940
3941 2009-10-03  Bill Maddox  <maddox@google.com>
3942
3943         Add `gcc' driver support for link-time code generation (LTO).
3944
3945         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
3946         (lto_flag, lto_objects, lto_o_file): New variables.
3947         (struct lto_object, struct lto_object_list): New structures.
3948         (collect_exit, handler): Remove LTO temporary output file on exit.
3949         (add_lto_object): New function.
3950         (maybe_run_lto_and_relink): New function. Perform link time code
3951         generation and relinking for object files containing LTO information.
3952         (main): Invoke maybe_run_lto_and_relink().
3953         (dump_argv): New function.  For debugging, currently disabled.
3954         (scan_prog_file): Add LTO information pass.
3955         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
3956         collect2.
3957         * toplev.c (compile_file): Emit assembler directive to create
3958         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
3959
3960 2009-10-03  Diego Novillo  <dnovillo@google.com>
3961
3962         * c.opt: Add LTO to warn_abi and warn_psabi.
3963
3964         * tree.c (fld_worklist_push): Rename from PUSH.  Convert to static
3965         inline function.  Ignore language-specific nodes.  Update all users.
3966         (find_decls_types_r): Do not traverse the subtrees of
3967         language-specific nodes.  Do not traverse DECL_INITIAL for TYPE_DECLs.
3968         * tree.h (is_lang_specific): New.
3969         * langhooks.h (struct lang_hooks_for_decls): Remove
3970         may_need_assembler_name_p.  Update all users.
3971
3972         * c-common.c (set_builtin_user_assembler_name): Move ...
3973         * builtins.c (set_builtin_user_assembler_name): ... here.
3974         (is_builtin_name): Add comment
3975         (is_builtin_fn): New.
3976         * except.c (output_ttype): Only call
3977         lookup_type_for_runtime if TYPE is not a runtime type.
3978
3979         * passes.c (register_pass): Call position_pass on
3980         all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
3981         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
3982         (TV_IPA_LTO_DECL_IO): Define.
3983         (TV_IPA_LTO_CGRAPH_IO): Define.
3984         (TV_LTO): Define.
3985         (TV_WHOPR_WPA): Define.
3986         (TV_WHOPR_WPA_IO): Define.
3987         (TV_WHOPR_LTRANS): Define.
3988         (TV_WHOPR_WPA_FIXUP): Define.
3989         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
3990         * tree-cfg.c (tree_node_can_be_shared): Make extern.
3991         * tree-flow.h (tree_node_can_be_shared): Declare.
3992         * tree-inline.c (tree_can_inline_p): Check that E has a
3993         statement associated with it.
3994         * tree.c (free_lang_data_in_binf): Factor out of ...
3995         (free_lang_data_in_type): ... here.
3996         Call RECORD_OR_UNION_TYPE_P.
3997         (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
3998         set.  Call lang_hooks.decls.may_need_assembler_name_p if set.
3999         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
4000         (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE.  Set
4001         write_symbols to NO_DEBUG.  Set debug_hooks to do_nothing_debug_hooks.
4002         (gate_free_lang_data): Return true if flag_generate_lto is set.
4003         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
4004         * c-common.h (set_builtin_user_assembler_name): Move ...
4005         * tree.h (set_builtin_user_assembler_name): ... here.
4006
4007         * common.opt (flto-report): New flag.
4008         * opts.c (complain_wrong_lang): Do not complain if running lto1.
4009         * collect2.c (scan_prog_file): Send the error output of
4010         'nm' to HOST_BIT_BUCKET.
4011
4012 2009-10-03  Ollie Wild  <aaw@google.com>
4013
4014         * langhooks-def.h (lhd_begin_section): New function declaration.
4015         (lhd_write_section): New function declaration.
4016         (lhd_end_section): New function declaration.
4017         (LANG_HOOKS_BEGIN_SECTION): New macro.
4018         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
4019         (LANG_HOOKS_END_SECTION): New macro.
4020         (LANG_HOOKS_LTO): New macro.
4021         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
4022         * langhooks.c (output.h): Add include.
4023         (saved_section): New static variable.
4024         (lhd_begin_section): New function.
4025         (lhd_write_section_data): New function.
4026         (lhd_end_section): New function.
4027         * langhooks.h (struct lang_hooks_for_lto): New structure.
4028         (struct lang_hooks): Add member lto.
4029         * Makefile.in (langhooks.o): Add dependency on output.h.
4030
4031         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
4032
4033 2009-10-03  Richard Guenther  <rguenther@suse.de>
4034
4035         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
4036         Handle LTO.
4037
4038 2009-10-03  Simon Baldwin  <simonb@google.com>
4039             Richard Guenther  <rguenther@suse.de>
4040             Janis Johnson  <janis187@us.ibm.com>
4041             Doug Kwan  <dougkwan@google.com>
4042             Diego Novillo  <dnovillo@google.com>
4043             Ramana Radhakrishnan  <ramana.r@gmail.com>
4044             Ollie Wild  <aaw@google.com>
4045
4046         * doc/install.texi: Add documentation for libelf and --enable-lto.
4047         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
4048         -flto-report, -flto-compression-level and -use-linker-plugin.
4049         * doc/sourcebuild.texi: Document use of zlib.  Document lto-plugin.
4050         Add section for LTO Testing.
4051
4052 2009-10-02  Cary Coutant  <ccoutant@google.com>
4053
4054         Add support for comdat type sections for DWARF v4.
4055         Merge from dwarf4 branch.
4056
4057         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
4058         (dw_die_ref): Define vector type.
4059         (enum dw_val_class): Add dw_val_class_data8.
4060         (struct dw_val_struct): Add v.val_data8.
4061         (comdat_type_node_ref): New type.
4062         (struct die_struct): Move die_symbol into a union; add new field
4063         die_type_node.  Change all uses.
4064         (comdat_type_node): New type.
4065         (skeleton_chain_node): New type.
4066         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
4067         (comdat_type_list): New variable.
4068         (dwarf_tag_name): Add DW_TAG_type_unit.
4069         (dwarf_attr_name): Add DW_AT_signature.
4070         (add_AT_data8): New function.
4071         (replace_child): New function.
4072         (move_all_children): New function.
4073         (print_signature): New function.
4074         (print_die): Print signature information; add dw_val_class_data8.
4075         (attr_checksum): Support dw_val_class_data8.
4076         (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
4077         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
4078         (checksum_sleb128, checksum_uleb128): New functions.
4079         (checksum_die_context): New function.
4080         (loc_checksum_ordered): New function.
4081         (attr_checksum_ordered): New function.
4082         (struct checksum_attributes): New structure.
4083         (collect_checksum_attributes): New function.
4084         (die_checksum_ordered): New function.
4085         (generate_type_signature): New function.
4086         (same_dw_val_p): Add dw_val_class_data8.
4087         (is_symbol_die): Use new is_declaration_die function.
4088         (is_declaration_die): New function.
4089         (should_move_die_to_comdat): New function.
4090         (clone_die): New function.
4091         (clone_tree): New function.
4092         (clone_as_declaration): New function.
4093         (copy_declaration_context): New function.
4094         (generate_skeleton_ancestor_tree): New function.
4095         (generate_skeleton_bottom_up): New function.
4096         (generate_skeleton): New function.
4097         (remove_child_or_replace_with_skeleton): New function.
4098         (break_out_comdat_types): New function.
4099         (struct decl_table_entry): New type.
4100         (htab_decl_hash): New function.
4101         (htab_decl_eq): New function.
4102         (htab_decl_del): New function.
4103         (copy_ancestor_tree): New function.
4104         (copy_decls_walk): New function.
4105         (copy_decls_for_unworthy_types): New function.
4106         (build_abbrev_table): Don't assert on missing die_symbol when doing
4107         comdat type sections.
4108         (size_of_die): Use DW_FORM_sig8 for external references.  Add
4109         dw_val_class_data8.
4110         (unmark_dies): Don't assert for unmarked dies when doing comdat
4111         type sections.
4112         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
4113         (output_signature): New function.
4114         (output_die): Likewise.
4115         (output_compilation_unit_header): Mark output as DWARF version 3
4116         even if generating DWARF 4.
4117         (output_comdat_type_unit): New function.
4118         (output_line_info): Mark output as DWARF version 3 even if generating
4119         DWARF 4.
4120         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
4121         DWARF-4.
4122         (dwarf2out_end_source_file): Likewise.
4123         (prune_unused_types_walk_attribs): Don't follow references into
4124         comdat type sections.
4125         (prune_unused_types_mark): When generating type units, do not mark
4126         children of non-defining declarations of types; do mark children of
4127         type entries.
4128         (prune_unused_types): Process comdat type sections.
4129         (htab_ct_hash): New function.
4130         (htab_ct_eq): New function.
4131         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
4132         Add a pointer to the line table from type unit entries so
4133         DW_AT_decl_file has meaning.
4134         * varasm.c (default_elf_asm_named_section): Use identifier name as
4135         comdat key instead of lang hook.
4136
4137 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
4138
4139         * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
4140
4141 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
4142
4143         * config/i386/i386.md (SWIM248): New mode iterator.
4144         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
4145         divmodhi4 patterns using SWIM248 macro.
4146         (*divmod<mode>4): Macroize insn_and_split pattern from
4147         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
4148         and their corresponding splitters usign SWIM248 macro.  Split SImode
4149         insn to generate cltd and DImode insn to generate cqto instead of
4150         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
4151         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
4152         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
4153         *divmodsi_noext patterns using SWIM248 macro.
4154         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
4155         udivmodhi4 patterns using SWIM248 macro.
4156         (*udivmod<mode>4): Macroize insn_and_split pattern from
4157         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
4158         corresponding splitters using SWIM248 macro.
4159         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
4160         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
4161
4162 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
4163
4164         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
4165         of zero-sized element is zero-sized regardless of its extent.
4166
4167 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
4168
4169         PR debug/40521
4170         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
4171         * configure: Regenerated.
4172         * config.in: Regenerated.
4173         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
4174         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
4175         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
4176         not emitting .eh_frame, emit .cfi_sections .debug_frame
4177         directive.
4178
4179         PR debug/41404
4180         PR debug/41353
4181         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
4182         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
4183         with '\0'.
4184         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
4185         vars use DECL_RTL with resetting it back to NULL afterwards.
4186         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
4187         rtx_equal_p instead of asserting it is a SYMBOL_REF.
4188         (value_format): For dw_val_class_addr only use DW_FORM_addr if
4189         the attribute type allows it, otherwise use DW_FORM_dataN.
4190         (mem_loc_descriptor): Handle CONST_STRING.
4191         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
4192         Handle MEM with CONST_STRING address using add_AT_string.
4193         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
4194         CONST_STRING for const arrays initialized with a string literal.
4195         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
4196         (dwarf2out_finish): Call resolve_addr.
4197
4198 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
4199             Maxim Kuvyrkov  <maxim@codesourcery.com>
4200
4201         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
4202
4203 2009-10-02  Nick Clifton  <nickc@redhat.com>
4204
4205         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
4206         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
4207
4208 2009-10-01  Jan Hubicka  <jh@suse.cz>
4209
4210         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
4211         (cgraph_create_virtual_clone): Just pass redirect_callers
4212         around.
4213         * cgraph.h (cgraph_clone_node): Update prototype.
4214         * ipa-pure-const.c (self_recursive_p): New function.
4215         (propagate): Use it.
4216         * ipa-inline.c (cgraph_clone_inlined_nodes,
4217         cgraph_decide_recursive_inlining): Update.
4218
4219 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
4220
4221         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
4222         instructions for TARGET_OCTEON.
4223
4224 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4225
4226         * config/arm/arm.c (arm_override_options): Turn off
4227         flag_dwarf2_cfi_asm for AAPCS variants.
4228
4229 2009-10-01  Martin Jambor  <mjambor@suse.cz>
4230
4231         PR middle-end/12392
4232         * tree-sra.c (convert_callers): Do not call
4233         compute_inline_parameters on one caller more than once.
4234
4235 2009-10-01  Nick Clifton  <nickc@redhat.com>
4236
4237         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
4238         an empty string if not already defined.
4239
4240 2009-10-01  Martin Jambor  <mjambor@suse.cz>
4241
4242         PR bootstrap/41395
4243         * tree-sra.c (is_va_list_type): New function.
4244         (find_var_candidates): Call is_va_list_type.
4245         (find_param_candidates): Check that the type or the type pointed
4246         to are not va_list types.
4247
4248 2009-10-01  Martin Jambor  <mjambor@suse.cz>
4249
4250         PR c++/41503
4251         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
4252         DECL_ARTIFICIAL (param_decl) is true.
4253
4254 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
4255
4256         * tree.h (tree_decl_common::lang_flag_8): New.
4257         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
4258         keyword.
4259         * c-common.h (RID_CONSTEXPR): New.
4260
4261 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
4262
4263         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
4264         Use ref-all pointers.
4265         (alpha_gimplify_va_arg): Ditto.
4266
4267 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
4268
4269         PR target/41279
4270         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
4271         before insn counting loop now that BB_END (bb) is counted.  Ensure
4272         the return value isn't zero.
4273
4274 2009-09-30  Nick Clifton  <nickc@redhat.com>
4275
4276         * config.gcc (sh-symbianelf): Replace definition of extra_objs
4277         with separate definitions of c_target_objs and cxx_target_objs.
4278         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
4279         and symbian-base.o.
4280         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
4281         sh_symbian_import_export_class.
4282         * config/sh/sh-protos.h: Fix names of exported symbian functions.
4283         * config/sh/symbian.c: Delete, moving code into...
4284         * config/sh/symbian-base.c: ... here
4285         * config/sh/symbian-c.c: ... and here
4286         * config/sh/symbian-cxx.c: ... and here.
4287
4288 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
4289
4290         PR target/22093
4291         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
4292         of plus RTX into register.
4293
4294 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4295
4296         * doc/install.texi: Linguistic and markup fixes.
4297         (Configuration) <--disable-cpp>: Remove description.
4298         <--enable-maintainer-mode>: Autotools files are affected, too.
4299         <--with-sysroot>: Improve description.
4300         (Building): Bump required GNU make version.
4301
4302 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
4303
4304         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
4305         (x86_64-*-*): Ditto.
4306
4307         * config/i386/fma4intrin.h: New file, provide common x86 compiler
4308         intrinisics for FMA4.
4309         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
4310         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
4311         Add FMA4 check and fma4intrin.h.
4312         * config/i386/i386-c.c(ix86_target_macros_internal): Check
4313         ISA_FLAG for FMA4.
4314         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
4315         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
4316         constant for FMA4 support.
4317         (UNSPEC_FMA4_FMADDSUB): Ditto.
4318         (UNSPEC_FMA4_FMSUBADD): Ditto.
4319         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
4320         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
4321         (ix86_expand_fma4_multiple_memory): Ditto.
4322         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
4323         (OPTION_MASK_ISA_FMA4_UNSET): New.
4324         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
4325         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
4326         (ix86_handle_option): Handle -mfma4.
4327         (isa_opts): Handle -mfma4.
4328         (enum pta_flags): Add PTA_FMA4.
4329         (override_options): Add FMA4 support.
4330         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
4331         (IX86_BUILTIN_VFMADDSD): Ditto.
4332         (IX86_BUILTIN_VFMADDPS): Ditto.
4333         (IX86_BUILTIN_VFMADDPD): Ditto.
4334         (IX86_BUILTIN_VFMSUBSS): Ditto.
4335         (IX86_BUILTIN_VFMSUBSD): Ditto.
4336         (IX86_BUILTIN_VFMSUBPS): Ditto.
4337         (IX86_BUILTIN_VFMSUBPD): Ditto.
4338         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
4339         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
4340         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
4341         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
4342         (IX86_BUILTIN_VFNMADDSS): Ditto.
4343         (IX86_BUILTIN_VFNMADDSD): Ditto.
4344         (IX86_BUILTIN_VFNMADDPS): Ditto.
4345         (IX86_BUILTIN_VFNMADDPD): Ditto.
4346         (IX86_BUILTIN_VFNMSUBSS): Ditto.
4347         (IX86_BUILTIN_VFNMSUBSD): Ditto.
4348         (IX86_BUILTIN_VFNMSUBPS): Ditto.
4349         (IX86_BUILTIN_VFNMSUBPD): Ditto.
4350         (IX86_BUILTIN_VFMADDPS256): Ditto.
4351         (IX86_BUILTIN_VFMADDPD256): Ditto.
4352         (IX86_BUILTIN_VFMSUBPS256): Ditto.
4353         (IX86_BUILTIN_VFMSUBPD256): Ditto.
4354         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
4355         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
4356         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
4357         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
4358         (IX86_BUILTIN_VFNMADDPS256): Ditto.
4359         (IX86_BUILTIN_VFNMADDPD256): Ditto.
4360         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
4361         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
4362         (enum multi_arg_type): New enum for describing the various FMA4
4363         intrinsic argument types.
4364         (bdesc_multi_arg): New table for FMA4 intrinsics.
4365         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
4366         (ix86_expand_multi_arg_builtin): New function for creating FMA4
4367         intrinsics.
4368         (ix86_expand_builtin): Add FMA4 intrinsic support.
4369         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
4370         operand instructions.
4371         (ix86_expand_fma4_multiple_memory): New function to split the
4372         second memory reference from FMA4 instructions.
4373         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
4374         (ssemodesuffixf2s): Ditto.
4375         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
4376         instructions.
4377         (fma4_fmsub<mode>4): Ditto.
4378         (fma4_fnmadd<mode>4): Ditto.
4379         (fma4_fnmsub<mode>4): Ditto.
4380         (fma4_vmfmadd<mode>4): Ditto.
4381         (fma4_vmfmsub<mode>4): Ditto.
4382         (fma4_vmfnmadd<mode>4): Ditto.
4383         (fma4_vmfnmsub<mode>4): Ditto.
4384         (fma4_fmadd<mode>4256): Ditto.
4385         (fma4_fmsub<mode>4256): Ditto.
4386         (fma4_fnmadd<mode>4256): Ditto.
4387         (fma4_fnmsub<mode>4256): Ditto.
4388         (fma4_fmaddsubv8sf4): Ditto.
4389         (fma4_fmaddsubv4sf4): Ditto.
4390         (fma4_fmaddsubv4df4): Ditto.
4391         (fma4_fmaddsubv2df4): Ditto.
4392         (fma4_fmsubaddv8sf4): Ditto.
4393         (fma4_fmsubaddv4sf4): Ditto.
4394         (fma4_fmsubaddv4df4): Ditto.
4395         (fma4_fmsubaddv2df4): Ditto.
4396         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
4397         instructions for intrinsics.
4398         (fma4i_fmsub<mode>4): Ditto.
4399         (fma4i_fnmadd<mode>4): Ditto.
4400         (fma4i_fnmsub<mode>4): Ditto.
4401         (fma4i_vmfmadd<mode>4): Ditto.
4402         (fma4i_vmfmsub<mode>4): Ditto.
4403         (fma4i_vmfnmadd<mode>4): Ditto.
4404         (fma4i_vmfnmsub<mode>4): Ditto.
4405         (fma4i_fmadd<mode>4256): Ditto.
4406         (fma4i_fmsub<mode>4256): Ditto.
4407         (fma4i_fnmadd<mode>4256): Ditto.
4408         (fma4i_fnmsub<mode>4256): Ditto.
4409         (fma4i_fmaddsubv8sf4): Ditto.
4410         (fma4i_fmaddsubv4sf4): Ditto.
4411         (fma4i_fmaddsubv4df4): Ditto.
4412         (fma4i_fmaddsubv2df4): Ditto.
4413         (fma4i_fmsubaddv8sf4): Ditto.
4414         (fma4i_fmsubaddv4sf4): Ditto.
4415         (fma4i_fmsubaddv4df4): Ditto.
4416         (fma4i_fmsubaddv2df4): Ditto.
4417
4418         * doc/invoke.texi (-mfma4): Add documentation.
4419         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
4420
4421 2009-09-29  Richard Henderson  <rth@redhat.com>
4422
4423         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
4424         an edge to the new destination block.
4425
4426 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4427
4428         PR target/41393
4429         * pa.c (hppa_profile_hook): Use
4430         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
4431
4432 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
4433             Alexander Monakov  <amonakov@ispras.ru>
4434
4435         PR target/41365
4436         * config/ia64/predicates.md (not_postinc_destination_operand): New.
4437         (not_postinc_memory_operand): New.
4438         (not_postinc_move_operand): New.
4439         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
4440         (*cmovsi_internal): Ditto.
4441
4442 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
4443
4444         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
4445         restrict issue_rate in first pass when scheduling for register
4446         pressure.
4447
4448 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
4449             Rafael Avila de Espindola  <espindola@google.com>
4450
4451         * gengtype.c (plugin_output): New.
4452         (get_output_file_with_visibility): Return plugin_output for plugins.
4453         (main): Parse and use the -P option.
4454         * gty.texi: Update the command line format.
4455
4456 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
4457
4458         PR debug/41438
4459         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
4460         functions.
4461         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
4462         out if !const_ok_for_output.
4463
4464         PR debug/41474
4465         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
4466         case VAR_LOCATION>: Remove gcc_unreachable ().
4467
4468 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
4469
4470         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
4471         (x86_64-*-*): Ditto.
4472         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
4473         back to smmintrin.h.
4474         * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
4475         * config/i386/x86intrin.h: Remove SSE5.
4476         * config/i386/mmintrin-common.h: Delete file.
4477         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
4478
4479 2009-09-29  Richard Guenther  <rguenther@suse.de>
4480
4481         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
4482         resulting from stack temporaries on STRICT_ALIGNMENT targets.
4483
4484 2009-09-29  Nick Clifton  <nickc@redhat.com>
4485
4486         * function.c (current_function_name): If there is no current
4487         function just return "<none>".
4488
4489 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
4490
4491         * tree-pass.h (register_pass_info): New structure.
4492         (pass_positioning_ops): Move enum from gcc-plugin.h.
4493         (register_pass): New function.
4494         * gcc-plugin.h (plugin_pass): Delete structure.
4495         (pass_positioning_ops): Delete enum.
4496         * plugin.c (regsiter_pass): Delete function.
4497         (position_pass): Delete function.
4498         (added_pass_nodes): Delete variable.
4499         (prev_added_pass_nodes): Delete variable.
4500         (pass_list_node): Delete structure.
4501         * passes.c (make_pass_instance): New function.
4502         (next_pass_1): Change to call make_pass_instance.
4503         (pass_list_node): Move structure from gcc-plugin.h.
4504         (added_pass_nodes): Move variable from plugin.c.
4505         (prev_added_pass_nodes): Move variable from plugin.c.
4506         (position_pass): New function.
4507         (register_pass): New function.
4508
4509 2009-09-28  Easwaran Raman  <eraman@google.com>
4510
4511         * ifcvt.c (noce_try_abs): Recognize pattern and call
4512         expand_one_cmpl_abs_nojump.
4513         * optabs.c (expand_one_cmpl_abs_nojump): New function.
4514         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
4515
4516 2009-09-28  Ian Lance Taylor  <iant@google.com>
4517
4518         PR middle-end/40500
4519         * c-opts.c (c_common_handle_option): Don't set
4520         warn_jump_misses_init for -Wall.
4521         * doc/invoke.texi (Warning Options): Update documentation.
4522
4523 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4524
4525         * Makefile.in ($(out_object_file)): Depend on
4526         gt-$(basename $(notdir $(out_file))).h.
4527
4528 2009-09-28  Richard Henderson  <rth@redhat.com>
4529
4530         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
4531         * except.c (gen_eh_region): Set it.
4532         (duplicate_eh_regions_1): Copy it.
4533         * tree-eh.c (lower_resx): Use it to determine which function
4534         to call to resume.
4535
4536         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
4537         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
4538         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
4539         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
4540         BUILT_IN_CXA_END_CLEANUP if necessary.
4541
4542         * c-common.c (c_define_builtins): Update call to
4543         build_common_builtin_nodes.
4544
4545 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4546
4547         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
4548
4549 2009-09-28  Michael Matz  <matz@suse.de>
4550
4551         * builtins.c (interclass_mathfn_icode): New helper.
4552         (expand_builtin_interclass_mathfn): Use it here, and split folding
4553         into ...
4554         (fold_builtin_interclass_mathfn): ... this new folder.
4555         (build_call_nofold_loc): New static helper.
4556         (build_call_nofold): New wrapper macro for above.
4557         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
4558         (expand_builtin_pow): Ditto.
4559         (expand_builtin_memset_args): Ditto.
4560         (expand_builtin_printf): Ditto.
4561         (expand_builtin_fprintf): Ditto.
4562         (expand_builtin_sprintf): Ditto.
4563         (expand_builtin_memory_chk): Ditto.
4564         (expand_builtin_mempcpy_args): Ditto and don't call folders.
4565         (expand_builtin_stpcpy): Ditto.
4566         (expand_builtin_strcmp): Ditto.
4567         (expand_builtin_strncmp): Ditto.
4568         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
4569         (expand_builtin_strcpy_args): Don't call folders.
4570         (expand_builtin_memcmp): Ditto.
4571         (expand_builtin_strncpy): Ditto, and use target.
4572         (expand_builtin_memcpy): Ditto.
4573         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
4574         expand_builtin_strpbrk, expand_builtin_memmove,
4575         expand_builtin_memmove_args, expand_builtin_bcopy,
4576         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
4577         expand_builtin_strspn, expand_builtin_strcspn,
4578         expand_builtin_fputs): Remove these.
4579         (expand_builtin): Don't call the above, change calls to other
4580         expanders that changed prototype.
4581         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
4582         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
4583         fold_builtin_interclass_mathfn.
4584         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
4585         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
4586
4587         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
4588         * passes.c (init_optimization_passes): Move pass_fold_builtins
4589         after last phiopt pass.
4590         * tree-inline.c (fold_marked_statements): When folding builtins
4591         iterate over all instruction potentially generated.
4592         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
4593         earlier.
4594         (fold_gimple_call): Use it to always fold calls (into potentially
4595         multiple instructions).
4596         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
4597         calls into zero at this time.
4598         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
4599         statements generated by builtin folding.
4600
4601 2009-09-28  Nick Clifton  <nickc@redhat.com>
4602
4603         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
4604
4605 2009-09-28  Duncan Sands  <baldrick@free.fr>
4606
4607         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
4608         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
4609         (register_callback): Dispatch it.
4610         (invoke_plugin_callbacks): Incorporate in sanity check.
4611         * ggc.h (ggc_register_cache_tab): Add declaration.
4612         * ggc-common.c (ggc_register_root_tab): Simplify.
4613         (const_ggc_cache_tab_t): New typedef.
4614         (extra_cache_vec): New vector of dynamically added cache tables.
4615         (ggc_register_cache_tab): New function.
4616         (ggc_scan_cache_tab): New function.
4617         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
4618         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
4619
4620 2009-09-27  Richard Henderson  <rth@redhat.com>
4621
4622         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
4623         which we remove __builtin_stack_restore.
4624
4625 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
4626
4627         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
4628         to test for GRD_INVARIANT.
4629         (simple_rhs_p): Anything that's function_invariant_p is fine.
4630
4631 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
4632
4633         * gengtype.c (main): Use plunge_files instead of plugin_output.
4634
4635 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
4636             Rafael Avila de Espindola  <espindola@google.com>
4637
4638         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
4639         Don't print pch related info if it is false.
4640         (main): Don't print pch info in plugin mode.
4641
4642 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
4643
4644         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
4645         with dw_val_class_const_double.
4646         (struct dw_val_struct): Replace val_long_long with val_double and
4647         adjust for above change.
4648         (output_loc_operands): Likewise.
4649         (add_AT_long_long): Rename into...
4650         (add_AT_double): ...this.
4651         (print_die): Replace dw_val_class_long_long with
4652         dw_val_class_const_double and adjust.
4653         (attr_checksum): Likewise.
4654         (same_dw_val_p): Likewise.
4655         (size_of_die): Likewise.
4656         (value_format): Likewise.
4657         (output_die): Likewise.
4658         (loc_descriptor) <CONST_DOUBLE>: Likewise.
4659         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
4660         instead of add_AT_long_long.
4661         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
4662         value with the precision of its type.
4663
4664 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
4665
4666         PR c/41476
4667         * c-typeck.c (build_conditional_expr): Use the readonly and
4668         volatile flags of the operand types, not of the operands itself.
4669
4670 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
4671
4672         * collect2.c (main): Look for -brtl before adding libraries.
4673
4674 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
4675
4676         * config.gcc: Update OpenBSD targets.
4677         * config/openbsd-stdint.h: New file.
4678         * config/openbsd-libpthread.h: New file.
4679         * config/openbsd.h: Update and break out LIB_SPEC definition.
4680         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
4681         * config/i386/openbsdelf.h: Correct types.
4682         * config/m68k/openbsd.h: Likewise.
4683         * config/mips/openbsd.h: Likewise.
4684         * config/vax/openbsd.h: Likewise.
4685
4686 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
4687
4688         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
4689         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
4690         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
4691         of the length and zero.
4692
4693 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4694
4695         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
4696         (FLAGS_H): Add options.h $(REAL_H).
4697         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
4698         (TREE_VECTORIZER_H): New.
4699         (EBITMAP_H): Renamed from EBIMAP_H.
4700         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
4701         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
4702         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
4703         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
4704         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
4705         (graphite-clast-to-gimple.o, graphite-dependences.o)
4706         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
4707         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
4708         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
4709         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
4710         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
4711         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
4712         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
4713         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
4714         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
4715         updated and fixed as per above changes and per
4716         check_makefile_deps.sh output.
4717
4718         PR bootstrap/40928
4719         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
4720         * configure: Regenerate.
4721
4722 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4723
4724         * doc/install.texi: Update minimum MPC version to 0.7.
4725
4726 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
4727
4728         * doc/install.texi (Binaries): Remove reference to the binary
4729         distribution CD-ROM from the FSF.
4730
4731 2009-09-26  Michael Matz  <matz@suse.de>
4732
4733         PR lto/40758
4734         PR middle-end/41470
4735         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
4736         that are mentioned in the body.
4737
4738 2009-09-26  Michael Matz  <matz@suse.de>
4739
4740         PR tree-optimization/41454
4741         * tree-ssa-dom (stmts_to_rescan): Remove variable.
4742         (tree_ssa_dominator_optimize): Don't allocate and free it.
4743         (dom_opt_leave_block): Don't iterate over it.
4744         (eliminate_redundant_computations): Don't return a value.
4745         (cprop_operand, cprop_into_stmt): Ditto.
4746         (optimize_stmt): Don't defer updating stmts.
4747
4748 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
4749
4750         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
4751         generic_parameter_die, template_parameter_pack_die,
4752         gen_formal_parameter_die, gen_subprogram_die): Adjust after
4753         renaming DW_TAG_formal_parameter_pack and
4754         DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
4755         and DW_TAG_GNU_template_parameter_pack.
4756
4757 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
4758
4759         * config/v850/v850.h (FUNCTION_VALUE): Remove.
4760         * config/v850/v850.c (v850_function_value): New function.
4761         (TARGET_FUNCTION_VALUE): Define.
4762
4763 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
4764
4765         * tree-vect-stmts.c (vectorizable_call): Call
4766         mark_symbols_for_renaming after vect_finish_stmt_generation.
4767
4768         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
4769         to loc_descriptor_from_tree.
4770         (add_location_or_const_value_attribute): Pass 0 instead of 2
4771         for decl_by_reference_p decls.
4772
4773 2009-09-25  Richard Guenther  <rguenther@suse.de>
4774
4775         PR middle-end/41463
4776         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
4777         arrays again.
4778
4779 2009-09-25  Ben Elliston  <bje@au.ibm.com>
4780
4781         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
4782         after `power7'.
4783
4784 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
4785
4786         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
4787         form of instruction.
4788
4789 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4790
4791         PR middle-end/41435
4792         * fold-const.c (const_binop): Handle complex int division.
4793         * tree-complex.c (expand_complex_div_straight,
4794         expand_complex_div_wide): Update comments.
4795
4796 2009-09-24  DJ Delorie  <dj@redhat.com>
4797
4798         PR target/41456
4799         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
4800         (reg_class): Likewise.
4801         (REG_CLASS_NAMES): Likewise.
4802         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
4803         (m32c_override_options): Disable -fivopts for M32C.
4804
4805 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4806
4807         * config/rs6000/predicates.md (indexed_or_indirect_operand):
4808         Delete VSX load/store with update support.
4809         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
4810         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
4811         (vsx_movti): Ditto.
4812         (VSX_U): Delete.
4813         (VSbit): Ditto.
4814         (VStype_load_update): Ditto.
4815         (VStype_store_update): Ditto.
4816         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
4817         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
4818
4819         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
4820         load/store with update builtins.
4821
4822 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
4823
4824         * libgcc2.c (L_trampoline): Prototype for getpagesize
4825         and mprotect in WINNT case.
4826
4827 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
4828
4829         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
4830         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
4831         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
4832         'outgoing' argument.
4833         (TARGET_FUNCTION_VALUE): Define.
4834
4835 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
4836
4837         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
4838
4839 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
4840
4841         PR bootstrap/41405
4842         * common.opt: Initialize dwarf_strict to -1.
4843         * toplev.c (process_options): Catch unset dwarf_strict
4844         and set to 0 for all targets not overriding.
4845         * config/darwin.c (darwin_override_options): Catch unset
4846         dwarf_strict and override to 1.
4847
4848 2009-09-24  Jeff Law  <law@redhat.com>
4849
4850         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
4851
4852 2009-09-24  Richard Guenther  <rguenther@suse.de>
4853
4854         PR tree-optimization/36143
4855         PR tree-optimization/38747
4856         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
4857         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
4858
4859 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
4860
4861         PR bootstrap/41457
4862         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
4863         return false instead of gcc_unreachable ().  For CONST return the
4864         value returned by recursive call instead of always returning true.
4865         (tree_add_const_value_attribute): Return the value returned by
4866         add_const_value_attribute instead of always returning true if rtl
4867         is non-NULL.
4868
4869 2009-09-23  Justin Seyster  <jrseys@gmail.com>
4870
4871         * Makefile.in (PLUGIN_HEADERS): Include real.h.
4872
4873 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
4874
4875         * cgraphunit.c (cgraph_lower_function): Revert last change.
4876         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
4877         instead of DECL_NO_STATIC_CHAIN.
4878         * tree-cfg.c (verify_gimple_call): Likewise.
4879         * tree-nested.c (get_chain_decl, get_chain_field,
4880         convert_tramp_reference_op, convert_gimple_call): Likewise.
4881         (convert_all_function_calls): Likewise.  Always set or clear
4882         DECL_STATIC_CHAIN initially, for !n->outer clear it.
4883         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
4884         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
4885         if nested.
4886         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
4887         DECL_NO_STATIC_CHAIN.
4888         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
4889         instead of DECL_NO_STATIC_CHAIN.
4890         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
4891         decl_function_context.
4892         * varasm.c (initializer_constant_valid_p): Likewise.
4893         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
4894         (DECL_STATIC_CHAIN): ... this.
4895         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
4896         instead of DECL_NO_STATIC_CHAIN.
4897
4898 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
4899             Rafael Avila de Espindola  <espindola@google.com>
4900
4901         * gengtype.c (nb_plugin_files): Make it unsigned to match
4902         num_gt_files. Adjust other variables to avoid warnings.
4903         (main): Allocate an all zero lang_bitmap before each plugin file name
4904         to match regular file names.
4905
4906 2009-09-23  Richard Henderson  <rth@redhat.com>
4907
4908         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
4909         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
4910         static chain passed in memory.
4911         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
4912         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
4913         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
4914         STATIC_CHAIN_REGNUM defined.
4915
4916         * config/picochip/picochip-protos.h: s/class/klass/.
4917         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
4918         (picochip_static_chain): New.
4919         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
4920         (STATIC_CHAIN_INCOMING): Remove.
4921
4922         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
4923         (xtensa_static_chain): New.
4924         * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
4925         (STATIC_CHAIN_INCOMING): Remove.
4926
4927 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
4928
4929         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
4930         * config/pa/pa-protos.h (function_value): Remove.
4931         * config/pa/pa.c (pa_function_value): Rename from function_value.
4932         Make static, add 'outgoing' argument.
4933         (TARGET_FUNCTION_VALUE): Define.
4934
4935 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
4936
4937         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
4938         instead of cfun->machine->is_leaf.
4939         * config/avr/avr.h (machine_function): Remove is_leaf field.
4940
4941 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
4942
4943         PR debug/41439
4944         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
4945         DW_OP_piece after DW_OP_stack_value, adjust size calculations
4946         for it, when DW_OP_stack_value and DW_OP_implicit_value has
4947         the same size, prefer DW_OP_stack_value.
4948         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
4949         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
4950
4951 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
4952
4953         PR debug/41353
4954         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
4955
4956 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
4957
4958         PR debug/41248
4959         * cfgexpand.c (convert_debug_memory_address): New.
4960         (expand_debug_expr): Convert base address and offset to the same
4961         mode.  Use it to convert addresses to other modes.  Accept
4962         ptr_mode addresses.
4963
4964 2009-09-23  Richard Guenther  <rguenther@suse.de>
4965
4966         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
4967         produced for bigendian targets with promoted subregs.
4968
4969 2009-09-23  Richard Guenther  <rguenther@suse.de>
4970
4971         * value-prof.c (gimple_ic): Purge old EH edges only after building
4972         the new ones.
4973
4974 2009-09-23  Nick Clifton  <nickc@redhat.com>
4975
4976         * config/arc/arc.c (arc_trampoline_init): Fix typo.
4977
4978 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
4979
4980         PR bootstrap/41405
4981         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
4982
4983         PR bootstrap/41436
4984         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
4985         on non-nested functions.
4986
4987 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
4988             Jan Hubicka  <jh@suse.cz>
4989
4990         * dwarf2out.c (loc_list_plus_const): Only define if
4991         DWARF2_DEBUGGING_INFO.
4992         (address_of_int_loc_descriptor): Likewise.
4993
4994         PR debug/41411
4995         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
4996
4997 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
4998
4999         PR c/39779
5000         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
5001         constant is more than zero.
5002
5003 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
5004
5005         PR target/40473
5006         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
5007         call final to emit non-scheduled prologue, instead insert at entry.
5008
5009 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
5010             Joseph S. Myers  <joseph@codesourcery.com>
5011
5012         * doc/install.texi (*-*-freebsd*): Add proper format codes.
5013
5014 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
5015             Rafael Avila de Espindola  <espindola@google.com>
5016
5017         * gengtype.c (is_file_equal): New function.
5018         (close_output_files): Use is_file_equal. Free of->buf.
5019
5020 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
5021             Rafael Avila de Espindola  <espindola@google.com>
5022
5023         * gengtype.c (write_types, write_local): Add the output_header
5024         argument. Update all callers.
5025
5026 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
5027
5028         * dwarf2out.c (template_parameter_pack_die,
5029         gen_formal_parameter_pack_die ): New functions.
5030         (make_ith_pack_parameter_name): Remove this function.
5031         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
5032         DW_TAG_formal_parameter_pack.
5033         (gen_generic_params_dies): Represent each template parameter pack
5034         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
5035         represented by usual DW_TAG_template_*_parameter DIEs that are
5036         children of the DW_TAG_template_parameter_pack element DIE.
5037         (generic_parameter_die): This doesn't deal with parameter pack
5038         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
5039         of parameter pack DIEs.
5040         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
5041         in certain cases, e.g. for pack elements.
5042         (gen_formal_types_die, gen_decl_die): Adjust usage of
5043         gen_formal_parameter_die.
5044         (gen_subprogram_die): Represent each function parameter pack by a
5045         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
5046         represented by usual DW_TAG_formal_parameter DIEs that are children
5047         of the DW_TAG_formal_parameter_pack DIE. Remove references to
5048         ____builtin_va_alist decls as no part of the compiler uses those
5049         anymore.
5050         * langhooks.h (struct lang_hooks_for_decls): Add
5051         function_parm_expanded_from_pack_p, get_generic_function_decl
5052         and function_parameter_pack_p hooks.  Fix comment for
5053         get_innermost_generic_parms hook.
5054         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
5055         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
5056         macros and use them to initialize lang_hook.
5057
5058 2009-09-22  Richard Henderson  <rth@redhat.com>
5059
5060         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
5061         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
5062         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
5063         on TRAMPOLINE_TEMPLATE.
5064         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
5065         TRAMPOLINE_ADJUST_ADDRESS.
5066         * targhooks.c (default_asm_trampoline_template): Remove.
5067         (default_trampoline_adjust_address): Remove.
5068         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
5069         * targhooks.h: Update decls.
5070
5071 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
5072
5073         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
5074         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
5075         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
5076
5077 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
5078
5079         PR debug/41295
5080         * reload1.c (reload): Reset debug insns with pseudos without
5081         equivalences.
5082
5083 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
5084
5085         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
5086         unconditional true for decimal float modes.
5087         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
5088         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
5089
5090 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
5091
5092         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
5093         Enable a new case for __FreeBSD__ >= 7.
5094         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
5095         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
5096         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
5097         and USE_LD_AS_NEEDED.
5098
5099         * doc/install.texi (*-*-freebsd*): Update target information.
5100
5101 2009-09-22  Richard Guenther  <rguenther@suse.de>
5102
5103         PR middle-end/41395
5104         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
5105         arrays really properly.
5106
5107 2009-09-22  Richard Henderson  <rth@redhat.com>
5108
5109         PR target/41246
5110         * target.h (struct gcc_target): Add asm_out.trampoline_template,
5111         calls.static_chain, calls.trampoline_init,
5112         calls.trampoline_adjust_address.
5113         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5114         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
5115         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
5116         * builtins.c (expand_builtin_setjmp_receiver): Use
5117         targetm.calls.static_chain; only clobber registers.
5118         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
5119         set up memory attributes properly for the trampoline block.
5120         (expand_builtin_adjust_trampoline): Use
5121         targetm.calls.trampoline_adjust_address.
5122         * calls.c (prepare_call_address): Add fndecl argument.  Use
5123         targetm.calls.static_chain.
5124         * df-scan.c (df_need_static_chain_reg): Remove.
5125         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
5126         consolodate static chain handling.
5127         * doc/tm.texi: Document new hooks.
5128         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
5129         (init_emit_regs): Don't initialize them.
5130         * expr.h (prepare_call_address): Update decl.
5131         * final.c (profile_function): Use targetm.calls.static_chain.
5132         * function.c (expand_function_start): Likewise.
5133         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
5134         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
5135         only clobber registers.
5136         * targhooks.c (default_static_chain): New.
5137         (default_asm_trampoline_template, default_trampoline_init): New.
5138         (default_trampoline_adjust_address): New.
5139         * targhooks.h: Declare them.
5140         * varasm.c (assemble_trampoline_template): Use
5141         targetm.asm_out.trampoline_template.  Make the memory block const
5142         and set its size.
5143
5144         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
5145         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
5146         differences into the TARGET_ABI_OPEN_VMS code block.
5147         (TARGET_TRAMPOLINE_INIT): New.
5148         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
5149         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
5150         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
5151         (INITIALIZE_TRAMPOLINE): Remove.
5152
5153         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
5154         (TRAMPOLINE_TEMPLATE): Merge with ...
5155         (INITIALIZE_TRAMPOLINE): ... this and move ...
5156         * config/arc/arc.c (arc_trampoline_init): ... here.
5157         (TARGET_TRAMPOLINE_INIT): New.
5158
5159         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5160         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
5161         (arm_asm_trampoline_template): New.
5162         (arm_trampoline_init, arm_trampoline_adjust_address): New.
5163         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
5164         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
5165         code to arm_asm_trampoline_template.
5166         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
5167         arm_trampoline_adjust_address.
5168         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
5169         adjust for target hook parameters.
5170
5171         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
5172         Remove.
5173
5174         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
5175         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
5176         (bfin_trampoline_init): Rename from initialize_trampoline;
5177         make static; update for target hook parameters.
5178         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
5179         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
5180         bfin_asm_trampoline_template.
5181         (INITIALIZE_TRAMPOLINE): Remove.
5182
5183         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
5184         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
5185         cris_trampoline_init): New.
5186         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
5187         cris_asm_trampoline_template.
5188         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
5189         adjust for target hook parameters.
5190
5191         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
5192
5193         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
5194         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
5195         fr30_trampoline_init): New.
5196         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
5197         fr30_asm_trampoline_template.
5198         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
5199         adjust for target hook parameters.
5200
5201         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
5202         (frv_trampoline_init): Rename from frv_initialize_trampoline;
5203         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
5204         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
5205         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
5206
5207         * config/h8300/h8300.c (h8300_trampoline_init): New.
5208         (TARGET_TRAMPOLINE_INIT): New.
5209         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
5210         to h8300_trampoline_init and adjust for hook parameters.
5211
5212         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
5213         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
5214         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
5215         make static; adjust for hook parameters.
5216         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
5217
5218         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5219         (TARGET_TRAMPOLINE_INIT): New.
5220         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
5221         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
5222         iq2000_asm_trampoline_template.
5223         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
5224         (TRAMPOLINE_CODE_SIZE): New.
5225         (TRAMPOLINE_SIZE): Use it.
5226         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
5227
5228         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
5229         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
5230         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
5231         adjust for hook parameters.
5232         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
5233
5234         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
5235         (m32r_trampoline_init): New.
5236         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
5237         m32r_trampoline_init.
5238
5239         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
5240         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
5241         make static; update for hook parameters.
5242         * config/m68hc11/m68hc11-protos.h: Update.
5243         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
5244
5245         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5246         (TARGET_TRAMPOLINE_INIT): New.
5247         (mcore_function_value): Fix typo.
5248         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
5249         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
5250         to mcore_asm_trampoline_template.
5251         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
5252
5253         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
5254         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
5255         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
5256         update for hook parameters.
5257         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
5258
5259         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
5260         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
5261         mips_trampoline_init): New.
5262         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
5263         mips_asm_trampoline_template.
5264         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
5265         update for hook parameters.
5266
5267         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5268         (TARGET_TRAMPOLINE_INIT): New.
5269         (mmix_trampoline_size): Remove.
5270         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
5271         make static.  Remove out-of-date tetra vs octa comment.
5272         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
5273         make static; update for hook parameters.
5274         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
5275         (INITIALIZE_TRAMPOLINE): Remove.
5276         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
5277         (TRAMPOLINE_ALIGNMENT): New.
5278         * gcc/config/mmix/mmix-protos.h: Update.
5279
5280         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
5281         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
5282         mn10300_trampoline_init): New.
5283         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
5284         mn10300_asm_trampoline_template.
5285         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
5286
5287         * config/moxie/moxie.c (moxie_static_chain,
5288         moxie_asm_trampoline_template, moxie_trampoline_init,
5289         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
5290         TARGET_TRAMPOLINE_INIT): New.
5291         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
5292         moxie_trampoline_init.
5293         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
5294         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
5295
5296         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
5297         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
5298         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
5299         pa_trampoline_adjust_address): New.
5300         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
5301         pa_asm_trampoline_template.
5302         (TRAMPOLINE_ALIGNMENT): New.
5303         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
5304         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
5305         adjust for hook parameters.
5306         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
5307
5308         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
5309         (TARGET_TRAMPOLINE_INIT): New.
5310         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
5311         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
5312
5313         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
5314
5315         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
5316         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
5317         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
5318         make static; adjust parameters for the hook.
5319         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
5320
5321         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
5322         s390_trampoline_template; make static.
5323         (s390_trampoline_init): Rename from s390_initialize_trampoline;
5324         make static; adjust for target hook.
5325         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
5326         * config/s390/s390-protos.h: Remove trampoline decls.
5327         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
5328         (TRAMPOLINE_TEMPLATE): Remove.
5329         (TRAMPOLINE_ALIGNMENT): New.
5330
5331         * config/score/score-protos.h (score_initialize_trampoline): Remove.
5332         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5333         (TARGET_TRAMPOLINE_INIT): New.
5334         (score_asm_trampoline_template): New.
5335         (score_trampoline_init): Rename from score_initialize_trampoline;
5336         make static; adjust for hook parameters.
5337         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
5338         score[37]_asm_trampoline_template.
5339         (INITIALIZE_TRAMPOLINE): Remove.
5340         * config/score/score3.c (score3_asm_trampoline_template): New.
5341         (score3_trampoline_init): Rename from score3_initialize_trampoline;
5342         adjust for target hook.
5343         * config/score/score7.c (score7_asm_trampoline_template): New.
5344         (score7_trampoline_init): Rename from score7_initialize_trampoline;
5345         adjust for target hook.
5346         * config/score/score3.h, config/score/score7.h: Update.
5347
5348         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
5349         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
5350         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
5351         (sh_trampoline_init): Rename from sh_initialize_trampoline;
5352         make static; adjust for target hook parameters.
5353         (sh_trampoline_adjust_address): New.
5354         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
5355         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
5356
5357         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
5358         (sparc32_initialize_trampoline): Rename from
5359         sparc_initialize_trampoline; make static; replace tramp parameter
5360         with m_tramp and update memory accesses.
5361         (sparc64_initialize_trampoline): Similarly.
5362         (sparc_trampoline_init): New.
5363         * config/sparc/sparc-protos.h: Remove trampoline decls.
5364         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
5365         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
5366
5367         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
5368         (array_to_constant): Make ARR parameter const.
5369         (spu_trampoline_init): Rename from spu_initialize_trampoline;
5370         make static; update for hook parameters.
5371         * config/spu/spu-protos.h: Update decls.
5372         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
5373
5374         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
5375         from xstormy16_initialize_trampoline; make static; update for
5376         hook parameters.
5377         (TARGET_TRAMPOLINE_INIT): New.
5378         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
5379
5380         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5381         (TARGET_TRAMPOLINE_INIT): New.
5382         (v850_can_eliminate): Make static.
5383         (v850_asm_trampoline_template, v850_trampoline_init): New.
5384         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
5385         v850_asm_trampoline_template.
5386         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
5387         and adjust for target hook parameters.
5388
5389         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5390         (TARGET_TRAMPOLINE_INIT): New.
5391         (vax_asm_trampoline_template, vax_trampoline_init): New.
5392         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
5393         vax_asm_trampoline_template.
5394         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
5395
5396         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5397         (TARGET_TRAMPOLINE_INIT): New.
5398         (xtensa_asm_trampoline_template): Rename from
5399         xtensa_trampoline_template; make static.
5400         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
5401         make static; update for hook parameters.
5402         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
5403         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
5404         (INITIALIZE_TRAMPOLINE): Remove.
5405
5406         * config/i386/i386.c (ix86_function_regparm): Do not issue an
5407         error for nested functions with regparm=3.
5408         (ix86_compute_frame_layout): Adjust frame pointer offset for
5409         ix86_static_chain_on_stack.
5410         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
5411         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
5412         don't reset to UNITS_PER_WORD.
5413         (ix86_emit_leave): Adjust ix86_cfa_state.
5414         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
5415         (ix86_static_chain): New.
5416         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
5417         make static; update for target hook parameters; use ix86_static_chain.
5418         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
5419         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
5420         (INITIALIZE_TRAMPOLINE): Remove.
5421         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
5422         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
5423         to the end.  Add static_chain_on_stack.
5424         (ix86_static_chain_on_stack): New.
5425
5426         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
5427         (m68k_output_mi_thunk): Don't use static_chain_rtx.
5428         (m68k_trampoline_init): New.
5429         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
5430         m68k_trampoline_init and adjust for hook parameters.
5431         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
5432         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
5433
5434 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
5435
5436         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
5437         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
5438
5439         * reload1.c (reload): Call wrap_constant when substituting
5440         reg for equiv inside of DEBUG_INSNs.
5441
5442         PR bootstrap/41405
5443         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
5444         add_call_src_coords_attributes, add_high_low_attributes,
5445         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
5446         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
5447         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
5448         when -gdwarf-2 -gstrict-dwarf.
5449         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
5450         -gdwarf-[23] -gstrict-dwarf.
5451         (address_of_int_loc_descriptor, loc_descriptor,
5452         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
5453         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
5454         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
5455
5456 2009-09-22  Richard Guenther  <rguenther@suse.de>
5457
5458         PR tree-optimization/41428
5459         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
5460         (ccp_finalize): Pass it to substitute_and_fold.
5461
5462 2009-09-22  Richard Guenther  <rguenther@suse.de>
5463
5464         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
5465         (substitute_and_fold): Adjust prototype.
5466         * tree-vrp.c (vrp_evaluate_conditional): Make static.
5467         (simplify_stmt_using_ranges): Likewise.
5468         (fold_predicate_in): Move here from tree-ssa-propagate.c.
5469         (vrp_fold_stmt): New function.
5470         (vrp_finalize): Pass it to substitute_and_fold.
5471         * tree-flow.h (vrp_evaluate_conditional): Remove.
5472         (simplify_stmt_using_ranges): Likewise.
5473         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
5474         * tree-ssa-copy.c (fini_copy_prop): Likewise.
5475         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
5476         member.
5477         (fold_predicate_in): Move to tree-vrp.c.
5478         (substitute_and_fold): Use the callback instead of calling into
5479         tree-vrp.c functions directly.
5480
5481 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
5482
5483         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
5484         comparison warning on rs6000.
5485
5486         PR middle-end/41429
5487         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
5488         GIMPLE_EH_MUST_NOT_THROW cleanup.
5489         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
5490
5491 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
5492
5493         PR middle-end/41260
5494         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
5495         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
5496         LIB_SPEC for darwin10 and later since it always uses the unwinder in
5497         libSystem which is derived from the gcc 4.2.1 unwinder.
5498
5499 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
5500
5501         PR middle-end/41357
5502         * varasm.c (default_encode_section_info): Copy TLS model into
5503         sym_ref flags regardless of backend support for TLS, for all
5504         model types except TLS_MODEL_EMULATED.
5505
5506 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
5507
5508         PR bootstrap/41404
5509         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
5510         we can handle it correctly.
5511
5512 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
5513
5514         * doc/install.texi (os2): Remove section.
5515
5516 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
5517
5518         * doc/standards.texi (Objective-C): Adjust two URLs.
5519
5520 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
5521
5522         * tree-tailcall.c (process_assignment): Don't check if a
5523         multiplication or an addition are already present.
5524         (find_tail_calls): Combine multiple additions and multiplications.
5525         (adjust_accumulator_values): Emit accumulators.
5526
5527 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
5528
5529         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
5530         xmm register restore.
5531
5532 2009-09-21  Jan Hubicka  <jh@suse.cz>
5533
5534         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
5535         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
5536         restore at the end.
5537
5538 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
5539
5540         * stor-layout.c (layout_type): Remove obsolete code.
5541
5542 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
5543
5544         PR middle-end/41395
5545         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
5546
5547 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5548
5549         PR middle-end/30789
5550         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
5551         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
5552         (fold_builtin_2, do_mpc_arg1): Update accordingly.
5553         * fold-const.c (const_binop): Likewise.
5554         * real.h (do_mpc_arg2): Update prototype.
5555
5556 2009-09-20  Jan Hubicka  <jh@suse.cz>
5557
5558         * dwarf2out.c (add_const_value_attribute): Return true if successful.
5559         (add_location_or_const_value_attribute): Rewrite using
5560         loc_list_from_tree.
5561         (tree_add_const_value_attribute): Return true if successful.
5562         (tree_add_const_value_attribute_for_decl): Likewise.
5563
5564         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
5565         (loc_descriptor): ... here;
5566         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
5567         (cst_pool_loc_descr): Break out from ...; do not reffer constant
5568         pool items that was not marked for output.
5569         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
5570         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
5571         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
5572         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
5573         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
5574         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
5575         DW_OP_stack_value to get address of items that are not available
5576         as addresses.
5577         (dw_loc_list): Handle single element lists correctly.
5578
5579 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
5580             Pascal Obry  <obry@adacore.com>
5581
5582         * unwind-dw2-fde.c (classify_object_over_fdes):
5583         Cast the constant 1 to _Unwind_Ptr.
5584         (add_fdes): Likewise.
5585         (linear_search_fdes): Likewise.
5586
5587 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
5588
5589         * stor-layout.c (set_sizetype): Avoid useless type copy.
5590
5591 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
5592
5593         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
5594         feature check.
5595         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
5596         * configure, config.in: Regenerate.
5597         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
5598         DW_EH_PE_absptr.
5599         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
5600         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
5601         for global data if the output could be used in a shared library.
5602         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
5603         to 0 if TARGET_WRITABLE_EH_FRAME.
5604
5605 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
5606
5607         PR rtl-optimization/39886
5608         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
5609         just when insn is equal to BB_END (bb).
5610
5611 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
5612
5613         * config/mips/mips.opt (mrelax-pic-calls): New option.
5614         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
5615         the file.
5616         (mips_unspec_call): Change "unspec_call" expander into this.
5617         (mips_strip_unspec_call): New function.
5618         (mips_got_load): Call mips_unspec_call instead of
5619         gen_unspec_call<mode>.
5620         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
5621         MIPS_CALL.
5622         (mips_cfg_in_reorg): New function.
5623         (mips16_lay_out_constants): Use it to decide whether to call
5624         CFG-aware insn splitting.
5625         (r10k_insert_cache_barriers): Move CFG set-up code from here to
5626         mips_reorg.  Move DF set-up code from here ...
5627         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
5628         from here.
5629         (mips_reorg): Call mips_df_reorg instead of
5630         r10k_insert_cache_barriers.  Move CFG set-up code here from
5631         r10k_insert_cache_barriers.
5632         (mips_call_expr_from_insn): New function.
5633         (mips_pic_call_symbol_from_set): Likewise.
5634         (mips_find_pic_call_symbol): Likewise.
5635         (mips_annotate_pic_call_expr): Likewise.
5636         (mips_get_pic_call_symbol): Likewise.
5637         (mips_annotate_pic_calls): Likewise.
5638         (mips_override_options): Disable -mrelax-pic-calls unless PIC
5639         calls are used.
5640         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
5641         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
5642         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
5643         directive.
5644         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
5645         (unspec_call<mode>): Remove it.
5646         (sibcall_internal, sibcall_value_internal,
5647         sibcall_value_multiple_internal, call_internal, call_split,
5648         call_value_internal, call_value_split,
5649         call_value_multiple_internal, call_value_multiple_split): Pass
5650         SIZE_OPNO to MIPS_CALL.
5651         (call_internal_direct, call_direct_split,
5652         call_value_internal_direct, call_value_direct_split): Pass -1 as
5653         SIZE_OPNO to MIPS_CALL.
5654         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
5655         * configure: Regenerate.
5656         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
5657         and -mno-relax-pic-calls.
5658         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
5659
5660 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5661
5662         PR bootstrap/35619
5663         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
5664         in the directory this rule is called from, rather than the
5665         toplevel 'gcc' directory, to fix in-tree build.
5666
5667 2009-09-19  Chris Demetriou  <cgd@google.com>
5668
5669         PR preprocessor/28435:
5670         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
5671         to cpplib that the preprocessor output is needed.
5672
5673 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
5674
5675         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
5676         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
5677         *return_and_restore_fpregs_<mode>,
5678         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
5679
5680         PR bootstrap/41397
5681         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
5682         instead of assuming it has always a REG inside of it.
5683
5684 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
5685
5686         * config/freebsd.h: Update comment on types.
5687         (WINT_TYPE): Define.
5688
5689 2009-09-18  Jason Merrill  <jason@redhat.com>
5690
5691         * c.opt: Add -fno-deduce-init-list.
5692
5693 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
5694
5695         * value-prof.c (interesting_stringop_to_profile_p): Added output
5696         argument to indicate which parameter is the size parameter.
5697         * value-prof.c (gimple_stringop_fixed_value): Use
5698         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
5699         * value-prof.c (gimple_stringops_transform): Update call sites to
5700         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
5701
5702 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
5703
5704         PR target/38288
5705         From David Binderman <dcb314@hotmail.com>:
5706         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
5707         local variable f.  Remove stale comments.
5708         (ix86_compute_frame_layout): Remove useless local variable total_size.
5709         Remove #if 0'd code.
5710         (legitimate_address_p): Remove useless local variables
5711         reason_rtx and reason.
5712         (ix86_split_copysign_const): Remove useless local variable op1.
5713         (scale_counter): Remove useless local variable piece_size_mask.
5714
5715 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
5716
5717         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
5718         output decl.
5719
5720 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
5721
5722         PR target/40913
5723         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
5724
5725 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
5726
5727         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
5728         TYPE_STUB_DECL.
5729
5730 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
5731
5732         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
5733         DW_OP_implicit_value even without dwarf_version 4.
5734
5735 2009-09-17  Jan Hubicka  <jh@suse.cz>
5736
5737         * dwarf2out.c: Include tree-pass.h and gimple.h.
5738         (loc_list_plus_const): New function.
5739         (loc_descriptor_from_tree_1): Rename to ...
5740         (loc_descriptor_from_tree): ... remove original.
5741         (loc_list_from_tree): New function.
5742         (add_AT_location_description): Accept location list.
5743         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
5744         (concatn_mem_loc_descriptor): Remove.
5745         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
5746         returning NULL.
5747         (secname_for_decl): Move up.
5748         (hidden_reference_p): New function; break out from ...
5749         (loc_by_refernece): ... here; move up.
5750         (dw_loc_list): New function.
5751         (single_element_loc_list): New function.
5752         (single_element_loc_list_p): New function.
5753         (add_loc_descr_to_each): New function.
5754         (add_loc_list): New function.
5755         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
5756         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
5757         add diagnostics why expansion failed.
5758         (add_location_or_const_value_attribute): Support location lists.
5759         (add_bound_info): Likewise.
5760         (descr_info_loc): Update call of loc_descriptor_from_tree.
5761         (gen_variable_die): Work on location lists.
5762         * final.c (pass_final): Add dump file.
5763         * Makefile.in (dwarf2out.o): Add new dependencies.
5764
5765 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
5766
5767         PR c/41049
5768         * real.c decimal_from_integer, decimal_integer_string): New.
5769         (real_from_integer): Use them as special case for decimal float.
5770         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
5771         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
5772         Do not append zero after the decimal point in string to convert.
5773
5774 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
5775
5776         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
5777         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
5778
5779 2009-09-17  Martin Jambor  <mjambor@suse.cz>
5780
5781         * common.opt (fipa-sra): New switch.
5782         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
5783         * timevar.def (TV_IPA_SRA): New timevar.
5784         * params.def (ipa-sra-ptr-growth-factor): New parameter.
5785         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
5786         * tree-sra.c: Include cgraph.c.
5787         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
5788         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
5789         and grp_not_necessarilly_dereferenced.
5790         (func_param_count): New variable.
5791         (encountered_apply_args): New variable.
5792         (bb_dereferences): New variable.
5793         (final_bbs): New variable.
5794         (no_accesses_representant): New variable.
5795         (no_accesses_p): New function.
5796         (dump_access): Dump the new fields.
5797         (sra_initialize): Set encountered_apply_args to false.
5798         (get_ssa_base_param): New function.
5799         (mark_parm_dereference): New function.
5800         (create_access): Caring for INIDRECT_REFs and different handling of
5801         varialble length accesses in early IPA SRA.  Store the stmt - a new
5802         parameter - to the new access.
5803         (build_access_from_expr_1): New parameter stmt, passed to
5804         create_access.  Handle INDIRECT_REFs.
5805         (build_access_from_expr): Pass the current statement to
5806         build_access_from_expr_1.
5807         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
5808         passes.
5809         (build_accesses_from_assign): Pass the current statement to
5810         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
5811         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
5812         final_bbs when necessary.  Check for calls to __builtin_apply_args.
5813         Fixup EH info if anythng was changed.
5814         (is_unused_scalar_param): New function.
5815         (ptr_parm_has_direct_uses): New function.
5816         (find_param_candidates): New function.
5817         (mark_maybe_modified): New function.
5818         (analyze_modified_params): New function.
5819         (propagate_dereference_distances): New function.
5820         (dump_dereferences_table): New function.
5821         (analyze_caller_dereference_legality): New function.
5822         (unmodified_by_ref_scalar_representative): New function.
5823         (splice_param_accesses): New function.
5824         (decide_one_param_reduction): New function.
5825         (enum ipa_splicing_result): New type.
5826         (splice_all_param_accesses): New function.
5827         (get_param_index): New function.
5828         (turn_representatives_into_adjustments): New function.
5829         (analyze_all_param_acesses): New function.
5830         (get_replaced_param_substitute): New function.
5831         (get_adjustment_for_base): New function.
5832         (replace_removed_params_ssa_names): New function.
5833         (sra_ipa_reset_debug_stmts): New function.
5834         (sra_ipa_modify_expr): New function.
5835         (sra_ipa_modify_assign): New function.
5836         (convert_callers): New function.
5837         (modify_function): New function.
5838         (ipa_sra_preliminary_function_checks): New function.
5839         (ipa_early_sra): New function.
5840         (ipa_early_sra_gate): New function.
5841         (pass_early_ipa_sra): New variable.
5842         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
5843
5844 2009-09-17  Michael Matz  <matz@suse.de>
5845
5846         PR middle-end/41347
5847         * tree.c (build_type_attribute_qual_variant): Export.
5848         * tree.h (build_type_attribute_qual_variant): Declare.
5849         * tree-inline.c (remap_type_1): Use it to build variants with
5850         the original qualifiers and attributes.
5851
5852 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5853
5854         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
5855         without a fallthrough edge.
5856
5857 2009-09-16  DJ Delorie  <dj@redhat.com>
5858
5859         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
5860         chip and ignore the "fast_interrupt" attribute if so.
5861
5862 2009-09-16  Richard Henderson  <rth@redhat.com>
5863
5864         PR middle-end/41360
5865         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
5866         barrier fix.
5867
5868 2009-09-16  Richard Henderson  <rth@redhat.com>
5869
5870         PR target/41246
5871         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
5872         is set only if DECL_NO_STATIC_CHAIN is unset.
5873         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
5874         (FOR_EACH_NEST_INFO): New.
5875         (walk_all_functions): Use it.
5876         (finalize_nesting_tree): Likewise.
5877         (unnest_nesting_tree): Likewise.
5878         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
5879         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
5880         (convert_gimple_call): Early out if gimple_call_chain already set.
5881         (convert_all_function_calls): Iterate until no new functions
5882         require a static chain.
5883         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
5884         when building a trampoline.  Use dump_function_to_file instead
5885         of dump_function.
5886         (lower_nested_functions): Open dump_file.  Validate that decls
5887         that have DECL_NO_STATIC_CHAIN from the front end don't have that
5888         bit reset by this pass.
5889
5890 2009-09-16  Michael Matz  <matz@suse.de>
5891
5892         PR fortran/41212
5893         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
5894         shorten decl_common_unused.
5895         (DECL_RESTRICTED_P): New accessor.
5896         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
5897         to disambiguate marked decls and restrict pointers.
5898
5899 2009-09-16  Richard Henderson  <rth@redhat.com>
5900
5901         PR middle-end/41360
5902         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
5903
5904 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
5905
5906         * integrate.c (set_block_abstract_flags): Call
5907         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
5908
5909 2009-09-16  Richard Guenther  <rguenther@suse.de>
5910
5911         PR middle-end/34011
5912         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
5913         as non-aliased.
5914
5915 2009-09-16  DJ Delorie  <dj@redhat.com>
5916             Kaz Kojima  <kkojima@gcc.gnu.org>
5917
5918         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
5919         (sh_expand_prologue): Update calls to output_stack_adjust.
5920         (sh_expand_epilogue): Likewise.
5921
5922 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
5923
5924         PR bootstrap/41349
5925         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
5926         trying to limit the extent of searches in the insn stream.
5927
5928 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
5929             Jakub Jelinek  <jakub@redhat.com>
5930
5931         PR target/41175
5932         PR target/40677
5933         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
5934         problem.
5935         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
5936         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
5937         (rs6000_savres_strategy): Always save FP registers inline if the
5938         target doesn't support hardware double-precision.  Set the above
5939         bits in return value when needed.
5940         (rs6000_savres_routine_sym): Fix computation for cache selector.
5941         Mark the generated symbol as a function.  Rename exitp argument to
5942         lr.  Move code for determining the name of the symbol...
5943         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
5944         getting the names right on AIX and 64-bit Linux.
5945         (savres_routine_name): New variable.
5946         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
5947         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
5948         on what the target routine uses as a base register.  If savep && lr
5949         describe saving of r0 into memory slot.
5950         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
5951         line calls for AIX ABI.
5952         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
5953         determine FP save/restore functions.
5954         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
5955         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
5956         gen_addsi3.
5957         (rs6000_emit_epilogue): Adjust computation of restore_lr.
5958         Duplicate restoration of LR and execute the appropriate one
5959         depending on whether GPRs are being restored inline.  Set r11 from
5960         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
5961         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
5962         Fix out of line calls for AIX ABI.
5963         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
5964         New insn.
5965         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
5966         register 11.
5967         (*restore_gpregs_spe): Likewise.
5968         (*return_and_restore_gpregs_spe): Likewise.
5969         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
5970         Define to empty string unconditionally.
5971         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
5972         Define to empty string unconditionally.
5973         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
5974         !TARGET_64BIT.
5975
5976 2009-09-15  Jan Hubicka  <jh@suse.cz>
5977
5978         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
5979         * params.def (inline-insns-auto): Likewise.
5980
5981 2009-09-15  Martin Jambor  <mjambor@suse.cz>
5982
5983         * ipa-inline.c (estimate_function_body_sizes): Dump info about
5984         individual statements only at TDF_DETAILS dump level.  Format
5985         source for 80 characters per line.
5986
5987 2009-09-15  Christian Bruel  <christian.bruel@st.com>
5988
5989         * regrename.c (do_replace): Update REG_DEAD notes.
5990
5991 2009-09-15  Revital Eres  <eres@il.ibm.com>
5992
5993         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
5994         * targhooks.c (default_builtin_support_vector_misalignment):
5995         New builtin function.
5996         * targhooks.h (default_builtin_support_vector_misalignment):
5997         Declare.
5998         * target.h (builtin_support_vector_misalignment):
5999         New field in struct gcc_target.
6000         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
6001         new builtin function.
6002         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
6003         Define.
6004         * config/rs6000/rs6000.c
6005         (rs6000_builtin_support_vector_misalignment): New function.
6006         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
6007
6008 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
6009
6010         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
6011         instead of INSN_P.
6012         (bfin_optimize_loop): Likewise.
6013         (bfin_gen_bundles): Likewise.
6014         (workaround_speculation): Likewise.
6015         (find_load): Return NULL_RTX for debug_insn.
6016
6017 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
6018
6019         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
6020         (sminsf3): Ditto.
6021
6022 2009-09-14  DJ Delorie  <dj@redhat.com>
6023
6024         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
6025         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
6026         VLIW mode.
6027
6028 2009-09-14  Richard Henderson  <rth@redhat.com>
6029             Jakub Jelinek  <jakub@redhat.com>
6030
6031         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
6032         * cfgbuild.c (make_edges): Handle asm goto.
6033         * cfglayout.c (fixup_reorder_chain): Likewise.
6034         * cfgrtl.c (patch_jump_insn): Likewise.
6035         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
6036         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
6037         (gimple_build_asm_vec): Add and use labels parameter.
6038         (gimple_build_asm): Remove.
6039         (walk_gimple_asm): Walk labels too.
6040         * gimple.def (GIMPLE_ASM): Update docs.
6041         * gimple.h: Update decls.
6042         (struct gimple_statement_asm): Change nc to use unsigned char;
6043         add nl member.
6044         (gimple_asm_nlabels): New.
6045         (gimple_asm_label_op, gimple_asm_set_label_op): New.
6046         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
6047         into gimple_build_asm_vec.
6048         * jump.c (mark_jump_label_asm): New.
6049         (mark_jump_label): Use it.
6050         (redirect_jump_1): Handle asm goto.
6051         (invert_jump_1): Soft fail if X is null.
6052         * recog.c (extract_asm_operands): New.
6053         (asm_noperands): Use it; handle asm labels.
6054         (decode_asm_operands): Use extract_asm_operands.
6055         (asm_operand_ok): Properly handle empty string.
6056         * reg-stack.c (get_asm_operands_in_out): Rename from
6057         get_asm_operand_n_inputs; use extract_asm_operands; return both
6058         inputs and outputs by reference; update all callers.
6059         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
6060         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
6061         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
6062         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
6063         (extract_asm_operands): Declare.
6064         * stmt.c (expand_asm_operands): Add and use labels parameter.
6065         (check_unique_operand_names): Likewise.
6066         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
6067         (expand_asm_stmt): Handle asm labels.
6068         * tree-cfg.c (make_gimple_asm_edges): New.
6069         (make_edges): Use it.
6070         (cleanup_dead_labels): Handle asm labels.
6071         (is_ctrl_altering_stmt): Likewise.
6072         (gimple_redirect_edge_and_branch): Likewise.
6073         * tree.def (ASM_EXPR): Add 5th operand.
6074         * tree.h (ASM_LABELS): New.
6075         (resolve_asm_operand_names): Update decl.
6076
6077         * c-parser.c (c_parser_asm_statement): Parse asm goto.
6078         (c_parser_asm_goto_operands): New.
6079         * c-tree.h (build_asm_expr): Update decl.
6080         * c-typeck.c (build_asm_expr): Add and use labels parameter.
6081         * doc/extend.texi: Document asm goto.
6082
6083 2009-09-14  Richard Henderson  <rth@redhat.com>
6084
6085         * except.h: Update declarations.
6086         (struct pointer_map_t): Forward declare.
6087         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
6088         (struct eh_landing_pad_d, eh_landing_pad): New.
6089         (struct eh_catch_d, eh_catch): New.
6090         (struct eh_region_d): Remove next_region_sharing_label, aka,
6091         label, tree_label, landing_pad, post_landing_pad, resume,
6092         may_contain_throw.  Rename region_number to index.  Remove
6093         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
6094         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
6095         (VEC(eh_landing_pad,gc)): New.
6096         (struct eh_status): Remove last_region_number.  Add lp_array,
6097         throw_stmt_table, ttype_data, ehspec_data.
6098         (ehr_next, FOR_ALL_EH_REGION_AT): New.
6099         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
6100         * except.c (lang_protect_cleanup_actions): Return tree.
6101         (struct ehl_map_entry): Remove.
6102         (init_eh_for_function): Push zero entries for region and lp_array.
6103         (gen_eh_region): Add to region_array immediately.
6104         (gen_eh_region_catch): Operate on eh_catch objects.
6105         (gen_eh_landing_pad): New.
6106         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
6107         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
6108         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
6109         (get_eh_landing_pad_from_number_fn): New.
6110         (get_eh_landing_pad_from_number): New.
6111         (get_eh_region_from_lp_number_fn): New.
6112         (get_eh_region_from_lp_number): New.
6113         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
6114         (get_exception_pointer, get_exception_filter): Remove.
6115         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
6116         (current_function_has_exception_handlers): Simplify.
6117         (bring_to_root, eh_region_replaceable_by_p): Remove.
6118         (replace_region, hash_type_list, hash_eh_region): Remove.
6119         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
6120         (label_to_region_map, num_eh_regions): Remove.
6121         (get_next_region_sharing_label, must_not_throw_labels): Remove.
6122         (find_exception_handler_labels): Remove.
6123         (duplicate_eh_regions_0, find_prev_try): Remove.
6124         (struct duplicate_eh_regions_data): New.
6125         (duplicate_eh_regions_1): Rewrite.
6126         (duplicate_eh_regions): Return a pointer map instead of an
6127         integer offset.
6128         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
6129         (redirect_eh_edge_to_label): Remove.
6130         (eh_region_outermost): Rewrite using eh_region pointers
6131         instead of integers.
6132         (add_ttypes_entry): Update for ttype_data move to eh_status.
6133         (add_ehspec_entry): Rewrite with VEC instead of varray.
6134         (assign_filter_values): Likewise.  Export.
6135         (build_post_landing_pads, connect_post_landing_pads): Remove.
6136         (dw2_build_landing_pads): Rewrite to use lp_array.
6137         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
6138         (sjlj_assign_call_site_values): Rewrite to use lp_array.
6139         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
6140         (sjlj_mark_call_sites): Update for landing pad numbers.
6141         (finish_eh_generation): Rewrite.
6142         (gate_handle_eh): Do nothing for no eh tree.
6143         (pass_rtl_eh): Move up near finish_eh_generation.
6144         (remove_eh_landing_pad): New.
6145         (remove_eh_handler): Export.
6146         (remove_eh_region, remove_eh_handler_and_replace): Remove.
6147         (for_each_eh_label): Rewrite to use lp_array.
6148         (make_reg_eh_region_note): New.
6149         (make_reg_eh_region_note_nothrow_nononlocal): New.
6150         (insn_could_throw_p): New.
6151         (copy_reg_eh_region_note_forward): New.
6152         (copy_reg_eh_region_note_backward): New.
6153         (check_handled, add_reachable_handler): Remove.
6154         (reachable_next_level, foreach_reachable_handler): Remove.
6155         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
6156         (get_eh_region_and_lp_from_rtx): New.
6157         (get_eh_region_from_rtx): New.
6158         (can_throw_internal_1, can_throw_external_1): Remove.
6159         (can_throw_internal): Use get_eh_region_from_rtx.
6160         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
6161         (insn_nothrow_p, can_nonlocal_goto): New.
6162         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
6163         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
6164         (add_action_record): Use VEC not varray.
6165         (collect_one_action_chain): Update for eh_region changes.
6166         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
6167         Use get_eh_region_and_lp_from_rtx.
6168         (gate_convert_to_eh_region_ranges): New.
6169         (pass_convert_to_eh_region_ranges): Use it.
6170         (push_uleb128, push_sleb128): Use VEC not varray.
6171         (output_one_function_exception_table): Likewise.
6172         (dump_eh_tree): Update for eh_region changes.
6173         (verify_eh_tree): Likewise.
6174         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
6175         * tree-eh.c: Include target.h.
6176         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
6177         Don't disallow GIMPLE_RESX; adjust argument check.
6178         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
6179         (record_stmt_eh_region): Update for landing pad numbers;
6180         generate a landing pad if necessary.
6181         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
6182         (remove_stmt_from_eh_lp_fn): Similarly.
6183         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
6184         Update for lp numbers; don't special case missing throw_stmt_table.
6185         (lookup_expr_eh_lp): Similarly.
6186         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
6187         (eh_seq, eh_region_may_contain_throw): New.
6188         (struct leh_state): Add ehp_region.
6189         (struct leh_tf_state): Remove eh_label.
6190         (emit_post_landing_pad): New.
6191         (emit_resx, emit_eh_dispatch): New.
6192         (note_eh_region_may_contain_throw): New.
6193         (frob_into_branch_around): Take eh_region not eh label;
6194         emit eh code into eh_seq.
6195         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
6196         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
6197         lower_eh_must_not_throw.  Emit code to eh_seq.
6198         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
6199         (lower_try_finally_onedest): Likewise.
6200         (lower_try_finally_copy): Likewise.
6201         (lower_try_finally_switch): Likewise.
6202         (lower_try_finally): Initialize ehp_region.
6203         (lower_catch): Update for eh_catch objects.
6204         (lower_eh_filter): Don't handle must_not_throw.
6205         (lower_eh_must_not_throw): New.
6206         (lower_cleanup): Don't set eh_label.
6207         (lower_eh_constructs_2): Resolve eh builtins.
6208         Handle GIMPLE_EH_MUST_NOT_THROW.
6209         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
6210         Add eh_seq to the end of the function body.
6211         (make_eh_dispatch_edges): New.
6212         (make_eh_edge): Remove.
6213         (make_eh_edges): Simplify for landing pads.
6214         (redirect_eh_edge_1): New.
6215         (redirect_eh_edge): Use it.
6216         (redirect_eh_dispatch_edge): New.
6217         (stmt_could_throw_p): Use a switch.  Allow RESX.
6218         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
6219         (stmt_can_throw_internal): Likewise.
6220         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
6221         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
6222         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
6223         (gate_refactor_eh): New.
6224         (pass_refactor_eh): Use it.
6225         (lower_resx, execute_lower_resx, pass_lower_resx): New.
6226         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
6227         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
6228         (remove_unreachable_handlers): Rename from
6229         tree_remove_unreachable_handlers; rewrite for landing pads;
6230         call remove_eh_handler directly.
6231         (remove_unreachable_handlers_no_lp): New.
6232         (unsplit_eh, unsplit_all_eh): New.
6233         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
6234         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
6235         (cleanup_empty_eh_unsplit): New.
6236         (cleanup_empty_eh): Rewrite.
6237         (cleanup_all_empty_eh): New.
6238         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
6239         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
6240         (gate_cleanup_eh): New.
6241         (pass_cleanup_eh): Use it.
6242         (verify_eh_edges): Move later in file.  Expect one EH edge.
6243         (verify_eh_dispatch_edge): New.
6244
6245         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
6246         (gtype-desc.o): Add TARGET_H.
6247         (tree.o): Use EXCEPT_H, not except.h.
6248         (cfgbuild.o): Add EXPR_H.
6249         (GTFILES): Add vecprim.h.
6250         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
6251         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
6252         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
6253         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
6254         * calls.c (emit_call_1): Use make_reg_eh_region_note.
6255         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
6256         calls to can_throw_internal.
6257         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
6258         (make_edges): Don't handle RESX; use can_nonlocal_goto.
6259         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
6260         (expand_gimple_stmt): Use make_reg_eh_region_note.
6261         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
6262         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
6263         or find_exception_handler_labels.
6264         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
6265         there is exacly one EH edge.  Use can_nonlocal_goto and
6266         can_throw_internal.
6267         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
6268         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
6269         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
6270         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
6271         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
6272         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
6273         * dse.c (scan_insn): Use insn_could_throw_p.
6274         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
6275         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
6276         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
6277         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
6278         EXC_PTR_EXPR or FILTER_EXPR.
6279         (tree_expr_nonzero_warnv_p): Likewise.
6280         * function.h: Include vecprim.h, not varray.h
6281         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
6282         move ttype_data and ehspec_data members to struct eh_status; change
6283         action_record_data member to a VEC.
6284         * gcse.c (hash_scan_set): Use can_throw_internal.
6285         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
6286         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
6287         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
6288         (block_may_fallthru): Don't handle RESX_EXPR.
6289         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
6290         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
6291         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
6292         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
6293         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
6294         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
6295         (gimple_size): Likewise.
6296         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
6297         (gimple_build_resx): Use gimple_build_with_ops.
6298         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
6299         (is_gimple_val): Likewise.
6300         (is_gimple_stmt): Remove RESX_EXPR.
6301         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
6302         (GIMPLE_RESX): Reorder with other EH constructs.
6303         * gimple.h (struct gimple_statement_eh_mnt): New.
6304         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
6305         (gimple_eh_filter_must_not_throw): Remove.
6306         (gimple_eh_filter_set_must_not_throw): Remove.
6307         (gimple_eh_must_not_throw_fndecl): New.
6308         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
6309         (is_gimple_resx): New.
6310         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
6311         Don't copy EH_FILTER_MUST_NOT_THROW.
6312         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
6313         * ipa-inline.c (estimate_function_body_sizes): Don't try to
6314         handle must_not_throw_labels specially.
6315         * ipa-pure-const.c (check_call): Update debug statement for LP.
6316         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
6317         * ipa-utils.c (get_base_var): Likewise.
6318         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
6319         * lower-subreg.c (move_eh_region_note): Remove.
6320         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
6321         * omp-low.c (new_omp_context): Update for eh_lp_nr.
6322         (create_task_copyfn): Likewise.
6323         (maybe_catch_exception): Use gimple_build_eh_filter.
6324         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
6325         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
6326         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
6327         and pass_lower_resx.
6328         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
6329         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
6330         can_throw_internal, can_nonlocal_goto.
6331         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
6332         copy_reg_eh_region_note_forward.
6333         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
6334         (emit_output_reload_insns): Likewise.
6335         (copy_eh_notes): Remove.
6336         * rtl.def (RESX): Remove.
6337         * rtl.h: Update declarations.
6338         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
6339         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
6340         (update_eh_label): Remove.
6341         (cleanup_dead_labels_eh): New.
6342         (cleanup_deal_labels): Use it instead of update_eh_label.
6343         (gimple_merge_blocks): Update landing pad data structure when
6344         removing a landing pad label.
6345         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
6346         test; handle GIMPLE_EH_MUST_NOT_THROW.
6347         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
6348         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
6349         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
6350         (verify_stmt): Likewise.  Verify landing pads.
6351         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
6352         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
6353         (struct move_stmt_d): Add eh_map.
6354         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
6355         (move_stmt_r): Remap eh region numbers in builtin calls,
6356         resx and eh_dispatch.
6357         (move_block_to_fn): Remove eh_offset parameter.  Use
6358         maybe_duplicate_eh_stmt_fn.
6359         (find_outermost_region_in_block): Operate on eh_region pointers
6360         instead of region numbers.
6361         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
6362         duplicate_eh_regions.
6363         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
6364         test earlier.  Disallow EH landing pads.
6365         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
6366         * tree-flow.h: Update declarations.
6367         (struct tree_ann_common_d): Replace rn with lp_nr.
6368         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
6369         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
6370         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
6371         resx and eh_dispatch.
6372         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
6373         (copy_edges_for_bb): Use make_eh_dispatch_edges.
6374         (copy_cfg_body): Expect eh_map instead of eh_region_offset
6375         from duplicate_eh_regions.
6376         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
6377         update RESX; handle EH_DISPATCH.
6378         (expand_call_inline): Set eh_lp_nr, not eh_region.
6379         (maybe_inline_call_in_expr): Likewise.
6380         * tree-inline.h (struct copy_body_data): Replace eh_region with
6381         eh_lp_nr, eh_region_offset with eh_map.
6382         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
6383         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
6384         * tree-pretty-print.c (dump_generic_node): Don't handle
6385         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
6386         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
6387         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
6388         EXC_PTR_EXPR, FILTER_EXPR.
6389         * tree-ssa-operands.c (get_expr_operands): Likewise.
6390         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
6391         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6392         (ao_ref_init_from_vn_reference): Likewise.
6393         * tree-ssa-sink.c (statement_sink_location): Likewise.
6394         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
6395         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
6396         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
6397         EXC_PTR_EXPR, FILTER_EXPR.
6398         (is_exception_related): Remove.
6399         (compute_avail): Don't call it.
6400         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
6401         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
6402         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
6403         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
6404         Build EH builtins.
6405         (build_resx): Remove.
6406         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
6407         * tree.h: Update declarations.
6408         (EH_FILTER_MUST_NOT_THROW): Remove.
6409         (struct tree_label_decl): Add eh_landing_pad_nr.
6410         (EH_LANDING_PAD_NR): New.
6411         * value-prof.c (gimple_ic): Tidy variable names.  Update for
6412         landing pad numbers.
6413         (gimple_stringop_fixed_value): Tidy variable names.  Assert
6414         that neither call stmt can throw.
6415         * vecprim.h (uchar): New.
6416         (VEC(uchar,heap), VEC(uchar,gc)): New.
6417
6418         * c-common.c (c_define_builtins): Update call to
6419         build_common_builtin_nodes.
6420         * c-parser.c (c_parse_file): Don't call
6421         default_init_unwind_resume_libfunc.
6422
6423 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
6424
6425         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
6426         (mips_cprestore_address_p): Likewise.
6427         (mips_save_gp_to_cprestore_slot): Likewise.
6428         (mips_restore_gp): Rename to...
6429         (mips_restore_gp_from_cprestore_slot): ...this.
6430         (mips_must_initialize_gp_p): Declare.
6431         (mips_emit_save_slot_move): Likewise.
6432         (mips_output_load_label): Return nothing.
6433         (mips_eh_uses): Declare.
6434         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
6435         (TARGET_CPRESTORE_DIRECTIVE): New macro.
6436         (TARGET_ABSOLUTE_JUMPS): Likewise.
6437         (EH_USES): Likewise.
6438         (FIRST_PSEUDO_REGISTER): Update comment.
6439         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
6440         (MIPS_CALL): ...here.
6441         (REGISTER_NAMES): Add $cprestore.
6442         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
6443         Add load_label_length, has_inflexible_gp_insn_p,
6444         has_flexible_gp_insn_p, must_initialize_gp_p and
6445         must_restore_gp_when_clobbered_p.
6446         (mips_expand_call): Don't generate split instructions here.
6447         (mips_split_call): Update the call to mips_restore_gp after
6448         the above name change.
6449         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
6450         (mips_find_gp_ref): New function.
6451         (mips_insn_has_inflexible_gp_ref_p): Likewise.
6452         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
6453         (mips_insn_has_flexible_gp_ref_p): Likewise.
6454         (mips_cfun_has_flexible_gp_ref_p): Likewise.
6455         (mips_function_has_gp_insn): Delete.
6456         (mips_global_pointer): Drop the df_regs_ever_live_p check.
6457         Use the new functions above.  Only return INVALID_REGNUM
6458         for TARGET_ABSOLUTE_JUMPS.
6459         (mips_must_initialize_gp_p): New function.
6460         (mips_get_cprestore_base_and_offset): New function, extracted from...
6461         (mips_cprestore_slot): ...here.  Take a bool parameter.
6462         (mips_cfun_has_cprestore_slot_p): New function.
6463         (mips_cprestore_address_p): Likewise.
6464         (mips_save_gp_to_cprestore_slot): Likewise.
6465         (mips_restore_gp): Rename to...
6466         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
6467         epilogue_completed.  Update the call to mips_cprestore_slot.
6468         Test cfun->machine->must_restore_gp_when_clobbered_p.
6469         (mips_direct_save_slot_move_p): New function.
6470         (mips_emit_save_slot_move): Likewise.
6471         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
6472         of cfun->machine->global_pointer.
6473         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
6474         (mips_save_reg): Use mips_emit_save_slot_move.
6475         (mips_expand_prologue): Set must_initialize_gp_p.
6476         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
6477         for all cprestore saves.  Emit a use_cprestore instruction after
6478         setting up the cprestore slot.
6479         (mips_restore_reg): Use mips_emit_save_slot_move.
6480         (mips_process_load_label): New function.
6481         (mips_load_label_length): Likewise.
6482         (mips_output_load_label): Don't return asm: output it here instead.
6483         Use mips_process_load_label.
6484         (mips_adjust_insn_length): Adjust the length of branch instructions
6485         that have length MAX_PIC_BRANCH_LENGTH.
6486         (mips_output_conditional_branch): Update the call to
6487         mips_output_load_label.  Assume the branch target is OPERANDS[0]
6488         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
6489         (mips_output_order_conditional_branch): Swap the meaning of
6490         OPERANDS[0] and OPERANDS[1].
6491         (mips_variable_issue): Don't count ghost instructions.
6492         (mips_expand_ghost_gp_insns): New function.
6493         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
6494         (mips_output_mi_thunk): Set must_initialize_gp_p.
6495         (mips_eh_uses): New function.
6496         * config/mips/predicates.md (cprestore_save_slot_operand)
6497         (cprestore_load_slot_operand): New predicates.
6498         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
6499         (UNSPEC_MOVE_GP): Likewise.
6500         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
6501         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
6502         (CPRESTORE_SLOT_REGNUM): New register.
6503         (MAX_PIC_BRANCH_LENGTH): New constant.
6504         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
6505         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
6506         branches.  Fix commentary.
6507         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
6508         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
6509         Change type to "ghost".
6510         (loadgp_absolute_<mode>): Likewise.
6511         (loadgp_rtp_<mode>): Likewise.
6512         (copygp_mips16): Likewise.
6513         (loadgp_blockage): Remove redundant mode attribute.
6514         (potential_cprestore): New instruction.
6515         (cprestore): Turn into an unspec set.
6516         (use_cprestore): New instruction.
6517         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
6518         (*branch_fp_inverted): Likewise.
6519         (*branch_order<mode>): Likewise.
6520         (*branch_order<mode>_inverted): Likewise.
6521         (*branch_equality<mode>): Likewise.
6522         (*branch_equality<mode>_inverted): Likewise.
6523         (*branch_bit<bbv><mode>): Likewise.
6524         (*branch_bit<bbv><mode>_inverted): Likewise.
6525         (*branch_equality<mode>_mips16): Remove redundant mode.
6526         (jump): Turn into a define_expand.
6527         (*jump_absolute): New instruction.
6528         (*jump_pic): Likewise.
6529         (*jump_mips16): Rename previously-unnamed pattern.  Remove
6530         redundant mode attribute.
6531         (restore_gp): Split on epilogue_completed rather than
6532         reload_completed.  Change type to "ghost".
6533         (move_gp<mode>): New instruction.
6534         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
6535         Remove redundant mode attribute.
6536         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
6537         (bc1any4f, bc1any2t, bc1any2f): Likewise.
6538         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
6539
6540 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6541
6542         PR target/41210
6543         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
6544         are returned in the same register (vs34 or v2) that Altivec vector
6545         types are returned in.
6546         (rs6000_libcall_value): Ditto.
6547
6548         PR target/41331
6549         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
6550         instead of explicit addsi3/adddi3 calls.
6551         (rs6000_split_multireg_move): Ditto.
6552         (rs6000_emit_allocate_stack): Ditto.
6553         (rs6000_emit_prologue): Ditto.
6554         (rs6000_output_mi_thunk): Ditto.
6555
6556         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
6557         size is 64 bits if we can use 64-bit registers.
6558
6559 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
6560
6561         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
6562         symbols.
6563
6564         From Jie Zhang <jie.zhang@analog.com>:
6565         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
6566         save FP and RETS with saveall attribute.
6567         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
6568         with saveall attribute.
6569
6570         * config/bfin/bfin.c (bfin_expand_builtin,
6571         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
6572         operands.
6573
6574         From Jie Zhang <jie.zhang@analog.com>:
6575         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
6576         before use in two places.
6577         * config/bfin/bfin.md (AREG): Define mode iterator.
6578         (reload_in, reload_out): Use mode iterator AREG.
6579
6580 2009-09-14  Richard Guenther  <rguenther@suse.de>
6581
6582         PR middle-end/41350
6583         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
6584         EH personality path.
6585
6586 2009-09-13  Richard Guenther  <rguenther@suse.de>
6587             Rafael Avila de Espindola  <espindola@google.com>
6588
6589         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
6590         (LANG_HOOKS_EH_PERSONALITY): Likewise.
6591         (LANG_HOOKS_INITIALIZER): Adjust.
6592         (lhd_pass_through_t): Declare.
6593         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
6594         eh_personality.
6595         * langhooks.c (lhd_pass_through_t): New function.
6596         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
6597         dwarf2out_begin_prologue): Use personality from current_function_decl.
6598         * expr.h (get_personality_function): Declare.
6599         * expr.c (get_personality_function): New function.
6600         (build_personality_function): Likewise.
6601         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
6602         (eh_personality_libfunc): Remove.
6603         * optabs.c (build_libfunc_function): New function split out from ...
6604         (init_one_libfunc): ... here.
6605         * tree.h (DECL_FUNCTION_PERSONALITY): New.
6606         (tree_function_decl): Add personality.
6607         (lhd_gcc_personality): Declare.
6608         (build_personality_function): Likewise.
6609         * tree.c (gcc_eh_personality_decl): New.
6610         (lhd_gcc_personality): New function.
6611         * except.h (lang_eh_runtime_type): Remove.
6612         (enum eh_personality_kind): New.
6613         (build_personality_function): Declare.
6614         (function_needs_eh_personality): Declare.
6615         * except.c (lang_eh_runtime_type): Remove.
6616         (function_needs_eh_personality): New function.
6617         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
6618         (sjlj_emit_function_enter, output_function_exception_table):
6619         Use personality from current_function_decl.
6620         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
6621         * tree-inline.c (tree_can_inline_p): Do not inline across different
6622         EH personalities.
6623         (expand_call_inline): Likewise.  Adjust the callers EH personality.
6624         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
6625         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
6626         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
6627         (c-parser.o): Likewise
6628         * c-tree.h (c_eh_initialized_p): Remove.
6629         (c_maybe_initialize_eh): Likewise.
6630         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
6631         (finish_decl): Don't call c_maybe_initialize_eh.
6632         (c_eh_initialized_p): Remove.
6633         (c_maybe_initialize_eh): Likewise.
6634         * c-parser.c (c_parser_omp_construct): Likewise.
6635         (c_parse_file): Initialize exception handling.
6636
6637 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
6638
6639         * config.gcc (tm_file): Remove i386/biarch32.h
6640         for i?86-w64-mingw* case.
6641         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
6642         support.
6643         * config.host: Set for x64 mingw the option
6644         use_long_long_for_widest_fast_int to yes.
6645
6646 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
6647
6648         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
6649         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
6650         (dbxout_begin_function): Likewise.
6651         * final.c (dwarf2_debug_info_emitted_p): New predicate.
6652         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
6653         set on the function.
6654         (final_end_function): Likewise.
6655         (final_scan_insn): Likewise.
6656         (rest_of_handle_final): Likewise.
6657         * varasm.c (assemble_start_function): Likewise.
6658         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6659
6660 2009-09-12  Jason Merrill  <jason@redhat.com>
6661
6662         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
6663         * opts.c (common_handle_option): constify.
6664
6665 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
6666
6667         * doc/install.texi (avr): Remove obsolete reference site.
6668
6669 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
6670
6671         * doc/install.texi (Binaries): Adjust AIX link.
6672
6673 2009-09-12  Akim Demaille  <demaille@gostai.com>
6674
6675         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
6676         Use an imperative sentence.
6677
6678 2009-09-11  Richard Henderson  <rth@redhat.com>
6679
6680         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
6681         structure-name and has-tree-operands arguments; update all entries.
6682         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
6683         update all entries.
6684         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
6685         (gsstruct_code_size): New.
6686         (gss_for_code_): New.
6687         (gss_for_code): Remove.
6688         (gimple_size): Rewrite using gsstruct_code_size.
6689         (gimple_statement_structure): Move to gimple.h.
6690         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
6691         (gss_for_code, gimple_statement_structure): New.
6692         (gimple_ops): Use new arrays; tidy.
6693
6694 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6695
6696         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
6697         operand to be a PLUS expression.
6698         * config/pa/pa.c (pa_secondary_reload): Likewise.
6699
6700 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
6701
6702         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
6703
6704         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
6705         XEXP (in_rtx, 8).
6706
6707 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
6708
6709         From Jie Zhang <jie.zhang@analog.com>:
6710         * doc/extend.texi (node Function Attributes): Document l2
6711         function attribute.
6712         (node Blackfin Variable Attributes): Document l2 variable attributes.
6713
6714 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
6715
6716         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
6717         to match the system compiler's configuration at inflection point.
6718         Add comment to remark a remaining difference with system compiler.
6719
6720         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
6721         * configure: Regenerate.
6722
6723 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
6724
6725         From Jie Zhang <jie.zhang@analog.com>:
6726         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
6727         (bfin_handle_l2_attribute): New.
6728         (bfin_attribute_table): Add l2 attribute.
6729
6730 2009-09-11  Michael Matz  <matz@suse.de>
6731
6732         PR middle-end/41275
6733         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
6734         on the local_decls list.
6735
6736 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
6737
6738         PR debug/41276
6739         PR debug/41307
6740         * cselib.c (cselib_expand_value_rtx_cb): Document callback
6741         interface.
6742         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
6743         for VALUEs, to implement the documented interface.
6744         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
6745         Adjust for VALUEs and anything else, to implement the
6746         documented interface.
6747
6748 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
6749
6750         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
6751         with actual SPE/paired vector modes before using 64-bit alignment.
6752         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
6753
6754 2009-09-10  DJ Delorie  <dj@redhat.com>
6755
6756         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
6757         emitted.
6758
6759         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
6760         * config/mep/mep.c (mep_legitimate_constant_p): New.
6761         * config/mep/mep-protos.h: Prototype it.
6762
6763 2009-09-10  Richard Henderson  <rth@redhat.com>
6764
6765         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
6766
6767 2009-09-10  Jason Merrill  <jason@redhat.com>
6768
6769         * tree.c (chain_index): New fn.
6770         * tree.h: Declare it.
6771
6772 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6773
6774         * config/sol2-c.c (cmn_err_length_specs): Initialize
6775         scalar_identity_flag.
6776
6777 2009-09-10  Richard Henderson  <rth@redhat.com>
6778
6779         * tree.h (struct tree_decl_common): Move align member earlier;
6780         move label_decl_uid member ...
6781         (struct tree_label_decl): ... here.
6782         (LABEL_DECL_UID): Update to match.
6783
6784         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
6785         not TDF_DETAILS.
6786
6787         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
6788         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
6789
6790         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
6791         dest_prev if the edge is complex.
6792
6793         * tree-cfg.c (is_ctrl_stmt): Use a switch.
6794
6795         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
6796         loop latch tests earlier.
6797
6798         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
6799         before GIMPLE_RETURN, not after its predecessor; insert
6800         before GIMPLE_RESX.
6801
6802         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
6803         gimple_seq_empty_p to test for no PHI nodes.
6804         * tree-cfg.c (split_critical_edges): Likewise.
6805
6806         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
6807
6808 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
6809
6810         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
6811         introduced by the VTA branch merge.
6812
6813 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
6814
6815         * ira-conflicts.c: Use fputs or putc instead of fprintf
6816         where appropriate.
6817         * cfg.c: Ditto.
6818         * toplev.c: Ditto.
6819         * tree-switch-conversion.c: Ditto.
6820
6821 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
6822
6823         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
6824         introduced by the VTA branch merge.
6825
6826 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
6827
6828         Revert:
6829         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
6830
6831         PR rtl-optimization/39779
6832         * expr.c (convert_modes): Return when mode == oldmode after
6833         CONST_INTs are processed.
6834
6835 2009-09-10  Nick Clifton  <nickc@redhat.com>
6836
6837         * config/mep/mep.c (mep_encode_section_info): Copy weakness
6838         attribute and referring decl when creating renamed symbol.
6839
6840 2009-09-10  Richard Guenther  <rguenther@suse.de>
6841
6842         PR middle-end/41257
6843         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
6844         reachable nodes.
6845         (cgraph_finalize_compilation_unit): Compute reachability
6846         before emitting thunks.  Properly process aliases before
6847         possibly removing unreachable nodes.
6848
6849 2009-09-10  Richard Guenther  <rguenther@suse.de>
6850
6851         PR middle-end/41254
6852         * tree.c (struct free_lang_data_d): Add worklist member.
6853         (find_decls_types_r): Push onto the worklist instead of recursing.
6854         Handle TREE_BINFOs properly.
6855         (find_decls_types): New function wrapped around find_decls_types_r
6856         to process the worklist.
6857         (find_decls_types_in_eh_region): Use it.
6858         (find_decls_types_in_node): Likewise.
6859         (find_decls_types_in_var): Likewise.
6860         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
6861         * tree.h (RECORD_OR_UNION_TYPE_P): New.
6862         (AGGREGATE_TYPE_P): Adjust.
6863
6864 2009-09-09  Jason Merrill  <jason@redhat.com>
6865
6866         * configure.ac: Check glibc version even if we have an in-tree
6867         assembler.
6868
6869 2009-09-09  Anthony Green  <green@moxielogic.com>
6870
6871         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
6872         the constant 0 when appropriate.
6873         * config/moxie/constraints.md: Add constraint O.
6874
6875         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
6876         to pass up to 6 32-bit argument values in registers.
6877         (moxie_function_arg): Ditto.
6878         (moxie_arg_partial_bytes): Ditto.
6879         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
6880         (REG_PARM_STACK_SPACE): Ditto.
6881         (FUNCTION_ARG_REGNO_P): Ditto.
6882
6883         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
6884         instruction to allocate stack space.
6885
6886 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
6887
6888         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
6889         unnecessarily stringent constraints.  Fix address
6890         calculation in the splitters.
6891
6892 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
6893
6894         PR rtl-optimization/39779
6895         * expr.c (convert_modes): Return when mode == oldmode after
6896         CONST_INTs are processed.
6897
6898 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
6899
6900         PR/41315
6901         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
6902         (ix86_expand_prologue): Take frame.padding0 into logic of
6903         to_allocate checks.
6904         (ix86_expand_epilogue): Likewise.
6905
6906 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
6907
6908         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
6909         New variables.
6910         (SHLIB_LINK, SHLIB_INSTALL): Use them.
6911         * config/t-slibgcc-libgcc: New file.
6912         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
6913
6914 2009-09-09  Martin Jambor  <mjambor@suse.cz>
6915
6916         PR tree-optimization/41089
6917         * tree-sra.c (find_var_candidates): Do not consider va_lists in
6918         early SRA.
6919
6920 2009-09-09  Richard Henderson  <rth@redhat.com>
6921
6922         * gimple.h (CASE_GIMPLE_OMP): New.
6923         (is_gimple_omp): Use it.
6924         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
6925         (verify_gimple_debug): Likewise.
6926
6927 2009-09-09  Richard Guenther  <rguenther@suse.de>
6928
6929         PR tree-optimization/41101
6930         * tree-ssa-pre.c (maximal_set): Remove.
6931         (compute_antic_aux): Treat the maximal set as implicitly all ones.
6932         Defer all blocks we didn't visit at least one successor.
6933         (add_to_exp_gen): Do not add to the maximal set.
6934         (make_values_for_phi): Likewise.
6935         (compute_avail): Likewise.
6936         (init_pre): Do not allocate the maximal set.
6937         (execute_pre): Do not dump it.
6938
6939 2009-09-09  Martin Jambor  <mjambor@suse.cz>
6940
6941         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
6942         an SSA_NAME rather than a is_gimple_variable.
6943
6944 2009-09-09  Richard Guenther  <rguenther@suse.de>
6945
6946         PR middle-end/41317
6947         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
6948         code dealing with plain pointer bases.
6949         (maybe_fold_offset_to_reference): Likewise.
6950         (maybe_fold_stmt_addition): Adjust.
6951
6952 2009-09-09  Richard Guenther  <rguenther@suse.de>
6953
6954         * tree.c (free_lang_data_in_type): Do not free the type variant
6955         chains.
6956         (free_lang_data): Merge char_type_node with its properly signed
6957         variant.
6958         (pass_ipa_free): Collect after freeing language specific data.
6959
6960 2009-09-09  Michael Matz  <matz@suse.de>
6961
6962         PR middle-end/41268
6963         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
6964         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
6965         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
6966         to reflect reality.
6967
6968 2009-09-08  DJ Delorie  <dj@redhat.com>
6969
6970         * config/mep/mep.c (conversions[]): Add "ml" pattern.
6971
6972 2009-09-04  Jason Merrill  <jason@redhat.com>
6973
6974         * tree.c (tree_find_value): Remove.
6975         * tree.h: Remove prototype.
6976         * varasm.c (assemble_external): Use value_member instead.
6977
6978 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6979
6980         * toplev.c (process_options): Choose default debugging type when
6981         gtoggle enables debug info and type is unset.
6982
6983 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6984
6985         PR debug/41276
6986         PR debug/41307
6987         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
6988         invalid subreg.
6989
6990 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6991
6992         * configure: Rebuilt with modified libtool.m4.
6993
6994 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6995
6996         PR debug/41229
6997         PR debug/41291
6998         PR debug/41300
6999         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
7000
7001 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
7002
7003         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
7004         (remove_statement): Likewise.
7005         (rewrite_use_nonlinear_expr): Adjust.
7006         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
7007         * tree-ssa.c (release_defs_bitset): ... this.  New.
7008         * tree-flow.h (release_defs_bitset): Declare.
7009
7010 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
7011
7012         PR debug/41232
7013         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
7014         in the middle block.
7015
7016 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
7017
7018         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
7019         via intptr_t to long type.
7020         (insert_operand_rank): Cast long type via intptr_t to
7021         pointer type.
7022         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
7023         pointer to scalar.
7024         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
7025         from pointer to unsigned via uintptr_t.
7026
7027         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
7028         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
7029         and HAVE_INTPTR_T.
7030         * configure: Regenerated.
7031         * config.in: Regenerated
7032         * system.h (stdint.h): Add include.
7033         (inttypes.h): Likewise.
7034         * Makefile.in (aclocal): Add config/stdint.m4.
7035         * aclocal.m4: Regenerated.
7036
7037 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
7038
7039         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
7040         variables.
7041         (note_np_check_stores): New function.
7042         (harmless_null_pointer_p): New function.
7043         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
7044         changed.  Take into account whether we're in the shadow of a condjump
7045         that tested NP_REG for NULL.
7046         Lose all code that tested for SEQUENCEs.
7047         (workaround_speculation): Avoid inserting NOPs for loads that are
7048         either always executed or a NULL pointer.
7049
7050 2009-09-08  Jan Hubicka  <jh@suse.cz>
7051
7052         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
7053         * params.def (early-inlining-insns): Likewise.
7054
7055 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
7056
7057         PR rtl-optimization/41239
7058         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
7059         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
7060         lists.
7061         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
7062         across calls, as the calls might not always return normally.
7063         (call_may_noreturn_p): New function.
7064         (deps_analyze_insn): Update last_function_call_may_noreturn list.
7065         (init_deps): Initialize it.
7066         (remove_from_deps): Also remove calls from
7067         last_function_call_may_noreturn list.
7068
7069 2009-09-07  Richard Henderson  <rth@redhat.com>
7070
7071         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
7072         more VR->OPERANDS than LHS operands.  Free LHS before returning.
7073
7074 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
7075
7076         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
7077         (attr "addrtype"): New member "spreg".
7078         Use it if mem_spfp_address_operand is true for the address.
7079         (attr "type"): New entry "stall".
7080         (cpu_unit "load"): New.
7081         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
7082         "load".
7083         (insn_reservation "loadsp"): New.
7084         (insn_reservation "load_stall1"): New.
7085         (insn_reservation "load_stall3"): New.
7086         (stall): New insn.
7087         * config/bfin/predicates.md (const1_operand, const3_operand): New.
7088         (mem_p_address_operand): Exclude stack and frame pointer based
7089         addresses.
7090         (mem_spfp_address_operand): New; match them here.
7091         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
7092         (bfin_reorg): Call it if scheduling insns.
7093         (bfin_gen_bundles): Remove dummy insns created by
7094         add_sched_insns_for_speculation.
7095
7096         From Jie Zhang <jie.zhang@analog.com>:
7097         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
7098         bfin_si_revision, bfin_workarounds): Move these ...
7099         * config/bfin/bfin.h: ... here.
7100
7101         From Mike Frysinger  <michael.frysinger@analog.com>
7102         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
7103         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
7104         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
7105         bf547m, bf548m, and bf549m.
7106         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
7107         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
7108         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
7109         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
7110         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
7111         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
7112         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
7113         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
7114         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
7115         bf542m, bf544m, bf547m, bf548m, and bf549m.
7116
7117         From Jie Zhang <jie.zhang@analog.com>:
7118         * config/bfin/predicates.md (p_register_operand): New predicate.
7119         (dp_register_operand): New predicate.
7120         * config/bfin/bfin-protos.h (WA_05000074): Define.
7121         (ENABLE_WA_05000074): Define.
7122         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
7123         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
7124         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
7125         (define_attr addrtype): Allow load/store register to be P register.
7126         (define_attr storereg): New.
7127         (define_cpu_unit anomaly_05000074): New.
7128         (define_insn_reservation dsp32shiftimm): New.
7129         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
7130         (define_insn_reservation loadp): Cannot use slot2.
7131         (define_insn_reservation loadsp): Cannot use slot2.
7132         (define_insn_reservation storep): Cannot use slot2. Does not
7133         apply when working around 05000074.
7134         (define_insn_reservation storep_anomaly_05000074): New.
7135         (define_insn_reservation storei): Does not apply when working
7136         around 05000074.
7137         (define_insn_reservation storei_anomaly_05000074): New.
7138         (define_attr length): Add dsp32shiftimm case.
7139         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
7140         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
7141         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
7142         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
7143         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
7144
7145 2009-09-07  Martin Jambor  <mjambor@suse.cz>
7146
7147         PR middle-end/41282
7148         * tree-sra.c (create_artificial_child_access): Return NULL if
7149         build_ref_for_offset fails.
7150         (propagate_subacesses_accross_link): Allow build_ref_for_offset
7151         and create_artificial_child_access to fail.
7152
7153 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
7154
7155         PR c++/41214
7156         * unwind-dw2.c (uw_init_context_1): Mark noinline.
7157         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
7158         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
7159
7160 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
7161
7162         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
7163         block, ensure it has an exit edge.  Emit a barrier after a jump.
7164
7165 2009-09-07  Nick Clifton  <nickc@redhat.com>
7166
7167         * gcc.c (this_is_linker_script): New variable.  Like
7168         this_is_library_file but for the %T constructor.
7169         (end_going_arg): If this_is_linker_script is set then locate the
7170         script and insert a --script switch before it
7171         (do_spec_2): Initialise this_is_linker_script.
7172         (do_spec_1): Likewise.  Handle %T construct.
7173         (eval_spec_function): Preserve this_is_linker_script.
7174         * doc/invoke.texi: Document %T construct in spec files.
7175         * config/m32c/m32c.h (LIB_SPEC): Use it.
7176
7177 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7178
7179         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
7180         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
7181         when volatile flag is set.
7182         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
7183
7184 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
7185
7186         PR bootstrap/41241
7187         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
7188         (combine_stack_adjustments_for_block): Allow insns between stack
7189         adjustments and stores with corresponding pre-(dec|inc)rement or
7190         pre-modify operation.
7191
7192 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
7193
7194         PR bootstrap/41241
7195         * combine-stack-adj.c (struct csa_memlist): Rename to...
7196         (struct csa_reflist): ... this.  Rename mem field to ref.
7197         (free_csa_memlist): Rename to...
7198         (free_csa_reflist): ... this.
7199         (record_one_stack_memref): Rename to...
7200         (record_one_stack_ref): ... this.  Handle also REG_P.
7201         (try_apply_stack_adjustment): Handle also REG_P.
7202         (struct record_stack_memrefs_data): Rename to...
7203         (struct record_stack_refs_data): ... this.  Rename memlist field to
7204         reflist.
7205         (record_stack_memrefs): Rename to...
7206         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
7207         subexpressions instead of failing when a MEM contains SP references.
7208         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
7209         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
7210
7211 2009-09-06  Richard Guenther  <rguenther@suse.de>
7212
7213         PR middle-end/41144
7214         * tree.c (build_array_type): Do not record types marked
7215         with structural equality in the canonical type hashtable.
7216
7217 2009-09-06  Richard Guenther  <rguenther@suse.de>
7218
7219         PR middle-end/41261
7220         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
7221
7222 2009-09-05  Richard Guenther  <rguenther@suse.de>
7223
7224         PR middle-end/41181
7225         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
7226
7227 2009-09-05  Richard Guenther  <rguenther@suse.de>
7228
7229         PR debug/41273
7230         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
7231
7232 2009-09-05  Richard Guenther  <rguenther@suse.de>
7233
7234         PR middle-end/41271
7235         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
7236         before comparing function argument types.
7237
7238 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7239
7240         PR target/41024
7241         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
7242         the assembler.
7243
7244 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
7245
7246         Revert:
7247         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
7248
7249         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
7250         locators before emit_insn is called.
7251
7252 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
7253
7254         PR bootstrap/41241
7255         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
7256         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
7257         (reginfo_init): Don't call allocate_reg_info.
7258
7259 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
7260
7261         PR target/41262
7262         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
7263         NONDEBUG_INSN_P instead of INSN_P.
7264
7265 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
7266
7267         PR debug/41225
7268         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
7269
7270 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
7271
7272         PR target/41252
7273         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
7274         pattern of the split.
7275
7276 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
7277
7278         * toplev.c (process_options): Move setter of flag_var_tracking
7279         before other tests that depend on it.  Move down setter of
7280         flag_rename_registers.  Don't enable var-tracking-assignments
7281         by default if selective scheduling is enabled.  Warn if both
7282         are enabled.
7283
7284 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
7285
7286         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
7287         comment.  Use switch statement to catch overlaps between rtx
7288         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
7289         (IS_DECL_CODE): ... here. Remove.
7290         (check_value_is_not_decl): Remove.
7291         (dv_from_decl, dv_from_value): Check after conversion.
7292
7293 2009-09-04  Richard Guenther  <rguenther@suse.de>
7294
7295         PR middle-end/41257
7296         * (cgraph_finalize_compilation_unit): Move finalizing aliases
7297         after emitting tunks.  Move emitting thunks and ctors from ...
7298         (cgraph_optimize): ... here.  Remove redundant
7299         cgraph_analyze_functions.
7300         * varasm.c (find_decl_and_mark_needed): Remove no longer
7301         necessary check.
7302         (finish_aliases_1): Adjust check for thunk aliases.
7303
7304 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
7305
7306         * config/arm/arm.md (ctzsi2): Added braces
7307         to avoid warning that broke booststrap.
7308
7309 2009-09-04  Martin Jambor  <mjambor@suse.cz>
7310
7311         PR tree-optimization/41112
7312         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
7313         handle variable-bounded arrays.
7314         (expr_with_var_bounded_array_refs_p): New function.
7315         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
7316
7317 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
7318
7319         * config/s390/2097.md: Removed two incorrect bypasses.
7320         (z10_fsimpdf): Fixed latency.
7321         (z10_fhex): New insn_reservation.
7322         (z10_floaddf): Fixed latency.
7323         (z10_floadsf): Fixed latency.
7324         (z10_ftrunctf): Fixed latency.
7325         (z10_ftruncdf): Fixed latency.
7326         * config/s390/s390.c (z10_cost): Fixed values.
7327         (s390_adjust_priority): Added z10 path.
7328         * config/s390/s390.md (type): Added fhex.
7329         (*mov<mode>_64dfp): Updated type attribute.
7330         (*mov<mode>_64): Updated type attribute.
7331         (*mov<mode>_31): Updated type attribute.
7332         (*mov<mode>"): Likewise.
7333         * config/s390/2084.md (x_fsimpdf): Updated condition.
7334
7335 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
7336
7337         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
7338         RTXs in the predicate for operand 1.
7339
7340 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
7341
7342         * config/arm/arm.md (UNSPEC_RBIT): New constant.
7343         (rbitsi2): New insn.
7344         (ctzsi2): New expand.
7345         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
7346
7347 2009-09-03  Martin Jambor  <mjambor@suse.cz>
7348
7349         * tree-sra.c (duplicate_expr_for_different_base): Removed.
7350         (create_artificial_child_access): Use build_ref_for_offset instead
7351         of duplicate_expr_for_different_base.
7352         (propagate_subacesses_accross_link): Likewise.
7353
7354 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
7355
7356         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
7357         of INSN_P.
7358         (mips16e_collect_argument_saves): Skip debug instructions.
7359         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
7360         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
7361         (r10k_insert_cache_barriers): Likewise.
7362         (mips_reorg_process_insns): Likewise.
7363
7364 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
7365
7366         PR bootstrap/41241
7367         * ira.c (update_equiv_reg): Remove check on class likely spill.
7368
7369 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
7370
7371         PR debug/41236
7372         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
7373         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
7374         it or SUBREG.
7375
7376         PR debug/41238
7377         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
7378         the stack slot if it is passed by invisible reference.
7379         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
7380         by invisible reference.
7381
7382 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
7383
7384         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
7385         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
7386         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
7387         0.
7388         * config/bfin/sync.md: New file.
7389         * config/bfin/bfin.md: Include it.
7390         (UNSPEC_ATOMIC): New.
7391         (UNSPEC_ONES): Provide a unique number.
7392
7393         From Jie Zhang <jie.zhang@analog.com>:
7394         * config/bfin/bfin.c (ret_regs): New.
7395         (must_save_fp_p): Don't return true because of frame_pointer_needed.
7396         (must_save_rets_p): New.
7397         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
7398         current_function_is_leaf.
7399         (do_link): Likewise.
7400         (do_unlink): Likewise.
7401         (expand_interrupt_handler_prologue): Use ret_regs array.
7402         (expand_interrupt_handler_epilogue): Use ret_regs array and
7403         pass return register to gen_return_internal.
7404         (bfin_expand_epilogue): Pass return register to
7405         gen_return_internal.
7406         (bfin_expand_call): Explicitly clobber RETS.
7407         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
7408         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
7409         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
7410         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
7411         RETS.
7412         (return_internal): Take a reg rtx rather than the register number.
7413
7414 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
7415
7416         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
7417         when comparing against estimated_loop_iterations_int return.
7418
7419 2009-09-03  Richard Guenther  <rguenther@suse.de>
7420
7421         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
7422         eh_personality_libfunc.
7423
7424 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
7425
7426         * tree-parloops.c (separate_decls_in_region): Add space.
7427
7428 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
7429
7430         * tree-parloops.c (separate_decls_in_region): Change the condition
7431         checking if there are reductions in the loop.
7432
7433 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
7434
7435         PR tree-optimization/38275
7436         * tree-parloops.c (parallelize_loops): Replace profitability condition
7437         for expected number of iterations.
7438
7439 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
7440
7441         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
7442         (bootstrap-debug): Explain conditions in which it becomes default.
7443         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
7444         make it add to it.
7445
7446 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
7447
7448         * doc/invoke.texi (Optimize Options): Move
7449         -finline-small-functions to the -O2 list.
7450
7451 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
7452
7453         * toplev.c (process_options): Enable var-tracking-assignments
7454         by default if var-tracking is enabled.
7455
7456 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
7457
7458         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
7459         barrier.
7460         * emit-rtl.c (prev_nonnote_insn_bb): New function.
7461         * rtl.h (prev_nonnote_insn_bb): Declare it.
7462
7463 2009-09-03  Diego Novillo  <dnovillo@google.com>
7464
7465         * cgraph.c (cgraph_node_for_decl): New.
7466         * cgraph.h (cgraph_node_for_decl): Declare.
7467         * tree.c (host_integerp): Return 0 if T is NULL.
7468
7469 2009-09-03  Diego Novillo  <dnovillo@google.com>
7470
7471         * tree.h (struct alias_pair): Move from varasm.c.
7472         (alias_pairs): Likewise.
7473         (TYPE_MAXVAL): Define.
7474         (TYPE_MINVAL): Define.
7475         (iterative_hash_host_wide_int): Declare.
7476         (remove_unreachable_alias_pairs): Declare.
7477         * tree-pass.h (pass_ipa_free_lang_data): Declare.
7478         * diagnostic.c (default_diagnostic_starter): Make extern.
7479         (default_diagnostic_finalizer): Make extern.
7480         * diagnostic.h (default_diagnostic_starter): Declare.
7481         (default_diagnostic_finalizer): Declare.
7482         (default_tree_printer): Declare.
7483         * toplev.c (default_tree_printer): Make extern.
7484
7485 2009-09-03  Richard Guenther  <rguenther@suse.de>
7486             Diego Novillo  <dnovillo@google.com>
7487
7488         * cgraph.c (cgraph_add_new_function): Remove gimplification.
7489         * cgraphunit.c (cgraph_expand_function): Do not emit
7490         associated thunks from here.
7491         (cgraph_emit_thunks): New.
7492         (cgraph_optimize): Call it.
7493         Return if any IPA pass finds an error.
7494         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
7495         by thunks.
7496
7497 2009-09-03  Simon Baldwin  <simonb@google.com>
7498             Rafael Espindola  <espindola@google.com>
7499             Richard Guenther  <rguenther@suse.de>
7500             Doug Kwan  <dougkwan@google.com>
7501             Diego Novillo  <dnovillo@google.com>
7502
7503         * tree.c: Include tree-pass.h, langhooks-def.h,
7504         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
7505         (free_lang_data_in_type): New.
7506         (need_assembler_name_p): New.
7507         (free_lang_data_in_block): New.
7508         (free_lang_data_in_decl): New.
7509         (struct free_lang_data_d): New.
7510         (add_tree_to_fld_list): New.
7511         (find_decls_types_r): New.
7512         (get_eh_types_for_runtime): New.
7513         (find_decls_types_in_eh_region): New.
7514         (find_decls_types_in_node): New.
7515         (find_decls_types_in_var): New.
7516         (free_lang_data_in_cgraph): New.
7517         (free_lang_data): New.
7518         (gate_free_lang_data): New.
7519         (pass_ipa_free_lang_data): New.
7520
7521 2009-09-03  Diego Novillo  <dnovillo@google.com>
7522
7523         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
7524         * langhooks.h (struct lang_hooks): Add field free_lang_data.
7525         (lang_hooks): Remove const qualifier.
7526         * ipa.c (cgraph_remove_unreachable_nodes): Call
7527         remove_unreachable_alias_pairs.
7528         * except.c (add_type_for_runtime): Check if TYPE has
7529         already been converted.
7530         (lookup_type_for_runtime): Likewise.
7531         (check_handled): Handle converted types.
7532         * varasm.c (remove_unreachable_alias_pairs): New.
7533         * gimple.c: Include demangle.h.
7534         (gimple_decl_printable_name): New.
7535         (gimple_fold_obj_type_ref): New.
7536         * gimple.h (gimple_decl_printable_name): Declare.
7537         (gimple_fold_obj_type_ref): Declare.
7538         * passes.c (init_optimization_passes): Add pass
7539         pass_ipa_free_lang_data.
7540         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
7541         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
7542
7543 2009-09-03  Diego Novillo  <dnovillo@google.com>
7544
7545         * c-lang.c (lang_hooks): Remove const qualifier.
7546
7547 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
7548
7549         * doc/install.texi (*-*-freebsd*): Update target information.
7550
7551 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
7552
7553         * hard-reg-set.h (call_fixed_regs): Remove.
7554         * reginfo.c (call_fixed_regs): Remove.
7555         (init_reg_sets_1): Remove initialization of call_fixed_regs.
7556         (globalize_reg): Don't use call_fixed_regs.
7557         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
7558         call_fixed_regs.
7559
7560 2009-09-01  Michael Matz  <matz@suse.de>
7561
7562         * expr.h (emit_storent_insn, expand_expr_real_1,
7563         expand_expr_real_2): Declare.
7564         * expr.c (emit_storent_insn, expand_expr_real_1,
7565         expand_expr_real_2): Export.
7566         (store_expr): Setting and evaluating dont_return_target is useless.
7567         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
7568         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
7569         * except.c (expand_resx_expr): Rename to ...
7570         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
7571         * except.h (expand_resx_stmt): Declare.
7572         * stmt.c: Add include gimple.h
7573         (expand_asm_expr): Rename to ...
7574         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
7575         (expand_case): Rewrite to take gimple statement.
7576         * tree.h (expand_asm_stmt): Declare.
7577         (expand_case): Change prototype.
7578         * Makefile.in (stmt.o): Depend on gimple.h.
7579         * builtins.c (expand_builtin_synchronize): Build gimple asm
7580         statement, not an ASM_EXPR.
7581         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
7582         gimple_to_tree, release_stmt_tree): Remove.
7583         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
7584         ggc_free, but hold comparison code and operands separately.
7585         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
7586         (expand_call_stmt, expand_gimple_stmt_1,
7587         expand_gimple_stmt): New helpers.
7588         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
7589         release_stmt_tree.  Call expand_gimple_stmt instead.
7590         (expand_gimple_basic_block): Ditto.
7591
7592         * calls.c (emit_call_1): Don't look at EH regions here, make
7593         fntree parameter useless.
7594         (expand_call): New local rettype for TREE_TYPE(exp), use it
7595         throughout.  Remove local p, use addr instead.
7596         Don't look at EH regions here.
7597
7598 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
7599
7600         * doc/invoke.texi (-fsched-pressure): Document it.
7601         (-fsched-reg-pressure-heuristic): Remove it.
7602
7603         * reload.c (ira.h): Include.
7604         (find_reloads): Add choosing reload on number of small spilled
7605         classes.
7606
7607         * haifa-sched.c (ira.h): Include.
7608         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
7609         saved_reg_pressure, curr_reg_live, saved_reg_live,
7610         region_ref_regs): New variables.
7611         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
7612         initiate_reg_pressure_info, setup_ref_regs,
7613         initiate_bb_reg_pressure_info, save_reg_pressure,
7614         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
7615         functions.
7616         (setup_insn_reg_pressure_info): New function.
7617         (rank_for_schedule): Add pressure checking and insn issue time.
7618         Remove comparison of insn reg weights.
7619         (ready_sort): Set insn reg pressure info.
7620         (update_register_pressure, setup_insn_max_reg_pressure,
7621         update_reg_and_insn_max_reg_pressure,
7622         sched_setup_bb_reg_pressure_info): New functions.
7623         (schedule_insn): Add code for printing and updating reg pressure info.
7624         (find_set_reg_weight, find_insn_reg_weight): Remove.
7625         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
7626         (debug_ready_list): Print reg pressure info.
7627         (schedule_block): Ditto.  Check insn issue time.
7628         (sched_init): Set up sched_pressure_p.  Allocate and set up some
7629         reg pressure related info.
7630         (sched_finish): Free some reg pressure related info.
7631         (fix_tick_ready): Make insn always ready if pressure_p.
7632         (init_h_i_d): Don't call find_insn_reg_weight.
7633         (haifa_finish_h_i_d): Free insn reg pressure info.
7634
7635         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
7636         ira_memory_move_cost, ira_class_hard_regs,
7637         ira_class_hard_regs_num, ira_no_alloc_regs,
7638         ira_available_class_regs, ira_reg_class_cover_size,
7639         ira_reg_class_cover, ira_class_translate): Move to ira.h.
7640
7641         * ira-lives.c (single_reg_class): Check mode to find how many
7642         registers are necessary for operand.
7643         (ira_implicitly_set_insn_hard_regs): New.
7644
7645         * common.opt (fsched-pressure): New options.
7646         (fsched-reg-pressure-heuristic): Remove.
7647
7648         * ira.c (setup_eliminable_regset): Rename to
7649         ira_setup_eliminable_regset.  Make it external.
7650         (expand_reg_info): Pass cover class to setup_reg_classes.
7651         (ira): Call resize_reg_info instead of allocate_reg_info.
7652
7653         * sched-deps.c: Include ira.h.
7654         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
7655         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
7656         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
7657         mark_insn_hard_regno_birth, mark_insn_reg_birth,
7658         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
7659         mark_insn_reg_store, mark_insn_reg_clobber,
7660         setup_insn_reg_pressure_info): New.
7661         (sched_analyze_1): Update implicit_reg_pending_uses.
7662         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
7663         Use them to create dependencies.  Set insn reg uses and pressure
7664         info.  Process reg_pending_uses in one place.
7665         (free_deps): Free implicit sets.
7666         (remove_from_deps): Remove implicit sets if necessary.  Check
7667         implicit sets when clearing reg_last_in_use.
7668         (init_deps_global): Clear implicit_reg_pending_clobbers and
7669         implicit_reg_pending_uses.
7670
7671         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
7672         ira_memory_move_cost, ira_class_hard_regs,
7673         ira_class_hard_regs_num, ira_no_alloc_regs,
7674         ira_available_class_regs, ira_reg_class_cover_size,
7675         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
7676         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
7677         ira_implicitly_set_insn_hard_regs): New prototypes.
7678
7679         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
7680         cost_elements_num): New variables.
7681         (allocno_costs, total_costs): Rename to costs and
7682         total_allocno_costs.
7683         (COSTS_OF_ALLOCNO): Rename to COSTS.
7684         (allocno_pref): Rename to pref.
7685         (allocno_pref_buffer): Rename to pref_buffer.
7686         (common_classes): Rename to regno_cover_class.
7687         (COST_INDEX): New.
7688         (record_reg_classes): Set allocno attributes only if allocno_p.
7689         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
7690         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
7691         and COSTS_OF_ALLOCNO.
7692         (print_costs): Rename to print_allocno_costs.
7693         (print_pseudo_costs): New.
7694         (process_bb_node_for_costs): Split into 2 functions with new
7695         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
7696         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
7697         new parameter dump_file.  Use cost_elements_num instead of
7698         ira_allocnos_num.  Make one iteration if preferred classes were
7699         already calculated for scheduler.  Make 2 versions of code
7700         depending on allocno_p.
7701         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
7702         regno_cover_class and COSTS instead of common_classes and
7703         COSTS_OF_ALLOCNO.
7704         (init_costs, finish_costs): New.
7705         (ira_costs): Set up allocno_p and cost_elements_num.  Call
7706         init_costs and finish_costs.
7707         (ira_set_pseudo_classes): New.
7708
7709         * rtl.h (allocate_reg_info): Remove.
7710         (resize_reg_info): Change return type.
7711         (reg_cover_class): New.
7712         (setup_reg_classes): Add new parameter.
7713
7714         * sched-int.h (struct deps_reg): New member implicit_sets.
7715         (sched_pressure_p, sched_regno_cover_class): New external definitions.
7716         (INCREASE_BITS): New macro.
7717         (struct reg_pressure_data, struct reg_use_data): New.
7718         (struct _haifa_insn_data): Remove reg_weight.  Add members
7719         reg_pressure, reg_use_list, reg_set_list, and
7720         reg_pressure_excess_cost_change.
7721         (struct deps): New member implicit_sets.
7722         (pressure_p): New variable.
7723         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
7724         (struct reg_pressure_data, struct reg_use_data): New.
7725         (INSN_REG_WEIGHT): Remove.
7726         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
7727         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
7728         (sched_init_region_reg_pressure_info,
7729         sched_setup_bb_reg_pressure_info): New prototypes.
7730
7731         * reginfo.c (struct reg_pref): New member coverclass.
7732         (reg_cover_class): New function.
7733         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
7734         (reg_info_size): New variable.
7735         (allocate_reg_info): Make static.  Setup reg_info_size.
7736         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
7737         (setup_reg_classes): Add a new parameter.  Setup cover class too.
7738
7739         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
7740         the dependencies.
7741
7742         * sched-rgn.c (deps_join): Set up implicit_sets.
7743         (schedule_region): Set up region and basic blocks pressure
7744         relative info.
7745
7746         * passes.c (init_optimization_passes): Move
7747         pass_subregs_of_mode_init before pass_sched.
7748
7749 2009-09-02  Martin Jambor  <mjambor@suse.cz>
7750
7751         * tree-sra.c (struct access): New field grp_hint.
7752         (dump_access): Dump grp_hint.
7753         (sort_and_splice_var_accesses): Set grp_hint if a group is read
7754         multiple times.
7755         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
7756         those which have been specifically read and somehow written to.
7757         (propagate_subacesses_accross_link): Set grp_hint of right child and
7758         also possibly of the left child.
7759
7760 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
7761
7762         * tree-object-size.c (addr_object_size): Always use object_size_type
7763         0 or 2 when determining the pointer pointed object size.
7764
7765 2009-09-02  Richard Guenther  <rguenther@suse.de>
7766
7767         Revert
7768         2009-08-31  Richard Guenther  <rguenther@suse.de>
7769
7770         * builtins.c (fold_builtin_memory_op): Use the alias oracle
7771         to query if the memory regions for memmove overlap.
7772         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
7773         asserts on pointers, instead deal with odd trees.
7774         (ptr_derefs_may_alias_p): Likewise.
7775         (refs_may_alias_p_1): Constructor bases also never alias.
7776
7777 2009-08-01  Christian Bruel  <christian.bruel@st.com>
7778
7779         Revert:
7780         2009-07-31  Christian Bruel  <christian.bruel@st.com>
7781         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
7782
7783 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
7784
7785         * doc/invoke.texi (-fvar-tracking-assignments): New.
7786         (-fvar-tracking-assignments-toggle): New.
7787         (-fdump-final-insns=file): Mark filename as optional.
7788         (--param min-nondebug-insn-uid): New.
7789         (-gdwarf-@{version}): Mention version 4.
7790         * opts.c (common_handle_option): Accept it.
7791         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
7792         * regrename.c (regrename_optimize): Drop last.  Don't count debug
7793         insns as uses.  Don't reject change because of debug insn.
7794         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
7795         from the chain starter, and check for inexact matches in DEBUG_INSNS.
7796         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
7797         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
7798         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
7799         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
7800         * doc/gimple.texi (is_gimple_debug): New.
7801         (gimple_debug_bind_p): New.
7802         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
7803         * doc/install.texi (bootstrap-debug): More details.
7804         (bootstrap-debug-big, bootstrap-debug-lean): Document.
7805         (bootstrap-debug-lib): More details.
7806         (bootstrap-debug-ckovw): Update.
7807         (bootstrap-time): New.
7808         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
7809         (insert_phi_nodes_for): Insert debug stmts.
7810         (rewrite_stmt): Take iterator.  Insert debug stmts.
7811         (rewrite_enter_block): Adjust.
7812         (maybe_replace_use_in_debug_stmt): New.
7813         (rewrite_update_stmt): Use it.
7814         (mark_use_interesting): Return early for debug stmts.
7815         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
7816         stmts before replacing stmt.
7817         (move_computations_stmt): Likewise.
7818         * ira-conflicts.c (add_copies): Skip debug insns.
7819         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
7820         (regstat_bb_compute_ri): Skip debug insns.
7821         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
7822         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
7823         check_loop_closed_ssa_stmt): Skip debug stmts.
7824         * tree-tailcall.c (find_tail_calls): Likewise.
7825         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7826         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
7827         (build_var_debug_value_stat): Declare.
7828         (build_var_debug_value): Define.
7829         (target_for_debug_bind): Declare.
7830         * reload.c (find_equiv_reg): Skip debug insns.
7831         * rtlanal.c (reg_used_between_p): Skip debug insns.
7832         (side_effects_p): Likewise.
7833         (canonicalize_condition): Likewise.
7834         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
7835         insns never depend on debug insns.
7836         (create_ddg_dep_no_link): Likewise.
7837         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
7838         Don't add inter-loop dependencies for debug insns.
7839         (build_intra_loop_deps): Likewise.
7840         (create_ddg): Count debug insns.
7841         * ddg.h (struct ddg::num_debug): New.
7842         (num_backargs): Pair up with previous int field.
7843         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
7844         -fcompare-debug-second.
7845         * final.c (get_attr_length_1): Skip debug insns.
7846         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
7847         * gcc.c (invoke_as): Call compare-debug-dump-opt.
7848         (driver_self_specs): Map -fdump-final-insns to
7849         -fdump-final-insns=..
7850         (get_local_tick): New.
7851         (compare_debug_dump_opt_spec_function): Test for . argument and
7852         compute output name.  Compute temp output spec without flag name.
7853         Compute -frandom-seed.
7854         (OPT): Undef after use.
7855         * cfgloopanal.c (num_loop_insns): Skip debug insns.
7856         (average_num_loop_insns): Likewise.
7857         * params.h (MIN_NONDEBUG_INSN_UID): New.
7858         * gimple.def (GIMPLE_DEBUG): New.
7859         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
7860         * auto-inc-dec.c (merge_in_block): Skip debug insns.
7861         (merge_in_block): Fix whitespace.
7862         * toplev.c (flag_var_tracking): Update comment.
7863         (flag_var_tracking_assignments): New.
7864         (flag_var_tracking_assignments_toggle): New.
7865         (process_options): Don't open final insns dump file if we're not
7866         going to write to it.  Compute defaults for var_tracking.
7867         * df-scan.c (df_insn_rescan_debug_internal): New.
7868         (df_uses_record): Handle debug insns.
7869         * haifa-sched.c (ready): Initialize n_debug.
7870         (contributes_to_priority): Skip debug insns.
7871         (dep_list_size): New.
7872         (priority): Use it.
7873         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
7874         they're ready.  Disregard previous debug insns to make decisions.
7875         (queue_insn): Never queue debug insns.
7876         (ready_add, ready_remove_first, ready_remove): Count debug insns.
7877         (schedule_insn): Don't reject debug insns because of issue rate.
7878         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
7879         (queue_to_ready): Skip and discount debug insns.
7880         (choose_ready): Let debug insns through.
7881         (schedule_block): Check boundary debug insns.  Discount debug
7882         insns, schedule them early.  Adjust whitespace.
7883         (set_priorities): Check for boundary debug insns.
7884         (add_jump_dependencies): Use dep_list_size.
7885         (prev_non_location_insn): New.
7886         (check_cfg): Use it.
7887         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
7888         stmts.
7889         (remove_unused_ivs): Reset debug stmts.
7890         * modulo-sched.c (const_iteration_count): Skip debug insns.
7891         (res_MII): Discount debug insns.
7892         (loop_single_full_bb_p): Skip debug insns.
7893         (sms_schedule): Likewise.
7894         (sms_schedule_by_order): Likewise.
7895         (ps_has_conflicts): Likewise.
7896         * caller-save.c (refmarker_fn): New.
7897         (save_call_clobbered_regs): Replace regs with saved mem in
7898         debug insns.
7899         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
7900         Call refmarker_fn mark for hardregnos.
7901         (mark_reg_as_referenced): New.
7902         (replace_reg_with_saved_mem): New.
7903         * ipa-pure-const.c (check_stmt): Skip debug stmts.
7904         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
7905         searching back.
7906         (cse_extended_basic_block): Skip debug insns.
7907         (count_reg_usage): Likewise.
7908         (is_dead_reg): New, split out of...
7909         (set_live_p): ... here.
7910         (insn_live_p): Use it for debug insns.
7911         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
7912         (execute_optimize_stdarg): Likewise.
7913         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
7914         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
7915         changes in debug stmts as changes.
7916         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
7917         (moveup_expr): Don't move across debug insns.  Don't move
7918         debug insn if it would create a bookkeeping block.
7919         (moveup_expr_cached): Don't use cache for debug insns that
7920         are heads of blocks.
7921         (compute_av_set_inside_bb): Skip debug insns.
7922         (sel_rank_for_schedule): Schedule debug insns first.  Remove
7923         dead code.
7924         (block_valid_for_bookkeeping_p); Support lax searches.
7925         (create_block_for_bookkeeping): Adjust block numbers when
7926         encountering debug-only blocks.
7927         (find_place_for_bookkeeping): Deal with debug-only blocks.
7928         (generate_bookkeeping_insn): Accept no place to insert.
7929         (remove_temp_moveop_nops): New argument full_tidying.
7930         (prepare_place_to_insert): Deal with debug insns.
7931         (advance_state_on_fence): Debug insns don't start cycles.
7932         (update_boundaries): Take fence as argument.  Deal with
7933         debug insns.
7934         (schedule_expr_on_boundary): No full_tidying on debug insns.
7935         (fill_insns): Deal with debug insns.
7936         (track_scheduled_insns_and_blocks): Don't count debug insns.
7937         (need_nop_to_preserve_insn_bb): New, split out of...
7938         (remove_insn_from_stream): ... this.
7939         (fur_orig_expr_not_found): Skip debug insns.
7940         * rtl.def (VALUE): Move up.
7941         (DEBUG_INSN): New.
7942         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
7943         (nearest_common_dominator_of_uses): Take debug_stmts argument.
7944         Set it if debug stmts are found.
7945         (statement_sink_location): Skip debug stmts.  Propagate
7946         moving defs into debug stmts.
7947         * ifcvt.c (first_active_insn): Skip debug insns.
7948         (last_active_insns): Likewise.
7949         (cond_exec_process_insns): Likewise.
7950         (noce_process_if_block): Likewise.
7951         (check_cond_move_block): Likewise.
7952         (cond_move_convert_if_block): Likewise.
7953         (block_jumps_and_fallthru_p): Likewise.
7954         (dead_or_predicable): Likewise.
7955         * dwarf2out.c (debug_str_hash_forced): New.
7956         (find_AT_string): Add comment.
7957         (gen_label_for_indirect_string): New.
7958         (get_debug_string_label): New.
7959         (AT_string_form): Use it.
7960         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
7961         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
7962         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
7963         several operations that cannot be represented with DWARF opcodes.
7964         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
7965         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
7966         (dwarf2out_var_location): Take during-call mark into account.
7967         (output_indirect_string): Update comment.  Output if there are
7968         label and references.
7969         (prune_indirect_string): New.
7970         (prune_unused_types): Call it if debug_str_hash_forced.
7971         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
7972         (dw_long_long_const): Remove.
7973         (struct dw_val_struct): Change val_long_long type to rtx.
7974         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
7975         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
7976         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
7977         component instead of HOST_BITS_PER_LONG.
7978         (output_loc_operands): Likewise.  For const8* assert
7979         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
7980         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
7981         rather than HOST_BITS_PER_LONG is >= 64.
7982         (add_AT_long_long): Remove val_hi and val_lo arguments, add
7983         val_const_double.
7984         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
7985         HOST_BITS_PER_LONG for dw_val_class_long_long.
7986         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
7987         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
7988         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
7989         DW_OP_stack_value.
7990         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
7991         Handle DW_OP_implicit_value.
7992         (extract_int): Move prototype earlier.
7993         (mem_loc_descriptor): For SUBREG punt if inner
7994         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
7995         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
7996         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
7997         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
7998         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
7999         instead of Pmode size.
8000         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
8001         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
8002         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
8003         (concat_loc_descriptor, concatn_loc_descriptor,
8004         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
8005         (add_location_or_const_value_attribute): Likewise.  For single
8006         location loc_lists attempt to use add_const_value_attribute
8007         for constant decls.  Add DW_AT_const_value even if
8008         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
8009         in its expression.
8010         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
8011         (control_flow_insn_p): Likewise.
8012         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
8013         (separate_decls_in_region_debug_bind): New.
8014         (separate_decls_in_region): Process debug bind stmts afterwards.
8015         * recog.c (verify_changes): Handle debug insns.
8016         (extract_insn): Likewise.
8017         (peephole2_optimize): Skip debug insns.
8018         * dse.c (scan_insn): Skip debug insns.
8019         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
8020         Pass it on.
8021         (setup_id_for_insn): Handle debug insns.
8022         (maybe_tidy_empty_bb): Adjust whitespace.
8023         (tidy_control_flow): Skip debug insns.
8024         (sel_remove_insn): Adjust for debug insns.
8025         (sel_estimate_number_of_insns): Skip debug insns.
8026         (create_insn_rtx_from_pattern): Handle debug insns.
8027         (create_copy_of_insn_rtx): Likewise.
8028         * sel-sched-.h (sel_bb_end): Declare.
8029         (sel_bb_empty_or_nop_p): New.
8030         (get_all_loop_exits): Use it.
8031         (_eligible_successor_edge_p): Likewise.
8032         (return_nop_to_pool): Adjust.
8033         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
8034         * ira-lives.c (process_bb_node_lives): Skip debug insns.
8035         * gimple-pretty-print.c (dump_gimple_debug): New.
8036         (dump_gimple_stmt): Use it.
8037         (dump_bb_header): Skip gimple debug stmts.
8038         * regmove.c (optimize_reg_copy_1): Discount debug insns.
8039         (fixup_match_2): Likewise.
8040         (regmove_backward_pass): Likewise.  Simplify combined
8041         replacement.  Handle debug insns.
8042         * function.c (instantiate_virtual_regs): Handle debug insns.
8043         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
8044         * print-rtl.h: Include cselib.h.
8045         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
8046         * df.h (df_inns_rescan_debug_internal): Declare.
8047         * gcse.c (alloc_hash_table): Estimate n_insns.
8048         (cprop_insn): Don't regard debug insns as changes.
8049         (bypass_conditional_jumps): Skip debug insns.
8050         (one_pre_gcse_pass): Adjust.
8051         (one_code_hoisting_pass): Likewise.
8052         (compute_ld_motion_mems): Skip debug insns.
8053         (one_cprop_pass): Adjust.
8054         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
8055         (if_convertible_stmt_p): Handle debug stmts.
8056         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
8057         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
8058         * ira-build.c (create_bb_allocnos): Skip debug insns.
8059         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
8060         (has_single_use): Likewise.
8061         (single_imm_use): Likewise.
8062         (num_imm_uses): Likewise.
8063         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
8064         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
8065         (create_outofssa_var_map): Likewise.
8066         * lower-subreg.c (adjust_decomposed_uses): New.
8067         (resolve_debug): New.
8068         (decompose_multiword_subregs): Use it.
8069         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
8070         * emit-rtl.c: Include params.h.
8071         (cur_debug_insn_uid): Define.
8072         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
8073         (copy_rtx_if_shared_1): Handle debug insns.
8074         (reset_used_flags): Likewise.
8075         (set_used_flags): LIkewise.
8076         (get_max_insn_count): New.
8077         (next_nondebug_insn): New.
8078         (prev_nondebug_insn): New.
8079         (make_debug_insn_raw): New.
8080         (emit_insn_before_noloc): Handle debug insns.
8081         (emit_jump_insn_before_noloc): Likewise.
8082         (emit_call_insn_before_noloc): Likewise.
8083         (emit_debug_insn_before_noloc): New.
8084         (emit_insn_after_noloc): Handle debug insns.
8085         (emit_jump_insn_after_noloc): Likewise.
8086         (emit_call_insn_after_noloc): Likewise.
8087         (emit_debug_insn_after_noloc): Likewise.
8088         (emit_insn_after): Take loc from earlier non-debug insn.
8089         (emit_jump_insn_after): Likewise.
8090         (emit_call_insn_after): Likewise.
8091         (emit_debug_insn_after_setloc): New.
8092         (emit_debug_insn_after): New.
8093         (emit_insn_before): Take loc from later non-debug insn.
8094         (emit_jump_insn_before): Likewise.
8095         (emit_call_insn_before): Likewise.
8096         (emit_debug_insn_before_setloc): New.
8097         (emit_debug_insn_before): New.
8098         (emit_insn): Handle debug insns.
8099         (emit_debug_insn): New.
8100         (emit_jump_insn): Handle debug insns.
8101         (emit_call_insn): Likewise.
8102         (emit): Likewise.
8103         (init_emit): Take min-nondebug-insn-uid into account.
8104         Initialize cur_debug_insn_uid.
8105         (emit_copy_of_insn_after): Handle debug insns.
8106         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
8107         location of single rhs in place.
8108         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
8109         (floor_sdiv_adjust): New.
8110         (cell_sdiv_adjust): New.
8111         (cell_udiv_adjust): New.
8112         (round_sdiv_adjust): New.
8113         (round_udiv_adjust): New.
8114         (wrap_constant): Moved from cselib.
8115         (unwrap_constant): New.
8116         (expand_debug_expr): New.
8117         (expand_debug_locations): New.
8118         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
8119         debug bind stmts.
8120         (gimple_expand_cfg): Expand debug locations.
8121         * cselib.c: Include tree-pass.h.
8122         (struct expand_value_data): New.
8123         (cselib_record_sets_hook): New.
8124         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
8125         (cselib_clear_table): Move, and implemnet in terms of...
8126         (cselib_reset_table_with_next_value): ... this.
8127         (cselib_get_next_unknown_value): New.
8128         (discard_useless_locs): Don't discard preserved values.
8129         (cselib_preserve_value): New.
8130         (cselib_preserved_value_p): New.
8131         (cselib_preserve_definitely): New.
8132         (cselib_clear_preserve): New.
8133         (cselib_preserve_only_values): New.
8134         (new_cselib_val): Take rtx argument.  Dump it in details.
8135         (cselib_lookup_mem): Adjust.
8136         (expand_loc): Take regs_active in struct.  Adjust.  Silence
8137         dumps unless details are requested.
8138         (cselib_expand_value_rtx_cb): New.
8139         (cselib_expand_value_rtx): Rename and reimplment in terms of...
8140         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
8141         without details.  Copy more subregs.  Try to resolve values
8142         using a callback.  Wrap constants.
8143         (cselib_subst_to_values): Adjust.
8144         (cselib_log_lookup): New.
8145         (cselib_lookup): Call it.
8146         (cselib_invalidate_regno): Don't count preserved values as useless.
8147         (cselib_invalidate_mem): Likewise.
8148         (cselib_record_set): Likewise.
8149         (struct set): Renamed to cselib_set, moved to cselib.h.
8150         (cselib_record_sets): Adjust.  Call hook.
8151         (cselib_process_insn): Reset table when it would be cleared.
8152         (dump_cselib_val): New.
8153         (dump_cselib_table): New.
8154         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
8155         (remove_forwarder_block): Support moving debug stmts.
8156         * cselib.h (cselib_record_sets_hook): Declare.
8157         (cselib_expand_callback): New type.
8158         (cselib_expand_value_rtx_cb): Declare.
8159         (cselib_reset_table_with_next_value): Declare.
8160         (cselib_get_next_unknown_value): Declare.
8161         (cselib_preserve_value): Declare.
8162         (cselib_preserved_value_p): Declare.
8163         (cselib_preserve_only_values): Declare.
8164         (dump_cselib_table): Declare.
8165         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
8166         (try_crossjump_to_edge): Likewise.
8167         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
8168         dominated blocks when debug stmts are present.
8169         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
8170         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
8171         (set_var_live_on_entry): Likewise.
8172         * loop-invariant.c (find_invariants_bb): Skip debug insns.
8173         * cfglayout.c (curr_location, last_location): Make static.
8174         (set_curr_insn_source_location): Don't avoid bouncing.
8175         (get_curr_insn_source_location): New.
8176         (get_curr_insn_block): New.
8177         (duplicate_insn_chain): Handle debug insns.
8178         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
8179         into debug stmts.
8180         * common.opt (fcompare-debug): Move to sort order.
8181         (fdump-unnumbered-links): Likewise.
8182         (fvar-tracking-assignments): New.
8183         (fvar-tracking-assignments-toggle): New.
8184         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
8185         because of debug stmts.
8186         (mark_stmt_if_obviously_necessary): Mark debug stmts.
8187         (eliminate_unnecessary_stmts): Walk dominated blocks before
8188         dominators.
8189         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
8190         * ira.c (memref_used_between_p): Skip debug insns.
8191         (update_equiv_regs): Likewise.
8192         * sched-deps.c (sd_lists_size): Accept empty list.
8193         (sd_init_insn): Mark debug insns.
8194         (sd_finish_insn): Unmark them.
8195         (sd_add_dep): Reject non-debug deps on debug insns.
8196         (fixup_sched_groups): Give debug insns group treatment.
8197         Skip debug insns.
8198         (sched_analyze_reg): Don't mark debug insns for sched before call.
8199         (sched_analyze_2): Handle debug insns.
8200         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
8201         insns.
8202         (deps_analyze_insn): Handle debug insns.
8203         (deps_start_bb): Skip debug insns.
8204         (init_deps): Initialize last_debug_insn.
8205         * tree-ssa.c (target_for_debug_bind): New.
8206         (find_released_ssa_name): New.
8207         (propagate_var_def_into_debug_stmts): New.
8208         (propagate_defs_into_debug_stmts): New.
8209         (verify_ssa): Skip debug bind stmts without values.
8210         (warn_uninialized_vars): Skip debug stmts.
8211         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
8212         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
8213         (rtx_equal_p): Likewise.
8214         * ira-costs.c (scan_one_insn): Skip debug insns.
8215         (process_bb_node_for_hard_reg_moves): Likewise.
8216         * rtl.h (DEBUG_INSN_P): New.
8217         (NONDEBUG_INSN_P): New.
8218         (MAY_HAVE_DEBUG_INSNS): New.
8219         (INSN_P): Accept debug insns.
8220         (RTX_FRAME_RELATED_P): Likewise.
8221         (INSN_DELETED_P): Likewise
8222         (PAT_VAR_LOCATION_DECL): New.
8223         (PAT_VAR_LOCATION_LOC): New.
8224         (PAT_VAR_OCATION_STATUS): New.
8225         (NOTE_VAR_LOCATION_DECL): Reimplement.
8226         (NOTE_VAR_LOCATION_LOC): Likewise.
8227         (NOTE_VAR_LOCATION_STATUS): Likewise.
8228         (INSN_VAR_LOCATION): New.
8229         (INSN_VAR_LOCATION_DECL): New.
8230         (INSN_VAR_LOCATION_LOC): New.
8231         (INSN_VAR_LOCATION_STATUS): New.
8232         (gen_rtx_UNKNOWN_VAR_LOC): New.
8233         (VAR_LOC_UNKNOWN_P): New.
8234         (NOTE_DURING_CALL_P): New.
8235         (SCHED_GROUP_P): Accept debug insns.
8236         (emit_debug_insn_before): Declare.
8237         (emit_debug_insn_before_noloc): Declare.
8238         (emit_debug_insn_beore_setloc): Declare.
8239         (emit_debug_insn_after): Declare.
8240         (emit_debug_insn_after_noloc): Declare.
8241         (emit_debug_insn_after_setloc): Declare.
8242         (emit_debug_insn): Declare.
8243         (make_debug_insn_raw): Declare.
8244         (prev_nondebug_insn): Declare.
8245         (next_nondebug_insn): Declare.
8246         (delegitimize_mem_from_attrs): Declare.
8247         (get_max_insn_count): Declare.
8248         (wrap_constant): Declare.
8249         (unwrap_constant): Declare.
8250         (get_curr_insn_source_location): Declare.
8251         (get_curr_insn_block): Declare.
8252         * tree-inline.c (insert_debug_decl_map): New.
8253         (processing_debug_stmt): New.
8254         (remap_decl): Don't create new mappings in debug stmts.
8255         (remap_gimple_op_r): Don't add references in debug stmts.
8256         (copy_tree_body_r): Likewise.
8257         (remap_gimple_stmt): Handle debug bind stmts.
8258         (copy_bb): Skip debug stmts.
8259         (copy_edges_for_bb): Likewise.
8260         (copy_debug_stmt): New.
8261         (copy_debug_stmts): New.
8262         (copy_body): Copy debug stmts at the end.
8263         (insert_init_debug_bind): New.
8264         (insert_init_stmt): Take id.  Skip and emit debug stmts.
8265         (setup_one_parameter): Remap variable earlier, register debug mapping.
8266         (estimate_num_insns): Skip debug stmts.
8267         (expand_call_inline): Preserve debug_map.
8268         (optimize_inline_calls): Check for no debug_stmts left-overs.
8269         (unsave_expr_now): Preserve debug_map.
8270         (copy_gimple_seq_and_replace_locals): Likewise.
8271         (tree_function_versioning): Check for no debug_stmts left-overs.
8272         Init and destroy debug_map as needed.  Split edges unconditionally.
8273         (build_duplicate_type): Init and destroy debug_map as needed.
8274         * tree-inline.h: Include gimple.h instead of pointer-set.h.
8275         (struct copy_body_data): Add debug_stmts and debug_map.
8276         * sched-int.h (struct ready_list): Add n_debug.
8277         (struct deps): Add last_debug_insn.
8278         (DEBUG_INSN_SCHED_P): New.
8279         (BOUNDARY_DEBUG_INSN_P): New.
8280         (SCHEDULE_DEBUG_INSN_P): New.
8281         (sd_iterator_cond): Accept empty list.
8282         * combine.c (create_log_links): Skip debug insns.
8283         (combine_instructions): Likewise.
8284         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
8285         return value is always unshared.
8286         (struct rtx_subst_pair): New.
8287         (auto_adjust_pair): New.
8288         (propagate_for_debug_subst): New.
8289         (propagate_for_debug): New.
8290         (try_combine): Skip debug insns.  Propagate removed defs into
8291         debug insns.
8292         (next_nonnote_nondebug_insn): New.
8293         (distribute_notes): Use it.  Skip debug insns.
8294         (distribute_links): Skip debug insns.
8295         * tree-outof-ssa.c (set_location_for_edge): Likewise.
8296         * resource.c (mark_target_live_regs): Likewise.
8297         * var-tracking.c: Include cselib.h and target.h.
8298         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
8299         MO_VAL_SET.
8300         (micro_operation_type_name): New.
8301         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
8302         (struct micro_operation_def): Update comments.
8303         (decl_or_value): New type.  Use instead of decls.
8304         (struct emit_note_data_def): Add vars.
8305         (struct attrs_def): Use decl_or_value.
8306         (struct variable_tracking_info_def): Add permp, flooded.
8307         (struct location_chain_def): Update comment.
8308         (struct variable_part_def): Use decl_or_value.
8309         (struct variable_def): Make var_part a variable length array.
8310         (valvar_pool): New.
8311         (scratch_regs): New.
8312         (cselib_hook_called): New.
8313         (dv_is_decl_p): New.
8314         (dv_is_value_p): New.
8315         (dv_as_decl): New.
8316         (dv_as_value): New.
8317         (dv_as_opaque): New.
8318         (dv_onepart_p): New.
8319         (dv_pool): New.
8320         (IS_DECL_CODE): New.
8321         (check_value_is_not_decl): New.
8322         (dv_from_decl): New.
8323         (dv_from_value): New.
8324         (dv_htab_hash): New.
8325         (variable_htab_hash): Use it.
8326         (variable_htab_eq): Support values.
8327         (variable_htab_free): Free from the right pool.
8328         (attrs_list_member, attrs_list_insert): Use decl_or_value.
8329         (attrs_list_union): Adjust.
8330         (attrs_list_mpdv_union): New.
8331         (tie_break_pointers): New.
8332         (canon_value_cmp): New.
8333         (unshare_variable): Return possibly-modified slot.
8334         (vars_copy_1): Adjust.
8335         (var_reg_decl_set): Adjust.  Split out of...
8336         (var_reg_set): ... this.
8337         (get_init_value): Adjust.
8338         (var_reg_delete_and_set): Adjust.
8339         (var_reg_delete): Adjust.
8340         (var_regno_delete): Adjust.
8341         (var_mem_decl_set): Split out of...
8342         (var_mem_set): ... this.
8343         (var_mem_delete_and_set): Adjust.
8344         (var_mem_delete): Adjust.
8345         (val_store): New.
8346         (val_reset): New.
8347         (val_resolve): New.
8348         (variable_union): Adjust.  Speed up merge of 1-part vars.
8349         (variable_canonicalize): Use unshared slot.
8350         (VALUED_RECURSED_INTO): New.
8351         (find_loc_in_1pdv): New.
8352         (struct dfset_merge): New.
8353         (insert_into_intersection): New.
8354         (intersect_loc_chains): New.
8355         (loc_cmp): New.
8356         (canonicalize_loc_order_check): New.
8357         (canonicalize_values_mark): New.
8358         (canonicalize_values_star): New.
8359         (variable_merge_over_cur): New.
8360         (variable_merge_over_src): New.
8361         (dataflow_set_merge): New.
8362         (dataflow_set_equiv_regs): New.
8363         (remove_duplicate_values): New.
8364         (struct dfset_post_merge): New.
8365         (variable_post_merge_new_vals): New.
8366         (variable_post_merge_perm_vals): New.
8367         (dataflow_post_merge_adjust): New.
8368         (find_mem_expr_in_1pdv): New.
8369         (dataflow_set_preserve_mem_locs): New.
8370         (dataflow_set_remove_mem_locs): New.
8371         (dataflow_set_clear_at_call): New.
8372         (onepart_variable_different_p): New.
8373         (variable_different_p): Use it.
8374         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
8375         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
8376         if not needed.
8377         (track_loc_p): Pass it true.
8378         (struct count_use_info): New.
8379         (find_use_val): New.
8380         (replace_expr_with_values): New.
8381         (log_op_type): New.
8382         (use_type): New, partially split out of...
8383         (count_uses): ... this.  Count new micro-ops.
8384         (count_uses_1): Adjust.
8385         (count_stores): Adjust.
8386         (count_with_sets): New.
8387         (VAL_NEEDS_RESOLUTION): New.
8388         (VAL_HOLDS_TRACK_EXPR): New.
8389         (VAL_EXPR_IS_COPIED): New.
8390         (VAL_EXPR_IS_CLOBBERED): New.
8391         (add_uses): Adjust.  Generate new micro-ops.
8392         (add_uses_1): Adjust.
8393         (add_stores): Generate new micro-ops.
8394         (add_with_sets): New.
8395         (find_src_status): Adjust.
8396         (find_src_set_src): Adjust.
8397         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
8398         Handle new micro-ops.  Canonicalize value equivalances.
8399         (vt_find_locations): Compute total size of hash tables for
8400         dumping.  Perform merge for var-tracking-assignments.  Don't
8401         disregard single-block loops.
8402         (dump_attrs_list): Handle decl_or_value.
8403         (dump_variable): Take variable.  Deal with decl_or_value.
8404         (dump_variable_slot): New.
8405         (dump_vars): Use it.
8406         (dump_dataflow_sets): Adjust.
8407         (set_slot_part): New, extended to support one-part variables
8408         after splitting out of...
8409         (set_variable_part): ... this.
8410         (clobber_slot_part): New, split out of...
8411         (clobber_variable_part): ... this.
8412         (delete_slot_part): New, split out of...
8413         (delete_variable_part): .... this.
8414         (check_wrap_constant): New.
8415         (vt_expand_loc_callback): New.
8416         (vt_expand_loc): New.
8417         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
8418         EMIT_NOTE_AFTER_CALL_INSN.
8419         (emit_notes_for_differences_1): Adjust.  Handle values.
8420         (emit_notes_for_differences_2): Likewise.
8421         (emit_notes_for_differences): Adjust.
8422         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
8423         Adjust.  Handle new micro-ops.
8424         (vt_add_function_parameters): Adjust.  Create and bind values.
8425         (vt_initialize): Adjust.  Initialize scratch_regs and
8426         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
8427         operations.  Move some code to count_with_sets and add_with_sets.
8428         (delete_debug_insns): New.
8429         (vt_debug_insns_local): New.
8430         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
8431         cselib.
8432         (var_tracking_main): If var-tracking-assignments is enabled
8433         but var-tracking isn't, delete debug insns and leave.  Likewise
8434         if we exceed limits or fail the stack adjustments tests, and
8435         after all var-tracking processing.
8436         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
8437         (dataflow_set): Add traversed_vars.
8438         (value_chain, const_value_chain): New typedefs.
8439         (value_chain_pool, value_chains): New variables.
8440         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
8441         add_value_chains, add_cselib_value_chains, remove_value_chain,
8442         remove_value_chains, remove_cselib_value_chains): New functions.
8443         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
8444         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
8445         static inlines.
8446         (shared_hash_find_slot_unshare, shared_hash_find_slot,
8447         shared_hash_find_slot_noinsert, shared_hash_find): Update.
8448         (dst_can_be_shared): New variable.
8449         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
8450         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
8451         different from set->vars, look up slot again instead of using the
8452         passed in slot.
8453         (dataflow_set_init): Initialize traversed_vars.
8454         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
8455         lookup if set->vars is shared.  Don't keep slot cleared before
8456         calling unshare_variable.  Unshare set->vars if needed.  Adjust
8457         unshare_variable callers.  Clear dst_can_be_shared if needed.
8458         Even ->refcount == 1 vars must be unshared if set->vars is shared
8459         and var needs to be modified.
8460         (dataflow_set_union): Set traversed_vars during canonicalization.
8461         (VALUE_CHANGED, DECL_CHANGED): Define.
8462         (set_dv_changed, dv_changed_p): New static inlines.
8463         (track_expr_p): Clear DECL_CHANGED.
8464         (dump_dataflow_sets): Set it.
8465         (variable_was_changed): Call set_dv_changed.
8466         (emit_note_insn_var_location): Likewise.
8467         (changed_variables_stack): New variable.
8468         (check_changed_vars_1, check_changed_vars_2): New functions.
8469         (emit_notes_for_changes): Do nothing if changed_variables is
8470         empty.  Traverse changed_variables with check_changed_vars_1,
8471         call check_changed_vars_2 on each changed_variables_stack entry.
8472         (emit_notes_in_bb): Add SET argument.  Just clear it at the
8473         beginning, use it instead of local &set, don't destroy it at the end.
8474         (vt_emit_notes): Call dataflow_set_clear early on all
8475         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
8476         computed set, dataflow_set_clear also VTI(bb)->in when we are
8477         done with the basic block.  Initialize changed_variables_stack,
8478         free it afterwards.  If ENABLE_CHECKING verify that after noting
8479         differences to an empty set value_chains hash table is empty.
8480         (vt_initialize): Initialize value_chains and value_chain_pool.
8481         (vt_finalize): Delete value_chains htab, free value_chain_pool.
8482         (variable_tracking_main): Call dump_dataflow_sets before calling
8483         vt_emit_notes, not after it.
8484         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
8485         (propagate_var_def_into_debug_stmts): Declare.
8486         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
8487         (df_set_note): Reject debug insns.
8488         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
8489         add notes to debug insns.
8490         (df_note_bb_compute): Adjust.  Likewise.
8491         (df_simulate_uses): Skip debug insns.
8492         (df_simulate_initialize_backwards): Likewise.
8493         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
8494         (subst_stack_regs_pat): Reject debug insns.
8495         (convert_regs_1): Handle debug insns.
8496         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
8497         (print-rtl.o): Depend on cselib.h.
8498         (cselib.o): Depend on TREE_PASS_H.
8499         (var-tracking.o): Depend on cselib.h and TARGET_H.
8500         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
8501         (init_ready_list): Skip boundary debug insns.
8502         (add_branch_dependences): Skip debug insns.
8503         (free_block_dependencies): Check for blocks with only debug insns.
8504         (compute_priorities): Likewise.
8505         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
8506         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
8507         all callers.
8508         (gimple_build_debug_bind_stat): New.
8509         (empty_body_p): Skip debug stmts.
8510         (gimple_has_side_effects): Likewise.
8511         (gimple_rhs_has_side_effects): Likewise.
8512         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
8513         (gimple_build_debug_bind_stat): Declare.
8514         (gimple_build_debug_bind): Define.
8515         (is_gimple_debug): New.
8516         (gimple_debug_bind_p): New.
8517         (gimple_debug_bind_get_var): New.
8518         (gimple_debug_bind_get_value): New.
8519         (gimple_debug_bind_get_value_ptr): New.
8520         (gimple_debug_bind_set_var): New.
8521         (gimple_debug_bind_set_value): New.
8522         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
8523         (gimple_debug_bind_reset_value): New.
8524         (gimple_debug_bind_has_value_p): New.
8525         (gsi_next_nondebug): New.
8526         (gsi_prev_nondebug): New.
8527         (gsi_start_nondebug_bb): New.
8528         (gsi_last_nondebug_bb): New.
8529         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
8530         (print_insn): Handle DEBUG_INSN.
8531         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
8532         of first insn prevail.
8533         (first_stmt): Skip debug stmts.
8534         (first_non_label_stmt): Likewise.
8535         (last_stmt): Likewise.
8536         (has_zero_uses_1): New.
8537         (single_imm_use_1): New.
8538         (verify_gimple_debug): New.
8539         (verify_types_in_gimple_stmt): Handle debug stmts.
8540         (verify_stmt): Likewise.
8541         (debug_loop_num): Skip debug stmts.
8542         (remove_edge_and_dominated_blocks): Remove dominators last.
8543         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
8544         (linearize_expr): Likewise.
8545         * config/i386/i386.c (ix86_delegitimize_address): Call
8546         default implementation.
8547         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
8548         (group_barrier_needed): Skip debug insns.
8549         (emit_insn_group_barriers): Likewise.
8550         (emit_all_insn_group_barriers): Likewise.
8551         (ia64_variable_issue): Handle debug insns.
8552         (ia64_dfa_new_cycle): Likewise.
8553         (final_emit_insn_group_barriers): Skip debug insns.
8554         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
8555         def cfa without frame.
8556         (process_set): Likewise.
8557         (process_for_unwind_directive): Pass frame on.
8558         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
8559         (rs6000_delegitimize_address): New.
8560         (rs6000_debug_adjust_cost): Handle debug insns.
8561         (is_microcoded_insn): Likewise.
8562         (is_cracked_insn): Likewise.
8563         (is_nonpipeline_insn): Likewise.
8564         (insn_must_be_first_in_group): Likewise.
8565         (insn_must_be_last_in_group): Likewise.
8566         (force_new_group): Likewise.
8567         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
8568         contains only debug insns.
8569         (rtl_merge_blocks): Skip debug insns.
8570         (purge_dead_edges): Likewise.
8571         (rtl_block_ends_with_call_p): Skip debug insns.
8572         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
8573         (mark_reg_dependencies): Skip debug insns.
8574         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
8575         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
8576         * tree-ssa-threadedge.c
8577         (record_temporary_equivalences_from_stmts): Skip debug stmts.
8578         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
8579         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
8580         (copyprop_hardreg_forward_1): Handle debug insns.
8581         * reload1.c (reload): Skip debug insns.  Replace unassigned
8582         pseudos in debug insns with their equivalences.
8583         (eliminate_regs_in_insn): Skip debug insns.
8584         (emit_input_reload_insns): Skip debug insns at first, adjust
8585         them later.
8586         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
8587         (get_indirect_ref_operands): Pass opf_no_vops on.
8588         (get_expr_operands): Likewise.  Skip debug stmts.
8589         (parse_ssa_operands): Scan debug insns with opf_no_vops.
8590
8591 2009-09-01  Richard Henderson  <rth@redhat.com>
8592
8593         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
8594         stmt_ends_pp_p statements at least once.
8595         * tree-vrp.c (vrp_initialize): Likewise.
8596         (vrp_visit_stmt): Be prepared for non-interesting stmts.
8597
8598 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
8599
8600         PR bootstrap/41205
8601         Fix AIX bootstrap after PR debug/30161
8602         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
8603         that is a GNU extension.
8604         (tmpl_value_parm_die_table): Move the definition of this global
8605         outside #ifdef DWARF2_DEBUGGING_INFO region.
8606
8607 2009-09-01  Richard Guenther  <rguenther@suse.de>
8608
8609         * tree.c (tree_expr_size): New function.
8610         * tree.h (tree_expr_size): Declare.
8611         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
8612         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
8613         * langhooks.c (lhd_expr_size): Remove.
8614         * langhooks.h (struct lang_hooks): Remove expr_size.
8615         * explow.c (expr_size): Use tree_expr_size.
8616         (int_expr_size): Likewise.
8617         * langhooks-def.h (lhd_expr_size): Remove.
8618         (LANG_HOOKS_EXPR_SIZE): Likewise.
8619         (LANG_HOOKS_INITIALIZER): Adjust.
8620
8621 2009-09-01  Richard Guenther  <rguenther@suse.de>
8622
8623         * tree-flow.h (mark_addressable): Move declaration ...
8624         * tree.h (mark_addressable): ... here.
8625         * stmt.c (expand_asm_operands): Use mark_addressable, not
8626         lang_hooks.mark_addressable.
8627         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
8628         LANG_HOOKS_MARK_ADDRESSABLE.
8629         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
8630         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
8631
8632 2009-08-31  Chris Demetriou  <cgd@google.com>
8633
8634         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
8635         vectorize if not TARGET_SSE2.
8636
8637 2009-08-31  DJ Delorie  <dj@redhat.com>
8638
8639         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
8640         registers if no coprocessor is enabled.
8641
8642 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
8643
8644         PR debug/30161
8645         * cgraph.h (cgraph_get_node): Declare ...
8646         * cgraph.c (cgraph_get_node): ... new function.
8647         * dwarf2out.c (gen_generic_params_dies,
8648         generic_parameter_die, tree_add_const_value_attribute_for_decl,
8649         make_ith_pack_parameter_name,
8650         append_entry_to_tmpl_value_parm_die_table,
8651         gen_remaining_tmpl_value_param_die_attribute): New functions.
8652         (gen_subprogram_die): Generate debug info for template parameters
8653         if debug info level is higher than DINFO_LEVEL_TERSE.
8654         Use tree_add_const_value_attribute_for_decl instead of
8655         tree_add_const_value_attribute.
8656         (gen_const_die): Use tree_add_const_value_attribute_for_decl
8657         instead of tree_add_const_value_attribute.
8658         (gen_struct_or_union_type_die): Generate debug
8659         info for template parameters if debug info level is higher than
8660         DINFO_LEVEL_TERSE.
8661         (tree_add_const_value_attribute): Handle integral and pointer
8662         constants. Update comment.
8663         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
8664         (dwarf_attr_name): Support DW_AT_GNU_template_name.
8665         (reference_to_unused): Fix thinko. Remove redundant predicates from
8666         tests.
8667         (tree_add_const_value_attribute): Make this work for constant
8668         expressions only.
8669         tree_add_const_value_attribute_for_decl is to be used for variable
8670         DECLs now.
8671         (add_location_or_const_value_attribute): Use
8672         tree_add_const_value_attribute_for_decl now.
8673         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
8674         DW_TAG_template_value_param DIEs after function DIEs have been
8675         emitted.
8676         * langhooks.h (lang_hooks_for_types): Add
8677         get_argument_pack_elems.
8678         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
8679         (lang_hooks): Added get_innermost_generic_parms,
8680         get_innermost_generic_args.
8681         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
8682         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
8683         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
8684         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
8685
8686 2009-08-31  DJ Delorie  <dj@redhat.com>
8687
8688         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
8689         it once we start generating the prologue or epilogue.
8690         (mep_call_saves_register): If the frame is locked, re-use
8691         cached values.
8692         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
8693         (mep_expand_prologue): Call it.
8694         (mep_expand_epilogue): Likewise.
8695         (mep_start_function): Use the same logic as mep_expand_prologue.
8696         (mep_pass_by_reference): Make logic more readable.
8697         (mep_return_in_memory): Zero-sized objects are passed in memory.
8698         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
8699
8700 2009-08-31  Richard Guenther  <rguenther@suse.de>
8701
8702         * builtins.c (fold_builtin_memory_op): Use the alias oracle
8703         to query if the memory regions for memmove overlap.
8704         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
8705         asserts on pointers, instead deal with odd trees.
8706         (ptr_derefs_may_alias_p): Likewise.
8707         (refs_may_alias_p_1): Constructor bases also never alias.
8708
8709 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
8710
8711         * doc/install.texi (Final install): Adjust reference on where to
8712         order printed manuals.
8713
8714 2009-08-30  Olivier Hainque  <hainque@adacore.com>
8715
8716         * dwarf2out.c (switch_to_frame_table_section): Move
8717         definition prior to first use.
8718
8719 2009-08-30  Richard Guenther  <rguenther@suse.de>
8720
8721         PR tree-optimization/41186
8722         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
8723         (ao_ref_init_from_ptr_and_size): New function.
8724         (ref_maybe_used_by_call_p_1): Be more precise tracking
8725         used ranges for builtin functions.
8726         (ref_maybe_used_by_call_p): Adjust.
8727         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
8728         ranges for builtin functions.
8729         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
8730
8731 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
8732
8733         PR target/41081
8734         * fwprop.c (get_reg_use_in): Delete.
8735         (free_load_extend): New function.
8736         (forward_propagate_subreg): Use it.
8737
8738 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
8739
8740         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
8741
8742 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
8743
8744         PR/41184
8745         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
8746         padding.
8747
8748 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
8749
8750         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
8751         fini or fini_array section.
8752
8753 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8754
8755         * graphite-dependences.c (graphite_legal_transform_bb): Call
8756         pbb_remove_duplicate_pdrs.
8757         * graphite-poly.c (can_collapse_pdr): Removed.
8758         (pdr_find_duplicate): Removed.
8759         (can_collapse_pdrs): New.
8760         (pbb_remove_duplicate_pdrs): New.
8761         (new_poly_dr): Do not look for duplicates.
8762         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
8763         (PBB_PDR_DUPLICATES_REMOVED): New.
8764         (pbb_remove_duplicate_pdrs): Declared.
8765
8766 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8767
8768         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
8769         the strides by multiplying by PDR_NB_REFS.
8770         * graphite-poly.c (can_collapse_pdr): New.
8771         (pdr_find_duplicate): New.
8772         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
8773         Initialize PDR_NB_REFS.
8774         * graphite-poly.h (struct poly_dr): Add field nb_refs.
8775         (PDR_NB_REFS): New.
8776         (new_poly_dr): Number of subscripts is a graphite_dim_t.
8777
8778 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8779
8780         PR middle-end/40965
8781         * graphite-poly.c (apply_poly_transforms): Remove legality test before
8782         any transform.
8783
8784 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8785
8786         * graphite-dependences.c (pddr_original_scattering): Return NULL
8787         for read-read dependence relations.
8788         * graphite-poly.h (enum poly_dr_type): Fix comment.
8789         (pdr_read_p): New.
8790         (pdr_write_p): New.
8791         (pdr_may_write_p): New.
8792
8793 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8794
8795         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
8796         (struct poly_dr): Same.
8797         (new_poly_dr): Same.
8798         * graphite-poly.c (new_poly_dr): Same.
8799         * graphite-dependences.c (dot_deps): Disable call to system.
8800
8801 2009-08-28  Cary Coutant  <ccoutant@google.com>
8802
8803         PR debug/41063
8804         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
8805         struct/union/enum types local to a function.
8806
8807 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
8808             Sebastian Pop  <sebastian.pop@amd.com>
8809
8810         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
8811         pbb_strip_mine_time_depth.  Changed the implementation so that
8812         transformation is expressed as a transformation on
8813         time (scatttering) dimensions.  Also, ensures that the 2d+1
8814         scheduling format is preserved.
8815         (pbb_strip_mine_profitable_p): Profitability is based on the
8816         iteration number of a given time (scattering) dimension,
8817         and not on a original loop depth dimension.
8818         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
8819         (pbb_do_strip_mine): Call psct_dynamic_dim.
8820         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
8821         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
8822         (pbb_nb_dynamic_scattering_transform): New.
8823         (psct_dynamic_dim): New.
8824
8825 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
8826
8827         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
8828         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
8829         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
8830         * graphite-interchange.c (build_linearized_memory_access): Same.
8831         (memory_stride_in_loop): Same.
8832
8833 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8834
8835         * graphite-dependences.c (pddr_original_scattering): New.
8836         (graphite_legal_transform_dr): Call pddr_original_scattering.
8837         (dot_deps_1): New.
8838         (dot_deps): New.
8839         * graphite-dependences.h (dot_deps): Declared.
8840         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
8841         (print_pdr): Print PDR_ID.
8842         * graphite-poly.h (struct poly_dr): Add field id.
8843         (PDR_ID): New.
8844         (pbb_index): New.
8845         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
8846
8847 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8848
8849         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
8850         not delete the original dependence relation.
8851
8852 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8853
8854         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
8855         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
8856         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
8857         (free_poly_ddr): New.
8858         (pddr_is_empty): New.
8859         (dependence_polyhedron_1): Now returns a poly_ddr_p.
8860         (dependence_polyhedron): Same.  Remove useless gcc_assert.
8861         Remove fprintfs.
8862         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
8863         (graphite_carried_dependence_level_k): Call pddr_is_empty.
8864         * graphite-dependences.h (enum poly_dependence_kind): New.
8865         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
8866         (PDRP_SOURCE): Renamed PDDR_SOURCE.
8867         (PDRP_SINK): Renamed PDDR_SINK.
8868         (PDRP_DDP): Renamed PDDR_DDP.
8869         (PDDR_KIND): New.
8870         (free_poly_ddr): Declared.
8871         * graphite-poly.c (new_scop): Use the new hash function names.
8872         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
8873         into original_pddrs.
8874         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
8875
8876 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8877
8878         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
8879         bounds with LT_EXPR to make niter analysis more precise on code
8880         generated by Graphite.
8881
8882 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8883
8884         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
8885         (graphite_legal_transform_bb): Same.
8886         (poly_drs_may_alias_p): Same.
8887
8888 2009-08-28  Richard Guenther  <rguenther@suse.de>
8889
8890         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
8891
8892 2009-08-28  Jan Beulich  <jbeulich@novell.com>
8893
8894         * config/i386/netware.c: Include langhooks.h.
8895         (i386_nlm_encode_section_info): Simplify.
8896         (netware_override_options): Delete.
8897         * config/i386/netware.h (netware_override_options): Delete
8898         declaration.
8899         (OVERRIDE_OPTIONS): Delete definition.
8900         (SUBTARGET_OVERRIDE_OPTIONS): Define.
8901         (ASM_COMMENT_START): Define.
8902         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
8903
8904 2009-08-28  Jan Beulich  <jbeulich@novell.com>
8905
8906         * configure.ac: For in-tree ld, do a plain version check to
8907         determine whether comdat groups are supported.
8908         * configure: Regenerate.
8909
8910 2009-08-28  Olivier Hainque  <hainque@adacore.com>
8911
8912         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
8913         always defined.  Reflect definition or absence of such for
8914         COLLECT_EXPORT_LIST.  Readability helper.
8915         (scanfilter): New enum, to help control what symbols
8916         are to be considered or ignored by scan_prog_file.
8917         (enum pass): Rename as "scanpass", moved together with scanfilter
8918         prior to scan_prog_file's prototype.
8919         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
8920         Group prototype with the scanpass/scanfilter definitions, factorize
8921         head comments for the several implementations at the prototype.
8922         (main): Reorganize the first pass link control to let AIX
8923         drag only the needed frame tables in executables.  Prevent
8924         frame tables collection during the scan aimed at static ctors.
8925         Pre-link and scan for frame tables later to compensate.
8926         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
8927         A C statement to issue assembly directives that create a reference
8928         to the given DWARF table identifier label from the current function
8929         section.
8930         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
8931         to differentiate first time section entry.  Only emit a .data
8932         tables start identifier label the first time around.
8933         (switch_to_frame_table_section): New function.  Helper for
8934         output_call_frame_info to switch possibly BACK into the eh_frame
8935         or the debug_frame section depending on FOR_EH.
8936         (output_call_frame_info): Use helper to first enter the proper
8937         frame section.
8938         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
8939         emit a link to the frame table start label from each function
8940         section.
8941         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
8942         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
8943         * config/rs6000/rs6000-protos.h: Declare it.
8944         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
8945
8946 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
8947
8948         * config/sh/sh.c (split_branches): Check the result of
8949         next_active_insn.
8950
8951 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
8952
8953         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
8954         using -pthread -fopenmp
8955
8956 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
8957
8958         * doc/service.texi (service directory): Update URL.
8959
8960 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
8961
8962         PR rtl-optimization/40861
8963         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
8964         extract word from a multi-word subreg for negative byte positions.
8965
8966 2009-08-27  Tristan Gingold  <gingold@adacore.com>
8967             Douglas B Rupp  <rupp@gnat.com>
8968
8969         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
8970         (SECTION_VMS_OVERLAY): Define.
8971         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
8972         attribute.
8973         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
8974         for common_object.
8975         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
8976         common_object declarations.
8977         (ia64_section_type_flags): Set section flag for common_object.
8978         * config/ia64/ia64-protos.h
8979         (ia64_vms_output_aligned_decl_common): Declare.
8980         (ia64_vms_elf_asm_named_section): Declare.
8981
8982 2009-08-27  Michael Matz  <matz@suse.de>
8983
8984         * expr.c (expand_expr_real_2): New function taking exploded
8985         unary or binary expression, split out from ...
8986         (expand_expr_real_1): ... here.  Move over all unary/binary
8987         switch parts to above function, in particular these codes:
8988         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
8989         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
8990         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
8991         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
8992         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
8993         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
8994         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
8995         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
8996         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
8997         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
8998         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
8999         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
9000         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
9001         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
9002         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
9003         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
9004         VEC_PACK_FIX_TRUNC_EXPR.
9005         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
9006         full expression.
9007
9008 2009-08-27  Richard Guenther  <rguenther@suse.de>
9009
9010         * gengtype.c (main): Handle uint64_t.
9011         * ipa-utils.c (get_base_var): Indent properly.
9012         * tree-ssa-live.c (debug_scope_block): New function.
9013         * tree-flow.h (debug_scope_block): Declare.
9014         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
9015         * basic-block.h (enum profile_status): Rename to
9016         enum profile_status_d.
9017         (x_profile_status): Adjust type.
9018
9019 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
9020
9021         PR debug/41170
9022         * dwarf2out.c (get_context_die): Declare this static function.
9023         (gen_type_die_with_usage): Make sure a DIE is a generated for
9024         the context of a typedef.
9025
9026 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
9027
9028         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
9029         switch.
9030
9031 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
9032
9033         * config/mips/mips-protos.h (mips_output_sync): Declare.
9034         (mips_sync_loop_insns): Likewise.
9035         (mips_output_sync_loop): Replace first two parameters with an rtx.
9036         * config/mips/mips.c (mips_multi_member): New structure.
9037         (mips_multi_members): New variable.
9038         (mips_multi_start): New function.
9039         (mips_multi_add): Likewise.
9040         (mips_multi_add_insn): Likewise.
9041         (mips_multi_add_label): Likewise.
9042         (mips_multi_last_index): Likewise.
9043         (mips_multi_copy_insn): Likewise.
9044         (mips_multi_set_operand): Likewise.
9045         (mips_multi_write): Likewise.
9046         (mips_print_operand_punctuation): Remove '%|' and '%-'.
9047         (mips_init_print_operand_punct): Update accordingly.
9048         (mips_start_ll_sc_sync_block): New function.
9049         (mips_end_ll_sc_sync_block): Likewise.
9050         (mips_output_sync): Likewise.
9051         (mips_sync_insn1_template): Likewise.
9052         (mips_sync_insn2_template): Likewise.
9053         (mips_get_sync_operand): Likewise.
9054         (mips_process_sync_loop): Likewise.
9055         (mips_output_sync_loop): Use mips_process_sync_loop.
9056         (mips_sync_loop_insns): New function.
9057         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
9058         (MIPS_COMPARE_AND_SWAP_12): Likewise.
9059         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
9060         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
9061         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
9062         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
9063         (MIPS_SYNC_OLD_OP_12): Likewise.
9064         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
9065         (MIPS_SYNC_NEW_OP_12): Likewise.
9066         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
9067         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
9068         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
9069         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
9070         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
9071         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
9072         * config/mips/mips.md (sync_mem): New attribute.
9073         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
9074         (sync_exclusive_mask, sync_required_oldval): Likewise.
9075         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
9076         (sync_release_barrier): Likewise.
9077         (length): Handle sync loops.
9078         (sync): Use mips_output_sync.
9079         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
9080         (sync_compare_and_swap<mode>): Set the new sync_* attributes
9081         and use mips_output_sync_loop.
9082         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
9083         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
9084         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
9085         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
9086         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
9087         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
9088         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
9089         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
9090         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
9091
9092 2009-08-26  Richard Guenther  <rguenther@suse.de>
9093
9094         PR middle-end/41163
9095         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
9096         the types to not match.
9097         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
9098         verification.
9099         * tree-ssa.c (useless_type_conversion_p): Conversions to
9100         pointers to unprototyped functions are useless.
9101
9102 2009-08-26  Richard Guenther  <rguenther@suse.de>
9103
9104         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
9105         whole-program condition, prepare to be called for non-globals.
9106         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
9107         params build a representative with known type and track its fields.
9108
9109 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
9110
9111         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
9112         clearing by a taken branch.
9113         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
9114         effectively after bbro pass.
9115         (sync_nand<mode>): Ditto.
9116         (sync_old_<fetchop_name><mode>): Ditto.
9117         (sync_old_nand<mode>): Ditto.
9118         (sync_new_<fetchop_name><mode>): Dito.
9119         (sync_new_nand<mode>): Ditto.
9120         (sync_compare_and_swap<mode>_1): Ditto.
9121         (*sync_compare_and_swap<mode>): Ditto.
9122         (sync_lock_test_and_set<mode>_1): Ditto.
9123         ("sync_lock_test_and_set<mode>): Ditto.
9124
9125 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
9126
9127         * hwint.h (HOST_LONG_FORMAT): New macro
9128         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
9129         Use HOST_PTR_PRINTF.
9130         * system.h (HOST_PTR_PRINTF): Resurrect old macro
9131         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
9132         (HOST_PTR_PRINTF): Document.
9133
9134 2009-08-25 Jan Hubicka  <jh@suse.cz>
9135
9136         * config/i386/bmmintrin.h: Replace by #error.
9137
9138         Revert:
9139         Michael Meissner  <michael.meissner@amd.com>
9140         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
9141         Tony Linthicum  <tony.linthicum@amd.com>
9142
9143         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
9144         (TARGET_ROUND): New macro for the round/ptest instructions which
9145         are shared between SSE4.1 and SSE5.
9146         (OPTION_MASK_ISA_ROUND): Ditto.
9147         (OPTION_ISA_ROUND): Ditto.
9148         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
9149         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
9150
9151         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
9152         (-mfused-madd): New switch to give users control over whether the
9153         compiler optimizes to use the multiply/add SSE5 instructions.
9154
9155         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
9156         (ix86_handle_option): Turn off 3dnow if -msse5.
9157         (override_options): Add SSE5 support.
9158         (print_operand): %Y prints comparison codes for SSE5 com/pcom
9159         instructions.
9160         (ix86_expand_sse_movcc): Add SSE5 support.
9161         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
9162         vector type to the next largest size.
9163         (ix86_expand_sse5_pack): New function to use pperm to pack a
9164         vector type to the next smallest size.
9165         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
9166         (IX86_BUILTIN_FMADDSD): Ditto.
9167         (IX86_BUILTIN_FMADDPS): Ditto.
9168         (IX86_BUILTIN_FMADDPD): Ditto.
9169         (IX86_BUILTIN_FMSUBSS): Ditto.
9170         (IX86_BUILTIN_FMSUBSD): Ditto.
9171         (IX86_BUILTIN_FMSUBPS): Ditto.
9172         (IX86_BUILTIN_FMSUBPD): Ditto.
9173         (IX86_BUILTIN_FNMADDSS): Ditto.
9174         (IX86_BUILTIN_FNMADDSD): Ditto.
9175         (IX86_BUILTIN_FNMADDPS): Ditto.
9176         (IX86_BUILTIN_FNMADDPD): Ditto.
9177         (IX86_BUILTIN_FNMSUBSS): Ditto.
9178         (IX86_BUILTIN_FNMSUBSD): Ditto.
9179         (IX86_BUILTIN_FNMSUBPS): Ditto.
9180         (IX86_BUILTIN_FNMSUBPD): Ditto.
9181         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
9182         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
9183         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
9184         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
9185         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
9186         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
9187         (IX86_BUILTIN_PPERM): Ditto.
9188         (IX86_BUILTIN_PERMPS): Ditto.
9189         (IX86_BUILTIN_PERMPD): Ditto.
9190         (IX86_BUILTIN_PMACSSWW): Ditto.
9191         (IX86_BUILTIN_PMACSWW): Ditto.
9192         (IX86_BUILTIN_PMACSSWD): Ditto.
9193         (IX86_BUILTIN_PMACSWD): Ditto.
9194         (IX86_BUILTIN_PMACSSDD): Ditto.
9195         (IX86_BUILTIN_PMACSDD): Ditto.
9196         (IX86_BUILTIN_PMACSSDQL): Ditto.
9197         (IX86_BUILTIN_PMACSSDQH): Ditto.
9198         (IX86_BUILTIN_PMACSDQL): Ditto.
9199         (IX86_BUILTIN_PMACSDQH): Ditto.
9200         (IX86_BUILTIN_PMADCSSWD): Ditto.
9201         (IX86_BUILTIN_PMADCSWD): Ditto.
9202         (IX86_BUILTIN_PHADDBW): Ditto.
9203         (IX86_BUILTIN_PHADDBD): Ditto.
9204         (IX86_BUILTIN_PHADDBQ): Ditto.
9205         (IX86_BUILTIN_PHADDWD): Ditto.
9206         (IX86_BUILTIN_PHADDWQ): Ditto.
9207         (IX86_BUILTIN_PHADDDQ): Ditto.
9208         (IX86_BUILTIN_PHADDUBW): Ditto.
9209         (IX86_BUILTIN_PHADDUBD): Ditto.
9210         (IX86_BUILTIN_PHADDUBQ): Ditto.
9211         (IX86_BUILTIN_PHADDUWD): Ditto.
9212         (IX86_BUILTIN_PHADDUWQ): Ditto.
9213         (IX86_BUILTIN_PHADDUDQ): Ditto.
9214         (IX86_BUILTIN_PHSUBBW): Ditto.
9215         (IX86_BUILTIN_PHSUBWD): Ditto.
9216         (IX86_BUILTIN_PHSUBDQ): Ditto.
9217         (IX86_BUILTIN_PROTB): Ditto.
9218         (IX86_BUILTIN_PROTW): Ditto.
9219         (IX86_BUILTIN_PROTD): Ditto.
9220         (IX86_BUILTIN_PROTQ): Ditto.
9221         (IX86_BUILTIN_PROTB_IMM): Ditto.
9222         (IX86_BUILTIN_PROTW_IMM): Ditto.
9223         (IX86_BUILTIN_PROTD_IMM): Ditto.
9224         (IX86_BUILTIN_PROTQ_IMM): Ditto.
9225         (IX86_BUILTIN_PSHLB): Ditto.
9226         (IX86_BUILTIN_PSHLW): Ditto.
9227         (IX86_BUILTIN_PSHLD): Ditto.
9228         (IX86_BUILTIN_PSHLQ): Ditto.
9229         (IX86_BUILTIN_PSHAB): Ditto.
9230         (IX86_BUILTIN_PSHAW): Ditto.
9231         (IX86_BUILTIN_PSHAD): Ditto.
9232         (IX86_BUILTIN_PSHAQ): Ditto.
9233         (IX86_BUILTIN_FRCZSS): Ditto.
9234         (IX86_BUILTIN_FRCZSD): Ditto.
9235         (IX86_BUILTIN_FRCZPS): Ditto.
9236         (IX86_BUILTIN_FRCZPD): Ditto.
9237         (IX86_BUILTIN_CVTPH2PS): Ditto.
9238         (IX86_BUILTIN_CVTPS2PH): Ditto.
9239         (IX86_BUILTIN_COMEQSS): Ditto.
9240         (IX86_BUILTIN_COMNESS): Ditto.
9241         (IX86_BUILTIN_COMLTSS): Ditto.
9242         (IX86_BUILTIN_COMLESS): Ditto.
9243         (IX86_BUILTIN_COMGTSS): Ditto.
9244         (IX86_BUILTIN_COMGESS): Ditto.
9245         (IX86_BUILTIN_COMUEQSS): Ditto.
9246         (IX86_BUILTIN_COMUNESS): Ditto.
9247         (IX86_BUILTIN_COMULTSS): Ditto.
9248         (IX86_BUILTIN_COMULESS): Ditto.
9249         (IX86_BUILTIN_COMUGTSS): Ditto.
9250         (IX86_BUILTIN_COMUGESS): Ditto.
9251         (IX86_BUILTIN_COMORDSS): Ditto.
9252         (IX86_BUILTIN_COMUNORDSS): Ditto.
9253         (IX86_BUILTIN_COMFALSESS): Ditto.
9254         (IX86_BUILTIN_COMTRUESS): Ditto.
9255         (IX86_BUILTIN_COMEQSD): Ditto.
9256         (IX86_BUILTIN_COMNESD): Ditto.
9257         (IX86_BUILTIN_COMLTSD): Ditto.
9258         (IX86_BUILTIN_COMLESD): Ditto.
9259         (IX86_BUILTIN_COMGTSD): Ditto.
9260         (IX86_BUILTIN_COMGESD): Ditto.
9261         (IX86_BUILTIN_COMUEQSD): Ditto.
9262         (IX86_BUILTIN_COMUNESD): Ditto.
9263         (IX86_BUILTIN_COMULTSD): Ditto.
9264         (IX86_BUILTIN_COMULESD): Ditto.
9265         (IX86_BUILTIN_COMUGTSD): Ditto.
9266         (IX86_BUILTIN_COMUGESD): Ditto.
9267         (IX86_BUILTIN_COMORDSD): Ditto.
9268         (IX86_BUILTIN_COMUNORDSD): Ditto.
9269         (IX86_BUILTIN_COMFALSESD): Ditto.
9270         (IX86_BUILTIN_COMTRUESD): Ditto.
9271         (IX86_BUILTIN_COMEQPS): Ditto.
9272         (IX86_BUILTIN_COMNEPS): Ditto.
9273         (IX86_BUILTIN_COMLTPS): Ditto.
9274         (IX86_BUILTIN_COMLEPS): Ditto.
9275         (IX86_BUILTIN_COMGTPS): Ditto.
9276         (IX86_BUILTIN_COMGEPS): Ditto.
9277         (IX86_BUILTIN_COMUEQPS): Ditto.
9278         (IX86_BUILTIN_COMUNEPS): Ditto.
9279         (IX86_BUILTIN_COMULTPS): Ditto.
9280         (IX86_BUILTIN_COMULEPS): Ditto.
9281         (IX86_BUILTIN_COMUGTPS): Ditto.
9282         (IX86_BUILTIN_COMUGEPS): Ditto.
9283         (IX86_BUILTIN_COMORDPS): Ditto.
9284         (IX86_BUILTIN_COMUNORDPS): Ditto.
9285         (IX86_BUILTIN_COMFALSEPS): Ditto.
9286         (IX86_BUILTIN_COMTRUEPS): Ditto.
9287         (IX86_BUILTIN_COMEQPD): Ditto.
9288         (IX86_BUILTIN_COMNEPD): Ditto.
9289         (IX86_BUILTIN_COMLTPD): Ditto.
9290         (IX86_BUILTIN_COMLEPD): Ditto.
9291         (IX86_BUILTIN_COMGTPD): Ditto.
9292         (IX86_BUILTIN_COMGEPD): Ditto.
9293         (IX86_BUILTIN_COMUEQPD): Ditto.
9294         (IX86_BUILTIN_COMUNEPD): Ditto.
9295         (IX86_BUILTIN_COMULTPD): Ditto.
9296         (IX86_BUILTIN_COMULEPD): Ditto.
9297         (IX86_BUILTIN_COMUGTPD): Ditto.
9298         (IX86_BUILTIN_COMUGEPD): Ditto.
9299         (IX86_BUILTIN_COMORDPD): Ditto.
9300         (IX86_BUILTIN_COMUNORDPD): Ditto.
9301         (IX86_BUILTIN_COMFALSEPD): Ditto.
9302         (IX86_BUILTIN_COMTRUEPD): Ditto.
9303         (IX86_BUILTIN_PCOMEQUB): Ditto.
9304         (IX86_BUILTIN_PCOMNEUB): Ditto.
9305         (IX86_BUILTIN_PCOMLTUB): Ditto.
9306         (IX86_BUILTIN_PCOMLEUB): Ditto.
9307         (IX86_BUILTIN_PCOMGTUB): Ditto.
9308         (IX86_BUILTIN_PCOMGEUB): Ditto.
9309         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
9310         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
9311         (IX86_BUILTIN_PCOMEQUW): Ditto.
9312         (IX86_BUILTIN_PCOMNEUW): Ditto.
9313         (IX86_BUILTIN_PCOMLTUW): Ditto.
9314         (IX86_BUILTIN_PCOMLEUW): Ditto.
9315         (IX86_BUILTIN_PCOMGTUW): Ditto.
9316         (IX86_BUILTIN_PCOMGEUW): Ditto.
9317         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
9318         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
9319         (IX86_BUILTIN_PCOMEQUD): Ditto.
9320         (IX86_BUILTIN_PCOMNEUD): Ditto.
9321         (IX86_BUILTIN_PCOMLTUD): Ditto.
9322         (IX86_BUILTIN_PCOMLEUD): Ditto.
9323         (IX86_BUILTIN_PCOMGTUD): Ditto.
9324         (IX86_BUILTIN_PCOMGEUD): Ditto.
9325         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
9326         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
9327         (IX86_BUILTIN_PCOMEQUQ): Ditto.
9328         (IX86_BUILTIN_PCOMNEUQ): Ditto.
9329         (IX86_BUILTIN_PCOMLTUQ): Ditto.
9330         (IX86_BUILTIN_PCOMLEUQ): Ditto.
9331         (IX86_BUILTIN_PCOMGTUQ): Ditto.
9332         (IX86_BUILTIN_PCOMGEUQ): Ditto.
9333         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
9334         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
9335         (IX86_BUILTIN_PCOMEQB): Ditto.
9336         (IX86_BUILTIN_PCOMNEB): Ditto.
9337         (IX86_BUILTIN_PCOMLTB): Ditto.
9338         (IX86_BUILTIN_PCOMLEB): Ditto.
9339         (IX86_BUILTIN_PCOMGTB): Ditto.
9340         (IX86_BUILTIN_PCOMGEB): Ditto.
9341         (IX86_BUILTIN_PCOMFALSEB): Ditto.
9342         (IX86_BUILTIN_PCOMTRUEB): Ditto.
9343         (IX86_BUILTIN_PCOMEQW): Ditto.
9344         (IX86_BUILTIN_PCOMNEW): Ditto.
9345         (IX86_BUILTIN_PCOMLTW): Ditto.
9346         (IX86_BUILTIN_PCOMLEW): Ditto.
9347         (IX86_BUILTIN_PCOMGTW): Ditto.
9348         (IX86_BUILTIN_PCOMGEW): Ditto.
9349         (IX86_BUILTIN_PCOMFALSEW): Ditto.
9350         (IX86_BUILTIN_PCOMTRUEW): Ditto.
9351         (IX86_BUILTIN_PCOMEQD): Ditto.
9352         (IX86_BUILTIN_PCOMNED): Ditto.
9353         (IX86_BUILTIN_PCOMLTD): Ditto.
9354         (IX86_BUILTIN_PCOMLED): Ditto.
9355         (IX86_BUILTIN_PCOMGTD): Ditto.
9356         (IX86_BUILTIN_PCOMGED): Ditto.
9357         (IX86_BUILTIN_PCOMFALSED): Ditto.
9358         (IX86_BUILTIN_PCOMTRUED): Ditto.
9359         (IX86_BUILTIN_PCOMEQQ): Ditto.
9360         (IX86_BUILTIN_PCOMNEQ): Ditto.
9361         (IX86_BUILTIN_PCOMLTQ): Ditto.
9362         (IX86_BUILTIN_PCOMLEQ): Ditto.
9363         (IX86_BUILTIN_PCOMGTQ): Ditto.
9364         (IX86_BUILTIN_PCOMGEQ): Ditto.
9365         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
9366         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
9367         (enum multi_arg_type): New enum for describing the various SSE5
9368         intrinsic argument types.
9369         (bdesc_multi_arg): New table for SSE5 intrinsics.
9370         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
9371         (ix86_expand_multi_arg_builtin): New function for creating SSE5
9372         intrinsics.
9373         (ix86_expand_builtin): Add SSE5 intrinsic support.
9374         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
9375         operand instructions.
9376         (ix86_expand_sse5_multiple_memory): New function to split the
9377         second memory reference from SSE5 instructions.
9378         (type_has_variadic_args_p): Delete in favor of stdarg_p.
9379         (ix86_return_pops_args): Use stdarg_p to determine if the function
9380         has variable arguments.
9381         (ix86_setup_incoming_varargs): Ditto.
9382         (x86_this_parameter): Ditto.
9383
9384         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
9385         declaration.
9386         (ix86_expand_sse5_pack): Ditto.
9387         (ix86_sse5_valid_op_p): Ditto.
9388         (ix86_expand_sse5_multiple_memory): Ditto.
9389
9390         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
9391         constant for SSE5 support.
9392         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
9393         (UNSPEC_SSE5_TRUEFALSE): Ditto.
9394         (UNSPEC_SSE5_PERMUTE): Ditto.
9395         (UNSPEC_SSE5_ASHIFT): Ditto.
9396         (UNSPEC_SSE5_LSHIFT): Ditto.
9397         (UNSPEC_FRCZ): Ditto.
9398         (UNSPEC_CVTPH2PS): Ditto.
9399         (UNSPEC_CVTPS2PH): Ditto.
9400         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
9401         (PCOM_TRUE): Ditto.
9402         (COM_FALSE_S): Ditto.
9403         (COM_FALSE_P): Ditto.
9404         (COM_TRUE_S): Ditto.
9405         (COM_TRUE_P): Ditto.
9406         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
9407         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
9408         types.
9409         (memory attribute): Ditto.
9410         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
9411         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
9412         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
9413         (floor<mode>2): Ditto.
9414         (ceil<mode>2): Ditto.
9415         (btrunc<mode>2): Ditto.
9416         (nearbyintdf2): Ditto.
9417         (nearbyintsf2): Ditto.
9418         (sse_setccsf): Disable if SSE5.
9419         (sse_setccdf): Ditto.
9420         (sse5_setcc<mode>): New support for SSE5 conditional move.
9421         (sse5_pcmov_<mode>): Ditto.
9422
9423         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
9424         (SSEMODEF4): Ditto.
9425         (SSEMODEF2P): Ditto.
9426         (ssemodesuffixf4): New mode attribute for SSE5.
9427         (ssemodesuffixf2s): Ditto.
9428         (ssemodesuffixf2c): Ditto.
9429         (sserotatemax): Ditto.
9430         (ssescalarmode): Ditto.
9431         (sse_maskcmpv4sf3): Disable if SSE5.
9432         (sse_maskcmpv2df3): Ditto.
9433         (sse_vmmaskcmpv4sf3): Ditto.
9434         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
9435         (sse5_vmfmadd<mode>4): Ditto.
9436         (sse5_fmsub<mode>4): Ditto.
9437         (sse5_vmfmsub<mode>4): Ditto.
9438         (sse5_fnmadd<mode>4): Ditto.
9439         (sse5_vmfnmadd<mode>4): Ditto.
9440         (sse5_fnmsub<mode>4): Ditto.
9441         (sse5_vmfnmsub<mode>4): Ditto.
9442         (sse5i_fmadd<mode>4): Ditto.
9443         (sse5i_fmsub<mode>4): Ditto.
9444         (sse5i_fnmadd<mode>4): Ditto.
9445         (sse5i_fnmsub<mode>4): Ditto.
9446         (sse5i_vmfmadd<mode>4): Ditto.
9447         (sse5i_vmfmsub<mode>4): Ditto.
9448         (sse5i_vmfnmadd<mode>4): Ditto.
9449         (sse5i_vmfnmsub<mode>4): Ditto.
9450         (mulv16qi3): Add SSE5 support.
9451         (mulv4si3): Ditto.
9452         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
9453         (sse2_mulv4si3): Disable if SSE5.
9454         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
9455         (sse4_1_roundps): Ditto.
9456         (sse4_1_roundsd): Ditto.
9457         (sse4_1_roundss): Ditto.
9458         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
9459         be generated.
9460         (sse_maskcmpsf3): Ditto.
9461         (sse_vmmaskcmpv4sf3): Ditto.
9462         (sse2_maskcmpv2df3): Ditto.
9463         (sse2_maskcmpdf3): Ditto.
9464         (sse2_vmmaskcmpv2df3): Ditto.
9465         (sse2_eq<mode>3): Ditto.
9466         (sse2_gt<mode>3): Ditto.
9467         (sse5_pcmov_<mode>): Add SSE5 support.
9468         (vec_unpacku_hi_v16qi): Ditto.
9469         (vec_unpacks_hi_v16qi): Ditto.
9470         (vec_unpacku_lo_v16qi): Ditto.
9471         (vec_unpacks_lo_v16qi): Ditto.
9472         (vec_unpacku_hi_v8hi): Ditto.
9473         (vec_unpacks_hi_v8hi): Ditto.
9474         (vec_unpacku_lo_v8hi): Ditto.
9475         (vec_unpacks_lo_v8hi): Ditto.
9476         (vec_unpacku_hi_v4si): Ditto.
9477         (vec_unpacks_hi_v4si): Ditto.
9478         (vec_unpacku_lo_v4si): Ditto.
9479         (vec_unpacks_lo_v4si): Ditto.
9480         (sse5_pmacsww): New SSE5 intrinsic insn.
9481         (sse5_pmacssww): Ditto.
9482         (sse5_pmacsdd): Ditto.
9483         (sse5_pmacssdd): Ditto.
9484         (sse5_pmacssdql): Ditto.
9485         (sse5_pmacssdqh): Ditto.
9486         (sse5_pmacsdqh): Ditto.
9487         (sse5_pmacsswd): Ditto.
9488         (sse5_pmacswd): Ditto.
9489         (sse5_pmadcsswd): Ditto.
9490         (sse5_pmadcswd): Ditto.
9491         (sse5_pcmov_<move>): Conditional move support on SSE5.
9492         (sse5_phaddbw): New SSE5 intrinsic insn.
9493         (sse5_phaddbd): Ditto.
9494         (sse5_phaddbq): Ditto.
9495         (sse5_phaddwd): Ditto.
9496         (sse5_phaddwq): Ditto.
9497         (sse5_phadddq): Ditto.
9498         (sse5_phaddubw): Ditto.
9499         (sse5_phaddubd): Ditto.
9500         (sse5_phaddubq): Ditto.
9501         (sse5_phadduwd): Ditto.
9502         (sse5_phadduwq): Ditto.
9503         (sse5_phaddudq): Ditto.
9504         (sse5_phsubbw): Ditto.
9505         (sse5_phsubwd): Ditto.
9506         (sse5_phsubdq): Ditto.
9507         (sse5_pperm): Ditto.
9508         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
9509         (sse5_pperm_zero_v16qi_v8hi): Ditto.
9510         (sse5_pperm_sign_v8hi_v4si): Ditto.
9511         (sse5_pperm_zero_v8hi_v4si): Ditto.
9512         (sse5_pperm_sign_v4si_v2di): Ditto.
9513         (sse5_pperm_sign_v4si_v2di): Ditto.
9514         (sse5_pperm_pack_v2di_v4si): Ditto.
9515         (sse5_pperm_pack_v4si_v8hi): Ditto.
9516         (sse5_pperm_pack_v8hi_v16qi): Ditto.
9517         (sse5_perm<mode>): New SSE5 intrinsic insn.
9518         (rotl<mode>3): Ditto.
9519         (sse5_rotl<mode>3): Ditto.
9520         (sse5_ashl<mode>3): Ditto.
9521         (sse5_lshl<mode>3): Ditto.
9522         (sse5_frcz<mode>2): Ditto.
9523         (sse5s_frcz<mode>2): Ditto.
9524         (sse5_cvtph2ps): Ditto.
9525         (sse5_cvtps2ph): Ditto.
9526         (sse5_vmmaskcmp<mode>3): Ditto.
9527         (sse5_com_tf<mode>3): Ditto.
9528         (sse5_maskcmp<mode>3): Ditto.
9529         (sse5_maskcmp_uns<mode>3): Ditto.
9530         (sse5_maskcmp_uns2<mode>3): Ditto.
9531         (sse5_pcom_tf<mode>3): Ditto.
9532
9533         * config/i386/predicates.md (sse5_comparison_float_operator):
9534         New predicate to match the comparison operators supported by
9535         the SSE5 com instruction.
9536         (ix86_comparison_int_operator): New predicate to match just the
9537         signed int comparisons.
9538         (ix86_comparison_uns_operator): New predicate to match just the
9539         unsigned int comparisons.
9540
9541         * doc/invoke.texi (-msse5): Add documentation.
9542         (-mfused-madd): Ditto.
9543
9544         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
9545
9546         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
9547         mmintrin-common.h.
9548         (x86_64-*-*): Ditto.
9549
9550         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
9551
9552         * config/i386/bmmintrin.h: New file, provide common x86 compiler
9553         intrinisics for SSE5.
9554
9555         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
9556         mmintrin-common.h.
9557
9558         * config/i386/mmintrin-common.h: New file, to contain common
9559         instructions between SSE4.1 and SSE5.
9560
9561         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
9562         FOREACH_FUNCTION_ARGS to iterate over the argument list.
9563         (gen_regparm_prefix): Ditto.
9564
9565         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
9566         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
9567         prototype_p to determine if a function is prototyped.
9568
9569 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
9570
9571         * c-common.c (c_common_reswords) add the alignof keyword,
9572         with same RID as __alignof and __alignof__
9573
9574 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
9575
9576         * hooks.h (hook_bool_const_int_const_int_true): Declare.
9577         * hooks.c (hook_bool_const_int_const_int_true): New function.
9578         * target.h (struct gcc_target): Add can_eliminate field.
9579         * target-def.h (TARGET_CAN_ELIMINATE): Define.
9580         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
9581         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
9582         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
9583         (elim_table): Revise comment.
9584         * system.h (CAN_ELIMINATE): Poison.
9585         * defaults.h (CAN_ELIMINATE): Remove.
9586         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
9587
9588         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
9589         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
9590         Define macro.
9591         (alpha_vms_can_eliminate): Declare as static, change return type to
9592         bool.
9593         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
9594
9595         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
9596         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
9597         (arm_can_eliminate): New function.
9598
9599         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
9600         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
9601         (avr_can_eliminate): Declare as static.
9602         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
9603
9604         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
9605         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
9606         (bfin_can_eliminate): New function.
9607
9608         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
9609         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
9610         (crx_can_eliminate): New function.
9611
9612         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
9613         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
9614         (fr30_can_eliminate): New function.
9615
9616         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
9617         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
9618         (frv_can_eliminate): New function.
9619
9620         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
9621         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
9622         (h8300_can_eliminate): New function.
9623
9624         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
9625         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
9626         (i386_can_eliminate): Declare as static, change return type to bool.
9627         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
9628
9629         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
9630         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
9631         (ia64_can_eliminate): New function.
9632
9633         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
9634         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
9635         (iq2000_can_eliminate): New function.
9636
9637         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
9638         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
9639         (m32r_can_eliminate): New function.
9640
9641         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
9642         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
9643         (m68hc11_can_eliminate): New function.
9644
9645         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
9646         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
9647         (m68k_can_eliminate): New function.
9648
9649         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
9650         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
9651         (mep_can_eliminate): New function.
9652
9653         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
9654         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
9655         (mips_can_eliminate): New function.
9656
9657         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
9658         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
9659         (rs6000_can_eliminate): New function.
9660
9661         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
9662         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
9663         (s390_can_eliminate): Declare as static.
9664         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
9665
9666         * config/score/score.h (CAN_ELIMINATE): Remove macro.
9667         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
9668         (score_can_eliminate): New function.
9669
9670         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
9671         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
9672         (sparc_can_eliminate): Declare as static.
9673         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
9674
9675         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
9676         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
9677         (xstormy16_can_eliminate): New function.
9678
9679         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
9680         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
9681         (v850_can_eliminate): New function.
9682
9683 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
9684
9685         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
9686         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
9687         (*movdfcc_ext[1234]): Disable for IEEE mode.
9688
9689 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
9690
9691         * gimplify.c (prepare_gimple_addressable): New static function.
9692         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
9693         it addressable.
9694         (gimplify_addr_expr): Invoke it similarly on the operand instead of
9695         manually fiddling with it.
9696
9697 2009-08-25  Michael Matz  <matz@suse.de>
9698
9699         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
9700         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
9701         full expression.
9702         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
9703         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
9704         (do_jump): Split out code for simple binary comparisons into ...
9705         (do_jump_1): ... this, taking the individual operands and code.
9706         Change callers to helper function above accordingly.
9707         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
9708         comparisons.
9709
9710 2009-08-25  Michael Matz  <matz@suse.de>
9711
9712         * expr.h (struct separate_ops, sepops): New type for passing
9713         around an exploded simple expression.
9714         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
9715         Use this structure instead of expression tree.
9716         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
9717         expression, only its type.
9718         (expand_vec_cond_expr): Take type and individual operands instead
9719         of full expression.
9720         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
9721         expand_vec_shift_expr): Change prototype accordingly.
9722         * tree-vect-stmts.c (vectorizable_condition): Change call of
9723         expand_vec_cond_expr_p to pass only type.
9724         * expr.c (do_store_flags): Change prototype and implementation
9725         to take an exploded expression.
9726         (expand_expr_real_1): New local ops initialized with details
9727         of the full expression.  Use it instead of full
9728         expression in calls to do_store_flags, expand_vec_cond_expr,
9729         expand_widen_pattern_expr and expand_vec_shift_expr.
9730
9731 2009-08-25  Michael Matz  <matz@suse.de>
9732
9733         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
9734         treeop2 initialized with first three operands of the full expression.
9735         Substitute all TREE_OPERAND (exp, [012]) calls with them.
9736
9737 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
9738
9739         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
9740         (__gthread_objc_condition_allocate): Mark arguments as unused.
9741         (__gthread_objc_condition_deallocate): Likewise.
9742         (__gthread_objc_condition_wait): Likewise.
9743         (__gthread_objc_condition_broadcast): Likewise.
9744         (__gthread_objc_condition_signal): Likewise.
9745         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
9746         (__gthread_objc_thread_id): Likewise.
9747
9748 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
9749
9750         PR middle-end/41149
9751         * tree-pretty-print.c (print_call_name): Print the correct call name
9752         for procedure pointer components.
9753
9754 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
9755
9756         * config/ia64/ia64.c (ia64_promote_function_mode): Call
9757         default_promote_function_mode when not VMS.
9758
9759 2009-08-24  Olivier Hainque  <hainque@adacore.com>
9760
9761         * convert.c (convert_to_integer): Don't assume an input pointer is
9762         POINTER_SIZE wide.  Fetch from the type instead.
9763
9764 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9765
9766         * configure.ac (AC_PREREQ): Bump to 2.64.
9767
9768 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
9769
9770         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
9771         (process_command): Don't search standard_exec_prefix_1 and
9772         standard_exec_prefix_2.
9773
9774 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9775
9776         * config/arm/arm.c (output_return_instruction): Handle for
9777         unified syntax.
9778
9779 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9780
9781         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
9782
9783 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9784
9785         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
9786         (*arm_movdf_vfp): Likewise.
9787
9788 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9789
9790         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
9791         (vashr<mode>3): Rename from ashr<mode>3.
9792         (vlshr<mode>3): Rename from lshr<mode>3.
9793
9794 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
9795
9796         PR/40786
9797         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
9798         (check_format_info_main): Use scalar_identify_flag.
9799         (check_format_types): Check for scalar size identity if
9800         scalar_identify_flag is set.
9801         (printf_length_specs): Extend by new field.
9802         (asm_fprintf_length_specs): Likewise.
9803         (gcc_diag_length_specs): Likewise.
9804         (scanf_length_specs): Likewise.
9805         (strfmon_length_specs): Likewise.
9806         (gcc_gfc_length_specs): Likewise.
9807         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
9808         (ms_printf_flag_specs): Likewise.
9809         * c-format.h (format_length_info): Add new member scalar_identity_flag.
9810
9811 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
9812
9813         PR target/40718
9814         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
9815         (*call_value_pop_1): Ditto.
9816         (*sibcall_pop_1): New insn pattern.
9817         (*sibcall_value_pop_1): Ditto.
9818
9819 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
9820
9821         PR target/41081
9822         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
9823         ashrsi3_64): New.
9824
9825 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
9826
9827         PR target/41081
9828         * fwprop.c (try_fwprop_subst): Allow multiple sets.
9829         (get_reg_use_in): New function.
9830         (forward_propagate_subreg): Propagate through subreg of zero_extend
9831         or sign_extend.
9832
9833 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
9834
9835         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
9836         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
9837
9838 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9839
9840         * configure.ac: Remove --with-datarootdir, --with-docdir,
9841         --with-htmldir switches.  No need to call AC_SUBST for
9842         datarootdir, docdir, htmldir any more.
9843         * configure: Regenerate.
9844         * doc/install.texi (Configuration): Document --datarootdir,
9845         --docdir, --htmldir, --pdfdir; update documentation for
9846         --infodir, --mandir.
9847         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
9848         M4 to 1.4.6.
9849
9850         * aclocal.m4: Regenerate.
9851         * config.in: Regenerate.
9852         * configure: Regenerate.
9853
9854 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
9855             Olivier Hainque  <hainque@adacore.com>
9856
9857         * config/ia64/ia64.c: Include libfuncs.h.
9858         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
9859         (ia64_expand_call): Use reg 25 on VMS.
9860         (ia64_initialize_trampoline): Fix for VMS ABI.
9861         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
9862         (ia64_function_arg): Initialize reg 25 on VMS.
9863         Fix OpenVMS ABI issues for varargs.
9864         For OpenVMS, emit the Argument Information register set in the
9865         incoming/sibcall case as well.
9866         (ia64_arg_type): New function.
9867         (ia64_function_arg_advance): Keep track of cum->words.
9868         Fix OpenVMS ABI issues for varargs.
9869         (ia64_function_value): On VMS, promote mode of non-aggregate types.
9870         (ia64_override_options): Set flag_no_common on VMS.
9871         (ia64_init_builtins): Disable FWRITE builtin.
9872         (ia64_asm_output_external): Call DO_CRTL_NAMES.
9873         (ia64_vms_init_libfuncs): Add decc$ routines.
9874         (ia64_vms_valid_pointer_mode): New function.
9875         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
9876         (ia64_promote_function_mode): New function
9877         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
9878         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
9879         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
9880         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
9881         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
9882         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
9883         Suppress trailing '#' if VALUE is numeric.
9884         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
9885         ia64_promote_function_mode.
9886         (TARGET_VALID_POINTER_MODE): Define.
9887
9888 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9889
9890         PR target/40671
9891         * config/rs6000/rs6000.c (rs6000_override_options): Use
9892         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
9893
9894         PR target/41145
9895         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
9896         reporting of vector + decimal/boolean/complex error.
9897
9898 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
9899
9900         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
9901         __vector double TYPE_DECL.
9902
9903 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
9904
9905         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
9906         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
9907         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
9908         to pointer to enum machine_mode.  Update all callers as needed.
9909
9910 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
9911
9912         * config/alpha/alpha.md (exception_receiver): Emit alternative
9913         GP load sequence if flag_reorder_blocks_and_partition is set.
9914         (*exception_receiver_2): Also enable when
9915         flag_reorder_blocks_and_partition is set.
9916
9917 2009-08-20  Matt Rice  <ratmice@gmail.com>
9918             Diego Novillo  <dnovillo@google.com>
9919
9920         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
9921         tree-ssa-sccvn.h.
9922
9923 2009-08-20  Richard Guenther  <rguenther@suse.de>
9924
9925         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
9926         * c-tree.h (c_dup_lang_specific_decl): Remove.
9927         (struct lang_decl, struct lang_type): Move definitions ...
9928         * c-lang.h: ... here.  New file.
9929         * c-decl.c: Include c-lang.h.
9930         (c_dup_lang_specific_decl): Remove.
9931         * c-typeck.c: Include c-lang.h.
9932         * Makefile.in (c-decl.o): Add c-lang.h dependency.
9933         (c-typeck.o): Likewise.
9934         * c-config-lang.in (gtfiles): Add c-lang.h.
9935         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
9936         like c-tree.h.
9937
9938 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
9939
9940         * config/alpha/alpha.c (alpha_end_function): Do not clear
9941         crtl->emit structure and free insn locators if cfun->is_thunk is true,
9942         this is now handled in generic code.
9943
9944 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
9945
9946         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
9947         (s390_z10_fix_long_loop_prediction): New function.
9948         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
9949         (s390_reorg): Walk over the INSNs and invoke
9950         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
9951
9952 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
9953
9954         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
9955         "*brx_64bit", "*brx_31bit"): New patterns.
9956         * config/s390/s390.c ('E'): New output modifier.
9957
9958 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9959             Richard Earnshaw  <richard.earnshaw@arm.com>
9960
9961         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
9962         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
9963
9964 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9965
9966         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
9967         patterns.
9968         * pa.c (emit_move_sequence): Check if address of operand1 is valid
9969         for mode mode of operand0 when doing secondary reload for SAR.
9970
9971 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
9972
9973         PR middle-end/41123
9974         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
9975         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
9976
9977 2009-08-19  Jason Merrill  <jason@redhat.com>
9978
9979         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
9980         supported template depth in C++0x.
9981
9982 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
9983
9984         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
9985         free_after_compilation.
9986         * config/score/score7.c (score7_output_mi_thunk): Likewise.
9987         * config/score/score3.c (score3_output_mi_thunk): Likewise.
9988         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9989         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
9990         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9991         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9992         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9993
9994 2009-08-19  Ian Lance Taylor  <iant@google.com>
9995
9996         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
9997         of (plus (mult (neg B) C) A).
9998
9999 2009-08-18  Michael Matz  <matz@suse.de>
10000
10001         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
10002         instead of comparing TYPE_MAIN_VARIANT for equality.
10003         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
10004         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
10005         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
10006         * gimplify.c (goa_lhs_expr_p): Ditto and use
10007         STRIP_USELESS_TYPE_CONVERSION.
10008
10009 2009-08-18  Michael Matz  <matz@suse.de>
10010
10011         * tree-ssa-structalias.c (create_variable_info_for): Also mark
10012         first field in a struct.
10013         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
10014
10015 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
10016
10017         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
10018         locators before emit_insn is called.  Remove assert that
10019         cfun->is_thunk.
10020         (alpha_end_function): Clear crtl->emit structure and free insn
10021         locators if cfun->is_thunk is true.
10022
10023 2009-08-18  Jason Merrill  <jason@redhat.com>
10024
10025         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
10026         type if available.
10027         * configure.ac: Test for it.
10028         * configure, config.in: Regenerate.
10029         * doc/install.texi: Document --enable-gnu-unique-object.
10030
10031 2009-08-18  Richard Guenther  <rguenther@suse.de>
10032
10033         PR middle-end/41094
10034         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
10035         pow(x,y*z) only if x is nonnegative.
10036
10037 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
10038
10039         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
10040         on jumps.
10041
10042         PR target/40971
10043         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
10044         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
10045
10046 2009-08-17  DJ Delorie  <dj@redhat.com>
10047
10048         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
10049         * config/m32c/prologue.md (epilogue_freit): New.
10050         (fset_b): New.
10051         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
10052         (bank_switch_p): Likewise.
10053         (fast_interrupt_p): Likewise.
10054         (interrupt_p): Likewise.
10055         (m32c_conditional_register_usage): Round memregs size up.
10056         (need_to_save): We only need to save $a0 when we use ENTER.
10057         (interrupt_p): Check for fast_interrupt too.
10058         (bank_switch_p): New.
10059         (fast_interrupt_p): New.
10060         (m32c_attribute_table): Add bank_switch and fast_interrupt.
10061         (m32c_emit_prolog): Support bank switching and fast interrupts.
10062         * doc/extend.texi (Function Attributes): Add bank_switch and
10063         fast_interrupt.
10064
10065 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
10066
10067         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
10068         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
10069
10070 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
10071
10072         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
10073         (menu): Add IA-64/VMS Options.
10074         (IA-64/VMS Options): Likewise.
10075
10076 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
10077
10078         PR target/38599
10079         * config/mips/mips.md (*lwxs): Use :P for pointer values.
10080
10081 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
10082
10083         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
10084         (mips_pop_asm_switch): Likewise.
10085         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
10086         with...
10087         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
10088         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
10089         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
10090         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
10091         instead of set_noreorder.
10092         (mips_output_function_prologue): Use the new functions.
10093         (mips_output_function_epilogue): Likewise.
10094         (mips_need_noat_wrapper_p): New function, split out from...
10095         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
10096         Use mips_push_asm_switch and mips_pop_asm_switch.
10097         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
10098         and mips_pop_asm_switch.
10099         (ASM_OUTPUT_REG_POP): Likewise.
10100         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
10101         Use mips_pop_asm_switch.
10102         (mips_asm_switch): New structure.
10103         (set_noreorder, set_nomacro): Replace with...
10104         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
10105         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
10106         instead of set_nomacro.
10107         (fix_truncsfsi2_macro): Likewise.
10108         (cprestore): Likewise.
10109         (hazard): Use mips_noreorder instead of set_noreorder.
10110         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
10111
10112 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
10113
10114         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
10115         from prev_active_insn.
10116
10117 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
10118
10119         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
10120         * config/avr/avr.c (avr_override_options): Initialize
10121         avr_current_arch variable.
10122         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
10123         __AVR_HAVE_16BIT_SP__ according to the device type.
10124         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
10125         TARGET_TINY_STACK.
10126         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
10127         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
10128
10129 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
10130
10131         PR debug/37801
10132         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
10133         generating inlined subroutine die only. We shouldn't be
10134         called for anything else.
10135         (gen_block_die): Don't generate inline subroutine debug info for
10136         abstract blocks.
10137
10138 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
10139
10140         * graphite-poly.c (print_pbb): Print PBB index.
10141
10142 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
10143
10144         PR middle-end/40981
10145         * graphite-interchange.c (ppl_max_for_le): Moved...
10146         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
10147         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
10148         ppl_Pointset_Powerset_C_Polyhedron_maximize.
10149         * graphite-ppl.h (ppl_max_for_le): Declared.
10150
10151 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
10152
10153         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
10154         supported on all platforms.
10155         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
10156         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
10157         * c-pragma.c: Likewise.
10158         * target-def.h (TARGET_INITIALIZER): Remove
10159         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
10160         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
10161
10162 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
10163
10164         * config/ia64/fde-vms.c: New file.
10165         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
10166         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
10167         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
10168         (uw_frame_state_for): Only register a personality routine if it is
10169         known to be compatible with our expectations.
10170         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
10171         Declare unw_table_entry stack variable and
10172         mod all calls to _Unwind_FindTableEntry to add arg.
10173         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
10174         (_Unwind_FindTableEntry): Add arg to prototype.
10175
10176 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
10177
10178         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
10179         field 'signal_pfs_loc'.
10180         (uw_frame_state_for): Remove duplicate code dealing with leaf
10181         procedures without unwind info.
10182         If in the frame after unwinding through a signal handler, restore
10183         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
10184         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
10185         'pfs_loc' to the AR.PFS location in the signal context; instead
10186         set 'signal_pfs_loc'.
10187         Manually generate the unwind info for the AR.PFS register.
10188         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
10189         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
10190         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
10191         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
10192         instead set 'signal_pfs_loc'.
10193         Remove code preventing the AR.PFS register from being restored
10194         from the signal context.
10195
10196 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
10197             Tristan Gingold  <gingold@adacore.com>
10198
10199         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
10200         * config/ia64/t-vms: New file.
10201         * config/ia64/vms64.h: New file.
10202         * config/ia64/vms.h: New file.
10203         * config/ia64/vms-crtinit.asm: New file.
10204         * config/ia64/vms_symvec_libgcc_s.opt: New file.
10205         * config/ia64/vms-unwind.h: New file.
10206
10207 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
10208
10209         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
10210         TFmode compares.
10211
10212 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10213
10214         PR middle-end/30789
10215         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
10216         Move declaration...
10217         * real.h (do_mpc_arg2): ... here.
10218         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
10219         and RDIV_EXPR.
10220
10221 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
10222
10223         * final.c (add_debug_prefix_map): Don't use GC memory for
10224         old_prefix and new_prefix.
10225
10226 2009-08-14  Richard Guenther  <rguenther@suse.de>
10227
10228         * ipa-prop.c (compute_complex_pass_through): If we cannot
10229         compute a non-varying offset for IPA_JF_ANCESTOR punt.
10230
10231 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10232
10233         * c-lex.c (c_lex_with_flags): Increase size of local variable
10234         to avoid memory clobber.
10235
10236 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
10237
10238         PR target/40934
10239         * config/i386/i386.c (ix86_fp_comparison_strategy):
10240         Only enable/disable sahf at function granularity.
10241
10242 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
10243
10244         PR rtl-optimization/41064
10245         * reload1.c (reload_as_needed): Don't call extract_insn
10246         for known invalid replacements after calling
10247         validate_replace_rtx_group and verify_changes.
10248
10249 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
10250
10251         PR target/41019
10252         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
10253         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
10254         ix86_expand_fp_vcond.
10255         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
10256         Assert that operation is supported by ix86_expand_int_vcond.
10257         (vcondu<SSEMODE124C8:mode>): Ditto.
10258
10259 2009-08-13  DJ Delorie  <dj@redhat.com>
10260
10261         * config/i386/djgpp-stdint.h: New.
10262         * config.gcc (djgpp): Use it.
10263
10264 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
10265
10266         * config/sh/sh.c (sh_override_options): When flag_exceptions or
10267         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
10268
10269 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
10270
10271         * tree-ssa-loop-prefetch.c
10272         (prune_ref_by_group_reuse): Enhance probabilistic analysis
10273         for long-stride pruning.
10274         (compute_miss_rate): New function to compute the probability
10275         that two memory references access different cache lines.
10276
10277 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
10278
10279         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
10280
10281 2009-08-13  Richard Guenther  <rguenther@suse.de>
10282
10283         PR middle-end/41047
10284         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
10285         use the constant pointer type.
10286         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
10287         of CV qualifiers on the target pointer type.
10288         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
10289         conversion check before restrict check.
10290
10291 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
10292
10293         PR target/41029
10294         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
10295
10296 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
10297
10298         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
10299
10300 2009-08-12  Richard Guenther  <rguenther@suse.de>
10301
10302         PR tree-optimization/41011
10303         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
10304         and reference constructing.
10305
10306 2009-08-12  Xinliang David Li  <davidxl@google.com>
10307
10308         PR tree-optimization/41012
10309         * tree-flow.h : New external interface.
10310         * gimple-low.c (check_call_arg): Change to public function.
10311         Remove argument mismatch check in lowering.
10312         * tree-inline.h (tree_can_inline_p): Interface change.
10313         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
10314         into this function.
10315         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
10316         Call change to tree_can_inline_p function.
10317         (cgraph_decide_inlining_incrementally): Ditto.
10318
10319 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
10320
10321         PR tree-optimization/41031
10322         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
10323         on the partition variable rather than promote_mode on the source
10324         type.  Assert that the partition variable's type has the same
10325         mode as the source value's.
10326
10327 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
10328
10329         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
10330         for for_return == 2.
10331         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
10332         comments.
10333         * calls.c (expand_call): Fix typo.
10334         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
10335         and PARM_DECL.
10336         * stmt.c (expand_value_return): Use promote_function_mode to copy out
10337         of pseudo.
10338         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
10339         * config/cris/cris.c (cris_promote_function_mode): Likewise.
10340         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
10341         * config/pa/pa.c (pa_promote_function_mode): Likewise.
10342
10343 2009-08-12  Andrew Haley  <aph@redhat.com>
10344
10345         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
10346
10347 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10348
10349         PR bootstrap/40103
10350         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
10351
10352 2009-08-12  Richard Guenther  <rguenther@suse.de>
10353
10354         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
10355         * gimplify.c (gimplify_modify_expr): Do not use
10356         lang_hooks.types_compatible_p.
10357         * tree-ssa.c (useless_type_conversion_p): For aggregates
10358         just return false if the canonical types differ.
10359
10360 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10361
10362         PR middle-end/40980
10363         * sese.c (convert_for_phi_arg): New.
10364         (add_guard_exit_phis): Use convert_for_phi_arg.
10365
10366 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10367
10368         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
10369         unknown subscript upper bounds.
10370
10371 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10372             Pranav Garg  <pranav.garg2107@gmail.com>
10373
10374         * graphite-interchange.c (gather_access_strides): Removed.
10375         (ppl_max_for_le): New.
10376         (build_linearized_memory_access): New.
10377         (memory_stride_in_loop): New.
10378         (pbb_interchange_profitable_p): Reimplemented.
10379         * graphite-ppl.h (ppl_new_id_map): New.
10380         (ppl_interchange): New.
10381
10382 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10383
10384         * graphite-interchange.c (compute_subscript): Removed.
10385         (compute_array_size_cstr): Removed.
10386         (compute_array_size_poly): Removed.
10387         (compute_array_size): Removed.
10388         (gather_access_strides_poly): Removed.
10389         (gather_access_strides): Empty.
10390
10391 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10392
10393         * graphite-dependences.c (dependence_polyhedron_1): Replace
10394         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
10395         (graphite_legal_transform_dr): Same.
10396         (graphite_carried_dependence_level_k): Same.
10397         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
10398         Initialize PDR_NB_SUBSCRIPTS.
10399         (print_pdr_access_layout): Replace pdr_nb_subscripts with
10400         PDR_NB_SUBSCRIPTS.
10401         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
10402         (PDR_NB_SUBSCRIPTS): New.
10403         (pdr_nb_subscripts): Removed.
10404         (pdr_dim): Simplified.
10405         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
10406         with PDR_NB_SUBSCRIPTS.
10407
10408 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10409
10410         * graphite-interchange.c (compute_array_size): Remove use of
10411         PDR_DATA_CONTAINER.
10412         * graphite-poly.c (new_poly_dr): Remove argument data_container.
10413         Do not initialize PDR_DATA_CONTAINER.
10414         (print_pdr): Do not print PDR_DATA_CONTAINER.
10415         * graphite-poly.h (struct poly_dr): Remove data_container field.
10416         (PDR_DATA_CONTAINER): Removed.
10417         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
10418         PDR_DATA_CONTAINER.
10419         (build_poly_dr): Same.
10420
10421 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
10422             Sebastian Pop  <sebastian.pop@amd.com>
10423
10424         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
10425         copy of the dependence polyhedron.  Free the temporary objects.
10426         (graphite_carried_dependence_level_k): Free unused objects before
10427         returning.
10428
10429 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10430
10431         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
10432         Early return without analyzing the data dependences if no
10433         transform has been done.  Call restore_scattering if the transform
10434         is not legal.
10435         (graphite-interchange.c): Same.
10436         * graphite-poly.c (print_scattering_function): Test for
10437         PBB_TRANSFORMED.
10438         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
10439         (apply_poly_transforms): Do not gcc_assert that
10440         the transform is legal.
10441         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
10442         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
10443         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
10444         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
10445         * graphite-poly.h (struct poly_scattering): New.
10446         (struct poly_bb): Add original, transformed, and saved fields.
10447         Remove transformed_scattering, original_scattering,
10448         nb_local_variables and nb_scattering_transform fields.
10449         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
10450         (poly_scattering_new): New.
10451         (poly_scattering_free): New.
10452         (poly_scattering_copy): New.
10453         (store_scattering_pbb): New.
10454         (store_scattering): New.
10455         (restore_scattering_pbb): New.
10456         (restore_scattering): New.
10457         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
10458         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
10459
10460 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10461
10462         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
10463         (print_scop): Same.
10464
10465 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10466
10467         * Makefile.in (graphite.o): Depends on PREDICT_H.
10468         * graphite.c: Include predict.h.
10469         (graphite_finalize): Call tree_estimate_probability.
10470         * predict.c (predict_loops): Do not call scev_initialize and
10471         scev_finalize.
10472         (tree_estimate_probability_bb): New.
10473         (tree_estimate_probability): Do not initialize loops: move that
10474         code to the driver.  Call tree_estimate_probability_bb.
10475         (tree_estimate_probability_driver): New.
10476         (pass_profile): Use tree_estimate_probability_driver.
10477         * predict.h (tree_estimate_probability): Declared.
10478
10479 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10480
10481         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
10482         * graphite-dependences.c (graphite_legal_transform): Add time to
10483         TV_GRAPHITE_DATA_DEPS.
10484         (dependency_between_pbbs_p): Same.
10485         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
10486
10487 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
10488
10489         PR rtl-optimization/41033
10490         * alias.c (nonoverlapping_component_refs_p): Punt when strict
10491         aliasing is disabled.
10492
10493 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
10494
10495         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
10496         si_mask_operand, and_load_operand, low_bitmask_operand,
10497         and_reg_operand, and_operand): New predicates.
10498         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
10499         * config/mips/mips.c (and_operands_ok): New function.
10500         * config/mips/mips-protos.h (and_operands_ok): Declare it.
10501         * config/mips/mips.md (move_type): Add ext_ins and logical.
10502         (type): Handle them.
10503         (and<mode>3): Use and_reg_operand as the second operand's predicate.
10504         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
10505         shift_shift.  Remove commutative constraint modifier.
10506         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
10507         shift_shift.
10508         (*clear_upper32_dext): Remove define_insn_and_split.
10509         (*clear_upper32): Turn this define_insn_and_split ...
10510         (splitter for ANDing register with 0xffff_ffff): .. into this.
10511
10512 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
10513
10514         * combine.c (try_widen_shift_mode): Factor out code to check if an
10515         integer constant is a low-order bitmask from here ...
10516         * rtlanal.c (low_bitmask_len): ... to here.
10517         * rtl.h (low_bitmask_len): Declare.
10518
10519 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
10520
10521         PR target/8603
10522         * config/alpha/alpha.md (addsi3): Remove expander.
10523         (addsi3): Rename from *addsi3_internal insn pattern.
10524         (subsi3): Remove expander.
10525         (subsi3): Rename from *subsi3_internal insn pattern.
10526
10527 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
10528
10529         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
10530         FWRITE_UNLOCKED.
10531
10532 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
10533             Eric Botcazou  <botcazou@adacore.com>
10534             Douglas B Rupp  <rupp@gnat.com>
10535
10536         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
10537         that records that fit in 64 bits are returned by immediate value,
10538         as required by OpenVMS Calling Standard.
10539         (function_value): Adjust for above modification.
10540         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
10541         virtual_incoming_args_rtx as base object, not next_arg.
10542         * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
10543
10544 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10545
10546         * reload.c (find_reloads_subreg_address): Check the original
10547         req_equiv_mem address to detect the case where an address is
10548         not valid in the outer mode.
10549
10550 2009-08-11  Richard Guenther  <rguenther@suse.de>
10551
10552         PR bootstrap/40788
10553         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
10554
10555 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
10556
10557         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
10558         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
10559
10560 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
10561             Douglas B Rupp  <rupp@gnat.com>
10562
10563         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
10564         PT_STACK when frame_pointer_needed on OpenVMS.
10565         (alpha_pv_save_size, alpha_using_fp): Remove.
10566         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
10567         with proper processing for PT_NULL.
10568         (alpha_vms_initial_elimination_offset): New function. Support for
10569         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
10570         (alpha_sa_size): Force procedure type to PT_STACK when
10571         frame_pointer_needed on OpenVMS.
10572         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
10573         (alpha_using_fp): Likewise.
10574         (alpha_vms_can_eliminate): Add prototype.
10575         (alpha_vms_initial_elimination_offset): Likewise.
10576         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
10577         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
10578
10579 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
10580             Douglas B Rupp  <rupp@gnat.com>
10581
10582         * config/alpha/alpha.c (common_object_handler): New function.
10583         (vms_attribute_table): Declare a single attribute "common_object".
10584         (vms_output_aligned_decl_common): New global function.
10585         (SECTION_VMS_OVERLAY): Delete.
10586         (SECTION_VMS_GLOBAL): Likewise.
10587         (SECTION_VMS_INITIALIZE): Likewise.
10588         (vms_asm_named_section): Remove support for above flags.
10589         (vms_section_type_flags): Delete.
10590         (TARGET_SECTION_TYPE_FLAGS): Likewise.
10591         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
10592         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
10593         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
10594
10595 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10596
10597         PR target/41015
10598         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
10599         (sub_ddmmss): Likewise.
10600
10601 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
10602
10603         PR bootstrap/41018
10604         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
10605         year.
10606
10607 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10608
10609         PR target/37053
10610         * reload1.c (reload_as_needed): Use cancel_changes to completely
10611         undo a failed replacement attempt.
10612
10613 2009-08-10  Richard Guenther  <rguenther@suse.de>
10614
10615         PR middle-end/41006
10616         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
10617         (useless_type_conversion_p): ... here.  Require pointer targets
10618         to be compatible.
10619
10620 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
10621
10622         PR c++/40866
10623         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
10624         loose the original type of the statement list.
10625
10626 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
10627
10628         * config/alpha/alpha.c: Include libfuncs.h
10629         (avms_asm_output_extern): New function.
10630         (alpha_init_libfuncs): Init some decc libfuncs.
10631         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
10632         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
10633         (DO_CRTL_NAMES): Define.
10634         (LIB_SPEC): Remove.
10635         * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
10636         (LONG_TYPE_SIZE): Define.
10637         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
10638         (SUBTARGET_SWITCHES): Define malloc64 switch.
10639         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
10640         (MASK_RETURN_ADDR): Define.
10641         doc/invoke.texi (mmalloc64): Document switch.
10642
10643 2009-08-09  Olivier Hainque  <hainque@adacore.com>
10644             Douglas B Rupp  <rupp@gnat.com>
10645
10646         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
10647         uses_condition_handler.
10648         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
10649         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
10650         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
10651         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
10652         (code_for_builtin): New insn codes for the new alpha_builtins.
10653         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
10654         (alpha_sa_size): Account for uses_condition_handler.
10655         (alpha_expand_prologue): Likewise.
10656         (alpha_start_function): Likewise.
10657         (alpha_expand_epilogue): Likewise.
10658         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
10659         establish/revert expanders.
10660         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
10661         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
10662         New expander, resorting to the alpha.c associated function.
10663         (builtin_revert_vms_condition_handler): Likewise.
10664         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
10665         __gcc_shell_handler, the static VMS condition handler used as
10666         an indirection wrapper to the current dynamically established
10667         handler.
10668         * config/alpha/vms-unwind.h: Complete rewrite.
10669         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
10670         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
10671
10672 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
10673             Douglas B Rupp  <rupp@gnat.com>
10674
10675         * config/alpha/alpha.c (alpha_links): Add 'target' field.
10676         (alpha_need_linkage): Handle aliases.  Return function symbol.
10677         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
10678         Use ultimate alias target for the linkage name.
10679         * config/alpha/alpha.md (movmemdi): Use the symbol returned
10680         by alpha_need_linkage for the function symbol.
10681         (setmemdi): Likewise.
10682
10683 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
10684
10685         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
10686         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
10687         (ASM_WEAKEN_LABEL): Define.
10688         (CRT_CALL_STATIC_FUNCTION): Define.
10689         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
10690         (ENDFILE_SPEC): Define.
10691         (INIT_SECTION_ASM_OP): Define.
10692         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
10693         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
10694         crtend.o crtendS.o.
10695         (MULTILIB_OSDIRNAMES): Define.
10696         (shlib_version): Define.
10697         (SHLIB_EXT): Define.
10698         (SHLIB_OBJS): Define.
10699         (SHLIB_NAME): Define.
10700         (SHLIB_MULTILIB): Define.
10701         (SHLIB_INSTALL): Define.
10702         (SHLIB_SYMVEC): Define.
10703         (SHLIB_SYMVECX2): Define.
10704         (SHLIB_LINK): Define.
10705
10706 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
10707
10708         * config/alpha/alpha.c (alpha_initialize_trampoline):
10709         Initialize VMS trampoline IAW ABI for bounded procedure calls.
10710         (alpha_start_function): Emit transfer address on nested functions
10711         for VMS trampoline call.
10712         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
10713         since no longer used.
10714         * config/alpha/vms-tramp.asm: Remove.
10715         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
10716         since now only data initialized at runtime.
10717
10718 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
10719
10720         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
10721         (LINK_GCC_C_SEQUENCE_SPEC): Define.
10722         (MD_EXEC_PREFIX): Remove, no longer used.
10723         (MD_STARTFILE_PREFIX): Likewise.
10724         (INCLUDE_DEFAULTS): Likewise.
10725         * config/alpha/t-vms:
10726         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
10727
10728 2009-08-09  Richard Guenther  <rguenther@suse.de>
10729
10730         PR tree-optimization/41016
10731         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
10732         (operand_precision): Remove.
10733         (integral_operand_p): Likewise.
10734         (recognize_single_bit_test): Adjust.
10735
10736 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
10737
10738         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
10739         operation overflows.  Likewise non-cast unary arithmetic.
10740         If one arm of a conditional expression is always taken,
10741         inhibit evaluation warnings for the other arm.  Likewise inhibit
10742         evaluation warnings for the second && or || operand if the first
10743         operand is enough to determine the result.
10744         * c-typeck.c (build_conditional_expr): Apply the same inhibition
10745         rules here.
10746         (build_binary_op): Prevent duplicate evaluation warnings.
10747
10748 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
10749
10750         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
10751         and destination have different modes, Use promote_mode to
10752         determine the signedness of the conversion.  Assert that the
10753         promoted source mode matches the destination mode.  Don't pass
10754         the destination and destination mode to expand_expr if the source
10755         mode is different.  Simplify conversion logic.
10756
10757 2009-08-09  Ira Rosen  <irar@il.ibm.com>
10758
10759         PR tree-optimization/41008
10760         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
10761         from condition only in case it's a comparison. Adjust checks.
10762
10763 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
10764
10765         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
10766         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
10767         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
10768         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
10769         (dump_cand): Handle them.
10770         (struct iv_cand): New members COST_STEP and AINC_USE.
10771         (stmt_after_increment): Likewise.
10772         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
10773         callers changed.  Use gimple_uid comparison instead of scanning.
10774         (add_candidate_1): When looking for identical candidates, take
10775         AINC_USE into account.  Set it for new candidates.
10776         (force_expr_to_var_cost): Cast target_spill_cost to int.
10777         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
10778         All callers changed.  Check for availability of autoinc addressing
10779         modes, both in general for a given mode, and in the specific use case.
10780         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
10781         changed.
10782         (get_computation_cost): Likewise.
10783         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
10784         add_autoinc_candidates): New static functions.
10785         (add_candidate): Call add_autoinc_candidates for candidates based on
10786         a USE_ADDRESS use.
10787         (find_iv_candidates): Call set_autoinc_for_original_candidates.
10788         (determine_use_iv_cost_address): If we have an autoinc candidate at
10789         the matching use, verify autoinc is possible and subtract the cost
10790         of the candidate's step from the cost.
10791         (determine_iv_cost): Record the cost of the increment in the COST_STEP
10792         member of the candidate.
10793         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
10794         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
10795
10796 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
10797
10798         * config.build (ia64-hp-*vms*): New target.
10799         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10800         with ia64-hp-*vms*.
10801         * config.gcc (ia64-hp-*vms*): New target.
10802         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10803         with ia64-hp-*vms*.
10804         * config.host (ia64-hp-*vms*): New target.
10805         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10806         with ia64-hp-*vms*.
10807
10808 2009-08-08  Richard Guenther  <rguenther@suse.de>
10809
10810         PR tree-optimization/40991
10811         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
10812
10813 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
10814
10815         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
10816         mode check.  Do truncations in an integer mode.
10817         (force_to_mode): Handle subregs for all mode types.  Only do
10818         arithmetic simplifications on integer modes.
10819
10820 2009-08-07  Richard Guenther  <rguenther@suse.de>
10821
10822         PR tree-optimization/40999
10823         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
10824         (maybe_fold_reference): Lookup constant initializers.
10825         (fold_gimple_assign): Likewise.
10826
10827 2009-08-07  Richard Guenther  <rguenther@suse.de>
10828
10829         * tree-ssa.c (useless_type_conversion_p_1): Only for types
10830         that require structural equality defer to the langhook.
10831
10832 2009-08-07  Martin Jambor  <mjambor@suse.cz>
10833
10834         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
10835         comments.
10836         (struct ipa_pass_through_data): New type.
10837         (struct ipa_ancestor_jf_data): New type.
10838         (union jump_func_value): Removed field formal_id, added fields
10839         pass_through and ancestor.
10840         (struct ipa_param_call_note): Changed type of formal_id to int from
10841         unsigned.
10842         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
10843         operations jump functions and ancestor jump functions.
10844         (compute_complex_pass_through): New function.
10845         (compute_scalar_jump_functions): Call compute_complex_pass_through,
10846         reflect changes in the jump function strucutre.
10847         (update_jump_functions_after_inlining): Ignore complex pass-through
10848         and ancestor jump functions.
10849         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
10850         polynomial pass-through with operation jump functions.
10851
10852 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
10853
10854         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
10855         fde->dw_fde_begin as begin label instead of hot/cold label.
10856         Use LLSDAC label instead of LLSDA for second section lsda.
10857         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
10858         label instead of LLSDA if it is true.
10859         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
10860         callers.
10861         * except.c (add_call_site, dw2_size_of_call_site_table): Add
10862         SECTION argument.  Use it as index into crtl->eh.call_site_record
10863         array.
10864         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
10865         use it to determine how to print table entries instead of using
10866         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
10867         label instead of normal begin label as base.
10868         (sjlj_assign_call_site_values): Adjust add_call_site caller.
10869         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
10870         ensure no EH range spans between sections and that landing pads
10871         are always in the corresponding section.
10872         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
10873         for crtl->eh.call_site_record being an array rather than scalar.
10874         (output_one_function_exception_table): New function, copied
10875         from output_function_exception_table.  Adjust
10876         dw2_size_of_call_site_table, dw2_output_call_site_table
10877         callers.  For SECOND section use *C suffixed labels.
10878         (output_function_exception_table): Call
10879         output_one_function_exception_table and, when doing hot/cold
10880         partitioning, also another time for the second section.
10881         * opts.c: Include except.h.
10882         (decode_options): Allow -freorder-blocks-and-partition with
10883         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
10884         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
10885         * function.h (struct rtl_eh): Change call_site_record from
10886         scalar into array of 2 elements.
10887
10888 2009-08-07  Martin Jambor  <mjambor@suse.cz>
10889
10890         * ipa-prop.c (count_formal_params_1): New function.
10891         (ipa_get_vector_of_formal_parms): New function.
10892         (get_vector_of_formal_parm_types): New function.
10893         (ipa_modify_formal_parameters): New function.
10894         (ipa_modify_call_arguments): New function.
10895         (index_in_adjustments_multiple_times_p): New function.
10896         (ipa_combine_adjustments): New function.
10897         (ipa_dump_param_adjustments): New function.
10898         * ipa-prop.h (struct ipa_parm_adjustment): New type.
10899         (ipa_get_vector_of_formal_parms): Declare.
10900         (ipa_modify_formal_parameters): Declare.
10901         (ipa_modify_call_arguments): Declare.
10902         (ipa_combine_adjustments): Declare.
10903         (ipa_dump_param_adjustments): Declare.
10904         (build_ref_for_offset): Declare.
10905         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
10906         * tree-sra.c: Include ipa-prop.c.
10907         (build_ref_for_offset): Make public.
10908
10909 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
10910
10911         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
10912
10913 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
10914
10915         * gcc/doc/extend.texi (__builtin_extract_return_address)
10916         (__builtin_frob_return_address): Document.
10917
10918 2009-08-06  Paul Brook  <paul@codesourcery.com>
10919
10920         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
10921         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
10922         implementation on ARMv6-M.
10923
10924 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10925
10926         * doc/extend.texi (pcs): Document new attribute for ARM.
10927
10928 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10929
10930         * arm.c (pcs_attribute_args): Comment out unsupported attribute
10931         variants.
10932
10933 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10934
10935         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
10936         warning ().
10937
10938 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10939
10940         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
10941
10942 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10943
10944         Merge ARM/hard_vfp_branch to trunk.
10945
10946         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
10947
10948         * arm.c (libcall_eq): New function.
10949         (libcall_hash): New function.
10950         (add_libcall): New function.
10951         (arm_libcall_uses_aapcs_base): New function.
10952         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
10953         libcalls using the base PCS.
10954         (arm_init_cumulative_args): Likewise.
10955
10956         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
10957
10958         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
10959         Use base ABI for conversion libfuncs between HFmode and SFmode.
10960
10961         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
10962
10963         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
10964         V4SImode as representatives of all 64-bit and 128-bit vector
10965         types.  Allow vector types without vector modes.
10966         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
10967         without vector modes like BLKmode.
10968         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
10969         BLKmode.  Avoid unsupported vector modes or TImode moves for
10970         non-TARGET_NEON.
10971         (aapcs_vfp_allocate_return_reg): Likewise.
10972         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
10973         V8QImode if TARGET_NEON || TARGET_IWMMXT.
10974
10975         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
10976
10977         * config/arm/arm.c (arm_handle_pcs_attribute): New.
10978         (arm_get_pcs_model): Pass attribute arguments to
10979         arm_pcs_from_attribute.
10980         (arm_init_cumulative_args): Use base AAPCS for conversions from
10981         floating-point types to DImode.
10982         (arm_attribute_table): Add pcs attribute.
10983         (arm_handle_pcs_attribute): New.
10984         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
10985         conversions from floating-point types to DImode, also declare them
10986         to use base AAPCS and declare functions they call to use base
10987         AAPCS and their RTABI names.
10988
10989         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
10990
10991         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
10992         -mfloat-abi=hard not being supported for VFP.
10993
10994         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
10995
10996         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
10997         SYMBOL_REF to hard_libcall_value.
10998
10999         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
11000             Richard Earnshaw  <rearnsha@arm.com>
11001
11002         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
11003         has been put on the stack, all remaining co-processory arguments for
11004         that co-processor also go on the stack.
11005
11006         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
11007
11008         * config/arm/arm.c (arm_return_in_memory): Handle returning
11009         vectors of suitable size in registers also for AAPCS case.
11010
11011         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
11012
11013         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
11014
11015         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
11016
11017         ARM Hard-VFP calling convention
11018         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
11019         * target.h (gcc_target): Add libcall_value to table of call hooks.
11020         * targhooks.h (default_libcall_value): Default implementation.
11021         * targhooks.c (default_libcall_value): Likewise.
11022         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
11023         * optabs.c (expand_unop): Use it.
11024         * expr.h (hard_libcall_value): Pass the function RTX through.
11025         * calls.c (emit_library_call_value_1): Update call to
11026         hard_libcall_value.
11027         * explow.c (hard_libcall_value): Use new target hook.
11028         * config/arm/arm.c: Include cgraph.h
11029         (TARGET_FUNCTION_VALUE): Override default hook.
11030         (arm_pcs_default): New variable.
11031         (arm_override_options): Don't fault hard calling convention with VFP.
11032         Add support for AAPCS variants.
11033         (arm_function_value): Make static.  Handle AAPCS variants.
11034         (arm_libcall_value): New function.
11035         (arm_apply_result_size): Handle VFP registers in results.
11036         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
11037         conventions.
11038         (pcs_attribute_args): New variable.
11039         (arm_pcs_from_attribute): New function.
11040         (arm_get_pcs_model): New function.
11041         (aapcs_vfp_cum_init): New function.
11042         (aapcs_vfp_sub_candidate): New function.
11043         (aapcs_vfp_is_return_candidate): New function.
11044         (aapcs_vfp_is_call_candidate): New function.
11045         (aapcs_vfp_allocate): New function.
11046         (aapcs_vfp_allocate_return_reg): New function.
11047         (aapcs_vfp_advance): New function.
11048         (aapcs_cp_arg_layout): New variable.
11049         (aapcs_select_call_coproc): New function.
11050         (aapcs_select_return_coproc): New function.
11051         (aapcs_allocate_return_reg): New function.
11052         (aapcs_libcall_value): New function.
11053         (aapcs_layout_arg): New function.
11054         (arm_init_cumulative_args): Initialize AAPCS args data.
11055         (arm_function_arg): Handle AAPCS variants using new interface.
11056         (arm_arg_parital_bytes): Likewise.
11057         (arm_function_arg_advance): New function.
11058         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
11059         calling conventions.
11060         (arm_setup_incoming_varargs): Handle new AAPCS args data.
11061         * arm.h (NUM_VFP_ARG_REGS): Define.
11062         (LIBCALL_VALUE): Update.
11063         (FUNCTION_VALUE): Delete.
11064         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
11065         (arm_pcs): New enum.
11066         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
11067         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
11068         (FUNCTION_ARG_REGNO_P): Add VFP regs.
11069         * arm-protos.h (arm_function_arg_advance): Add.
11070         (aapcs_libcall_value): Add.
11071         (arm_function_value): Delete.
11072
11073 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
11074             H.J. Lu  <hongjiu.lu@intel.com>
11075
11076         PR target/40957
11077         * config/i386/i386.c (standard_sse_mode_p): Remove.
11078         (standard_sse_constant_p): Return 2 for integer mode
11079         vector_all_ones_operand when SSE2 is enabled.
11080         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
11081         (ix86_expand_vector_move): Do not check for negative values from
11082         standard_sse_constant_p.
11083
11084 2009-08-06  Richard Guenther  <rguenther@suse.de>
11085
11086         * tree-ssa.c (useless_type_conversion_p_1): Make function and
11087         array type comparisons frontend independent.
11088         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
11089         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
11090         out array reference lower bound and element size operands.
11091         (ao_ref_init_from_vn_reference): Properly compute the offset
11092         for ARRAY_RANGE_REF.
11093         (vn_reference_fold_indirect): Fill out array reference lower
11094         bound and element size operands.
11095         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
11096         a non gimple valued reference operand which can happen for
11097         array reference lower bound or element size.
11098         (create_component_ref_by_pieces_1): Properly generate the
11099         element size operand for array references.
11100
11101 2009-08-06  Richard Guenther  <rguenther@suse.de>
11102
11103         PR tree-optimization/40964
11104         * tree.c (iterative_hash_host_wide_int): Export.
11105         * tree.h (iterative_hash_host_wide_int): Declare.
11106         * tree-ssa-structalias.c (heapvar_map): New struct.
11107         (heapvar_map_eq): New function.
11108         (heapvar_map_hash): Likewise.
11109         (heapvar_lookup): Adjust.
11110         (heapvar_insert): Likewise.
11111         (make_constraint_from_heapvar): Allow multiple heap variables
11112         per decl at different offsets.
11113         (init_alias_heapvars): Adjust.
11114
11115 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
11116
11117         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
11118         * mips_output_sync_loop (mips_output_sync_loop): Only emit
11119         trailing sync if TARGET_SYNC_AFTER_SC.
11120
11121 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
11122
11123         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
11124         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
11125         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
11126         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
11127         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
11128         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
11129         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
11130         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
11131         test_and_set_12): Rewrite calls to mips_output_sync_loop.
11132         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
11133         the prototype declaration match the definition.
11134         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
11135         instructions explicitly.  Add barrier_before and operands
11136         parameters.
11137         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
11138         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
11139         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
11140         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
11141         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
11142         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
11143
11144 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
11145
11146         * tree-ssa-alias.c: Fix intervals to use [) syntax.
11147
11148 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
11149             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
11150
11151         PR target/40906
11152         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
11153         source operand.
11154
11155 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
11156
11157         PR rtl-optimization/40924
11158         * dse.c (canon_address): Before calling cselib_expand_value_rtx
11159         make sure canon_rtx (mem_address) isn't simpler than
11160         canon_rtx (expanded_mem_address).
11161
11162 2009-08-05  Li Feng  <nemokingdom@gmail.com>
11163
11164         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
11165         for each poly_bb_p.
11166         (build_scop_drs): Build alias set for each SCoP.
11167
11168 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
11169
11170         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
11171         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
11172         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
11173         (MIPS_ARCH_FLOAT_SPEC): Likewise.
11174         (BASE_DRIVER_SELF_SPECS): Likewise.
11175
11176 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
11177
11178         * tree-ssa-alias.c: Fix some comment typos.
11179
11180 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
11181
11182         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
11183         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
11184
11185 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
11186
11187         PR c/39902
11188         * simplify-rtx.c (simplify_binary_operation_1): Disable
11189         simplifications for decimal float operations.
11190
11191 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
11192
11193         PR middle-end/40943
11194         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
11195         operand of INDIRECT_REF.
11196
11197 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
11198
11199         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
11200         constants referencing TLS symbols.
11201
11202 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
11203
11204         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
11205         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
11206
11207 2009-08-03  Richard Guenther  <rguenther@suse.de>
11208
11209         * tree.c (make_vector_type): Build a main variant first,
11210         get the canonical one and then build the variant.
11211         * tree-ssa.c (useless_type_conversion_p_1): Handle
11212         fixed-point types.
11213         (useless_type_conversion_p): Conversions to pointers to
11214         incomplete record types are useless.
11215
11216 2009-08-03  Richard Guenther  <rguenther@suse.de>
11217
11218         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
11219         file will be created.
11220         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
11221         * toplev.c (compile_file): Adjust comment.
11222
11223 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
11224
11225         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
11226         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
11227         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11228         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
11229         (sh_promote_function_mode): Fix typo.
11230
11231 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
11232
11233         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
11234
11235 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11236
11237         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
11238         declaration arguments.
11239
11240 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
11241
11242         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
11243         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
11244         (ix86_split_ashl): Ditto.
11245         (ix86_expand_vector_init_one_nonzero): Ditto.
11246         (ix86_expand_vector_set): Ditto.
11247         (ix86_expand_reduc_v4sf): Ditto.
11248
11249 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
11250
11251         * explow.c (promote_function_mode): Remove assert.
11252         * config/sh/sh.c (sh_promote_function_mode): Declare.
11253
11254 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11255
11256         * config/pa/pa.c (pa_promote_function_mode): Declare.
11257         Change to static.  Fix promote_mode call.
11258
11259         * gthr-dce.h (CONST_CAST2): Define if not defined.
11260         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
11261
11262         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
11263
11264 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
11265
11266         * expr.c (store_constructor): Use promote_decl_mode.  Remove
11267         now write-only variable unsignedp.
11268         (expand_expr_real_1): Use promote_decl_mode.
11269         * expr.h (promote_function_mode, promote_decl_mode): New.
11270         (promote_mode): Remove last argument.
11271         * function.c (assign_temp): Drop last argument of promote_mode.
11272         (assign_parm_find_data_types): Use promote_function_mode.
11273         (assign_parm_setup_reg): Likewise.
11274         (expand_function_end): Use promote_function_mode.
11275         * calls.c (initialize_argument_information): Use promote_function_mode.
11276         (precompute_arguments): Use promote_mode instead of checking if
11277         only PROMOTE_FUNCTION_MODE is defined.
11278         (expand_call): When making sibcall decisions, use promote_function_mode.
11279         Below, remove an if for targetm.calls.promote_function_return and
11280         and use promote_function_mode.
11281         (emit_library_call_value_1): Use promote_function_mode, fix bug
11282         where promote_mode was passed FOR_CALL == 0 for a return value in an
11283         assertion.
11284         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
11285         * explow.c (promote_function_mode, promote_decl_mode): New.
11286         (promote_mode): Keep only the FOR_CALL == 0 case.
11287         * combine.c (setup_incoming_promotion): Remove test of
11288         promote_function_args.  Use promote_function_mode.
11289         * stmt.c (expand_value_return): Use promote_decl_mode.
11290         (expand_decl): Use promote_decl_mode.
11291
11292         * expr.c (store_constructor): Use promote_decl_mode.  Remove
11293         now write-only variable unsignedp.
11294         (expand_expr_real_1): Use promote_decl_mode.
11295         * expr.h (promote_function_mode, promote_decl_mode): New.
11296         (promote_mode): Remove last argument.
11297         * function.c (assign_temp): Drop last argument of promote_mode.
11298         (assign_parm_find_data_types): Use promote_function_mode.
11299         (assign_parm_setup_reg): Likewise.
11300         (expand_function_end): Use promote_function_mode.
11301         * calls.c (initialize_argument_information): Use promote_function_mode.
11302         (precompute_arguments): Use promote_mode instead of checking if
11303         only PROMOTE_FUNCTION_MODE is defined.
11304         (expand_call): When making sibcall decisions, use promote_function_mode.
11305         Below, remove an if for targetm.calls.promote_function_return and
11306         and use promote_function_mode.
11307         (emit_library_call_value_1): Use promote_function_mode, fix bug
11308         where promote_mode was passed FOR_CALL == 0 for a return value in an
11309         assertion.
11310         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
11311         * explow.c (promote_function_mode, promote_decl_mode): New.
11312         (promote_mode): Keep only the FOR_CALL == 0 case.
11313         * combine.c (setup_incoming_promotion): Remove test of
11314         promote_function_args.  Use promote_function_mode.
11315         * stmt.c (expand_value_return): Use promote_decl_mode.
11316         (expand_decl): Use promote_decl_mode.
11317
11318         * explow.c (promote_function_mode): Just call the target hook.
11319         * targhooks.c (default_promote_function_mode,
11320         default_promote_function_mode_always_promote): New.
11321         * targhooks.h (default_promote_function_mode,
11322         default_promote_function_mode_always_promote): Declare.
11323         * target.h (promote_function_args, promote_function_return): Remove.
11324         (promote_function_mode): New.
11325         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
11326         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11327         (TARGET_PROMOTE_FUNCTION_MODE): New.
11328         (TARGET_CALLS): Adjust.
11329         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
11330         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
11331
11332         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
11333         * config/s390/s390.c (s390_promote_function_mode): ... here,
11334         with pointer handling.
11335         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11336         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11337
11338         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
11339         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
11340         with pointer handling.
11341         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11342         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11343
11344         * config/sh/sh-protos.h (sh_promote_function_mode): New.
11345         * config/sh/sh.c (sh_promote_function_mode): New.
11346         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11347         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11348
11349         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
11350         * config/cris/cris.c (cris_promote_function_mode): ... here.
11351         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11352         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
11353
11354         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
11355         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
11356         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11357         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
11358
11359         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
11360         * config/arm/arm.c (arm_promote_function_mode): ... here, without
11361         complex type handling.
11362         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11363         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11364
11365         * config/pa/pa.c (pa_promote_function_mode): New.
11366         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11367         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11368
11369         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
11370         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11371         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
11372         * config/xtensa/xtensa.c: Likewise.
11373         * config/stormy16/stormy16.c: Likewise.
11374         * config/iq2000/iq2000.c: Likewise.
11375         * config/rs6000/rs6000.c: Likewise.
11376         * config/picochip/picochip.c: Likewise.
11377         * config/arc/arc.c: Likewise.
11378         * config/mcore/mcore.c: Likewise.
11379         * config/score/score.c: Likewise.
11380         * config/mips/mips.c: Likewise.
11381         * config/bfin/bfin.c: Likewise.
11382         * config/ia64/ia64.c: Likewise (disabled though).
11383
11384         * config/frv/frv.h: Remove pointless remark.
11385
11386         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
11387         TARGET_PROMOTE_FUNCTION_ARGS,
11388         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
11389         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
11390
11391 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
11392
11393         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
11394         -floop-parallelize-all.
11395         * toplev.c (process_options): Rename flag_graphite_force_parallel to
11396         flag_loop_parallelize_all.
11397         * tree-ssa-loop.c (gate_graphite_transforms): Same.
11398         * graphite.c (graphite_transform_loops): Same.
11399         * common.opt: Same.
11400         * graphite-poly.c (apply_poly_transforms): Same.
11401
11402 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
11403
11404         PR tree-optimization/40914
11405         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
11406         if set, then check the delta field of the PMF record.
11407         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
11408         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
11409         call is stored in the delta.
11410
11411 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
11412
11413         * config/mips/mips.md (*clear_upper32_dext): New pattern.
11414
11415 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
11416
11417         * config/i386/bsd.h (ASM_BYTE): New define.
11418         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
11419         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
11420         .byte.  Use fputs or putc instead of fprintf where appropriate.
11421         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
11422         fputs or putc instead of fprintf where appropriate.
11423         * config/i386/i386elf.h: Ditto.
11424         * config/i386/sysv4.h: Ditto.
11425
11426         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
11427         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
11428         (*tls_global_dynamic_64): Ditto.
11429
11430 2009-07-31  Christian Bruel  <christian.bruel@st.com>
11431
11432         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
11433
11434 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11435
11436         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
11437         Remove dead code for MINUS.
11438
11439 2009-07-31  Anthony Green  <green@moxielogic.com>
11440
11441         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
11442         $r12 in prologue.
11443         (moxie_expand_epilogue): Ditto for epilogue.
11444         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
11445         incoming arguments.
11446         (moxie_function_arg): Ditto.
11447         (moxie_pass_by_reference): Ditto.
11448         (moxie_arg_partial_bytes): Ditto.
11449         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
11450         (FUNCTION_ARG_ADVANCE) Ditto.
11451         (REG_PARM_STACK_SPACE) Ditto.
11452         (FUNCTION_ARG_REGNO_P) Dito.
11453
11454         * config.gcc: Add moxie linux config support.
11455         * gcc/config/moxie/uclinux.h: New file.
11456
11457 2009-07-31  DJ Delorie  <dj@redhat.com>
11458
11459         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
11460         (UNSPECV_SP_SWITCH_E): New.
11461         (sp_switch_1): Change to an unspec.
11462         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
11463         replace $r15.
11464         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
11465         reference the new stack's address
11466
11467 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11468
11469         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
11470         graphite-clast-to-gimple.o, graphite-dependences.o,
11471         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
11472         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
11473         (graphite-blocking.o,
11474         graphite-clast-to-gimple.o, graphite-dependences.o,
11475         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
11476         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
11477         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
11478         * cfgloop.h (struct loop): Add can_be_parallel field.
11479         * common.opt (fgraphite-identity): Moved up.
11480         (fgraphite-force-parallel): New flag.
11481         * graphite.c: Rewrite.
11482         * graphite.h: Rewrite.
11483         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
11484         after Graphite.
11485         * toplev.c (graphite_out_file): New file descriptor.
11486         (graphite_in_file): New.
11487         (process_options): flag_graphite_force_parallel cannot be used without
11488         Graphite.
11489         * tree-ssa-loop.c: Include toplev.h.
11490         (gate_graphite_transforms): Enable flag_graphite for
11491         flag_graphite_force_parallel.
11492
11493 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11494
11495         * ChangeLog.graphite: New.
11496         * graphite-blocking.c: New.
11497         * graphite-clast-to-gimple.c: New.
11498         * graphite-clast-to-gimple.h: New.
11499         * graphite-dependences.c: New.
11500         * graphite-dependences.h: New.
11501         * graphite-interchange.c: New.
11502         * graphite-poly.c: New.
11503         * graphite-poly.h: New.
11504         * graphite-ppl.c: New.
11505         * graphite-ppl.h: New.
11506         * graphite-scop-detection.c: New.
11507         * graphite-scop-detection.h: New.
11508         * graphite-sese-to-poly.c: New.
11509         * graphite-sese-to-poly.h: New.
11510         * sese.c: New.
11511         * sese.h: New.
11512
11513 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11514
11515         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
11516         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
11517
11518 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11519
11520         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
11521         (scev_is_linear_expression): Return false if the evolution is not
11522         affine multivariate.
11523
11524 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11525
11526         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
11527         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
11528
11529 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11530
11531         * tree-data-ref.c (debug_data_references): New.
11532         (debug_data_reference): New.
11533         * tree-data-ref.h (debug_data_references): Declared.
11534         (debug_data_reference): Declared.
11535
11536 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11537
11538         * tree-data-ref.c (stmt_simple_memref_p: Removed.
11539         * tree-data-ref.h (scop_p): Removed.
11540         (struct data_reference): Remove field scop.
11541         (DR_SCOP): Removed.
11542         (stmt_simple_memref_p): Removed.
11543
11544 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11545
11546         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
11547         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
11548         basic block empty.
11549
11550 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11551
11552         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
11553
11554 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11555
11556         * doc/invoke.texi (-fgraphite-identity): Documented.
11557
11558 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11559
11560         * tree-scalar-evolution.c: Fix comment.
11561         (instantiate_scev_1): Return unknow from scev instantiation if the
11562         result is not above instantiate_below.
11563
11564 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11565
11566         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
11567         static anymore.  Instantiate the symbols that may have been introduced
11568         by chrec_apply.
11569         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
11570         Declared.
11571
11572 2009-07-30  DJ Delorie  <dj@redhat.com>
11573
11574         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
11575         .vliw directive to VLIW sections.
11576
11577 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11578
11579         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
11580         New variables.
11581         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
11582         (AUTOHEADER): New variable.
11583         ($(srcdir)/cstamp-h.in): Use it.
11584
11585 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
11586             Pat Haugen  <pthaugen@us.ibm.com>
11587             Revital Eres <ERES@il.ibm.com>
11588
11589         * config/rs6000/vector.md (VEC_F): Add VSX support.
11590         (VEC_A): Ditto.
11591         (VEC_N): Ditto.
11592         (mov<mode>): Ditto.
11593         (vector_load_<mode>): Ditto.
11594         (vector_store_<mode>): Ditto.
11595         (vector GPR move split): Ditto.
11596         (vec_reload_and_plus_<mptrsize>): Ditto.
11597         (vec_reload_and_reg_<mptrsize>): Ditto.
11598         (add<mode>3): Ditto.
11599         (sub<mode>3): Ditto.
11600         (mul<mode>3): Ditto.
11601         (neg<mode>2): Ditto.
11602         (abs<mode>2): Ditto.
11603         (smin<mode>3): Ditto.
11604         (smax<mode>3): Ditto.
11605         (vector_eq<mode>): Ditto.
11606         (vector_gt<mode>): Ditto.
11607         (vector_ge<mode>): Ditto.
11608         (vector_gtu<mode>): Ditto.
11609         (vector_select_<mode>_uns): Ditto.
11610         (vector_eq_<mode>_p): Ditto.
11611         (vector_gt_<mode>_p): Ditto.
11612         (vector_ge_<mode>_p): Ditto.
11613         (vector_gtu_<mode>_p): Ditto.
11614         (cr6_test_for_zero): Ditto.
11615         (cr6_test_for_zero_reverse): Ditto.
11616         (cr6_test_for_lt): Ditto.
11617         (cr6_test_for_lt_reverse): Ditto.
11618         (xor<mode>3): Ditto.
11619         (ior<mode>3): Ditto.
11620         (and<mode>3): Ditto.
11621         (one_cmpl<mode>2): Ditto.
11622         (nor<mode>2): Ditto.
11623         (andc<mode>2): Ditto.
11624         (float<VEC_int<mode>2): Ditto.
11625         (unsigned_float<VEC_int><mode>2): Ditto.
11626         (fix_trunc<mode><VEC_int>2): Ditto.
11627         (fixuns_trunc<mode><VEC_int>2): Ditto.
11628         (vec_init<mode>):
11629         (vec_set<mode>): Ditto.
11630         (vec_extract<mode>): Ditto.
11631         (vec_interleave_highv4sf): Ditto.
11632         (vec_interleave_lowv4sf): Ditto.
11633         (vec_realign_load_<mode>): Ditto.
11634         (vec_shl_<mode>): Ditto.
11635         (vec_shr_<mode>): Ditto.
11636         (div<mode>3): New patterns for VSX.
11637         (vec_interleave_highv2df): Ditto.
11638         (vec_interleave_lowv2df): Ditto.
11639         (vec_pack_trunc_v2df): Ditto.
11640         (vec_pack_sfix_trunc_v2df): Ditto.
11641         (vec_pack_ufix_trunc_v2df): Ditto.
11642         (vec_unpacks_hi_v4sf): Ditto.
11643         (vec_unpacks_lo_v4sf): Ditto.
11644         (vec_unpacks_float_hi_v4si): Ditto.
11645         (vec_unpacks_float_lo_v4si): Ditto.
11646         (vec_unpacku_float_hi_v4si): Ditto.
11647         (vec_unpacku_float_lo_v4si): Ditto.
11648         (movmisalign<mode>): Ditto.
11649         (vector_ceil<mode>2): New patterns for vectorizing math library.
11650         (vector_floor<mode>2): Ditto.
11651         (vector_btrunc<mode>2): Ditto.
11652         (vector_copysign<mode>3): Ditto.
11653
11654         * config/rs6000/predicates.md (easy_vector_constant_msb): New
11655         predicate for setting the high bit in each word, used for copysign.
11656
11657         * config/rs6000/ppc-asm.h (f19): Whitespace.
11658         (f32-f63): Define if VSX.
11659         (v0-v31): Define if Altivec.
11660         (vs0-vs63): Define if VSX.
11661
11662         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
11663
11664         * config/rs6000/power7.md: New file, provide tuning parameters for
11665         -mcpu=power7.
11666
11667         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
11668         (rs6000_cpu_cpp_builtins): Ditto.
11669         (altivec_overloaded_builtins): Ditto.
11670         (altivec_resolve_overloaded_builtin): Ditto.
11671
11672         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
11673         debug switch to disable vectorizing simple math builtin
11674         functions.
11675
11676         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
11677         Vectorize simple math builtin functions.
11678         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
11679         hook to vectorize math builtins.
11680         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
11681         (rs6000_builtin_conversion): Add VSX/power7 support.
11682         (rs6000_builtin_vec_perm): Ditto.
11683         (vsplits_constant): Add support for loading up a vector constant
11684         with just the high bit set in each part.
11685         (rs6000_expand_vector_init): Add VSX/power7 support.
11686         (rs6000_expand_vector_set): Ditto.
11687         (rs6000_expand_vector_extract): Ditto.
11688         (rs6000_emit_move): Ditto.
11689         (bdesc_3arg): Ditto.
11690         (bdesc_2arg): Ditto.
11691         (bdesc_1arg): Ditto.
11692         (rs6000_expand_ternop_builtin): Ditto.
11693         (altivec_expand_builtin): Ditto.
11694         (rs6000_expand_unop_builtin): Ditto.
11695         (rs6000_init_builtins): Ditto.
11696         (altivec_init_builtins): Ditto.
11697         (builtin_function_type): Ditto.
11698         (rs6000_common_init_builtins): Ditto.
11699         (rs6000_handle_altivec_attribute); Ditto.
11700         (rs6000_mangle_type): Ditto.
11701         (rs6000_vector_mode_supported_p): Ditto.
11702         (rs6000_mode_dependent_address): Altivec addresses with AND -16
11703         are mode dependent.
11704
11705         * config/rs6000/vsx.md: New file for VSX support.
11706
11707         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
11708         identifing values with just the most significant bit set.
11709         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
11710         vectorized builtins.
11711
11712         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
11713         (UNSPEC_VRFIM): Delete.
11714         (splitter for loading up vector with most significant bit): New
11715         splitter for vectorizing copysign.
11716         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
11717         vectorizing simple math functions.
11718         (altivec_vrfip): Add support for vectorizing simple math functions.
11719         (altivec_vrfim): Ditto.
11720         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
11721
11722         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
11723         (power7.md, vsx.md): Include for power7 support.
11724         (copysigndf3): Use VSX instructions if -mvsx.
11725         (negdf2_fpr): Ditto.
11726         (absdf2_fpr): Ditto.
11727         (nabsdf2_fpr): Ditto.
11728         (adddf3_fpr): Ditto.
11729         (subdf3_fpr): Ditto.
11730         (muldf3_fpr): Ditto.
11731         (divdf3_fpr): Ditto.
11732         (fix_truncdfdi2_fpr): Ditto.
11733         (cmpdf_internal1): Ditto.
11734         (fred, fred_fpr): Convert into expander/insn to add VSX support.
11735         (btruncdf2, btruncdf2_fpr): Ditto.
11736         (ceildf2, ceildf2_fpr): Ditto.
11737         (floordf2, floordf2_fpr): Ditto.
11738         (floatdidf2, floatdidf2_fpr): Ditto.
11739         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
11740         (fmsubdf4_fpr): Ditto.
11741         (fnmadddf4_fpr_1): Ditto.
11742         (fnmadddf4_fpr_2): Ditto.
11743         (fnmsubdf4_fpr_1): Ditto.
11744         (fnmsubdf4_fpr_2): Ditto.
11745         (fixuns_truncdfdi2): Add expander for VSX support.
11746         (fix_truncdfdi2): Ditto.
11747         (fix_truncdfsi2): Ditto.
11748         (ftruncdf2): Ditto.
11749         (btruncsf2): Whitespace.
11750         (movdf_hardfloat32): Add support for VSX registers.
11751         (movdf_softfloat32): Ditto.
11752         (movdf_hardfloat64): Ditto.
11753         (movdf_hardfloat64_mfpgpr): Ditto.
11754         (movdf_softfloat64): Ditto.
11755         (movti splitters): Add check for vector registers supporting
11756         TImode in the future.
11757         (bpermd): Add power7 bpermd instruction.
11758
11759         * config/rs6000/altivec.h (vec_div): Define if VSX.
11760         (vec_mul): Ditto.
11761         (vec_msub): Ditto.
11762         (vec_nmadd): Ditto.
11763         (vec_nearbyint): Ditto.
11764         (vec_rint): Ditto.
11765         (vec_sqrt): Ditto.
11766         (all predicates): Use the generic builtin function, and not the V4SF
11767         specific function so that the predicates will work with VSX's V2DF.
11768         (vec_all_*): Ditto.
11769         (vec_any_*): Ditto.
11770
11771         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
11772         Document new VSX functions and types.
11773
11774         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
11775         switches.
11776
11777         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
11778         "wa", and "j" constraints.  Modify "v" to talk about Altivec
11779         instead of just vector.
11780
11781 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
11782
11783         PR debug/26475
11784         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
11785         location for phi arguments.
11786         (rewrite_update_phi_arguments): Find locations for reaching defs.
11787         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
11788         Add location to add_phi_arg calls.
11789         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
11790         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
11791         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
11792         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
11793         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
11794         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
11795         * tree-phinodes.c (make_phi_node): Initialize location.
11796         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
11797         (add_phi_arg): Add location parameter.
11798         (remove_phi_arg_num): Move location when moving phi argument.
11799         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
11800         location.
11801         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
11802         slpeel_update_phi_nodes_for_guard1,
11803         slpeel_update_phi_nodes_for_guard2,
11804         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
11805         vect_loop_versioning): Set locations.
11806         * tree-parloops.c (create_phi_for_local_result,
11807         transform_to_exit_first_loop, create_parallel_loop): Add locations.
11808         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
11809         * tree-vect-loop.c (get_initial_def_for_induction,
11810         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
11811         locations.
11812         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
11813         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
11814         (gimple_phi_arg_set_location): New.  Set locus.
11815         (gimple_phi_arg_has_location): New.  Check for locus.
11816         (redirect_edge_var_map_location): New.  Return locus from var_map.
11817         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
11818         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
11819         combining PHI arguments.
11820         (cond_store_replacement): Set location.
11821         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
11822         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
11823         scop_add_exit_phis_edge): Add locations.
11824         * tree-cfgcleanup.c (remove_forwarder_block,
11825         remove_forwarder_block_with_phi): Add locations.
11826         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
11827         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
11828         locations.
11829         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
11830         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
11831         flush_pending_stmts): Add source location.
11832         * lambda-code.c (perfect_nestify): Maintain location stack with argument
11833         stack to preserve locations.
11834         * tree-vect-stmts.c (vectorizable_load): Add location.
11835         * tree-inline.c (copy_phis_for_bb): Copy locus.
11836         (setup_one_parameter): Add call locus to inlined parameter stmts.
11837         (initialize_inlined_parameters): Pass in call location as parameter
11838         assignment locus.
11839         (tree_function_versioning): Pass location to setup_one_parameter.
11840         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
11841         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
11842         copy and edge lists.
11843         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
11844         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
11845         locus parameter and override the stmt default if provided.
11846         (new_elim_graph, clear_elim_graph, delete_elim_graph,
11847         elim_graph_add_edge, elim_graph_remove_succ_edge,
11848         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
11849         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
11850         eliminate_phi):  Add locus info in elimination graph for each edge and
11851         value copy.
11852         (insert_backedge_copies): Copy locus if present.
11853         * tree-flow.h (struct _edge_var_map): Add locus field.
11854         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
11855         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
11856         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
11857         locations.
11858         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
11859
11860 2009-07-30  Martin Jambor  <mjambor@suse.cz>
11861
11862         PR tree-optimization/40570
11863         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
11864         use inlining loops.
11865
11866 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
11867
11868         * ssa-loop-manip.c: Include langhooks.h.
11869         (rewrite_phi_with_iv): New.
11870         (rewrite_all_phi_nodes_with_iv): New.
11871         (canonicalize_loop_ivs): Move here from tree-parloops.c.
11872         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
11873         * tree-parloops.c (loop_parallel_p): Move out all conditions
11874         except dependency check.
11875         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
11876         (gen_parallel_loop): Call canonicalize_loop_ivs without
11877         reduction_list argument.
11878         (build_new_reduction): New.
11879         (gather_scalar_reductions): New.
11880         (try_get_loop_niter): New.
11881         (try_create_reduction_list): New.
11882         (parallleize_loops): Change the parallel conditions check.
11883         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
11884         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
11885
11886 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
11887
11888         * opt-functions.awk (opt_args): Allow argument to be enclosed in
11889         curly braces.
11890         * doc/options.texi (Option properties):  Mention new quoting syntax.
11891
11892 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11893
11894         * config/alpha/alpha.c (alpha_start_function):
11895         Handle VMS_DEBUG_MAIN_POINTER
11896         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
11897         * doc/invoke.texi: Document -mdebug-main switch.
11898
11899 2009-07-29  Richard Henderson  <rth@redhat.com>
11900
11901         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
11902         (cgraph_create_edge_including_clones): Likewise.
11903         * tree-inline.c (copy_bb): Operate on the correct edges
11904         when updating the callgraph.
11905
11906 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11907
11908         * config/alpha/vms-cc.c: Deleted.
11909         * config/alpha/vms-ld.c: Deleted.
11910         * config/alpha/t-vms64: Moved to config/vms
11911         * config/alpha/vms-crt0-64.c: Moved to config/vms
11912         * config/alpha/vms-crt0.c: Moved to config/vms
11913         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
11914         * config/alpha/vms-psxcrt0.c: Moved to config/vms
11915         * config/alpha/xm-vms.h: Moved to config/vms
11916         * config/alpha/x-vms: Moved to config/vms
11917         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
11918         config/vms/t-vms.
11919         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
11920         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
11921         (version): Set.
11922         * config/vms/t-vms64: Moved here from config/alpha
11923         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
11924         (argc,argv,envp): Enforce 32bit malloc'ing.
11925         * config/vms/vms-psxcrt0-64.c: Likewise.
11926         * config/vms/vms-crt0.c: Moved here from config/alpha.
11927         * config/vms/vms-psxcrt0.c: Likewise.
11928         * config/vms/vms-crtl-64.h: New file.
11929         * config/vms/vms-crtl.h: New file.
11930         * config/vms/vms.opt: New file.
11931         * config/vms/xm-vms64.h: New file.
11932         * config/vms/xm-vms.h: Moved here from config/alpha.
11933         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
11934         Set.
11935         * config/vms/x-vms: Moved here from config/alpha.
11936         (version, VMS_EXTRA_PARTS): Moved to t-vms.
11937         (vms-ld.o, vms-cc.o): Removed.
11938         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
11939
11940 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11941
11942         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
11943         correct stack (obvious VMS fix).
11944
11945 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11946
11947         * dwarf2out.c (output_file_names): Output VMS style file name, size,
11948         date, version info if VMS_DEBUGGING_INFO defined.
11949         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
11950         size, date calculating code moved here.
11951
11952 2009-07-29  Paul Brook  <paul@codesourcery.com>
11953
11954         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
11955         do_push/do_pop.
11956
11957 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
11958
11959         PR target/40577
11960         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
11961         to DImode when generating insq_le insn.
11962
11963 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
11964
11965         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
11966         New macro set for VMS_DEBUGGGING_INFO.
11967         (AT_string_form): Use it.
11968
11969 2009-07-28  DJ Delorie  <dj@redhat.com>
11970
11971         * config/mep/mep.c (vtext_section): New.
11972         (vftext_section): New.
11973         (ftext_section): New.
11974         (mep_select_section): Add support for functions.
11975         (mep_unique_section): Likewise.
11976         (mep_asm_init_sections): Likewise.
11977         (mep_encode_section_info): Remove it from here.
11978
11979         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
11980
11981 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
11982
11983         * tree.h (TREE_DEPRECATED): Document it is used for types too.
11984         (TYPE_VECTOR_OPAQUE): Use default_def_flag
11985
11986 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
11987
11988         * dwarf2out.c (output_file_names): Test new macro
11989         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
11990         (add_comp_dir_attribute): Likewise.
11991
11992 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
11993
11994         * config/i386/mingw-w64.h (LINK_SPEC): Add
11995         separating space between commands.
11996
11997 2009-07-28  Jan Hubicka  <jh@suse.cz>
11998
11999         PR tree-optimization/40759
12000         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
12001         for renaming.
12002
12003 2009-07-27  DJ Delorie  <dj@redhat.com>
12004
12005         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
12006         types are dword-aligned.
12007         (mep_expand_va_start): Likewise.
12008
12009 2009-07-27  Olivier Hainque  <hainque@adacore.com>
12010             Douglas B Rupp  <rupp@gnat.com>
12011
12012         * convert.c (convert_to_pointer): Don't assume the target
12013         pointer type is POINTER_SIZE long. Fetch its precision instead.
12014
12015 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
12016
12017         * system.h (fopen): Undefine if macro.
12018
12019 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
12020
12021         * dwarf2out.c (output_cfi_p): Removed.
12022         (output_cfis): New function.
12023         (output_fde): New function, split from output_call_frame_info.
12024         (output_call_frame_info): Use it.
12025         (dwarf2out_switch_text_section): Use output_cfis.
12026
12027 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
12028
12029         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
12030         TARGET_BI_ARCH is specified without enabling SJLJ.
12031         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
12032         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
12033
12034 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
12035
12036         * arm.md (negdi2): Use DImode if forcing a value into a register.
12037
12038 2009-07-26  Ira Rosen  <irar@il.ibm.com>
12039
12040         PR tree-optimization/40801
12041         * tree-vect-stmts.c (vectorizable_call): Get previous copy
12042         of vector operand from the previous copy of vector statement.
12043         Pass the correct definition type value to
12044         vect_get_vec_def_for_stmt_copy().
12045
12046 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12047
12048         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
12049         const char ** conversion.
12050
12051 2009-07-25 David Daney <ddaney@caviumnetworks.com>
12052
12053         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
12054         fancy_abort() if !ENABLE_ASSERT_CHECKING.
12055         (gcc_unreachable): Invoke __builtin_unreachable() if
12056         !ENABLE_ASSERT_CHECKING.
12057
12058 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
12059
12060         PR rtl-optimization/40445
12061         * emit-rtl.c (next_nonnote_insn_bb): New function.
12062         * rtl.h (next_nonnote_insn_bb): Declare new function.
12063         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
12064         with no successors that is the successor of the ENTRY_BLOCK.
12065         Continue from the top after removing an empty fallthrough block.
12066         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
12067         of next_nonnote_insn.
12068
12069 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
12070
12071         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
12072
12073 2009-07-25  Martin Jambor  <mjambor@suse.cz>
12074
12075         * c-common.c (c_common_attribute_table): New element for noclone.
12076         (handle_noclone_attribute): New function. Forward-declare.
12077         * tree-inline.c (tree_versionable_function_p): Check for noclone
12078         attribute.
12079         * doc/extend.texi (Labels as Values): Document need for noclone.
12080         (Function Attributes): Document noclone attribute.
12081
12082 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
12083
12084         PR rtl-optimization/34999
12085         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
12086         and dw_fde_switched_cold_to_hot fields.
12087         (output_cfi_p): New function.
12088         (output_call_frame_info): If fde->dw_fde_switched_sections,
12089         output 2 FDEs instead of one with corrupted header.
12090         (dwarf2out_do_cfi_startproc): New function.
12091         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
12092         and fde->dw_fde_switched_cold_to_hot.
12093         (dwarf2out_switch_text_section): Compute
12094         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
12095         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
12096         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
12097         Otherwise, compute fde->dw_fde_switch_cfi.
12098
12099 2009-07-24  Cary Coutant  <ccoutant@google.com>
12100
12101         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
12102
12103 2009-07-24  Cary Coutant  <ccoutant@google.com>
12104
12105         * cfghooks.c (split_block): Copy discriminator to new block.
12106         * tree-cfg.c (assign_discriminator): Check location of last
12107         instruction in block as well as first.
12108
12109 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
12110
12111         * config/i386/linux.c: Use fputs or putc instead of fprintf
12112         where appropriate.
12113         * config/i386/gas.h: Ditto.
12114         * config/i386/x86-64.h: Ditto.
12115         * config/i386/att.h: Ditto.
12116
12117 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12118
12119         * expmed.c (emit_store_flag): Use a recursive call to optimize the
12120         xor case.
12121
12122 2009-07-24  Martin Jambor  <mjambor@suse.cz>
12123
12124         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
12125         (ipa_push_func_to_list_1): Declare.
12126         (ipa_push_func_to_list): New function.
12127
12128         * ipa-prop.c (ipa_push_func_to_list_1): New function.
12129         (ipa_init_func_list): Call ipa_push_func_to_list_1.
12130         (ipa_push_func_to_list): Removed.
12131         (ipa_pop_func_from_list): Clear node_enqueued flag.
12132
12133 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
12134
12135         * config/s390/s390.c (override_options): Default
12136         max-unrolled-insns to 100 for z10 tuning.
12137
12138 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
12139
12140         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
12141         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
12142         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
12143         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
12144         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
12145         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
12146         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
12147
12148 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
12149
12150         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
12151         use default set in mingw32.h header.
12152         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
12153         64-bit /mingw/include path.
12154         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
12155         path.
12156
12157 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
12158
12159         PR rtl-optimization/40209
12160         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
12161
12162 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
12163
12164         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
12165         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
12166         with the rest of string where appropriate.  Use fputs or putc
12167         instead of fprintf where appropriate.
12168
12169 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
12170             Pat Haugen  <pthaugen@us.ibm.com>
12171             Revital Eres <ERES@il.ibm.com>
12172
12173         * config/rs6000/vector.md: New file.  Move most of the vector
12174         expander support here from altivec.md to allow for the VSX vector
12175         unit in the future.  Add support for secondary_reload patterns.
12176         Rewrite the patterns for vector comparison, and vector comparison
12177         predicate instructions so that the RTL expresses the desired
12178         behavior, instead of using unspec.
12179
12180         * config/rs6000/constraints.md ("f" constraint): Use
12181         rs6000_constraints to hold the precalculated register class.
12182         ("d" constraint): Ditto.
12183         ("wd" constraint): New constraint for VSX.
12184         ("wf" constraint): Ditto.
12185         ("ws" constraint): Ditto.
12186         ("wa" constraint): Ditto.
12187         ("wZ" constraint): Ditto.
12188         ("j" constraint): Ditto.
12189
12190         * config/rs6000/predicates.md (vsx_register_operand): New
12191         predicate for VSX.
12192         (vfloat_operand): New predicate for vector.md.
12193         (vint_operand): Ditto.
12194         (vlogical_operand): Ditto.
12195         (easy_fp_constant): If VSX, 0.0 is an easy constant.
12196         (easy_vector_constant): Add VSX support.
12197         (altivec_indexed_or_indirect_operand): New predicate for
12198         recognizing Altivec style memory references with AND -16.
12199
12200         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
12201         for vector secondary reload support.
12202         (rs6000_vector_reg_class): Delete, replacing it with
12203         rs6000_constraints.
12204         (rs6000_vsx_reg_class): Ditto.
12205         (rs6000_constraints): New array to hold the register classes of
12206         each of the register constraints that can vary at runtime.
12207         (builtin_mode_to_type): New static array for builtin function type
12208         creation.
12209         (builtin_hash_table): New static hash table for builtin function
12210         type creation.
12211         (TARGET_SECONDARY_RELOAD): Define target hook.
12212         (TARGET_IRA_COVER_CLASSES): Ditto.
12213         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
12214         registers are 128 bits if VSX memory reference instructions are used.
12215         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
12216         unit is being used.
12217         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
12218         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
12219         Print several of the scheduling related parameters.
12220         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
12221         rs6000_constraints instead of rs6000_vector_reg_class.  Move
12222         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
12223         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
12224         Altivec.  Add VSX support.  Setup for secondary reload support on
12225         Altivec/VSX registers.
12226         (rs6000_override_options): Make power7 set the scheduling groups
12227         like the power5.  Add support for new debug switches to override
12228         the scheduling defaults.  Temporarily disable -mcpu=power7 from
12229         setting -mvsx.  Add support for debug switches -malways-hint,
12230         -msched-groups, and -malign-branch-targets.
12231         (rs6000_buitlin_conversion): Add support for returning unsigned
12232         vector conversion functions to fix regressions due to stricter
12233         type checking.
12234         (rs6000_builtin_mul_widen_even): Ditto.
12235         (rs6000_builtin_mul_widen_odd): Ditto.
12236         (rs6000_builtin_vec_perm): Ditto.
12237         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
12238         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
12239         to zero a register.
12240         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
12241         generated upstream.
12242         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
12243         VSX types for bit operations.  Changes to accomidate vector.md.
12244         (bdesc_2arg): Ditto.
12245         (bdesc_1arg): Ditto.
12246         (struct builtin_description_predicates): Rewrite predicate
12247         handling so that RTL describes the operation, instead of passing
12248         the instruction to be used as a string argument.
12249         (bdesc_altivec_preds): Ditto.
12250         (altivec_expand_predicate_builtin): Ditto.
12251         (altivec_expand_builtin): Ditto.
12252         (rs6000_expand_ternop_builtin): Use a switch instead of an if
12253         statement for vsldoi support.
12254         (altivec_expand_ld_builtin): Change to use new names from vector.md.
12255         (altivec_expand_st_builtin): Ditto.
12256         (paired_expand_builtin): Whitespace changes.
12257         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
12258         builtin_mode_to_type table for secondary reload.  Call
12259         builtin_function_type to build random builtin functions.
12260         (altivec_init_builtins): Change to use builtin_function_type to
12261         create builtin function types dynamically as we need them.
12262         (builtin_hash_function): New support for hashing the tree types
12263         for builtin function as we need it, rather than trying to build
12264         all of the trees that we need.  Add initial preliminary VSX support.
12265         (builtin_function_type): Ditto.
12266         (builtin_function_eq): Ditto.
12267         (builtin_hash_struct): Ditto.
12268         (rs6000_init_builtins): Ditto.
12269         (rs6000_common_init_builtins): Ditto.
12270         (altivec_init_builtins): Ditto.
12271         (rs6000_common_init_builtins): Ditto.
12272         (enum reload_reg_type): New enum for simplifing reg classes.
12273         (rs6000_reload_register_type): Simplify register classes into GPR,
12274         Vector, and other registers.  Altivec and VSX addresses in reload.
12275         (rs6000_secondary_reload_inner): Ditto.
12276         (rs6000_ira_cover_classes): New target hook, that returns the
12277         appropriate cover classes, based on -mvsx being used or not.
12278         (rs6000_secondary_reload_class): Add VSX support.
12279         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
12280         (get_vsel_insn): Ditto.
12281         (rs6000_emit_vector_compare): Rewrite vector conditional support
12282         so that where we can, we use RTL operators, instead of blindly use
12283         UNSPEC.
12284         (rs6000_emit_vector_select): Ditto.
12285         (rs6000_emit_vector_cond_expr): Ditto.
12286         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
12287         (create_TOC_reference): Add -mdebug=addr support.
12288         (emit_frame_save): VSX loads/stores need register indexed addressing.
12289
12290         * config/rs6000/rs6000.md: Include vector.md.
12291
12292         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
12293
12294         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12295         support for V2DI, V2DF in logical, permute, select operations.
12296
12297         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
12298         switch for vsx/power7.
12299         (-mvsx-scalar-memory): Ditto.
12300         (-mvsx-align-128): Ditto.
12301         (-mallow-movmisalign): Ditto.
12302         (-mallow-df-permute): Ditto.
12303         (-msched-groups): Ditto.
12304         (-malways-hint): Ditto.
12305         (-malign-branch-targets): Ditto.
12306
12307         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
12308         hook instead.
12309         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
12310         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
12311         (rs6000_vector_reg_class): Delete.
12312         (rs6000_vsx_reg_class): Ditto.
12313         (enum rs6000_reg_class_enum): New enum for the constraints that
12314         vary based on target switches.
12315         (rs6000_constraints): New array to hold the register class for all
12316         of the register constraints that vary based on the switches used.
12317         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
12318         (enum rs6000_builtins): Add unsigned varients for the builtin
12319         declarations returned by target hooks for expanding multiplies,
12320         select, and permute operations.  Add VSX builtins.
12321         (enum rs6000_builtin_type_index): Add entries for VSX.
12322         (V2DI_type_node): Ditto.
12323         (V2DF_type_node): Ditto.
12324         (unsigned_V2DI_type_node): Ditto.
12325         (bool_long_type_node): Ditto.
12326         (intDI_type_internal_node): Ditto.
12327         (uintDI_type_internal_node): Ditto.
12328         (double_type_internal_node): Ditto.
12329
12330         * config/rs6000/altivec.md (whole file): Move all expanders to
12331         vector.md from altivec.md.  Rename insn matching functions to be
12332         altivec_foo.
12333         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
12334         (altivec_vcmp*): Ditto.
12335         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
12336         (VM): New iterator for moves that includes the VSX types.
12337         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
12338         (altivec_vperm_<mode>_uns): New, for unsigned types.
12339         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
12340         (altivec_eq<mode>): Ditto.
12341         (altivec_gt<mode>): Ditto.
12342         (altivec_gtu<mode>): Ditto.
12343         (altivec_eqv4sf): Ditto.
12344         (altivec_gev4sf): Ditto.
12345         (altivec_gtv4sf): Ditto.
12346         (altivec_vcmpbfp_p): Ditto.
12347
12348 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
12349
12350         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
12351         unsigned HWI.
12352
12353 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
12354
12355         PR target/40832
12356         * config/i386/i386.c (output_387_ffreep): Rewrite to use
12357         ASM_SHORT instead of .word.
12358         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
12359         instead of .word in asm template.
12360
12361 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
12362
12363         PR target/37488
12364         * ira-lives.c (bb_has_abnormal_call_pred): New function.
12365         (process_bb_node_lives): Use it.
12366
12367         * ira.c (setup_cover_and_important_classes): Don't setup
12368         ira_important_class_nums.  Add cover classes to the end of
12369         important classes.
12370         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
12371         New.
12372         (find_reg_class_closure): Use reorder_important_classes.
12373
12374         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
12375
12376         * config/i386/i386.c (i386_ira_cover_classes): New function.
12377         (TARGET_IRA_COVER_CLASSES): Redefine.
12378
12379         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
12380         importance of order of cover classes in the array.
12381
12382 2009-07-22  Diego Novillo  <dnovillo@google.com>
12383
12384         * tree-pass.h (TDF_EH): Define.
12385         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
12386         contains TDF_EH, print the EH region number holding GS.
12387         * tree-dump.c (dump_options): Add "eh".
12388         * doc/invoke.texi: Document it.
12389
12390 2009-07-22  Doug Kwan  <dougkwan@google.com>
12391
12392         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
12393
12394 2009-07-22  Michael Matz  <matz@suse.de>
12395
12396         PR tree-optimization/35229
12397         PR tree-optimization/39300
12398
12399         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
12400         (inhibit_phi_insertion): New function.
12401         (insert_into_preds_of_block): Call it for REFERENCEs.
12402         (init_pre): Initialize and finalize scalar evolutions.
12403         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
12404
12405 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
12406
12407         * config/i386/predicates.md (zero_extended_scalar_load_operand):
12408         Use CONST_VECTOR_NUNITS to determine number of elements.
12409
12410 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
12411
12412         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
12413         (U, W): Constraints are now deprecated and will be removed if we
12414         run out of letters.
12415         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
12416         the file.
12417         ("prefetch"): Add the stcmh instruction for prefetching.
12418         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
12419         changes.
12420         (s390_short_displacement): Return always true if compiling for
12421         machines not providing the long displacement facility.
12422         (s390_mem_constraint): Support the new constraint letter Z.
12423         (s390_check_qrst_address): New function.
12424
12425 2009-07-21  DJ Delorie  <dj@redhat.com>
12426
12427         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
12428         alone too.
12429
12430 2009-07-21  Jason Merrill  <jason@redhat.com>
12431
12432         * c-common.c (max_tinst_depth): Increase default to 1024.
12433
12434 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
12435
12436         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
12437         (vec_unpacku_float_lo_v4si): Ditto.
12438
12439 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
12440
12441         PR target/40811
12442         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
12443         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
12444         (builtin_description): Add __builtin_ia32_cvtudq2ps.
12445         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
12446
12447 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
12448
12449         PR tree-optimization/40813
12450         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
12451         it.
12452
12453 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
12454
12455         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
12456         with a NOP_EXPR if needed.
12457
12458 2009-07-21  Paul Brook <paul@codesourcery.com>
12459
12460         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
12461         Terminate debug dump with newline.
12462
12463 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12464
12465         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
12466         Cast "1" to unsigned HOST_WIDE_INT.
12467         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
12468         deposit length to the maximum length - lsb.  Extend length if
12469         HOST_BITS_PER_WIDE_INT is 32.
12470
12471 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
12472
12473         * cgraph.h (constant_pool_htab): New function.
12474         (constant_descriptor_tree): Move from varasm.c.
12475         * varasm.c (constant_pool_htab): New function.
12476         (constant_descriptor_tree): Move to cgraph.h.
12477
12478 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
12479
12480         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
12481
12482 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
12483
12484         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
12485         $(VARRAY_H).
12486
12487 2009-07-20  Xinliang David Li  <davidxl@google.com>
12488
12489         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
12490
12491 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
12492
12493         * config/mips/mips.md (move_type): Add arith.
12494         (type): Handle arith.
12495         (zero_extendsidi2): Rename this into ...
12496         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
12497         (zero_extendsidi2): New expander.
12498         (*zero_extendsidi2_dext): New pattern.
12499
12500 2009-07-20  Nick Clifton  <nickc@redhat.com>
12501
12502         * config.gcc (mips64-*-*): Add definition of tm_defines in order
12503         to set MIPS_ABI_DEFAULT.
12504         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
12505
12506 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
12507
12508         * tree-object-size.c (addr_object_size): Handle unions with
12509         array in it as last field of structs in __bos (, 1) as __bos (, 0).
12510
12511         PR tree-optimization/40792
12512         * tree.c (build_function_type_skip_args): Remove bogus assert.
12513
12514 2009-07-20  Jan Hubicka  <jh@suse.cz>
12515             Martin Jambor  <mjambor@suse.cz>
12516
12517         * cgraph.h (combined_args_to_skip): New field.
12518         * cgraph.c (cgraph_create_virtual_clone): Properly handle
12519         combined_args_to_skip and args_to_skip.
12520         * tree-inline.c (update_clone_info): New function.
12521         (tree_function_versioning): Call update_clone_info.
12522         * cgraphunit.c (cgraph_materialize_clone): Dump materialized
12523         functions.
12524         (cgraph_materialize_all_clones): More extensive dumping, working
12525         with combined_args_to_skip rather than args_to_skip.
12526
12527 2009-07-20  Ira Rosen  <irar@il.ibm.com>
12528
12529         * tree-vectorizer.h (vectorizable_condition): Add parameters.
12530         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
12531         (get_initial_def_for_reduction): Likewise.
12532         (vectorizable_reduction): Skip the check of first operand in case
12533         of COND_EXPR. Add check that it is outer loop vectorization if
12534         nested cycle was detected. Call vectorizable_condition() for
12535         COND_EXPR. If reduction epilogue cannot be created do not fail for
12536         nested cycles (if it is not double reduction). Assert that there
12537         is only one type in the loop in case of COND_EXPR. Call
12538         vectorizable_condition() to vectorize COND_EXPR.
12539         * tree-vect-stmts.c (vectorizable_condition): Update comment.
12540         Add parameters. Allow nested cycles if called from
12541         vectorizable_reduction(). Use reduction vector variable if provided.
12542         (vect_analyze_stmt): Call vectorizable_reduction() before
12543         vectorizable_condition().
12544         (vect_transform_stmt): Update call to vectorizable_condition().
12545
12546 2009-07-20  Christian Bruel  <christian.bruel@st.com>
12547
12548         * config/sh/sh.opt (-mfmovd): Resurrect and document.
12549         * doc/invoke.texi (-mfmovd): Likewise.
12550         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
12551
12552 2009-07-20  Jan Hubicka  <jh@suse.cz>
12553
12554         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
12555         when handling SSA name.
12556
12557 2009-07-19  Jan Hubicka  <jh@suse.cz>
12558
12559         PR tree-optimization/40676
12560         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
12561         virtual PHIs in empty BBs.
12562
12563 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
12564
12565         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
12566         re-expanded the compound use gen_lowpart instead to convert to the
12567         desired mode.
12568
12569 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
12570
12571         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
12572         OUTER_CONST arguments.
12573         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
12574         the new wider mode will be masked off.
12575         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
12576
12577 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
12578
12579         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
12580         high-order bits are zero.
12581
12582 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
12583
12584         * combine.c (simplify_shift_const_1): Split code to determine
12585         shift_mode into ...
12586         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
12587         new bits shifted in are identical to the old sign bit.
12588
12589 2009-07-18  Richard Guenther  <rguenther@suse.de>
12590
12591         PR c/40787
12592         * gimplify.c (gimplify_call_expr): Reject code using results from
12593         functions returning void.
12594
12595 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
12596
12597         * doc/md.texi: Document the new PowerPC "es" constraint.
12598         Document that "m" can include automodified addresses on this target,
12599         and explain how %U must be used.  Extend the "Q" and "Z" documentation
12600         to suggest "es" as well as "m".
12601         * config/rs6000/constraints.md (es): New memory constraint.
12602         (Q, Z): Update strings to match new documentation.
12603
12604 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
12605
12606         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
12607         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
12608         * config/rs6000/predicates.md (volatile_mem_operand): Use
12609         offsettable_nonstrict_memref_p.
12610         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
12611         (*floatunssidf2_internal): Likewise.
12612         (*fix_truncdfsi2_internal): Likewise.
12613         (*fix_trunctfsi2_internal): Likewise.
12614
12615 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
12616
12617         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
12618         atmega32u2 devices.
12619         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
12620
12621 2009-07-17  Richard Guenther  <rguenther@suse.de>
12622
12623         PR c/40401
12624         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
12625         (pass_warn_unused_result): Likewise.
12626         (TODO_set_props): Remove.
12627         * omp-low.c (diagnose_omp_structured_block_errors): Change to
12628         run as a pass.
12629         (pass_diagnose_omp_blocks): Define.
12630         * c-decl.c (pop_file_scope): Do not finalize the CU here.
12631         (c_gimple_diagnostics_recursively): Remove.
12632         (finish_function): Do not call it.
12633         (c_write_global_declarations): Continue after errors.
12634         Finalize the CU here.
12635         * c-gimplify.c (c_genericize): Do not gimplify here.
12636         * c-common.c (c_warn_unused_result): Move ...
12637         * tree-cfg.c (do_warn_unused_result): ... here.
12638         (run_warn_unused_result): New function.
12639         (gate_warn_unused_result): New function.
12640         (pass_warn_unused_result): New pass.
12641         * c-common.h (c_warn_unused_result): Remove.
12642         * flags.h (flag_warn_unused_result): Declare.
12643         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
12644         * opts.c (flag_warn_unused_result): Initialize to false.
12645         * toplev.c (compile_file): Add comment.
12646         * omp-low.c (create_omp_child_function): Do not register
12647         the function with the frontend.
12648         (diagnose_omp_structured_block_errors): Prepare to be
12649         called as optimization pass.
12650         (gate_diagnose_omp_blocks): New function.
12651         (pass_diagnose_omp_blocks): New pass.
12652         * cgraph.h (cgraph_optimize): Remove.
12653         (cgraph_analyze_function): Likewise.
12654         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
12655         * cgraphunit.c (cgraph_lower_function): Lower nested functions
12656         before their parents here.
12657         (cgraph_finalize_function): Not here.
12658         (cgraph_analyze_function): Gimplify functions here.
12659         (cgraph_finalize_compilation_unit): Continue after errors.
12660         Optimize the callgraph from here.
12661         (cgraph_optimize): Make static.
12662         * langhooks.c (write_global_declarations): Finalize the CU.
12663         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
12664         (gimplify_function_tree): Assert we gimplify only once.
12665         Set PROP_gimple_any property.
12666         * tree-nested.c (gimplify_all_functions): New function.
12667         (lower_nested_functions): Gimplify all nested functions.
12668         * gimple.h (diagnose_omp_structured_block_errors): Remove.
12669         * passes.c (init_optimization_passes): Add pass_warn_unused_result
12670         and pass_diagnose_omp_blocks after gimplification.  Do not
12671         set TODO_set_props on all_lowering_passes.
12672         (execute_one_pass): Do not handle TODO_set_props.
12673         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
12674         (gimplify.o): Add tree-pass.h dependency.
12675         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
12676         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
12677         (unsave_r): Likewise.
12678         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
12679         temporary variable.
12680
12681 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
12682
12683         * doc/service.texi (Service): Restore previously removed link,
12684         which isn't broken after all.
12685
12686 2009-07-17  Richard Guenther  <rguenther@suse.de>
12687
12688         PR tree-optimization/40321
12689         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
12690         PHI nodes to the maximal set.
12691         (make_values_for_phi): Add PHI arguments to the maximal set.
12692         (execute_pre): Dump PHI_GEN and the maximal set.
12693
12694 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
12695
12696         PR c++/40780
12697         * gimplify.c (gimplify_conversion): Don't change non-conversions into
12698         VIEW_CONVERT_EXPR.
12699
12700 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
12701
12702         * doc/extend.texi (Nested Functions): Replace broken link with
12703         textual reference.
12704         * doc/service.texi (Service): Remove broken link.
12705
12706 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
12707
12708         PR bootstrap/40781
12709         * builtins.c (expand_builtin_memcmp): Use loc instead of
12710         EXPR_LOCATION (exp).
12711         (expand_builtin_strncmp): Likewise.
12712
12713 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
12714             Manuel López-Ibáñez  <manu@gcc.gnu.org>
12715
12716         PR 40435
12717         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
12718         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
12719         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
12720         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
12721         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
12722         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
12723         tree-inline.c, c-common.c, c-common.h, gimple.c,
12724         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
12725         convert.c: Add location argument to fold_{unary,binary,ternary},
12726         fold_build[123], build_call_expr, build_size_arg,
12727         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
12728         fold_build1_initializer, fold_build2_initializer,
12729         fold_build3_initializer, fold_build_call_array,
12730         fold_build_call_array_initializer, fold_single_bit_test,
12731         omit_one_operand, omit_two_operands, invert_truthvalue,
12732         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
12733         combine_comparisons, fold_builtin_*, fold_call_expr,
12734         build_range_check, maybe_fold_offset_to_address, round_up,
12735         round_down.
12736
12737 2009-07-16  Jason Merrill  <jason@redhat.com>
12738
12739         PR libstdc++/37907
12740         * c-common.c (c_common_reswords): Add __is_standard_layout
12741         and __is_trivial.
12742         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
12743         * doc/implement-cxx.texi: New.
12744         * doc/gcc.texi: Include it.
12745
12746 2009-07-16  DJ Delorie  <dj@redhat.com>
12747
12748         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
12749         compares that may be indirectly affected by previous instructions.
12750
12751 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12752
12753         * builtins.c (do_mpc_arg2): New.
12754         (fold_builtin_2): Fold builtin cpow.
12755         * real.h (HAVE_mpc_pow): New.
12756
12757 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
12758
12759         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
12760         comparison to skip unprofitable schedule
12761
12762 2009-07-16  Simon Baldwin  <simonb@google.com>
12763
12764         * gcc.c (option_map): New flag -no-canonical-prefixes.
12765         * (display_help): Print help text for new flag.
12766         * (process_command): Move options translation and language specifics
12767         and handle new flag early.  Use it to set a function pointer to a
12768         prefix builder.  Replace make_relative_prefix calls with calls to
12769         the function pointed to.  Ignore new flag in regular options handling.
12770         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
12771
12772 2009-07-15  DJ Delorie  <dj@redhat.com>
12773
12774         * config/mep/mep.md (sibcall_internal): Change register to avoid
12775         argument registers.
12776         (sibcall_value_internal): Likewise.
12777
12778 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
12779
12780         PR rtl-optimization/40710
12781         * resource.c (mark_target_live_regs): Reset DF problem to LR.
12782
12783 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
12784
12785         * config/mips/mips.md (*extenddi_truncate<mode>,
12786         *extendsi_truncate<mode>): Change type attribute to move_type
12787         with shift_shift.  Split out code handling exts from here ...
12788         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
12789         pattern.
12790         (*extendhi_truncateqi): Change type attribute to move_type with
12791         shift_shift.  Split out code handling exts from here ...
12792         (*extendhi_truncateqi_exts): ... to this new pattern.
12793
12794 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
12795
12796         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
12797         instead of "and" with inverted sign bit mask value.  Use
12798         "nonimmediate_operand" for operand 1 and operand 2 predicate.
12799         Allocate registers only for operand 4 and operand 5.
12800
12801 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
12802
12803         PR middle-end/40747
12804         * fold-const.c (fold_cond_expr_with_comparison): When folding
12805         < and <= to MIN, make sure the MIN uses the same type as the
12806         comparison's operands.
12807
12808 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
12809
12810         * arm.md (ior_xor): New code iterator.
12811         (split for ior/xor with shift and zero-extend): New split pattern.
12812         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
12813
12814 2009-07-15  Richard Guenther  <rguenther@suse.de>
12815
12816         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
12817         offset member.
12818
12819 2009-07-15  Richard Guenther  <rguenther@suse.de>
12820
12821         PR middle-end/40753
12822         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
12823
12824 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
12825
12826         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
12827         handle 2.6.30 kernel.
12828
12829 2009-07-15  DJ Delorie  <dj@redhat.com>
12830
12831         * config/mep/mep.md (sibcall_internal): Change register to allow
12832         for 24-bit addresses.
12833         (sibcall_value_internal): Likewise.
12834
12835 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
12836
12837         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
12838         that are enabled/disabled by the flags introduced by a previous patch.
12839
12840 2009-07-14  DJ Delorie  <dj@redhat.com>
12841
12842         * config/mep/mep.md (sibcall_internal): Include non-toggling
12843         non-jmp case.
12844         (sibcall_value_internal): Likewise.
12845
12846 2009-07-14  Taras Glek  <tglek@mozilla.com>
12847             Rafael Espindola  <espindola@google.com>
12848
12849         * doc/sourcebuild.texi: Document install-plugin target.
12850         * configure.ac: Added install-plugin target to language makefiles.
12851         * configure: Regenerate.
12852         * Makefile.in (install-plugin): Install more headers,
12853         depend on lang.install-plugin.
12854
12855 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12856
12857         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
12858         translation.
12859
12860 2009-07-14  DJ Delorie  <dj@redhat.com>
12861
12862         * config/mep/mep.c (mep_vliw_jmp_match): New function.
12863         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
12864         * config/mep/mep.md (sibcall_internal): Change test from
12865         mep_vliw_mode_match to mep_vliw_jmp_match.
12866         (sibcall_value_internal): Likewise.
12867
12868 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
12869
12870         * config/i386/sse.md (copysign<mode>3): New expander.
12871         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
12872         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
12873         Use ix86_build_const_vector.
12874         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
12875         IX86_BUILTIN_CPYSGNPD.
12876         (builtin_description): Add __builtin_ia32_copysignps and
12877         __builtin_ia32_copysignpd.
12878         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
12879         and BUILT_IN_COPYSIGNF.
12880
12881 2009-07-13  Jason Merrill  <jason@redhat.com>
12882
12883         * builtins.c (can_trust_pointer_alignment): New fn.
12884         (get_pointer_alignment): Factor it out from here.
12885         * tree.h: Declare it.
12886
12887 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
12888
12889         * config/rs6000/predicates.md (offsettable_mem_operand): Test
12890         RTX_AUTOINC class.
12891
12892 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
12893
12894         PR debug/40705
12895         PR c++/403057
12896         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
12897
12898 2009-07-14  Richard Guenther  <rguenther@suse.de>
12899             Andrey Belevantsev <abel@ispras.ru>
12900
12901         PR middle-end/40745
12902         * cfgexpand.c (partition_stack_vars): Do not bother to update
12903         alias information when not optimizing.
12904
12905 2009-07-14  Richard Guenther  <rguenther@suse.de>
12906             Andrey Belevantsev <abel@ispras.ru>
12907
12908         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
12909         (pt_solution_set): Likewise.
12910         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
12911         * tree-ssa-structalias.c (pt_solution_set): New function.
12912         * final.c (rest_of_clean_state): Free SSA data structures.
12913         * print-rtl.c (print_decl_name): Remove.
12914         (print_mem_expr): Implement in terms of print_generic_expr.
12915         * alias.c (ao_ref_from_mem): New function.
12916         (rtx_refs_may_alias_p): Likewise.
12917         (true_dependence): Query alias-export info.
12918         (canon_true_dependence): Likewise.
12919         (write_dependence_p): Likewise.
12920         * tree-dfa.c (get_ref_base_and_extent): For void types leave
12921         size unknown.
12922         * emit-rtl.c (component_ref_for_mem_expr): Remove.
12923         (mem_expr_equal_p): Use operand_equal_p.
12924         (set_mem_attributes_minus_bitpos): Do not use
12925         component_ref_for_mem_expr.
12926         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
12927         (update_alias_info_with_stack_vars): Likewise.
12928         (partition_stack_vars): Call update_alias_info_with_stack_vars.
12929         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
12930         explicitly nor clear stmt operands.
12931         Free the decl-to-pointer map.
12932         * tree-optimize.c (execute_free_datastructures): Do not free
12933         SSA data structures here.
12934         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
12935         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
12936         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
12937         dependencies.
12938         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
12939
12940 2009-07-13  DJ Delorie  <dj@redhat.com>
12941
12942         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
12943         unrolling at the right iteration count.
12944
12945         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
12946         calculations.
12947
12948 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
12949
12950         * haifa-sched.c (rank_for_schedule): Introduced flags to
12951         enable/disable individual scheduling heuristics.
12952         * common.opt: Introduced flags to enable/disable individual
12953         heuristics in the scheduler.
12954         * doc/invoke.texi: Introduced flags to enable/disable individual
12955         heuristics in the scheduler.
12956
12957 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
12958
12959         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
12960         config/i386/mingw-tls.c.
12961         * config/i386/mingw-tls.c: Removed.
12962
12963 2009-07-13  Ira Rosen  <irar@il.ibm.com>
12964
12965         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
12966         checks access only relevant statements.
12967         (vectorizable_reduction): Likewise.
12968
12969 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
12970
12971         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
12972         just for 32-bit case.
12973
12974 2009-07-12  Jan Hubicka  <jh@suse.cz>
12975
12976         PR tree-optimization/40585
12977         * except.c (expand_resx_expr): When there already is resume
12978         instruction, produce linked list.
12979         (build_post_landing_pads): Assert that resume is empty.
12980         (connect_post_landing_pads): Handle resume lists.
12981         (dump_eh_tree): Dump resume list.
12982
12983 2009-07-12  Ira Rosen  <irar@il.ibm.com>
12984
12985         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
12986         with additional argument.
12987         * tree-vectorizer.h (enum vect_def_type): Add
12988         vect_double_reduction_def.
12989         (vect_is_simple_reduction): Add argument.
12990         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
12991         indentation.
12992         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
12993         vect_is_simple_reduction with additional argument.
12994         (vect_analyze_loop_operations): Handle exit phi nodes in case of
12995         double reduction.
12996         (reduction_code_for_scalar_code): Handle additional codes by
12997         returning ERROR_MARK for them. Fix comment and indentation.
12998         (vect_is_simple_reduction): Fix comment, add argument to specify
12999         double reduction. Detect double reduction.
13000         (get_initial_def_for_induction): Fix indentation.
13001         (get_initial_def_for_reduction): Fix comment and indentation.
13002         Handle double reduction. Create initial definitions that do not
13003         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
13004         (vect_create_epilog_for_reduction): Fix comment, add argument to
13005         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
13006         epilogue result extraction. Create double reduction phi node and
13007         replace relevant uses.
13008         (vectorizable_reduction): Call vect_is_simple_reduction with
13009         additional argument. Fix indentation. Update epilogue code treatment
13010         according to the changes in reduction_code_for_scalar_code. Check
13011         for double reduction. Call vect_create_epilog_for_reduction with
13012         additional argument.
13013         * tree-vect-stmts.c (process_use): Handle double reduction, update
13014         documentation.
13015         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
13016         (vect_get_vec_def_for_operand): Likewise.
13017
13018 2009-07-12  Danny Smith  <dansmister@gmail.com>
13019
13020         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
13021         dllexport if !TREE_PUBLIC.
13022         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
13023
13024 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
13025
13026         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
13027         (avr_extra_arch_macro) Remove declatation.
13028         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
13029         (avr_extra_arch_macro) Declare as static.
13030         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
13031
13032 2009-07-11  Jan Hubicka  <jh@suse.cz>
13033
13034         PR middle-end/48388
13035         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
13036
13037 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
13038
13039         PR debug/40713
13040         * dwarf2out.c (dw_fde_struct): Add in_std_section and
13041         cold_in_std_section bits.
13042         (dwarf2out_begin_prologue): Initialize them.
13043         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
13044         if already covered by text_section or cold_text_section range.
13045
13046         PR rtl-optimization/40667
13047         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
13048         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
13049         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
13050         * config/i386/i386.c (ix86_minimum_alignment): New function.
13051         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
13052         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
13053         * emit-rtl.c (gen_reg_rtx): Likewise.
13054         * function.c (assign_parms): Likewise.  If nominal_type needs
13055         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
13056         rather than passed_type's alignment.
13057
13058         PR target/40668
13059         * function.c (assign_parm_setup_stack): Adjust
13060         MEM_OFFSET (data->stack_parm) if promoted_mode is different
13061         from nominal_mode on big endian.
13062
13063 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
13064
13065         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
13066
13067 2009-07-10  DJ Delorie  <dj@redhat.com>
13068
13069         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
13070
13071 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
13072
13073         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
13074         attribute.
13075         (thumb2_cbnz): Likewise.
13076
13077 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
13078
13079         PR target/39079
13080         * config.gcc (supported_defaults): Add synci.
13081         (with_synci): Add validation.
13082         (all_defaults): Add synci.
13083         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
13084         ISA_HAS_SYNCI.
13085         (synci): Same.
13086         * config/mips/mips.opt (msynci): New option.
13087         * config/mips/mips.c (mips_override_options): Warn on use of
13088         -msynci for targets that do now support it.
13089         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
13090         msynci.
13091         * gcc/doc/invoke.texi (-msynci): Document the new option.
13092         * doc/install.texi (--with-synci): Document the new option.
13093
13094 2009-07-10  Richard Guenther  <rguenther@suse.de>
13095
13096         PR tree-optimization/40496
13097         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
13098         the PHI result with a compatible type.
13099
13100 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13101
13102         PR 25509
13103         PR 40614
13104         * c.opt (Wunused-result): New.
13105         * doc/invoke.texi: Document it.
13106         * c-common.c (c_warn_unused_result): Use it.
13107
13108 2009-07-09  DJ Delorie  <dj@redhat.com>
13109
13110         * targhooks.c (default_target_can_inline_p): Rename from
13111         default_target_option_can_inline_p.
13112         * targhooks.h (default_target_can_inline_p): Likewise.
13113         * target-def.h (TARGET_CAN_INLINE_P): Rename from
13114         TARGET_OPTION_CAN_INLINE_P.
13115         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
13116         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
13117         (mep_target_can_inline_p): Rename from
13118         mep_target_option_can_inline_p.
13119
13120         PR target/40626
13121         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
13122         registers used to pass vectors.
13123
13124         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
13125
13126 2009-07-09  Tom Tromey  <tromey@redhat.com>
13127
13128         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
13129         * config/mmix/mmix.c: Include dwarf2.h.
13130         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
13131         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
13132         * config/sh/sh.c: Include dwarf2.h.
13133         * config/i386/i386.c: Include dwarf2.h.
13134         * Makefile.in (DWARF2_H): Remove 'elf'.
13135         * except.c: Include dwarf2.h.
13136         * unwind-dw2.c: Include dwarf2.h.
13137         * dwarf2out.c: Include dwarf2.h.
13138         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
13139         * unwind-dw2-fde.c: Include dwarf2.h.
13140         * dwarf2asm.c: Include dwarf2.h.
13141
13142 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
13143
13144         * haifa-sched.c (insn_finishes_cycle_p): New static function.
13145         (max_issue): Use it.
13146         * sched-int.h (struct sched_info: insn_finishes_block_p): New
13147         scheduler hook.
13148         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
13149         (region_sched_info): Update.
13150         * sched-ebb.c (ebb_sched_info): Update.
13151         * modulo-sched.c (sms_sched_info): Update.
13152         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
13153
13154 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
13155
13156         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
13157
13158 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
13159
13160         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
13161
13162 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
13163
13164         PR middle-end/40692
13165         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
13166         arg1 with arg01 if arg1 is already INTEGER_CST.
13167
13168 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
13169
13170         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
13171         Transform (and (truncate)) into (truncate (and)).
13172
13173 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
13174
13175         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
13176         creating LHS paradoxical subregs.  Fix surrounding returns to
13177         use NULL_RTX rather than 0.
13178
13179 2009-07-08  DJ Delorie  <dj@redhat.com>
13180
13181         * config/mep/mep.c (mep_option_can_inline_p): New.
13182         (TARGET_OPTION_CAN_INLINE_P): Define.
13183
13184 2009-07-08  Mark Wielaard  <mjw@redhat.com>
13185
13186         PR debug/40659
13187         * dwarf2out.c (add_data_member_location_attribute): When we have
13188         only a constant offset don't emit a new location description using
13189         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
13190         dwarf_version > 2.
13191
13192 2009-07-08  Richard Henderson  <rth@redhat.com>
13193
13194         PR target/38900
13195         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
13196         (enum reg_class): Add CLOBBERED_REGS.
13197         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
13198         * config/i386/i386.c (ix86_conditional_register_usage): Moved
13199         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
13200         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
13201         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
13202         force 64-bit sibcalls into R11.
13203         * config/i386/constraints.md (U): New constraint.
13204         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
13205         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
13206         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
13207
13208 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
13209
13210         * basic-block.h (dump_regset, debug_regset): Remove duplicate
13211         prototypes.
13212         * c-objc-common.h (c_initialize_diagnostics): Ditto.
13213         * ebitmap.h (dump_ebitmap): Ditto.
13214         * optabs.h (optab_libfunc): Ditto.
13215         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
13216         * tree-flow.h (vect_can_force_dr_alignment_p,
13217         get_vectype_for_scalar_type): Ditto.
13218         (vectorize_loops): Move prototype to ...
13219         * tree-vectorizer.h: ... here. Also, adjust comment.
13220         (vect_set_verbosity_level): Remove duplicate prototype.
13221         * tree-ssa-loop.c: Include tree-vectorizer.h.
13222         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
13223
13224 2009-07-08  Nick Clifton  <nickc@redhat.com>
13225
13226         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
13227         forward slash.
13228
13229 2009-07-08  DJ Delorie  <dj@redhat.com>
13230
13231         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
13232         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
13233         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
13234         written to.
13235         * config/mep/intrinsics.md: Regenerated.
13236         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
13237         registers when asm() or calls are detected.
13238
13239 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13240
13241         PR c++/31246
13242         * gimplify.c (gimplify_expr): Propagate no_warning flag when
13243         gimplifying.
13244         * gimple (gimple_build_call_from_tree): Likewise.
13245         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
13246         no_warning flag before warning.
13247
13248 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13249
13250         * tree.c (set_expr_locus): Remove.
13251         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
13252         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
13253         EXPR_LOCATION.
13254         * gimplify.c (internal_get_tmp_var): Likewise.
13255         (gimplify_call_expr): Likewise.
13256         (gimplify_one_sizepos): Likewise.
13257
13258 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
13259
13260         PR debug/40666
13261         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
13262         to variables for debugging purposes.
13263
13264 2009-06-23  Mark Loeser  <mark@halcy0n.com>
13265
13266         PR build/40010
13267         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
13268
13269 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13270
13271         * pretty-print.c (pp_base_format): Remove %J.
13272         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
13273         gcc_cxxdiag_char_table): Likewise.
13274         (init_dynamic_diag_info): Likewise.
13275
13276 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13277
13278         * pretty-print.c (pp_base_format): Remove %H.
13279         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
13280         gcc_cxxdiag_char_table): Likewise.
13281         (init_dynamic_diag_info): Likewise.
13282         * config/mep/mep.c (mep_select_section): Likewise.
13283
13284 2009-07-07  Duncan Sands  <baldrick@free.fr>
13285
13286         * final.c (pass_clean_state): Give the pass a name.
13287         * passes.c (pass_rest_of_compilation): Likewise.
13288         * tree-optimize.c (pass_all_optimizations): Likewise.
13289
13290 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
13291
13292         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
13293         an extra 'decl' for error_at.
13294
13295 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
13296
13297         PR middle-end/40669
13298         * tree-tailcall.c (adjust_return_value_with_ops,
13299         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
13300         if it has complex or vector type.
13301
13302 2009-07-07  Olivier Hainque  <hainque@adacore.com>
13303
13304         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
13305         pthread symbols.
13306
13307 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
13308
13309         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
13310
13311 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13312
13313         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
13314         * c-decl.c: Likewise.
13315         * function.c: Likewise.
13316         * varasm.c: Likewise.
13317         * tree-ssa.c: Likewise.
13318         * c-common.c: Likewise.
13319         * tree-cfg.c: Likewise.
13320         * config/spu/spu.c: Likewise.
13321         * config/ia64/ia64.c: Likewise.
13322         * config/v850/v850.c: Likewise.
13323
13324 2009-07-06  DJ Delorie  <dj@redhat.com>
13325
13326         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
13327         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
13328         unspecified accesses to control registers.
13329         * config/mep/intrinsics.md: Regenerate.
13330         * config/mep/intrinsics.h: Regenerate.
13331         * config/mep/mep-intrin.h: Regenerate.
13332
13333 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13334
13335         * c-lex.c: Replace %H by an explicit location. Update all calls.
13336         * c-common.c: Likewise.
13337         * c-decl.c: Likewise.
13338         * c-typeck.c: Likewise.
13339         * fold-const.c: Likewise.
13340         * gimplify.c: Likewise.
13341         * stmt.c: Likewise.
13342         * tree-cfg.c: Likewise.
13343         * tree-ssa-loop-niter.c: Likewise.
13344         * tree-vrp.c: Likewise.
13345         * value-prof.c: Likewise.
13346
13347 2009-07-06  Diego Novillo  <dnovillo@google.com>
13348
13349         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
13350         if it has one.  Handle cases where VAR does not have an
13351         annotation or cfun is NULL.
13352
13353 2009-07-06  Diego Novillo  <dnovillo@google.com>
13354
13355         * tree.c: Include debug.h.
13356         (initialize_tree_contains_struct): New.
13357         (init_ttree): Call it.
13358         (tree_node_structure_for_code): Factor out of ...
13359         (tree_node_structure): ... here.
13360         * treestruct.def (TS_PHI_NODE): Remove.
13361         (TS_GIMPLE_STATEMENT): Remove.
13362
13363 2009-07-06  Diego Novillo  <dnovillo@google.com>
13364
13365         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
13366         (debug_tree_chain): Handle cycles.
13367
13368 2009-07-06  Nick Clifton  <nickc@redhat.com>
13369             DJ Delorie  <dj@redhat.com>
13370
13371         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
13372         __FMOVD_ENABLED__ is defined.
13373         * config/sh/sh.h
13374         (TARGET_FMOVD): Provide a default definition.
13375         (MASK_FMOVD): Likewise.
13376         (TARGET_CPU_CPP_BUILTINS): Define
13377         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
13378         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
13379         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
13380         (split for DF load from memory into register): Also handle
13381         MEMs which consist of REG+DISP addressing.
13382         (split for DF store from register to memory): Likewise.
13383         (movsf_ie): Always use single fp_mode.
13384         * config/sh/sh.c (sh_override_options): Do not automatically
13385         enable TARGET_MOVD for the SH2A when supporting doubles - leave
13386         that to the -mfmovd command line switch.
13387         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
13388         (fldi_ok): Always allow.
13389         * config/sh/sh.opt (mfmovd): Remove this switch.
13390         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
13391
13392 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
13393             Kaz Kojima  <kkojima@gcc.gnu.org>
13394
13395         PR rtl-optimization/30807
13396         * postreload.c (reload_combine): For every new use of REG_SUM,
13397         record the use of BASE.
13398
13399 2009-07-06  Jan Hubicka  <jh@suse.cz>
13400
13401         * params.def: Revert my accidental commit at 2009-06-30.
13402
13403 2009-07-04  Ian Lance Taylor  <iant@google.com>
13404
13405         PR target/40636
13406         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
13407         EXPORTED_CONST.
13408         (mingw_format_attribute_overrides): Likewise.
13409
13410 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
13411
13412         PR debug/40596
13413         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
13414         don't check cfa.reg.  Instead of cfa.indirect use
13415         fde && fde->drap_reg != INVALID_REGNUM test.
13416
13417 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
13418
13419         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
13420
13421 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
13422
13423         PR target/40587
13424         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
13425
13426 2009-07-03  Richard Guenther  <rguenther@suse.de>
13427
13428         PR tree-optimization/40640
13429         * tree-switch-conversion.c (build_arrays): Perform arithmetic
13430         in original type.
13431
13432 2009-07-03  Jan Hubicka  <jh@suse.cz>
13433
13434         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
13435         for size, reduce amount of inlining.
13436
13437 2009-07-03  Richard Guenther  <rguenther@suse.de>
13438
13439         PR middle-end/34163
13440         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
13441         if t +- x is known to not overflow and the conversion widens the
13442         operation.
13443         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
13444
13445 2009-07-03  Jan Hubicka  <jh@suse.cz>
13446
13447         * ipa-pure-const.c (analyze): Update loop optimizer init.
13448         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
13449         try_remove_empty_loop, remove_empty_loops): Remove.
13450         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
13451         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
13452         to mark regular loops as neccesary.
13453         (degenerate_phi_p): New function.
13454         (propagate_necessity, remove_dead_phis): Use it.
13455         (forward_edge_to_pdom): Likewise.
13456         (eliminate_unnecessary_stmts): Take care to remove uses of results of
13457         virtual PHI nodes that became unreachable.
13458         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
13459         * tree-flow.h (remove_empty_loops): Remove.
13460         * passes.c (init_optimization_passes): Remove.
13461
13462 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
13463
13464         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
13465         can_create_pseudo_p.
13466         (*fix_trunc<mode>_i387_1): Ditto.
13467         (*floathi<mode>2_1): Ditto.
13468         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
13469         (*fistdi2_1): Ditto.
13470         (*fist<mode>2_1): Ditto.
13471         (frndintxf2_floor): Ditto.
13472         (*fist<mode>2_floor_1): Ditto.
13473         (frndintxf2_ceil): Ditto.
13474         (*fist<mode>2_ceil_1): Ditto.
13475         (frndintxf2_trunc): Ditto.
13476         (frndintxf2_mask_pm): Ditto.
13477         (fxam<mode>2_i387_with_temp): Ditto.
13478         * config/i386/sse.md (mulv16qi3): Ditto.
13479         (*sse2_mulv4si3): Ditto.
13480         (mulv2di3): Ditto.
13481         (sse4_2_pcmpestr): Ditto.
13482         (sse4_2_pcmpistr): Ditto.
13483
13484 2009-07-03  Jan Hubicka  <jh@suse.cz>
13485
13486         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
13487         (mark_stmt_necessary): Set it.
13488         (mark_operand_necessary): Set it.
13489         (mark_control_dependent_edges_necessary): Set it.
13490         (mark_virtual_phi_result_for_renaming): New function.
13491         (get_live_post_dom): New function.
13492         (forward_edge_to_pdom): New function.
13493         (remove_dead_stmt): Fix handling of control dependences.
13494         (tree_dce_init): Init new bitmap.
13495         (tree_dce_done): Free it.
13496
13497 2009-07-02  Richard Guenther  <rguenther@suse.de>
13498
13499         PR bootstrap/40617
13500         * tree-ssa-structalias.c (new_var_info): Initialize
13501         is_restrict_var.
13502
13503 2009-07-02  Jan Hubicka  <jh@suse.cz>
13504
13505         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
13506         local.
13507
13508 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
13509
13510         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
13511         instead of recomputing it.  Adjust calls.
13512         (emit_store_flag): Adjust recursive calls.
13513
13514 2009-07-02  Richard Guenther  <rguenther@suse.de>
13515
13516         * tree-ssa-live.c (remove_unused_locals): Do not remove
13517         heap variables.
13518         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
13519         of DECL_EXTERNAL for HEAP variables.
13520         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
13521         HEAP variables.  Do not adjust RESTRICT vars.
13522         (find_what_var_points_to): Nobody cares if something
13523         points to READONLY.
13524
13525 2009-07-02  Ben Elliston  <bje@au.ibm.com>
13526
13527         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
13528         pc_low and pc_high declarations to the top of the function.
13529
13530 2009-07-01  DJ Delorie  <dj@redhat.com>
13531
13532         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
13533         registers as fixed.
13534         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
13535         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
13536         unspecified accesses to control registers.
13537         * config/mep/intrinsics.md: Regenerate.
13538         * config/mep/intrinsics.h: Regenerate.
13539         * config/mep/mep-intrin.h: Regenerate.
13540
13541 2009-07-01  Anthony Green  <green@moxielogic.com>
13542
13543         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
13544         instruction when possible.
13545         (moxie_expand_prologue): Ditto.  Also, save an instruction and
13546         some complexity by popping off of $r12 instead of $sp.
13547         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
13548         operands.
13549
13550 2009-07-01  Richard Henderson  <rth@redhat.com>
13551
13552         PR bootstrap/40347
13553         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
13554         contained no insns, reposition note before last insn.
13555
13556 2009-07-01  Richard Henderson  <rth@redhat.com>
13557
13558         PR debug/40431
13559         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
13560         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
13561
13562 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
13563
13564         PR bootstrap/40558
13565         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
13566         darwin9 for printing reg addresses with %y.
13567
13568 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
13569
13570         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
13571         truncation from operands in binary operations.
13572
13573 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
13574
13575         Revert:
13576         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
13577         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
13578         subreg of op0 to the original op0.
13579
13580         * expmed.c (store_bit_field_1): Use a temporary as the destination
13581         instead of a paradoxical subreg when we need to truncate the result.
13582
13583 2009-07-01  DJ Delorie  <dj@redhat.com>
13584
13585         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
13586         names to VLIW variants.
13587         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
13588         * config/mep/intrinsics.md: Regenerate.
13589         * config/mep/intrinsics.h: Regenerate.
13590         * config/mep/mep-intrin.h: Regenerate.
13591
13592 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
13593
13594         PR debug/40462
13595         * jump.c (returnjump_p): Revert last patch.
13596         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
13597
13598 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13599
13600         PR target/40575
13601         * pa.md (casesi32p): Use jump table label to determine the offset
13602         of the jump table.
13603         (casesi64p): Likewise.
13604
13605         * pa.c (forward_branch_p): Return bool type.  Use instruction
13606         addresses when available.  Assert that INSN has a jump label.
13607         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
13608         have a jump label.
13609
13610 2009-07-01  Richard Guenther  <rguenther@suse.de>
13611
13612         PR tree-optimization/19831
13613         * tree-ssa-dce.c (propagate_necessity): Calls to functions
13614         that only act as barriers do not make any previous stores necessary.
13615         * tree-ssa-structalias.c (handle_lhs_call): Delay making
13616         HEAP variables global, do not add a constraint from nonlocal.
13617         (find_func_aliases): Handle escapes through return statements.
13618         (compute_points_to_sets): Make escaped HEAP variables global.
13619
13620 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
13621
13622         PR bootstrap/40597
13623         * expmed.c (emit_store_flag): Perform a conversion if necessary,
13624         after reducing a DImode cstore to SImode.
13625
13626 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
13627
13628         * expr.c (expand_expr_real_1): Reinstate fallthrough to
13629         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
13630
13631 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
13632
13633         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
13634         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
13635         to 0.
13636         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
13637         and umod_optab if TARGET_BSD_DIVMOD.
13638         * config/vax/lib1funcs.asm: New file.
13639         * config/vax/t-linux: New file.
13640         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
13641
13642 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
13643
13644         PR c++/40566
13645         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
13646         to type arguments that have void type.
13647
13648         PR debug/40573
13649         * dwarf2out.c (gen_formal_parameter_die): Call
13650         equate_decl_number_to_die if node is different from origin.
13651
13652 2009-06-30  Anthony Green  <green@moxielogic.com>
13653
13654         Clean up moxie port for --enable-build-with-cxx.
13655         * config/moxie/moxie.c (moxie_function_value): First two
13656         parameters are const_tree, not tree.
13657         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
13658         (REG_CLASS_NAMES): Ditto.
13659         (REGNO_REG_CLASS): Ditto.
13660         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
13661         (moxie_function_value): Fix constyness of arguments.
13662
13663 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
13664
13665         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
13666         finalize_size_functions before further processing.
13667         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
13668         (variable_size): Call self_referential_size on size expressions
13669         that contain a PLACEHOLDER_EXPR.
13670         (size_functions): New static variable.
13671         (copy_self_referential_tree_r): New static function.
13672         (self_referential_size): Likewise.
13673         (finalize_size_functions): New global function.
13674         * tree.c: Include tree-inline.h.
13675         (push_without_duplicates): New static function.
13676         (find_placeholder_in_expr): New global function.
13677         (substitute_in_expr) <tcc_declaration>: Return the replacement object
13678         on equality.
13679         <tcc_expression>: Likewise.
13680         <tcc_vl_exp>: If the replacement object is a constant, try to inline
13681         the call in the expression.
13682         * tree.h (finalize_size_functions): Declare.
13683         (find_placeholder_in_expr): Likewise.
13684         (FIND_PLACEHOLDER_IN_EXPR): New macro.
13685         (substitute_placeholder_in_expr): Update comment.
13686         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
13687         is true.
13688         (copy_tree_body_r): Likewise.
13689         (copy_tree_body): New static function.
13690         (maybe_inline_call_in_expr): New global function.
13691         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
13692         (maybe_inline_call_in_expr): Declare.
13693         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
13694         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
13695         GIMPLE_H.
13696
13697 2009-06-30  Richard Guenther  <rguenther@suse.de>
13698
13699         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
13700         continue walking.
13701         (propagate_necessity): Do not mark reaching defs of stores
13702         as necessary.
13703
13704 2009-06-30  Jan Hubicka  <jh@suse.cz>
13705
13706         * cfgloopanal.c (check_irred): Move into ...
13707         (mark_irreducible_loops): ... here; return true if ireducible
13708         loops was found.
13709         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
13710         (analyze_function): Try to prove loop finiteness.
13711         * cfgloop.h (mark_irreducible_loops): Update prototype.
13712         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
13713
13714 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
13715
13716         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
13717
13718 2009-06-30  Ira Rosen  <irar@il.ibm.com>
13719
13720         PR tree-optimization/40542
13721         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
13722         types.
13723
13724 2009-06-30  Martin Jambor  <mjambor@suse.cz>
13725
13726         PR tree-optimization/40582
13727         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
13728         than useless_type_conversion_p.
13729         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
13730         proper place.
13731
13732 2009-06-30  Martin Jambor  <mjambor@suse.cz>
13733
13734         PR middle-end/40554
13735         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
13736
13737 2009-06-30  Richard Guenther  <rguenther@suse.de>
13738
13739         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
13740         use ao_ref references.
13741         (walk_aliased_vdefs): Likewise.
13742         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
13743         * tree-ssa-dce.c (struct ref_data): Remove.
13744         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
13745         (mark_aliased_reaching_defs_necessary): Adjust.
13746         (mark_all_reaching_defs_necessary_1): Likewise.
13747
13748 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
13749
13750         PR boostrap/40597
13751         * expmed.c (emit_cstore): New name of emit_store_flag_1.
13752         (emit_store_flag_1): Extract from emit_store_flag, adjust
13753         calls to (what now is) emit_cstore.
13754         (emit_store_flag): Call emit_store_flag_1 and also use it
13755         for what used to be recursive calls.
13756
13757 2009-06-30  Wei Guozhi  <carrot@google.com>
13758
13759         PR/40416
13760         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
13761         if the target bb post dominates from bb.
13762         * config/i386/i386.c (memory_address_length): Check existence of base
13763         register before using it.
13764
13765 2009-06-30  Nick Clifton  <nickc@redhat.com>
13766             DJ Delorie  <dj@redhat.com>
13767
13768         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
13769         __FMOVD_ENABLED__ is defined.
13770         * config/sh/sh.h
13771         (TARGET_FMOVD): Provide a default definition.
13772         (MASK_FMOVD): Likewise.
13773         (TARGET_CPU_CPP_BUILTINS): Define
13774         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
13775         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
13776         two fmov instructions depending upon whether TARGET_FMOVD is
13777         enabled.
13778         (split for DF load from memory into register): Also handle
13779         MEMs which consist of REG+DISP addressing.
13780         (split for DF store from register to memory): Likewise.
13781         * config/sh/sh.opt (mfmovd): Remove this switch.
13782         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
13783         * config/sh/sh.c (sh_override_options): Do not automatically
13784         enable TARGET_MOVD for the SH2A when supporting doubles - leave
13785         that to the -mfmovd command line switch.
13786
13787         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
13788         the SH4 and SH4A.
13789         (fldi_ok): Always allow.
13790         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
13791
13792 2009-06-29  DJ Delorie  <dj@redhat.com>
13793
13794         * doc/install.texi (mep-x-elf): Correct chip's full name.
13795
13796 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
13797
13798         * doc/extend.texi: Fix typo.
13799
13800 2009-06-29  Tom Tromey  <tromey@redhat.com>
13801
13802         * dwarf2.h: Remove.
13803         * Makefile.in (DWARF2_H): New variable.
13804         (except.o): Use it.
13805         (dwarf2out.o): Likewise.
13806         (dwarf2asm.o): Likewise.
13807         * config/i386/t-i386: Use DWARF2_H.
13808         * except.c: Include elf/dwarf2.h.
13809         * unwind-dw2.c: Include elf/dwarf2.h.
13810         * dwarf2out.c: Include elf/dwarf2.h.
13811         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
13812         <dtprel>: New field.
13813         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
13814         (size_of_loc_descr): Likewise.
13815         (output_loc_operands_raw): Likewise.
13816         (output_loc_operands): Handle new dtprel field.
13817         (loc_checksum): Update.
13818         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
13819         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
13820         * unwind-dw2-fde.c: Include elf/dwarf2.h.
13821         * dwarf2asm.c: Include elf/dwarf2.h.
13822         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
13823         * config/mmix/mmix.c: Include elf/dwarf2.h.
13824         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
13825         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
13826         * config/sh/sh.c: Include elf/dwarf2.h.
13827         * config/i386/i386.c: Include elf/dwarf2.h.
13828
13829 2009-06-29  DJ Delorie  <dj@redhat.com>
13830
13831         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
13832
13833         * doc/extend.texi: Add MeP attributes and pragmas.
13834         * doc/invoke.text: Add MeP Options.
13835         * doc/contrib.texi: Add MeP contribution.
13836         * doc/md.texi: Add MeP constraints.
13837         * doc/install.texi: Add MeP target.
13838
13839 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
13840
13841         * target.h (struct gcc_target): Add frame_pointer_required field.
13842         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
13843         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
13844         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
13845         hook.
13846         * reload1.c (update_eliminables): (Ditto.).
13847         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
13848         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
13849         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
13850
13851         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
13852
13853         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
13854         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13855         (arm_frame_pointer_required): New function.
13856
13857         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
13858         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13859         (avr_frame_pointer_required_p): Declare as static.
13860         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
13861
13862         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
13863         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13864         (bfin_frame_pointer_required): Make as static, change return type
13865         to bool.
13866         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
13867
13868         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
13869         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13870         (cris_frame_pointer_required): New function.
13871
13872         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
13873
13874         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
13875         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13876         (fr30_frame_pointer_required): New function.
13877
13878         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
13879         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13880         (frv_frame_pointer_required): Make as static, change return type
13881         to bool.
13882         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
13883
13884         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
13885         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13886         (ix86_frame_pointer_required): Make as static, change return type to
13887         bool.
13888         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
13889
13890         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
13891         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13892
13893         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
13894
13895         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
13896
13897         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
13898
13899         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
13900         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13901         (mips_frame_pointer_required): Make as static.
13902         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
13903
13904         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
13905         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13906         (mmix_frame_pointer_required): Mew function.
13907
13908         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
13909         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13910
13911         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
13912
13913         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
13914
13915         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
13916
13917         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
13918         (CAN_ELIMINATE): Redefine.
13919         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13920         (sparc_frame_pointer_required): New function.
13921         (sparc_can_eliminate): New function.
13922         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
13923
13924         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
13925         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13926
13927         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
13928         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13929         (xtensa_frame_pointer_required): Make as static, change return type
13930         to bool.
13931         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
13932         Remove.
13933
13934 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
13935
13936         * doc/plugins.texi: Document PLUGIN_START_UNIT.
13937         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
13938         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
13939         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
13940         (register_callback): Handle PLUGIN_START_UNIT.
13941         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
13942
13943 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
13944
13945         * tree.c (process_call_operands): Propagate TREE_READONLY from the
13946         operands.
13947         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
13948         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
13949
13950 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
13951
13952         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
13953         move cost.
13954
13955 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
13956
13957         * doc/extend.texi (Additional Floating Types): __float128 is also
13958         supported on i386 targets.
13959
13960 2009-06-29  Richard Guenther  <rguenther@suse.de>
13961
13962         PR middle-end/14187
13963         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
13964         flag.
13965         (pt_solutions_same_restrict_base): Declare.
13966         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
13967         flag.
13968         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
13969         (make_constraint_from, make_copy_constraint): Move earlier.
13970         (make_constraint_from_heapvar): New function.
13971         (make_constraint_from_restrict): Likewise.
13972         (handle_lhs_call): Use it.
13973         (find_func_aliases): Use it to track conversions to restrict
13974         qualified pointers.
13975         (struct fieldoff): Add only_restrict_pointers flag.
13976         (push_fields_onto_fieldstack): Initialize it.
13977         (create_variable_info_for): Track global restrict qualified pointers.
13978         (intra_create_variable_infos): Use make_constraint_from_heapvar.
13979         Track restrict qualified pointer arguments.
13980         (set_uids_in_ptset): Use varinfo is_global_var flag.
13981         (find_what_var_points_to): Set the vars_contains_restrict flag.
13982         Always create the points-to solution for sets including restrict tags.
13983         (pt_solutions_same_restrict_base): New function.
13984         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
13985         qualified pointers use pt_solutions_same_restrict_base as
13986         additional source for disambiguation.
13987
13988 2009-06-29  Richard Guenther  <rguenther@suse.de>
13989
13990         PR middle-end/38212
13991         * alias.c (find_base_decl): Remove.
13992         (get_deref_alias_set_1): Remove restrict handling.
13993         * c-common.c (c_apply_type_quals_to_decl): Do not set
13994         DECL_POINTER_ALIAS_SET.
13995         * gimplify.c (find_single_pointer_decl_1): Remove.
13996         (find_single_pointer_decl): Likewise.
13997         (internal_get_tmp_var): Remove restrict handling.
13998         (gimple_regimplify_operands): Likewise.
13999         * omp-low.c (expand_omp_atomic_pipeline): Do not set
14000         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
14001         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
14002         * tree.c (restrict_base_for_decl): Remove.
14003         (init_ttree): Do not allocate it.
14004         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
14005         LABEL_DECL_UID for label decls.
14006         (copy_node_stat): Do not copy restrict information.
14007         (decl_restrict_base_lookup): Remove.
14008         (decl_restrict_base_insert): Likewise.
14009         (print_restrict_base_statistics): Likewise.
14010         (dump_tree_statistics): Do not call print_restrict_base_statistics.
14011         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
14012         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
14013         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
14014         (LABEL_DECL_UID): Adjust.
14015         (DECL_BASED_ON_RESTRICT_P): Remove.
14016         (DECL_GET_RESTRICT_BASE): Likewise.
14017         (SET_DECL_RESTRICT_BASE): Likewise.
14018         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
14019
14020         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
14021         instead of DECL_POINTER_ALIAS_SET.
14022         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
14023         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
14024         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
14025
14026 2009-06-29  Richard Guenther  <rguenther@suse.de>
14027
14028         PR tree-optimization/40579
14029         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
14030         the IL to simplify has constants that overflowed.
14031
14032 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
14033
14034         PR tree-optimization/40550
14035         * tree-vect-generic.c (expand_vector_operations_1): Compute in
14036         vector_compute_type only when the size of vector_compute_type is
14037         less than the size of type.
14038
14039 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
14040
14041         * fold-const.c (contains_label_1): Fix comments.
14042         (contains_label_p): Do not walk trees multiple time.
14043
14044 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
14045
14046         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
14047         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
14048         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
14049         ix86_fp_comparison_operator.
14050         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
14051         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
14052         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
14053         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
14054         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
14055         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
14056         (related splits): Change predicate to ix86_fp_comparison_operator.
14057         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
14058         instead of ix86_fp_comparison_codes.
14059         (ix86_trivial_fp_comparison_operator,
14060         ix86_fp_comparison_operator): New.
14061         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
14062         (ix86_expand_compare): Eliminate last two parameters.
14063         (ix86_fp_jump_nontrivial_p): Kill.
14064         * config/i386/i386.c (put_condition_code): Eliminate call to
14065         ix86_fp_comparison_codes and subsequent assertion.
14066         (ix86_fp_comparison_codes): Eliminate.
14067         (ix86_fp_swap_condition): New.
14068         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
14069         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
14070         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
14071         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
14072         and ix86_fp_swap_condition.
14073         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
14074         Use ix86_fp_comparison_strategy.
14075         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
14076         (ix86_fp_jump_nontrivial_p): Eliminate.
14077         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
14078         call to ix86_expand_compare.
14079         (ix86_split_fp_branch, ix86_expand_setcc,
14080         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
14081         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
14082
14083 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
14084
14085         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
14086         related to jump_clobbers.
14087         * config/arm/arm.md (conds): Remove jump_clob case.
14088         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
14089         splits): Change comparison_operator to arm_comparison_operator.
14090         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
14091         Eliminate.
14092
14093 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
14094
14095         * dojump.c (do_compare_rtx_and_jump): Try swapping the
14096         condition for floating point modes.
14097         * expmed.c (emit_store_flag_1): Move here a bigger part
14098         of emit_store_flag.
14099         (emit_store_flag): Try swapping the condition for floating point
14100         modes.
14101         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
14102
14103 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
14104
14105         * expr.c (expand_expr_real_1): Just use do_store_flag.
14106         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
14107         emit_store_flag_force.
14108         * expmed.c (emit_store_flag_force): Copy here trick
14109         previously in expand_expr_real_1.  Try reversing the comparison.
14110         (emit_store_flag_1): Work if target is NULL.
14111         (emit_store_flag): Work if target is NULL, using the result mode
14112         from the comparison.  Use split_comparison, restructure final part
14113         to simplify conditionals.
14114
14115 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
14116
14117         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
14118         * dojump.c (do_jump): Change handling of floating-point
14119         ops to use just do_compare_and_jump.
14120         (split_comparison): New.
14121         (do_compare_rtx_and_jump): Add here logic coming previously
14122         in do_jump, using split_comparison.
14123
14124 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
14125
14126         PR target/40489
14127         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
14128
14129 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
14130
14131         * tree-ssa-alias.c: Fix unintentional commit.
14132
14133 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
14134
14135         * passes.c (execute_one_pass): Fix unintentional commit.
14136
14137 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
14138
14139         * df-problems.c (df_set_seen, df_unset_seen): Delete.
14140         (df_rd_local_compute, df_md_local_compute): Inline them.
14141
14142         (df_md_scratch): New.
14143         (df_md_alloc, df_md_free): Allocate/free it.
14144         (df_md_local_compute): Only include live registers in init.
14145         (df_md_transfer_function): Prune the in-set computed by
14146         the confluence function, and the gen-set too.
14147
14148 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
14149
14150         PR rtl-optimization/26854
14151         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
14152         * df-problems.c (df_rd_add_problem): Fix comment.
14153         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
14154         df_md_simulate_artificial_defs_at_top,
14155         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
14156         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
14157         df_md_transfer_function, df_md_init, df_md_confluence_0,
14158         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
14159         problem_MD, df_md_add_problem): New.
14160         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
14161         df_md_get_bb_info): New.
14162         (DF_LAST_PROBLEM_PLUS1): Adjust.
14163
14164         * Makefile.in (fwprop.o): Include domwalk.h.
14165         * fwprop.c: Include domwalk.h.
14166         (reg_defs, reg_defs_stack): New.
14167         (bitmap_only_bit_between): Remove.
14168         (process_defs): New.
14169         (process_uses): Use reg_defs and local_md instead of
14170         bitmap_only_bit_between and local_rd.
14171         (single_def_use_enter_block): New, from build_single_def_use_links.
14172         (single_def_use_leave_block): New.
14173         (build_single_def_use_links): Remove code moved to
14174         single_def_use_enter_block, invoke domwalk.
14175         (use_killed_between): Adjust comment.
14176
14177 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
14178
14179         * bitmap.h (bitmap_ior_and_into): New.
14180         * bitmap.c (bitmap_ior_and_into): New.
14181
14182 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
14183
14184         * domwalk.h (struct dom_walk_data): Remove all callbacks except
14185         before_dom_children_before_stmts and after_dom_children_after_stmts.
14186         Rename the two remaining callbacks to just before_dom_children and
14187         after_dom_children. Remove other GIMPLE statement walking bits.
14188         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
14189         * graphite.c: Do not include domwalk.h.
14190         * tree-into-ssa.c (interesting_blocks): New global.
14191         (struct mark_def_sites_global_data): Remove it and names_to_rename.
14192         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
14193         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
14194         now that they're not domwalk callbacks.
14195         (rewrite_initialize_block): Rename to...
14196         (rewrite_enter_block): ... this, place after called functions.  Test
14197         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
14198         (rewrite_finalize_block): Rename to...
14199         (rewrite_leave_block): ... this, place after called functions.
14200         (rewrite_update_init_block): Rename to...
14201         (rewrite_update_enter_block): ... this, place after called functions.
14202         Test interesting_blocks, call rewrite_update_stmt and
14203         rewrite_update_phi_arguments.
14204         (rewrite_update_fini_block): Rename to...
14205         (rewrite_leave_block): ... this, place after called functions.
14206         (rewrite_blocks): Remove last argument, simplify initialization of
14207         walk_data.
14208         (mark_def_sites_initialize_block): Rename to...
14209         (mark_def_sites_block): ... this, call mark_def_sites.
14210         (mark_def_sites_blocks): Remove argument, simplify initialization of
14211         walk_data.
14212         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
14213         (update_ssa): Likewise.
14214         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
14215         callback.
14216         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
14217         (dom_opt_initialize_block): Rename to...
14218         (dom_opt_enter_block): ... this, place after called functions.  Walk
14219         statements here, inline propagate_to_outgoing_edges.
14220         (dom_opt_finalize_block): Rename to...
14221         (dom_opt_leave_block): ... this, place after called functions.
14222         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
14223         domwalk callback.
14224         (dse_enter_block, dse_record_phi): New.
14225         (dse_record_phis): Delete.
14226         (dse_finalize_block): Rename to...
14227         (dse_leave_block): ... this.
14228         (tree_ssa_dse): Simplify initialization of walk_data.
14229         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
14230         Adjust initialization of walk_data.
14231         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
14232         * tree-ssa-loop-phiopt.c (get_non_trapping):
14233         Adjust initialization of walk_data.
14234         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
14235         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
14236         it's not a domwalk callback.
14237         (uncprop_initialize_block): Rename to...
14238         (dse_enter_block): ... this, call uncprop_into_successor_phis.
14239         (dse_finalize_block): Rename to...
14240         (dse_leave_block): ... this.
14241         (tree_ssa_uncprop): Simplify initialization of walk_data.
14242         * Makefile.in: Adjust dependencies.
14243
14244 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
14245
14246         * arm.md (casesi): Fix test for Thumb1.
14247         (thumb1_casesi_internal_pic): Likewise.
14248         (thumb1_casesi_dispatch): Likewise.
14249
14250 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
14251
14252         * config/arm/arm-cores.def: Added core cortex-m0.
14253         * config/arm/arm-tune.md: Regenerated.
14254         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
14255
14256 2009-06-26  DJ Delorie  <dj@redhat.com>
14257
14258         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
14259
14260         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
14261         the scheduler doesn't tag jump insns.
14262
14263 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
14264
14265         * c-decl.c (merge_decls): Re-indent.
14266
14267 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
14268
14269         PR c/39902
14270         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
14271         Special-case decimal float constants.
14272
14273 2009-06-26  Richard Henderson  <rth@redhat.com>
14274
14275         * function.h (struct function): Add cannot_be_copied_reason,
14276         and cannot_be_copied_set.
14277         * tree-inline.c (has_label_address_in_static_1): Rename from
14278         inline_forbidden_p_2; don't set inline_forbidden_reason here.
14279         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
14280         don't set inline_forbidden_reason.
14281         (copy_forbidden): New function, split out of inline_forbidden_p.
14282         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
14283         (inline_forbidden_p): Use copy_forbidden.
14284         (tree_versionable_function_p): Likewise.
14285         (inlinable_function_p): Merge into tree_inlinable_function_p.
14286         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
14287         * ipa-cp.c (ipcp_versionable_function_p): New function.
14288         (ipcp_cloning_candidate_p): Use it.
14289         (ipcp_node_modifiable_p): Likewise.
14290
14291 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
14292
14293         * builtins.c (expand_builtin_alloca): Handle builtin alloca
14294         that is marked not to be inlined. Remove flag_mudflap use.
14295         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
14296         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
14297
14298 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
14299
14300         PR bootstrap/40338
14301         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
14302         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
14303
14304 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
14305
14306         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
14307         shared libgcc.
14308         (__mingwthr_remove_key_dtor): Likewise.
14309
14310 2009-06-26  Richard Guenther  <rguenther@suse.de>
14311
14312         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
14313
14314 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
14315
14316         PR middle-end/40525
14317         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
14318         try the non-cond_exec path also.
14319
14320 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14321
14322         PR target/40468
14323         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
14324         (output_cbranch): Use new functions.
14325         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
14326         Likewise.
14327
14328 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
14329             Pat Haugen  <pthaugen@us.ibm.com>
14330             Revital Eres <ERES@il.ibm.com>
14331
14332         * config/rs6000/rs6000.c (print_operand): Correct lossage message
14333         for %c error.  Add %x support to print VSX registers as a unified
14334         register set, instead of separate float and altivec registers.
14335         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
14336         %y case, and add support for VSX pre-modify addresses.
14337         (output_toc): Add assert for CONST containing an integer constant
14338         in the PLUS case.
14339         (rs6000_adjust_cost): Add POWER7 support.
14340         (insn_must_be_first_in_group): Ditto.
14341         (insn_must_be_last_in_group): Ditto.
14342         (rs6000_emit_popcount): Ditto.
14343         (rs6000_vector_mode_supported_p): Ditto.
14344
14345         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
14346         Change some of the functions called by macros to being called
14347         through a pointer, so debug functions can be inserted if
14348         -mdebug=addr or -mdebug=cost.
14349         (rs6000_preferred_reload_class_ptr): Ditto.
14350         (rs6000_secondary_reload_class_ptr): Ditto.
14351         (rs6000_secondary_memory_needed_ptr): Ditto.
14352         (rs6000_cannot_change_mode_class_ptr): Ditto.
14353         (rs6000_secondary_reload_inner): Ditto.
14354         (rs6000_legitimize_reload_address): Ditto.
14355         (rs6000_legitimize_reload_address_ptr): Ditto.
14356         (rs6000_mode_dependent_address): Ditto.
14357         (rs6000_mode_dependent_address_ptr): Ditto.
14358
14359         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
14360         function to return true if the mode allows reg + integer
14361         addresses.
14362         (virtual_stack_registers_memory_p): New function to return true if
14363         the address refers to a virtual stack register.
14364         (rs6000_legitimate_offset_address_p): Move code to say whether a
14365         mode supports reg+int addressing to reg_offset_addressing_ok_p and
14366         call it.
14367         (rs6000_legitimate_address_p): Add checks for modes that only can
14368         do reg+reg addressing.  Start adding VSX support.
14369         (rs6000_legitimize_reload_address): Ditto.
14370         (rs6000_legitimize_address): Ditto.
14371         (rs6000_debug_legitimate_address_p): New debug functions for
14372         -mdebug=addr and -mdebug=cost.
14373         (rs6000_debug_rtx_costs): Ditto.
14374         (rs6000_debug_address_costs): Ditto.
14375         (rs6000_debug_adjust_cost): Ditto.
14376         (rs6000_debug_legitimize_address): Ditto.
14377         (rs6000_legitimize_reload_address_ptr): Point to call normal
14378         function or debug function.  Make functions called via pointer
14379         static.
14380         (rs6000_mode_dependent_address_ptr): Ditto.
14381         (rs6000_secondary_reload_class_ptr): Ditto.
14382         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
14383         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
14384         into a friendlier error.
14385         (rs6000_init_builtins): Add initial VSX support.
14386         (rs6000_adjust_cost): Fix some spacing issues.
14387
14388         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
14389         (REG_CLASS_NAMES): Ditto.
14390         (REG_CLASS_CONTENTS): Ditto.
14391         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
14392         pointer, to add -mdebug=addr support.
14393         (CANNOT_CHANGE_MODE_CLASS): Ditto.
14394         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
14395         -mdebug=addr support.
14396         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
14397         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
14398         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
14399
14400         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
14401         16-bit values.
14402         (bswapsi*): Set attribute types for load/store.  Add combiner
14403         patterns to eliminate zero extend on 64-bit.
14404         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
14405         stdbrx if the hardware supports those instructions.
14406
14407 2009-06-25  Ian Lance Taylor  <iant@google.com>
14408
14409         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
14410         (Link Options): Document -static-libstdc++.
14411
14412 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14413
14414         PR target/38731
14415         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
14416         DATA_ALIGNMENT instead.
14417
14418 2009-06-25  Richard Guenther  <rguenther@suse.de>
14419
14420         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
14421         indirect references against the callused/escaped solutions.
14422         (call_may_clobber_ref_p_1): Likewise.
14423
14424 2009-06-25  Martin Jambor  <mjambor@suse.cz>
14425
14426         PR tree-optimization/40493
14427         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
14428         (enum unscalarized_data_handling): New type.
14429         (handle_unscalarized_data_in_subtree): Return what has been done.
14430         (load_assign_lhs_subreplacements): Handle left flushes differently.
14431         (sra_modify_assign): Use unscalarized_data_handling, simplified
14432         condition determining whether to remove the statement.
14433
14434 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
14435
14436         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
14437         excerpt - @ should be doubled for texinfo.
14438
14439 2009-06-24  Ian Lance Taylor  <iant@google.com>
14440
14441         * config/arc/arc.c: Include "df.h".
14442         (arc_attribute_table): Make static.  Move higher in file.
14443         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
14444         (output_shift): Initialize n later to avoid warning.
14445         * config/arm/arm.c (arm_attribute_table): Make static.  Move
14446         higher in file.
14447         * config/avr/avr.c (avr_attribute_table): Make static.  Move
14448         higher in file.
14449         (reg_class_tab): Change array type from int to enum reg_class.
14450         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
14451         LABEL_REF.
14452         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
14453         (lshrhi3_out): Likewise.
14454         (class_likely_spilled_p): Change return type to bool.
14455         (avr_rtx_costs): Use local code variable with enum type.
14456         * config/avr/avr.md (movmemhi): Use add_reg_note.
14457         (andhi3, andsi3): Don't use AS2 with "and".
14458         (iorhi3, iorsi3): Don't use AS2 with "or".
14459         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
14460         * config/crx/crx.c: Include "df.h".
14461         (crx_attribute_table): Make static.
14462         * config/m32r/m32r.c: Include "df.h".
14463         (m32r_attribute_table): Make static.  Move higher in file.
14464         (pop): Use add_reg_note.
14465         (block_move_call): Change 0 to LCT_NORMAL in function call.
14466         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
14467         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
14468         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
14469         declare, not just when TREE_CODE is defined.
14470         * config/m68hc11/m68hc11.c: Include "expr.h".
14471         (m68hc11_attribute_table): Make static.  Move higher in file.
14472         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
14473         function call.
14474         (m68hc11_register_indirect_p): Likewise.
14475         (m68hc11_function_arg_padding): Change return type to enum
14476         direction.
14477         (emit_move_after_reload): Use add_reg_note.
14478         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
14479         (m68hc11_split_logical): Likewise.
14480         (m68hc11_rtx_costs): Add local code_and outer_code variables with
14481         enum type.
14482         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
14483         to VOIDmode in function call.
14484         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
14485         tree is defined.
14486         (m68hc11_split_logical): Update declaration.
14487         (m68hc11_function_arg_padding): Update declaration.
14488         * config/mcore/mcore.c (regno_reg_class): Change form array of int
14489         to array of enum reg_class.
14490         (mcore_attribute_table): Make static.  Move higher in file.
14491         (mcore_rtx_costs): Add cast to enum type.
14492         * config/mcore/mcore.h (regno_reg_class): Update declaration.
14493         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
14494         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
14495         in file.
14496         * config/sh/predicates.md (trapping_target_operand): Rename and to
14497         and_expr.
14498         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
14499         higher in file.
14500         * config/spu/spu.c (spu_attribute_table): Make static.  Move
14501         higher in file.
14502         * config/v850/v850.c (v850_attribute_table): Make static.  Move
14503         higher in file.
14504         (v850_rtx_costs): Use local code with enum type.
14505         (expand_epilogue): Add cast.
14506         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
14507
14508 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
14509
14510         PR target/40515
14511         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
14512         -m2a-single-only and -m2a-nofpu.
14513         * config/sh/sh.opt: Document m2a generates FPU code.
14514
14515 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
14516
14517         * defaults.h (CAN_ELIMINATE): Provide default.
14518         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
14519         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
14520         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
14521         * config/spu/spu.h (CAN_ELIMINATE): Delete.
14522         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
14523         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
14524         * config/cris/cris.h (CAN_ELIMINATE): Delete.
14525         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
14526         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
14527         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
14528
14529 2009-06-24  DJ Delorie  <dj@redhat.com>
14530
14531         * mep-ext-cop.cpu: Fix copyright notice.
14532         * mep-default: Fix copyright notice.
14533         * mep-core: Fix copyright notice.
14534         * mep: Fix copyright notice.
14535         * mep-ivc2: Fix copyright notice.
14536         * mep-c5: Fix copyright notice.
14537
14538 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
14539
14540         * doc/contrib.texi (Contributors):
14541
14542 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
14543
14544         PR middle-end/40501
14545         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
14546         src and dst operands if necessary.
14547
14548 2009-06-23  DJ Delorie  <dj@redhat.com>
14549
14550         Add MeP port.
14551         * config.gcc: Add mep support.
14552         * recog.c: Resurrect validate_replace_rtx_subexp().
14553         * recog.h: Likewise.
14554         * config/mep/: Add new port:
14555         * config/mep/constraints.md: New file.
14556         * config/mep/default.h: New file.
14557         * config/mep/intrinsics.h: New file.
14558         * config/mep/intrinsics.md: New file.
14559         * config/mep/ivc2-template.h: New file.
14560         * config/mep/mep-c5.cpu: New file.
14561         * config/mep/mep-core.cpu: New file.
14562         * config/mep/mep-default.cpu: New file.
14563         * config/mep/mep-ext-cop.cpu: New file.
14564         * config/mep/mep-intrin.h: New file.
14565         * config/mep/mep-ivc2.cpu: New file.
14566         * config/mep/mep-lib1.asm: New file.
14567         * config/mep/mep-lib2.c: New file.
14568         * config/mep/mep-pragma.c: New file.
14569         * config/mep/mep-protos.h: New file.
14570         * config/mep/mep-tramp.c: New file.
14571         * config/mep/mep.c: New file.
14572         * config/mep/mep.cpu: New file.
14573         * config/mep/mep.h: New file.
14574         * config/mep/mep.md: New file.
14575         * config/mep/mep.opt: New file.
14576         * config/mep/predicates.md: New file.
14577         * config/mep/t-mep: New file.
14578
14579 2009-06-23  Ian Lance Taylor  <iant@google.com>
14580
14581         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
14582         from loose_warn into c_loose_warn and from strict_warn into
14583         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
14584         --enable-build-with-cxx.  Set and substitute
14585         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
14586         * Makefile.in (CXXFLAGS): New variable.
14587         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
14588         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
14589         the default is the same as $(STRICT_WARN).
14590         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
14591         (CXX): New variable.
14592         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
14593         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
14594         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
14595         (HOST_LIBS): New variable.
14596         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
14597         (ALL_CXXFLAGS): New variable.
14598         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
14599         * doc/install.texi (Configuration): Document
14600         --enable-build-with-cxx, --with-stage1-ldflags,
14601         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
14602         * configure: Rebuild.
14603
14604 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14605
14606         * config/arm/arm.c (arm_override_options): Fix braces and formatting
14607         from previous commit.
14608
14609 2009-06-23  Ian Lance Taylor  <iant@google.com>
14610
14611         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
14612
14613 2009-06-23  Ian Lance Taylor  <iant@google.com>
14614
14615         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
14616         with ATTRIBUTE_UNUSED.
14617
14618 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
14619             Pat Haugen  <pthaugen@us.ibm.com>
14620             Revital Eres  <eres@il.ibm.com>
14621
14622         * config.in (HAVE_AS_POPCNTD): Add default definition.
14623         (HAVE_AS_LWSYNC): Ditto.
14624
14625         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
14626         release number.
14627         (gcc_cv_as_powerpc_cmpb): Ditto.
14628         (gcc_cv_as_powerpc_dfp): Ditto.
14629         (gcc_cv_as_powerpc_vsx): Ditto.
14630         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
14631         supporting the popcntd/lwsync instructions.
14632         (gcc_cv_as_powerpc_lwsync): Ditto.
14633         * configure: Regenerate.
14634
14635         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
14636         -mcpu=native and -mcpu=power7.
14637         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
14638
14639         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
14640         a variable instead of a mask to reduce the number of mask bits.
14641         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
14642         (-mbit-word): Ditto.
14643         (-mregnames): Ditto.
14644         * config/rs6000/rs6000.opt (-mupdate): Ditto.
14645         (-mfused-madd): Ditto.
14646
14647         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
14648         2.06 instructions.
14649         (-mvsx): New switch for VSX instructions.
14650         (-misel): Move from a variable to a mask to allow it to be set by
14651         -mcpu=.
14652
14653         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
14654         function declaration to an array declaration.
14655         (rs6000_hard_regno_nregs): New external array declaration.
14656
14657         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
14658         files included by rs6000.md.
14659
14660         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14661         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
14662
14663         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
14664         a target mask.
14665         (rs6000_debug_reg): New -mdebug= variables.
14666         (rs6000_debug_addr): Ditto.
14667         (rs6000_debug_cost): Ditto.
14668         (rs6000_pmode): New variable to hold Pmode.
14669         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
14670         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
14671         calculated at compiler start.
14672         (rs6000_hard_regno_nregs): Change function to an array which holds
14673         HARD_REGNO_NREGS calculated at compiler start.
14674         (rs6000_explicit_options): Delete isel field.
14675         (rs6000_vector_unit): New array to hold which vector unit
14676         supports arithmetic options for a given type.
14677         (rs6000_vector_mem): New array to hold which vector unit supports
14678         memory reference operations for a given type.
14679         (rs6000_vector_align): New array to given the alignment of each
14680         vector type.
14681         (power7_cost): New basic costs for power7.
14682         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
14683         (rs6000_hard_regno_nregs_internal): New function, moved from
14684         HARD_REGNO_NREGS, to calculate the number of registers each hard
14685         register takes for each type.
14686         (rs6000_debug_reg_print): New function for -mdebug=reg support.
14687         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
14688         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
14689         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
14690         unit information here so it is calculated once at compiler startup
14691         time.
14692         (rs6000_override_options): Make -misel a target mask.  Add more
14693         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
14694         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
14695         -mdebug=cost.
14696         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
14697         (rs6000_handle_option): Move -misel from variable to target mask.
14698         (rs6000_builtin_mask_for_load): Add VSX support.
14699         (rs6000_conditional_register_usage): Ditto.
14700         (USE_ALTIVEC_FOR_ARG_P): Ditto.
14701         (function_arg_boundary): Ditto.
14702         (rs6000_expand_builtin): Ditto.
14703         (def_builtin): Make abort message a little friendlier.
14704         (rs6000_emit_int_cmove): Add support for 64-bit isel.
14705
14706         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
14707         assembler support the popcntd instruction instead of a vsx
14708         instruction to enable power7 support.
14709         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
14710         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
14711         option to the assembler if -mcpu=native.
14712         (ASM_CPU_NATIVE_SPEC): Ditto.
14713         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
14714         ISA 2.06 features.
14715         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
14716         the lwsync instruction.
14717         (enum processor_type): Add PROCESSOR_POWER7.
14718         (rs6000_debug_reg): New -mdebug= options.
14719         (rs6000_debug_addr): Ditto.
14720         (rs6000_debug_cost): Ditto.
14721         (rs6000_isel): Delete.
14722         (enum rs6000_vector): New enum to say what vector unit we have.
14723         (VECTOR_UNIT_*): New macros to say which vector unit has
14724         arithmetic operations for a given type.
14725         (VECTOR_MEM_*): New macros to say which vector unit has memory
14726         operations for a given type.
14727         (TARGET_LDBRX): Whether the machine supports the ldbrx
14728         instruction.
14729         (TARGET_ISEL): Delete, -misel moved to be a mask.
14730         (TARGET_ISEL64): New macro for 64-bit isel support.
14731         (UNITS_PER_VSX_WORD): New macro.
14732         (POINTER_SIZE): Move to be an external variable, rather than
14733         calculating whether we are generating 32 ot 64-bit code.
14734         (Pmode): Ditto.
14735         (STACK_BOUNDARY): Add VSX support.
14736         (LOCAL_ALIGNMENT): Ditto.
14737         (SLOW_UNALIGNED_ACCESS): Ditto.
14738         (VSX_REGNO_P): New macro for VSX support.
14739         (VFLOAT_REGNO_P): Ditto.
14740         (VINT_REGNO_P): Ditto.
14741         (VLOGICAL_REGNO_P): Ditto.
14742         (VSX_VECTOR_MODE): Ditto.
14743         (VSX_SCALAR_MODE): Ditto.
14744         (VSX_MODE): Ditto.
14745         (VSX_MOVE_MODE): Ditto.
14746         (VSX_REG_CLASS_P): Ditto.
14747         (HARD_REGNO_NREGS): Instead of calling a function, use an array
14748         lookup.
14749         (UNITS_PER_SIMD_WORD): Add VSX support.
14750         (MODES_TIEABLE_P): Ditto.
14751         (STARTING_FRAME_OFFSET): Ditto.
14752         (STACK_DYNAMIC_OFFSET): Ditto.
14753         (EPILOGUE_USES): Ditto.
14754         (REGNO_REG_CLASS): Move to array lookup.
14755         (CLASS_MAX_NREGS): Ditto.
14756         (rs6000_vector_reg_class): Add declaration.
14757         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
14758         overlap with the floating point and Altivec registers.
14759
14760         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
14761
14762         * config/rs6000/driver-rs6000.c (asm_names): New static array to
14763         give the appropriate asm switches if -mcpu=native.
14764         (host_detect_local_cpu): Add support for "asm".
14765         (host_detect_local_cpu): Follow GNU code guidelines for name.
14766
14767         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
14768         -mbit-word to a variable instead of being a target mask.
14769
14770         * config/rs6000/sync.md (lwsync): If the assembler supports it,
14771         emit the lwsync instruction instead of emitting the instruction as
14772         an integer constant.
14773
14774         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
14775         fixuns_trundfsi2, move expander into rs6000.md.
14776
14777         * config/rs6000/rs6000.md (cpu): Add power7.
14778         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
14779         (logical predicate patterns): Change the single instruction
14780         primitives that set CR0 to be fast_compare instead of compare.
14781         (norsi*): Ditto.
14782         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
14783         (popcntddi2): Ditto.
14784         (popcount<mode>): Ditto.
14785         (floating multiply/add insns): Name the floating point
14786         multiply/add insns.
14787         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
14788         (isel_unsigned_<mode>): Ditto.
14789         (fixuns_trundfsi2): Move expander here from spe.md.
14790         (smindi3): Define if we have -misel on 64-bit systems.
14791         (smaxdi3): Ditto.
14792         (umindi3): Ditto.
14793         (umaxdi3): Ditto.
14794
14795 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
14796
14797         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
14798         extra_objs.
14799         * config/avr/avr.c (avr_current_device): New variable.
14800         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
14801         (avr_arch, mcu_type_s): Move to avr.h.
14802         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
14803         default_data_section_start fields.
14804         (avr_arch): Moved from avr.c.
14805         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
14806         library_name fields.
14807         (avr_current_device, avr_mcu_types, avr_arch_types,
14808         avr_device_to_arch, avr_device_to_data_start,
14809         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
14810         (EXTRA_SPEC_FUNCTIONS): Define.
14811         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
14812         options mapping. Use device_to_arch and device_to_data_start insted.
14813         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
14814         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
14815         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
14816         * config/avr/driver-avr.c: New file.
14817         * config/avr/avr-devices.c: New file.
14818
14819 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
14820
14821         * var-tracking.c (unshare_variable): Force initialized to
14822         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
14823         (set_variable_part): Likewise.
14824         (struct variable_union_info): Remove pos_src field.
14825         (vui_vec, vui_allocated): New variables.
14826         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
14827         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
14828         == 1 use a simpler sorting algorithm.  Compute pos field right
14829         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
14830         Avoid quadratic comparison if !flag_var_tracking_uninit.
14831         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
14832         unshare_variable unconditionally.
14833         (dataflow_set_different_2): Removed.
14834         (dataflow_set_different): Don't traverse second hash table.
14835         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
14836         unconditionally to var_reg_set or var_mem_set.
14837         (emit_notes_in_bb): Likewise.
14838         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
14839         unshare_variable.
14840         (emit_note_insn_var_location): Don't set initialized to
14841         VAR_INIT_STATUS_INITIALIZED early.
14842         (vt_finalize): Free vui_vec if needed, clear vui_vec and
14843         vui_allocated.
14844         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
14845
14846         * tree-object-size.c (addr_object_size): Instead of checking
14847         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
14848         are no FIELD_DECLs following it.
14849
14850 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
14851
14852         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
14853         order to match bswaps with signed source operands.
14854
14855 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14856
14857         * sdbout.c (sdbout_one_type): Fix braces in switch.
14858
14859 2009-06-23  Richard Guenther  <rguenther@suse.de>
14860
14861         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
14862         member.
14863         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
14864         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
14865         var_callused, callused_tree, var_storedanything, storedanything_tree,
14866         var_integer, integer_tree): Remove global variables.
14867         (new_var_info): Do not pass new id, append the new var to the
14868         global variable vector.
14869         (do_ds_constraint): Use is_global_var member of the variable-info.
14870         (new_scalar_tmp_constraint_exp): Adjust.
14871         (create_function_info_for): Likewise.
14872         (create_variable_info_for): Likewise.
14873         (find_what_var_points_to): Remove dead code.
14874         (init_base_vars): Simplify.
14875         (compute_points_to_sets): Adjust.
14876
14877 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
14878
14879         * combine.c (try_combine): Dump information about the insns we're
14880         combining.
14881
14882 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
14883
14884         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
14885         check when calling force_to_mode on TRUNCATE's operand.
14886
14887 2009-06-22  Ian Lance Taylor  <iant@google.com>
14888
14889         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
14890
14891 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
14892
14893         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
14894
14895 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14896
14897         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
14898         override library linkage flags such as -static-libgcc or
14899         -shared-libgcc.
14900
14901 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
14902
14903         * config/m68k/m68k-devices.def: Add line for MCF5221x.
14904
14905 2009-06-22  Ian Lance Taylor  <iant@google.com>
14906
14907         * config/linux.opt: Put mglibc ahead of muclibc.
14908
14909         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
14910         for duplicate decls.
14911
14912 2009-06-22  Matthias Klose  <doko@ubuntu.com>
14913
14914         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
14915
14916 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
14917
14918         PR objc/28050
14919         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
14920         instead of NULL if a parser error occurs.
14921
14922 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14923
14924         * dwarf2out.c (dwarf2_debug_hooks): Initialize
14925         non-DWARF2_DEBUGGING_INFO version.
14926
14927 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
14928
14929         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
14930         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
14931
14932         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
14933         (LIBGCC2_TF_CEXT): Define.
14934         (TF_SIZE): Define.
14935
14936 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14937
14938         PR target/40463
14939         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
14940
14941 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14942
14943         * config/arm/arm.c (arm_override_options): Disable
14944         -mcaller-super-interworking and -mcallee-super-interworking.
14945         * doc/invoke.texi (ARM Options): Document this.
14946
14947 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
14948
14949         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
14950         * config/arm/constraints.md (j): New constraint for movw operands.
14951         (N): Remove thumb2 meaning.
14952         * config/arm/arm.md (*arm_movw): Delete.
14953         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
14954         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
14955         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
14956
14957 2009-06-22  Martin Jambor  <mjambor@suse.cz>
14958
14959         PR tree-optimization/40492
14960         * tree-sra.c (sra_modify_assign): Pass zero offsets to
14961         build_ref_for_offset.
14962
14963 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
14964
14965         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
14966         JUMP_TABLE_DATA_P predicates where applicable.
14967         * auto-inc-dec.c: Ditto.
14968         * builtins.c: Ditto.
14969         * caller-save.c: Ditto.
14970         * calls.c: Ditto.
14971         * cfgcleanup.c: Ditto.
14972         * cfglayout.c: Ditto.
14973         * cfgrtl.c: Ditto.
14974         * combine.c: Ditto.
14975         * combine-stack-adj.c: Ditto.
14976         * cse.c: Ditto.
14977         * cselib.c: Ditto.
14978         * dbxout.c: Ditto.
14979         * df-scan.c: Ditto.
14980         * dse.c: Ditto.
14981         * dwarf2asm.c: Ditto.
14982         * dwarf2out.c: Ditto.
14983         * emit-rtl.c: Ditto.
14984         * except.c: Ditto.
14985         * explow.c: Ditto.
14986         * expmed.c: Ditto.
14987         * expr.c: Ditto.
14988         * final.c: Ditto.
14989         * function.c: Ditto.
14990         * fwprop.c: Ditto.
14991         * gcse.c: Ditto.
14992         * genpreds.c: Ditto.
14993         * genrecog.c: Ditto.
14994         * ifcvt.c: Ditto.
14995         * ira-costs.c: Ditto.
14996         * ira-lives.c: Ditto.
14997         * jump.c: Ditto.
14998         * loop-iv.c: Ditto.
14999         * lower-subreg.c: Ditto.
15000         * modulo-sched.c: Ditto.
15001         * optabs.c: Ditto.
15002         * postreload.c: Ditto.
15003         * print-rtl.c: Ditto.
15004         * recog.c: Ditto.
15005         * reginfo.c: Ditto.
15006         * regmove.c: Ditto.
15007         * reload1.c: Ditto.
15008         * reload.c: Ditto.
15009         * reorg.c: Ditto.
15010         * rtlanal.c: Ditto.
15011         * rtl.c: Ditto.
15012         * sched-vis.c: Ditto.
15013         * sdbout.c: Ditto.
15014         * sel-sched-ir.c: Ditto.
15015         * simplify-rtx.c: Ditto.
15016         * targhooks.c: Ditto.
15017         * var-tracking.c: Ditto.
15018         * vmsdbgout.c: Ditto.
15019
15020 2009-06-22  Matthias Klose  <doko@ubuntu.com>
15021
15022         * Makefile.in (install-plugin): Always use DESTDIR.
15023
15024 2009-06-22  Olivier Hainque  <hainque@adacore.com>
15025
15026         * config/pa/pa.c (output_call): Don't optimize post call jumps
15027         into return address adjustments if the call may throw.
15028
15029 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
15030
15031         * arm.c (thumb1_output_casesi): New function.
15032         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
15033         optimizing for size or PIC.
15034         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
15035         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
15036         (casesi): Handle Thumb-1 when optimizing for size or PIC.
15037         (thumb1_casesi_internal_pic): New expand rule.
15038         (thumb1_casesi_dispatch): New pattern.
15039         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
15040         thumb-1 mode.
15041         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
15042         in the text seciton when PIC or optimizing for size.
15043         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
15044         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
15045         preservation properties of code.
15046         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
15047         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
15048         (__gnu_thumb1_case_si): New function.
15049         * t-arm (LIB1ASMSRC): Define here.
15050         (LIB1ASMFUNCS): Add some common functions.
15051         * t-arm-elf (LIB1ASMSRC): Delete.
15052         (LIB1ASMFUNCS): Append to existing set.
15053         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
15054         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
15055         * t-symbian (LIB1ASMFUNCS): Likewise.
15056         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
15057         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
15058
15059 2009-06-21  Richard Guenther  <rguenther@suse.de>
15060
15061         PR tree-optimization/38729
15062         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
15063         to loops with a single exit if -fno-expensive-optimizations.
15064
15065 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
15066
15067         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
15068         (dataflow_set): Change vars type from htab_t to shared_hash.
15069         (shared_hash_pool, empty_shared_hash): New variables.
15070         (vars_clear): Removed.
15071         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
15072         shared_hash_find_slot_unshare, shared_hash_find_slot,
15073         shared_hash_find_slot_noinsert, shared_hash_find): New
15074         static inlines.
15075         (shared_hash_unshare, shared_hash_destroy): New functions.
15076         (unshare_variable): Unshare set->vars if shared, use
15077         shared_hash_htab.
15078         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
15079         (get_init_value, find_src_set_src, dump_dataflow_set,
15080         clobber_variable_part, emit_notes_for_differences): Use
15081         shared_hash_htab.
15082         (dataflow_set_init): Remove second argument, set vars to
15083         empty_shared_hash instead of creating a new htab.
15084         (dataflow_set_clear): Call shared_hash_destroy and set vars
15085         to empty_shared_hash instead of calling vars_clear.
15086         (dataflow_set_copy): Don't call vars_copy, instead just share
15087         the src htab with dst.
15088         (variable_union): Use shared_hash_*, use initially NO_INSERT
15089         lookup if set->vars is shared.  Don't keep slot cleared before
15090         calling unshare_variable.  Unshare set->vars if needed.
15091         Even ->refcount == 1 vars must be unshared if set->vars is shared
15092         and var needs to be modified.
15093         (variable_canonicalize): New function.
15094         (dataflow_set_union): If dst->vars is empty, just share src->vars
15095         with dst->vars and traverse with variable_canonicalize to canonicalize
15096         and unshare what is needed.
15097         (dataflow_set_different): If old_set and new_set use the same shared
15098         htab, they aren't different.  If number of htab elements is different,
15099         htabs are different.  Use shared_hash_*.
15100         (dataflow_set_destroy): Call shared_hash_destroy instead of
15101         htab_delete.
15102         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
15103         second argument to dataflow_set_init.
15104         (vt_initialize): Likewise.  Initialize shared_hash_pool and
15105         empty_shared_hash, move bb in/out initialization afterwards.
15106         Use variable_htab_free instead of NULL as changed_variables del hook.
15107         (variable_was_changed): Change type of second argument to pointer to
15108         dataflow_set.  When inserting var into changed_variables, bump
15109         refcount.  Unshare set->vars if set is shared htab and slot needs to
15110         be cleared.
15111         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
15112         lookup if set->vars is shared.  Unshare set->vars if needed.
15113         Even ->refcount == 1 vars must be unshared if set->vars is shared
15114         and var needs to be modified.  Adjust variable_was_changed caller.
15115         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
15116         vars must be unshared if set->vars is shared and var needs to be
15117         modified.  Adjust variable_was_changed caller.
15118         (emit_note_insn_var_location): Don't pool_free var.
15119         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
15120         instead of 1.
15121         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
15122         free_alloc_pool on shared_hash_pool.
15123
15124 2009-06-20  Anthony Green  <green@moxielogic.com>
15125
15126         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
15127         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
15128
15129 2009-06-20  Richard Guenther  <rguenther@suse.de>
15130
15131         * tree-ssa-structalias.c (find_func_aliases): For memset use
15132         a constraint from NULL if we memset to zero.
15133         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
15134         we explicitly handle that do not read from memory.
15135         (call_may_clobber_ref_p_1): Properly handle builtins that may
15136         set errno.
15137
15138 2009-06-20  Richard Guenther  <rguenther@suse.de>
15139
15140         PR tree-optimization/40495
15141         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
15142         (new_scalar_tmp_constraint_exp): New function.
15143         (process_constraint): Do not create temporary decls.
15144         (process_all_all_constraints): Likewise.
15145         (handle_const_call): Likewise.
15146         (create_function_info_for): Do not set decl.
15147
15148 2009-06-19  Ian Lance Taylor  <iant@google.com>
15149
15150         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
15151         (rs6000_attribute_table): Make static; move before use.
15152
15153 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
15154
15155         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
15156         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
15157         Propagate the TREE_READONLY flag without overwriting it.
15158         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
15159         Propagate the TREE_READONLY flag onto the result.
15160         (process_call_operands): Move around.  Use correct constant value.
15161
15162 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15163
15164         PR target/40482
15165         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
15166         * config/arm/arm.md: Likewise.
15167
15168 2009-06-19  Ian Lance Taylor  <iant@google.com>
15169
15170         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
15171         to GIMPLE_ERROR_MARK.
15172
15173         * c-typeck.c (build_conditional_expr): Add op1_original_type and
15174         op2_original_type parameters.  Warn about using different enum types.
15175         * c-parser.c (c_parser_conditional_expression): Pass original
15176         types to build_conditional_expr.
15177         * c-tree.h (build_conditional_expr): Update declaration.
15178
15179 2009-06-19  Ian Lance Taylor  <iant@google.com>
15180
15181         * config/i386/i386.c (ix86_function_specific_save): Test that
15182         fields match values, rather than testing the values are in a
15183         certain range.
15184
15185 2009-06-19  Richard Guenther  <rguenther@suse.de>
15186
15187         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
15188         ADDR_EXPR pointers.
15189         (ptr_derefs_may_alias_p): Likewise.
15190         (ptr_deref_may_alias_ref_p_1): New function.
15191         (ptr_deref_may_alias_ref_p): Likewise.
15192         (ref_maybe_used_by_call_p_1): Handle builtins that are not
15193         covered by looking at the ESCAPED solution.
15194         (call_may_clobber_ref_p_1): Likewise.
15195         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
15196         Handle NULL_TREE offset.  Do not produce redundant constraints.
15197         (process_all_all_constraints): New helper function.
15198         (do_structure_copy): Use it.
15199         (handle_lhs_call): Likewise.
15200         (find_func_aliases): Handle some builtins with pointer arguments
15201         and/or return values explicitly.
15202
15203 2009-06-19  Ian Lance Taylor  <iant@google.com>
15204
15205         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
15206
15207 2009-06-19  Ian Lance Taylor  <iant@google.com>
15208
15209         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
15210
15211 2009-06-19  Ian Lance Taylor  <iant@google.com>
15212
15213         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
15214         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
15215         version.
15216
15217         * c-decl.c (finish_decl): If -Wc++-compat, warn about
15218         uninitialized const.
15219
15220 2009-06-19  Ian Lance Taylor  <iant@google.com>
15221
15222         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
15223         all uses.
15224
15225         * c-decl.c (in_struct, struct_types): Remove.
15226         (struct c_binding): Add in_struct field.
15227         (c_binding_ptr): Define type, along with VEC.
15228         (struct c_struct_parse_info): Define.
15229         (struct_parse_info): New static variable.
15230         (bind): Initialize in_struct field.
15231         (start_struct): Remove enclosing_in_struct and
15232         enclosing_struct_types parameters.  Add
15233         enclosing_struct_parse_info parameter.  Change all callers.  Set
15234         struct_parse_info rather than in_struct and struct_types.
15235         (grokfield): If -Wc++-compat and there is a symbol binding for the
15236         field name, set the in_struct flag and push it on the
15237         struct_parse_info->fields vector.
15238         (warn_cxx_compat_finish_struct): New static function.
15239         (finish_struct): Remove enclosing_in_struct and
15240         enclosing_struct_types parameters.  Add
15241         enclosing_struct_parse_info parameter.  Change all callers.  Don't
15242         set C_TYPE_DEFINED_IN_STRUCT here.  Call
15243         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
15244         parameter.  Only push on struct_types if warn_cxx_compat.
15245         (finish_enum): Only push on struct_types if warn_cxx_compat.
15246         (declspecs_add_type): Add loc parameter.  Change all callers.
15247         Change all error calls to error_at.  Pass loc, not input_location,
15248         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
15249         defined in a struct.  If -Wc++-compat and parsing a struct, record
15250         that a typedef name was used.
15251         * c-parser.c (c_parser_declspecs): Get location to pass to
15252         declspecs_add_type.
15253         (c_parser_struct_or_union_specifier): Update calls to start_struct
15254         and finish_struct.
15255         * c-tree.h (struct c_struct_parse_info): Declare.
15256         (finish_struct, start_struct): Update declarations.
15257         (declspecs_add_type): Update declaration.
15258
15259 2009-06-19  Ian Lance Taylor  <iant@google.com>
15260
15261         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
15262         variable with an anonymous type.
15263
15264 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
15265
15266         * see.c: Remove for real.
15267
15268 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
15269
15270         * optabs.h (enum optab_index): Add new OTI_significand.
15271         (significand_optab): Define corresponding macro.
15272         * optabs.c (init_optabs): Initialize significand_optab.
15273         * genopinit.c (optabs): Implement significand_optab using
15274         significand?f2 patterns.
15275         * builtins.c (expand_builtin_mathfn): Handle
15276         BUILT_IN_SIGNIFICAND{,F,L}.
15277         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
15278         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
15279
15280         * config/i386/i386.md (significandxf2, significand<mode>2): New
15281         expanders to implement significandf, significand and significandl
15282         built-ins as inline x87 intrinsics.
15283
15284 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
15285
15286         * config/avr/avr.c (avr_override_options): Remove setting value of
15287         PARAM_INLINE_CALL_COST.
15288
15289 2009-06-18  Richard Henderson  <rth@redhat.com>
15290
15291         PR 40488
15292         * tree-pass.h (TDF_ASMNAME): New.
15293         * tree-dump.c (dump_options): Add asmname.
15294         * doc/invoke.texi: Document it.
15295
15296         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
15297         (dump_decl_name): ...here.
15298         (dump_function_name): New flags arg; mind TDF_ASMNAME.
15299         (dump_generic_node): Update dump_function_name calls.
15300         (print_call_name): New flags arg; update all dump calls.
15301         * diagnostic.h (print_call_name): Update.
15302         * gimple-pretty-print.c (dump_gimple_call): Update.
15303
15304 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
15305
15306         PR target/40470
15307         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
15308
15309 2009-06-18  Diego Novillo  <dnovillo@google.com>
15310
15311         * doc/plugins.texi: Document plugin_is_GPL_compatible.
15312         * plugin.c (str_license): Declare.
15313         (try_init_one_plugin): Assert that the symbol
15314         'plugin_is_GPL_compatible' exists.
15315
15316 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
15317
15318         * see.c: Remove.
15319         * Makefile.in (OBJS-common): Remove see.o.
15320         (see.o): Remove.
15321         * common.opt (fsee): Mark as preserved for backward compatibility.
15322         * opts.c (common_handle_option): Add OPT_fsee to the backward
15323         compatibility section.
15324         * passes.c (init_optimization_passes, pass_see): Remove pass.
15325         * timevar.def (TV_SEE): Remove.
15326         * tree-pass.h (pass_see): Remove declaration.
15327         * doc/invoke.texi (-fsee): Remove documentation.
15328
15329 2009-06-18  Martin Jambor  <mjambor@suse.cz>
15330
15331         * tree-sra.c: Include statistics.h
15332         (sra_stats): New variable.
15333         (sra_initialize): Clear sra_stats.
15334         (create_access_replacement): Increment sra_stats.replacements.
15335         (get_access_replacement): Do not return twice.
15336         (analyze_all_variable_accesses): Increment statistics counter by the
15337         number of scalarized aggregates.
15338         (generate_subtree_copies): Increment sra_stats.subtree_copies.
15339         (sra_modify_expr): Increment sra_stats.exprs.
15340         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
15341         (sra_modify_assign): Increment sra_stats.exprs,
15342         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
15343         (perform_intra_sra): Update statistics counters.
15344         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
15345
15346 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
15347
15348         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
15349         (arm_scalar_mode_supported_p): New function.
15350
15351 2009-06-18  Paul Brook  <paul@codesourcery.com>
15352             Sandra Loosemore  <sandra@codesourcery.com>
15353
15354         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
15355         (__extendhfsf2, __truncsfhf2): Define.
15356         * config/arm/fp16.c: New file.
15357         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
15358         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
15359
15360 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
15361
15362         * doc/extend.texi (Half-Precision): New section.
15363         * doc/invoke.texi (Option Summary): List -mfp16-format.
15364         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
15365         * config/arm/arm.opt (mfp16-format=): New.
15366         * config/arm/arm.c: Include intl.h.
15367         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
15368         (TARGET_INVALID_RETURN_TYPE): Redefine.
15369         (TARGET_PROMOTED_TYPE): Redefine.
15370         (TARGET_CONVERT_TO_TYPE): Redefine.
15371         (arm_fp16_format): Define.
15372         (all_fpus): Add entry for neon-fp16.
15373         (fp_model_for_fpu): Likewise.
15374         (struct fp16_format): Declare.
15375         (all_fp16_formats): Define.
15376         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
15377         functions.
15378         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
15379         and no ldrh.
15380         (arm_legitimate_index_p): Treat HFmode like HImode.
15381         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
15382         (coproc_secondary_reload_class): Special-case HFmode.
15383         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
15384         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
15385         (arm_init_fp16_builtins): New.
15386         (arm_init_builtins): Call it.
15387         (arm_invalid_parameter_type): New.
15388         (arm_invalid_return_type): New.
15389         (arm_promoted_type): New.
15390         (arm_convert_to_type).
15391         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
15392         format.
15393         (arm_emit_fp16_const): New function.
15394         (arm_mangle_type): Mangle __fp16 as "Dh".
15395         * config/arm/arm.h (TARGET_VFPD32): Make it know about
15396         FPUTYPE_NEON_FP16.
15397         (TARGET_NEON_FP16): New.
15398         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
15399         (enum fputype): Add FPUTYPE_NEON_FP16.
15400         (enum arm_fp16_format_type): Declare.
15401         (arm_fp16_format): Declare.
15402         (LARGEST_EXPONENT_IS_NORMAL): Define.
15403         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
15404         * config/arm/arm-modes.def (HFmode): Define.
15405         * config/arm/vfp.md (*movhf_vfp): New.
15406         (extendhfsf2): New.
15407         (truncsfhf2): New.
15408         * config/arm/arm.md (fpu): Add neon_fp16.
15409         (floatsihf2, floatdihf2): New.
15410         (fix_trunchfsi2, fix_trunchfdi2): New.
15411         (truncdfhf2): New.
15412         (extendhfdf2): New.
15413         (movhf): New.
15414         (*arm32_movhf): New.
15415         (*thumb1_movhf): New.
15416         (consttable_2): Add check for HFmode constants.
15417         (consttable_4): Handle HFmode constants.
15418
15419 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
15420
15421         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
15422
15423 2009-06-17  Olivier Hainque  <hainque@adacore.com>
15424
15425         * collect2.c (main): Use CONST_CAST2 to perform char ** to
15426         const char ** conversion in AIX specific section.
15427
15428 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
15429
15430         * config/i386/i386.c (ix86_special_builtin_type): Remove
15431         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
15432         (bdesc_special_args): Updated.
15433         (ix86_init_mmx_sse_builtins): Likewise.
15434         (ix86_expand_special_args_builtin): Likewise.
15435
15436 2009-06-17  Richard Henderson  <rth@redhat.com>
15437
15438         * tree-pretty-print.c (maybe_dump_asm_name): New.
15439         (dump_decl_name): Use it.
15440         (PRINT_FUNCTION_NAME): Merge into...
15441         (dump_function_name): ... here.  Use maybe_dump_asm_name.
15442
15443 2009-06-17  Cary Coutant  <ccoutant@google.com>
15444
15445         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
15446         Change caller.
15447         * debug.c (struct gcc_debug_hooks): Change placeholder for
15448         source_line hook.
15449         (debug_nothing_int_charstar_int): Replaced by...
15450         (debug_nothing_int_charstar_int_bool): ...this.
15451         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
15452         source_line prototype.
15453         (debug_nothing_int_charstar_int): Replaced by...
15454         (debug_nothing_int_charstar_int_bool): ...this.
15455         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
15456         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
15457         Output is_stmt operand when necessary.
15458         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
15459         (notice_source_line): Add is_stmt parameter.
15460         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
15461         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
15462         Change callers.
15463         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
15464         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
15465
15466 2009-06-17  Ian Lance Taylor  <iant@google.com>
15467
15468         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
15469         Change all uses.
15470         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
15471         call uses.
15472
15473 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
15474
15475         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
15476         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
15477         tree_strip_sign_nop_conversions and
15478         tree_ssa_strip_useless_type_conversions rather than stripping
15479         the operations here.
15480         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
15481         Declare them.
15482         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
15483         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
15484         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
15485         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
15486         functions.
15487
15488 2009-06-17  Michael Eager  <eager@eagercon.com>
15489
15490         * config/rs6000/constraints.md (register_constraint "d"): New.
15491         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
15492         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
15493         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
15494         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
15495         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
15496         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
15497         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
15498         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
15499         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
15500         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
15501         __fctiwz): Same.
15502         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
15503         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
15504         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
15505         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
15506         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
15507         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
15508         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
15509         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
15510         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
15511         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
15512         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
15513         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
15514         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
15515         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
15516
15517 2009-06-16  Ian Lance Taylor  <iant@google.com>
15518
15519         * profile.c (total_num_never_executed): Don't define.
15520         (compute_branch_probabilities): Don't count or print
15521         num_never_executed.
15522         (init_branch_prob): Don't set total_num_never_executed.
15523         (end_branch_prob): Don't print total_num_never_executed.
15524
15525 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
15526
15527         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
15528
15529 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
15530
15531         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
15532         (nabstd2_fpr): Same.
15533
15534 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
15535
15536         * expr.c (expand_assignment): Change complex type check.
15537
15538 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
15539
15540         * doc/plugins.texi (Building GCC plugins): Added new section.
15541
15542 2009-06-17  Ian Lance Taylor  <iant@google.com>
15543
15544         * c-pch.c (get_ident): Don't set size of templ array.
15545         (pch_init): Don't set size of partial_pch array.
15546
15547         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
15548         string constant to intialize an array whose size is the length of
15549         the string.
15550
15551 2009-06-17  Richard Guenther  <rguenther@suse.de>
15552
15553         PR tree-optimization/40389
15554         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
15555         to addressable types.
15556         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
15557
15558 2009-06-17  Richard Guenther  <rguenther@suse.de>
15559
15560         PR middle-end/40460
15561         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
15562         if there is no evolution of left in the loop bail out.
15563         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
15564         chrec_fold_multiply.
15565
15566 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
15567             Janis Johnson  <janis187@us.ibm.com>
15568
15569         PR target/39254
15570         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
15571         for the symbol ref of a constant that is the source of a move
15572         - nor for any other not-obvious-label-ref constants.
15573
15574 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
15575
15576         * plugin.c (position_pass): Skip newly inserted pass during list
15577         traversal to avoid repeated insertion.
15578
15579 2009-06-16  Ian Lance Taylor  <iant@google.com>
15580
15581         * vec.h (VEC_stack_alloc): Define different version if
15582         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
15583         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
15584         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
15585         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
15586
15587 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
15588
15589         * config.gcc (extra_headers): Add ia32intrin.h for x86.
15590
15591         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
15592         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
15593         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
15594         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
15595         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
15596         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
15597         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
15598         (bdesc_special_args): Add __builtin_ia32_rdtsc and
15599         __builtin_ia32_rdtscp.
15600         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
15601         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
15602         and __builtin_ia32_rorhi.
15603         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
15604         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
15605         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
15606         (ix86_expand_args_builtin): Likewise.
15607         (ix86_expand_special_args_builtin): Likewise.
15608
15609         * config/i386/i386.md (UNSPECV_RDTSCP): New.
15610         (UNSPECV_RDTSC): Likewise.
15611         (UNSPECV_RDPMC): Likewise.
15612         (*bsr): Renamed to ...
15613         (bsr): This
15614         (*bsr_rex64): Renamed to ...
15615         (bsr_rex64): This.
15616         (rdpmc): New.
15617         (*rdpmc): Likewise.
15618         (*rdpmc_rex64): Likewise.
15619         (rdtsc): Likewise.
15620         (*rdtsc): Likewise.
15621         (*rdtsc_rex64): Likewise.
15622         (rdtscp): Likewise.
15623         (*rdtscp): Likewise.
15624         (*rdtscp_rex64): Likewise.
15625
15626         * config/i386/ia32intrin.h: New.
15627
15628         * config/i386/x86intrin.h: Include <ia32intrin.h>.
15629
15630 2009-06-16  Ian Lance Taylor  <iant@google.com>
15631
15632         * ira-build.c (copy_info_to_removed_store_destinations):
15633         Initialize parent_a.
15634
15635 2009-06-16  Ian Lance Taylor  <iant@google.com>
15636
15637         * c-decl.c (grokdeclarator): Change size_varies to bool.
15638
15639 2009-06-16  Ian Lance Taylor  <iant@google.com>
15640
15641         * sel-sched.c: Make forward declarations of move_op_hooks and
15642         fur_hooks explicitly extern.
15643
15644 2009-06-16  Ian Lance Taylor  <iant@google.com>
15645
15646         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
15647         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
15648
15649 2009-06-16  Ian Lance Taylor  <iant@google.com>
15650
15651         * resource.c (mark_referenced_resources): Change
15652         include_delayed_effects parameter to bool.  Change all callers.
15653         (mark_end_of_function_resources): Likewise.
15654         * reorg.c (insn_references_resource_p): Likewise.
15655         (insn_sets_resource_p): Likewise.
15656         * resource.h (mark_referenced_resources): Update declaration.
15657         (mark_end_of_function_resources): Update declaration.
15658
15659 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
15660
15661         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
15662
15663 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
15664
15665         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
15666         GCC can bootstrap on AIX with GNU Binutils 2.20.
15667
15668 2009-06-16  Ian Lance Taylor  <iant@google.com>
15669
15670         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
15671
15672 2009-06-16  Ian Lance Taylor  <iant@google.com>
15673
15674         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
15675         inline, not extern inline.
15676         (exact_log2): Likewise.
15677         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
15678         test CLZ_HWI.
15679         (exact_log2): Likewise, but don't test CTZ_HWI.
15680
15681 2009-06-16  Ian Lance Taylor  <iant@google.com>
15682
15683         * bitmap.c (bitmap_clear): Don't declare as inline.
15684         * gimple.c (gimplify_assign): Likewise.
15685         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
15686         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
15687         (sched_scan_info): Remove duplicate definition.
15688
15689 2009-06-16  Ian Lance Taylor  <iant@google.com>
15690
15691         * c-common.c (skip_evaluation): Don't define.
15692         (c_inhibit_evaluation_warnings): Define global variable.
15693         (overflow_warning): Check c_inhibit_evaluation_warnings rather
15694         than skip_evaluation.
15695         (convert_and_check, warn_for_div_by_zero): Likewise.
15696         * c-common.h (skip_evaluation): Don't declare.
15697         (c_inhibit_evaluation_warnings): Declare.
15698         * c-parser.c (c_parser_typeof_specifier): Set
15699         c_inhibit_evaluation_warnings rather than skip_evaluation.
15700         (c_parser_conditional_expression): Likewise.
15701         (c_parser_binary_expression): Likewise.
15702         (c_parser_sizeof_expression): Likewise.
15703         (c_parser_alignof_expression): Likewise.
15704         * c-typeck.c (build_indirect_ref): Check
15705         c_inhibit_evaluation_warnings rather than skip_evaluation.
15706         (build_conditional_expr, build_binary_op): Likewise.
15707
15708 2009-06-16  Richard Guenther  <rguenther@suse.de>
15709
15710         * tree-ssa-alias.c (is_escape_site): Remove.
15711         * tree-ssa-alias.h (enum escape_type): Remove.
15712         (is_escape_site): Likewise.
15713         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
15714         via casts and asms without deferring to is_escape_site.
15715
15716 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
15717
15718         PR middle-end/40446
15719         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
15720         use gen_lowpart if op0 has complex mode.
15721
15722 2009-06-16  Richard Guenther  <rguenther@suse.de>
15723
15724         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
15725         variables add them to ESCAPED.
15726         (find_func_aliases): Do not make all indirectly stored values escaped.
15727
15728 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
15729
15730         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
15731         make_decl_one_only.
15732
15733 2009-06-16  Martin Jambor  <mjambor@suse.cz>
15734
15735         PR tree-optimization/40432
15736         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
15737         check whether we need to force gimple register operand.
15738
15739 2009-06-16  Martin Jambor  <mjambor@suse.cz>
15740
15741         PR tree-optimization/40413
15742         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
15743         build_ref_for_offset.
15744         (propagate_subacesses_accross_link): Fix a typo in a comment.
15745
15746 2009-06-16  Ira Rosen  <irar@il.ibm.com>
15747
15748         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
15749         with additional parameter.
15750         * tree-vectorizer.h (enum vect_def_type): Add new value
15751         vect_nested_cycle.
15752         (enum vect_relevant): Add comments.
15753         (vect_is_simple_reduction): Add new argument.
15754         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
15755         Detect nested cycles.
15756         (vect_is_simple_reduction): Update documentation, add an argument to
15757         distinguish inner-loop reduction from nested cycle, detect nested
15758         cycles, fix printings and indentation, don't swap operands in case
15759         of nested cycle.
15760         (get_initial_def_for_reduction): Handle subtraction.
15761         (vect_create_epilog_for_reduction): Add new argument to specify
15762         reduction variable.
15763         (vect_finalize_reduction): Handle subtraction, fix comments.
15764         (vectorizable_reduction): Handle nested cycles. In case of nested
15765         cycle keep track of the reduction variable position. Call
15766         vect_is_simple_reduction with additional parameter. Use original
15767         statement code in reduction epilogue for nested cycle. Call
15768         vect_create_epilog_for_reduction with additional parameter.
15769         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
15770         inner-loop vectorization.
15771         (vect_recog_widen_sum_pattern): Likewise.
15772         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
15773         and reductions.
15774         (vect_mark_stmts_to_be_vectorized): Likewise.
15775         (vect_get_vec_def_for_operand): Handle nested cycles.
15776
15777 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15778
15779         * doc/invoke.texi (Debugging Options): Fix option index entries
15780         for -fdump-statistics, -frandom-seed add entries for
15781         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
15782         (FRV Options): Fix entries for -mTLS, -mtls.
15783         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
15784         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
15785         (M68hc1x Options): Fix @itemx for -mnominmax.
15786         (MCore Options): Fix entry for -mno-lsim.
15787         (MMIX Options): Fix entry for -mabi=mmixware.
15788         (PDP-11 Options): Fix entry for -mbcopy-builtin.
15789
15790 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
15791
15792         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
15793         Mention the plugin mode of gengtype.
15794         * doc/gty.texi (Source Files Containing Type Information): Likewise.
15795         * gengtype.c: Updated copyright.
15796         (plugin_files, nb_plugin_files) Added new static variables.
15797         (measure_input_list) Care about plugin_files.
15798         (write_rtx_next): Added early return in plugin mode.
15799         (create_file): Updated copyright year in generated file. Added
15800         asserts.
15801         (oprintf): Added early return if NULL outf.
15802         (get_output_file_with_visibility): Care of plugin_files.
15803         (get_output_file_name): May return null.
15804         (write_local): Added early return.
15805         (put_mangled_filename): Ditto.
15806         (finish_root_table): Added check for base_files.
15807         (write_roots): Care about null when plugins.
15808         (main): Added plugin mode.
15809
15810 2009-06-15  Ian Lance Taylor  <iant@google.com>
15811
15812         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
15813         * gcov.c (read_count_file): Add braces around variables declared
15814         before label.
15815
15816         * c.opt (Wjump-misses-init): New warning.
15817         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
15818         -Wall and -Wc++-compat if not already set.
15819         (c_common_post_options): Clear warn_jump_misses_init if it was not
15820         set.
15821         * c-decl.c (struct c_binding): Change type field to a union with
15822         new label field.  Make it the first field in the struct.  Update
15823         references to type to use u.type instead.
15824         (struct c_spot_bindings): Define.
15825         (struct c_goto_bindings): Define.
15826         (c_goto_bindings_p): Define, along with VECs.
15827         (struct c_label_vars): Define.
15828         (struct c_scope): Add has_label_bindings field.
15829         (bind_label, set_spot_bindings): New static functions.
15830         (decl_jump_unsafe, update_spot_bindings): New static functions.
15831         (update_label_decls): New static function.
15832         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
15833         Update binding u.label field to shadowed field.
15834         (c_binding_start_stmt_expr): New function.
15835         (c_binding_end_stmt_expr): New function.
15836         (pushdecl): Don't call c_begin_vm_scope.
15837         (make_label): Add defining and p_label_vars parameters.  Change
15838         all callers.
15839         (lookup_label): Correct test for whether a label has not yet been
15840         defined.  Call bind_label rather than bind.
15841         (warn_about_goto): New static function.
15842         (lookup_label_for_goto): New function.
15843         (declare_label): Call bind_label rather than bind.
15844         (check_earlier_gotos): New static function.
15845         (define_label): Don't give errors about jumping into statement
15846         expressions or scopes of variably modified types.  Call
15847         set_spot_bindings and check_earlier_gotos.  Call bind_label
15848         instead of bind.  Don't set label_context_stack_se or
15849         label_context_stack_vm.
15850         (c_get_switch_bindings): New function.
15851         (c_release_switch_bindings): New function.
15852         (c_check_switch_jump_warnings): New function.
15853         (start_function): Don't set label_context_stack_se or
15854         label_context_stack_vm.
15855         (finish_function): Likewise.
15856         * c-typeck.c (label_context_stack_se): Don't define.
15857         (label_context_stack_vm): Don't define.
15858         (c_finish_goto_label): Call lookup_label_for_goto rather than
15859         lookup_label.  Don't give errors about jumping into a statement
15860         expression or the scope of a variably modified type.  Don't set
15861         label_context_stack_se or label_context_stack_vm.
15862         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
15863         fields.  Add bindings field.
15864         (c_start_case): Don't set deleted fields.  Set bindings field.
15865         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
15866         or blocked_vm.  Call c_check_switch_jump_warnings.
15867         (c_finish_case): Don't test blocked_stmt_expr field.  Call
15868         c_release_switch_bindings.
15869         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
15870         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
15871         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
15872         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
15873         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
15874         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
15875         (c_begin_vm_scope, c_end_vm_scope): Don't define.
15876         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
15877         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
15878         (C_DECL_UNJUMPABLE_VM): Don't define.
15879         (C_DECL_UNDEFINABLE_VM): Don't define.
15880         (struct c_label_list): Don't define.
15881         (struct c_label_context_se): Don't define.
15882         (struct c_label_context_vm): Don't define.
15883         (struct c_spot_bindings): Declare.
15884         (c_bindings_start_stmt_expr): Declare.
15885         (c_bindings_end_stmt_expr): Declare.
15886         (lookup_label_for_goto): Declare.
15887         (c_get_switch_bindings, c_release_switch_bindings): Declare.
15888         (c_check_switch_jump_warnings): Declare.
15889         (label_context_stack_se, label_context_stack_vm): Don't declare.
15890         (c_finish_goto_label): Update declaration.
15891         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
15892         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
15893         (Warning Options): Document -Wjump-misses-init.
15894
15895 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
15896
15897         * tree-object-size.c (addr_object_size): Fix a pasto in the last
15898         change.
15899
15900 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
15901
15902         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
15903
15904 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
15905
15906         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
15907
15908 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
15909
15910         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
15911
15912 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
15913
15914         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
15915         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15916         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
15917         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
15918         * dwarf2asm.c (dw2_force_const_mem): Update call to
15919         make_decl_one_only.
15920         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
15921         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
15922         * langhooks.c (lhd_comdat_group): Remove.
15923         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
15924         * tree.h (DECL_COMDAT_GROUP): New.
15925         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
15926         (tree_decl_with_vis): Add comdat_group. Remove one_only.
15927         (make_decl_one_only): Change signature.
15928         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
15929         make_decl_one_only.
15930         (make_decl_one_only): Change signature.
15931         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
15932
15933 2009-06-15  Richard Guenther  <rguenther@suse.de>
15934
15935         PR middle-end/40439
15936         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
15937
15938 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15939
15940         * tree-ssa-math-opts.c: Remove extra divide.
15941
15942 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15943
15944         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
15945
15946 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15947
15948         * passes.c: Add bswap pass.
15949         * tree-pass.h: Add pass_optimize_bswap declaration.
15950         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
15951         Include rtl.h, expr.h and optabs.h for optab_handler check.
15952         (struct symbolic_number, pass_optimize_bswap): New definition.
15953         (do_shift_rotate, verify_symbolic_number_p): New functions.
15954         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
15955         (gate_optimize_bswap): New function.
15956         * tree.c (widest_int_cst_value): New function.
15957         * tree.h (widest_int_cst_value): Prototype added.
15958
15959 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
15960
15961         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
15962         REG_EQUAL/REG_EQUIV notes.
15963
15964 2009-06-14  Richard Guenther  <rguenther@suse.de>
15965
15966         PR middle-end/40389
15967         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
15968         has its address taken if NRV was applied and it is addressable.
15969         * tree-ssa-structalias.c (get_constraint_for_address_of): New
15970         function split out from ...
15971         (get_constraint_for_1): ... here.
15972         (handle_rhs_call): Use it to mark the return slot escaped if
15973         it is addressable and NRV was applied.
15974
15975 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
15976
15977         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
15978         Change first argument type to location_t.
15979         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
15980         Do not set input_location.
15981         Use loc instead of input_location throughout.
15982
15983 2009-06-13  Richard Guenther  <rguenther@suse.de>
15984
15985         PR tree-optimization/40421
15986         * tree-predcom.c (should_unroll_loop_p): Remove.
15987         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
15988
15989 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15990
15991         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15992         Add location argument.
15993
15994 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
15995
15996         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
15997         build_decl.
15998         * config/s390/s390.c (s390_build_builtin_va_list): Same.
15999         (s390_gimplify_va_arg): Pass location to create_artificial_label.
16000         * config/spu/spu-protos.h: Add location to
16001         spu_resolve_overloaded_builtin.
16002         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
16003         spu_build_builtin_va_list.
16004         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
16005         argument.  Pass location to build_function_call_vec.
16006         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
16007         build_decl.
16008         (emit_fpu_switch): Same.
16009         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
16010         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
16011         to build_decl and create_artificial_label.
16012         (xtensa_gimplify_va_arg_expr): Same.
16013         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
16014         (xstormy16_gimplify_va_arg_expr): Same.
16015         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
16016         * config/arm/arm.c (arm_build_builtin_va_list): Same.
16017         * config/mips/mips.c (mips_build_builtin_va_list): Same.
16018         (mips16_build_function_stub): Same.
16019         (mips16_build_call_stub): Same.
16020
16021 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
16022
16023         PR target/40327
16024         * arm/constraints.md (Pa, Pb): New constraints.
16025         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
16026         split pattern to deal with them.
16027
16028 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
16029
16030         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
16031         fix index entry for -Xpreprocessor.
16032
16033 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
16034
16035         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16036         Add location argument to build_decl call.
16037         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
16038         (rs6000_init_builtins): Same.
16039         (spe_init_builtins): Same.
16040         (rs6000_gimplify_va_arg): Add location argument to
16041         create_artificial_label call.
16042
16043 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
16044
16045         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
16046         * combine-stack-adj.c (pass_stack_adjustments): Use it.
16047         * Makefile.in: Fix GGC dependency for gcse.o.
16048
16049 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
16050
16051         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
16052         * gimple-pretty-print.c (dump_gimple_stmt): Same.
16053         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
16054         created.
16055         * c-parser.c (c_parser_binary_expression): Use current column while
16056         building binary operations.
16057         * common.opt (fshow-column): Enable by default.
16058         * tree-vrp.c (check_array_ref): Use warning_at.
16059         (check_array_bounds): Use location from call back if expr has no
16060         location.
16061         * tree.h: Add location argument to maybe_fold_*.
16062         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
16063         (maybe_fold_offset_to_array_ref): Add location argument and use it.
16064         (maybe_fold_offset_to_component_ref): Same.
16065         (maybe_fold_offset_to_reference): Same.
16066         (maybe_fold_offset_to_address): Same.
16067         (maybe_fold_stmt_indirect): Same.
16068         (maybe_fold_stmt_addition): Same.
16069         (fold_stmt_r): Pass location to maybe_fold_*.
16070         (fold_gimple_assign): Same.
16071         * c-tree.h: Add location argument to finish_decl,
16072         default_function_array_conversion, store_init_value.
16073         * c-decl.c (define_label): Use error_at.
16074         (c_make_fname_decl): Pass location to finish_decl.
16075         (finish_decl): New location argument.
16076         (build_compound_literal): Pass location to store_init_value.
16077         (grokdeclarator): Pass location to finish_decl.
16078         (grokfield): Same.
16079         * c-typeck.c (array_to_pointer_conversion): New location argument.
16080         (function_to_pointer_conversion): Same.
16081         (default_function_array_conversion): Same.
16082         (parser_build_unary_op): Pass location to overflow_warning.
16083         (parser_build_binary_op): Same.  Use warning_at.
16084         (build_unary_op): Pass location to array_to_pointer_conversion.
16085         (build_c_cast): Pass location to digest_init.
16086         (build_modify_expr): New location argument.
16087         (convert_for_assignment): Same.
16088         (store_init_value): Same.
16089         (digest_init): Same.
16090         (output_init_element): Pass location to digest_init and
16091         array_to_pointer_conversion.
16092         (c_finish_return): Pass location to convert_for_assignment.
16093         * gimplify.c (gimplify_conversion): Pass location to
16094         maybe_fold_offset_to_address.
16095         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
16096         to maybe_fold_stmt_addition.
16097         * c-omp.c (c_finish_omp_atomic): Pass new location to
16098         build_modify_expr.
16099         (c_finish_omp_for): Same.
16100         * c-common.c (overflow_warning): New argument.
16101         * c-common.h: New argument to build_modify_expr, overflow_warning.
16102         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
16103         finish_decl.
16104         (c_parser_initializer): Pass location to
16105         default_function_array_conversion.
16106         (c_parser_initelt): Same.
16107         (c_parser_initval): Same.
16108         (c_parser_asm_operands): Same.
16109         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
16110         (c_parser_conditional_expression): Same.
16111         (c_parser_binary_expression): Add location info to stack.  Use it.
16112         (c_parser_unary_expression): Pass location to
16113         default_function_array_conversion, parser_build_unary_op,
16114         build_indirect_ref, c_parser_postfix_expression_after_primary.
16115         (c_parser_postfix_expression_after_primary): New location argument.
16116         Use it.
16117         (c_parser_expression_conv): Pass location to
16118         default_function_array_conversion.
16119         (c_parser_expr_list): Same.
16120         (c_parser_omp_atomic): Same.
16121         (c_parser_omp_for_loop): Same.
16122         * c-tree.h (struct c_declarator): Add comment to id_loc.
16123         (build_array_declarator): New argument.
16124         * c-decl.c (build_array_declarator): Add location argument.
16125         (grokdeclarator): Set id_loc for cdk_array.
16126         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
16127         build_array_declarator.
16128         * tree.c (build_omp_clause): Add location argument.
16129         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
16130         (OMP_CLAUSE_LOCATION): New macro.
16131         (struct tree_omp_clause): Add location field.
16132         (build_omp_clause): Add argument.
16133         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
16134         build_omp_clause.
16135         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
16136         (cp_parser_omp_clause_collapse): Same.
16137         (cp_parser_omp_clause_default): Same.
16138         (cp_parser_omp_clause_if): Same.
16139         (cp_parser_omp_clause_nowait): Same.
16140         (cp_parser_omp_clause_num_threads): Same.
16141         (cp_parser_omp_clause_ordered): Same.
16142         (cp_parser_omp_clause_schedule): Same.
16143         (cp_parser_omp_clause_untied): Same.
16144         (cp_parser_omp_for_loop): Same.
16145         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
16146         * c-tree.h (c_start_case): Add location argument.
16147         (c_process_expr_stmt): Same.
16148         (c_finish_goto_*): Same.
16149         * tree-parloops.c (initialize_reductions): Pass location to
16150         build_omp_clause.
16151         (create_parallel_loop): Same.
16152         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
16153         (gfc_trans_omp_reduction_list): Same.
16154         (gfc_trans_omp_clauses): Same.
16155         (gfc_trans_omp_do): Same.
16156         * c-typeck.c (c_finish_goto_label): Same.
16157         (c_finish_goto_ptr): New location argument.
16158         (c_start_case): Same.
16159         (emit_side_effect_warnings): Same.
16160         (c_process_expr_stmt): Same.
16161         (c_finish_stmt_expr): Same.
16162         (c_finish_omp_clauses): Use error_at instead of error.
16163         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
16164         build_omp_clause.
16165         * c-omp.c (c_split_parallel_clauses): New location argument.
16166         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
16167         to build_omp_clause.
16168         (convert_local_reference_stmt): Same.
16169         (convert_gimple_call): Same.
16170         * c-common.h (c_split_parallel_clauses): New argument.
16171         * c-parser.c (c_parser_statement_after_labels): Pass location to
16172         c_finish_goto_label.
16173         (c_parser_switch_statement): Pass location to c_start_case.
16174         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
16175         and c_process_expr_stmt.
16176         (c_parser_omp_variable_list): Add location argument.
16177         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
16178         (c_parser_omp_clause_default): Same.
16179         (c_parser_omp_clause_if): Same.
16180         (c_parser_omp_clause_num_threads): Same.
16181         (-c_parser_omp_clause_ordered): Same.
16182         (c_parser_omp_clause_reduction): Pass location to
16183         c_parser_omp_variable_list.
16184         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
16185         (c_parser_omp_clause_untied): Same.
16186         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
16187         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
16188
16189         * c-tree.h (check_for_loop_decls, undeclared_variable,
16190         build_component_ref, build_array_ref, build_external_ref,
16191         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
16192         build_conditional_expr, build_compound_expr, c_cast_expr,
16193         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
16194         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
16195         argument.
16196         * c-semantics.c (build_stmt): Same.
16197         (build_case_label): Same.
16198         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
16199         (undeclared_variable): New argument.
16200         (make_label): Same.
16201         (lookup_label): Pass location on down.
16202         (define_label): Same.
16203         (finish_decl): Same.
16204         (build_compound_literal): Same.
16205         (finish_struct): Same.
16206         (finish_function): Do not set location here.
16207         (check_for_loop_decls): New argument.
16208         * tree.c (save_expr): Set location.
16209         (build_empty_stmt): New argument.
16210         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
16211         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
16212         * builtins.c (gimplify_va_arg_expr): Use locations.
16213         (expand_builtin_sync_operation): Same.
16214         * c-typeck.c (build_component_ref): New argument.
16215         (build_array_ref): Same.
16216         (build_external_ref): Same.
16217         (c_expr_sizeof_expr): Same.
16218         (c_expr_sizeof_type): Same.
16219         (parser_build_unary_op): Same.
16220         (build_conditional_expr): Same.
16221         (build_compound_expr): Pass location on down.
16222         (build_compound_expr): New argument.
16223         (build_c_cast): Same.
16224         (c_cast_expr): Same.
16225         (build_asm_expr): Same.
16226         (c_finish_return): Same.
16227         (c_process_expr_stmt): Pass location on down.
16228         (c_finish_stmt_expr): New argument.
16229         (push_clenaup): Same.
16230         (c_finish_omp_parallel): Same.
16231         (c_finish_omp_task): Same.
16232         * gimplify.c (gimplify_call_expr): Pass location on down.
16233         * c-omp.c (c_finish_omp_master): New argument.
16234         (c_finish_omp_critical): Same.
16235         (c_finish_omp_ordered): Same.
16236         (c_finish_omp_barrier): Same.
16237         (-c_finish_omp_taskwait): Same.
16238         (c_finish_omp_atomic): Same.
16239         (c_finish_omp_flush): Same.
16240         * tree-inline.c (copy_tree_body_r): Pass location on down.
16241         (inline_forbidden_p): Remove use of input_location.
16242         * c-gimplify.c (c_build_bind_expr): New argument.
16243         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
16244         (c_sizeof_or_alignof_type): New argument.
16245         (c_alignof_expr): Same.
16246         (build_va_arg): Same.
16247         (c_add_case_label): Same.
16248         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
16249         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
16250         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
16251         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
16252         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
16253         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
16254         New argument.
16255         * stub-objc.c (objc_build_selector_expr): Same.
16256         (objc_build_throw_stmt): Same.
16257         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
16258         (c_parser_initelt): Same.
16259         (c_parser_compound_statement): Same.
16260         (c_parser_compound_statement_nostart): Same.
16261         (c_parser_label): Same.
16262         (c_parser_statement_after_labels): Same.
16263         (c_parser_if_body): Same.
16264         (c_parser_else_body): Same.
16265         (c_parser_if_statement): Same.
16266         (c_parser_switch_statement): Same.
16267         (c_parser_while_statement): Same.
16268         (c_parser_do_statement): Same.
16269         (c_parser_for_statement): Same.
16270         (c_parser_asm_statement): Same.
16271         (c_parser_conditional_expression): Same.
16272         (c_parser_binary_expression): Same.
16273         (c_parser_cast_expression): Same.
16274         (c_parser_unary_expression): Same.
16275         (c_parser_sizeof_expression): Same.
16276         (c_parser_alignof_expression): Same.
16277         (c_parser_postfix_expression): Same.
16278         (c_parser_expression): Same.
16279         (c_parser_objc_receiver): Same.
16280         (c_parser_omp_variable_list): Same.
16281         (c_parser_omp_structured_block): Same.
16282         (c_parser_omp_atomic): New argument.
16283         (c_parser_omp_barrier): Same.
16284         (c_parser_omp_critical): Same.
16285         (c_parser_omp_flush): Pass location on down.
16286         (c_parser_omp_for_loop): New argument.
16287         (c_parser_omp_for): Same.
16288         (c_parser_omp_master): Same.
16289         (c_parser_omp_ordered): Same.
16290         (c_parser_omp_sections_scope): Same.
16291         (c_parser_omp_sections): Same.
16292         (c_parser_omp_parallel): Same.
16293         (c_parser_omp_single): Same.
16294         (c_parser_omp_task): Same.
16295         (c_parser_omp_taskwait): Pass location on down.
16296         (c_parser_omp_construct): Same.
16297         (c_parser_omp_threadprivate): Same.
16298         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
16299         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
16300         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
16301         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
16302         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
16303         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
16304         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
16305         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
16306         config/i386/i386.c, stmt.c:
16307         Add location argument to the following function definitions and/or
16308         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
16309         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
16310         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
16311         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
16312         do_case, c_finish_bc_stmt, build_compound_literal,
16313         build_function_call.
16314         * c-decl.c (build_compound_literal): Add location argument.
16315         Make all diagnostic calls use location.
16316         (start_struct): Same.
16317         (finish_struct): Same.
16318         (start_enum): Same.
16319         (build_enumerator): Same.
16320         (start_function): Same.
16321         (grokdeclarator): Make all diagnostic calls use location.
16322         (store_parm_decls_oldstyle): Same.
16323         * c-typeck.c (build_function_call): Add location argument.
16324         Make all diagnostic calls use location.
16325         (do_case): Same.
16326         (c_finish_bc_stmt): Same.
16327         * tree-nested.c (get_trampoline_type): Add argument.
16328         Pass location to build_decl.
16329         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
16330         * rtl.h (RTL_LOCATION): New.
16331         * c-common.c (c_add_case_label): Add location argument.
16332         Make all diagnostic calls use location.
16333         * c-common.h: Add location argument to make_fname_decl, do_case,
16334         c_add_case_label, build_function_call, resolve_overloaded_builtin.
16335         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
16336         Set it appropriately for every case.  Pass enum_loc to start_enum
16337         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
16338         parser_xref_tag.
16339         (c_parser_struct_or_union_specifier): Save location.  Use it for
16340         start_struct, finish_struct, and parser_xref_tag.
16341
16342 2009-06-12  Ian Lance Taylor  <iant@google.com>
16343
16344         * fold-const.c (fold_unary): Rename local variable and to and_expr.
16345
16346         * c-opts.c (c_common_handle_option): For -Wc++-compat set
16347         cpp_opts->warn_cxx_operator_names.
16348
16349 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16350
16351         PR tree-opt/38865
16352         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
16353         is returns NULL and OP is a VCE, look through the VCE.
16354
16355 2009-06-12  Ian Lance Taylor  <iant@google.com>
16356
16357         PR bootstrap/40430
16358         * collect2.c (main): Use CONST_CAST2 in code inside #if
16359         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
16360
16361 2009-06-12  Joey Ye  <joey.ye@intel.com>
16362
16363         PR middle-end/39146
16364         * cfgexpand.c (get_decl_align_unit): Update
16365         max_used_stack_slot_alignment with align instead of
16366         stack_alignment_needed.
16367
16368         * function.c (assign_stack_local_1): Update
16369         max_used_stack_slot_alignment with alignment_in_bits instead
16370         of stack_alignment_needed.
16371         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
16372         here.
16373
16374 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
16375
16376         * dwarf2out.c (last_var_location_insn): New variable.
16377         (dwarf2out_end_epilogue): Clear last_var_location_insn.
16378         (dwarf2out_var_location): Don't record anything after last real
16379         insn.  Only change labels if there were any real instructions
16380         in between last note and this one, or if changed sections.
16381
16382 2009-06-11  Richard Henderson  <rth@redhat.com>
16383
16384         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
16385         note when storing the frame pointer in a register.
16386         (FRP): Don't redefine to nothing for epilogue.
16387         (alpha_expand_epilogue): Mark register and sp restores.
16388         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
16389
16390         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
16391         when gen_lowpart is needed.
16392
16393 2009-06-11  Richard Henderson  <rth@redhat.com>
16394
16395         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
16396
16397         * dwarf2out.c (need_data_align_sf_opcode): New.
16398         (div_data_align): Move earlier.
16399         (def_cfa_1, reg_save): Use it.
16400
16401 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
16402
16403         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
16404         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
16405         (ix86_handle_option): Handle OPT_mcrc32.
16406         (ix86_target_string): Add -mcrc32.
16407         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
16408
16409         * config/i386/i386.h (TARGET_CRC32): New.
16410
16411         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
16412         (sse4_2_crc32di): Likewise.
16413
16414         * config/i386/i386.opt (mcrc32): New.
16415
16416         * doc/invoke.texi: Document -mcrc32.
16417
16418 2009-06-11  Richard Henderson  <rth@redhat.com>
16419
16420         * common.opt (gdwarf-): Accept a version number.
16421         * doc/invoke.texi (gdwarf-): Update docs.
16422         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
16423         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
16424         version level, and record it.
16425
16426         * dwarf2.h (DW_CIE_VERSION): Remove.
16427         * dwarf2out.c (DWARF_VERSION): Remove.
16428         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
16429         (output_call_frame_info): Use CIE version 3 for dwarf3,
16430         or if the return register column is out of range for version 1.
16431         (dwarf_stack_op_name): Add all dwarf3 values.
16432         (DEBUG_PUBTYPES_SECTION): New.
16433         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
16434         encoding change for dwarf3.
16435         (output_die) [dw_val_class_die_ref]: Likewise.
16436         (output_compilation_unit_header): Emit correct version for dwarf3.
16437         (output_line_info): Likewise.
16438         (output_pubnames): Update for DWARF_VERSION removal.
16439         (output_aranges): Likewise.
16440         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
16441         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
16442         (dwarf2out_finish): Likewise.
16443
16444 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
16445
16446         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
16447         in r148403.
16448
16449 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
16450
16451         PR c/39252
16452         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
16453         * builtins.c (expand_builtin_unreachable): New function.
16454         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
16455         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
16456         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
16457         successors.
16458         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
16459         searching for missing barriers.
16460
16461 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16462
16463         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
16464         when -fprofile-generate* was passed.
16465         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
16466
16467 2009-06-11  Anthony Green  <green@moxielogic.com>
16468
16469         * config/moxie/moxie.md: Define length attribute for all instructions.
16470         (rCC): Define.
16471         (*b<cond:code>): Support limited branch ranges for new PC-relative
16472         branch instructions.
16473         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
16474
16475 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
16476
16477         * config/i386/i386.c (min_insn_size): Use get_attr_length
16478         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
16479         For __asm return 0.
16480
16481         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
16482         instead of emit_insn_before.
16483
16484 2009-06-10  Ian Lance Taylor  <iant@google.com>
16485
16486         PR bootstrap/40408
16487         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
16488         GIMPLE_SWITCH.
16489
16490 2009-06-10  Revital Eres  <eres@il.ibm.com>
16491
16492         * passes.c (init_optimization_passes): Reschedule
16493         predictive-commoning pass before complete unroll pass.
16494
16495 2009-06-10  Martin Jambor  <mjambor@suse.cz>
16496
16497         * cgraph.c (cgraph_node_can_be_local_p): New function.
16498         (cgraph_make_node_local): New function.
16499         * cgraph.h (cgraph_node_can_be_local_p): Declare.
16500         (cgraph_make_node_local): Declare.
16501
16502 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
16503
16504         * tree.h (tree_base): Add packed_flag and user_align fields.
16505         Decrease size of spare field.
16506         (TYPE_USER_ALIGN): Use user_align from tree_base.
16507         (DECL_USER_ALIGN): Likewise.
16508         (TYPE_PACKED): Use packed_flag from tree_base.
16509         (DECL_PACKED): Likewise.
16510         (tree_type): Delete packed_flag and user_align fields.  Widen
16511         precision field.  Widen mode field and shuffle fields to align
16512         mode on an 8-bit boundary.
16513         (tree_decl_common): Delete decl_flag_1 and user_align fields.
16514         Renumber decl_flag_* fields.  Fix comments.  Widen
16515         decl_common_unused field.
16516         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
16517         (DECL_EXTERNAL): Likewise.
16518         (DECL_BIT_FIELD): Likewise.
16519         (DECL_NONADDRESSABLE_P): Likewise.
16520         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
16521         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
16522
16523 2009-06-10  Ian Lance Taylor  <iant@google.com>
16524
16525         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
16526         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
16527         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
16528         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
16529         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
16530         DEF_VEC_ALLOC_FUNC_P.
16531         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
16532         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
16533         DEF_VEC_ALLOC_FUNC_O.
16534         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
16535         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
16536         DEF_VEC_ALLOC_FUNC_I.
16537         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
16538         (vec_stack_p_reserve_exact_1): Declare.
16539         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
16540         (vec_stack_free): Declare.
16541         (VEC_stack_alloc): Define.
16542         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
16543         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
16544         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
16545         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
16546         for void_p.
16547         (stack_vecs): New static variable.
16548         (vec_stack_p_reserve_exact_1): New function.
16549         (vec_stack_o_reserve_1): New static function.
16550         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
16551         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
16552         (vec_stack_free): New function.
16553         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
16554         (VEC_df_ref_stack_alloc): Define.
16555         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
16556         DEF_VEC_ALLOC_P_STACK.
16557         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
16558         (struct df_collection_rec): Change _vec fields to VEC.  Remove
16559         _use fields.
16560         (df_free_collection_rec): Adjust for new fields.
16561         (df_insn_rescan): Use new df_collection_rec fields.
16562         (df_notes_rescan, df_canonize_collection_rec): Likewise.
16563         (df_ref_create_structure, df_ref_record): Likewise.
16564         (df_get_conditional_uses, df_get_call_refs): Likewise.
16565         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
16566         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
16567         (df_record_exit_block_uses, df_bb_verify): Likewise.
16568         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
16569         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
16570         Remove count parameter.  Change return type to void.  Change all
16571         callers.
16572         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
16573         Remove count parameter.  Change return type to void.  Change all
16574         callers.
16575         (df_install_refs): Change old_vec parameter to VEC.  Remove count
16576         parameter.  Change all callers.
16577         (df_install_mws): Change old_vec parameter to VEC.  Remove count
16578         parameter.  Change all callers.
16579         (df_refs_verify): Change new_rec parameter to VEC.  Change call
16580         callers.
16581         (df_mws_verify): Likewise.
16582
16583 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
16584
16585         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
16586
16587 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
16588
16589         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
16590
16591 2009-06-10  Anthony Green  <green@moxielogic.com>
16592
16593         * config/moxie/crti.asm: New file.
16594         * config/moxie/crtn.asm: New file.
16595         * config/moxie/moxie.c: New file.
16596         * config/moxie/moxie.h: New file.
16597         * config/moxie/sfp-machine.h: New file.
16598         * config/moxie/moxie-protos.h: New file.
16599         * config/moxie/t-moxie: Created.
16600         * config/moxie/t-moxie-softfp: Created.
16601         * config/moxie/moxie.md: Created.
16602         * config/moxie/constraints.md: Created.
16603         * config.gcc: Add moxie support.
16604         * doc/md.texi (Machine Constraints): Add moxie constraints.
16605         * doc/contrib.texi (Contributors): Mention moxie port.
16606         * doc/install.texi (Specific): Mention the moxie port.
16607
16608 2009-06-09  Ian Lance Taylor  <iant@google.com>
16609
16610         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
16611         compiling with C++.
16612         * optabs.c (optab_table): Only use designated initializers if
16613         HAVE_DESIGNATED_INITIALIZERS is defined.
16614         (convert_optab_table): Likewise.
16615         (init_optabs): Always call init_insn_codes if
16616         HAVE_DESIGNATED_INITIALIZERS is not defined.
16617
16618 2009-06-09  Ian Lance Taylor  <iant@google.com>
16619
16620         * targhooks.c (default_builtin_vectorized_function): Change fn
16621         parameter to unsigned int.
16622         (default_builtin_vectorized_conversion): Change code parameter to
16623         unsigned int.
16624         (default_builtin_reciprocal): Change fn parameter to unsigned int.
16625         * targhooks.h: Update declarations.
16626         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
16627         parameter to unsigned int.
16628
16629         * c-typeck.c (comptypes_check_enum_int): New static function.
16630         (comptypes_internal): Add enum_and_int_p parameter.  Change all
16631         callers.
16632         (comp_target_types): Add location parameter.  Change all callers.
16633         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
16634         Change all callers.
16635         (function_types_compatible_p, type_lists_compatible_p): Likewise.
16636         (build_conditional_expr): Add colon_loc parameter.  Change all
16637         callers.
16638         (convert_for_assignment): Add location parameter.  Change all callers.
16639         * c-parser.c (c_parser_conditional_expression): Pass location of
16640         colon to build_conditional_expr.
16641         * c-tree.h (build_conditional_expr): Update declaration.
16642
16643 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
16644
16645         * graphite.c: Revert previous patch.
16646
16647 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
16648
16649         PR bootstrap/40103
16650         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
16651
16652 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
16653
16654         * tree-ssa-loop-prefetch.c
16655         (loop_prefetch_arrays): Fixed a portability problem in printf format
16656         string.
16657
16658 2009-06-09  Martin Jambor  <mjambor@suse.cz>
16659
16660         PR tree-optimization/40351
16661         * tree-sra.c (propagate_subacesses_accross_link): Check that a
16662         refrence to a potential artifical subaccess can be constructed.
16663
16664 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
16665
16666         * config/sh/sh-protos.h (sh_optimization_options): Declare.
16667         (sh_override_options): Likewise.
16668         * config/sh/sh.c: Include params.h.
16669         (sh_optimization_options): New.
16670         (sh_override_options): Likewise.
16671         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
16672         (OVERRIDE_OPTIONS): Use sh_override_options.
16673
16674 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
16675
16676         * dwarf2out.c (emit_cfa_remember): New variable.
16677         (add_fde_cfi): If emit_cfa_remember, recurse to add
16678         DW_CFA_remember_state first.
16679         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
16680         instead just set emit_cfa_remember.
16681
16682 2009-06-08  Jan Hubicka  <jh@suse.cz>
16683
16684         PR debug/40126
16685         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
16686
16687 2009-06-08  Jan Hubicka  <jh@suse.cz>
16688
16689         PR middle-end/39834
16690         * cgraphunit.c (save_inline_function_body): Do not copy transform
16691         hooks for saved inline bodies.
16692         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
16693         for given function.
16694
16695 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
16696
16697         * jump.c (returnjump_p): Handle delayed branches.  Add missing
16698         function comment.
16699
16700 2009-06-08  Jan Hubicka  <jh@suse.cz>
16701
16702         PR middle-end/40102
16703         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
16704         original node might've been modified.
16705         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
16706
16707 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
16708
16709         * tree-object-size.c (addr_object_size): Add OSI argument.
16710         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
16711         (compute_builtin_object_size, expr_object_size): Adjust callers.
16712         (plus_stmt_object_size): Call addr_object_size instead of
16713         compute_builtin_object_size.
16714
16715 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
16716             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
16717
16718         * tree-ssa-loop-prefetch.c
16719         (gather_memory_references): Introduced a counter for the number of
16720         memory references.
16721         (anything_to_prefetch_p): Introduced a counter for the number of
16722         prefetches.
16723         (is_loop_prefetching_profitable): New function with a cost model
16724         for prefetching.
16725         (loop_prefetch_arrays): Use the new cost model to determine if
16726         prefetching is profitable.
16727         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
16728         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
16729         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
16730         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
16731         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
16732         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
16733
16734 2009-06-08  Michael Matz  <matz@suse.de>
16735
16736         PR debug/40012
16737         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
16738         partitions use the same.
16739         (expand_one_var): Deal with DECL_RTL sometimes begin set also
16740         for basevars of SSA_NAMEs.
16741         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
16742         to not expand them twice.
16743         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
16744         multiple places.
16745
16746 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
16747
16748         * common.opt (fcompare-debug=, fcompare-debug-second): New.
16749         (fdump-final-insns=, gtoggle): New.
16750         * doc/invoke.texi: Document them.
16751         * final.c (rest_of_clean_state): Dump final insn stream.
16752         * gcc.c (invoke_as): Hook in -fcompare-debug.
16753         (static_spec_functions): Add compare-debug-dump-opt,
16754         compare-debug-self-opt and compare-debug-auxbase-opt.
16755         (compare_debug, compare_debug_second, compare_debug_opt): New.
16756         (switches_debug_check, n_switches_debug_check): New.
16757         (debug_auxbase_opt, debug_check_temp_file): New.
16758         (process_command): Handle -fno-compare-debug, -fcompare-debug and
16759         -fcompare-debug=*.
16760         (do_self_spec): Handle arguments after switches.
16761         (do_spec_1): Add .gk extension to temp file basenames for compare.
16762         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
16763         (cc1_options): Use it instead of normal auxbase computation for
16764         the second compare-debug compilation.
16765         (compare_files): New.
16766         (main): Set up and implement compare debug mode.
16767         (compare_debug_dump_opt_spec_function): New.
16768         (compare_debug_self_opt_spec_function): New.
16769         (compare_debug_auxbase_opt_spec_function): New.
16770         * toplev.c (process_options): Handle flag_gtoggle,
16771         flag_dump_final_insns.
16772         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
16773         during -fcompare-debug-second compilation.
16774
16775 2009-06-07  Ian Lance Taylor  <iant@google.com>
16776
16777         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
16778         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
16779
16780         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
16781         with no default node.  Change warning with %H to warning_at.
16782         Don't clear warn_switch around case checking.
16783         * doc/invoke.texi (Warning Options): Clarify distinction between
16784         -Wswitch and -Wswitch-enum.
16785
16786 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16787
16788         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
16789
16790 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16791
16792         * gbl-ctors.h: Add header guard.
16793
16794 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16795
16796         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
16797         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
16798         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
16799         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
16800         prototypes for removed functions.
16801         (expressions_equal_p): Move to ...
16802         * tree-ssa-sccvn.h: ... here and ...
16803         * matrix-reorg.c: ... adjust includes.
16804
16805 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16806
16807         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
16808
16809 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16810
16811         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
16812         (finish_function): Remove erroneous whitespace.
16813
16814 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16815
16816         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
16817         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
16818
16819 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16820
16821         * errors.c (internal_error): Commentary typo fix.
16822         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
16823         * tree-ssa-pre.c: Ditto.
16824
16825 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16826
16827         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
16828         them is supposed to hold actual statements.
16829
16830 2009-06-06  Ian Lance Taylor  <iant@google.com>
16831
16832         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
16833         empty statements can now have attributes.
16834
16835 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
16836
16837         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
16838         * config/mips/mips.md: Ditto.
16839
16840 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
16841
16842         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
16843         _RELOCATABLE.
16844         (__eabi_uconvert): Likewise.
16845
16846 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
16847
16848         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
16849         CFI_* definitions with IN_GCC.
16850
16851 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
16852
16853         * xcoffout.h (xcoffout_source_line): Update prototype.
16854
16855 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16856
16857         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
16858         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
16859
16860 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
16861
16862         PR middle-end/40340
16863         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
16864         inlined_function_outer_scope_p blocks for artificial inlines
16865         even at -g0/-g1.
16866         * tree.c (tree_nonartificial_location): Rewrite using
16867         block_nonartificial_location.
16868
16869 2009-06-05  Revital Eres  <eres@il.ibm.com>
16870             Leehod Baruch  <leehod@il.ibm.com>
16871
16872         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
16873         (expand_expr_real_1): Remove comment.
16874         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16875         Vectorize misaligned access when the target supports it.
16876         (vect_supportable_dr_alignment): Check for unaligned access support.
16877         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
16878         and remove asset.
16879
16880 2009-06-05  Julian Brown  <julian@codesourcery.com>
16881
16882         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
16883         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
16884
16885 2009-06-05  Richard Guenther  <rguenther@suse.de>
16886
16887         PR bootstrap/40350
16888         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
16889         as possibly unused.
16890
16891 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
16892
16893         * config/s390/s390.c (global_not_special_regno_p): New static inline.
16894         (save_gprs): Don't tell unwinder when a global register is saved.
16895         (s390_emit_epilogue): Emit needed epilogue unwind info.
16896
16897 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
16898
16899         * dwarf2out.c (deferred_asm_name): New.
16900         (add_name_and_src_coords_attributes): Defer creation of
16901         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
16902         computed yet.
16903         (move_linkage_attr): New.
16904         (dwarf2out_finish): Revisit deferrals and emit attributes at the
16905         right place.
16906
16907 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
16908
16909         * tree-nested.c (finalize_nesting_tree_1): Declare the
16910         frame_decl in the binding tree.
16911
16912 2009-06-04  Cary Coutant  <ccoutant@google.com>
16913
16914         * basic-block.h (struct basic_block_def): Add discriminator field.
16915         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
16916         callers.
16917         * debug.c (do_nothing_debug_hooks): Add additional entry.
16918         (debug_nothing_int_charstar_int): New function.
16919         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
16920         (debug_nothing_int_charstar_int): New declaration.
16921         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
16922         discriminator value in .loc directive.
16923         * final.c (last_discriminator): New variable.
16924         (discriminator): New variable.
16925         (final_start_function): Initialize above variables, pass current
16926         discriminator to debug hook.
16927         (notice_source_line): Check for discriminator change.
16928         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
16929         * sdbout.c (sdbout_source_line): New parameter.
16930         * tree-cfg.c (struct locus_discrim_map): New structure type.
16931         (discriminator_per_locus): New hash table.
16932         (build_gimple_cfg): Allocate and free discriminator hash table.
16933         (make_edges): Call assign_discriminator.
16934         (locus_map_hash): New function.
16935         (locus_map_eq): New function.
16936         (next_discriminator_for_locus): New function.
16937         (same_line_p): New function.
16938         (assign_discriminator): New function.
16939         (make_cond_expr_edges): Call assign_discriminator.
16940         (make_gimple_switch_edges): Likewise.
16941         (first_non_label_stmt): New function.
16942         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
16943         all callers.
16944         * xcoffout.c (xcoffout_source_line): Add new parameter.
16945
16946         * configure.ac (gcc_cv_as_discriminator): New configury check for
16947         gas support for discriminator.
16948         * configure: Regenerate.
16949         * config.in: Regenerate.
16950
16951 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16952
16953         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
16954         val after checking for integers.
16955
16956 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
16957
16958         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
16959         X64_REGPARM_MAX.
16960         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
16961         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
16962         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
16963         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
16964         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
16965         X64_SSE_REGPARM_MAX.
16966         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
16967         X64_SSE_REGPARM_MAX.
16968
16969 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
16970
16971         * gcc.c (report_times_to_file): New.
16972         (execute): Implement it.
16973         (process_command): Support -time=.
16974         * doc/invoke.texi: Document it.
16975
16976 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
16977
16978         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
16979         that have value exprs.
16980
16981 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
16982
16983         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
16984         declarations for constants until...
16985         (dw2_output_indirect_constant_1): ... this point.
16986
16987 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
16988
16989         PR target/10242
16990         * arm.md (arm_addsi3): Don't try to split an add with an
16991         eliminable register until after reload has completed.
16992
16993 2009-06-03  Ian Lance Taylor  <iant@google.com>
16994
16995         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
16996         * genattrtab.c (write_length_unit_log): Likewise.
16997         * genchecksum.c (dosum): Likewise.
16998         * gengtype.c (write_rtx_next): Likewise.
16999         (finish_root_table, write_roots): Likewise.
17000         * gimple.c (gimple_ops_offset_): Likewise.
17001         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
17002         * config/arc/arc.c (arc_attribute_table): Likewise.
17003         * config/arm/arm.c (arm_attribute_table): Likewise.
17004         * config/avr/avr.c (avr_attribute_table): Likewise.
17005         * config/crx/crx.c (crx_attribute_table): Likewise.
17006         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
17007         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
17008         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
17009         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
17010         * config/sh/sh.c (sh_attribute_table): Likewise.
17011         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
17012         * config/spu/spu.c (spu_attribute_table): Likewise.
17013         * config/v850/v850.c (v850_attribute_table): Likewise.
17014
17015         * config/alpha/alpha.c (vms_attribute_table): Make static.
17016         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
17017         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
17018         * config/mips/mips.c (mips_attribute_table): Likewise.
17019
17020         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
17021         $(SYSTEM_H).
17022         (cc1-checksum.o): Likewise.
17023
17024 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
17025
17026         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
17027
17028 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
17029
17030         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
17031         insn if it is changing sp.  Use gen_add3_insn instead of
17032         conditionally gen_addsi3 and gen_adddi3.
17033         (offset_below_red_zone_p): New static inline function.
17034         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
17035         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
17036         * config/rs6000/ppc-asm.h: Include auto-host.h.
17037         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
17038         CFI_RESTORE): Define.
17039         * config/rs6000/crtresxgpr.asm: Add unwind info.
17040         * config/rs6000/crtresxfpr.asm: Likewise.
17041         * config/rs6000/crtresgpr.asm: Likewise.
17042         * config/rs6000/crtresfpr.asm: Likewise.
17043         * config/rs6000/crtsavgpr.asm: Likewise.
17044         * config/rs6000/crtsavfpr.asm: Likewise.
17045
17046         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
17047         argument of DWARF2_FRAME_REG_OUT macros.
17048
17049 2009-06-03  Julian Brown  <julian@codesourcery.com>
17050
17051         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
17052         words or less (including TImode) in core registers.
17053
17054 2009-06-03  Richard Guenther  <rguenther@suse.de>
17055
17056         PR middle-end/40328
17057         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
17058
17059 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
17060
17061         * statistics.c (statistics_counter_event): Do not record event
17062         in pass dump if its number == -1.
17063         (curr_statistics_hash): Add assert that we never get passes
17064         with static number == -1.
17065
17066 2009-06-03  Richard Guenther  <rguenther@suse.de>
17067             Andrey Belevantsev  <abel@ispras.ru>
17068
17069         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
17070         non-BLKmode arrays addressable.
17071
17072 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
17073
17074         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
17075         * config/m68k/m68k.h: ... here.
17076
17077 2009-06-03  Martin Jambor  <mjambor@suse.cz>
17078
17079         PR tree-optimization/40323
17080         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
17081         assignment.
17082
17083 2009-06-03  Richard Guenther  <rguenther@suse.de>
17084
17085         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
17086         consistently.
17087
17088 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
17089
17090         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
17091         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
17092         JUMP_TABLE_DATA_P where applicable.
17093         * config/sh/sh.c: Ditto.
17094         * config/sh/sh.h: Ditto.
17095         * config/sh/sh.md: Ditto.
17096         * config/sh/symbian.c: Ditto.
17097
17098 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
17099
17100         * config/i386/driver-i386.c (describe_cache): Optimize
17101         concatenation of strings.  Use snprintf instead of sprintf.
17102         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
17103         target when not compiling with GCC.
17104
17105 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
17106
17107         * config/sh/sh.c: Revert last change.
17108         (sh_expand_epilogue): Emit a blockage insn before the frame
17109         pointer adjustment unconditionally.
17110
17111 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
17112
17113         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
17114         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
17115         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
17116         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
17117         to COLLECT_GCC_OPTIONS.
17118
17119 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
17120
17121         * collect2.c (target_system_root): New variable.
17122         (main): Handle --sysroot=.
17123         (ignore_library): Strip the sysroot from the library path.
17124
17125 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
17126
17127         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
17128         (collect2.o): Depend on collect2-aix.h.
17129         (collect2-aix.o): New rule.
17130         * collect2-aix.h: New file.
17131         * collect2-aix.c: Likewise.
17132         * collect2.c: Include collect2-aix.h.  Don't undefine
17133         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
17134         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
17135         Use TARGET_AIX_VERSION instead of _AIX51.
17136         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
17137         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
17138         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
17139         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
17140         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
17141
17142 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
17143
17144         * collect2.c (ignore_library): Avoid premature post-increment
17145         and null deference.
17146
17147 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
17148
17149         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
17150         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
17151         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
17152         CROSS_DIRECTORY_STRUCTURE too.
17153         (LINK_LIBG_SPEC): Likewise.
17154         (LIB_SPEC): Add %R to sysroot paths.
17155         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
17156         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
17157         * config/rs6000/aix51.h: As for aix43.h.
17158         * config/rs6000/aix52.h: Likewise.
17159         * config/rs6000/aix53.h: Likewise.
17160         * config/rs6000/aix61.h: Likewise.
17161         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
17162         to the beginning of sysroot paths.
17163
17164 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
17165
17166         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
17167         INSN_LISTs that are out of the REG_NOTE range.
17168
17169 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
17170
17171         * loop-unroll.c (struct iv_to_split): Add pointer to next.
17172         (struct var_to_expand): Likewise.
17173         (struct opt_info): Add head and tail for linked lists of the above.
17174         (analyze_insn_to_expand_var): Initialize next.
17175         (analyze_iv_to_split_insn): Likewise.
17176         (analyze_insns_in_loop): Create linked lists.
17177         (allocate_basic_variable): Simplify for use without hash table.
17178         (insert_var_expansion_initialization): Likewise, make it type-safer.
17179         (combine_var_copies_in_loop_exit): Likewise.
17180         (apply_opt_in_copies): Walk lists rather than hash tables.
17181         (release_var_copies): Simplified and inlined by hand into...
17182         (free_opt_info): ... this function.
17183
17184 2009-06-02  Richard Guenther  <rguenther@suse.de>
17185
17186         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
17187         for field decls.
17188
17189 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
17190
17191         * cfgexpand.c (gimple_expand_cfg): Discard the source location
17192         only for builtins that are not overridden.
17193
17194 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
17195
17196         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
17197         label string.
17198
17199 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
17200
17201         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
17202
17203 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
17204
17205         * combine.c (move_deaths): Compare LUIDs within the same BB only.
17206
17207 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
17208
17209         * common.opt (fdump-unnumbered-links): New.
17210         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
17211         * print-rtl.c (flag_dump_unnumbered_links): New.
17212         (print_rtx): Test it.
17213
17214 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
17215
17216         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
17217         push/pop multiple to 8-byte alignment.
17218
17219 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
17220
17221         * config/i386/i386.c (queued_cfa_restores): New static variable.
17222         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
17223         functions.
17224         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
17225         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
17226         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
17227         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
17228         note unconditionally.
17229         (ix86_emit_restore_regs_using_mov): Likewise.
17230         (ix86_emit_restore_sse_regs_using_mov): Likewise.
17231         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
17232         it through to ix86_emit_restore_reg_using_pop.
17233         (ix86_emit_leave): Add RED_OFFSET argument.  Call
17234         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
17235         instead of adding REG_CFA_OFFSET note unconditionally.
17236         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
17237         the above functions.  Call ix86_add_queued_cfa_restore_notes when
17238         needed.
17239
17240         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
17241         force output of the label even for dwarf2out_do_cfi_asm.
17242         (add_fde_cfi): If -g2 and above and cfi might change CFA,
17243         force creation of CFI label and chain DW_CFA_set_loc jumping to it
17244         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
17245         caller.
17246         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
17247         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
17248         dwarf2out_cfi_label callers.
17249         * tree.h (dwarf2out_cfi_label): Adjust prototype.
17250         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
17251         Adjust dwarf2out_cfi_label callers.
17252         * config/vax/vax.c (vax_output_function_prologue): Likewise.
17253
17254         * config/i386/i386.h (struct machine_cfa_state,
17255         struct machine_function): Guard with ifndef USED_FOR_TARGET
17256         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
17257
17258         PR other/40024
17259         * emutls.c (__emutls_get_address): Change arr->size to mean number
17260         of allocated arr->data entries instead of # of slots + 1.
17261
17262         PR middle-end/40316
17263         * recog.c (peep2_reinit_state): New function.
17264         (peephole2_init_state): Use it at the end of a basic block and also
17265         when seeing a RTX_FRAME_RELATED_P insn.
17266
17267 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
17268
17269         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
17270         fixuns_truncrfdi2): New.
17271         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
17272         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
17273         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
17274         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
17275         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
17276         *recip_approx): Remove.
17277         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
17278         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
17279         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
17280         move to div.md.
17281         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
17282         setf_exp_rf): New.
17283
17284 2009-06-01  Ian Lance Taylor  <iant@google.com>
17285
17286         * attribs.c (register_attribute): Use CONST_CAST.
17287         * collect2.c (main): Use CONST_CAST2.
17288         (scan_prog_file): Likewise.
17289         * gcc.c (process_command, main): Likewise.
17290         * toplev.c (toplev_main): Likewise.
17291
17292         * c-typeck.c (handle_warn_cast_qual): New static function,
17293         partially broken out of build_c_cast.
17294         (build_c_cast): Call handle_warn_cast_qual.
17295         * doc/invoke.texi (Warning Options): Document new effect of
17296         -Wcast-qual.
17297
17298 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
17299
17300         * diagnostic.c (diagnostic_build_prefix): Always print columns.
17301         (diagnostic_report_current_module): Print columns.
17302         * common.opt (flag_show_column): Enable by default.
17303
17304 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
17305
17306         * alias.c (find_base_term): Check for NULL term before returning.
17307
17308 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
17309
17310         Revert due to PR40320:
17311         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
17312         * calls.c (emit_library_call_value_1): Don't force_operand for move
17313         and push insns.
17314
17315 2009-06-01  Olivier Hainque  <hainque@adacore.com>
17316             Eric Botcazou  <ebotcazou@adacore.com>
17317
17318         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
17319         to be processed as a bitfield for constructor output purposes.
17320         * output.h (initializer_constant_valid_for_bitfield_p): Declare
17321         new function.
17322         * varasm.c (oc_local_state): New type, output_constructor
17323         local state to support communication with helpers.
17324         (oc_outer_state): New type, output_constructor outer state of
17325         relevance in recursive calls.
17326         (output_constructor_array_range): New output_constructor helper,
17327         extracted code for an array range element.
17328         (output_constructor_regular_field): New output_constructor helper,
17329         extracted code for an element that is not a bitfield.
17330         (output_constructor_bitfield): New output_constructor helper,
17331         extracted code for a bitfield element.  Accept an OUTER state
17332         argument for recursive processing.  Recurse on record or array
17333         CONSTRUCTOR values, possibly past noop conversions.
17334         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
17335         VALUE is a valid constant-valued expression for use in a static
17336         bit-field initializer.
17337         (output_constructor): Rework to use helpers.  Accept and honor an
17338         OUTER state argument for recursive calls.  Return total size.  Be
17339         prepared for nested constructors initializing bitfields.
17340         (output_constant): Feed OUTER in calls to output_constructor.
17341
17342 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
17343
17344         * calls.c (emit_library_call_value_1): Don't force_operand for move
17345         and push insns.
17346
17347 2009-06-01  Nick Clifton  <nickc@redhat.com>
17348
17349         * doc/invoke.texi (IA-64 Options): Fix typo.
17350
17351 2009-06-01  Ira Rosen  <irar@il.ibm.com>
17352
17353         PR tree-optimization/39129
17354         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
17355         printed message.
17356         (vect_do_peeling_for_loop_bound): Use
17357         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
17358         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
17359         (vect_loop_versioning): Likewise.
17360         (vect_create_cond_for_alias_checks): Fix indentation.
17361         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
17362         macros.
17363         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
17364         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
17365         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
17366         "control flow in loop".
17367         (vect_estimate_min_profitable_iters): Use
17368         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
17369         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
17370         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
17371         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
17372         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
17373         statement belongs to a group of strided accesses with the exact code
17374         check.
17375         (vectorizable_load): Likewise.
17376         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
17377         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
17378
17379 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
17380
17381         * config/freebsd-stdint.h: New file.
17382         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
17383         Add freebsd-stdint.h to tm_file.
17384
17385 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
17386
17387         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
17388         (thumb2_extendhidi2): Likewise.
17389
17390 2009-05-31  Ian Lance Taylor  <iant@google.com>
17391
17392         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
17393
17394 2009-05-31  Ian Lance Taylor  <iant@google.com>
17395
17396         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
17397         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
17398         (ipa-reference.o): Depend upon gt-ipa-reference.h.
17399
17400 2009-05-31  Jason Merrill  <jason@redhat.com>
17401
17402         * tree-pretty-print.c (print_call_name): Take the callee, not the
17403         call itself.  Make non-static.  Use dump_function_name for functions.
17404         (dump_generic_node): Adjust.
17405         * diagnostic.h: Declare print_call_name.
17406         * gimple-pretty-print.c (dump_gimple_call): Use it.
17407
17408 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
17409
17410         * config/sh/sh.md (ashldi3_std): New define_expand.
17411         (ashldi3): Use it.
17412
17413 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
17414
17415         PR target/40313
17416         * config/sh/sh.c: Include debug.h.
17417         (sh_expand_epilogue): Emit a blockage insn before the frame
17418         pointer adjustment also when dwarf2out_do_frame returns true.
17419
17420 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
17421
17422         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
17423         (thumb2_extendqidi2): New pattern.
17424
17425 2009-05-31  Ira Rosen  <irar@il.ibm.com>
17426
17427         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
17428         mark phis for renaming.
17429         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
17430         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
17431         Call mark_sym_for_renaming.
17432         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
17433         * tree-vect-loop.c (vect_transform_loop): Remove
17434         vect_memsyms_to_rename initialization and a call to
17435         mark_set_for_renaming.
17436
17437 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
17438
17439         PR middle-end/40304
17440         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
17441         frame related even if !set_cfa && style < 0.
17442
17443 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
17444
17445         * config/i386/mingw-tls.c: New file.
17446         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
17447         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
17448         defining _WIN32 but not __CYGWIN__.
17449
17450 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17451
17452         * configure.ac: Add MPC support.
17453
17454         * config.in, configure: Regenerate.
17455
17456 2009-05-29  Richard Henderson  <rth@redhat.com>
17457
17458         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
17459         NOTE_INSN_BASIC_BLOCK.
17460         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
17461         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
17462         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
17463         to be deleted.
17464         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
17465         add in_use field.
17466         (add_cfi): Disable check redefining cfa away from drap.
17467         (lookup_cfa_1): Add remember argument; handle remember/restore.
17468         (lookup_cfa): Pass remember argument.
17469         (cfa_remember): New.
17470         (compute_barrier_args_size_1): Remove sibcall check.
17471         (dwarf2out_frame_debug_def_cfa): New.
17472         (dwarf2out_frame_debug_adjust_cfa): New.
17473         (dwarf2out_frame_debug_cfa_offset): New.
17474         (dwarf2out_frame_debug_cfa_register): New.
17475         (dwarf2out_frame_debug_cfa_restore): New.
17476         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
17477         (dwarf2out_begin_epilogue): New.
17478         (dwarf2out_frame_debug_restore_state): New.
17479         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
17480         DW_CFA_restore_state.
17481         (output_cfi_directive): Likewise.
17482         (convert_cfa_to_fb_loc_list): Likewise.
17483         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
17484         * dwarf2out.h: Update.
17485         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
17486         (copy_insn_1): Early out for null.
17487         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
17488         and dwarf2out_frame_debug_restore_state.
17489         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
17490         (prologue_insn_hash, epilogue_insn_hash): New.
17491         (free_after_compilation): Adjust freeing accordingly.
17492         (record_insns): Create hash table if needed; push insns into
17493         hash instead of array.
17494         (maybe_copy_epilogue_insn): New.
17495         (contains): Search hash table instead of array.
17496         (sibcall_epilogue_contains): Remove.
17497         (thread_prologue_and_epilogue_insns): Split eh_return insns
17498         and mark them as epilogues.
17499         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
17500         scanning in terms of basic blocks.
17501         * insn-notes.def (CFA_RESTORE_STATE): New.
17502         * jump.c (returnjump_p_1): Accept EH_RETURN.
17503         (eh_returnjump_p_1, eh_returnjump_p): New.
17504         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
17505         CFA_REGISTER, CFA_RESTORE): New.
17506         * rtl.def (EH_RETURN): New.
17507         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
17508
17509         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
17510         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
17511
17512         * config/i386/i386.c (gen_push): Update cfa state.
17513         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
17514         add a CFA_ADJUST_CFA note.
17515         (ix86_dwarf_handle_frame_unspec): Remove.
17516         (ix86_expand_prologue): Update cfa state.
17517         (ix86_emit_restore_reg_using_pop): New.
17518         (ix86_emit_restore_regs_using_pop): New.
17519         (ix86_emit_leave): New.
17520         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
17521         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
17522         * config/i386/i386.h (struct machine_cfa_state): New.
17523         (ix86_cfa_state): New.
17524         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
17525         (eh_return_internal): Merge from eh_return_<mode>,
17526         use eh_return rtx, split w/ epilogue.
17527
17528 2009-05-29  Ian Lance Taylor  <iant@google.com>
17529
17530         * builtins.c (validate_gimple_arglist): Don't use va_arg with
17531         enum type.
17532         * calls.c (emit_library_call_value_1): Likewise.
17533
17534         * c-typeck.c (c_build_va_arg): New function.
17535         * c-tree.h (c_build_va_arg): Declare.
17536         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
17537         instead of build_va_arg.
17538
17539 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
17540
17541         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
17542         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
17543         (ptr_difference_cost): Use affine combinations to compute it.
17544         (difference_cost): Likewise.
17545         (get_computation_cost_at): Compute more accurate cost for addresses
17546         if the ratio is a multiplier allowed in addresses.
17547         For non-addresses, consider that an additional offset or symbol is
17548         added only once.
17549
17550 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
17551
17552         * config/i386/i386.c (ix86_decompose_address): Avoid useless
17553         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
17554
17555         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
17556         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
17557         (prefix_rex): For UNIT_MMX don't imply the prefix by default
17558         if MODE_DI.
17559         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
17560         to 1 for TYPE_SSE{IADD1,CVT1}.
17561         (prefix_vex_imm8): Removed.
17562         (length_vex): Only pass 1 as second argument to
17563         ix86_attr_length_vex_default if prefix_extra is 0.
17564         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
17565         (length): For prefix vex computation use length_immediate
17566         attribute instead of prefix_vex_imm8.
17567         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
17568         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
17569         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
17570         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
17571         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
17572         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
17573         a space in between the operands.
17574         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
17575         if one operand is 0xff and the other one si, di, bp or sp.
17576         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
17577         other one si, di, bp or sp.
17578         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
17579         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
17580         type and mode attributes.
17581         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
17582         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
17583         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
17584         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
17585         prefix_data16 attribute iff MODE_DF.
17586         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
17587         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
17588         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
17589         constm128_operand in length_immediate computation.
17590         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
17591         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
17592         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
17593         length_immediate attribute to 1.
17594         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
17595         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
17596         for certain alternatives.
17597         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
17598         prefix_data16 attribute if MODE_V1DF.
17599         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
17600         length_immediate to 1.
17601         (set_got_rex64, set_rip_rex64): Remove length attribute, set
17602         length_address to 4, set mode attribute to MODE_DI.
17603         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
17604         (fxam<mode>2_i387): Set length attribute to 4.
17605         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
17606         *prefetch_3dnow_rex): Override length_address attribute.
17607         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
17608         attributes.
17609         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
17610         (constm128_operand): Removed.
17611         * config/i386/i386.c (memory_address_length): For
17612         disp && !index && !base in 64-bit mode account for SIB byte if
17613         print_operand_address can't optimize disp32 into disp32(%rip)
17614         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
17615         for fs: or gs: segment.
17616         (ix86_attr_length_immediate_default): When checking if shortform
17617         is possible, truncate immediate to the length of the non-shortened
17618         immediate.
17619         (ix86_attr_length_address_default): Ignore MEM_P operands
17620         with X constraint.
17621         (ix86_attr_length_vex_default): Only check for DImode on
17622         GENERAL_REG_P operands.
17623         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
17624         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
17625         (sse_cvttps2pi): Clear prefix_rep attribute.
17626         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
17627         attribute.
17628         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
17629         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
17630         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
17631         iff operand 2 is const_int_operand.
17632         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
17633         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
17634         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
17635         instead of vex.
17636         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
17637         prefix_data16.
17638         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
17639         prefix_data16 attribute for movlpd and movhpd instructions.
17640         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
17641         length_immediate for shufpd instruction.
17642         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
17643         (avx_cmpp<avxmodesuffixf2c><mode>3,
17644         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
17645         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
17646         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
17647         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
17648         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
17649         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
17650         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
17651         prefix_data16 attribute for the first alternative to 1.
17652         (*avx_loadlps): Override length_immediate for the first alternative.
17653         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
17654         attributes for second alternative.
17655         (*vec_concatv2sf_sse4_1): Override length_immediate and
17656         prefix_data16 attributes for second alternative.
17657         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
17658         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
17659         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
17660         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
17661         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
17662         prefix_data16 and length_immediate to 1.
17663         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
17664         to 1.
17665         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
17666         prefix_extra attribute for variants that don't have 0f prefix alone.
17667         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
17668         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
17669         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
17670         *sse4_1_pextrd): Set length_immediate to 1.
17671         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
17672         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
17673         to 1.
17674         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
17675         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
17676         length_immediate to 1 for second alternative.
17677         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
17678         prefix_extra and length_immediate attributes for the first
17679         alternative.
17680         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
17681         first alternative.
17682         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
17683         to 1 for the first and third alternative.
17684         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
17685         alternative.
17686         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
17687         attribute.
17688         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
17689         attribute to 0.
17690         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
17691         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
17692         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
17693         *avx_psign<mode>3): Set prefix_extra attribute to 1.
17694         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
17695         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
17696         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
17697         ssse3_psign<mode>3): Override prefix_rex attribute.
17698         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
17699         (ssse3_palignrti): Override length_immediate to 1.
17700         (ssse3_palignrdi): Override length_immediate to 1, override
17701         prefix_rex attribute.
17702         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
17703         (sse4a_extrqi): Override length_immediate to 2.
17704         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
17705         (sse4a_insertq): Override prefix_data16 to 0.
17706         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
17707         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
17708         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
17709         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
17710         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
17711         and length_immediate to 1.
17712         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
17713         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
17714         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
17715         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
17716         and length_immediate to 1.
17717         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
17718         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
17719         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
17720         avx_ptest256): Override prefix_extra to 1.
17721         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
17722         Override prefix_data16 and length_immediate to 1.
17723         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
17724         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
17725         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
17726         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
17727         prefix_data16 to 0 and prefix_extra to 2.
17728         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
17729         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
17730         attribute.
17731         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
17732         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
17733         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
17734         and prefix_extra to 2.
17735         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
17736         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
17737         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
17738         avx_vpermilvar<mode>3,
17739         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
17740         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
17741         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
17742         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
17743         Override prefix_extra to 1.
17744         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
17745         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
17746         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
17747         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
17748         prefix_extra and length_immediate to 1.
17749         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
17750         modrm to 0.
17751         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
17752         to 1 for the first alternative.
17753         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
17754         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
17755         cases.
17756         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
17757         *movv2sf_internal_avx, *movv2sf_internal): Override
17758         prefix_rep attribute for certain alternatives.
17759         (*mov<mode>_internal): Override prefix_rep or prefix_data16
17760         attributes for certain alternatives.
17761         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
17762         attributes for certain alternatives.
17763         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
17764         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
17765         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
17766         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
17767         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
17768         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
17769         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
17770         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
17771         length_immediate to 1 if operand 2 is const_int_operand.
17772         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
17773         *vec_extractv2si_1): Set length_immediate attribute to 1.
17774         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
17775         using old 3DNOW insn rather than SSE/3DNOW_A.
17776         (mmx_emms, mmx_femms): Clear modrm attribute.
17777
17778 2009-05-29  Martin Jambor  <mjambor@suse.cz>
17779
17780         * tree-sra.c:  New implementation of SRA.
17781
17782         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
17783         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
17784         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
17785         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
17786         (SRA_MAX_STRUCTURE_COUNT): Removed.
17787         (SRA_FIELD_STRUCTURE_RATIO): Removed.
17788         * doc/invoke.texi (sra-max-structure-size): Removed.
17789         (sra-field-structure-ratio): Removed.
17790
17791 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
17792
17793         PR middle-end/40291
17794         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
17795         before expansion.
17796
17797 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
17798
17799         PR rtl-optimization/40101
17800         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
17801         seqno.  Adjust comment.
17802         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
17803         inserting bookkeeping before a jump, the jump is not scheduled.
17804         When no positive seqno found, provide a value.  Add comment.
17805
17806 2009-05-29  Richard Guenther  <rguenther@suse.de>
17807
17808         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
17809         short-cutting on the first component.
17810
17811 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
17812
17813         PR middle-end/39958
17814         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
17815         for trees other than decls/types.
17816
17817 2009-05-29  Richard Guenther  <rguenther@suse.de>
17818
17819         * tree-ssa-operands.c (get_expr_operands): Do not handle
17820         INDIRECT_REFs in the handled-component case.  Remove
17821         unused get_ref_base_and_extent case.
17822         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
17823         tree_low_cst and host_integerp where possible.
17824         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
17825         codes for equivalence.
17826         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
17827
17828 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
17829
17830         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
17831         to tmake_file for i[34567]86-*-cygwin*.
17832
17833 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
17834
17835         PR target/40017
17836         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
17837         (altivec_categorize_keyword, init_vector_keywords,
17838         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
17839         similar to bool.
17840
17841 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
17842
17843         * tree.c (handle_dll_attribute): Check if node is
17844         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
17845
17846 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
17847
17848         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
17849         component.
17850         (thumb2_zero_extendqidi2): Likewise.
17851
17852 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
17853
17854         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
17855         instead of gen_movrt.
17856         * config/sh/sh.md (movrt): Remove.
17857
17858 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
17859
17860         * doc/invoke.texi (IA-64 Options):
17861         Add -msdata, -mfused-madd, -mno-inline-float-divide,
17862         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
17863         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
17864         -msched-prefer-non-control-spec-insns,
17865         -msched-stop-bits-after-every-cycle,
17866         -msched-count-spec-in-critical-path,
17867         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
17868         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
17869         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
17870         and -msched-spec-verbose.
17871
17872 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
17873
17874         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
17875         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
17876         error if used.
17877         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
17878
17879 2009-05-28  Richard Guenther  <rguenther@suse.de>
17880
17881         * tree-ssa-alias.c (ao_ref_init): New function.
17882         (ao_ref_base): Likewise.
17883         (ao_ref_base_alias_set): Likewise.
17884         (ao_ref_alias_set): Likewise.
17885         (refs_may_alias_p_1): Change signature.
17886         (refs_may_alias_p): Adjust.
17887         (refs_anti_dependent_p): Likewise.
17888         (refs_output_dependent_p): Likewise.
17889         (call_may_clobber_ref_p_1): Change signature.
17890         (call_may_clobber_ref_p): Adjust.
17891         (stmt_may_clobber_ref_p_1): New function split out from ...
17892         (stmt_may_clobber_ref_p): ... here.
17893         (maybe_skip_until): Adjust signature.
17894         (get_continuation_for_phi): Likewise.
17895         (walk_non_aliased_vuses): Likewise.
17896         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
17897         (ao_ref_init): Declare.
17898         (ao_ref_base): Likewise.
17899         (ao_ref_alias_set): Likewise.
17900         (stmt_may_clobber_ref_p_1): Likewise.
17901         (walk_non_aliased_vuses): Adjust.
17902         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
17903         (get_ref_from_reference_ops): remove.
17904         (vn_reference_lookup_2): Adjust signature.
17905         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
17906         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
17907         (vn_reference_lookup): Adjust.
17908         (vn_reference_insert): Likewise.
17909         (vn_reference_insert_pieces): Adjust signature.
17910         (visit_reference_op_call): Adjust.
17911         * tree-ssa-pre.c (get_expr_type): Simplify.
17912         (phi_translate_1): Adjust.
17913         (compute_avail): Likewise.
17914         (translate_vuse_through_block): Do not re-build trees.
17915         (value_dies_in_block_x): Likewise.
17916         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
17917         fields.
17918         (vn_reference_lookup_pieces): Adjust declaration.
17919         (vn_reference_insert_pieces): Likewise.
17920
17921 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
17922
17923         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
17924         with checking disabled.
17925
17926 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
17927
17928         PR target/37216
17929
17930         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
17931         macro definition for support of three-operand format aligned
17932         .comm directive in assembler on cygwin/pe/mingw target OS.
17933         * configure:  Regenerate.
17934         * config.h:  Regenerate.
17935
17936         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
17937         aligned form of .comm directive if -mpe-aligned-commons is in effect.
17938         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
17939
17940         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
17941         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
17942
17943 2009-05-28  Ira Rosen  <irar@il.ibm.com>
17944
17945         PR tree-optimization/40254
17946         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
17947         in analysis of basic blocks.
17948
17949 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
17950
17951         PR middle-end/33699
17952         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
17953         * target-def.h (TARGET_CONST_ANCHOR): New macro.
17954         (TARGET_INITIALIZER): Use it.
17955         * cse.c (CHEAPER): Move it up to the other macros.
17956         (insert): Rename this ...
17957         (insert_with_costs): ... to this.  Add cost parameters.  Update
17958         function comment.
17959         (insert): New function.  Call insert_with_costs.
17960         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
17961         find_reg_offset_for_const, try_const_anchors): New functions.
17962         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
17963         when using a const-anchor.  Call insert_const_anchors.
17964         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
17965         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
17966
17967 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
17968
17969         * tree-inline.c (remap_decls): Enable nonlocalized variables
17970         when not optimizing.
17971
17972 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
17973
17974         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
17975         Simplify other tests involving optimize.
17976
17977 2009-05-27  Tom Tromey  <tromey@redhat.com>
17978
17979         * unwind-dw2.c (_Unwind_DebugHook): New function.
17980         (uw_install_context): Call _Unwind_DebugHook.
17981
17982 2009-05-27  Tom Tromey  <tromey@redhat.com>
17983
17984         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
17985
17986 2009-05-27  Ian Lance Taylor  <iant@google.com>
17987
17988         * Makefile.in (LINKER, LINKER_FLAGS): Define.
17989         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
17990         (ALL_LINKERFLAGS): Define.
17991         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
17992         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
17993         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
17994         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
17995         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
17996         $(LINKER_FOR_BUILD).
17997         (build/gcov-iov$(build_exeext)): Likewise.
17998
17999 2009-05-27  Julian Brown  <julian@codesourcery.com>
18000
18001         * gcse.c (target.h): Include.
18002         (can_assign_to_reg_without_clobbers_p): Check that the target allows
18003         copy of argument to a pseudo register.
18004
18005 2009-05-27  Diego Novillo  <dnovillo@google.com>
18006
18007         * tree-ssa-live.c (dump_scope_block): Document arguments.
18008         (dump_scope_blocks): Document.
18009         (debug_scope_blocks): New.
18010         * tree-flow.h (debug_scope_blocks): Declare.
18011
18012 2009-05-21  Denis Chertykov  <denisc@overta.ru>
18013
18014         * doc/contrib.texi (Contributors): Add myself to the list.
18015
18016 2009-05-27  Olivier Hainque  <hainque@adacore.com>
18017
18018         * expr.c (target_align): New function.  Alignment the TARGET of an
18019         assignment may be assume to have.
18020         (highest_pow2_factor_for_target): Use it instead of relying on
18021         immediate tree attributes of TARGET, not necessarily honored when
18022         intermediate bitfields are involved.
18023
18024 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
18025
18026         PR target/40266
18027         * config/i386/driver-i386.c (host_detect_local_cpu): Support
18028         AVX, SSE4, AES, PCLMUL and POPCNT.
18029
18030 2009-05-27  Diego Novillo  <dnovillo@google.com>
18031
18032         * tree-pretty-print.c (dump_location): New.
18033         (dump_generic_node): Call it.
18034         Factor code to handle BLOCK nodes ...
18035         (dump_block_node): ... here.
18036
18037 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
18038
18039         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
18040         with it.
18041         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
18042         included.
18043         * gcc-plugin.h: Include config.h and system.h.
18044         (IN_GCC): Define if not defined.
18045
18046 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
18047
18048         PR middle-end/40249
18049         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
18050         with -fno-inline.
18051
18052 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
18053
18054         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
18055         applicable.
18056         * config/m32r/m32r.h: Ditto.
18057         * config/m32r/m32r.md: Ditto.
18058         * config/m32r/predicates.md: Ditto.
18059
18060 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
18061
18062         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
18063
18064 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
18065
18066         * doc/plugins.texi
18067         (Loading plugins): typo.
18068         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
18069         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
18070         (Interacting with the GCC Garbage Collector): Added new section.
18071         (Giving information about a plugin): Added new section for
18072         PLUGIN_INFO.
18073         * ggc.h (ggc_register_root_tab): Added declaration.
18074         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
18075         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
18076         (register_callback): Improved comment in declaration.
18077         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
18078         (extra_root_vec) Added static variable for dynamic roots registration.
18079         (ggc_register_root_tab) Added new routine.
18080         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
18081         PLUGIN_GGC_MARKING event.
18082         * ggc-zone.c: Include plugin.h.
18083         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
18084         * ggc-page.c: Include plugin.h.
18085         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
18086         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
18087         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
18088         (register_callback): check lack of callbacks for
18089         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
18090         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
18091         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
18092         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
18093         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
18094         dependency on plugin.h.
18095         (plugin.o): Added dependency on ggc.h...
18096
18097 2009-05-26  Richard Guenther  <rguenther@suse.de>
18098
18099         PR middle-end/40248
18100         Revert
18101         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
18102         with mismatched comparison modes.
18103
18104         * expr.c (expand_expr_real_1): Expand the operand of a
18105         VIEW_CONVERT_EXPR in its natural mode.
18106
18107 2009-05-26  Ian Lance Taylor  <iant@google.com>
18108
18109         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
18110         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
18111         (ALL_COMPILERFLAGS): Define.
18112         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
18113         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
18114         (collect2$(exeext), collect2.o): Likewise.
18115         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
18116         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
18117         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
18118         (libbackend.o, intl.o, cppdefault.o): Likewise.
18119         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
18120         (build/%.o): Use $(COMPILER_FOR_BUILD).
18121         (build/gen%$(build_exeext)): Likewise.
18122         (build/gcov-iov$(build_exeext)): LIkewise.
18123         * config/t-darwin (darwin.o): Use $(COMPILER).
18124         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
18125         * config/t-sol2 (sol2-c.o): Likewise.
18126         (sol2.o): Likewise.
18127         * config/t-vxworks (vxworks.o): Likewise.
18128         * config/x-darwin (host-darwin.o): Likewise.
18129         * config/x-hpux (host-hpux.o): Likewise.
18130         * config/x-linux (host-linux.o): Likewise.
18131         * config/x-solaris (host-solaris.o): Likewise.
18132         * config/alpha/x-alpha (driver-alpha.o): Likewise.
18133         * config/arm/t-arm (arm-c.o): Likewise.
18134         * config/arm/t-pe (pe.o): Likewise.
18135         * config/arm/t-wince-pe (pe.o): Likewise.
18136         * config/i386/t-cygming (winnt.o): Likewise.
18137         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
18138         * config/i386/t-cygwin (cygwin1.o): Likewise.
18139         (cygwin2.o): Likewise.
18140         * config/i386/t-i386 (i386-c.o): Likewise.
18141         * config/i386/t-interix (winnt.o): Likewise.
18142         * config/i386/t-netware (netware.o): Likewise.
18143         * config/i386/t-nwld (nwld.o): Likewise.
18144         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
18145         * config/i386/x-i386 (driver-i386.o): Likewise.
18146         * config/i386/x-cygwin (host-cygwin.o): Likewise.
18147         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
18148         * config/ia64/t-ia64 (ia64-c.o): Likewise.
18149         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
18150         * config/mips/x-native (driver-native.o): Likewise.
18151         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
18152         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
18153         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
18154         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
18155         * config/score/t-score-elf (score7.o): Likewise.
18156         (score3.o): Likewise.
18157         * config/sh/t-sh (sh-c.o): Likewise.
18158         * config/sh/t-symbian (sh-c.o): Likewise.
18159         (symbian.o): Likewise.
18160         * config/spu/t-spu-elf (spu-c.o): Likewise.
18161         * config/v850/t-v850 (v850-c.o): Likewise.
18162         * config/v850/t-v850e (v850-c.o): Likewise.
18163
18164 2009-05-26  Richard Guenther  <rguenther@suse.de>
18165
18166         PR tree-optimization/40122
18167         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
18168         VECTOR_CSTs if possible.
18169         (fold_gimple_assign): Likewise.
18170
18171 2009-05-26  Richard Guenther  <rguenther@suse.de>
18172
18173         PR middle-end/40252
18174         * fold-const.c (fold_binary): Use the correct types for building
18175         rotates.
18176
18177 2009-05-26  Richard Guenther  <rguenther@suse.de>
18178
18179         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
18180         redundant calls to merge_alias_info.
18181         (bump_vector_ptr): Likewise.
18182         * tree-ssa-copy.c (merge_alias_info): Remove.
18183         (replace_exp_1): Remove call to merge_alias_info.
18184         (propagate_tree_value): Likewise.
18185         (fini_copy_prop): Propagate points-to info.
18186         * tree-flow.h (merge_alias_info): Remove.
18187
18188 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
18189
18190         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
18191
18192 2009-05-25  Jan Hubicka  <jh@suse.cz>
18193
18194         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
18195         * cgraph.h (struct inline_summary): New filed self_wize,
18196         size_inlining_benefit, self_time and time_inlining_benefit.
18197         (struct cgraph_global_info): Replace insns by time ans size fields.
18198         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
18199         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
18200         (ipcp_update_callgraph): Do not touch function bodies.
18201         * ipa-inline.c: Include except.h
18202         (MAX_TIME): New constant.
18203         (overall_insns): Remove.
18204         (leaf_node_p): New.
18205         (overall_size, max_benefit): New static variables.
18206         (cgraph_estimate_time_after_inlining): New function.
18207         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
18208         (cgraph_clone_inlined_nodes): Update size.
18209         (cgraph_mark_inline_edge): Update size.
18210         (cgraph_estimate_growth): Use size info.
18211         (cgraph_check_inline_limits): Check size.
18212         (cgraph_default_inline_p): Likewise.
18213         (cgraph_edge_badness): Compute badness based on benefit and size cost.
18214         (cgraph_decide_recursive_inlining): Check size.
18215         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
18216         and times.
18217         (cgraph_decide_inlining): Likewise.
18218         (cgraph_decide_inlining_incrementally): Likewise; honor
18219         PARAM_EARLY_INLINING_INSNS.
18220         (likely_eliminated_by_inlining_p): New predicate.
18221         (estimate_function_body_sizes): New function.
18222         (compute_inline_parameters): Use it.
18223         * except.c (must_not_throw_labels): New function.
18224         * except.h (must_not_throw_labels): Declare.
18225         * tree-inline.c (init_inline_once): Kill inlining_weigths
18226         * tree-ssa-structalias.c: Avoid uninitialized warning.
18227         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
18228         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
18229         (PARAM_INLINE_CALL_COST): Remove.
18230         (PARAM_EARLY_INLINING_INSNS): New.
18231
18232 2009-05-25  Richard Guenther  <rguenther@suse.de>
18233
18234         PR tree-optimization/36327
18235         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
18236         callback for reference translation or lookup at the point of may-defs.
18237         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
18238         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
18239         for union COMPONENT_REFs.
18240         (vn_reference_lookup_3): New callback.  Lookup from memset
18241         and CONSTRUCTOR assignment, translate through struct copies.
18242         (vn_reference_lookup_pieces): Make sure to not free the
18243         passed operands array.  Adjust walk_non_aliased_vuses call.
18244         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
18245         make sure we do not leak memory.
18246
18247 2009-05-25  Richard Guenther  <rguenther@suse.de>
18248
18249         * tree-ssa-alias.h (dump_points_to_solution): Declare.
18250         * tree-inline.c (expand_call_inline): Reset the escaped and
18251         callused solutions.
18252         * tree-ssa-structalias.c (pass_build_ealias): New.
18253         * tree-pass.h (pass_build_ealias): Declare.
18254         * passes.c (init_optimization_passes): Add PTA during
18255         early optimizations.
18256         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
18257         and CALLUSED solutions.
18258         (dump_points_to_solution): New function, split out from ...
18259         (dump_points_to_info_for): ... here.
18260         * tree-parloops.c (parallelize_loops): Reset the escaped and
18261         callused solutions.
18262
18263 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18264
18265         PR bootstrap/40027
18266         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
18267         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
18268
18269 2009-05-25  Ira Rosen  <irar@il.ibm.com>
18270
18271         PR tree-optimization/40238
18272         * tree-vect-stmts.c (vect_init_vector): Insert initialization
18273         statements after basic block's labels.
18274         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
18275         to free the allocated memory.
18276
18277 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
18278
18279         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
18280         return address with a USE.
18281
18282 2009-05-24  Richard Guenther  <rguenther@suse.de>
18283
18284         PR middle-end/40233
18285         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
18286         array type from the main variant of the inner type.
18287
18288 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18289
18290         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
18291         definition to bool (from int) to un-break build.
18292         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
18293
18294 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
18295
18296         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
18297         discard_stmt_changes): Delete.
18298         * tree-ssa-operands.c (scb_stack): Delete.
18299         (init_ssa_operands): Do not initialize it.
18300         (fini_ssa_operands): Do not free it.
18301         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
18302
18303         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
18304         update_stmt, remove the others.  Fix comments.
18305         * tree-dfa.c (optimize_stack_restore): Likewise.
18306         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
18307         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
18308         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
18309         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
18310         Likewise.
18311         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
18312         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
18313         (dom_opt_finalize_block): Likewise, adjusting access to
18314         stmts_to_rescan.
18315         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
18316         (stmts_to_rescan): Change item type to gimple.
18317         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
18318
18319 2009-05-24  Ira Rosen  <irar@il.ibm.com>
18320
18321         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
18322         * tree-pass.h (pass_slp_vectorize): New pass.
18323         * params.h (SLP_MAX_INSNS_IN_BB): Define.
18324         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
18325         * tree-vectorizer.c (timevar.h): Include.
18326         (user_vect_verbosity_level): Declare.
18327         (vect_location): Fix comment.
18328         (vect_set_verbosity_level): Update user_vect_verbosity_level
18329         instead of vect_verbosity_level.
18330         (vect_set_dump_settings): Add an argument. Ignore user defined
18331         verbosity if dump flags require higher level of verbosity. Print to
18332         stderr only for loop vectorization.
18333         (vectorize_loops): Update call to vect_set_dump_settings.
18334         (execute_vect_slp): New function.
18335         (gate_vect_slp): Likewise.
18336         (struct gimple_opt_pass pass_slp_vectorize): New.
18337         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
18338         access its members.
18339         (vec_info_for_bb): New function.
18340         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
18341         (VECTORIZATION_ENABLED): New macro.
18342         (SLP_ENABLED, SLP_DISABLED): Likewise.
18343         (vect_is_simple_use): Add bb_vec_info argument.
18344         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
18345         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
18346         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
18347         vect_schedule_slp, vect_analyze_slp): Likewise.
18348         (vect_analyze_stmt): Add slp_tree argument.
18349         (find_bb_location): Declare.
18350         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
18351         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
18352         (vect_analyze_loop_operations, vect_analyze_loop,
18353         get_initial_def_for_induction, vect_create_epilog_for_reduction,
18354         vect_finalize_reduction, vectorizable_reduction,
18355         vectorizable_live_operation, vect_transform_loop): Likewise.
18356         * tree-data-ref.c (dr_analyze_innermost): Update comment,
18357         skip evolution analysis if analyzing a basic block.
18358         (dr_analyze_indices): Likewise.
18359         (initialize_data_dependence_relation): Skip the test whether the
18360         object is invariant for basic blocks.
18361         (compute_all_dependences): Skip dependence analysis for data
18362         references in basic blocks.
18363         (find_data_references_in_stmt): Don't fail in case of invariant
18364         access in basic block.
18365         (find_data_references_in_bb): New function.
18366         (find_data_references_in_loop): Move code to
18367         find_data_references_in_bb and add a call to it.
18368         (compute_data_dependences_for_bb): New function.
18369         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
18370         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
18371         that STEP is 0.
18372         (vect_analyze_data_ref_dependence): Check for interleaving in case of
18373         unknown dependence in basic block and fail in case of dependence in
18374         basic block.
18375         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
18376         dependence instances from either loop or basic block vectorization
18377         info.
18378         (vect_compute_data_ref_alignment): Check if it is loop vectorization
18379         before calling nested_in_vect_loop_p.
18380         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
18381         dependence instances from either loop or basic block vectorization
18382         info.
18383         (vect_verify_datarefs_alignment): Likewise.
18384         (vect_enhance_data_refs_alignment): Adjust function calls.
18385         (vect_analyze_data_refs_alignment): Likewise.
18386         (vect_analyze_group_access): Fix printing. Skip different checks if
18387         DR_STEP is 0. Keep strided stores either in loop or basic block
18388         vectorization data structure. Fix indentation.
18389         (vect_analyze_data_ref_access): Fix comments, allow zero step in
18390         basic blocks.
18391         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
18392         dependence instances from either loop or basic block vectorization
18393         info.
18394         (vect_analyze_data_refs): Update comment. Call
18395         compute_data_dependences_for_bb to analyze basic blocks.
18396         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
18397         case of loop vectorization. In case of basic block vectorization use
18398         data-ref itself as a base.
18399         (vect_create_data_ref_ptr): In case of basic block vectorization:
18400         don't advance the pointer, add new statements before the current
18401         statement.  Adjust function calls.
18402         (vect_supportable_dr_alignment): Support only aligned accesses in
18403         basic block vectorization.
18404         * common.opt (ftree-slp-vectorize): New flag.
18405         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
18406         (vect_pattern_recog_1): Likewise.
18407         * tree-vect-stmts.c (process_use): Likewise.
18408         (vect_init_vector): Add new statements in the beginning of the basic
18409         block in case of basic block SLP.
18410         (vect_get_vec_def_for_operand): Adjust function calls.
18411         (vect_finish_stmt_generation): Likewise.
18412         (vectorizable_call): Add assert that it is loop vectorization, adjust
18413         function calls.
18414         (vectorizable_conversion, vectorizable_assignment): Likewise.
18415         (vectorizable_operation): In case of basic block SLP, take
18416         vectorization factor from statement's type and skip the relevance
18417         check. Adjust function calls.
18418         (vectorizable_type_demotion): Add assert that it is loop
18419         vectorization, adjust function calls.
18420         (vectorizable_type_promotion): Likewise.
18421         (vectorizable_store): Check for outer loop only in case of loop
18422         vectorization. Adjust function calls. For basic blocks, skip the
18423         relevance check and don't advance pointers.
18424         (vectorizable_load): Likewise.
18425         (vectorizable_condition): Add assert that it is loop vectorization,
18426         adjust function calls.
18427         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
18428         that it is not reduction, get vector type, call only supported
18429         functions, skip loop specific parts.
18430         (vect_transform_stmt): Check for outer loop only in case of loop
18431         vectorization.
18432         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
18433         (vect_is_simple_use): Fix comment, add new argument, fix conditions
18434         for external definition.
18435         * passes.c (pass_slp_vectorize): New pass.
18436         * tree-vect-slp.c (find_bb_location): New function.
18437         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
18438         check for patterns only in loops.
18439         (vect_build_slp_tree): Add argument, adjust function calls, fail in
18440         case of multiple types in basic block SLP.
18441         (vect_mark_slp_stmts_relevant): New function.
18442         (vect_supported_load_permutation_p): Fix comment.
18443         (vect_analyze_slp_instance): Add argument. In case of basic block
18444         SLP, take vectorization factor from statement's type, check that
18445         unrolling factor is 1. Adjust function call. Save SLP instance in
18446         either loop or basic block vectorization structure. Return FALSE,
18447         if SLP failed.
18448         (vect_analyze_slp): Add argument. Get strided stores groups from
18449         either loop or basic block vectorization structure. Return FALSE
18450         if basic block SLP failed.
18451         (new_bb_vec_info): New function.
18452         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
18453         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
18454         (vect_schedule_slp): Add argument. Get SLP instances from either
18455         loop or basic block vectorization structure. Set vectorization factor
18456         to be 1 for basic block SLP.
18457         (vect_slp_transform_bb): New function.
18458         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
18459
18460 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
18461
18462         * final.c (shorten_branches): Do not align labels for jump tables.
18463         (final_scan_insn): Use JUMP_TABLE_DATA_P.
18464
18465 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
18466
18467         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
18468         Remove outdated reference to flow.c and fix nits.
18469         * doc/gccint.texi: Tweak RTL description.
18470         * doc/rtl.texi: Likewise.
18471
18472 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
18473
18474         * config/avr/avr.c: Change my email address.
18475         * config/avr/avr.h: Likewise.
18476         * config/avr/avr.md: Likewise.
18477         * config/avr/avr-protos.h: Likewise.
18478         * config/avr/libgcc.S: Likewise.
18479
18480 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
18481
18482         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
18483         (spu_split_load, spu_split_store): Change return type to int.
18484         (spu_split_convert): Declare.
18485         * config/spu/predicates.md (spu_mem_operand): Remove.
18486         (spu_mov_operand): Update.
18487         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
18488         * config/spu/spu.c (regno_aligned_for_load): Remove.
18489         (reg_aligned_for_addr, spu_expand_load): Define.
18490         (spu_expand_extv): Reimplement and handle MEM.
18491         (spu_expand_insv): Handle MEM.
18492         (spu_sched_reorder): Handle insn's with length 0.
18493         (spu_legitimate_address_p): Reimplement.
18494         (store_with_one_insn_p): Return TRUE for any mode with size
18495         larger than 16 bytes.
18496         (address_needs_split): Define.
18497         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
18498         operands.
18499         (spu_convert_move): Define.
18500         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
18501         (spu_split_store): Change all MEM's to TImode.
18502         (spu_init_expanders): Preallocate registers that correspond to
18503         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
18504         mark_reg_pointer.
18505         (spu_split_convert): Define.
18506         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
18507         (_move<mode>, _movdi, _movti): Update predicate and condition.
18508         (load, store): Change to define_split.
18509         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
18510         extend<mode>ti2.
18511         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
18512         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
18513         define_insn_and_split of lshr<mode>3.
18514         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
18515         (<v>ashr<mode>3_imm): Define.
18516         (extv, extzv, insv): Allow MEM operands.
18517         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
18518         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
18519         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
18520         (_spu_convert2): Change to define_insn_and_split and remove the
18521         corresponding define_peephole2.
18522         (stack_protect_set, stack_protect_test, stack_protect_test_si):
18523         Change predicates to memory_operand.
18524
18525 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
18526
18527         * config/arm/thumb2.md: Add 16-bit multiply instructions.
18528
18529 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
18530
18531         PR tree-optimization/40219
18532         * tree.c (iterative_hash_expr): Make sure the builtin function is
18533         a normal builtin function and not a front end or back end builtin
18534         before indexing into the built_in_decls array.
18535
18536 2009-05-22  Richard Guenther  <rguenther@suse.de>
18537
18538         PR middle-end/38964
18539         * alias.c (write_dependence_p): Do not use TBAA for answering
18540         anti-dependence or output-dependence.
18541         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
18542         (emit_pointer_definition): Remove.
18543         (emit_alias_warning): Likewise.
18544         (find_what_var_points_to): Remove TBAA pruning code.
18545         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
18546         violations.
18547         (compute_points_to_sets): Remove code computing the set of
18548         dereferenced pointers.
18549         * tree-data-ref.c (dr_may_alias_p): Properly use the split
18550         oracle for querying anti and output dependencies.
18551         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
18552         if TBAA may be applied.
18553         (refs_anti_dependent_p): New function.
18554         (refs_output_dependent_p): Likewise.
18555         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
18556         (refs_output_dependent_p): Likewise.
18557         * doc/tree-ssa.texi (Memory model): New section.
18558         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
18559         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
18560         * cfgexpand.c (expand_gimple_basic_block): Do not handle
18561         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
18562         * expr.c (expand_expr_real_1): Likewise.
18563         * gimple-low.c (lower_stmt): Likewise.
18564         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
18565         (dump_gimple_cdt): Remove.
18566         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
18567         (gimple_size): Likewise.
18568         (walk_gimple_op): Likewise.
18569         (is_gimple_stmt): Likewise.
18570         (walk_stmt_load_store_addr_ops): Likewise.
18571         (gimple_build_cdt): Remove.
18572         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
18573         * gimple.h (gimple_cdt_new_type): Remove.
18574         (gimple_cdt_new_type_ptr): Likewise.
18575         (gimple_cdt_set_new_type): Likewise.
18576         (gimple_cdt_location): Likewise.
18577         (gimple_cdt_location_ptr): Likewise.
18578         (gimple_cdt_set_location): Likewise.
18579         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
18580         * tree-cfg.c (remove_useless_stmts_1): Do not handle
18581         GIMPLE_CHANGE_DYNAMIC_TYPE.
18582         (verify_types_in_gimple_stmt): Likewise.
18583         * tree-inline.c (estimate_num_insns): Likewise.
18584         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
18585         (copy_decl_to_var): Likewise.
18586         (copy_result_decl_to_var): Likewise.
18587         * tree-pretty-print.c (dump_generic_node): Do not handle
18588         CHANGE_DYNAMIC_TYPE_EXPR.
18589         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18590         * tree-ssa-operands.c (get_expr_operands): Likewise.
18591         * tree-ssa-structalias.c (struct variable_info): Remove
18592         no_tbaa_pruning member.
18593         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
18594         (unify_nodes): Do not copy it.
18595         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
18596         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
18597         (set_uids_in_ptset): Do not check it.
18598         (find_what_var_points_to): Likewise.
18599         (compute_tbaa_pruning): Remove.
18600         (compute_points_to_sets): Do not call it.
18601         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
18602         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
18603         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
18604         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
18605         (DECL_NO_TBAA_P): Likewise.
18606         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
18607         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
18608         (expand_omp_atomic_pipeline): Do not set it.
18609         * print-tree.c (print_node): Do not dump it.
18610         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
18611         redundant check.
18612
18613 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
18614
18615         PR target/39856
18616         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
18617         for clobber.
18618
18619 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
18620
18621         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
18622         non-external.
18623
18624 2009-05-22  Ben Elliston  <bje@au.ibm.com>
18625
18626         * Makefile.in (bversion.h, s-bversion): New targets.
18627         (TOPLEV_H): Add bversion.h.
18628         * toplev.h: Include "bversion.h".
18629         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
18630         the __format__ attribute only if compiling with the same version
18631         of GCC as the sources (the "build version").
18632
18633 2009-05-22  Ben Elliston  <bje@au.ibm.com>
18634
18635         * c-format.c (handle_format_attribute): Fix comment typo.
18636
18637 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
18638
18639         PR target/37846
18640         * config/ia64/ia64.opt (mfused-madd): New.
18641         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
18642         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
18643         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
18644         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
18645         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
18646         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
18647         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
18648         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
18649         instruction if !TARGET_FUSED_MADD.
18650         (fpma, fpms): Remove colon from name.
18651
18652 2009-05-22  Richard Guenther  <rguenther@suse.de>
18653
18654         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
18655         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
18656         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
18657         TARGET_MEM_REF.
18658         (create_expression_by_pieces): Only convert if necessary.
18659         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
18660         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
18661
18662 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
18663
18664         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
18665         regular pattern from a template and rename it ...
18666         (*extzv_truncsi_exts): ... to this.
18667
18668 2009-05-21  Richard Guenther  <rguenther@suse.de>
18669
18670         * cgraph.h (struct cgraph_node): Remove inline_decl member.
18671         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
18672         (cgraph_default_inline_p): Likewise.
18673         (cgraph_decide_inlining_incrementally): Likewise.
18674
18675 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18676             Uros Bizjak  <ubizjak@gmail.com>
18677
18678         * config/i386/cpuid.h (bit_MOVBE): New.
18679
18680         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
18681
18682         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
18683         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
18684         (ix86_handle_option): Handle OPT_mmovbe.
18685         (ix86_target_string): Add -mmovbe.
18686         (pta_flags): Add PTA_MOVBE.
18687         (processor_alias_table): Add PTA_MOVBE to "atom".
18688         (override_options): Handle PTA_MOVBE.
18689
18690         * config/i386/i386.h (TARGET_MOVBE): New.
18691
18692         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
18693         (*bswapsi_movbe): New.
18694         (*bswapdi_movbe): Likewise.
18695         (bswapdi2): Renamed to ...
18696         (*bswapdi_1): This.
18697         (bswapdi2): New expander.
18698
18699         * config/i386/i386.opt (mmovbe): New.
18700
18701         * doc/invoke.texi: Document -mmovbe.
18702
18703 2009-05-21  Taras Glek  <tglek@mozilla.com>
18704
18705         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
18706         * gcc-plugin.h (plugin_init): Updated signature.
18707         * gcc-plugin.h (plugin_name_args): Moved to this header.
18708         * doc/plugins.texi (plugin_init): Updated documention to reflect
18709         API change.
18710         * doc/plugins.texi (plugin_name_args): Added to documention.
18711
18712 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
18713
18714         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
18715         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
18716
18717 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
18718
18719         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
18720         JUMP_TABLE_DATA_P predicates where applicable.
18721         * config/i386/predicates.md: Ditto.
18722         * config/i386/sse.md: Ditto.
18723
18724 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
18725
18726         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
18727         operand2 -128 override length_immediate attribute to 1.
18728         * config/i386/predicates.md (constm128_operand): New predicate.
18729
18730         * config/i386/i386.c (memory_address_length): Handle %r12
18731         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
18732         also check REGNO.
18733         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
18734         mode look through optional ZERO_EXTEND and SUBREG.
18735         * config/i386/i386.md (R12_REG): New define_constant.
18736         (prefix_data16): For sse unit set also for MODE_TI insns.
18737         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
18738         insns set if operand 1 is ext_QIreg_operand.
18739         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
18740         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
18741         immediate.
18742         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
18743         mode from MODE_DI to MODE_SI.
18744         (movdi_1_rex64): Override modrm and length_immediate attributes
18745         only for movabs (TYPE_IMOV, alternative 2).
18746         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
18747         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
18748         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
18749         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
18750         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
18751         prefix_rex attribute if DImode.
18752         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
18753         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
18754         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
18755         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
18756         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
18757         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
18758         Likewise.  For TYPE_IMOV clear length_immediate attribute.
18759         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
18760         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
18761         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
18762         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
18763         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
18764         or one operand TYPE_ISHIFT.
18765         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
18766         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
18767         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
18768         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
18769         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
18770         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
18771         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
18772         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
18773         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
18774         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
18775         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
18776         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
18777         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
18778         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
18779         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
18780         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
18781         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
18782         set mode attribute, don't override length attribute.
18783         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
18784         to 1.
18785         (return_internal_long): Set length attribute to 2 instead of 1.
18786         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
18787         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
18788         prefix_rex attribute.
18789         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
18790         New predicates.
18791         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
18792
18793 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18794
18795         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
18796
18797 2009-05-20  Ian Lance Taylor  <iant@google.com>
18798
18799         * tree.c (build_tree_list_vec_stat): New function.
18800         (ctor_to_vec): New function.
18801         (build_nt_call_vec): New function.
18802         (build_call_array): Change args to be a const pointer.
18803         (build_call_vec): New function.
18804         * tree.h (build_nt_call_vec): Declare.
18805         (build_tree_list_vec_stat): Declare.
18806         (build_tree_list_vec): Define.
18807         (build_call_array): Update declaration.
18808         (build_call_vec): Declare.
18809         (ctor_to_vec): Declare.
18810         * c-common.c (tree_vector_cache): New static variable.
18811         (make_tree_vector): New function.
18812         (release_tree_vector): New function.
18813         (make_tree_vector_single): New function.
18814         (make_tree_vector_copy): New function.
18815         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
18816         (make_tree_vector_single, make_tree_vector_copy): Declare.
18817         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
18818         (c_parser_expr_list): Don't manage cache here, instead call
18819         make_tree_vector.
18820         (c_parser_release_expr_list): Remove static function.
18821         (c_parser_vec_to_tree_list): Remove static function.
18822         (c_parser_attributes): Call build_tree_list_vec instead of
18823         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
18824         c_parser_release_expr_list.
18825         (c_parser_postfix_expression_after_primary): Likewise.
18826         (c_parser_objc_keywordexpr): Likewise.
18827
18828 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
18829
18830         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
18831         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
18832         TARGET_CONVERT_TO_TYPE.
18833         * hooks.c (hook_tree_const_tree_null): Define.
18834         * hooks.h (hook_tree_const_tree_null): Declare.
18835         * target.h (struct gcc_target):  Add invalid_parameter_type,
18836         invalid_return_type, promoted_type, and convert_to_type fields.
18837         * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
18838         (TARGET_INVALID_RETURN_TYPE): Define.
18839         (TARGET_PROMOTED_TYPE): Define.
18840         (TARGET_CONVERT_TO_TYPE): Define.
18841         (TARGET_INITIALIZER): Update for new fields.
18842         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
18843         (grokparms): Check targetm.invalid_parameter_type.
18844         * c-typeck.c (default_conversion): Check targetm.promoted_type.
18845         * c-convert.c (convert): Check targetm.convert_to_type.
18846
18847 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
18848
18849         * config/mips/mips.md (*extenddi_truncate<mode>,
18850         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
18851         defintions.
18852         (*extendhi_truncateqi): New define_insn_and_sptit.
18853
18854 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
18855
18856         PR middle-end/40204
18857         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
18858         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
18859
18860 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
18861
18862         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
18863         the operand of VIEW_CONVERT_EXPR.
18864
18865 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
18866
18867         * config/i386/driver-i386.c (host_detect_local_cpu): Check
18868         extended family and model for Intel processors.  Support Intel Atom.
18869
18870 2009-05-20  Olivier Hainque  <hainque@adacore.com>
18871
18872         * gstab.h (stab_code_type): Define, to be used instead of the
18873         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
18874         notice.
18875         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
18876         occurrences by stab_code_type.
18877         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
18878
18879 2009-05-20  Martin Jambor  <mjambor@suse.cz>
18880
18881         * tree-flow.h (insert_edge_copies_seq): Undeclare.
18882         (sra_insert_before): Likewise.
18883         (sra_insert_after): Likewise.
18884         (sra_init_cache): Likewise.
18885         (sra_type_can_be_decomposed_p): Likewise.
18886         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
18887         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
18888         (sra_insert_before): Likewise.
18889         (sra_insert_after): Likewise.
18890         (sra_init_cache): Likewise.
18891         (insert_edge_copies_seq): Made static and moved upwards.
18892
18893         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
18894         case.
18895
18896         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
18897
18898         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
18899         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
18900         simple copies.
18901
18902 2009-05-20  Richard Guenther  <rguenther@suse.de>
18903
18904         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
18905         with mismatched comparison modes.
18906
18907 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18908
18909         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
18910         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
18911         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
18912         with shifts for Thumb2.
18913         (orsi_notsi): New for orn.
18914         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
18915         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
18916         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
18917         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
18918         Don't invert remainder for IOR.
18919
18920 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
18921
18922         PR tree-optimization/40087
18923         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
18924         number_of_iterations_ne): Rename never_infinite argument.
18925         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
18926         number_of_iterations_le): Handle pointer-type ivs when
18927         exit_must_be_taken is false.
18928         (number_of_iterations_cond):  Do not always assume that
18929         exit_must_be_taken if the control variable is a pointer.
18930
18931 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18932
18933         * c-typeck.c (build_binary_op): Allow % on integal vectors.
18934         * doc/extend.texi (Vector Extension): Document that % is allowed too.
18935
18936 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
18937
18938         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
18939         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
18940
18941 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18942
18943         PR c/40172
18944         * c.opt (Wlogical-op): Disabled by default.
18945         * c-opt (c_common_post_options): Do not enable Wlogical-op with
18946         Wextra.
18947         * doc/invoke.texi (Wlogical-op): Likewise.
18948
18949 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
18950
18951         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
18952         into CASE_CONVERT.
18953         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
18954         Propagate the type of the first operand.
18955         <ASSERT_EXPR>: Simplify.
18956         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
18957         Rewrite using the RHS code as discriminant.
18958         <NOP_EXPR>: Turn into CASE_CONVERT.
18959         <PLUS_EXPR>: Propagate the type of the first operand.
18960
18961 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
18962
18963         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
18964         (ia64_dconst_0_375): New.
18965         * config/ia64/ia64.c (ia64_override_options): Remove
18966         -minline-sqrt-min-latency warning.
18967         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
18968         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
18969         * config/ia64/ia64.md (*sqrt_approx): Remove.
18970         (sqrtsf2): Remove #if 0.
18971         (sqrtsf2_internal_thr): Rewrite and move to div.md.
18972         (sqrtdf): Remove assert.
18973         (sqrtdf2_internal_thr): Rewrite and move to div.md.
18974         (sqrtxf2): Remove #if 0.
18975         (sqrtxf2_internal_thr): Rewrite and move to div.md.
18976         * div.md (sqrt_approx_rf): New.
18977         (sqrtsf2_internal_thr): New implementation.
18978         (sqrtsf2_internal_lat): New.
18979         (sqrtdf2_internal_thr: New implementation.
18980         (sqrtxf2_internal): New implementation.
18981
18982 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
18983             Hans-Peter Nilsson  <hp@axis.com>
18984
18985         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
18986         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
18987         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
18988         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
18989         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
18990         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
18991         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
18992         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
18993         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
18994         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
18995         * c-common.c: ...from here.
18996
18997 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18998
18999         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
19000
19001 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19002
19003         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
19004
19005 2009-05-19  Ben Elliston  <bje@au.ibm.com>
19006
19007         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
19008         assignments with memcpy calls.
19009         (add_fdes): Likewise.
19010         (binary_search_unencoded_fdes): Likewise.
19011         (linear_search_fdes): Eliminate type puns.
19012
19013 2009-05-19  Richard Guenther  <rguenther@suse.de>
19014
19015         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
19016         not falsely claim to have propagated into all uses.
19017
19018 2009-05-19  Ben Elliston  <bje@au.ibm.com>
19019
19020         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
19021         version to v3.0.
19022
19023 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
19024
19025         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
19026         * config/sh/sh.c (sh_legitimate_address_p): Make static.
19027         (TARGET_LEGITIMATE_ADDRESS_P): New.
19028         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19029         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
19030
19031 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
19032
19033         PR debug/40109
19034         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
19035         child of the containing namespace's DIE.
19036
19037 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
19038
19039         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
19040         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
19041         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
19042         extend patterns.
19043
19044 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19045
19046         PR target/39942
19047         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
19048         gen_align with gen_pad.
19049         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
19050         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
19051
19052         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
19053         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
19054
19055         * config/i386/i386.md (align): Renamed to ...
19056         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
19057         ASM_OUTPUT_MAX_SKIP_PAD.
19058
19059 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
19060
19061         * config.gcc: Fix variable syntax.
19062
19063         PR target/39531
19064         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
19065         before calling exact_log2.
19066         (output_iorsi3): Likewise.
19067         (output_xorsi3): Likewise.
19068
19069 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
19070
19071         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
19072         for the none zero constant operand except for EQ and NE
19073         comprisons even when the first operand is R0.
19074
19075 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
19076
19077         * config/s390/2064.md: Remove trailing whitespaces.
19078         * config/s390/2084.md: Likewise.
19079         * config/s390/constraints.md: Likewise.
19080         * config/s390/fixdfdi.h: Likewise.
19081         * config/s390/libgcc-glibc.ver: Likewise.
19082         * config/s390/s390-modes.def: Likewise.
19083         * config/s390/s390-protos.h: Likewise.
19084         * config/s390/s390.c: Likewise.
19085         * config/s390/s390.h: Likewise.
19086         * config/s390/s390.md: Likewise.
19087         * config/s390/tpf-unwind.h: Likewise.
19088
19089 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
19090
19091         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
19092
19093 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
19094
19095         M68K TLS support.
19096         * configure.ac (m68k-*-*): Check if binutils support TLS.
19097         * configure: Regenerate.
19098         * config/m68k/predicates.md (symbolic_operand): Extend comment.
19099         * config/m68k/constraints.md (Cu): New constraint.
19100         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
19101         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
19102         (movsi): Handle TLS symbols.
19103         (addsi3_5200): Handle XTLS symbols, indent.
19104         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
19105         (m68k_tls_reference_p): Declare.
19106         (m68k_legitimize_address): Declare.
19107         (m68k_unwrap_symbol): Declare.
19108         * config/m68k/m68k.opt (mxtls): New option.
19109         * config/m68k/m68k.c (ggc.h): Include.
19110         (m68k_output_dwarf_dtprel): Implement hook.
19111         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
19112         (m68k_expand_prologue): Load GOT pointer when function needs it.
19113         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
19114         (m68k_legitimate_constant_address_p): Same.
19115         (m68k_decompose_address): Handle TLS references.
19116         (m68k_get_gp): New static function.
19117         (enum m68k_reloc): New contants.
19118         (TLS_RELOC_P): New macro.
19119         (m68k_wrap_symbol): New static function.
19120         (m68k_unwrap_symbol): New function.
19121         (m68k_final_prescan_insn_1): New static function.
19122         (m68k_final_prescan_insn): New function.
19123         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
19124         functions.
19125         (legitimize_pic_address): Handle TLS references..
19126         (m68k_tls_get_addr, m68k_get_tls_get_addr)
19127         (m68k_libcall_value_in_a0_p)
19128         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
19129         (m68k_call_m68k_read_tp): Helper variables and functions for ...
19130         (m68k_legitimize_tls_address): Handle TLS references.
19131         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
19132         New functions.
19133         (m68k_legitimize_address): Handle TLS symbols.
19134         (m68k_get_reloc_decoration): New static function.
19135         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
19136         UNSPEC_RELOC32.
19137         (m68k_output_dwarf_dtprel): Implement hook.
19138         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
19139         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
19140         m68k_call_* routines.
19141         (sched_attr_op_type): Handle TLS symbols.
19142         (gt-m68k.h): Include.
19143         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
19144         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
19145
19146 2009-05-18  Martin Jambor  <mjambor@suse.cz>
19147
19148         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
19149         (visit_store_addr_for_mod_analysis): New function.
19150         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
19151         (determine_cst_member_ptr): Use gimple_assign_single_p.
19152         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
19153         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
19154         operands.  Don't check number of operands of a NOP_EXPR.
19155
19156 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
19157
19158         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
19159
19160 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19161
19162         PR c/40172
19163         * c-common.c (warn_logical_operator): Don't warn if one of
19164         expression isn't always true or false.
19165
19166 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
19167
19168         * config/i386/biarch32.h: New file.
19169         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
19170
19171 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
19172
19173         * config/mips/mips.md (*zero_extend<mode>_trunchi,
19174         *zero_extend<mode>_truncqi): Merge these into ...
19175         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
19176         Name the pattern following this as *zero_extendhi_truncqi.
19177
19178 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
19179
19180         PR middle-end/39301
19181         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
19182         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
19183         (output_info): Make field HOST_WIDEST_INT.
19184         (print_statistics): Use HOST_WIDEST_INT_PRINT.
19185         (dump_bitmat_statistics): Same.
19186
19187 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
19188
19189         * config.gcc (use_gcc_stdint):  Set to wrap.
19190         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
19191         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
19192         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
19193         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
19194         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
19195         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
19196         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
19197         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
19198
19199 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
19200
19201         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
19202         tune_64.
19203         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
19204         Move definitions earlier.
19205         (OPT_ARCH64, OPT_ARCH32): Define.
19206         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
19207         and tune_64.
19208
19209 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
19210
19211         PR target/40153
19212         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
19213         implies.
19214
19215 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
19216
19217         * arm.md (movdi2): Copy non-reg values to DImode registers.
19218
19219 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
19220
19221         PR target/39942
19222         * final.c (label_to_max_skip): New function.
19223         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
19224         CODE_LABEL_NUMBER <= max_labelno.
19225         * output.h (label_to_max_skip): New prototype.
19226         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
19227         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
19228         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
19229         Handle CODE_LABELs with >= 16 byte alignment or with
19230         max_skip == (1 << align) - 1.
19231         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
19232         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
19233
19234         PR target/39942
19235         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
19236         .p2align 3 if MAX_SKIP is smaller than 7.
19237         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19238
19239 2009-05-15  Ian Lance Taylor  <iant@google.com>
19240
19241         * alias.c (struct alias_set_entry_d): Rename from struct
19242         alias_set_entry.  Change all uses.
19243         * except.c (struct call_site_record_d): Rename from struct
19244         call_site_record.  Change all uses.
19245         * except.h (struct eh_region_d): Rename from struct eh_region.
19246         Change all uses.
19247         * gcse.c (struct hash_table_d): Rename from struct hash_table.
19248         Change all uses.
19249         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
19250         ivtype_map_elt.  Change all uses.
19251         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
19252         Change all uses.
19253         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
19254         * graphite.h (struct name_tree_d): Rename from struct name_tree.
19255         Change all uses.
19256         (struct sese_d): Rename from struct sese.  Change all uses.
19257         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
19258         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
19259         * optabs.h (struct optab_d): Rename from struct optab.  Change all
19260         uses.
19261         (struct convert_optab_d): Rename from struct convert_optab.
19262         Change all uses.
19263         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
19264         ipa_opt_pass.  Change all uses.
19265         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
19266         all uses.
19267
19268         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
19269         defined as a typedef.
19270         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
19271         defined as a tag.
19272
19273 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19274
19275         PR 16302
19276         * fold-const.c (make_range,build_range_check,merge_ranges): Move
19277         declaration to...
19278         (merge_ranges): Returns bool.
19279         * tree.h (make_range): .. to here.
19280         (build_range_check): Likewise.
19281         (merge_ranges): Likewise. Renamed from merge_ranges.
19282         * c-typeck.c (parser_build_binary_op): Update calls to
19283         warn_logical_operator.
19284         * c-common.c (warn_logical_operator): Add new warning.
19285         * c-common.h (warn_logical_operator): Update declaration.
19286
19287 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19288
19289         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
19290
19291 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19292
19293         * doc/install.texi: Document MPC requirements, flags etc.
19294
19295         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
19296         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
19297         Evaluate constant arguments.
19298         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
19299         (fold_builtin_1): Likewise, also evaluate constant arguments.
19300         Remove superfluous break.
19301         (do_mpc_ckconv): New.
19302         * real.h: Include mpc.h.
19303         * toplev.c (print_version): Output MPC version info if available.
19304
19305 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
19306
19307         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
19308
19309 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19310
19311         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
19312         only once.
19313
19314 2009-05-15  Jan Hubicka  <jh@suse.cz>
19315
19316         * doc/invoke.texi (max-early-inliner-iterations): New flag.
19317         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
19318         (try_inline): Fix return value.
19319         (cgraph_decide_inlining_incrementally): Honor new value.
19320         (cgraph_early_inlining): Handle indirect inlining.
19321         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
19322
19323 2009-05-15  Jan Hubicka  <jh@suse.cz>
19324
19325         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
19326         * cgraphunit.c (cgraph_finalize_function): Set it.
19327         (cgraph_expand_function): Use it.
19328
19329 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
19330
19331         * real.c (encode_ieee_half): Define.
19332         (decode_ieee_half): Define.
19333         (ieee_half_format): Define.
19334         (arm_half_format): Define.
19335         * real.h (ieee_half_format): Declare.
19336         (arm_half_format): Declare.
19337
19338 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
19339
19340         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
19341         swapped, and reversed optabs exist before trying to use them.
19342
19343 2009-05-15  Paul Brook  <paul@codesourcery.com>
19344             Sandra Loosemore  <sandra@codesourcery.com>
19345
19346         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
19347         loads.  Allow PRE_DEC.
19348         (output_move_neon): Handle PRE_DEC.
19349         (arm_print_operand): Add 'A' for neon structure loads.
19350         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
19351         * config/arm/neon.md (neon_mov): Update comment.
19352         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
19353         calls.
19354         (Um): New constraint.
19355
19356 2009-05-15  Jan Hubicka  <jh@suse.cz>
19357
19358         Revert the following patch until testsuite fallout is fixed:
19359         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
19360         * cgraph.h (struct inline_summary): New filed self_wize,
19361         size_inlining_benefit, self_time and time_inlining_benefit.
19362         (struct cgraph_global_info): Replace insns by time ans size fields.
19363         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
19364         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
19365         (ipcp_update_callgraph): Do not touch function bodies.
19366         * ipa-inline.c: Include except.h
19367         (MAX_TIME): New constant.
19368         (overall_insns): Remove
19369         (overall_size, max_benefit): New static variables.
19370         (cgraph_estimate_time_after_inlining): New function.
19371         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
19372         (cgraph_clone_inlined_nodes): Update size.
19373         (cgraph_mark_inline_edge): Update size.
19374         (cgraph_estimate_growth): Use size info.
19375         (cgraph_check_inline_limits): Check size.
19376         (cgraph_default_inline_p): Likewise.
19377         (cgraph_edge_badness): Compute badness based on benefit and size cost.
19378         (cgraph_decide_recursive_inlining): Check size.
19379         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
19380         and times.
19381         (cgraph_decide_inlining): Likewise.
19382         (cgraph_decide_inlining_incrementally): Likewise; honor
19383         PARAM_EARLY_INLINING_INSNS.
19384         (likely_eliminated_by_inlining_p): New predicate.
19385         (estimate_function_body_sizes): New function.
19386         (compute_inline_parameters): Use it.
19387         * except.c (must_not_throw_labels): New function.
19388         * except.h (must_not_throw_labels): Declare.
19389         * tree-inline.c (init_inline_once): Kill inlining_weigths
19390         * tree-ssa-structalias.c: Avoid uninitialized warning.
19391         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
19392         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
19393         (PARAM_INLINE_CALL_COST): Remove.
19394         (PARAM_EARLY_INLINING_INSNS): New.
19395
19396 2009-05-15  Richard Guenther  <rguenther@suse.de>
19397
19398         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
19399         not TODO_update_ssa.
19400
19401 2009-05-15  Richard Guenther  <rguenther@suse.de>
19402
19403         PR tree-optimization/39999
19404         * gimple.h (gimple_expr_type): Use the expression type looking
19405         through useless conversions.
19406         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
19407         (vn_nary_op_insert_stmt): Likewise.
19408         (simplify_binary_expression): Likewise.
19409
19410 2009-05-15  Richard Guenther  <rguenther@suse.de>
19411
19412         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
19413         New options, enabled by default.
19414         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
19415         Document.
19416         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
19417         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
19418         * tree-ssa-structalias.c (gate_tree_pta): New function.
19419         (pass_build_alias): Use it.
19420
19421 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
19422
19423         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
19424         recurse on an invariant address if a conversion from a pointer
19425         type to a wider integer type is involved.
19426
19427 2009-05-15  Jan Hubicka  <jh@suse.cz>
19428
19429         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
19430         * cgraph.h (struct inline_summary): New filed self_wize,
19431         size_inlining_benefit, self_time and time_inlining_benefit.
19432         (struct cgraph_global_info): Replace insns by time ans size fields.
19433         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
19434         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
19435         (ipcp_update_callgraph): Do not touch function bodies.
19436         * ipa-inline.c: Include except.h
19437         (MAX_TIME): New constant.
19438         (overall_insns): Remove
19439         (overall_size, max_benefit): New static variables.
19440         (cgraph_estimate_time_after_inlining): New function.
19441         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
19442         (cgraph_clone_inlined_nodes): Update size.
19443         (cgraph_mark_inline_edge): Update size.
19444         (cgraph_estimate_growth): Use size info.
19445         (cgraph_check_inline_limits): Check size.
19446         (cgraph_default_inline_p): Likewise.
19447         (cgraph_edge_badness): Compute badness based on benefit and size cost.
19448         (cgraph_decide_recursive_inlining): Check size.
19449         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
19450         and times.
19451         (cgraph_decide_inlining): Likewise.
19452         (cgraph_decide_inlining_incrementally): Likewise; honor
19453         PARAM_EARLY_INLINING_INSNS.
19454         (likely_eliminated_by_inlining_p): New predicate.
19455         (estimate_function_body_sizes): New function.
19456         (compute_inline_parameters): Use it.
19457         * except.c (must_not_throw_labels): New function.
19458         * except.h (must_not_throw_labels): Declare.
19459         * tree-inline.c (init_inline_once): Kill inlining_weigths
19460         * tree-ssa-structalias.c: Avoid uninitialized warning.
19461         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
19462         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
19463         (PARAM_INLINE_CALL_COST): Remove.
19464         (PARAM_EARLY_INLINING_INSNS): New.
19465         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
19466         (inline-call-cost): Remove.
19467         (early-inlining-insns): New.
19468
19469 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
19470
19471         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
19472         for bounds.
19473         (print_int_cst_bounds_in_octal_p): Likewise.
19474         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
19475         with subtypes.
19476         * dwarf2out.c (base_type_die): Likewise.
19477         (is_subrange_type): Delete.
19478         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
19479         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
19480         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
19481         if the destination type is boolean.
19482         (build_range_check): Do not special-case subtypes.
19483         (fold_sign_changed_comparison): Likewise.
19484         (fold_unary): Likewise.
19485         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
19486         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
19487         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
19488         * tree.c (subrange_type_for_debug_p): New predicate based on the
19489         former is_subrange_type.
19490         * tree.h (subrange_type_for_debug_p): Declare.
19491         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
19492         (convert_affine_scev): Remove call to above function.
19493         (chrec_convert_aggressive): Likewise.
19494         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
19495         false for conversions involving subtypes.
19496         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
19497         (vrp_val_min): Likewise.
19498         (needs_overflow_infinity): Likewise.
19499         (extract_range_from_unary_expr): Likewise.
19500
19501 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
19502
19503         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
19504         * config/frv/frv.c: Likewise.
19505         * config/s390/s390.c: Likewise.
19506         * config/sparc/sparc.h: Likewise.
19507         * config/i386/i386.h: Likewise.
19508         * config/i386/i386.c: Likewise.
19509         * config/crx/crx.c: Likewise.
19510         * config/m68hc11/m68hc11.h: Likewise.
19511         * config/iq2000/iq2000.c: Likewise.
19512         * config/mn10300/mn10300.h: Likewise.
19513         * config/mn10300/mn10300.c: Likewise.
19514         * config/m68k/m68k.c: Likewise.
19515         * config/rs6000/rs6000.c: Likewise.
19516         * config/rs6000/xcoff.h: Likewise.
19517         * config/rs6000/linux64.h: Likewise.
19518         * config/rs6000/sysv4.h: Likewise.
19519         * config/score/score3.c: Likewise.
19520         * config/score/score7.c: Likewise.
19521         * config/score/score.c: Likewise.
19522         * config/arm/arm.md: Likewise.
19523         * config/mips/mips.c: Likewise.
19524         * config/mips/mips.md: Likewise.
19525         * config/bfin/bfin.h: Likewise.
19526         * config/pa/pa.c: Likewise.
19527         * config/pa/constraints.md: Likewise.
19528
19529         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
19530         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
19531         * config/pdp11/pdp11.h: Use memory_address_p instead.
19532
19533 2009-05-14  Ian Lance Taylor  <iant@google.com>
19534
19535         * passes.c (finish_optimization_passes): Change i to int.
19536         * plugin.c (plugins_active_p): Change event to int.
19537         (dump_active_plugins): Likewise.
19538         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
19539         Add cast.
19540         * tree.c (tree_range_check_failed): Change c to unsigned int.
19541         (omp_clause_range_check_failed): Likewise.
19542         (build_common_builtin_nodes): Change mode to int.  Add cast.
19543         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
19544         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
19545
19546         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
19547         ++ or -- with a variable of enum type.
19548
19549 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
19550
19551         PR driver/40144
19552         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
19553
19554 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
19555
19556         * store-motion.c: Do not include params.h
19557         * Makefile.in: Fix dependencies for various files.
19558
19559 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
19560
19561         * auto-inc-dec.c: Fix pass description, remove apparent
19562         accidental duplication.
19563
19564 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19565
19566         PR middle-end/40147
19567         * ipa-utils.h (memory_identifier_string): Moved to ...
19568         * tree.h (memory_identifier_string): Here.  Add GTY(()).
19569
19570 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
19571
19572         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
19573         in the former documentation of...
19574         (GO_IF_LEGITIMATE_ADDRESS): ... this.
19575         * ira-conflicts.c (get_dup_num): Use address_operand.
19576         * targhooks.c (default_legitimate_address_p): New.
19577         * targhooks.h (default_legitimate_address_p): New.
19578         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
19579         Call hook.
19580         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
19581         * target.h (struct target): Add legitimate_address_p.
19582         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
19583         (TARGET_INITIALIZER): Include it.
19584
19585         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19586         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
19587         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
19588         (TARGET_LEGITIMATE_ADDRESS_P): New.
19589
19590         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19591         (REG_OK_STRICT_P): Delete.
19592         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
19593         (frv_legitimate_address_p_1): ... this.
19594         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
19595         (frv_legitimate_address_p_1): ... the renamed old
19596         frv_legitimate_address_p.
19597         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
19598         (TARGET_LEGITIMATE_ADDRESS_P): New.
19599
19600         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19601         * config/s390/s390-protos.h (legitimate_address_p): Remove.
19602         * config/s390/s390.c (legitimate_address_p): Rename to...
19603         (s390_legitimate_address_p): ... this, make static.
19604         (legitimize_address): Adjust call.
19605         (TARGET_LEGITIMATE_ADDRESS_P): New.
19606         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
19607
19608         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19609         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
19610         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
19611         (TARGET_LEGITIMATE_ADDRESS_P): New.
19612
19613         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19614         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
19615         * config/spu/spu.c (spu_legitimate_address): Rename to...
19616         (spu_legitimate_address_p): ... this, make static.
19617         (TARGET_LEGITIMATE_ADDRESS_P): New.
19618
19619         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19620         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
19621         * config/sparc/sparc.c (legitimate_address_p): Rename to...
19622         (sparc_legitimate_address_p): ... this, make static and return bool.
19623         (legitimize_address): Adjust call.
19624         (TARGET_LEGITIMATE_ADDRESS_P): New.
19625
19626         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19627         * config/i386/i386-protos.h (legitimate_address_p): Remove.
19628         * config/i386/i386.c (legitimate_address_p): Rename to...
19629         (ix86_legitimate_address_p): ... this, make static.
19630         (constant_address_p): Move after it, adjust call.
19631         (TARGET_LEGITIMATE_ADDRESS_P): New.
19632
19633         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19634         * config/avr/avr-protos.h (legitimate_address_p): Remove.
19635         * config/avr/avr.c (legitimate_address_p): Rename to...
19636         (avr_legitimate_address_p): ... this, make static.
19637         (legitimize_address): Adjust call.
19638         (TARGET_LEGITIMATE_ADDRESS_P): New.
19639
19640         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19641         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
19642         * config/crx/crx.c (crx_legitimate_address_p): Make static.
19643         (TARGET_LEGITIMATE_ADDRESS_P): New.
19644
19645         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19646         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
19647         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
19648         (TARGET_LEGITIMATE_ADDRESS_P): New.
19649
19650         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19651         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
19652         Remove.
19653         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
19654         Make static.
19655         (TARGET_LEGITIMATE_ADDRESS_P): New.
19656
19657         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19658         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
19659         Remove.
19660         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
19661         Rename to...
19662         (m68hc11_legitimate_address_p): ... this, make static.
19663         (go_if_legitimate_address_internal): Rename to...
19664         (m68hc11_legitimate_address_p_1): ... this.
19665         (legitimize_address): Adjust call.
19666         (TARGET_LEGITIMATE_ADDRESS_P): New.
19667
19668         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19669         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
19670         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
19671         (TARGET_LEGITIMATE_ADDRESS_P): New.
19672
19673         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19674         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
19675         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
19676         (mn10300_legitimate_address_p): ... this, make static.
19677         (TARGET_LEGITIMATE_ADDRESS_P): New.
19678
19679         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19680         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
19681         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
19682         (TARGET_LEGITIMATE_ADDRESS_P): New.
19683
19684         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19685         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
19686         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
19687         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19688         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
19689         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
19690         (rs6000_legitimate_address_p): ... this, make static.
19691         (TARGET_LEGITIMATE_ADDRESS_P): New.
19692         (REG_MODE_OK_FOR_BASE_P): Delete.
19693         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
19694
19695         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19696         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
19697         Delete.
19698         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
19699         static, adjust types.
19700         (TARGET_LEGITIMATE_ADDRESS_P): New.
19701
19702         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19703         * config/score/score.c (score_address_p): Rename to...
19704         (score_legitimate_address_p): ... this.
19705         (TARGET_LEGITIMATE_ADDRESS_P): New.
19706         * config/score/score3.c (score3_address_p): Rename to...
19707         (score3_legitimate_address_p): ... this.
19708         * config/score/score7.c (score7_address_p): Rename to...
19709         (score7_legitimate_address_p): ... this.
19710
19711         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
19712         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
19713         GO_IF_LEGITIMATE_ADDRESS): Delete.
19714         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
19715         thumb2_legitimate_address_p): Delete.
19716         (arm_legitimate_address_p): Rename to...
19717         (arm_legitimate_address_outer_p): ... this.
19718         * config/arm/constraints.md ("Uq"): Adjust call.
19719         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
19720         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
19721         to...
19722         (arm_legitimate_address_outer_p): ... this.
19723         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
19724         static.
19725         (TARGET_LEGITIMATE_ADDRESS_P): New.
19726
19727         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19728         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
19729         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
19730         (TARGET_LEGITIMATE_ADDRESS_P): New.
19731
19732         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19733         * config/vax/vax-protos.h (legitimate_address_p): Remove.
19734         * config/vax/vax.c (legitimate_address_p): Rename to...
19735         (vax_legitimate_address_p): ... this, make static.
19736         (TARGET_LEGITIMATE_ADDRESS_P): New.
19737
19738         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19739         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
19740         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
19741         (TARGET_LEGITIMATE_ADDRESS_P): New.
19742
19743         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19744         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
19745         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
19746         (mmix_legitimate_address_p): ... this, make static.
19747         (TARGET_LEGITIMATE_ADDRESS_P): New.
19748
19749         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19750         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
19751         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
19752         (TARGET_LEGITIMATE_ADDRESS_P): New.
19753
19754 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
19755
19756         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
19757         of MODE_COMPLEX_INT.
19758
19759 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19760
19761         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
19762         LCT_NORMAL in function call.
19763         * mips-tdump.c (print_file_desc): Add cast to enum type.
19764         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
19765         (mark_stabs): Add casts to enum types.
19766         (parse_stabs_common): Add casts to enum types.
19767
19768 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
19769
19770         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
19771         Check for invalid values of LETTER.
19772
19773 2009-05-13  Taras Glek  <tglek@mozilla.com>
19774
19775         * attribs.c (register_attribute): moved out attribute registration
19776         into register_attribute.
19777         * doc/plugins.texi: Documented register_attribute and
19778         PLUGIN_ATTRIBUTES.
19779         * gcc-plugin.h: Added forward decl for register_attribute.
19780         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
19781         * plugin.c (register_callback, invoke_plugin_callbacks): Added
19782         PLUGIN_ATTRIBUTES boilerplate.
19783
19784 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
19785
19786         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
19787         values even in sentinel and empty entries.
19788         (ms_printf_flag_specs):  Likewise.
19789         (ms_scanf_flag_specs):  Likewise.
19790         (ms_strftime_flag_specs):  Likewise.
19791         (ms_print_char_table):  Likewise.
19792         (ms_scan_char_table):  Likewise.
19793         (ms_time_char_table):  Likewise.
19794
19795 2009-05-13  Doug Kwan  <dougkwan@google.com>
19796
19797         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
19798
19799 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
19800
19801         * config/mips/mips.md (store): Add attributes for QI and HI.
19802         Update comment.
19803         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
19804         (truncdi<mode>2): ... this new pattern.
19805
19806 2009-05-13  Brad Hards  <bradh@kde.org>
19807
19808         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
19809
19810 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
19811             Ben Elliston <bje@au.ibm.com>
19812
19813         PR middle-end/40035
19814         * dse.c (check_mem_read_rtx): Guard against width == -1.
19815
19816 2009-05-13  Michael Matz  <matz@suse.de>
19817
19818         PR middle-end/39976
19819         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
19820         (trivially_conflicts_p): New function.
19821         (insert_backedge_copies): Use it.
19822
19823 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
19824
19825         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
19826         (handle_stdc_pragma): Use new enum constant names.
19827         (handle_pragma_float_const_decimal64): Ditto.
19828
19829 2009-05-13  Ian Lance Taylor  <iant@google.com>
19830
19831         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
19832         tree.def.
19833
19834 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
19835
19836         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
19837         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
19838         multilibs.
19839         * config/m68k/m68k.h (FL_UCLINUX): Define.
19840
19841 2009-05-13  Jan Hubicka  <jh@suse.cz>
19842
19843         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
19844
19845 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
19846
19847         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
19848         unless -fschedule-insns is specified.
19849
19850 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
19851
19852         PR target/39561
19853         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
19854         TARGET_EXPAND_CBRANCHDI4.
19855         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
19856         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
19857         (cmpeqdi): Fix comment.
19858
19859 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
19860
19861         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
19862         (sh_legitimate_address_p): Likewise.
19863         * config/sh/sh.c (sh_legitimate_index_p): New.
19864         (sh_legitimate_address_p): Likewise.
19865         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
19866         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
19867         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
19868         (MAYBE_BASE_REGISTER_RTX_P): New macro.
19869         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
19870         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
19871         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
19872         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
19873         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
19874
19875 2009-05-12  Jan Hubicka  <jh@suse.cz>
19876
19877         * tree-inline.c (estimate_operator_cost): Add operands;
19878         when division happens by constant, it is cheap.
19879         (estimate_num_insns): Loads and stores are not having cost of 0;
19880         EH magic stuff is cheap; when computing runtime cost of switch,
19881         use log2 base of amount of its cases; builtin_expect has cost of 0;
19882         compute cost for moving return value of call.
19883         (init_inline_once): Initialize time_based flags.
19884         * tree-inline.h (eni_weights_d): Add time_based flag.
19885
19886 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19887
19888         * df-core.c: Update head documentation.
19889
19890 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
19891
19892         PR bootstrap/40118
19893         * rs6000.c (rs6000_generate_compare): Use op1b instead of
19894         shadowing exisiting variable op1.
19895
19896 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
19897
19898         PR target/37179
19899         * config/i386/driver-i386.c (processor_signatures): New enum.
19900         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
19901         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
19902         processor signature to detect geode processor.
19903
19904 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19905
19906         Revert:
19907
19908         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19909
19910         * optabs.c (prepare_cmp_insn): Temporarily disable test that
19911         causes spurious differences between trunk and cond-optab branch.
19912
19913 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19914
19915         * dojump.c (compare_from_rtx): Delete.
19916         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
19917         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
19918         if the comparison does not satisfy the predicate; test predicates for
19919         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
19920         further if one existing pattern fails.
19921         * expr.h (compare_from_rtx): Delete.
19922         (prepare_operand): Declare it.
19923         * optabs.c: Change "lib call" to "libcall" throughout.
19924         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
19925         HAVE_conditional_trap, emit_cmp_insn): Delete.
19926         (can_compare_p): Delete cmp_optab case.
19927         (prepare_float_lib_cmp): Return an rtx and a machine mode.
19928         Accept other parameters by value.
19929         (prepare_operand): Make non-static.
19930         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
19931         other parameters by value.  Try to widen operands here based on
19932         an optab_methods argument and looking at cbranch_optab.
19933         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
19934         loop.  Use cbranch_optab directly.
19935         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
19936         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
19937         assertion.
19938         (emit_conditional_move, emit_conditional_add): Inline what's needed
19939         of compare_from_rtx, using new prepare_cmp_insn for the rest.
19940         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
19941         with COMPARE.  Move cmov_optab and cstore_optab above
19942         with cbranch_optab, move cmp_optab down with ucmp_optab,
19943         remove tst_otpab.  Do not initialize trap_rtx.
19944         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
19945         for trap code.  Do not check HAVE_conditional_trap.  Use
19946         prepare_cmp_insn.  Accept no predicate for operand 3.
19947         * optabs.h (OTI_cmp): Mark as used only for libcalls.
19948         (OTI_ctrap, ctrap_optab): New.
19949         (tst_optab): Delete.
19950         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
19951         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
19952         with lookup of ctrap_optab.
19953         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
19954         Delete.
19955         (ctrap_optab): New.
19956
19957         * combine.c (combine_simplify_rtx, simplify_set): Do not
19958         special case comparing against zero for cc0 machines.
19959         * simplify-rtx.c (simplify_binary_operation_1): Never remove
19960         COMPARE on cc0 machines.
19961         (simplify_relational_operation): Return a new expression when
19962         a COMPARE could be removed.
19963         * final.c (final_scan_insn): Compare cc_status values
19964         against LHS of a (compare FOO (const_int 0)) cc0 source.
19965         Also check if cc_status.value is the full compare.
19966
19967         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
19968         (cstoreMM4): Document.
19969         (conditional_trap): Document ctrapMM4 instead.
19970         (sync_compare_and_swapMM): Refer to cbranchcc4.
19971         (Dependent Patterns): Eliminate obsolete information referring to
19972         the old jump optimization phase.
19973         (Canonicalization): Include cbranchcc4 case, omit canonicalization
19974         of compares with 0 on cc0 machines.
19975         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
19976         avoiding references to cc0.  Remove text about storing operands
19977         in cmpMM.
19978         * doc/tm.texi (Condition Codes): Include blurb on different
19979         condition code representations, separate into subsections for
19980         CC0, MODE_CC and conditional execution.
19981
19982         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
19983         alpha_emit_setcc): Accept operands and a machine mode.
19984         * config/alpha/alpha.c (alpha_emit_conditional_branch):
19985         Get code/op0/op1 from operands, use machine mode argument
19986         instead of alpha_compare.fp_p.  Emit the branch here.
19987         (alpha_emit_setcc): Likewise, and return boolean.
19988         (alpha_emit_conditional_move): Likewise.  Assert that
19989         cmp_op_mode == cmp_mode, and simplify accordingly.
19990         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
19991         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
19992         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
19993         Delete.
19994         (stack probe test): Use cbranchdi4.
19995         * config/alpha/predicates.md (alpha_cbranch_operator): New.
19996
19997         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
19998         * config/arc/arc.h (movsicc, movsfcc): Use it.
19999         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
20000         (cbranchsi4, cstoresi4): New.
20001         (cmpsi, bCC and sCC expanders): Remove.
20002
20003         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
20004         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
20005         * config/arm/predicates.md (arm_comparison_operator): Only include
20006         floating-point operators if there is a hardware floating-point unit.
20007         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
20008         deferring to cbranch_cc and cstore_cc respectively.
20009         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
20010         cbranch_cc, cstore_cc): New.
20011         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
20012         arm_compare_op1.
20013         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
20014
20015         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
20016         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
20017         as an argument.
20018         (adjust_insn_length): Adjust calls.
20019         (avr_reorg): Handle (compare (foo) (const_int 0)).
20020         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
20021         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
20022         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
20023         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
20024         (bCC): Remove.
20025         (cbranchqi4, cbranchhi4, cbranchsi4): New.
20026         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
20027
20028         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
20029         (cbranchsi4, cstorebi4, cstoresi4): New.
20030         (movbisi): This insn is duplicate, split it to zero_extend.
20031         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
20032         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
20033         (bfin_optimize_loop): Use cbranch expander.
20034         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
20035         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
20036         (bfin_bimode_comparison_operator): ... this.
20037         (bfin_direct_comparison_operator): New.
20038
20039         * config/cris/cris.c (cris_normal_notice_update_cc): Look
20040         inside (compare FOO (const_int 0)).
20041         (cris_rtx_costs): Handle ZERO_EXTRACT.
20042         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
20043         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
20044         (*tstdi_v32): Delete.
20045         (*cmpdi_non_v32): Add M alternative for operand 1.
20046         (cmpsi, cmp<mode>): Make private.
20047         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
20048         with COMPARE.
20049         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
20050
20051         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
20052         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
20053         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
20054         (cc_reg_operand): New.
20055         (any_cond): Delete.
20056         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
20057         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
20058         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
20059         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
20060         crx_expand_scond): Delete.
20061
20062         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
20063         (cbranchsi4): New.
20064         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
20065         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
20066
20067         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
20068         cstoresi4, cstoresf4, cstoredf4): New.
20069         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
20070         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
20071         Receive the entire operands array.
20072         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
20073         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
20074         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
20075         Get test/op0/op1 from the operands array.
20076         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
20077
20078         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
20079         (h8300_expand_store): New.
20080         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
20081         (const_int 0)).
20082         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
20083         (h8300_expand_store): New.
20084         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
20085         or do not try to produce (set (cc0) REG).
20086         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
20087         change a compare into a move to a scratch register.  Disable some
20088         peepholes when comparing with zero.
20089         (tstsi, tsthi, tstsi, cmpqi): Make private.
20090         (cmphi): Delete.
20091         (bCC, sCC): Delete.
20092         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
20093         cstoresi4): New.
20094
20095         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
20096         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
20097         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
20098         (ix86_emit_i387_log1p): Use cbranchxf2.
20099         (ix86_expand_setcc): Return void.
20100         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
20101         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
20102         cmp<MODEF>, cmpcc): Remove.
20103         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
20104         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
20105         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
20106         (sCC and bCC expanders): Remove.
20107         (stack_protect_test): Use cbranchcc4.
20108
20109         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
20110         Delete.
20111         (ia64_expand_compare): Accept three rtx by reference and return void.
20112         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
20113         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
20114         from *expr.  Update *expr with the BImode comparison to do.
20115         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
20116         cmptf, bCC, sCC, conditional_trap): Delete.
20117         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
20118         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
20119         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
20120         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
20121         * config/ia64/predicates.md (ia64_cbranch_operator): New.
20122
20123         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
20124         type of last argument.
20125         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
20126         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
20127         use machine mode argument instead of branch_type.  Remove dead
20128         code for floating-point comparisons.
20129         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
20130         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
20131         Remove.
20132         (cbranchsi4, cstoresi4): New.
20133         * config/iq2000/predicates.md (reg_or_const_operand): New.
20134
20135         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
20136         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
20137         (b<code>_op): Rewrite to...
20138         (bcc_op): ... this, using match_operator.
20139         (s<code>_op): Rewrite to...
20140         (scc_op): ... this, using match_operator.
20141         (s<code>_24_op): Rewrite to...
20142         (scc_op_24): ... this, using match_operator.
20143         (s<code>_<mode>): Rewrite to...
20144         (cstore<mode>4): ... this, using match_operator.
20145         (s<code>_<mode>_24): Rewrite to...
20146         (cstore<mode>4_24): ... this, using match_operator.
20147         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
20148         m32c_unpend_compare, m32c_expand_scc): Delete.
20149         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
20150         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
20151         (m32c_expand_movcc): Change NE to EQ if necessary.
20152         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
20153
20154         * config/m32r/m32r-protos.h (gen_cond_store): New.
20155         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
20156         (gen_cond_store): New, from sCC patterns.
20157         (m32r_expand_block_move): Use cbranchsi4.
20158         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
20159         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
20160         (cbranchsi4, cstoresi4): New.
20161
20162         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
20163         Delete.
20164         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
20165         (m68hc11_notice_update_cc): Look into a compare with 0.
20166         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
20167         Delete.
20168         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
20169         cmphi, cmpqi, bCC): Delete.
20170         (cbranchsi4, cbranchhi4, cbranchqi4): New.
20171         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
20172         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
20173         sets with COMPARE.
20174
20175         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
20176         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
20177         * config/m68k/constraints.md (H): New.
20178         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
20179         the define_insn below.
20180         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
20181         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
20182         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
20183         patterns): Wrap RHS with COMPARE.
20184         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
20185         (*cmpdi_internal): Name this pattern.
20186         (cmpdi): Change to define_insn.
20187         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
20188         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
20189         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
20190         predicate.
20191         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
20192         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
20193         (conditional_trap): Change to...
20194         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
20195         (*conditional_trap): Use the ordered_comparison_operator and
20196         const1_operand predicates.
20197         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
20198         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
20199         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
20200         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
20201
20202         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
20203         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
20204         (mcore_gen_compare): New.
20205         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
20206         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
20207         (mcore_gen_compare): ... this.
20208         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
20209         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
20210         (stack probe pattern): Use cbranchsi4.
20211
20212         * config/mips/predicates.md (mips_cstore_operator): New.
20213         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
20214         * config/mips/mips.md (any_cond): Delete.
20215         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
20216         always succeed.
20217         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
20218         fixuns_truncsfdi2): Use cbranch patterns.
20219         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
20220         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
20221         Adjust call to mips_expand_conditional_branch.
20222         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
20223         cstore<GPR:mode>4.
20224         * config/mips/mips-protos.h (mips_expand_conditional_branch,
20225         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
20226         * config/mips/mips.c (cmp_operands): Delete.
20227         (mips_emit_compare): Get comparison operands from *op0/*op1.
20228         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
20229         that it succeeds.  Use op0/op1 instead of cmp_operands.
20230         (mips_expand_conditional_branch, mips_expand_conditional_move,
20231         mips_expand_conditional_trap): Likewise.
20232         (mips_block_move_loop): Use cbranch patterns.
20233         * config/mips/mips.h (cmp_operands): Delete.
20234
20235         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
20236         (mmix_gen_compare_reg): Just return a register in the right CC mode.
20237         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
20238         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
20239         (*cmpcc_folded): Rename to...
20240         (*cmpdi_folded): this.
20241         (*cmpcc): Rename to...
20242         (*cmps): ... this.
20243         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
20244         (bCC): Remove.
20245         (cbranchdi4): New.
20246         (cbranchdf4): New.  Handle invalid comparisons here.
20247         * config/mmix/predicates.md (float_comparison_operator): New.
20248
20249         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
20250         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
20251         * config/mn10300/mn10300.md (tst): Delete.
20252         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
20253         Name these patterns and wrap RHS in a compare.
20254         (*cmpsi): Make this pattern private.  Include tst.
20255         (*cmpsf): Make this pattern private.
20256         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
20257         (compare with zero peepholes): Likewise.
20258         (bCC): Remove.
20259         (cbranchsi4, cbranchsf4): New.
20260         (casesi): Use cbranchsi4.
20261
20262         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
20263         hppa_branch_type): Delete.
20264         (return_addr_rtx): Use cbranchsi4.
20265         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
20266         Emit CCFPmode comparison here.
20267         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
20268         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
20269         hppa_branch_type): Delete.
20270         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
20271         (movsicc, movdicc): Remove references to hppa_compare_op0,
20272         hppa_compare_op1 and compare_from_rtx.
20273         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
20274         (casesi): Use cbranchsi4.
20275
20276         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
20277         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
20278         * config/pdp11/pdp11.md (register_or_const0_operand): New.
20279         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
20280         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
20281         (bCC): Delete.
20282         (cbranchdf4, cbranchhi4, cbranchqi4): New.
20283         (*branch, *branch_inverted): New.
20284
20285         * config/picochip/picochip.md (cbranchhi4): Use
20286         ordered_comparison_operator.
20287         (cmphi, bCC): Remove.
20288
20289         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
20290         (trap_comparison_operator): Delete.
20291         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
20292         rs6000_emit_cbranch): Accept mode and operands.
20293         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
20294         rs6000_compare_fp_p): Delete.
20295         (rs6000_generate_compare): Accept mode and comparison.  Extract code
20296         and op0/op1 from there.  Replace references to rs6000_compare_op0
20297         and rs6000_compare_op1.
20298         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
20299         extract result from passed operands.
20300         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
20301         extract loc from passed operands.
20302         (rs6000_emit_cmove): Likewise.
20303         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
20304         rs6000_compare_fp_p): Delete.
20305         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
20306         (cbranch<GPR>4, cbranch<FP>4): New.
20307         (cstore<mode>4): New.  Consolidate here all choices about when to use
20308         portable or specialized sCC sequences.
20309         (stack_protect_test): Use cbranchsi4.
20310         (conditional_trap): Replace with ctrap<GPR>4.
20311         (conditional trap insn): Replace trap_comparison_operator with
20312         ordered_comparison_operator.
20313
20314         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
20315         (s390_emit_prologue): Use ctrap.
20316         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
20317         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
20318         New predicates replacing...
20319         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
20320         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
20321         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
20322         (add<mode>cc): Do not use s390_compare_op0/op1.
20323         (s<code>): Change to...
20324         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
20325         (seq): Change to...
20326         (cstorecc4): ... this.  Handle EQ or NE equally.
20327         (*sne): Un-privatize for use in cstorecc4.
20328         (b<code>): Change to...
20329         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
20330         (conditional_trap): Replace with...
20331         (ctrap<GPR>4, ctrap<FP>4): ... these.
20332         (stack_protect): Use cbranchcc4.
20333
20334         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
20335         * config/score/score-protos.h (score_gen_cmp): Delete.
20336         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
20337         (score_block_move-loop): Use cbranchsi4.
20338         * config/score/score.md (cbranchsi4): New.
20339         (cmpsi, bCC): Delete.
20340         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
20341         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
20342         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
20343         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
20344         * config/score/score3.h (score3_gen_cmp): Delete.
20345         * config/score/score7.h (score7_gen_cmp): Delete.
20346
20347         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
20348         (sh_emit_scc_to_t): ... this.  Return void.
20349         (from_compare): Rename to...
20350         (sh_emit_compare_and_branch): ... this.
20351         (sh_emit_compare_and_set): New.
20352         (sh_expand_t_scc): Accept operands.
20353         * config/sh/predicates.md (sh_float_comparison_operator): New.
20354         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
20355         (prepare_scc_operands): Rename to...
20356         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
20357         arguments.
20358         (sh_emit_cheap_store_flag): New.
20359         (sh_emit_set_t_insn): New.
20360         (from_compare): Rename to...
20361         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
20362         handling of TARGET_SH2E floating point to avoid recursive call.
20363         Generate branch here.
20364         (sh_emit_compare_and_set): New.
20365         (sh_expand_t_scc): Get op0/op1 from arguments.
20366         (sh_emit_cheap_store_flag): New.
20367         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
20368         cases.
20369         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
20370         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
20371         (movsicc, movdicc): Do nothing when it recreated operands from
20372         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
20373         prepare_scc_operands (now sh_emit_scc_to_t).
20374         (udivdi3): Use cstoresi4.
20375         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
20376         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
20377         (cbranchint4_media, cbranchfp4_media): New.
20378         (casesi): Use cbranchdi4.
20379         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
20380         Delete.
20381         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
20382         (movnegt): Remove second operand.
20383         (cbranchsf4, cbranchdf4): New.
20384         (stack_protect): Use cbranchdi4/cbranchsi4.
20385
20386         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
20387         (gen_compare_reg): Accept comparison, extract part of it to...
20388         (gen_compare_reg_1): ... this.
20389         (gen_compare_operator): Delete.
20390         (gen_v9_scc): Accept separate destination, comparison code and arms.
20391         Do not use sparc_compare_op0/sparc_compare_op1.
20392         (emit_scc_insn, emit_conditional_branch_insn): New.
20393         (emit_v9_brxx): Make static.  Remove useless assertion.
20394         (sparc_emit_float_lib_cmp): Return RTL instead of calling
20395         emit_cmp_insn.
20396         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
20397         * config/sparc/sparc-protos.h (gen_compare_reg,
20398         sparc_emit_float_lib_cmp): Adjust prototype.
20399         (emit_scc_insn, emit_conditional_branch_insn): New.
20400         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
20401         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
20402         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
20403         iterators to the top.
20404         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
20405         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
20406         snedi_special_trunc): Delete.
20407         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
20408         and snedi_special_trunc.
20409         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
20410         cbranchdi4, cbranch<F:mode>4): New.
20411         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
20412         here.  Use gen_compare_reg instead of gen_compare_operator.
20413         (conditional_trap): Replace with...
20414         (ctrapsi4, ctrapdi4): ... this.
20415         (stack_protect_test): Use cbranchcc4.
20416
20417         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
20418         argument to rtx.
20419         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
20420         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
20421         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
20422         from operands[0] or operands[3] depending on is_set.
20423         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
20424         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
20425         cmpdf, bCC), sCC: Remove.
20426         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
20427         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
20428         cstoredf4): New.
20429         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
20430         spu_emit_branch_or_set.
20431
20432         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
20433         Add two arguments.
20434         * config/stormy16/stormy16.h (xstormy16_compare_op0,
20435         xstormy16_compare_op1): Delete.
20436         * config/stormy16/stormy16.c (xstormy16_compare_op0,
20437         xstormy16_compare_op1): Delete.
20438         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
20439         Adjust calls.
20440         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
20441         (cmphi, cmpsi, bCC): Remove.
20442
20443         * config/v850/v850.md (tstsi, cmpsi): Fold into...
20444         (*cmpsi): ... this one.
20445         (cbranchsi4, cstoresi4): New.
20446         (bCC expanders): Delete.
20447         (sCC insns): Fold into...
20448         (*setcc): ... this one.
20449         (casesi): Do not use gen_cmpsi and gen_bgtu.
20450         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
20451         (movsicc): Simplify.
20452         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
20453
20454         * config/vax/vax-protos.h (cond_name): New.
20455         (vax_output_conditional_branch): Remove.
20456         * config/vax/vax.c (cond_name): New.
20457         (vax_output_conditional_branch): Remove.
20458         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
20459         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
20460         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
20461         (bit<VAXint>): Wrap source with (compare).
20462         (b<code> and following unnamed pattern): Rename to *branch and
20463         *branch_reversed.  Change macroization to match_operator.
20464         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
20465
20466         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
20467         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
20468         Change last argument to machine_mode.
20469         (xtensa_expand_scc): Add machine_mode argument.
20470         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
20471         (gen_conditional_move, xtensa_expand_conditional_branch,
20472         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
20473         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
20474         Adjust operand numbers.
20475         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
20476         Delete.
20477         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
20478         (cmpsi, cmpsf, b<code>, s<code>): Delete.
20479         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
20480
20481 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
20482
20483         * optabs.c (prepare_cmp_insn): Temporarily disable test that
20484         causes spurious differences between trunk and cond-optab branch.
20485
20486 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
20487
20488         PR target/37137
20489         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
20490
20491 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
20492
20493         * tree.c (iterative_hash_pointer): Delete.
20494         (iterative_hash_expr): Short-circuit handling of NULL pointer.
20495         Hash UIDs and versions of SSA names.  Don't special-case built-in
20496         function declarations.
20497
20498 2009-05-11  Ian Lance Taylor  <iant@google.com>
20499
20500         PR bootstrap/40103
20501         * graphite.c: Force -Wc++-compat to only be a warning before
20502         #including "cloog/cloog.h".
20503
20504 2009-05-11  Martin Jambor  <mjambor@suse.cz>
20505
20506         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
20507
20508 2009-05-11  Jan Hubicka  <jh@suse.cz>
20509
20510         * tree-ssa-loop-ivcanon.c: Include target.h
20511         (struct loop_size): new structure.
20512         (constant_after_peeling): New predicate.
20513         (tree_estimate_loop_size): New function.
20514         (estimated_unrolled_size): Rewrite for new estimates.
20515         (try_unroll_loop_completely): Use new estimates.
20516         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
20517
20518 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20519
20520         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
20521         libcpp interface change.
20522         (spu_macro_to_expand): Likewise.
20523
20524 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
20525
20526         PR tree-optimization/40026
20527         * gimplify.c (gimplify_init_constructor): Change initial conditional
20528         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
20529         optimize_compound_literals_in_ctor.
20530
20531 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
20532
20533         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
20534         New devices.
20535         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
20536
20537 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
20538
20539         * tree-vect-data-refs.c (vect_analyze_group_access): Use
20540         HOST_WIDE_INT for gap.
20541
20542 2009-05-11  Ira Rosen  <irar@il.ibm.com>
20543
20544         PR tree-optimization/40074
20545         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
20546         account in group size and step comparison.
20547
20548 2009-05-11  Richard Guenther  <rguenther@suse.de>
20549
20550         * passes.c (init_optimization_passes): Strip now incorrect comment.
20551         (execute_function_todo): Do not set PROP_alias.
20552         * tree-pass.h (PROP_alias): Remove.
20553         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
20554         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
20555         * tree-nrv.c (pass_return_slot): Likewise.
20556         * tree-object-size.c (pass_object_sizes): Likewise.
20557         * tree-ssa-dom.c (pass_dominator): Likewise.
20558         (pass_phi_only_cprop): Likewise.
20559         * tree-ssa-dse.c (pass_dse): Likewise.
20560         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
20561         (pass_cselim): Likewise.
20562         * tree-ssa-pre.c (pass_pre): Likewise.
20563         (pass_fre): Likewise.
20564         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
20565         * tree-ssa-sink.c (pass_sink_code): Likewise.
20566         * tree-stdarg.c (pass_stdarg): Likewise.
20567         * tree-tailcall.c (pass_tail_calls): Likewise.
20568         * tree-vrp.c (pass_vrp): Likewise.
20569
20570 2009-05-10  Ian Lance Taylor  <iant@google.com>
20571
20572         * basic-block.h (enum profile_status): Break out of struct
20573         control_flow_graph.
20574         * cgraph.h (struct inline_summary): Break out of struct
20575         cgraph_local_info.
20576         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
20577         of struct cgraph_order_sort.
20578         * combine.c (enum undo_kind): New enum, broken out of struct undo.
20579         * cse.c (struct branch_path): Break out of struct
20580         cse_basic_block_data.
20581         * except.h (enum eh_region_type): Break out of struct eh_region.
20582         * gcc.c (enum add_del): Break out of struct modify_target.
20583         * genrecog.c (enum decision_type): Break out of struct decision_test.
20584         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
20585         ggc_pch_data.
20586         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
20587         * regmove.c (enum match_use): New enum, broken out of struct match.
20588         * sched-int.h (enum post_call_group): New enum, broken out of
20589         struct deps.
20590         (struct deps_reg): Break out of struct deps.
20591         * target.h (struct asm_int_op): Break out of struct gcc_target.
20592         * tree-eh.c (struct goto_queue_node): Break out of struct
20593         leh_tf_state.
20594         * tree-inline.h (enum copy_body_cge_which): Break out of
20595         copy_body_data.
20596         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
20597
20598         * c-decl.c (in_struct, struct_types): New static variables.
20599         (pushtag): Add loc parameter.  Change all callers.
20600         (lookup_tag): Add ploc parameter.  Change all callers.
20601         (check_compound_literal_type): New function.
20602         (parser_xref_tag): Add loc parameter.  Change all callers.  If
20603         -Wc++-compat, warn about struct/union/enum types defined within a
20604         struct or union.
20605         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
20606         and loc parameters.  Change all callers.  Change error calls to
20607         error_at, using loc.  For a redefinition, if the location of the
20608         original definition is known, report it.  Set in_struct and
20609         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
20610         (finish_struct): Add new parameters enclosing_in_struct and
20611         enclosing_struct_types.  Change all callers.  Set
20612         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
20613         in the struct.  If in a struct, add this struct to struct_types.
20614         (start_enum): Add loc parameter.  Change all callers.  Use
20615         error_at for errors, using loc.  For a redefinition, if the
20616         location of the original definition is known, report it.  If in a
20617         struct, add this enum type to struct_types.  If -Wc++-compat warn
20618         if in sizeof, typeof, or alignof.
20619         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
20620         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
20621         (c_parser_enum_specifier): Get enum location for start_enum.
20622         (c_parser_struct_or_union_specifier): Get struct location for
20623         start_struct.  Save in_struct and struct_types status between
20624         start_struct and finish_struct.
20625         (c_parser_cast_expression): Get location of cast.
20626         (c_parser_alignof_expression): Get location of type.
20627         (c_parser_postfix_expression): Likewise.
20628         (c_parser_postfix_expression_after_paren_type): Add type_loc
20629         parameter.  Change all callers.  Call check_compound_literal_type.
20630         Use type_loc for error about variable size type.
20631         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
20632         of an enum constant from an enum type defined in a struct or union.
20633         (c_cast_expr): Add loc parameter.  Change all callers.  If
20634         -Wc++-compat, warn about defining a type in a cast.
20635         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
20636         (start_enum, start_struct, finish_struct): Update declarations.
20637         (parser_xref_tag, c_cast_expr): Update declarations.
20638         (check_compound_literal_type): Declare.
20639
20640 2009-05-11  Ben Elliston  <bje@au.ibm.com>
20641
20642         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
20643         for recent libcpp interface change.
20644         (rs6000_macro_to_expand): Likewise.
20645
20646 2009-05-10  Michael Matz  <matz@suse.de>
20647
20648         PR target/40031
20649         * config/arm/arm.c (require_pic_register): Emit on entry edge,
20650         not at entry of function.
20651
20652 2009-05-10  Richard Guenther  <rguenther@suse.de>
20653
20654         PR tree-optimization/40081
20655         Revert
20656         * tree-sra.c (instantiate_element): Instantiate scalar replacements
20657         using the main variant of the element type.  Do not fiddle with
20658         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
20659
20660         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
20661         structs with volatile fields.
20662
20663 2009-05-10  Jan Hubicka  <jh@suse.cz>
20664
20665         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
20666         (estimate_move_cost): Assert that it does not get called for
20667         VOID_TYPE_P.
20668         (estimate_num_insns): Skip VOID types in argument handling.
20669         (optimize_inline_calls): Delete unreachable blocks and verify that
20670         callgraph is valid.
20671
20672 2009-05-10  Jan Hubicka  <jh@suse.cz>
20673
20674         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
20675         * cgraph.c (cgraph_mark_address_taken_node): New function.
20676         (dump_cgraph_node): Dump new flag.
20677         * cgraph.h (struct cgraph_node): Add address_taken.
20678         (cgraph_mark_address_taken_node): New function.
20679         * ipa.c (cgraph_postorder): Prioritize functions with address taken
20680         since new direct calls can be born.
20681
20682 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
20683
20684         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
20685         tok->val.node.node.
20686
20687 2009-05-10  Jan Hubicka  <jh@suse.cz>
20688
20689         PR middle-end/40084
20690         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
20691         argument; rewrite.
20692         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
20693         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
20694         * tree-inline.c (copy_bb): Set frequency correctly.
20695         (fold_marked_statements): Update call to
20696         cgraph_update_edges_for_call_stmt.
20697
20698 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
20699
20700         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
20701         identifiers in diagnostics.
20702         * config/arm/arm.c (arm_handle_fndecl_attribute,
20703         arm_handle_isr_attribute): Likewise.
20704         * config/avr/avr.c (avr_handle_progmem_attribute,
20705         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
20706         * config/bfin/bfin.c (handle_int_attribute,
20707         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
20708         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
20709         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
20710         Likewise.
20711         * config/darwin.c (darwin_handle_kext_attribute,
20712         darwin_handle_weak_import_attribute): Likewise.
20713         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
20714         h8300_handle_eightbit_data_attribute,
20715         h8300_handle_tiny_data_attribute): Likewise.
20716         * config/i386/i386.c (ix86_handle_cconv_attribute,
20717         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
20718         * config/i386/winnt.c (ix86_handle_shared_attribute,
20719         ix86_handle_selectany_attribute): Likewise.
20720         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
20721         * config/m32c/m32c.c (function_vector_handler): Likewise.
20722         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
20723         m68hc11_handle_fntype_attribute): Likewise.
20724         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
20725         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
20726         * config/mips/mips.c (mips_insert_attributes,
20727         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
20728         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
20729         rs6000_handle_struct_attribute): Likewise.
20730         * config/sh/sh.c (sh_insert_attributes,
20731         sh_handle_resbank_handler_attribute,
20732         sh_handle_interrupt_handler_attribute,
20733         sh2a_handle_function_vector_handler_attribute,
20734         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
20735         Likewise.
20736         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
20737         * config/spu/spu.c (spu_handle_fndecl_attribute,
20738         spu_handle_vector_attribute): Likewise.
20739         * config/stormy16/stormy16.c
20740         (xstormy16_handle_interrupt_attribute): Likewise.
20741         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
20742         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
20743
20744 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
20745
20746         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
20747         (pp_translate_identifiers): New.
20748         (pp_identifier): Only conditionally translate identifier to locale
20749         character set.
20750         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
20751         (pp_base_tree_identifier): Only conditionally translate identifier
20752         to locale character set.
20753         * c-pretty-print.c (M_): Define.
20754         (pp_c_type_specifier, pp_c_primary_expression): Mark English
20755         fragments for conditional translation with M_.
20756         * tree-pretty-print.c (maybe_init_pretty_print): Disable
20757         identifier translation.
20758
20759 2009-05-10  Richard Guenther  <rguenther@suse.de>
20760
20761         PR tree-optimization/40081
20762         * tree-sra.c (instantiate_element): Instantiate scalar replacements
20763         using the main variant of the element type.  Do not fiddle with
20764         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
20765
20766 2009-05-09  Jan Hubicka  <jh@suse.cz>
20767
20768         PR middle-end/40080
20769         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
20770         indirect calls; verify cgraph afterwards.
20771
20772 2009-05-09  Jan Hubicka  <jh@suse.cz>
20773
20774         PR bootstrap/40082
20775         * ipa.c (update_inlined_to_pointer): New function.
20776         (cgraph_remove_unreachable_nodes): Use it.
20777
20778 2009-05-09  Jan Hubicka  <jh@suse.cz>
20779
20780         * tree-eh.c (struct leh_state): Remove prev_try.
20781         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
20782         not track prev_try.
20783         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
20784         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
20785         remove_eh_handler_and_replace, foreach_reachable_handler,
20786         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
20787         * except.h (struct eh_region): Remove eh_region_u_cleanup.
20788         (gen_eh_region_cleanup): Update prototype.
20789
20790 2009-05-09  Jan Hubicka  <jh@suse.cz>
20791
20792         PR middle-end/40043
20793         * except.c (copy_eh_region): Always set prev_try.
20794         (redirect_eh_edge_to_label): Find outer try.
20795         (foreach_reachable_handler): When looking for prev try
20796         handle case where previous try is not going to be taken.
20797
20798 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
20799
20800         PR tree-optimization/40049
20801         * tree-vect-stmts.c (vectorizable_operation): If the machine has
20802         only vector/vector shifts, convert the type of the constant to the
20803         appropriate type to avoid building incorrect trees, which
20804         eventually have problems with garbage collection.
20805
20806 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
20807
20808         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
20809         -1 for complex floating-point types if honoring signed zeros.
20810
20811 2009-05-08  Jan Hubicka  <jh@suse.cz>
20812
20813         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
20814         argument; handle correctly when profile is absent.
20815         (build_cgraph_edges): Update.
20816         (rebuild_cgraph_edges): Update.
20817         * cgraph.c: Do not include varray.h.
20818         (cgraph_set_call_stmt_including_clones): New function.
20819         (cgraph_create_edge_including_clones): Likewise
20820         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
20821         (cgraph_update_edges_for_call_stmt): Handle clones.
20822         (cgraph_remove_node): Handle clone tree.
20823         (cgraph_remove_node_and_inline_clones): New function.
20824         (dump_cgraph_node): Dump clone tree.
20825         (cgraph_clone_node): Handle clone tree.
20826         (clone_function_name): Bring here from tree-inline.c.
20827         (cgraph_create_virtual_clone): New function.
20828         * cgraph.h (ipa_replace_map): Move here from ipa.h.
20829         (cgraph_clone_info): New function.
20830         (strut cgraph_node): Add clone_info and new clone tree pointers.
20831         (cgraph_remove_node_and_inline_clones,
20832         cgraph_set_call_stmt_including_clones,
20833         cgraph_create_edge_including_clones,
20834         cgraph_create_virtual_clone): Declare.
20835         (cgraph_function_versioning): Use VEC argument.
20836         (compute_call_stmt_bb_frequency): Update prototype.
20837         (cgraph_materialize_all_clones): New function.
20838         * ipa-cp.c (ipcp_update_cloned_node): Remove.
20839         (ipcp_create_replace_map): Update to VECtors.
20840         (ipcp_update_callgraph): Use virtual clones.
20841         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
20842         (ipcp_update_profiling): Do not update local profiling.
20843         (ipcp_insert_stage): Use VECtors and virtual clones.
20844         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
20845         (clone_of_p): New function.
20846         (cgraph_preserve_function_body_p): Use clone tree.
20847         (cgraph_optimize): Materialize clones.
20848         (cgraph_function_versioning): Update for VECtors.
20849         (save_inline_function_body): Use clone tree.
20850         (cgraph_materialize_clone): New function.
20851         (cgraph_materialize_all_clones): Likewise.
20852         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
20853         * ipa.c: Include gimple.h.
20854         (cgraph_remove_unreachable_nodes): Use clone tree.
20855         * ipa-prop.c (ipa_note_param_call): Update call to
20856         compute_call_stmt_bb_frequencycall.
20857         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
20858         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
20859         (copy_bb): Handle updating of clone tree; add new edge when new call
20860         appears.
20861         (expand_call_inline): Be strict about every call having edge.
20862         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
20863         (delete_unreachable_blocks_update_callgraph): New function.
20864         (tree_function_versioning): Use VECtors; always remove unreachable
20865         blocks and fold conditionals.
20866         * tree-inline.h: Do not include varray.h.
20867         (tree_function_versioning): Remove.
20868         * Makefile.in (GTFILES): Remove tree-inline.c
20869         * passes.c (do_per_function): Do only functions having body.
20870         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
20871         tree.
20872
20873 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
20874             Andrew Morrow  <acm@google.com>
20875
20876         PR c/36892
20877         * c-common.c (c_common_attribute_table): Permit deprecated
20878         attribute to take an optional argument.
20879         (handle_deprecated_attribute): If the optional argument to
20880         __attribute__((deprecated)) is not a string ignore the attribute
20881         and emit a warning.
20882
20883         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
20884         * c-typeck.c (build_component_ref): Likewise.
20885         (build_external_ref): Likewise.
20886
20887         * toplev.c (warn_deprecated_use): Add an attribute argument.
20888         Emit the message associated with __attribute__((deprecated)).
20889
20890         * toplev.h (warn_deprecated_use): Updated.
20891
20892         * doc/extend.texi: Document new optional parameter to
20893         __attribute__((deprecated))
20894
20895 2009-05-08  Michael Eager <eager@eagercon.com>
20896
20897         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
20898         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
20899
20900 2009-05-08  Richard Guenther  <rguenther@suse.de>
20901
20902         PR tree-optimization/40062
20903         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
20904         Avoid exponential behavior.
20905
20906 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
20907
20908         PR rtl-optimization/33928
20909         PR 26854
20910         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
20911         process_uses, build_single_def_use_links): New.
20912         (update_df): Update use_def_ref.
20913         (forward_propagate_into): Use get_def_for_use instead of use-def
20914         chains.
20915         (fwprop_init): Call build_single_def_use_links and let it initialize
20916         dataflow.
20917         (fwprop_done): Free use_def_ref.
20918         (fwprop_addr): Eliminate duplicate call to df_set_flags.
20919         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
20920         df_rd_simulate_one_insn): New.
20921         (df_rd_bb_local_compute_process_def): Update head comment.
20922         (df_chain_create_bb): Use the new RD simulation functions.
20923         * df.h (df_rd_simulate_artificial_defs_at_top,
20924         df_rd_simulate_one_insn): New.
20925         * opts.c (decode_options): Enable fwprop at -O1.
20926         * doc/invoke.texi (-fforward-propagate): Document this.
20927
20928 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
20929
20930         PR c/24581
20931         * c-typeck.c (build_binary_op): Handle arithmetic between one real
20932         and one complex operand specially.
20933         * tree-complex.c (some_nonzerop): Do not identify a real value as
20934         zero if flag_signed_zeros.
20935
20936 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
20937
20938         PR rtl-optimization/33928
20939         * loop-invariant.c (record_use): Fix && vs. || mishap.
20940
20941 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
20942
20943         PR rtl-optimization/33928
20944         * loop-invariant.c (struct use): Add addr_use_p.
20945         (struct def): Add n_addr_uses.
20946         (struct invariant): Add cheap_address.
20947         (create_new_invariant): Set cheap_address.
20948         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
20949         (record_uses): Pass df_ref to record_use.
20950         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
20951         used only as such.
20952
20953 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
20954
20955         * config/sh/sh.c: Do not include c-pragma.h.
20956
20957 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20958
20959         * config/spu/spu.c: Remove include of c-common.h.
20960
20961 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
20962
20963         PR c/39037
20964         * c-common.h (mark_valid_location_for_stdc_pragma,
20965         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
20966         clear_float_const_decimal64, float_const_decimal64_p): New.
20967         * c.opt (Wunsuffixed-float-constants): New.
20968         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
20969         unsuffixed float constant, handle new warning.
20970         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
20971         * c-decl.c (c_scope): New flag float_const_decimal64.
20972         (set_float_const_decimal64, clear_float_const_decimal64,
20973         float_const_decimal64_p): New.
20974         (push_scope): Set new flag.
20975         * c-parser.c (c_parser_translation_unit): Mark when it's valid
20976         to use STDC pragmas.
20977         (c_parser_external_declaration): Ditto.
20978         (c_parser_compound_statement_nostart): Ditto.
20979         * c-pragma.c (valid_location_for_stdc_pragma,
20980         mark_valid_location_for_stdc_pragma,
20981         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
20982         handle_pragma_float_const_decimal64): New.
20983         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
20984         * cp/semantics.c (valid_location_for_stdc_pragma_p,
20985         set_float_const_decimal64, clear_float_const_decimal64,
20986         float_const_decimal64_p): New dummy functions.
20987         * doc/extend.texi (Decimal Float): Remove statement that the
20988         pragma, and suffix for double constants, are not supported.
20989         * doc/invoke.texi (Warning Options): List new option.
20990         (-Wunsuffixed-float-constants): New.
20991
20992 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
20993
20994         * config/i386/i386.c: Do not include c-common.h.
20995
20996 2009-05-07  Mark Heffernan  <meheff@google.com>
20997
20998         * doc/invoke.texi (Debugging Options): Document change of debugging
20999         dump location.
21000         * opts.c (decode_options): Make dump_base_name relative to
21001         aux_base_name directory.
21002
21003 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
21004
21005         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
21006         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
21007
21008 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
21009
21010         * Makefile.in (install-plugin): Simplify a bit.
21011
21012 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
21013
21014         * Makefile.in (OBJS-common): Add regcprop.o.
21015         (regcprop.o): New.
21016         * timevar.def (TV_CPROP_REGISTERS): New.
21017         * regrename.c (regrename_optimize): Return 0.
21018         (rest_of_handle_regrename): Delete.
21019         (pass_rename_registers): Point to regrename_optimize.
21020         (struct value_data_entry, struct value_data,
21021         kill_value_one_regno, kill_value_regno, kill_value,
21022         set_value_regno, init_value_data, kill_clobbered_value,
21023         kill_set_value, kill_autoinc_value, copy_value,
21024         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
21025         replace_oldest_value_reg, replace_oldest_value_addr,
21026         replace_oldest_value_mem, copyprop_hardreg_forward_1,
21027         debug_value_data, validate_value_data): Move...
21028         * regcprop.c: ... here.
21029         (rest_of_handle_cprop): Delete.
21030         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
21031
21032 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
21033
21034         PR middle-end/40057
21035         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
21036         GEN_INT for 1 << bitnum.
21037         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
21038         build_int_cst_type.
21039
21040 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
21041
21042         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
21043         Remove wrong description of "nand" operation.
21044
21045 2009-05-06  Richard Guenther  <rguenther@suse.de>
21046             Adam Nemet  <anemet@caviumnetworks.com>
21047
21048         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
21049         comment.  Add that if LHS is not a gimple register, then RHS1 has
21050         to be a single object (GIMPLE_SINGLE_RHS).
21051
21052 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
21053
21054         * expr.c (get_def_for_expr): Move it up in the file.
21055         (store_field): When expanding a bit-field store, look at the
21056         defining gimple stmt for the masking conversion.
21057
21058 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
21059
21060         PR middle-end/39986
21061         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
21062         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
21063         32-bit memcpy into long.
21064
21065 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
21066
21067         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
21068         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
21069         new_reg_loc_descr.
21070         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
21071         instead of appending DW_OP_deref*.
21072
21073 2009-05-06  Michael Matz  <matz@suse.de>
21074
21075         PR middle-end/40021
21076         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
21077         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
21078
21079 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
21080
21081         * Makefile.in (install-plugin): Fix srcdir handling.
21082
21083 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
21084
21085         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
21086         when processing for not_regs_needed bitmap.
21087         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
21088         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
21089         handling it for rhs.
21090
21091 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
21092
21093         * config/i386/i386.md (unnamed inc/dec peephole): Use
21094         optimize_insn_for_size_p instead of optimize_size.
21095         * config/i386/predicates.md (incdec_operand): Likewise.
21096         (aligned_operand): Likewise.
21097         * config/i386/sse.md (divv8sf3): Likewise.
21098         (sqrtv8sf2): Likewise.
21099
21100 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
21101
21102         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
21103
21104         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
21105
21106 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
21107
21108         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
21109         ssemodesuffixf2c with avxmodesuffixf2c.
21110
21111 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
21112
21113         PR c/40032
21114         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
21115
21116 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
21117
21118         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
21119         (struct tree_base): Adjust spacing for 8 bit boundaries.
21120         (struct tree_decl_common): Add decl_by_reference_flag bit.
21121         (DECL_BY_REFERENCE): Adjust.
21122         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
21123         print DECL_BY_REFERENCE bit.
21124         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
21125         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
21126         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
21127         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
21128         unconditionally.
21129
21130         PR middle-end/39666
21131         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
21132         range of the type, but default label is missing, add it with one
21133         of the existing labels instead of adding a new label for it.
21134
21135 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
21136
21137         * dwarf.h: Remove.
21138
21139 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
21140
21141         * Makefile.in (enable_plugin, plugin_includedir): New.
21142         (install): Depend on install-plugin.
21143         (PLUGIN_HEADERS): New.
21144         (install-plugin): New.
21145         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
21146
21147 2009-05-05  Richard Guenther  <rguenther@suse.de>
21148
21149         PR tree-optimization/40022
21150         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
21151         the only vuse.
21152         (phivn_valid_p): Fix tuplification error, simplify.
21153         (phiprop_insert_phi): Add dumps.
21154         (propagate_with_phi): Simplify.
21155
21156 2009-05-05  Richard Guenther  <rguenther@suse.de>
21157
21158         PR middle-end/40023
21159         * builtins.c (gimplify_va_arg_expr): Properly build the address.
21160
21161 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
21162
21163         * tree.h (strip_float_extensions): Remove duplicate declaration.
21164         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
21165         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
21166         block_ultimate_origin): Rearrange the declarations line to match the
21167         comment that indicates the .c file which the functions are defined.
21168         (dwarf2out_*, set_decl_rtl): Add comment.
21169         (get_base_address): Adjust comment.
21170         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
21171         declarations line and add comment.
21172         (is_builtin_name): Add blank after function name, for clarity.
21173
21174 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
21175
21176         * attribs.c (decl_attributes): Use %qE for identifiers in
21177         diagnostics.
21178         * cgraphunit.c (verify_cgraph_node): Translate function names to
21179         locale character set in diagnostics.
21180         * coverage.c (get_coverage_counts): Use %qE for identifiers in
21181         diagnostics.
21182         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
21183         Document that functions are named in UTF-8.
21184         * expr.c (expand_expr_real_1): Translate function names to locale
21185         character set in diagnostics.
21186         * gimplify.c (omp_notice_variable, omp_is_private,
21187         gimplify_scan_omp_clauses): Use %qE for identifiers in
21188         diagnostics.
21189         * langhooks.c (lhd_print_error_function): Translate function names
21190         to locale character set.
21191         * langhooks.h (decl_printable_name): Document that return value is
21192         in internal character set.
21193         * stmt.c: Include pretty-print.h
21194         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
21195         diagnostics.
21196         (resolve_operand_name_1): Translate named operand name to locale
21197         character set.
21198         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
21199         diagnostics.
21200         * toplev.c (announce_function): Translate function names to locale
21201         character set.
21202         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
21203         (default_tree_printer): Use pp_identifier or translate identifiers
21204         to locale character set.  Mark "<anonymous>" for translation.
21205         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
21206         for identifiers in diagnostics.
21207         * tree.c (handle_dll_attribute): Use %qE for identifiers in
21208         diagnostics.
21209         * varasm.c (output_constructor): Use %qE for identifiers in
21210         diagnostics.
21211
21212 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
21213
21214         * configure.ac: use ` ` instead of $()
21215         * configure: Regenerate.
21216
21217 2009-05-05  Ben Elliston  <bje@au.ibm.com>
21218
21219         * config/pa/linux-atomic.c: Eliminate conditional include of
21220         errno.h on non-LP64 systems to simplify build requirements.
21221
21222 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
21223
21224         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
21225         diagnostics.
21226         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
21227         and pass value to identifier_to_locale.
21228         (warn_variable_length_array): Make name a tree.
21229         (grokdeclarator): Separate diagnostic texts for named and unnamed
21230         declarators.  Use %qE for named declarators.
21231         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
21232         diagnostics.
21233         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
21234         identifiers in diagnostics.
21235         * c-typeck.c (push_member_name, start_init): Pass identifiers to
21236         identifier_to_locale.  Mark "anonymous" strings for translation.
21237
21238 2009-05-04  Michael Eager <eager@eagercon.com>
21239
21240         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
21241         address for DImode/DFmode only if double-precision FP regs.
21242
21243 2009-05-04  Michael Eager <eager@eagercon.com>
21244
21245         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
21246         TARGET_SINGLE_FLOAT check.
21247
21248 2009-05-04  Michael Eager <eager@eagercon.com>
21249
21250         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
21251
21252 2009-05-04  Michael Eager <eager@eagercon.com>
21253
21254         * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
21255         * config/rs6000/t-xilinx: New
21256
21257 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
21258
21259         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
21260         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
21261         * gcc/explow.c (memory_address): Use target hook.
21262         * gcc/targhooks.c (default_legitimize_address): New.
21263         * gcc/targhooks.h (default_legitimize_address): New.
21264         * gcc/target.h (legitimize_address): New.
21265         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
21266         (TARGET_INITIALIZER): Include it.
21267         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
21268
21269         * config/bfin/bfin-protos.h (legitimize_address): Remove.
21270         * config/bfin/bfin.c (legitimize_address): Remove.
21271         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
21272         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
21273         Remove.
21274         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
21275         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
21276
21277         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
21278         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
21279         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
21280         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
21281         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
21282         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
21283         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
21284         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
21285         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
21286         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
21287         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
21288         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
21289         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
21290         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
21291         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
21292         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
21293         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
21294         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
21295         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
21296         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
21297         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
21298         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
21299         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
21300
21301         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
21302         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
21303         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
21304         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
21305         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
21306         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
21307         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
21308         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
21309         (thumb_legitimize_address): Delete.
21310         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
21311         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
21312         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
21313         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
21314         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
21315         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
21316         Delete.
21317         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
21318         Delete.
21319
21320         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
21321         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
21322         * config/m32r/m32r.c (m32r_legitimize_address): New.
21323         * config/m68k/m68k.c (m68k_legitimize_address): New.
21324         * config/score/score.c (score_legitimize_address): Standardize.
21325         * config/score/score3.c (score3_legitimize_address): Standardize.
21326         * config/score/score3.h (score3_legitimize_address): Adjust.
21327         * config/score/score7.c (score7_legitimize_address): Standardize.
21328         * config/score/score7.h (score7_legitimize_address): Adjust.
21329         * config/sh/sh.c (sh_legitimize_address): New.
21330         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
21331
21332         * gcc/config/s390/s390.c (legitimize_address): Rename to...
21333         (s390_legitimize_address): ... this.
21334         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
21335         (sparc_legitimize_address): ... this.
21336         * gcc/config/i386/i386.c (legitimize_address): Rename to...
21337         (ix86_legitimize_address): ... this.
21338         * gcc/config/avr/avr.c (legitimize_address): Rename to...
21339         (avr_legitimize_address): ... this.
21340         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
21341         (mn10300_legitimize_address): ... this.
21342         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
21343         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
21344         (alpha_expand_mov): Adjust call.
21345
21346         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
21347         * config/spu/spu.c (spu_legitimize_address): Likewise.
21348         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
21349         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
21350
21351 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
21352
21353         * intl.c (locale_encoding, locale_utf8): New.
21354         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
21355         * intl.h (locale_encoding, locale_utf8): Declare.
21356         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
21357         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
21358         New.
21359         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
21360         argument.
21361         (pp_tree_identifier): Define to call pp_base_tree_identifier.
21362         (pp_base_tree_identifier): Declare as function.
21363         (identifier_to_locale): Declare.
21364         * Makefile.in (pretty-print.o): Update dependencies.
21365         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
21366
21367 2009-05-04  Richard Guenther  <rguenther@suse.de>
21368
21369         PR middle-end/40015
21370         * builtins.c (fold_builtin_memory_op): Do not decay to element
21371         type if the size matches the whole array.
21372
21373 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
21374
21375         * expmed.c (synth_mult): When trying out a shift, pass the result
21376         of a signed shift.
21377
21378 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
21379
21380         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
21381         (shiftsub1_cost): New.
21382         (init_expmed): Compute shiftsub1_cost.
21383         (synth_mult): Optimize multiplications by constants of the form
21384         -(2^^m-1) for some constant positive integer m.
21385
21386 2009-05-03  Richard Guenther  <rguenther@suse.de>
21387
21388         PR c/39983
21389         * c-typeck.c (array_to_pointer_conversion): Do not built
21390         ADDR_EXPRs of arrays of pointer-to-element type.
21391         * c-gimplify.c (c_gimplify_expr): Revert change fixing
21392         up wrong ADDR_EXPRs after-the-fact.
21393         * c-common.c (strict_aliasing_warning): Strip pointer
21394         conversions for obtaining the original type.
21395         * builtins.c (fold_builtin_memset): Handle array types.
21396         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
21397         and array types
21398
21399 2009-05-03  Richard Guenther  <rguenther@suse.de>
21400
21401         PR middle-end/23329
21402         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
21403         Do not lose casts from array types with unknown extent to array
21404         types with known extent.
21405         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
21406         alias set compatibility.
21407
21408 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21409
21410         * flags.h (extra_warnings): Delete.
21411         * toplev.c (process_options): Handle Wuninitialized here.
21412         * opts.c (extra_warnings): Delete.
21413         (set_Wextra): Delete.
21414         (common_handle_option): -Wextra can be handled automatically.
21415         * c-opts.c (c_common_handle_option): Delete obsolete code.
21416         (c_common_post_options): Simplify comment.
21417         * common.opt (W): Add Var.
21418         (Wextra): Add Var.
21419         (Wuninitialized): Initialize to -1.
21420
21421 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
21422             Richard Guenther  <rguenther@suse.de>
21423
21424         * expr.c (get_def_for_expr): New function.
21425         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
21426         SSA rather than trees.
21427         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
21428         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
21429
21430 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
21431
21432         * c-common.c (reswords): Add _Imaginary.
21433         * c-common.c (enum rid): Add RID_IMAGINARY.
21434
21435 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
21436
21437         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
21438         Patch by Richard Guenther.
21439
21440 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
21441
21442         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
21443         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
21444         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
21445         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
21446         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
21447         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
21448         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
21449         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
21450         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
21451         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
21452         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
21453         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
21454         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
21455         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
21456         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
21457         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
21458         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
21459         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
21460
21461 2009-05-02  Richard Guenther  <rguenther@suse.de>
21462
21463         PR tree-optimization/39940
21464         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
21465         doing so.
21466
21467 2009-05-02  Richard Guenther  <rguenther@suse.de>
21468
21469         PR middle-end/40001
21470         * tree-ssa.c (execute_update_addresses_taken): Properly check
21471         if we can mark a variable DECL_GIMPLE_REG_P.
21472         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
21473         back to the end of the function.
21474         (is_gimple_reg_type): Remove complex type special casing.
21475         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
21476         if not optimizing.
21477
21478 2009-05-02  Ben Elliston  <bje@au.ibm.com>
21479
21480         * doc/collect2.texi (Collect2): Document search path behaviour
21481         when configured with --with-ld.
21482
21483 2009-05-02  Jan Hubicka  <jh@suse.cz>
21484
21485         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
21486         parameter; update callers.
21487         (coalesce_cost_edge): EH edges are costier because they needs
21488         splitting even if not critical and even more costier when there are
21489         multiple EH predecestors.
21490
21491 2009-05-02  Jan Hubicka  <jh@suse.cz>
21492
21493         * except.c (remove_eh_handler_and_replace): Handle updating after
21494         removing TRY blocks.
21495
21496 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
21497
21498         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
21499
21500 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
21501
21502         * varasm.c: Do not include c-pragma.h.
21503         * attribs.c: Do not incude c-common.h.
21504
21505 2009-05-01  Michael Matz  <matz@suse.de>
21506
21507         * calls.c (initialize_argument_information): Handle SSA names like
21508         decls with a non MEM_P DECL_RTL.
21509
21510 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
21511
21512         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
21513         * ipa-utils.c: Likewise.
21514         * ipa-type-escape.c: Likewise.
21515         * cgraphunit.c Do not include c-common.h.
21516         * ipa-pure-const.c: Likewise.
21517         * tree-if-conv.c: Likewise.
21518         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
21519         * ipa-struct-reorg.c: Likewise.
21520         * tree-nomudflap.c: Likewise.
21521         * tree-ssa-structalias.c: Likewise.
21522
21523 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
21524
21525         * store-motion.c: Many cleanups to make this pass a first-class
21526         citizen instead of an appendix to gcse load motion.  Add TODO list
21527         to make this pass faster/cleaner/better.
21528
21529         (struct ls_expr): Post gcse.c-split cleanups.
21530         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
21531         "stores" field to "avail_stores".
21532         (pre_ldst_mems): Rename to store_motion_mems.
21533         (pre_ldst_table): Rename to store_motion_mems_table.
21534         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
21535         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
21536         (ldst_entry): Rename to st_expr_entry, update users.
21537         (free_ldst_entry): Rename to free_st_expr_entry, update users.
21538         (free_ldst_mems): Rename to free_store_motion_mems, update users.
21539         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
21540         update caller.
21541         (first_ls_expr): Rename to first_st_expr, update users.
21542         (next_ls_expr): Rename to next_st_expr, update users.
21543         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
21544         fields properly for store motion instead of names inherited from load
21545         motion in gcse.c.
21546         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
21547         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
21548         are done with it.
21549
21550         (ae_kill): Rename to st_kill, update users.
21551         (ae_gen): Rename to st_avloc, update users.
21552         (transp): Rename to st_transp, update users.
21553         (pre_insert_map): Rename to st_insert_map, update users.
21554         (pre_delete_map): Rename to st_delete_map, update users.
21555         (insert_store, build_store_vectors, free_store_memory,
21556         one_store_motion_pass): Update for abovementioned changes.
21557
21558         (gcse_subst_count, gcse_create_count): Remove.
21559         (one_store_motion_pass): New statistics counters "n_stores_deleted"
21560         and "n_stores_created", local variables.
21561
21562         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
21563         use for_each_rtx.
21564
21565         (regvec, compute_store_table_current_insn): Remove.
21566         (reg_set_info, reg_clear_last_set): Remove.
21567         (compute_store_table): Use DF caches instead of local dataflow
21568         solvers.
21569
21570 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
21571
21572         * c-objc-common.c (c_tree_printer): Print identifiers with
21573         pp_identifier, not pp_string.  Mark "({anonymous})" for
21574         translation.
21575         * c-pretty-print.c (pp_c_ws_string): New.
21576         (pp_c_cv_qualifier, pp_c_type_specifier,
21577         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
21578         pp_c_storage_class_specifier, pp_c_function_specifier,
21579         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
21580         pp_c_primary_expression, pp_c_postfix_expression,
21581         pp_c_unary_expression, pp_c_shift_expression,
21582         pp_c_relational_expression, pp_c_equality_expression,
21583         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
21584         use pp_string and pp_c_ws_string in place of pp_identifier and
21585         pp_c_identifier for non-identifiers.  Mark English strings for
21586         translation.
21587         * c-pretty-print.h (pp_c_ws_string): Declare.
21588
21589 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
21590             Roland McGrath <roland@redhat.com>
21591
21592         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
21593         (ENABLE_LD_BUILDID): New configuration option.
21594         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
21595         (LINK_BUILDID_SPEC): New macro.
21596         (init_spec): If defined, prepend it between LINK_EH_SPEC and
21597         link_spec.
21598         * doc/install.texi: Document --enable-linker-build-id option.
21599         * configure: Rebuild.
21600         * config.in: Rebuild.
21601
21602 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
21603
21604         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
21605         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
21606         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
21607         MIPS_GP_SAVE_AREA_SIZE.
21608         * config/mips/mips.c (struct mips_frame_info): Update comment
21609         before arg_pointer_offset and hard_frame_pointer_offset.
21610         (mips_compute_frame_info): Update diagram before function: to
21611         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
21612         indicate the position of frame_pointer_rtx with -fstack-protector and
21613         to show args_size.  Don't allocate cprestore area for leaf functions
21614         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
21615         cprestore_size.
21616         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
21617
21618 2009-04-30  Michael Matz  <matz@suse.de>
21619
21620         PR tree-optimization/39955
21621         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
21622
21623 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
21624
21625         * ira.c (setup_cover_and_important_classes):  Use safe macro
21626         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
21627         directly.
21628         * genpreds.c (write_tm_preds_h):  Output suitable definition of
21629         REG_CLASS_FOR_CONSTRAINT.
21630
21631 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
21632
21633         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
21634         instead of an int.
21635         * bitmap.c (bitmap_descriptor): Likewise.
21636         * ggc-common.c (loc_descriptor): Likewise.
21637         * varray.c (varray_descriptor): Likewise.
21638         * vec.c (vec_descriptor): Likewise.
21639
21640 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
21641
21642         * Makefile.in (dce.o): Add $(EXCEPT_H).
21643         * dce.c: Include except.h and delete redundant vector definitions.
21644         (deletable_insn_p): Return false for non-call insns that can throw
21645         if DF is running.
21646
21647 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
21648
21649         * gcse.c (ae_gen): Remove.
21650         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
21651         and make non-static function to make it available in store-motion.c.
21652         Update call sites with search-and-replace.
21653         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
21654         extract_mentioned_regs, extract_mentioned_regs_helper,
21655         find_moveable_store, compute_store_table, load_kills_store, find_loads,
21656         store_killed_in_insn, store_killed_after, store_killed_before,
21657         build_store_vectors, insert_insn_start_basic_block, insert-store,
21658         remove_reachable_equiv_notes, replace_store_insn, delete_store,
21659         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
21660         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
21661         * store-motion.c: ...new file.  Also copy data structures from gcse.c
21662         and clean up to remove parts not used by store motion.
21663         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
21664         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
21665
21666 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21667
21668         PR target/38571
21669         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
21670         when optimizing for size.
21671
21672 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
21673
21674         * gcse.c (gcse_constant_p): Fix typo in last change.
21675
21676 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
21677
21678         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
21679
21680 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
21681
21682         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
21683
21684 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
21685
21686         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
21687         CONST_HIGH_PART result.
21688
21689 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
21690
21691         * config/avr/avr.c (initial_elimination_offset): Rename to
21692         avr_initial_elimination_offset.
21693         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
21694         change return type to bool.
21695         (avr_can_eliminate): New function.
21696         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
21697         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
21698         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
21699         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
21700         avr_initial_elimination_offset.
21701         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
21702         (avr_initial_elimination_offset): Define.
21703
21704 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
21705             Steven Bosscher  <steven@gcc.gnu.org>
21706
21707         PR rtl-optimization/39938
21708         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
21709         * cfgrtl.c: Include insn-attr.h.
21710         (rest_of_pass_free_cfg): New function.
21711         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
21712         * resource.c (init_resource_info): Remove call to df_analyze.
21713
21714 2009-04-29  Richard Guenther  <rguenther@suse.de>
21715
21716         PR target/39943
21717         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
21718         allow conversion to signed integers.
21719
21720 2009-04-29  Richard Guenther  <rguenther@suse.de>
21721
21722         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
21723         shifts of floating point vectors if the shift amount is
21724         a constant multiple of the element size.
21725
21726 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
21727             Michael Matz  <matz@suse.de>
21728
21729         PR middle-end/39927
21730         PR bootstrap/39929
21731         * tree-outof-ssa.c (emit_partition_copy): New function.
21732         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
21733         insert_part_to_rtx_on_edge): Perform the partition base var
21734         copy using emit_partition_copy.
21735         (insert_value_copy_on_edge): Convert constants to the right mode.
21736         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
21737         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
21738
21739 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
21740
21741         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
21742         scan backwards to try to find a constant to initialize it.
21743
21744         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
21745         insn before the loop_end instruction, don't look past labels.
21746
21747 2009-04-29  Richard Guenther  <rguenther@suse.de>
21748
21749         PR middle-end/39937
21750         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
21751         loose type conversions.
21752         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
21753         stmts only if there are no uses of its definition.
21754
21755 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
21756
21757         * config/bfin/bfin.h (splitting_loops): Declare.
21758         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
21759         Reorder bit definitions to be ascending.
21760         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
21761         * config/bfin/bfin.c (splitting_loops): New variable.
21762         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
21763         (struct loop_info): Remove members INIT and LOOP_INIT.
21764         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
21765         the LSETUP sequence.  Allow LC to be loaded from any register, but
21766         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
21767         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
21768         set to 1.
21769         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
21770         of reload_completed.
21771
21772         From Jie Zhang:
21773         * config/bfin/bfin.md (movsi_insn): Refine constraints.
21774
21775 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
21776
21777         * Makefile.in (PLUGIN_VERSION_H): New.
21778         (OBJS-common): Remove plugin-version.o.
21779         (plugin.o): Depend on (PLUGIN_VERSION_H).
21780         (plugin-version.o): Remove.
21781         * configure: Regenerate
21782         * configure.ac: Create plugin-version.h.
21783         * gcc-plugin.h (plugin_gcc_version): Remove.
21784         (plugin_default_version_check): Change signature.
21785         * plugin-version.c: Remove.
21786         * plugin.c: Include plugin-version.h.
21787         (str_plugin_gcc_version_name): Remove.
21788         (try_init_one_plugin): Pass gcc version to plugin_init.
21789         (plugin_default_version_check): Both gcc and plugin versions are now
21790         arguments.
21791
21792 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
21793
21794         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
21795         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
21796         Remove special case testing for last insn of inner loops. Don't fail
21797         if the loop ends with a jump, emit an extra nop instead.
21798
21799         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
21800         DREGS rather than comparing directly.  Remove code that tries to
21801         account for latencies.
21802
21803 2009-04-29  Richard Guenther  <rguenther@suse.de>
21804
21805         PR tree-optimization/39941
21806         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
21807         eliminating an indirect call.
21808
21809 2009-04-29  Richard Guenther  <rguenther@suse.de>
21810
21811         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
21812         parameter.  Allow invariants as base if !require_lvalue.
21813         (verify_gimple_assign_single): Adjust.
21814
21815 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
21816
21817         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
21818         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
21819         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
21820         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
21821         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
21822         a VEC_SELECT.
21823         * config/bfin/bfin.c (bfin_expand_builtin,
21824         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
21825
21826 2009-04-28  Richard Guenther  <rguenther@suse.de>
21827
21828         * tree-vect-loop.c (get_initial_def_for_induction): Use
21829         correct types for pointer increment.
21830
21831 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21832
21833         * toplev.c (print_version): Update GMP version string calculation.
21834
21835 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21836
21837         PR rtl-optimization/39938
21838         * resource.c (init_resource_info): Add call to df_analyze.
21839
21840 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21841
21842         * config/alpha/alpha.md (usegp): Cast the result of
21843         alpha_find_lo_sum_using_gp to enum attr_usegp.
21844         * config/alpha/alpha.c (override_options): Remove end-of-structure
21845         marker element from cpu_table.  Use array size of cpu_table to handle
21846         -mcpu and -mtune options.
21847         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
21848
21849 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
21850
21851         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
21852         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
21853         tune_32 and tune_64.
21854         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
21855         support on PowerPC.
21856         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
21857         * config/rs6000/option-defaults.h: ... here.  New file.
21858         (OPT_64, OPT_32): Define.
21859         (MASK_64BIT): Define to 0 if not already defined.
21860         (OPT_ARCH64, OPT_ARCH32): Define.
21861         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
21862         and tune_64.
21863
21864 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21865
21866         * config/arm/arm.c (arm_override_options): Emit error on using
21867         fpa with AAPCS.
21868
21869 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21870
21871         PR rtl-optimization/39914
21872         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
21873         registers for allocnos created from user-defined variables only
21874         when not optimizing.
21875
21876 2009-04-28  Richard Guenther  <rguenther@suse.de>
21877
21878         PR middle-end/39937
21879         * fold-const.c (fold_binary): Use distribute_real_division only
21880         on float types.
21881
21882 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
21883
21884         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
21885         add hpux-stdint.h to tm_file.
21886         (hppa[12]*-*-hpux11*): Ditto.
21887         (ia64*-*-hpux*): Ditto.
21888         * config/hpux-stdint.h: New.
21889         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
21890         __STDC_EXT__ for all compiles.
21891         * config/pa/pa-hpux.h: Ditto.
21892         * config/pa/pa-hpux10.h: Ditto.
21893         * config/pa/pa-hpux11.h: Ditto.
21894
21895 2009-04-28  Catherine Moore  <clm@codesourcery.com>
21896
21897         * debug.h (set_name): Add comment.
21898
21899 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
21900
21901         PR target/39929
21902         * config/darwin.c (machopic_gen_offset): Check
21903         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
21904         * config/arm/arm.c (require_pic_register): Likewise.
21905
21906 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
21907
21908         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
21909         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
21910         m32c_promote_prototypes): Delete.
21911
21912 2009-04-28  Michael Matz  <matz@suse.de>
21913
21914         PR middle-end/39922
21915         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
21916         constants.
21917
21918 2009-04-28  Richard Guenther  <rguenther@suse.de>
21919
21920         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
21921
21922 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21923
21924         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
21925         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
21926         * config/arm/arm-tune.md: Regenerate.
21927
21928 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
21929
21930         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
21931         block if there are complex incoming edges.
21932         (sel_merge_blocks): Remove useless assert.
21933         (sel_redirect_edge_and_branch): Check that edge was redirected.
21934         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
21935         (sel_find_rgns): Delete declaration.
21936         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
21937         the region when it is not a preheader.
21938
21939 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21940
21941         PR c/39323
21942         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
21943
21944 2009-04-28  Richard Guenther  <rguenther@suse.de>
21945
21946         * tree.h (SSA_NAME_VALUE): Remove.
21947         (struct tree_ssa_name): Remove value_handle member.
21948         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
21949         array for jump threading.
21950         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
21951         SSA_NAME_VALUEs.
21952         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
21953         * tree-flow.h (threadedge_initialize_values): Declare.
21954         (threadedge_finalize_values): Likewise.
21955         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
21956         (SSA_NAME_VALUE): Define.
21957         (threadedge_initialize_values): New function.
21958         (threadedge_finalize_values): Likewise.
21959         * tree-ssa-dom.c (ssa_name_values): New global variable.
21960         (SSA_NAME_VALUE): Define.
21961         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
21962
21963 2009-04-28  Ira Rosen  <irar@il.ibm.com>
21964
21965         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
21966         Use REPORT_VECTORIZED_LOCATIONS instead
21967         REPORT_VECTORIZED_LOOPS.
21968         * tree-vectorizer.c (vect_verbosity_level): Make static.
21969         (vect_loop_location): Rename to vect_location.
21970         (vect_set_verbosity_level): Update comment.
21971         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
21972         and vect_location.
21973         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
21974         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
21975         instead REPORT_UNVECTORIZED_LOOPS.
21976         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
21977         and vect_loop_def to vect_external_def and vect_internal_def.
21978         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
21979         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
21980         REPORT_UNVECTORIZED_LOCATIONS.
21981         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
21982         and vect_used_in_loop and to vect_unused_in_scope and
21983         vect_used_in_scope.
21984         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
21985         (vect_verbosity_level): Remove declaration.
21986         (vect_analyze_operations): Likewise.
21987         (vect_analyze_stmt): Declare.
21988         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
21989         REPORT_UNVECTORIZED_LOCATIONS.
21990         (vect_get_loop_niters): Fix indentation.
21991         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
21992         (vect_analyze_loop_operations): New function.
21993         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
21994         vect_analyze_operations.
21995         (vect_is_simple_reduction): Use new names.
21996         (vectorizable_live_operation, vect_transform_loop): Likewise.
21997         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
21998         to specify whether the data references can be a part of interleaving
21999         chain.
22000         (vect_analyze_data_ref_dependence): Use new names.
22001         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
22002         (vect_create_addr_base_for_vector_ref): Remove redundant code.
22003         * tree-vect-patterns.c (widened_name_p): Use new names.
22004         (vect_recog_dot_prod_pattern): Likewise.
22005         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
22006         (process_use, vect_mark_stmts_to_be_vectorized,
22007         vect_model_simple_cost, vect_model_store_cost,
22008         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
22009         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
22010         vectorizable_operation, vectorizable_type_demotion,
22011         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
22012         vectorizable_condition): Likewise.
22013         (vect_analyze_operations): Split into vect_analyze_loop_operations
22014         and ...
22015         (vect_analyze_stmt): ... new function.
22016         (new_stmt_vec_info): Use new names.
22017         (vect_is_simple_use): Use new names and fix comment.
22018         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
22019         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
22020
22021 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
22022
22023         PR target/39911
22024         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
22025         and integer modes for x87 operands.  Do not ICE for unsupported size,
22026         generate error instead.  Generate error for unsupported operand types.
22027         ['z']: Do not handle HImode memory operands specially.  Warning
22028         for floating-point operands.  Fallthru to 'Z' for unsupported operand
22029         types.  Do not ICE for unsupported size, generate error instead.
22030         (output_387_binary_op): Use %Z to output operands.
22031         (output_fp_compare): Ditto.
22032         (output_387_reg_move): Ditto.
22033
22034 2009-04-28  Ben Elliston  <bje@au.ibm.com>
22035
22036         PR c++/35652
22037         Revert:
22038
22039         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22040
22041         * builtins.c (c_strlen): Do not warn here.
22042         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
22043         * c-common.c (pointer_int_sum): Take an explicit location.
22044         Warn about offsets out of bounds.
22045         * c-common.h (pointer_int_sum): Adjust declaration.
22046
22047 2009-04-27  Ian Lance Taylor  <iant@google.com>
22048
22049         * collect2.c (is_ctor_dtor): Change type of ret field in struct
22050         names to symkind.
22051         * dce.c (run_fast_df_dce): Change type of old_flags to int.
22052         * df-core.c (df_set_flags): Change return type to int.  Change
22053         type of old_flags to int.
22054         (df_clear_flags): Likewise.
22055         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
22056         (df_get_conditional_uses): Likewise.
22057         * df.h (df_set_flags, df_clear_flags): Update declarations.
22058         * dwarf2out.c (struct indirect_string_node): Change type of form
22059         field to enum dwarf_form.
22060         (AT_string_form): Change return type to enum dwarf_form.
22061         * fixed-value.c (fixed_compare): Add cast to enum type.
22062         * fwprop.c (update_df): Change 0 to VOIDmode.
22063         * gensupport.c: Change 0 to UNKNOWN.
22064         * gimple.h (gimple_cond_code): Add cast to enum type.
22065         * haifa-sched.c (reemit_notes): Add cast to enum type.
22066         * hooks.c (hook_int_void_no_regs): Remove function.
22067         * hooks.h (hook_int_void_no_regs): Remove declaration.
22068         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
22069         * predict.c (combine_predictions_for_insn): Add casts to enum type.
22070         * real.c (real_arithmetic): Add cast to enum type.
22071         (real_compare): Likewise.
22072         * target.h (struct gcc_target): Change return type of
22073         branch_target_register_class to enum reg_class.
22074         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
22075         default_branch_target_register_class.
22076         * targhooks.c (default_branch_target_register_class): New function.
22077         * targhooks.h (default_branch_target_register_class): Declare.
22078         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
22079         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
22080         cast to int.
22081         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
22082         ERROR_MARK.
22083         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
22084         vect_uninitialized_def.  Change 0 to ERROR_MARK.
22085         * tree-vect-stmts.c (supportable_widening_operation): Don't
22086         initialize icode1 and icode2.
22087         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
22088         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
22089         and to STD_C89.
22090         (cmn_err_flag_specs): Change 0 to STD_C89.
22091         (cmn_err_char_table): Likewise.
22092         * config/arm/arm.c (get_arm_condition_code): Change type of code
22093         to enum arm_cond_code.
22094         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
22095         (IWMMXT_BUILTIN2): Likewise.
22096         (neon_builtin_type_bits): Don't define typedef.
22097         (neon_builtin_datum): Change type of bits field to int.
22098         (arm_expand_neon_args): Add cast to enum type.
22099         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
22100         TLS_MODEL_NONE.
22101         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
22102         casts to enum type.
22103         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
22104         MIPS_FP_COND_f.
22105         * config/mips/mips.md (jal_macro): Return enum constant.
22106         (single_insn): Likewise.
22107         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
22108         CODE_FOR_nothing.
22109         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22110         casts to enum type.
22111         * config/s390/s390.c (s390_tune_flags): Change type to int.
22112         (s390_arch_flags): Likewise.
22113         (s390_handle_arch_option): Change flags field of struct pta to int.
22114         * config/s390/s390.h (s390_tune_flags): Update declaration.
22115         (s390_arch_flags): Likewise.
22116         * config/sh/sh.c (prepare_move_operands): Compare
22117         tls_symbolic_operand result with enum constant.
22118         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
22119         (sh_expand_prologue): Add cast to enum type.
22120         (sh_expand_epilogue): Likewise.
22121         (tls_symbolic_operand): Change return type to enum tls_model.
22122         (fpscr_set_from_mem): Add cast to enum type.
22123         (legitimize_pic_address): Compare tls_symbolic_operand result with
22124         enum constant.
22125         (sh_target_reg_class): Change return type to enum reg_class.
22126         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
22127         PROCESSOR_xxx.
22128         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
22129         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
22130         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
22131         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
22132         (delayed_branch, tls_call_delay): Likewise.
22133         (eligible_for_sibcall_delay): Likewise.
22134         (eligible_for_return_delay): Likewise.
22135         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
22136         (spu_expand_builtin_1): Likewise.
22137
22138         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
22139         for all types of conversions.
22140         (output_init_element): Issue -Wc++-compat warning if needed when
22141         initializing a bitfield with enum type.
22142         * c-parser.c (c_parser_expression): Set original_type to
22143         original_type of right hand operand of comma operator.
22144
22145 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22146
22147         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
22148         grammar nits.
22149         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
22150         * doc/cpp.texi (Standard Predefined Macros)
22151         (Implementation-defined behavior): Likewise.
22152         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
22153         * doc/gimple.texi (GIMPLE Exception Handling)
22154         (@code{GIMPLE_ASSIGN}): Likewise.
22155         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
22156         * doc/invoke.texi (Warning Options, Optimize Options)
22157         (AVR Options, Darwin Options): Likewise.
22158         (Optimize Options): Reformulate -fwhole-program description.
22159         * doc/loop.texi (Lambda): Likewise.
22160         * doc/md.texi (Output Template, Define Constraints)
22161         (Standard Names, Insn Splitting): Likewise.
22162         * doc/options.texi (Option properties): Likewise.
22163         * doc/passes.texi (Tree-SSA passes): Likewise.
22164         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
22165         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
22166         (File Names and DBX): Likewise.
22167         * doc/trouble.texi (Incompatibilities): Likewise.
22168
22169 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
22170
22171         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
22172         instruction is correct.
22173
22174 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
22175
22176         Allow non-constant arguments to conversion intrinsics.
22177         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
22178         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
22179         * spu.c (print_operand): Handle 'v' and 'w'.
22180         (exp2_immediate_p, spu_gen_exp2): Define.
22181         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
22182         spu_convtf_1): Update parameter descriptions.
22183         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
22184         * constraints.md ('v', 'w'): New.
22185         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
22186         Remove.
22187         (i2f, I2F): New define_mode_attr.
22188         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
22189         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
22190         fixuns_truncv4sfv4si2):  Update to use mode attribute.
22191         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
22192         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
22193         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
22194         patterns for combine.
22195
22196 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
22197
22198         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
22199         (cprop, hoist, pre, store_motion): New debug counters.
22200         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
22201         is not an RTL pass anymore.
22202         (pass_profiling): Remove extern decl for pass removed in 2005.
22203         (pass_gcse, pass_jump_bypass): Remove.
22204         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
22205         to 0 for clean state.
22206         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
22207         * cse.c (gate_handle_cse_after_global_opts,
22208         rest_of_handle_cse_after_global_opts): New functions.
22209         (pass_cse_after_global_opts): New pass, does local CSE.
22210         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
22211         (TV_CPROP): New timevar.
22212         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
22213         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
22214         (gcse_main, recompute_all_luids): Remove.
22215         (compute_hash_table_work): Call max_reg_num instead of reading
22216         max_gcse_regno.
22217         (cprop_jump): Don't set run_jump_opt_after_gcse.
22218         (constprop_register): Always allow to alter jumps.
22219         (cprop_insn): Likewise.
22220         (do_local_cprop): Likewise.
22221         (local_cprop_pass): Likewise.  Return non-zero if something changed.
22222         (cprop): Remove function, fold interesting bits into one_cprop_pass.
22223         (find_implicit_sets): Add note about missed optimization opportunity.
22224         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
22225         pass_rtl_cprop execute function.
22226         Don't bother tracking the pass number, each pass gets its own dumpfile
22227         now anyway.
22228         Always allow to alter jumpsand bypass jumps.
22229         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
22230         will just find no suitable set.
22231         (pre_edge_insert): Fix dumping, this function is for PRE only.
22232         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
22233         pass_rtl_pre execute function.
22234         (hoist_code): Return non-zero if something changed.  Keep track of
22235         substitutions and insertions for statistics gathering similar to PRE.
22236         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
22237         called from the pass_rtl_hoist execute function.  Show pass statistics.
22238         (compute_store_table): Use max_reg_num directly instead of using the
22239         formerly global max_gcse_regno.
22240         (build_store_vectors): Likewise.
22241         (replace_store_insn): Fix dumping.
22242         (store_motion): Rename to ...
22243         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
22244         pass, called from the pass_rtl_store_motion execute function.  Keep
22245         track of substitutions and insertions for statistics gathering similar
22246         to PRE.
22247         (bypass_jumps): Remove, fold interesting bits into ...
22248         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
22249         from the pass_rtl_cprop execute function.
22250         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
22251         pass_jump_bypass): Remove.
22252         (gate_handle_gcse, rest_of_handle_gcse): Remove.
22253         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
22254         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
22255         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
22256         (gate_rtl_store_motion, execute_rtl_store_motion,
22257         pass_rtl_store_motion): New.
22258         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
22259         make it clear that -fcse-skip-blocks is a no-op for backward compat.
22260         * passes.c (init_optimization_passes): Remove pass_gcse and
22261         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
22262         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
22263         instead of pass_jump_bypass.
22264
22265 2009-04-27  Richard Guenther  <rguenther@suse.de>
22266
22267         PR middle-end/39928
22268         * gimplify.c (gimplify_expr): If we are required to create
22269         a temporary make sure it ends up as register.
22270
22271 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
22272
22273         PR target/39903
22274         * config/i386/i386.c (construct_container): Don't call
22275         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
22276         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
22277
22278 2009-04-27  Michael Matz  <matz@suse.de>
22279
22280         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
22281         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
22282         * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
22283         (dump_replaceable_exprs): Take a bitmap.
22284         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
22285         array.
22286         (expand_gimple_basic_block): Likewise.
22287         * tree-ssa-ter.c (struct temp_expr_table_d): Make
22288         replaceable_expressions member a bitmap.
22289         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
22290         (mark_replaceable): Likewise.
22291         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
22292         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
22293
22294 2009-04-27  Richard Guenther  <rguenther@suse.de>
22295
22296         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
22297         (verify_stmts): Dispatch to gimple/type verification code.
22298         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
22299         issue with call argument types.
22300
22301 2009-04-27  Michael Matz  <matz@suse.de>
22302
22303         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
22304         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
22305         to above.
22306
22307 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
22308             Eric Botcazou  <ebotcazou@adacore.com>
22309
22310         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
22311         a label's basic block.
22312         (mark_target_live_regs): Tidy and rework obsolete comments.
22313         Change back DF problem to LIVE.  If a label starts a basic block,
22314         assume that all registers that used to be live then still are.
22315         (init_resource_info): If a label starts a basic block, set its
22316         BLOCK_FOR_INSN accordingly.
22317         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
22318
22319 2009-04-27  Richard Guenther  <rguenther@suse.de>
22320
22321         * tree-flow-inline.h (function_ann): Remove.
22322         (get_function_ann): Likewise.
22323         * tree-dfa.c (create_function_ann): Remove.
22324         * tree-flow.h (struct static_var_ann_d): Remove.
22325         (struct function_ann_d): Likewise.
22326         (union tree_ann_d): Remove fdecl member.
22327         (function_ann_t): Remove.
22328         (function_ann, get_function_ann, create_function_ann): Remove
22329         declarations.
22330
22331 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
22332
22333         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
22334
22335 2009-04-27  Jan Hubicka  <jh@suse.cz>
22336
22337         * ipa-pure-const.c (struct funct_state_d): New fields
22338         state_previously_known, looping_previously_known; remove
22339         state_set_in_source.
22340         (analyze_function): Use new fields.
22341         (propagate): Avoid assumption that state_set_in_source imply
22342         nonlooping.
22343
22344         * tree-ssa-loop-niter.c (finite_loop_p): New function.
22345         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
22346         * cfgloop.h (finite_loop_p): Declare.
22347
22348 2009-04-26  Michael Matz  <matz@suse.de>
22349
22350         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
22351
22352 2009-04-26  Michael Matz  <matz@suse.de>
22353
22354         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
22355         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
22356         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
22357         pass_mark_used_blocks): Remove.
22358         * tree-optimize.c (pass_free_datastructures,
22359         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
22360         * passes.c (init_optimization_passes): Don't call
22361         pass_mark_used_blocks, remove dead code.
22362
22363 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
22364
22365         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
22366         * tree-ssa-live.h (register_ssa_partition): Likewise.
22367
22368 2009-04-26  Michael Matz  <matz@suse.de>
22369
22370         Expand from SSA.
22371         * builtins.c (fold_builtin_next_arg): Handle SSA names.
22372         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
22373         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
22374         SSA names.
22375         (compare_pairs): Swap cost comparison.
22376         (coalesce_ssa_name): Don't use change_partition_var.
22377         * tree-nrv.c (struct nrv_data): Add modified member.
22378         (finalize_nrv_r): Set it.
22379         (tree_nrv): Use it to update statements.
22380         (pass_nrv): Require PROP_ssa.
22381         * tree-mudflap.c (mf_decl_cache_locals,
22382         mf_build_check_statement_for): Use make_rename_temp.
22383         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
22384         * alias.c (find_base_decl): Handle SSA names.
22385         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
22386         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
22387         * rtl.h (set_reg_attrs_for_parm): Declare.
22388         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
22389         to "optimized", remove unused locals at finish.
22390         (execute_free_datastructures): Make global, call
22391         delete_tree_cfg_annotations.
22392         (execute_free_cfg_annotations): Don't call
22393         delete_tree_cfg_annotations.
22394
22395         * ssaexpand.h: New file.
22396         * expr.c (toplevel): Include ssaexpand.h.
22397         (expand_assignment): Handle SSA names the same as register variables.
22398         (expand_expr_real_1): Expand SSA names.
22399         * cfgexpand.c (toplevel): Include ssaexpand.h.
22400         (SA): New global variable.
22401         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
22402         (SSAVAR): New macro.
22403         (set_rtl): New helper function.
22404         (add_stack_var): Deal with SSA names, use set_rtl.
22405         (expand_one_stack_var_at): Likewise.
22406         (expand_one_stack_var): Deal with SSA names.
22407         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
22408         before unique numbers.
22409         (expand_stack_vars): Use set_rtl.
22410         (expand_one_var): Accept SSA names, add asserts for them, feed them
22411         to above subroutines.
22412         (expand_used_vars): Expand all partitions (without default defs),
22413         then only the local decls (ignoring those expanded already).
22414         (expand_gimple_cond): Remove edges when jumpif() expands an
22415         unconditional jump.
22416         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
22417         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
22418         SSA name.
22419         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
22420         members of SA; deal with PARM_DECL partitions here; expand
22421         all PHI nodes, free tree datastructures and SA.  Commit instructions
22422         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
22423         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
22424         info and statements at start, collect garbage at finish.
22425         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
22426         (VAR_ANN_PARTITION) Remove.
22427         (change_partition_var): Don't declare.
22428         (partition_to_var): Always return SSA names.
22429         (var_to_partition): Only accept SSA names.
22430         (register_ssa_partition): Only check argument.
22431         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
22432         member.
22433         (delete_var_map): Don't free it.
22434         (var_union): Only accept SSA names, simplify.
22435         (partition_view_init): Mark only useful SSA names as used.
22436         (partition_view_fini): Only deal with SSA names.
22437         (change_partition_var): Remove.
22438         (dump_var_map): Use ssa_name instead of partition_to_var member.
22439         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
22440         basic blocks.
22441         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
22442         (struct _elim_graph): New member const_dests; nodes member vector of
22443         ints.
22444         (set_location_for_edge): New static helper.
22445         (create_temp): Remove.
22446         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
22447         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
22448         (new_elim_graph): Allocate const_dests member.
22449         (clean_elim_graph): Truncate const_dests member.
22450         (delete_elim_graph): Free const_dests member.
22451         (elim_graph_size): Adapt to new type of nodes member.
22452         (elim_graph_add_node): Likewise.
22453         (eliminate_name): Likewise.
22454         (eliminate_build): Don't take basic block argument, deal only with
22455         partition numbers, not variables.
22456         (get_temp_reg): New static helper.
22457         (elim_create): Use it, deal with RTL temporaries instead of trees.
22458         (eliminate_phi): Adjust all calls to new signature.
22459         (assign_vars, replace_use_variable, replace_def_variable): Remove.
22460         (rewrite_trees): Only do checking.
22461         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
22462         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
22463         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
22464         contains_tree_r, MAX_STMTS_IN_LATCH,
22465         process_single_block_loop_latch, analyze_edges_for_bb,
22466         perform_edge_inserts): Remove.
22467         (expand_phi_nodes): New global function.
22468         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
22469         functions, initialize new parameter, remember partitions having a
22470         default def.
22471         (finish_out_of_ssa): New global function.
22472         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
22473         don't reset in_ssa_p here, don't disable TER when mudflap.
22474         (pass_del_ssa): Remove.
22475         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
22476         partition members.
22477         (execute_free_datastructures): Declare.
22478         * Makefile.in (SSAEXPAND_H): New variable.
22479         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
22480         * basic-block.h (commit_one_edge_insertion): Declare.
22481         * passes.c (init_optimization_passes): Move pass_nrv and
22482         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
22483         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
22484         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
22485         (redirect_branch_edge): Deal with super block when expanding, split
22486         out jump patching itself into ...
22487         (patch_jump_insn): ... here, new static helper.
22488
22489 2009-04-26  Michael Matz  <matz@suse.de>
22490
22491         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
22492         beyond num_ssa_names.
22493         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
22494         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
22495
22496 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
22497
22498         PR inline-asm/39543
22499         * fwprop.c (forward_propagate_asm): New function.
22500         (forward_propagate_and_simplify): Propagate also into __asm, if it
22501         doesn't increase the number of referenced registers.
22502
22503         PR c/39889
22504         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
22505
22506 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
22507
22508         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
22509         note_nonlocal_vla_type for nonlocal VLAs.
22510         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
22511         contains_remapped_vars, remap_vla_decls): New functions.
22512         (convert_nonlocal_reference_stmt): If not optimizing, call
22513         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
22514         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
22515         if it wasn't found in var_map.
22516         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
22517         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
22518         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
22519         declare_vars.
22520         * gimplify.c (nonlocal_vlas): New variable.
22521         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
22522         referenced VLAs.
22523         (gimplify_body): Create and destroy nonlocal_vlas.
22524
22525         * dwarf2out.c (loc_descr_plus_const): New function.
22526         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
22527         mem_loc_descriptor, loc_descriptor_from_tree_1,
22528         descr_info_loc, gen_variable_die): Use it.
22529
22530         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
22531         !TREE_STATIC VAR_DECLs.
22532         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
22533         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
22534         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
22535         DECL_BY_REFERENCE is valid.
22536         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
22537         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
22538         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
22539         Copy DECL_BY_REFERENCE.
22540         (struct nesting_copy_body_data): New type.
22541         (nesting_copy_decl): New function.
22542         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
22543         if they have variable length.
22544
22545 2009-04-26  Michael Matz  <matz@suse.de>
22546
22547         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
22548         mark new temporaries for renaming.
22549
22550 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
22551
22552         PR c/39581
22553         * c-decl.c (global_bindings_p): Return negative value.
22554         (c_variable_size): New.  Based on variable_size from
22555         stor-layout.c.
22556         (grokdeclarator): Call c_variable_size not variable_size.
22557
22558 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
22559
22560         * config/i386/i386.c (print_operand) ['z']: Fix typo.
22561
22562 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
22563
22564         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
22565         Redefine it to just use mingw/include.
22566         (ASM_SPEC): Rules for -m32 and -m64.
22567         (LINK_SPEC): Use Likewise.
22568         (SPEC_32): New define.
22569         (SPEC_64): Likewise.
22570         (SUB_LINK_SPEC): Likewise.
22571         (MULTILIB_DEFAULTS): New define.
22572         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
22573         Add multilib options.
22574         (MULTILIB_DIRNAMES): Likewise.
22575         (MULTILIB_OSDIRNAMES): Likewise.
22576         (LIBGCC): Likewise.
22577         (INSTALL_LIBGCC): Likewise.
22578
22579 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
22580
22581         PR c/39556
22582         * c-tree.h (enum c_inline_static_type): New.
22583         (record_inline_static): Declare.
22584         * c-decl.c (struct c_inline_static, c_inline_statics,
22585         record_inline_static, check_inline_statics): New.
22586         (pop_file_scope): Call check_inline_statics.
22587         (start_decl): Call record_inline_static instead of pedwarning
22588         directly for static in inline function.
22589         * c-typeck.c (build_external_ref): Call record_inline_static
22590         instead of pedwarning directly for static referenced in inline
22591         function.
22592
22593 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
22594
22595         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
22596         not new but only being rescanned.
22597         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
22598         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
22599         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
22600         record_set_info, compute_set, grealloc): Remove.
22601         (recompute_all_luids): New function.
22602         (gcse_main): Don't compute sets, and don't do related memory
22603         allocations/free-ing.  If something changed before the end of the
22604         pass, update LUIDs using recompute_all_luids.
22605         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
22606         (free_gcse_mem): Don't free it either.
22607         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
22608         Use the df insn LUIDs.
22609         (load_killed_in_block): Likewise.
22610         (compute_hash_table_work): Don't compute reg_set_in_block.
22611         (compute_transp): Use DF_REG_DEF_CHAINs.
22612         (local_cprop_pass): Don't use compute_sets and related functions.
22613         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
22614         Use get_max_uid() instead of max_cuid.
22615         (insert_insn_end_basic_block, pre_insert_copy_insn,
22616         update_ld_motion_stores): Don't try to
22617         keep reg_set tables up to date.
22618         (pre_insert_copies): Use df insn LUIDs.
22619         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
22620         (reg_set_info): Don't use extra bitmap argument.
22621         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
22622         information to compute regs_set_in_block.
22623         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
22624         (bypass_jumps): Don't use compute_sets and friends.
22625
22626 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22627
22628         PR testsuite/39710
22629         * opts.c (undocumented_msg): Do not leave blank even with
22630         ENABLE_CHECKING.
22631
22632 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
22633
22634         * c-decl.c (build_enumerator): Allow values folding to integer
22635         constants but not integer constant expressions with a pedwarn if
22636         pedantic.
22637
22638 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
22639
22640         PR c/39582
22641         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
22642         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
22643         type is an integer constant.
22644
22645 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
22646
22647         PR target/39897
22648         * config/i386/i386.c (print_operand) ['z']: Revert handling of
22649         HImode operands.
22650
22651 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
22652
22653         PR c/39564
22654         * c-decl.c (grokdeclarator): Diagnose declarations of functions
22655         with variably modified return type and no storage class
22656         specifiers, except for the case of nested functions.  Distinguish
22657         extern declarations of functions with variably modified return
22658         types from those of objects with variably modified types.
22659
22660 2009-04-25  Jan Hubicka  <jh@suse.cz>
22661
22662         * tree.c (list_equal_p): New function.
22663         * tree.h (list_equal_p): Declare.
22664         * coretypes.h (edge_def, edge, const_edge, basic_block_def
22665         basic_block_def, basic_block, const_basic_block): New.
22666         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
22667         (redirect_eh_edge): New function.
22668         (make_eh_edge_update_phi): EH edges are not abnormal.
22669         * except.c: Include tree-flow.h.
22670         (list_match): New function.
22671         (eh_region_replaceable_by_p): New function.
22672         (replace_region): New function.
22673         (hash_type_list): New function.
22674         (hash_eh_region): New function.
22675         (eh_regions_equal_p): New function.
22676         (merge_peers): New function.
22677         (remove_unreachable_regions): Verify EH tree when checking;
22678         merge peers.
22679         (copy_eh_region_1): New function.
22680         (copy_eh_region): New function.
22681         (push_reachable_handler): New function.
22682         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
22683         regions without label but with live RESX.
22684         * except.h (redirect_eh_edge_to_label): New.
22685         * tree-flow.h (redirect_eh_edge): New.
22686         * coretypes.h (edge_def, edge, const_edge, basic_block_def
22687         basic_block_def, basic_block, const_basic_block): Remove.
22688         * Makefile.in (except.o): Add dependency on tree-flow.h
22689         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
22690         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
22691         Remove.
22692
22693 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
22694
22695         PR bootstrap/39645
22696         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
22697         on the destination of memcpy.
22698
22699 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
22700
22701         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
22702         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
22703         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
22704
22705 2009-04-25  Jan Hubicka  <jh@suse.cz>
22706
22707         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
22708         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
22709         to be reached by different label than left.
22710         (update_eh_edges): Update comment; remove edge_to_remove if possible
22711         and return true if suceeded.
22712         (cleanup_empty_eh): Accept sharing map; handle shared regions.
22713         (cleanup_eh): Compute sharing map.
22714         * except.c (remove_eh_handler_and_replace): Add argument if we should
22715         update regions.
22716         (remove_unreachable_regions): Update for label sharing.
22717         (label_to_region_map): Likewise.
22718         (get_next_region_sharing_label): New function.
22719         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
22720         prev_try pointers.
22721         (remove_eh_handler): Update.
22722         (remove_eh_region_and_replace_by_outer_of): New function.
22723         * except.h (struct eh_region): Add next_region_sharing_label.
22724         (remove_eh_region_and_replace_by_outer_of,
22725         get_next_region_sharing_label): Declare.
22726         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
22727
22728 2009-04-25  Jan Hubicka  <jh@suse.cz>
22729
22730         * tree-cfg.c (split_critical_edges): Split also edges where we can't
22731         insert code even if they are not critical.
22732
22733 2009-04-25  Jan Hubicka  <jh@suse.cz>
22734
22735         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
22736         (gimple_can_remove_branch_p): EH edges won't remove branch by
22737         redirection.
22738         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
22739         updating of non-abnormal EH edges.
22740         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
22741         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
22742         (split_critical_edges): Split also edges where emitting code on them
22743         will lead to splitting later.
22744
22745 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
22746             H.J. Lu  <hongjiu.lu@intel.com>
22747
22748         PR target/39590
22749         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
22750         the configured assembler supports fildq and fistpq mnemonics.
22751         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
22752         * configure: Regenerated.
22753         * config.in: Ditto.
22754
22755         * config/i386/i386.c (print_operand): Handle 'Z'.
22756         ['z']: Remove handling of special fild/fist suffixes.
22757         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
22758         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
22759         suffix of fild insn.
22760         (*floatsi<mode>2_vector_mixed): Ditto.
22761         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
22762         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
22763         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
22764         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
22765         * config/i386/gas.h (GAS_MNEMONICS): Remove.
22766
22767 2009-04-25  Ben Elliston  <bje@au.ibm.com>
22768
22769         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
22770         the source of a set operation.
22771
22772 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
22773
22774         * target.h (struct gcc_target): Add case_values_threshold field.
22775         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
22776         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
22777         * targhooks.c (default_case_values_threshold): New function.
22778         * targhooks.h (default_case_values_threshold): Declare function.
22779         * stmt.c (expand_case): Use case_values_threshold target hook.
22780         * expr.h (case_values_threshold): Remove declartation.
22781         * expr.c (case_values_threshold): Remove function.
22782         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
22783
22784         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
22785         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
22786         (avr_case_values_threshold): Declare as static.
22787         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
22788
22789         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
22790         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
22791         (mn10300_case_values_threshold): New function.
22792
22793 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
22794
22795         * ira.c (setup_cover_and_important_classes): Add enum cast.
22796
22797 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
22798
22799         * genpreds.c (write_enum_constraint_num): Output definition of
22800         CONSTRAINT_NUM_DEFINED_P macro.
22801         * ira.c (setup_cover_and_important_classes): Use
22802         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
22803
22804 2009-04-24  DJ Delorie  <dj@redhat.com>
22805
22806         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
22807         __SH2A_SINGLE_ONLY__ also.
22808
22809 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
22810
22811         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
22812         (movdf_internal): Ditto.
22813         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
22814         SFmode and DFmode constants.
22815         (ia64_print_operand): Add 'G' format for printing
22816         floating point constants.
22817
22818 2009-04-24  Richard Guenther  <rguenther@suse.de>
22819
22820         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
22821         from unsigned additions.
22822
22823 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
22824
22825         * c-typeck.c (set_init_index): Allow array designators that are
22826         not integer constant expressions with a pedwarn if pedantic.
22827
22828 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
22829
22830         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
22831         zero if no overlap in nonzero bits between the operands.
22832
22833 2009-04-24  Ian Lance Taylor  <iant@google.com>
22834
22835         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
22836         (record_dead_and_set_regs): Likewise.
22837         * df.h (struct df_mw_hardreg): Change flags field to int.
22838         (struct df_base_ref): Likewise.
22839         (struct df): Change changeable_flags field to int.
22840         * df-scan.c (df_defs_record): Change clobber_flags to int.
22841         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
22842         constants rather than #define macros.
22843         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
22844         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
22845         (enum dwarf_calling_convention): Likewise.
22846         (enum dwarf_line_number_x_ops): Likewise.
22847         (enum dwarf_call_frame_info): Likewise.
22848         (enum dwarf_source_language): Likewise.
22849         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
22850         (add_calling_convention_attribute): Likewise.
22851         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
22852         (combine_comparisons): Change compcode to int.  Add cast to enum type.
22853         * genrecog.c (maybe_both_true_2): Change c to int.
22854         (write_switch): Likewise.  Add cast to enum type.
22855         * gimplify.c (gimplify_omp_for): Handle return values from
22856         gimplify_expr using MIN rather than bitwise or.
22857         (gimplify_expr): Add cast to enum type.
22858         * ipa-prop.c (update_jump_functions_after_inlining): Change
22859         IPA_BOTTOM to IPA_JF_UNKNOWN.
22860         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
22861         Add casts to enum type.
22862         (setup_cover_and_important_classes): Change cl to int.  Add casts
22863         to enum type.
22864         (setup_class_translate): Change cl and mode to int.
22865         (ira_init_once): Change mode to int.
22866         (free_register_move_costs): Likewise.
22867         (setup_prohibited_mode_move_regs): Add casts to enum type.
22868         * langhooks.c (add_builtin_function_common): Rework assertion that
22869         value fits bitfield.
22870         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
22871         * omega.c (omega_do_elimination): Avoid math on enum types.
22872         * optabs.c (expand_vec_shift_expr): Remove casts to int.
22873         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
22874         int local to handle integral_argment value.
22875         * regmove.c (try_auto_increment): Change PUT_MODE to
22876         PUT_REG_NOTE_KIND.
22877         * reload.c (push_secondary_reload): Add casts to enum type.
22878         (secondary_reload_class, find_valid_class): Likewise.
22879         * reload1.c (emit_input_reload_insns): Likewise.
22880         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
22881         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
22882         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
22883         constant.
22884         * tree.c (build_common_builtin_nodes): Add casts to enum type.
22885         * tree-complex.c (complex_lattice_t): Typedef to int rather than
22886         enum type.
22887         (expand_complex_libcall): Add casts to enum type.
22888         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
22889         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
22890         with ERROR_MARK, not NUM_TREE_CODES.
22891         (vect_create_epilog_for_reduction): Likewise.
22892         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
22893         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
22894         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
22895         enum machine_mode.
22896         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
22897         vect_unused_in_loop.  Change 0 to loop_vect.
22898         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
22899         * var-tracking.c (get_init_value): Change return type to enum
22900         var_init_status.
22901         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
22902         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
22903         arm_fp_model.
22904         (arm_override_options): Add casts to enum type.
22905         (arm_emit_tls_decoration): Likewise.
22906         * config/i386/i386.c (ix86_function_specific_restore): Add casts
22907         to enum type.
22908         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
22909         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
22910         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
22911         enum type.
22912         * config/s390/s390.c (code_for_builtin_64): Change to array of
22913         enum insn_code.
22914         (code_for_builtin_31): Likewise.
22915         (s390_expand_builtin): Change code_for_builtin to enum insn_code
22916         const *.
22917         * config/sparc/sparc.c (sparc_override_options): Change value
22918         field in struct code_model to enum cmodel.  In initializer change
22919         0 to NULL and add cast to enum type.
22920
22921         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
22922         Change all callers.  Issue a -Wc++-compat warning using
22923         lhs_origtype if necessary.
22924         (convert_for_assignment): Issue -Wc++-compat warnings about
22925         invalid conversions to enum type on assignment.
22926         * c-common.h (build_modify_expr): Update declaration.
22927
22928 2009-04-24  Nick Clifton  <nickc@redhat.com>
22929
22930         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
22931         (function_arg_advance): Likewise.
22932         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
22933         5th alternative.
22934
22935 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
22936
22937         * config/s390/constraints.md ('I', 'J'): Fix condition.
22938
22939 2009-04-24  Diego Novillo  <dnovillo@google.com>
22940
22941         * gengtype-parse.c (parse_error): Add newline after message.
22942
22943 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
22944
22945         * config/i386/sse.md (avxmodesuffixs): Removed.
22946         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
22947         (*avx_pinsr<ssevecsize>): This.
22948
22949 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
22950
22951         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
22952         follow chains of regs with a single definition, and allow expressions
22953         that are function_invariant_p.
22954         (simple_rhs_p): Allow expressions that are function_invariant_p.
22955
22956 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
22957
22958         PR middle-end/39867
22959         * fold-const.c (fold_cond_expr_with_comparison): When folding
22960         > and >= to MAX, make sure the MAX uses the same type as the
22961         comparison's operands.
22962
22963 2009-04-24  Nick Clifton  <nickc@redhat.com>
22964
22965         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
22966         addressing for DImode accesses.
22967         (frv_print_operand_address): Handle PLUS case.
22968         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
22969
22970 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
22971
22972         PR rtl-optimization/39794
22973         * alias.c (canon_true_dependence): Add x_addr argument.
22974         * rtl.h (canon_true_dependence): Adjust prototype.
22975         * cse.c (check_dependence): Adjust canon_true_dependence callers.
22976         * cselib.c (cselib_invalidate_mem): Likewise.
22977         * gcse.c (compute_transp): Likewise.
22978         * dse.c (scan_reads_nospill): Likewise.
22979         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
22980         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
22981         canon_base_addr of the group, plus optional offset.
22982         (struct group_info): Rename canon_base_mem to
22983         canon_base_addr.
22984         (get_group_info): Set canon_base_addr to canon_rtx of base, not
22985         canon_rtx of base_mem.
22986
22987 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
22988
22989         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
22990         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
22991
22992 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22993
22994         * config/spu/spu-builtins.h: Delete file.
22995
22996         * config/spu/spu.h (enum spu_builtin_type): Move here from
22997         spu-builtins.h.
22998         (struct spu_builtin_description): Likewise.  Add GTY marker.
22999         Do not use enum spu_function_code or enum insn_code.
23000         (spu_builtins): Add extern declaration.
23001
23002         * config/spu/spu.c: Do not include "spu-builtins.h".
23003         (enum spu_function_code, enum spu_builtin_type_index,
23004         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
23005         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
23006         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
23007         unsigned_V2DI_type_node): Move here from spu-builtins.h.
23008         (spu_builtin_types): Make static.  Add GTY marker.
23009         (spu_builtins): Add extern declaration with GTY marker.
23010         Include "gt-spu.h".
23011
23012         * config/spu/spu-c.c: Do not include "spu-builtins.h".
23013         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
23014         Check programmatically whether all parameters are scalar.
23015
23016         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
23017
23018 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
23019
23020         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
23021         assignment from the constructor either if the target is volatile.
23022
23023 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
23024
23025         * config/arm/arm.md (insv): Do not share operands[0].
23026
23027 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
23028
23029         * config/vxlib-tls.c (active_tls_threads): Delete.
23030         (delete_hook_installed): New.
23031         (tls_delete_hook): Don't delete the delete hook.
23032         (tls_destructor): Delete it here.
23033         (__gthread_set_specific): Adjust installing the delete hook.
23034         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
23035         __gthread_leave_tsd_dtor_context.
23036
23037 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
23038
23039         * c-format.c (gcc_tdiag_char_table): Add support for %E.
23040
23041 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
23042
23043         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
23044         enum type.
23045         (alpha_rtx_costs): Ditto.
23046         (emit_unlikely_jump): Use add_reg_note.
23047         (emit_frame_store_1): Ditto.
23048         (alpha_expand_prologue): Ditto.
23049         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
23050         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
23051
23052 2009-04-23  Nick Clifton  <nickc@redhat.com>
23053
23054         * config/v850/v850.md (epilogue): Remove suppressed code.
23055         (return): Rename to return_simple and remove test of frame size.
23056         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
23057         to gen_return_simple.
23058
23059 2009-04-22  Jing Yu  <jingyu@google.com>
23060
23061         PR testsuite/39781
23062         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
23063
23064 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23065
23066         PR C/31499
23067         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
23068         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
23069         value is a VECTOR_CST, the element type is the element type of the
23070         vector.
23071
23072 2009-04-22  DJ Delorie  <dj@redhat.com>
23073
23074         * config/m32c/m32c.h: Update GTY annotations to new syntax.
23075
23076 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
23077
23078         * alias.c (find_base_term): Move around LO_SUM case, so that
23079         CONST falls through into PLUS/MINUS handling.
23080
23081         PR c/39855
23082         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
23083         into 0, use omit_one_operand.
23084
23085 2009-04-23  Ben Elliston  <bje@au.ibm.com>
23086
23087         * config/rs6000/linux-unwind.h (get_regs): Remove type
23088         puns. Change the type of `pc' to an array of unsigned ints and
23089         update all users.  Constify frame24.
23090
23091 2009-04-22  DJ Delorie  <dj@redhat.com>
23092
23093         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
23094         declarations before code.
23095         (current_function_special_page_vector): Likewise.
23096         (m32c_expand_insv): Silence a warning.
23097
23098 2009-04-21  Taras Glek  <tglek@mozilla.com>
23099
23100         * alias.c: Update GTY annotations to new syntax.
23101         * basic-block.h: Likewise.
23102         * bitmap.h: Likewise.
23103         * c-common.h: Likewise.
23104         * c-decl.c: Likewise.
23105         * c-parser.c: Likewise.
23106         * c-pragma.c: Likewise.
23107         * c-tree.h: Likewise.
23108         * cfgloop.h: Likewise.
23109         * cgraph.h: Likewise.
23110         * config/alpha/alpha.c: Likewise.
23111         * config/arm/arm.h: Likewise.
23112         * config/avr/avr.h: Likewise.
23113         * config/bfin/bfin.c: Likewise.
23114         * config/cris/cris.c: Likewise.
23115         * config/darwin.c: Likewise.
23116         * config/frv/frv.c: Likewise.
23117         * config/i386/i386.c: Likewise.
23118         * config/i386/i386.h: Likewise.
23119         * config/i386/winnt.c: Likewise.
23120         * config/ia64/ia64.h: Likewise.
23121         * config/iq2000/iq2000.c: Likewise.
23122         * config/mips/mips.c: Likewise.
23123         * config/mmix/mmix.h: Likewise.
23124         * config/pa/pa.c: Likewise.
23125         * config/pa/pa.h: Likewise.
23126         * config/rs6000/rs6000.c: Likewise.
23127         * config/s390/s390.c: Likewise.
23128         * config/sparc/sparc.c: Likewise.
23129         * config/xtensa/xtensa.c: Likewise.
23130         * cselib.h: Likewise.
23131         * dbxout.c: Likewise.
23132         * dwarf2out.c: Likewise.
23133         * except.c: Likewise.
23134         * except.h: Likewise.
23135         * fixed-value.h: Likewise.
23136         * function.c: Likewise.
23137         * function.h: Likewise.
23138         * gimple.h: Likewise.
23139         * integrate.c: Likewise.
23140         * optabs.c: Likewise.
23141         * output.h: Likewise.
23142         * real.h: Likewise.
23143         * rtl.h: Likewise.
23144         * stringpool.c: Likewise.
23145         * tree-data-ref.c: Likewise.
23146         * tree-flow.h: Likewise.
23147         * tree-scalar-evolution.c: Likewise.
23148         * tree-ssa-address.c: Likewise.
23149         * tree-ssa-alias.h: Likewise.
23150         * tree-ssa-operands.h: Likewise.
23151         * tree.c: Likewise.
23152         * tree.h: Likewise.
23153         * varasm.c: Likewise.
23154         * varray.h: Likewise.
23155         * vec.h: Likewise.
23156         * coretypes.h: Do not define GTY macro if it is already defined.
23157         * doc/gty.texi: Update GTY documentation to new syntax.
23158         * gengtype-lex.l: Enforce attribute-like syntax for GTY
23159         annotations on structs.
23160         * gengtype-parse.c: Likewise.
23161
23162 2009-04-22  Mark Heffernan  <meheff@google.com>
23163
23164         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
23165
23166 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
23167
23168         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
23169         where appropriate.
23170
23171 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
23172
23173         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
23174         the same as a PLUS without a shift.  Increase the cost of a
23175         CONST_INT in MULT.
23176
23177 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23178
23179         * Makefile.in: Update dependencies.
23180         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
23181         * errors.h: Remove bogus comment about compatibility.
23182         (warning): Update declaration.
23183         * genautomata.c: Update all calls to warning.
23184         * gimple.c: Do not include errors.h. Include toplev.h.
23185         * tree-ssa-structalias.c: Do not include errors.h.
23186         * omega.c: Likewise.
23187         * tree-ssa-reassoc.c: Likewise.
23188         * config/spu/spu-c.c: Likewise.
23189         * config/spu/t-spu-elf: Update dependencies.
23190
23191 2009-04-22  Richard Guenther  <rguenther@suse.de>
23192
23193         PR tree-optimization/39824
23194         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
23195         make sure the types are compatible.
23196
23197 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23198
23199         PR c++/14875
23200         * c-common.c (c_parse_error): Take a token_flags parameter.
23201         Use token_type for the token type instead.
23202         Pass token_flags to cpp_type2name.
23203         * c-common.h (c_parse_error): Update declaration.
23204         * c-parser.c (c_parser_error): Pass 0 as token flags.
23205
23206 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
23207
23208         PR rtl-optimization/39580
23209         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
23210
23211 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23212
23213         * function.c (expand_function_end): Do not emit a jump to the "naked"
23214         return label for fall-through returns.
23215         * except.c (sjlj_emit_function_exit): Always place the call to the
23216         unregister function at the location installed by expand_function_end.
23217
23218 2009-04-22  Richard Guenther  <rguenther@suse.de>
23219
23220         PR tree-optimization/39845
23221         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
23222         (gen_inbound_check): Likewise.
23223
23224 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
23225
23226         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
23227         padding for PPC.
23228         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
23229         * config/vxlib.c (__gthread_once): Add race guard for PPC.
23230
23231 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
23232
23233         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
23234         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
23235         shift counts to avoid out-of-bounds array accesses.
23236
23237 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
23238
23239         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
23240         (Pmode): Move above.
23241
23242 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
23243
23244         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
23245         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
23246         GET_CODE macro.  Use IN_RANGE macro where appropriate.
23247         * config/alpha/alpha.h: Ditto.
23248         * config/alpha/alpha.md: Ditto.
23249         * config/alpha/constraints.md: Ditto.
23250         * config/alpha/predicates.md: Ditto.
23251
23252 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
23253
23254         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
23255         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23256         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23257         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23258         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23259         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23260         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23261         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23262         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23263         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23264         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23265         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23266         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23267         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23268         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23269         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23270         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23271         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23272         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23273         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23274         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23275         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23276         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23277         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23278         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23279         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23280         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23281
23282 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23283
23284         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
23285         references from comments.
23286         * cfgbuild.c (count_basic_blocks): Delete.
23287         (find_basic_blocks_1): Delete.
23288         (find_basic_blocks): Delete.
23289         * except.c (finish_eh_generation): Make static.  Move comment from
23290         except.h here.  Remove find_basic_blocks references from comments.
23291         * except.h (finish_eh_generation): Delete.
23292         * basic-block.h (find_basic_blocks): Delete.
23293         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
23294
23295 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
23296
23297         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
23298         (sdbout_parms):  Likewise.
23299
23300 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
23301
23302         * config/sh/sh.c (prepare_cbranch_operands): Use
23303         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
23304         (expand_cbranchdi4): Likewise.
23305         (from_compare): Add cast to enum type.
23306         (expand_cbranchsi4): Use add_reg_note.
23307         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
23308         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
23309         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
23310         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
23311         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
23312         instead of CODE_FOR_nothing.
23313         (cbranchdi4): Likewise.  Fix the order of arguments for
23314         gen_rtx_fmt_ee.
23315         (push_fpscr): Use add_reg_note.
23316         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
23317         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
23318
23319 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
23320
23321         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
23322         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
23323         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
23324         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
23325         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
23326         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
23327         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
23328         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
23329         config/alpha/x-vms, config/arc/t-arc,
23330         config/arm/README-interworking, config/arm/arm-c.c,
23331         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
23332         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
23333         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
23334         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
23335         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
23336         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
23337         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
23338         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
23339         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
23340         config/cris/t-elfmulti, config/crx/t-crx,
23341         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
23342         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
23343         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
23344         config/h8300/t-h8300, config/i386/athlon.md,
23345         config/i386/darwin-libgcc.10.4.ver,
23346         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
23347         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
23348         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
23349         config/i386/t-linux64, config/i386/t-nwld,
23350         config/i386/t-rtems-i386, config/i386/t-sol2-10,
23351         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
23352         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
23353         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
23354         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
23355         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
23356         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
23357         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
23358         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
23359         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
23360         config/m68k/t-uclinux, config/mcore/t-mcore,
23361         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
23362         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
23363         config/mips/crtn.asm, config/mips/irix-crti.asm,
23364         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
23365         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
23366         config/mips/mips-fixed.md, config/mips/sb1.md,
23367         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
23368         config/mips/t-iris6, config/mips/t-isa3264,
23369         config/mips/t-libgcc-mips16, config/mips/t-linux64,
23370         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
23371         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
23372         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
23373         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
23374         config/mn10300/t-linux, config/mn10300/t-mn10300,
23375         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
23376         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
23377         config/picochip/libgccExtras/clzsi2.asm,
23378         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
23379         config/rs6000/darwin-libgcc.10.4.ver,
23380         config/rs6000/darwin-libgcc.10.5.ver,
23381         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
23382         config/rs6000/t-aix43, config/rs6000/t-aix52,
23383         config/rs6000/t-darwin, config/rs6000/t-fprules,
23384         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
23385         config/rs6000/t-lynx, config/rs6000/t-netbsd,
23386         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
23387         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
23388         config/rs6000/t-rtems, config/rs6000/t-spe,
23389         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
23390         config/score/t-score-elf, config/sh/divcost-analysis,
23391         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
23392         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
23393         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
23394         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
23395         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
23396         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
23397         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
23398         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
23399         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
23400         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
23401         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
23402         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
23403         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
23404         limitx.h, version.c, xcoff.h: Add copyright and license notices.
23405         * config/h8300/genmova.sh: Include copyright and license notices
23406         in generated output.
23407         * config/h8300/mova.md: Regenerate.
23408         * doc/install.texi2html: Include word "Copyright" in copyright
23409         notice and use name "Free Software Foundation, Inc.".
23410         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
23411         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
23412         ChangeLog-2007, ChangeLog-2008: Correct dates.
23413
23414 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
23415
23416         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
23417         NE_EXPR operations as well.
23418         * c-parser.c (c_parser_condition): Do not set location information on
23419         the condition.
23420         (c_parser_conditional_expression): Likewise.
23421         (c_parser_binary_expression): Set location information on operators.
23422         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
23423         TRUTH_NOT_EXPR has been folded.
23424         * fold-const.c (fold_truth_not_expr): Copy location information from
23425         the incoming expression to the outgoing one.
23426         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
23427         recursive calls on the LHS of the operator but pass that of the
23428         operator to recursive calls on the RHS of the operator.  Set it
23429         on the COND_EXPR.
23430         (shortcut_cond_expr): Set the locus of the operator on the second
23431         COND_EXPR and that of the expression on the first in degenerate cases.
23432         Pass the locus of the expression to calls to shortcut_cond_r.
23433         Set the locus of the 'then' block on the associated jump, if any.
23434         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
23435         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
23436         expression to call to gimplify_boolean_expr.
23437
23438 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
23439
23440         * config.gcc: Add additional configuration for
23441         i686-w64-mingw* and x86_64-w64-mingw* triplet.
23442         * config/i386/mingw-w64.h: New mingw-w64 specific header.
23443         (CPP_SPEC): Redefine for allowing -municode option.
23444         (STARTFILE_SPEC): Likewise.
23445         * config/i386/t-mingw-w64: New.
23446         * config/i386/mingw-w64.opt: New.
23447         (municode): Add new target option.
23448         * doc/invoke.texi (municode): Add documentation for new option.
23449
23450 2009-04-21  Ian Lance Taylor  <iant@google.com>
23451
23452         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23453         Correct test for number of arguments.
23454         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23455
23456 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
23457
23458         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
23459         argument of emit_library_call.
23460
23461 2009-04-21  Richard Guenther  <rguenther@suse.de>
23462
23463         PR middle-end/39829
23464         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
23465         inside VIEW_CONVERT_EXPRs.
23466
23467 2009-04-21  Martin Jambor  <mjambor@suse.cz>
23468
23469         * tree-switch-conversion.c (build_constructors): Split a long line.
23470         (constructor_contains_same_values_p): New function.
23471         (build_one_array): Create assigns of constants if possible, do not
23472         call mark_sym_for_renaming, call update_stmt.
23473         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
23474         make_rename_temp.  Do not call mark_symbols_for_renaming, call
23475         update_stmt.
23476         (gen_def_assigns): Do not call mark_symbols_for_renaming or
23477         find_new_referenced_vars, call update_stmt.
23478         (gen_inbound_check): Use create_tmp_var and create ssa names manually
23479         instead of calling make_rename_temp.  Do not call
23480         find_new_referenced_vars or mark_symbols_for_renaming, call
23481         update_stmt.
23482
23483 2009-04-21  Richard Guenther  <rguenther@suse.de>
23484
23485         PR tree-optimization/39827
23486         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
23487         (tree_ssa_phiprop): Pass the correct array size.
23488
23489 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
23490
23491         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
23492
23493 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23494
23495         PR 16202
23496         * c-typeck.c (lvalue_p): Move declaration ...
23497         * c-common.h (lvalue_p): ... to here.
23498         * c-common.c (candidate_equal_p): New.
23499         (add_tlist): Use it.
23500         (merge_tlist): Use it.
23501         (warn_for_collisions_1): Likewise.
23502         (warning_candidate_p): Accept more candidates.
23503         (verify_tree): A warning candidate can be an expression. Use
23504         candidate_equal_p.
23505
23506 2009-04-21  Ben Elliston  <bje@au.ibm.com>
23507
23508         PR target/5267
23509         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
23510         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
23511         options.  Remove -mcall-solaris documentation.
23512
23513 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23514
23515         PR c++/13358
23516         * doc/invoke.texi (-Wlong-long): Update description.
23517         * c-lex (interpret_integer): Only warn if there was no previous
23518         overflow and -Wlong-long is enabled.
23519         * c-decl.c (declspecs_add_type): Drop redundant flags.
23520         * c.opt (Wlong-long): Init to -1.
23521         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
23522         and front-end warn_long_long. Wlong-long only depends on other
23523         flags if it is uninitialized.
23524         * c-parser.c (disable_extension_diagnostics): warn_long_long is
23525         the same for CPP and FE.
23526         (restore_extension_diagnostics): Likewise.
23527
23528 2009-04-20  Ian Lance Taylor  <iant@google.com>
23529
23530         Fix enum conversions which are invalid in C++:
23531         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
23532         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
23533         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
23534         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
23535         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
23536         (dbxout_parms): Likewise.
23537         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
23538         (df_clear_flags): Likewise.
23539         * df-problems.c (df_rd_bb_local_compute_process_def): Change
23540         top_flag parameter to int.
23541         (df_chain_create_bb_process_use): Likewise.
23542         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
23543         Remove cast.
23544         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
23545         (df_ref_create_structure, df_def_record_1): Likewise.
23546         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
23547         (df_notes_rescan): Change 0 to VOIDmode in function call.
23548         (df_get_call_refs, df_insn_refs_collect): Likewise.
23549         (df_bb_regs_collect): Likewise.
23550         (df_entry_block_defs_collect): Likewise.
23551         (df_exit_block_uses_collect): Likewise.
23552         * df.h: Update declarations.
23553         * double-int.c (double_int_divmod): Add cast to enum type.
23554         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
23555         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
23556         (based_loc_descr): Likewise.
23557         (loc_descriptor_from_tree_1): Change first_op and second_op to
23558         enum dwarf_location_atom.  Add cast to enum type.
23559         * expmed.c (init_expmed): Change 0 to SET in function call.
23560         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
23561         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
23562         (do_store_flag): Likewise.
23563         * fixed-value.h (struct fixed_value): Change mode to enum
23564         machine_mode.
23565         * function.c (assign_parms): Change 0 to VOIDmode in function call.
23566         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
23567         function call.
23568         (insert_insn_decl, insert_decl, insert_state): Likewise.
23569         (automata_list_finish): Likewise.
23570         * genrecog.c (process_define_predicate): Add cast to enum type.
23571         * gensupport.c (init_predicate_table): Add cast to enum type.
23572         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
23573         function call.
23574         (gimple_build_call_1, gimple_build_label): Likewise.
23575         (gimple_build_goto, gimple_build_asm_1): Likewise.
23576         (gimple_build_switch_1, gimple_build_cdt): Likewise.
23577         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
23578         (enum fallback): Rename from enum fallback_t.
23579         (fallback_t): Typedef as int.
23580         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
23581         GSI_SAME_STMT in function call.
23582         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
23583         enum type.
23584         (setup_reg_class_relations): Likewise.
23585         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
23586         (setup_prohibited_class_mode_regs): Add cast to enum type.
23587         (setup_prohibited_mode_move_regs): Likewise.
23588         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
23589         (record_address_regs): Change i to enum reg_class.
23590         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
23591         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
23592         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
23593         (GET_MODE_2XWIDER_MODE): Likewise.
23594         (GET_CLASS_NARROWEST_MODE): Likewise.
23595         * omp-low.c (expand_omp_for): Add cast to enum type.
23596         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
23597         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
23598         * postreload.c (reload_cse_simplify_operands): Change rclass local
23599         to enum reg_class.
23600         * predict.c (combine_predictions_for_insn): Change best_predictor
23601         and predictor to enum br_predictor.
23602         (combine_predictions_for_bb): Likewise.
23603         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
23604         use SET_PREDICT_EXPR_OUTCOME.
23605         * real.c (real_arithmetic): Change icode to code in function call.
23606         * reginfo.c (init_move_cost): Add casts to enum type.
23607         (init_reg_sets_1, init_fake_stack_mems): Likewise.
23608         * regmove.c (regclass_compatible_p): Change class0 and class1 to
23609         enum reg_class.
23610         * reload.c (find_valid_class): Add casts to enum type.
23611         (push_reload): Change 0 to NO_REGS in function call.
23612         (find_reloads): Change this_alternative to array of enum
23613         reg_class.  Remove some now-unnecessary casts.
23614         (make_memloc): Change 0 to VOIDmode in function call.
23615         * reload1.c (reload): Change 0 to VOIDmode in function call.
23616         (eliminate_regs_1, elimination_effects): Likewise.
23617         (eliminate_regs_in_insn): Likewise.
23618         (emit_input_reload_insns): Add cast to enum type.
23619         (delete_output_reload): Change 0 to VOIDmode in function call.
23620         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
23621         to enum type in function call.
23622         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
23623         (SET_PREDICT_EXPR_OUTCOME): Define.
23624         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
23625         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
23626         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
23627         (dump_function): Likewise.
23628         * tree-dump.h: Update declarations.
23629         * tree-pass.h: Update declarations.
23630         * varasm.c (assemble_integer): Change mclass to enum mode_class.
23631         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
23632         enum type.
23633         (arm_rtx_costs_1): Correct parenthesization.
23634         (arm_rtx_costs): Add casts to enum type.
23635         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
23636         (vfp_emit_fstmd): Use add_rg_note.
23637         (emit_multi_reg_push, emit_sfm): Likewise.
23638         (thumb_set_frame_pointer): Likewise.
23639         (arm_expand_prologue): Likewise.
23640         (arm_regno_class): Change return type to enum reg_class.
23641         (thumb1_expand_prologue): Use add_reg_note.
23642         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
23643         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
23644         in function call.
23645         * config/arm/gentune.sh: Add cast to enum type.
23646         * config/arm/arm-tune.md: Rebuild.
23647         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
23648         (ix86_split_fp_branch, predict_jump): Likewise.
23649         (ix86_expand_multi_arg_builtin): Change sub_code from enum
23650         insn_code to enum rtx_code.
23651         (ix86_builtin_vectorized_function): Add cast to enum type.
23652         * config/i386/i386.md (truncdfsf2): Change slot to enum
23653         ix86_stack_slot.
23654         (truncxf<mode>2, isinf<mode>2): Likewise.
23655         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
23656         enum type.
23657         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
23658         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
23659         (insert_bundle_state): Change 1 to INSERT in function call.
23660         (ia64_add_bundle_selector_before): Likewise.
23661         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
23662         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
23663         (restore_stack_nonlocal): Likewise.
23664         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
23665         function call.
23666         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
23667         function call.
23668         (mips_rtx_costs): Likewise.
23669         (mips_override_options): Add casts to enum type.
23670         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
23671         in function call.
23672         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
23673         (store_reg, set_reg_plus_d): Likewise.
23674         (hppa_expand_prologue, hppa_profile_hook): Likewise.
23675         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
23676         cast to enum type.
23677         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
23678         function call.
23679         (emit_unlikely_jump): Use add_reg_note.
23680         (rs6000_emit_allocate_stack): Likewise.
23681         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
23682         (output_toc): Change 1 to INSERT in function call.
23683         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
23684         (rs6000_initialize_trampoline): Likewise.
23685         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
23686         function call.
23687         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
23688         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
23689         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
23690         (save_gprs): Use add_reg_note.
23691         (s390_emit_prologue): Likewise.
23692         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
23693         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
23694         (sparc_fold_builtin): Add cast to enum type.
23695         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
23696         enum insn_code.
23697         (spu_expand_prologue): Use add_reg_note.
23698         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
23699
23700 2009-04-20  Ian Lance Taylor  <iant@google.com>
23701
23702         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
23703         (c_parser_postfix_expression_after_primary): Get VEC for list of
23704         arguments.  Get original types of arguments.  Call
23705         build_function_call_vec.
23706         (cached_expr_list_1, cached_expr_list_2): New static variables.
23707         (c_parser_expr_list): Change return type to VEC *.  Add
23708         p_orig_types parameter.  Change all callers.
23709         (c_parser_release_expr): New static function.
23710         (c_parser_vec_to_tree_list): New static function.
23711         * c-typeck.c (build_function_call): Rewrite to build a VEC and
23712         call build_function_call_vec.
23713         (build_function_call_vec): New function, based on old
23714         build_function_call.
23715         (convert_arguments): Remove nargs and argarray parameters.  Change
23716         values to a VEC.  Add origtypes parameter.
23717         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
23718         (convert_for_assignment): Add origtype parameter.  Change all
23719         callers.  If warn_cxx_compat, check for conversion to an enum
23720         type when calling a function.
23721         (store_init_value): Add origtype parameter.  Change all callers.
23722         (digest_init): Likewise.
23723         (struct init_node): Add origtype field.
23724         (add_pending_init): Add origtype parameter.  Change all callers.
23725         (output_init_element): Likewise.
23726         (output_pending_init_elements): Pass origtype from init_node to
23727         output_init_element.
23728         (process_init_element): Pass origtype from c_expr to
23729         output_init_element.
23730         (c_finish_return): Add origtype parameter.  Change all callers.
23731         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
23732         caller.
23733         (sync_resolve_params): Likewise.
23734         (sync_resolve_return): Change params to first_param.  Change caller.
23735         (resolve_overloaded_builtins): Change params to VEC *.  Change
23736         callers.  Save first parameter around call to build_function_call_vec.
23737         * c-decl.c (finish_decl): Add origtype parameter.  Change all
23738         callers.  Call build_function_call_vec rather than
23739         build_function_call for cleanup.
23740         * c-tree.h: Update declarations.
23741         * c-common.h: Update declarations.
23742         * stub-objc.c (objc_rewrite_function_call): Change parameter from
23743         params to first_param.
23744         * target.h (struct gcc_target): Change resolve_overloaded_builtin
23745         params parameter from tree to void *.
23746         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23747         Change arglist parameter to have type void *, and to be a pointer
23748         to a VEC.
23749         * config/rs6000/rs6000-protos.h
23750         (altivec_resolve_overloaded_builtin): Update declaration.
23751         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
23752         fnargs parameter to have type void *, and to be a pointer to a
23753         VEC.  Call build_function_call_vec instead of
23754         build_function_call.
23755         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
23756
23757 2009-04-20  Joey Ye  <joey.ye@intel.com>
23758             Xuepeng Guo  <xuepeng.guo@intel.com>
23759             H.J. Lu  <hongjiu.lu@intel.com>
23760
23761         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
23762
23763         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
23764         (IX86_LEA_PRIORITY): Likewise.
23765         (distance_non_agu_define): New function.
23766         (distance_agu_use): Likewise.
23767         (ix86_lea_for_add_ok): Likewise.
23768         (ix86_dep_by_shift_count): Likewise.
23769
23770         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
23771         should split for LEA.
23772
23773         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
23774         function.
23775         (ix86_dep_by_shift_count): Likewise.
23776
23777 2009-04-20  Richard Guenther  <rguenther@suse.de>
23778
23779         * expr.c (handled_component_p): Move ...
23780         * tree.h (handled_component_p): ... here.
23781         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
23782         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
23783         and REALPART_EXPR to be in one group.
23784
23785 2009-04-20  Richard Guenther  <rguenther@suse.de>
23786
23787         * basic-block.h (get_all_dominated_blocks): Declare.
23788         * dominance.c (get_all_dominated_blocks): New function.
23789         * tree-cfg.c (get_all_dominated_blocks): Remove.
23790         (remove_edge_and_dominated_blocks): Adjust.
23791         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
23792         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
23793         instead of recursing.
23794
23795 2009-04-20  Doug Kwan  <dougkwan@google.com>
23796
23797         * cgraph.h (cgraph_node_ptr): New type for vector functions.
23798         (struct cgraph_node_set_def): New type.
23799         (cgraph_node_set) New type. Also declare vector functions.
23800         (struct cgraph_node_set_element_def): New type.
23801         (cgraph_node_set_element): Ditto.
23802         (cgraph_node_set_iterator): New iterator type.
23803         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
23804         cgraph_node_set_remove, dump_cgraph_node_set,
23805         debug_cgraph_node_set): New prototypes.
23806         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
23807         cgraph_node_set_size): New inlines.
23808         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
23809         including cgraph.h.
23810         (struct ipa_opt_pass): Add struct cgraph_node_set_def
23811         argument to function 'write_summary'.
23812         * ipa.c: Include ggc.h.
23813         (hash_cgraph_node_set_element,
23814         eq_cgraph_node_set_element, cgraph_node_set_new,
23815         cgraph_node_set_add, cgraph_node_set_remove,
23816         cgraph_node_set_find, dump_cgraph_node_set,
23817         debug_cgraph_node_set): New functions.
23818         * Makefile.in (ipa.o): Add dependency on GGC_H.
23819
23820 2009-04-20  Ira Rosen  <irar@il.ibm.com>
23821
23822         PR tree-optimization/39675
23823         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
23824         check of the return code of vect_schedule_slp. Check that
23825         stmt_vec_info still exists for the statement, before checking its
23826         vectorization type.
23827
23828 2009-04-20  Michael Matz  <matz@suse.de>
23829
23830         * Makefile.in (generated_files): Take out $(simple_generated_c).
23831
23832 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
23833
23834         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
23835         (UINTPTR_TYPE):  Likewise.
23836
23837 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
23838
23839         PR c/37481
23840         * c-typeck.c (digest_init): Check for initializing an array with a
23841         string literal.
23842
23843 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
23844
23845         PR c/19771
23846         * c-semantics.c (pop_stmt_list): Propagate
23847         STATEMENT_LIST_HAS_LABEL to parent statement list.
23848
23849 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
23850
23851         * config/mips/mips.h (mips_tune_attr): New macro.
23852         * config/mips/mips.md (cpu): Use it.
23853
23854 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
23855
23856         PR c/38243
23857         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
23858         declaring a tag.
23859
23860 2009-04-19  Diego Novillo  <dnovillo@google.com>
23861
23862         * toplev.c (compile_file): Move call to coverage_finish ...
23863         * cgraphunit.c (ipa_passes): ... here.
23864         Call cgraph_process_new_functions.
23865         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
23866         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
23867
23868 2009-04-19  Jan Hubicka  <jh@suse.cz>
23869
23870         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
23871         cfun.
23872         (dump_cgraph_node): Dump can throw external flag.
23873         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
23874
23875 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23876
23877         PR c/32061
23878         PR c++/36954
23879         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
23880         * common.opt (Wlogical-op): Move from here...
23881         * c.opt (Wlogical-op): ... to here.
23882         * c-typeck.c (parser_build_binary_op): Update call to
23883         warn_logical_operator.
23884         * c-opts.c (c_common_post_options): Enable warn_logical_op with
23885         extra_warnings.
23886         * c-common.c (warn_logical_op): Update.
23887         * c-common.h (warn_logical_op): Update declaration.
23888
23889 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
23890
23891         * tree.c (protected_set_expr_location): Fix formatting.
23892
23893 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
23894
23895         PR c/27676
23896         * c-typeck.c (readonly_warning): new.
23897         (build_unary_op, build_modify_expr): Use readonly_warning for
23898         storing into something readonly but not const-qualified.
23899
23900 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
23901
23902         PR c/22367
23903         * c-typeck.c (build_unary_op): Check for taking address of
23904         expression of type void.
23905
23906 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
23907
23908         PR c/35210
23909         * c-typeck.c (build_function_call): Check for calling a function
23910         with qualified void return types.  Call require_complete_type when
23911         generating a trap.
23912
23913 2009-04-18  Jan Hubicka  <jh@suse.cz>
23914
23915         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
23916         Set nothrow flag.
23917         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
23918         can_throw_external flag.
23919         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
23920         * ipa-pure-const.c (ignore_edge): New function.
23921         (propagate): Compute order for NOTHROW computation; set NOTHROWs
23922         only over can_throw_external edges.
23923         (local_pure_const): Add nothrow flag.
23924         * ipa-utils.c (searchc): Add ignore_edge callback.
23925         (ipa_utils_reduced_inorder): Add ignore_edge callback.
23926         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
23927         (set_nothrow_function_flags): Update cgraph.
23928         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
23929
23930 2009-04-18  Richard Guenther  <rguenther@suse.de>
23931
23932         PR middle-end/39804
23933         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
23934         (fold_stmt): ... this and ...
23935         (fold_stmt_inplace): ... this.
23936         (fold_stmt_1): Fold references in calls and asms.
23937         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
23938
23939 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23940
23941         * tree-vrp.c (ssa_name_nonzero_p): Remove.
23942         * tree.h: Remove the prototype for ssa_name_nonzero_p.
23943
23944 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23945
23946         * tree.c (function_args_count): Remove.
23947         * tree.h: Remove the prototype for function_args_count.
23948
23949 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23950
23951         * tree-iterator.c (expr_only): Remove.
23952         * tree.h: Remove the prototype for expr_only.
23953
23954 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23955
23956         * reginfo.c (cannot_change_mode_set_regs): Remove.
23957         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
23958
23959 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
23960
23961         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
23962         whether operands 0 and 1 overlaps.
23963
23964 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23965
23966         PR middle-end/36902
23967         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
23968         pointer. Use warning_at instead of warning.
23969         (search_for_addr_array): Likewise.
23970         (check_array_bounds): Likewise.
23971         (check_all_array_refs): Check that the incoming edge is not in the
23972         list of edges to be removed.
23973         (check_all_array_refs): Avoid the temporal pointer.
23974         (vrp_visit_cond_stmt): Fix typo.
23975         (simplify_switch_using_ranges): Handle the case where the switch
23976         index is an integer constant.
23977
23978 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
23979
23980         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
23981
23982 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23983
23984         * doc/extend.texi, doc/invoke.texi: Fix typos.
23985
23986 2009-04-17  Cary Coutant  <ccoutant@google.com>
23987
23988         * tree-flow-inline.h (get_lineno): Fix inverted test.
23989
23990 2009-04-17  Diego Novillo  <dnovillo@google.com>
23991
23992         * tree-ssa-pre.c (create_expression_by_pieces): Remove
23993         assertion for AVAIL_OUT.
23994
23995 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
23996
23997         PR target/38627
23998         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
23999         * config/sh/linux-atomic.asm: Likewise.
24000
24001 2009-04-17  Diego Novillo  <dnovillo@google.com>
24002
24003         * except.c (debug_eh_tree): New.
24004         (struct eh_region, struct eh_status): Move ...
24005         * except.h: ... here.
24006         (add_type_for_runtime): Declare extern.
24007         (lookup_type_for_runtime): Likewise.
24008         (debug_eh_tree): Declare.
24009         * Makefile.in (GTFILES): List except.h before except.c
24010
24011 2009-04-17  Diego Novillo  <dnovillo@google.com>
24012
24013         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
24014         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
24015         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
24016         (find_vars_r): ... here.
24017         * tree-flow.h (find_referenced_vars_in): Declare.
24018         * tree-ssa-pre.c (create_expression_by_pieces): Assert
24019         that AVAIL_OUT exists for BLOCK.
24020         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
24021         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
24022         (tree-parloops.o): Likewise.
24023
24024 2009-04-17  Simon Baldwin  <simonb@google.com>
24025
24026         * toplev.c (default_tree_printer): Add handling for %E format.
24027
24028 2009-04-17  Diego Novillo  <dnovillo@google.com>
24029
24030         * tree-pretty-print.c (dump_generic_node): Add break after
24031         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
24032         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
24033         FUNCTION_TYPE together.  Call print_struct_decl when printing
24034         structures and TDF_SLIM is not given.
24035         (print_struct_decl): Fix logic for detecting recursion.
24036
24037 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
24038
24039         PR 31567
24040         * gcc.c (create_at_file): New.
24041         (compile_input_file_p): New.
24042         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
24043         * main.c (main): Update call to toplev_main.
24044         * toplev.c (toplev_main): Change signature. Call expandargv.
24045         * toplev.h (toplev_main): Change signature.
24046
24047 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
24048
24049         * dwarf2out.c (field_byte_offset): Use the type size as the field size
24050         if the latter is not constant.
24051
24052 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
24053
24054         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
24055
24056 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
24057
24058         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
24059         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
24060
24061 2009-04-17  Richard Guenther  <rguenther@suse.de>
24062
24063         * tree-ssa-structalias.c (get_constraint_for_component_ref):
24064         Handle component references view-converting an invariant address.
24065
24066 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
24067
24068         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
24069         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
24070         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
24071         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
24072         Use @deftypevr rather than @deftypevar.
24073
24074 2009-04-17  Richard Guenther  <rguenther@suse.de>
24075
24076         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
24077         (get_prop_source_stmt): Likewise.
24078         (can_propagate_from): Likewise.
24079
24080 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
24081
24082         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
24083         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
24084         (--with-multilib-list): Add default value.
24085         * configure: Regenerate.
24086         * Makefile.in (TM_ENDIAN_CONFIG): Define.
24087         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
24088         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
24089         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
24090         Don't add default cpu to multilib list unnecessarily, but do enable
24091         the relevant compiler option..
24092         Add support for --with-multilib-list=<blank> and
24093         --with-multilib-list=!<somelib> to supress unwanted multilibs.
24094         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
24095         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
24096         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
24097         TM_MULTILIB_CONFIG.
24098         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
24099         (MULTILIB_OSDIRNAMES): New variable.
24100         * config/sh/t-1e: Delete file.
24101         * config/sh/t-mlib-sh1: Delete file.
24102         * config/sh/t-mlib-sh2: Delete file.
24103         * config/sh/t-mlib-sh2a: Delete file.
24104         * config/sh/t-mlib-sh2a-nofpu: Delete file.
24105         * config/sh/t-mlib-sh2a-single: Delete file.
24106         * config/sh/t-mlib-sh2a-single-only: Delete file.
24107         * config/sh/t-mlib-sh2e: Delete file.
24108         * config/sh/t-mlib-sh3e: Delete file.
24109         * config/sh/t-mlib-sh4: Delete file.
24110         * config/sh/t-mlib-sh4-nofpu: Delete file.
24111         * config/sh/t-mlib-sh4-single: Delete file.
24112         * config/sh/t-mlib-sh4-single-only: Delete file.
24113         * config/sh/t-mlib-sh4a: Delete file.
24114         * config/sh/t-mlib-sh4a-nofpu: Delete file.
24115         * config/sh/t-mlib-sh4a-single: Delete file.
24116         * config/sh/t-mlib-sh4a-single-only: Delete file.
24117         * config/sh/t-mlib-sh4al: Delete file.
24118         * config/sh/t-mlib-sh5-32media: Delete file.
24119         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
24120         * config/sh/t-mlib-sh5-64media: Delete file.
24121         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
24122         * config/sh/t-mlib-sh5-compact: Delete file.
24123         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
24124         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
24125         * doc/install.texi (Options specification): Add
24126         --with-multilib-list and --with-endian.
24127
24128 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
24129
24130         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
24131         REVISION_c.
24132         (OBJS-common): Add plugin-version.o.
24133         (plugin-version.o): New.
24134         * gcc-plugin.h (plugin_gcc_version): New.
24135         (plugin_default_version_check): New.
24136         (plugin_init_func, plugin_init): Add version argument.
24137         * plugin-version.c: New.
24138         * plugin.c (str_plugin_gcc_version_name): New.
24139         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
24140         pass it to the init function.
24141         (plugin_default_version_check): New.
24142
24143 2009-04-17  Richard Guenther  <rguenther@suse.de>
24144
24145         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
24146         for decl-vs-decl disambiguation.
24147
24148 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
24149
24150         * config/s390/s390.h (s390_tune_attr): New macro definition.
24151         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
24152
24153 2009-04-17  Richard Guenther  <rguenther@suse.de>
24154
24155         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
24156         (fold_stmt_r): Likewise.
24157         (maybe_fold_reference): New function.
24158         (fold_gimple_assign): Handle cases fold_stmt_r did.
24159         (fold_stmt): Do not use fold_stmt_r.
24160         (fold_stmt_inplace): Likewise.
24161
24162 2009-04-17  Richard Guenther  <rguenther@suse.de>
24163
24164         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
24165         (record_equivalences_from_stmt): Remove useless checks and
24166         simplifications.
24167         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
24168         the type is already suitable.
24169
24170 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
24171
24172         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
24173
24174 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
24175
24176         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
24177         (CMPtype): Define as __gcc_CMPtype.
24178
24179 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
24180
24181         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
24182         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
24183
24184 2009-04-17  Richard Guenther  <rguenther@suse.de>
24185
24186         PR tree-optimization/39746
24187         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
24188         special-casing for builtins and static variable use/def.
24189         (call_may_clobber_ref_p_1): Likewise.
24190
24191 2009-04-16  Ian Lance Taylor  <iant@google.com>
24192
24193         * df.h: Include "timevar.h".
24194         (struct df_problem): Change tv_id field to timevar_id_t.
24195         * tree-pass.h: Include "timevar.h".
24196         (struct opt_pass): Change tv_id field to timevar_id_t.
24197         * timevar.h (timevar_id_t): Define TV_NONE.
24198         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
24199         TV_NONE rather than tv_id != 0.
24200         (execute_one_pass): Likewise.
24201         * Makefile.in (DF_H): Add $(TIMEVAR_H).
24202         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
24203         dependencies to $(TREE_PASS_H).
24204         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
24205         to TV_NONE.
24206         (pass_branch_target_load_optimize2): Likewise.
24207         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
24208         (pass_outof_cfg_layout_mode): Likewise.
24209         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
24210         (pass_rebuild_cgraph_edges): Likewise.
24211         (pass_remove_cgraph_callee_edges): Likewise.
24212         * df-core.c (pass_df_initialize_opt): Likewise.
24213         (pass_df_initialize_no_opt): Likewise.
24214         (pass_df_finish): Likewise.
24215         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
24216         * except.c (pass_set_nothrow_function_flags): Likewise.
24217         (pass_convert_to_eh_region_ranges): Likewise.
24218         * final.c (pass_compute_alignments): Likewise.
24219         * function.c (pass_instantiate_virtual_regs): Likewise.
24220         (pass_init_function): Likewise.
24221         (pass_leaf_regs): Likewise.
24222         (pass_match_asm_constraints): Likewise.
24223         * gimple-low.c (pass_lower_cf): Likewise.
24224         (pass_mark_used_blocks): Likewise.
24225         * init-regs.c (pass_initialize_regs): Likewise.
24226         * integrate.c (pass_initial_value_sets): Likewise.
24227         * ira.c (pass_ira): Likewise.
24228         * jump.c (pass_cleanup_barriers): Likewise.
24229         * omp-low.c (pass_expand_omp): Likewise.
24230         (pass_lower_omp): Likewise.
24231         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
24232         * recog.c (pass_split_all_insns): Likewise.
24233         (pass_split_after_reload): Likewise.
24234         (pass_split_before_regstack): Likewise.
24235         (pass_split_before_sched2): Likewise.
24236         (pass_split_for_shorten_branches): Likewise.
24237         * reginfo.c (pass_reginfo_init): Likewise.
24238         (pass_subregs_of_mode_init): Likewise.
24239         (pass_subregs_of_mode_finish): Likewise.
24240         * passes.c (pass_postreload): Likewise.
24241         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
24242         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
24243         (pass_warn_function_return): Likewise.
24244         (pass_warn_function_noreturn): Likewise.
24245         * tree-complex.c (pass_lower_complex): Likewise.
24246         (pass_lower_complex_O0): Likewise.
24247         * tree-if-conv.c (pass_if_conversion): Likewise.
24248         * tree-into-ssa.c (pass_build_ssa): Likewise.
24249         * tree-mudflap.c (pass_mudflap_1): Likewise.
24250         (pass_mudflap_2): Likewise.
24251         * tree-nomudflap.c (pass_mudflap_1): Likewise.
24252         (pass_mudflap_2): Likewise.
24253         * tree-nrv.c (pass_return_slot): Likewise.
24254         * tree-object-size.c (pass_object_sizes): Likewise.
24255         * tree-optimize.c (pass_all_optimizations): Likewise.
24256         (pass_early_local_passes): Likewise.
24257         (pass_all_early_optimizations): Likewise.
24258         (pass_cleanup_cfg): Likewise.
24259         (pass_cleanup_cfg_post_optimizing): Likewise.
24260         (pass_free_datastructures): Likewise.
24261         (pass_free_cfg_annotations): Likewise.
24262         (pass_fixup_cfg): Likewise.
24263         (pass_init_datastructures): Likewise.
24264         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
24265         (pass_late_warn_uninitialized): Likewise.
24266         (pass_update_address_taken): Likewise.
24267         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
24268         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
24269         (pass_cse_sincos): Likewise.
24270         (pass_convert_to_rsqrt): Likewise.
24271         * tree-ssa-structalias.c (pass_build_alias): Likewise.
24272         * tree-stdarg.c (pass_stdarg): Likewise.
24273         * tree-tailcall.c (pass_tail_recursion): Likewise.
24274         (pass_tail_calls): Likewise.
24275         * tree-vect-generic.c (pass_lower_vector): Likewise.
24276         (pass_lower_vector_ssa): Likewise.
24277         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
24278
24279 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
24280
24281         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
24282         XLR entry.
24283         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
24284         Handle -march=xlr.
24285         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
24286         logical and signext.
24287
24288 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
24289
24290         PR target/39767
24291         * config/sh/predicates.md (arith_operand): Check if the operand
24292         of TRUNCATE is a REG.
24293
24294 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
24295
24296         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
24297         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
24298
24299 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
24300
24301         * tree-iterator.c (tsi_split_statement_list_after,
24302         tsi_split_statement_list_before): Remove.
24303         * tree-iterator.h: Remove the prototypes for
24304         tsi_split_statement_list_after and tsi_split_statement_list_before.
24305
24306 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
24307
24308         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
24309         * tree-ssa-propagate.h: Remove the prototype for
24310         stmt_makes_single_load.
24311
24312 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
24313
24314         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
24315         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
24316
24317 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
24318
24319         * tree-iterator.c (EXPR_LAST_BODY): Remove.
24320
24321 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
24322
24323         * except.c (eh_region_outer_p): Remove.
24324         * except.h: Remove the prototype for eh_region_outer_p.
24325
24326 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
24327
24328         * function.c (current_function_assembler_name): Remove.
24329         * function.h: Remove the prototype for
24330         current_function_assembler_name.
24331
24332 2009-04-16  Ian Lance Taylor  <iant@google.com>
24333
24334         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
24335         (add_reg_note): Call alloc_reg_note.
24336         * rtl.h (alloc_reg_note): Declare.
24337         * combine.c (try_combine): Use alloc_reg_note.
24338         (recog_for_combine, move_deaths): Likewise.
24339         (distribute_notes): Use alloc_reg_note and add_reg_note.
24340         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
24341         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
24342         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
24343
24344 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
24345
24346         PR rtl-optimization/39762
24347         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
24348         ira_may_move_out_cost): Add comments about way of their usage.
24349         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
24350
24351         * ira-conflicts.c (process_regs_for_copy): Use function
24352         ira_get_register_move_cost instead of global
24353         ira_register_move_cost.
24354
24355         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
24356         color_pass, move_spill_restore, update_curr_costs): Ditto.
24357
24358         * ira-lives.c (process_single_reg_class_operands): Ditto.
24359
24360         * ira-emit.c (emit_move_list): Ditto.
24361
24362         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
24363         (record_reg_classes): Ditto.  Use functions
24364         ira_get_register_move_cost and ira_get_may_move_cost instead of
24365         global vars ira_register_move_cost, ira_may_move_out_cost and
24366         ira_may_move_in_cost.
24367         (record_address_regs): Don't call ira_init_register_move_cost.
24368         Use function ira_get_may_move_cost instead of global
24369         ira_may_move_in_cost.
24370         (process_bb_node_for_hard_reg_moves): Use function
24371         ira_get_register_move_cost instead of global ira_register_move_cost.
24372         (ira_costs): Don't call ira_init_register_move_cost.
24373
24374 2009-04-16  Richard Guenther  <rguenther@suse.de>
24375
24376         * tree-cfg.c (verify_gimple_assign_binary):
24377         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
24378         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
24379         (create_general_new_stmt): Note that this function is broken.
24380
24381 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
24382
24383         * common.opt (fhelp): Add Var(help_flag).
24384         * gcc-plugin.h (plugin_info): Add help.
24385         * plugin.c (plugin_name_args): Add help.
24386         (register_plugin_info): Set plugin->help.
24387         (print_help_one_plugin): New.
24388         (print_plugins_help): New.
24389         * plugin.h (print_plugins_help): New.
24390         * toplev.c (toplev_main): Call print_plugins_help if needed.
24391
24392 2009-04-16  Richard Guenther  <rguenther@suse.de>
24393
24394         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
24395         (gimple_ior_addresses_taken_1): New function.
24396         (gimple_ior_addresses_taken): Likewise.
24397         * gimple.h (struct gimple_statement_with_ops_base): Remove
24398         addresses_taken member.
24399         (gimple_ior_addresses_taken): Declare.
24400         (gimple_addresses_taken, gimple_addresses_taken_ptr,
24401         gimple_set_addresses_taken): Remove.
24402         * ipa-reference.c (mark_address): New function.
24403         (scan_stmt_for_static_refs): Use it for marking addresses taken.
24404         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
24405         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
24406         (gimple_add_to_addresses_taken): Remove.
24407         (get_tmr_operands): Call mark_address_taken.
24408         (get_asm_expr_operands): Likewise.
24409         (get_expr_operands): Likewise.
24410         (build_ssa_operands): Do not clear the addresses_taken bitmap.
24411         (free_stmt_operands): Do not free it.
24412         * tree-ssa.c (delete_tree_ssa): Likewise.
24413         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
24414
24415 2009-04-16  Richard Guenther  <rguenther@suse.de>
24416
24417         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
24418         (walk_stmt_load_store_ops): Likewise.
24419         * gimple.c (get_base_loadstore): New function.
24420         (walk_stmt_load_store_addr_ops): Likewise.
24421         (walk_stmt_load_store_ops): Likewise.
24422         * ipa-pure-const.c (check_op): Simplify.
24423         (check_load, check_store): New functions.
24424         (check_stmt): Use walk_stmt_load_store_ops.
24425         * ipa-reference.c (mark_load): Adjust signature.
24426         (mark_store): Likewise.
24427         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
24428
24429 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
24430
24431         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
24432         (plugin_info): New.
24433         * opts.c (common_handle_option): Don't call print_version.
24434         * plugin.c (plugin_name_args): Add version.
24435         (register_plugin_info): New.
24436         (register_callback): Handle PLUGIN_INFO.
24437         (try_init_one_plugin): New.
24438         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
24439         if failed to init.
24440         (finalize_one_plugin): New.
24441         (finalize_plugins): New.
24442         (print_one_plugin): New.
24443         (print_plugins_versions): New.
24444         * plugin.h (print_plugins_versions): New.
24445         (finalize_plugins): New.
24446         * toplev.c (compile_file): Don't call initialize_plugins.
24447         (print_version): Call print_plugins_versions.
24448         (toplev_main): Call initialize_plugins. Print version if needed.
24449         Call finalize_plugins.
24450
24451 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
24452
24453         * common.opt (fversion): New.
24454         * gcc.c (print_version): New.
24455         (process_command): Don't print the version. Just set print_version.
24456         (main): Print version. Call subprocesses if print_version and
24457         verbose_flag are set.
24458         * opts.c (common_handle_option): Handle OPT_fversion.
24459
24460 2009-04-16  Richard Guenther  <rguenther@suse.de>
24461             Ira Rosen  <irar@il.ibm.com>
24462
24463         PR tree-optimization/39698
24464         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
24465         type of the reduction variable.  Only generate the def if
24466         it is needed.
24467
24468         * omp-low.c (expand_omp_for_generic): When converting to a pointer
24469         make sure to first convert to an integer of the same precision.
24470         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
24471         the type of the evolution correctly in computing the new
24472         induction variable base.
24473
24474 2009-04-16  Richard Guenther  <rguenther@suse.de>
24475
24476         PR middle-end/39625
24477         * tree-cfg.c (make_blocks): Split statements with to-be
24478         abnormal SSA names on the lhs.
24479
24480 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
24481
24482         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
24483         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
24484         * c-typeck.c (really_start_incremental_init): Likewise.
24485         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
24486         (TARGET_INITIALIZER): Remove it.
24487         * target.h (struct target): Remove vector_opaque_p.
24488         * tree.c (build_opaque_vector_type): New.
24489         * tree.h (TYPE_VECTOR_OPAQUE): New.
24490         (build_opaque_vector_type): Declare.
24491         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
24492         * config/rs6000/rs6000.c (build_opaque_vector_type,
24493         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
24494         (rs6000_init_builtins): Use build_opaque_vector_type for
24495         opaque_V4SI_type_node.
24496
24497 2009-04-15  Catherine Moore  <clm@codesourcery.com>
24498
24499         * debug.h (set_name):  Declare.
24500         * dwarf2out.c (dwarf2out_set_name): Declare.
24501         (dwarf2_debug_hooks): Add set_name.
24502         (find_AT_string): New.
24503         (add_AT_string): Call find_AT_string.
24504         (dwarf2out_set_name): New.
24505         * cp/decl.c (grokdeclarator): Call set_name.
24506         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
24507         * debug.c (do_nothing_debug_hooks):  Likewise.
24508         * dbxout.c (dbx_debug_hooks): Likewise.
24509         * sdbout.c (sdb_debug_hooks): Likewise.
24510
24511 2009-04-15  Michael Eager  <eager@eagercon.com>
24512
24513         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
24514         reg for single-precision FPU.
24515         * config/rs6000/rs6000.md (movsi_internal1): Only for
24516         !TARGET_SINGLE_FPU.
24517         (movsi_internal1_single): New. Add pattern to move SI values to/from
24518         single-precision FP regs.
24519
24520 2009-04-15  Richard Guenther  <rguenther@suse.de>
24521
24522         * omp-low.c (lower_rec_input_clauses): Build correct address
24523         expressions.
24524         (expand_omp_for_generic): Fix multiplication type.
24525         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
24526         (generate_memset_zero): Fix types.
24527         * tree-profile.c (prepare_instrumented_value): Correctly
24528         widen a pointer.
24529
24530 2009-04-15  Ian Lance Taylor  <iant@google.com>
24531
24532         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
24533         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
24534         for -Wall and for -Wc++-compat.
24535         (c_common_post_options): For C++, set warn_enum_compare if not
24536         already set.
24537         * c-tree.h (struct c_expr): Add field original_type.
24538         (build_external_ref): Update declaration.
24539         * c-parser.c (c_parser_braced_init): Set original_type.
24540         (c_parser_initelt): Likewise.
24541         (c_parser_expr_no_commas): Likewise.
24542         (c_parser_conditional_expression): Likewise.
24543         (c_parser_cast_expression): Likewise.
24544         (c_parser_unary_expression): Likewise.  Pull setting of
24545         original_code to top of function.
24546         (c_parser_sizeof_expression): Set original_type.
24547         (c_parser_alignof_expression): Likewise.
24548         (c_parser_postfix_expression): Likewise.  Pull setting of
24549         original_code to top of function.
24550         (c_parser_postfix_expression_after_paren_type): Set original_type.
24551         (c_parser_postfix_expression_after_primary): Likewise.
24552         (c_parser_expression): Likewise.
24553         * c-typeck.c (build_external_ref): Add type parameter.  Change all
24554         callers.
24555         (c_expr_sizeof_expr): Set original_type field.
24556         (parser_build_unary_op): Likewise.
24557         (parser_build_binary_op): Likewise.  Optionally warn about
24558         comparisons of enums of different types.
24559         (digest_init): Set original_type field.
24560         (really_start_incremental_init): Likewise.
24561         (push_init_level, pop_init_level): Likewise.
24562         * doc/invoke.texi (Warning Options): -Wenum-compare now
24563         supported in C.
24564
24565 2009-04-15  Richard Guenther  <rguenther@suse.de>
24566
24567         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
24568         out a necessary conversion.
24569         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
24570         names we didn't value number.
24571         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
24572
24573 2009-04-15  Richard Guenther  <rguenther@suse.de>
24574
24575         PR tree-optimization/39764
24576         * tree-ssa-ccp.c (get_value): Canonicalize value with
24577         canonicalize_float_value.
24578
24579 2009-04-15  Jan Hubicka  <jh@suse.cz>
24580
24581         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
24582         Wrong version of patch.
24583
24584 2009-04-15  Jan Hubicka  <jh@suse.cz>
24585
24586         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
24587
24588 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
24589
24590         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
24591         our distinct integral and vector types.
24592
24593 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
24594
24595         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
24596         * init.c (build_vtbl_address): Remove call to assemble_external.
24597
24598 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
24599
24600         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
24601         output for other floating point modes.
24602
24603 2009-04-14  Diego Novillo  <dnovillo@google.com>
24604
24605         * diagnostic.c (diagnostic_report_diagnostic): Do not
24606         warn about loaded plugins for DK_ERROR and DK_WARNING.
24607         * c-decl.c (declspecs_add_type): Move call to
24608         invoke_plugin_callbacks ...
24609         * c-parser.c (c_parser_declspecs): ... here.
24610         * plugin.c (dump_active_plugins): Tidy output.
24611
24612 2009-04-14  Diego Novillo  <dnovillo@google.com>
24613             Le-Chun Wu  <lcwu@google.com>
24614
24615         * configure.ac: Add --enable-plugin support.
24616         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
24617         * Makefile.in (PLUGIN_H): Define.
24618         Export ENABLE_PLUGIN and GMPINC to site.exp.
24619         Add PLUGINLIBS to link command.
24620         Add/modify dependencies for plugin.o and files including plugin.h.
24621         (plugin.o): New.
24622         * config.in: Regenerate.
24623
24624         * opts.c (common_handle_option): Handle OPT_fplugin_ and
24625         OPT_fplugin_arg_.
24626
24627 2009-04-14  Le-Chun Wu  <lcwu@google.com>
24628
24629         * tree-pass.h (register_one_dump_file): Add a prototype for
24630         register_one_dump_file.
24631         * toplev.c (compile_file): Call initialize_plugins.
24632         (do_compile): Call invoke_plugin_callbacks.
24633         (toplev_main): Call invoke_plugin_callbacks.
24634         * common.opt: Add -fplugin= and -fplugin-arg-.
24635         * gcc-plugin.h: New public header file for plugins to include.
24636         * plugin.c: New source file.
24637         * plugin.h: New internal header file.
24638         * passes.c (register_one_dump_file): Make it external.
24639
24640         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
24641
24642 2009-04-14  Diego Novillo  <dnovillo@google.com>
24643
24644         * doc/plugins.texi: New.
24645         * doc/gccint.texi: Add reference to Plugins chapter.
24646         * doc/invoke.texi: Document -fplugin and -fplugin-arg
24647         * diagnostic.c (diagnostic_report_diagnostic): Warn about
24648         loaded plugins, if any.
24649         * timevar.def (TV_PLUGIN_INIT): Define.
24650         (TV_PLUGIN_RUN): Define.
24651         * plugin.c: Include timevar.h
24652         (plugins_active_p): New.
24653         (dump_active_plugins): New.
24654         (debug_active_plugins): New.
24655
24656 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
24657
24658         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
24659         library paths.
24660         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
24661
24662 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
24663
24664         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
24665         the same as a minus without a shift.
24666
24667 2009-04-14  Nick Clifton  <nickc@redhat.com>
24668
24669         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
24670         comparisons with small integers will always produce a short
24671         branch.
24672
24673 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
24674
24675         Merge:
24676         2008-12-19  Diego Novillo  <dnovillo@google.com>
24677
24678         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
24679
24680 2009-04-14  Richard Guenther  <rguenther@suse.de>
24681
24682         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
24683         verification.
24684         (verify_gimple_assign_binary): Likewise.  Handle shifts and
24685         rotates correctly.
24686         (verify_gimple_phi): Print the mismatched argument position.
24687         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
24688         Fix types.
24689         (vect_update_init_of_dr): Likewise.
24690         * matrix-reorg.c (transform_access_sites): Do what the
24691         comment suggests.
24692         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
24693
24694 2009-04-13  Michael Eager  <eager@eagercon.com>
24695
24696         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
24697         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
24698         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
24699         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
24700         remove duplicate config
24701
24702 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
24703
24704         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
24705         file_name:line_number type locator of the call site.
24706
24707 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
24708
24709         * genautomata.c: Put blank after comma.
24710         (automaton_decls): New.
24711         (struct unit_usage): Add comments to member next.
24712         (store_alt_unit_usage): Keep the list ordered.
24713         (unit_present_on_list_p, equal_alternatives_p): New.
24714         (check_regexp_units_distribution): Check units distribution
24715         correctness correctly.
24716         (main): Don't write automata if error is found.  Return correct
24717         exit code.
24718
24719         * config/m68k/cf.md (cfv4_ds): Remove.
24720         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
24721         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
24722
24723         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
24724         power4-load-ext, power4-store, power4-store-update,
24725         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
24726         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
24727         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
24728         power4-sqrt, power4-isync): Modify reservation to make correct
24729         unit distribution to automata.
24730
24731         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
24732         power5-store-update, power5-two, power5-three, power5-lmul,
24733         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
24734
24735 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
24736
24737         * except.c (pass_set_nothrow_function_flags): Set name and add
24738         TODO_dump_func.
24739         (set_nothrow_function_flags): Mention in the dump file when
24740         changing a function to nothrow.
24741
24742 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
24743
24744         PR/39066
24745         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
24746         instead of unsigned long.
24747
24748 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24749
24750         * config/arm/arm.c (return_used_this_function): Remove.
24751         (arm_output_function_prologue): Remove use of
24752         return_used_this_function.
24753         (output_return_instruction): Replace use of
24754         return_used_this_function
24755         by cfun->machine->return_used_this_function.
24756         (arm_output_epilogue): Likewise.
24757         (arm_output_function_epilogue): Likewise.
24758         (thumb_unexpanded_epilogue): Likewise.
24759         * config/arm/arm.h (struct machine_function):
24760         New member return_used_this_function.
24761
24762 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
24763
24764         * doc/install.texi: Correct description of default directory for
24765         --with-gxx-include-dir.
24766
24767 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
24768
24769         * fold-const.c (build_range_check): Properly deal with enumeral and
24770         boolean base types.
24771
24772 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
24773
24774         * doc/invoke.texi (max_gcse_passes): Remove documentation.
24775         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
24776         * params.h (MAX_GCSE_PASSES): Remove.
24777         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
24778         in sequence.  Remove ability to run multiple passes.
24779         (bypass_jumps): Report run as third CPROP pass.
24780
24781 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
24782
24783         PR middle-end/39651
24784         * except.c (can_throw_external): Look at each insn in a SEQUENCE
24785         when deciding whether the whole SEQUENCE can throw.
24786
24787 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
24788
24789         PR target/39740
24790         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
24791         offseted label references.
24792
24793 2009-04-11  Jan Hubicka  <jh@suse.cz>
24794
24795         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
24796
24797 2009-04-11  Richard Guenther  <rguenther@suse.de>
24798
24799         PR middle-end/39732
24800         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
24801         return variables as TREE_ADDRESSABLE.
24802
24803 2009-04-11  Richard Guenther  <rguenther@suse.de>
24804
24805         PR tree-optimization/39713
24806         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
24807         reference trees have SSA_NAME operands.
24808
24809 2009-04-11  Richard Guenther  <rguenther@suse.de>
24810
24811         PR c/39712
24812         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
24813         address expressions.
24814
24815 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
24816
24817         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
24818         match changes in Cygwin 1.7
24819         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
24820         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
24821
24822 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
24823
24824         PR tree-optimization/39701
24825         * doc/invoke.texi (Optimization Options): Document change in
24826         meaning and initialization of -fdelete-null-pointer-checks.
24827
24828 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
24829
24830         PR middle-end/39701
24831         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
24832
24833         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
24834         here.
24835
24836         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
24837
24838 2009-04-10  Chao-ying Fu  <fu@mips.com>
24839
24840         * doc/tm.texi (Instruction Output): Document
24841         TARGET_ASM_FINAL_POSTSCAN_INSN.
24842         * target.h (final_postscan_insn): New field in asm_out.
24843         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
24844         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
24845         * final.c (final_scan_insn): Call
24846         targetm.asm_out.final_postscan_insn after outputting
24847         an asm macro and a normal instruction.
24848
24849         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
24850         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
24851         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
24852         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
24853         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
24854
24855 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
24856
24857         PR middle-end/39701
24858         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
24859         variables as non-NULL even with -fdelete-null-pointer-checks.
24860
24861 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
24862
24863         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
24864
24865 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
24866
24867         PR target/39678
24868         * config/i386/i386.c (classify_argument): Handle SCmode with
24869         (bit_offset % 64) != 0.
24870
24871 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
24872
24873         * doc/invoke.texi (Optimize Options): Add cross-reference to
24874         -Q --help=optimizers examples.
24875
24876 2009-04-10  Ben Elliston  <bje@au.ibm.com>
24877
24878         PR target/36800
24879         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
24880         regalign for the reg == fpr and TDmode case.
24881
24882 2009-04-09  David Ayers  <ayers@fsfe.org>
24883
24884         PR objc/29200
24885         * objc/objc-act.c (warn_with_method): Remove helper function.
24886         (check_duplicates): Call warning and inform directly.
24887         (really_start_method): Likewise.
24888
24889 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
24890
24891         * expmed.c (expand_divmod): Always use a comparison for a division
24892         by a large unsigned integer.
24893
24894         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
24895         for things others than variables or functions as nonzero.
24896
24897 2009-04-09  Nick Clifton  <nickc@redhat.com>
24898
24899         * unwind-compat.c: Change copyright header to refer to version
24900         3 of the GNU General Public License with version 3.1 of the
24901         GCC Runtime Library Exception and to point readers at the
24902         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
24903         * config/alpha/crtfastmath.c: Likewise.
24904         * config/alpha/linux-unwind.h: Likewise.
24905         * config/alpha/qrnnd.asm: Likewise.
24906         * config/alpha/vms-crt0-64.c: Likewise.
24907         * config/alpha/vms-crt0.c: Likewise.
24908         * config/alpha/vms-dwarf2.asm: Likewise.
24909         * config/alpha/vms-dwarf2eh.asm: Likewise.
24910         * config/alpha/vms-psxcrt0-64.c: Likewise.
24911         * config/alpha/vms-psxcrt0.c: Likewise.
24912         * config/alpha/vms_tramp.asm: Likewise.
24913         * config/arc/initfini.c: Likewise.
24914         * config/arc/lib1funcs.asm: Likewise.
24915         * config/arm/bpabi-v6m.S: Likewise.
24916         * config/arm/bpabi.S: Likewise.
24917         * config/arm/bpabi.c: Likewise.
24918         * config/arm/crti.asm: Likewise.
24919         * config/arm/crtn.asm: Likewise.
24920         * config/arm/ieee754-df.S: Likewise.
24921         * config/arm/ieee754-sf.S: Likewise.
24922         * config/arm/lib1funcs.asm: Likewise.
24923         * config/arm/libunwind.S: Likewise.
24924         * config/arm/linux-atomic.c: Likewise.
24925         * config/arm/mmintrin.h: Likewise.
24926         * config/arm/pr-support.c: Likewise.
24927         * config/arm/unaligned-funcs.c: Likewise.
24928         * config/arm/unwind-arm.c: Likewise.
24929         * config/arm/unwind-arm.h: Likewise.
24930         * config/avr/libgcc.S: Likewise.
24931         * config/bfin/crti.s: Likewise.
24932         * config/bfin/crtlibid.s: Likewise.
24933         * config/bfin/crtn.s: Likewise.
24934         * config/bfin/lib1funcs.asm: Likewise.
24935         * config/bfin/linux-unwind.h: Likewise.
24936         * config/cris/arit.c: Likewise.
24937         * config/cris/cris_abi_symbol.c: Likewise.
24938         * config/darwin-64.c: Likewise.
24939         * config/darwin-crt2.c: Likewise.
24940         * config/darwin-crt3.c: Likewise.
24941         * config/darwin.h: Likewise.
24942         * config/dbxelf.h: Likewise.
24943         * config/dfp-bit.c: Likewise.
24944         * config/dfp-bit.h: Likewise.
24945         * config/elfos.h: Likewise.
24946         * config/fixed-bit.c: Likewise.
24947         * config/fixed-bit.h: Likewise.
24948         * config/fp-bit.c: Likewise.
24949         * config/fp-bit.h: Likewise.
24950         * config/fr30/crti.asm: Likewise.
24951         * config/fr30/crtn.asm: Likewise.
24952         * config/fr30/lib1funcs.asm: Likewise.
24953         * config/freebsd-spec.h: Likewise.
24954         * config/frv/cmovd.c: Likewise.
24955         * config/frv/cmovh.c: Likewise.
24956         * config/frv/cmovw.c: Likewise.
24957         * config/frv/frvbegin.c: Likewise.
24958         * config/frv/frvend.c: Likewise.
24959         * config/frv/lib1funcs.asm: Likewise.
24960         * config/glibc-stdint.h: Likewise.
24961         * config/h8300/clzhi2.c: Likewise.
24962         * config/h8300/crti.asm: Likewise.
24963         * config/h8300/crtn.asm: Likewise.
24964         * config/h8300/ctzhi2.c: Likewise.
24965         * config/h8300/fixunssfsi.c: Likewise.
24966         * config/h8300/lib1funcs.asm: Likewise.
24967         * config/h8300/parityhi2.c: Likewise.
24968         * config/h8300/popcounthi2.c: Likewise.
24969         * config/i386/ammintrin.h: Likewise.
24970         * config/i386/att.h: Likewise.
24971         * config/i386/avxintrin.h: Likewise.
24972         * config/i386/biarch64.h: Likewise.
24973         * config/i386/bmmintrin.h: Likewise.
24974         * config/i386/cpuid.h: Likewise.
24975         * config/i386/cross-stdarg.h: Likewise.
24976         * config/i386/crtfastmath.c: Likewise.
24977         * config/i386/crtprec.c: Likewise.
24978         * config/i386/cygming-crtbegin.c: Likewise.
24979         * config/i386/cygming-crtend.c: Likewise.
24980         * config/i386/cygwin.asm: Likewise.
24981         * config/i386/emmintrin.h: Likewise.
24982         * config/i386/gmm_malloc.h: Likewise.
24983         * config/i386/gthr-win32.c: Likewise.
24984         * config/i386/i386.h: Likewise.
24985         * config/i386/immintrin.h: Likewise.
24986         * config/i386/linux-unwind.h: Likewise.
24987         * config/i386/linux64.h: Likewise.
24988         * config/i386/mm3dnow.h: Likewise.
24989         * config/i386/mmintrin-common.h: Likewise.
24990         * config/i386/mmintrin.h: Likewise.
24991         * config/i386/nmmintrin.h: Likewise.
24992         * config/i386/pmm_malloc.h: Likewise.
24993         * config/i386/pmmintrin.h: Likewise.
24994         * config/i386/smmintrin.h: Likewise.
24995         * config/i386/sol2-c1.asm: Likewise.
24996         * config/i386/sol2-ci.asm: Likewise.
24997         * config/i386/sol2-cn.asm: Likewise.
24998         * config/i386/sol2-gc1.asm: Likewise.
24999         * config/i386/tmmintrin.h: Likewise.
25000         * config/i386/unix.h: Likewise.
25001         * config/i386/w32-unwind.h: Likewise.
25002         * config/i386/wmmintrin.h: Likewise.
25003         * config/i386/x86-64.h: Likewise.
25004         * config/i386/x86intrin.h: Likewise.
25005         * config/i386/xmmintrin.h: Likewise.
25006         * config/ia64/crtbegin.asm: Likewise.
25007         * config/ia64/crtend.asm: Likewise.
25008         * config/ia64/crtfastmath.c: Likewise.
25009         * config/ia64/crti.asm: Likewise.
25010         * config/ia64/crtn.asm: Likewise.
25011         * config/ia64/fde-glibc.c: Likewise.
25012         * config/ia64/lib1funcs.asm: Likewise.
25013         * config/ia64/linux-unwind.h: Likewise.
25014         * config/ia64/quadlib.c: Likewise.
25015         * config/ia64/unwind-ia64.c: Likewise.
25016         * config/linux.h: Likewise.
25017         * config/m32c/m32c-lib1.S: Likewise.
25018         * config/m32c/m32c-lib2-trapv.c: Likewise.
25019         * config/m32c/m32c-lib2.c: Likewise.
25020         * config/m32r/initfini.c: Likewise.
25021         * config/m68hc11/larith.asm: Likewise.
25022         * config/m68hc11/m68hc11-crt0.S: Likewise.
25023         * config/m68k/cf.md: Likewise.
25024         * config/m68k/crti.s: Likewise.
25025         * config/m68k/crtn.s: Likewise.
25026         * config/m68k/lb1sf68.asm: Likewise.
25027         * config/m68k/linux-unwind.h: Likewise.
25028         * config/mcore/crti.asm: Likewise.
25029         * config/mcore/crtn.asm: Likewise.
25030         * config/mcore/lib1.asm: Likewise.
25031         * config/mips/linux-unwind.h: Likewise.
25032         * config/mips/loongson.h: Likewise.
25033         * config/mips/mips16.S: Likewise.
25034         * config/mmix/crti.asm: Likewise.
25035         * config/mmix/crtn.asm: Likewise.
25036         * config/pa/fptr.c: Likewise.
25037         * config/pa/hpux-unwind.h: Likewise.
25038         * config/pa/lib2funcs.asm: Likewise.
25039         * config/pa/linux-atomic.c: Likewise.
25040         * config/pa/linux-unwind.h: Likewise.
25041         * config/pa/milli64.S: Likewise.
25042         * config/pa/quadlib.c: Likewise.
25043         * config/pa/stublib.c: Likewise.
25044         * config/picochip/libgccExtras/adddi3.asm: Likewise.
25045         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
25046         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
25047         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
25048         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
25049         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
25050         * config/picochip/libgccExtras/divmod15.asm: Likewise.
25051         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
25052         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
25053         * config/picochip/libgccExtras/longjmp.asm: Likewise.
25054         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
25055         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
25056         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
25057         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
25058         * config/picochip/libgccExtras/setjmp.asm: Likewise.
25059         * config/picochip/libgccExtras/subdi3.asm: Likewise.
25060         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
25061         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
25062         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
25063         * config/rs6000/750cl.h: Likewise.
25064         * config/rs6000/altivec.h: Likewise.
25065         * config/rs6000/biarch64.h: Likewise.
25066         * config/rs6000/crtresfpr.asm: Likewise.
25067         * config/rs6000/crtresgpr.asm: Likewise.
25068         * config/rs6000/crtresxfpr.asm: Likewise.
25069         * config/rs6000/crtresxgpr.asm: Likewise.
25070         * config/rs6000/crtsavfpr.asm: Likewise.
25071         * config/rs6000/crtsavgpr.asm: Likewise.
25072         * config/rs6000/darwin-asm.h: Likewise.
25073         * config/rs6000/darwin-fallback.c: Likewise.
25074         * config/rs6000/darwin-fpsave.asm: Likewise.
25075         * config/rs6000/darwin-ldouble.c: Likewise.
25076         * config/rs6000/darwin-tramp.asm: Likewise.
25077         * config/rs6000/darwin-unwind.h: Likewise.
25078         * config/rs6000/darwin-vecsave.asm: Likewise.
25079         * config/rs6000/darwin-world.asm: Likewise.
25080         * config/rs6000/e500crtres32gpr.asm: Likewise.
25081         * config/rs6000/e500crtres64gpr.asm: Likewise.
25082         * config/rs6000/e500crtres64gprctr.asm: Likewise.
25083         * config/rs6000/e500crtrest32gpr.asm: Likewise.
25084         * config/rs6000/e500crtrest64gpr.asm: Likewise.
25085         * config/rs6000/e500crtresx32gpr.asm: Likewise.
25086         * config/rs6000/e500crtresx64gpr.asm: Likewise.
25087         * config/rs6000/e500crtsav32gpr.asm: Likewise.
25088         * config/rs6000/e500crtsav64gpr.asm: Likewise.
25089         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
25090         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
25091         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
25092         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
25093         * config/rs6000/eabi-ci.asm: Likewise.
25094         * config/rs6000/eabi-cn.asm: Likewise.
25095         * config/rs6000/eabi.asm: Likewise.
25096         * config/rs6000/linux-unwind.h: Likewise.
25097         * config/rs6000/linux64.h: Likewise.
25098         * config/rs6000/paired.h: Likewise.
25099         * config/rs6000/paired.md: Likewise.
25100         * config/rs6000/ppc64-fp.c: Likewise.
25101         * config/rs6000/ppu_intrinsics.h: Likewise.
25102         * config/rs6000/rs6000.h: Likewise.
25103         * config/rs6000/si2vmx.h: Likewise.
25104         * config/rs6000/sol-ci.asm: Likewise.
25105         * config/rs6000/sol-cn.asm: Likewise.
25106         * config/rs6000/spe.h: Likewise.
25107         * config/rs6000/spu2vmx.h: Likewise.
25108         * config/rs6000/sysv4.h: Likewise.
25109         * config/rs6000/tramp.asm: Likewise.
25110         * config/rs6000/vec_types.h: Likewise.
25111         * config/s390/linux-unwind.h: Likewise.
25112         * config/s390/tpf-unwind.h: Likewise.
25113         * config/score/crti.asm: Likewise.
25114         * config/score/crtn.asm: Likewise.
25115         * config/sh/crt1.asm: Likewise.
25116         * config/sh/crti.asm: Likewise.
25117         * config/sh/crtn.asm: Likewise.
25118         * config/sh/divtab-sh4-300.c: Likewise.
25119         * config/sh/divtab-sh4.c: Likewise.
25120         * config/sh/divtab.c: Likewise.
25121         * config/sh/lib1funcs-4-300.asm: Likewise.
25122         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
25123         * config/sh/lib1funcs.asm: Likewise.
25124         * config/sh/lib1funcs.h: Likewise.
25125         * config/sh/linux-atomic.asm: Likewise.
25126         * config/sh/linux-unwind.h: Likewise.
25127         * config/sh/shmedia.h: Likewise.
25128         * config/sh/sshmedia.h: Likewise.
25129         * config/sh/ushmedia.h: Likewise.
25130         * config/sparc/crtfastmath.c: Likewise.
25131         * config/sparc/linux-unwind.h: Likewise.
25132         * config/sparc/sol2-c1.asm: Likewise.
25133         * config/sparc/sol2-ci.asm: Likewise.
25134         * config/sparc/sol2-cn.asm: Likewise.
25135         * config/spu/divmodti4.c: Likewise.
25136         * config/spu/divv2df3.c: Likewise.
25137         * config/spu/float_disf.c: Likewise.
25138         * config/spu/float_unsdidf.c: Likewise.
25139         * config/spu/float_unsdisf.c: Likewise.
25140         * config/spu/float_unssidf.c: Likewise.
25141         * config/spu/mfc_multi_tag_release.c: Likewise.
25142         * config/spu/mfc_multi_tag_reserve.c: Likewise.
25143         * config/spu/mfc_tag_release.c: Likewise.
25144         * config/spu/mfc_tag_reserve.c: Likewise.
25145         * config/spu/mfc_tag_table.c: Likewise.
25146         * config/spu/multi3.c: Likewise.
25147         * config/spu/spu_internals.h: Likewise.
25148         * config/spu/spu_intrinsics.h: Likewise.
25149         * config/spu/spu_mfcio.h: Likewise.
25150         * config/spu/vec_types.h: Likewise.
25151         * config/spu/vmx2spu.h: Likewise.
25152         * config/stormy16/stormy16-lib2.c: Likewise.
25153         * config/svr4.h: Likewise.
25154         * config/sync.c: Likewise.
25155         * config/v850/lib1funcs.asm: Likewise.
25156         * config/vxlib-tls.c: Likewise.
25157         * config/vxlib.c: Likewise.
25158         * config/vxworks-dummy.h: Likewise.
25159         * config/xtensa/crti.asm: Likewise.
25160         * config/xtensa/crtn.asm: Likewise.
25161         * config/xtensa/ieee754-df.S: Likewise.
25162         * config/xtensa/ieee754-sf.S: Likewise.
25163         * config/xtensa/lib1funcs.asm: Likewise.
25164         * config/xtensa/lib2funcs.S: Likewise.
25165         * config/xtensa/linux-unwind.h: Likewise.
25166         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
25167         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
25168         * coretypes.h: Likewise.
25169         * crtstuff.c: Likewise.
25170         * defaults.h: Likewise.
25171         * dwarf2.h: Likewise.
25172         * emutls.c: Likewise.
25173         * gbl-ctors.h: Likewise.
25174         * gcov-io.h: Likewise.
25175         * ginclude/float.h: Likewise.
25176         * ginclude/iso646.h: Likewise.
25177         * ginclude/stdarg.h: Likewise.
25178         * ginclude/stdbool.h: Likewise.
25179         * ginclude/stddef.h: Likewise.
25180         * ginclude/stdfix.h: Likewise.
25181         * ginclude/stdint-gcc.h: Likewise.
25182         * ginclude/tgmath.h: Likewise.
25183         * gthr-aix.h: Likewise.
25184         * gthr-dce.h: Likewise.
25185         * gthr-gnat.c: Likewise.
25186         * gthr-gnat.h: Likewise.
25187         * gthr-lynx.h: Likewise.
25188         * gthr-mipssde.h: Likewise.
25189         * gthr-nks.h: Likewise.
25190         * gthr-posix.c: Likewise.
25191         * gthr-posix.h: Likewise.
25192         * gthr-posix95.h: Likewise.
25193         * gthr-rtems.h: Likewise.
25194         * gthr-single.h: Likewise.
25195         * gthr-solaris.h: Likewise.
25196         * gthr-tpf.h: Likewise.
25197         * gthr-vxworks.h: Likewise.
25198         * gthr-win32.h: Likewise.
25199         * gthr.h: Likewise.
25200         * libgcc2.c: Likewise.
25201         * libgcc2.h: Likewise.
25202         * libgcov.c: Likewise.
25203         * tsystem.h: Likewise.
25204         * typeclass.h: Likewise.
25205         * unwind-c.c: Likewise.
25206         * unwind-compat.h: Likewise.
25207         * unwind-dw2-fde-compat.c: Likewise.
25208         * unwind-dw2-fde-darwin.c: Likewise.
25209         * unwind-dw2-fde-glibc.c: Likewise.
25210         * unwind-dw2-fde.c: Likewise.
25211         * unwind-dw2-fde.h: Likewise.
25212         * unwind-dw2.c: Likewise.
25213         * unwind-dw2.h: Likewise.
25214         * unwind-generic.h: Likewise.
25215         * unwind-pe.h: Likewise.
25216         * unwind-sjlj.c: Likewise.
25217         * unwind.inc: Likewise.
25218         * config/arm/neon-gen.ml: Change generated copyright header to
25219         refer to version 3 of the GNU General Public License with
25220         version 3.1 of the GCC Runtime Library Exception and to point
25221         readers at the COPYING3 and COPYING3.RUNTIME files and the
25222         FSF's license web page.
25223         * config/arm/arm_neon.h: Regenerate.
25224
25225 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
25226
25227         * config/cris/cris.md: Change copyright header to refer to version
25228         3 of the GNU General Public License.
25229         * doc/install.texi2html: Change copyright header to refer to version
25230         3 of the GNU General Public License and to point readers at the
25231         COPYING3 file and the FSF's license web page.
25232         * config/vax/linux.h: Likewise.
25233
25234 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
25235
25236         * config/i386/i386.md (cmpcc): New.
25237         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
25238         (sync_compare_and_swap_cc*): Delete.
25239
25240         * config/s390/s390.c (s390_compare_emitted): Remove.
25241         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
25242         s390_compare_emitted used to be handled.  Assert that modes match.
25243         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
25244         refer to sync_compare_and_swap_ccsi.
25245         * config/s390/s390.h (s390_compare_emitted): Remove.
25246         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
25247         instead of s390_compare_emitted.
25248         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
25249         instead of s390_compare_emitted.
25250         * config/s390/s390.md (cmpcc): New.
25251         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
25252         CC_REGNUM, do not pretend it's set.
25253         (sync_compare_and_swap_cc*): Delete.
25254         * config/s390/predicates.md (cc_reg_operand): New.
25255
25256         * expr.c (sync_compare_and_swap_cc): Delete.
25257         * optabs.h (sync_compare_and_swap_cc): Delete.
25258         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
25259         is being used with can_compare_p.
25260         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
25261         (find_cc_set): New.
25262         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
25263         look for a MODE_CC set instead.  Use emit_store_flag.
25264         (expand_compare_and_swap_loop): Likewise, with some additional
25265         complication to avoid a force_reg when useless.  Use
25266         emit_cmp_and_jump_insns.
25267         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
25268         * doc/md.texi (sync_compare_and_swap_cc): Merge with
25269         sync_compare_and_swap documentation.
25270
25271 2009-04-09  Jan Hubicka  <jh@suse.cz>
25272
25273         * except.c (find_prev_try): Break out from ....
25274         (duplicate_eh_regions): ... here; properly update prev_try pointers
25275         when duplication part of tree.
25276         (dump_eh_tree): Improve dumping.
25277         (verify_eh_region): New.
25278         (verify_eh_tree): Use it.
25279
25280 2009-04-06  Richard Guenther  <rguenther@suse.de>
25281
25282         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
25283         &ARRAY addresses by adjusting their types and prepending
25284         a conversion.
25285         * tree-cfg.c (verify_gimple_assign_single): Verify that
25286         addresses are correct.
25287
25288 2009-04-09  Richard Guenther  <rguenther@suse.de>
25289
25290         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
25291         indices into an array reference if possible.
25292         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
25293         Fold POINTER_PLUS_EXPR statements with invariant address.
25294
25295 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
25296
25297         PR target/39634
25298         * config.gcc (powerpc64-*-linux*): Always build biarch.
25299
25300 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
25301
25302         PR c/39613
25303         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
25304         it and pedwarn if this results in an INTEGER_CST.
25305
25306 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25307
25308         * doc/install.texi: Update minimum GMP version.  Remove obsolete
25309         text in MPFR section.
25310
25311 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
25312
25313         * dwarf2out.c (class_scope_p): New static inline.
25314         (class_or_namespace_scope_p): Use it.
25315         (gen_variable_die): Use DW_TAG_member tag for static data member
25316         declarations instead of DW_TAG_variable.
25317
25318         PR middle-end/39573
25319         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
25320         variables.
25321
25322 2009-04-08  Richard Guenther  <rguenther@suse.de>
25323
25324         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
25325         valueize random data.
25326
25327 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
25328
25329         * config.gcc (aix tm_file):  Add aix-stdint.h.
25330         (aix tm clause use_gcc_stdint):  Set to wrap.
25331         * config/rs6000/aix-stdint.h:  New file.
25332
25333 2009-04-08  Richard Guenther  <rguenther@suse.de>
25334
25335         PR middle-end/36291
25336         * tree-dfa.c (add_referenced_var): Do not recurse into
25337         global initializers.
25338         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
25339         exposed variables.
25340         (fold_const_aggregate_ref): Likewise.
25341
25342 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
25343
25344         * recog.c (ordered_comparison_operator): New.
25345         * gensupport.c (std_preds): Add it.
25346         * doc/md.texi (Machine-Independent Predicates): Document it.
25347
25348 2009-04-08  Jan Hubicka  <jh@suse.cz>
25349
25350         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
25351         * function.h (rtl_eh): Remove exception_handler_label_map.
25352         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
25353         remove_exception_handler_label, for_each_eh_label_1): Remove.
25354         (rtl_remove_unreachable_regions): Remove.
25355         (convert_from_eh_region_ranges): Do not remove unreachable regions.
25356         (find_exception_handler_labels): Don't build the hashtable.
25357         (maybe_remove_eh_handler): Remove.
25358         (for_each_eh_label): Rewrite to walk the tree.
25359         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
25360         * except.h (maybe_remove_eh_handler): Remove.
25361         * passes.c (init_optimization_passes): Schedule second EH cleanup
25362         before out-of-ssa.
25363         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
25364         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
25365
25366 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
25367
25368         * genoutput.c (validate_optab_operands): New.
25369         (gen_insn, gen_expand): Call it.
25370
25371         * genflags.c (gen_insn): Detect misused iterators.
25372         (main): Pass line_no to gen_insn, exit with status 1 on error.
25373
25374         * genextract.c (line_no): Make global.
25375         (VEC_safe_set_locstr): Change assertion to error message.
25376         (main): Exit with status 1 on error.
25377
25378 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
25379
25380         PR c/39614
25381         PR c/39673
25382         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
25383         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
25384         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
25385         * c-convert.c (convert): Do not call fold on results of conversion
25386         functions when the result is a C_MAYBE_CONST_EXPR.
25387         * c-parser.c (c_parser_postfix_expression): Do not fold condition
25388         of __builtin_choose_expr.
25389         * c-typeck.c (remove_c_maybe_const_expr): New.
25390         (build_unary_op, build_conditional_expr, build_compound_expr,
25391         build_binary_op, c_objc_common_truthvalue_conversion): Call
25392         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
25393         integer operands.
25394
25395 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
25396
25397         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
25398         CODE to produce a new one. Add a prototype to use fold_convert_const
25399
25400 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
25401
25402         PR bootstrap/39660
25403         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
25404         mix declarations and code.
25405
25406 2009-04-08  Ben Elliston  <bje@au.ibm.com>
25407
25408         * gcc.c: Replace `CC' with `GCC' throughout.
25409
25410 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
25411
25412         * doc/invoke.texi: Document Atom support.
25413
25414 2009-04-07  Jason Merrill  <jason@redhat.com>
25415
25416         PR c++/25185
25417         * c-common.h, c-common.c: Add flag_pretty_templates.
25418         * c-opts.c (c_common_handle_option): Set it.
25419         * c.opt: Add -fno-pretty-templates.
25420         * doc/invoke.texi (C++ Dialect Options): Likewise.
25421
25422 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
25423
25424         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
25425         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
25426         (ia64_expand_builtin): Likewise.
25427
25428 2009-04-07  Martin Jambor  <mjambor@suse.cz>
25429
25430         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
25431         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
25432         ADDR_EXPRS are include too.
25433
25434 2009-04-07  Richard Guenther  <rguenther@suse.de>
25435
25436         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
25437         decls are only used if passes as parameters or if they are
25438         local statics and the call is not to a builtin.
25439         (call_may_clobber_ref_p_1): Likewise.
25440
25441 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
25442
25443         * expr.c (do_store_flag): Remove last argument.  Simplify code
25444         to avoid duplication of tests already done by can_compare_p.
25445         (expand_expr_real_1): Adjust caller.
25446
25447 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
25448
25449         * optabs.c (can_compare_p): Test the predicate of a
25450         cbranch and cstore pattern.
25451
25452 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
25453
25454         * expr.c (convert_move): Use emit_store_flag instead of
25455         "emulating" it.
25456
25457 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
25458
25459         * config/i386/i386.c (ix86_compare_emitted): Remove.
25460         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
25461         ix86_compare_op0 like ix86_compare_emitted used to be handled.
25462         * config/i386/i386.h (ix86_compare_emitted): Remove.
25463         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
25464         instead of ix86_compare_emitted.
25465         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
25466
25467 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
25468
25469         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
25470         Add t-sysroot-suffix to tmake_file.
25471         * config/print-sysroot-suffix.sh: New file.
25472         * config/t-sysroot-suffix: New file.
25473
25474 2009-04-07  Ben Elliston  <bje@au.ibm.com>
25475
25476         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
25477         as the latter produces a warning when the target does not support
25478         infinity.
25479
25480 2009-04-07  Ben Elliston  <bje@au.ibm.com>
25481
25482         * dfp.c: Replace type punning assignments with memcpy throughout.
25483         * Makefile.in (dfp.o-warn): Remove.
25484
25485 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
25486
25487         PR target/39634
25488         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
25489         Include soft-fp/t-softfp after rs6000/t-linux64.
25490
25491 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
25492
25493         * stor-layout.c (set_sizetype): Use the full precision of their
25494         machine mode for bitsize types.
25495
25496 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
25497
25498         * config/i386/i386.md: Revert 2 accidental checkins.
25499
25500 2009-04-06  Joey Ye  <joey.ye@intel.com>
25501             Xuepeng Guo  <xuepeng.guo@intel.com>
25502             H.J. Lu  <hongjiu.lu@intel.com>
25503
25504         Atom pipeline model, tuning and insn selection.
25505         * config.gcc (atom): Add atom config options and target.
25506
25507         * config/i386/atom.md: New.
25508
25509         * config/i386/i386.c (atom_cost): New cost.
25510         (m_ATOM): New macro flag.
25511         (initial_ix86_tune_features): Set m_ATOM.
25512         (x86_accumulate_outgoing_args): Likewise.
25513         (x86_arch_always_fancy_math_387): Likewise.
25514         (processor_target): Add Atom cost.
25515         (cpu_names): Add Atom cpu name.
25516         (override_options): Set Atom ISA.
25517         (ix86_issue_rate): New case PROCESSOR_ATOM.
25518         (ix86_adjust_cost): Likewise.
25519
25520         * config/i386/i386.h (TARGET_ATOM): New target macro.
25521         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
25522         (TARGET_OPT_AGU): New target option.
25523         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
25524         (processor_type): Add PROCESSOR_ATOM.
25525
25526         * config/i386/i386.md (cpu): Add new value "atom".
25527         (use_carry, movu): New attr.
25528         (atom.md): Include atom.md.
25529         (adddi3_carry_rex64): Set attr "use_carry".
25530         (addqi3_carry): Likewise.
25531         (addhi3_carry): Likewise.
25532         (addsi3_carry): Likewise.
25533         (*addsi3_carry_zext): Likewise.
25534         (subdi3_carry_rex64): Likewise.
25535         (subqi3_carry): Likewise.
25536         (subhi3_carry): Likewise.
25537         (subsi3_carry): Likewise.
25538         (x86_movdicc_0_m1_rex64): Likewise.
25539         (*x86_movdicc_0_m1_se): Likewise.
25540         (x86_movsicc_0_m1): Likewise.
25541         (*x86_movsicc_0_m1_se): Likewise.
25542         (*adddi_1_rex64): Emit add insn as much as possible.
25543         (*addsi_1): Likewise.
25544         (return_internal): Set atom_unit.
25545         (return_internal_long): Likewise.
25546         (return_pop_internal): Likewise.
25547         (*rcpsf2_sse): Set atom_sse_attr attr.
25548         (*qrt<mode>2_sse): Likewise.
25549         (*prefetch_sse): Likewise.
25550
25551         * config/i386/i386-c.c (ix86_target_macros_internal): New case
25552         PROCESSOR_ATOM.
25553         (ix86_target_macros_internal): Likewise.
25554
25555         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
25556         (*prefetch_sse_rex): Likewise.
25557         (sse_rcpv4sf2): Likewise.
25558         (sse_vmrcpv4sf2): Likewise.
25559         (sse_sqrtv4sf2): Likewise.
25560         (<sse>_vmsqrt<mode>2): Likewise.
25561         (sse_ldmxcsr): Likewise.
25562         (sse_stmxcsr): Likewise.
25563         (*sse_sfence): Likewise.
25564         (sse2_clflush): Likewise.
25565         (*sse2_mfence): Likewise.
25566         (*sse2_lfence): Likewise.
25567         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
25568         (<sse>_movup<ssemodesuffixf2c>): Likewise.
25569         (avx_movdqu<avxmodesuffix>): Likewise.
25570         (avx_lddqu<avxmodesuffix>): Likewise.
25571         (sse2_movntv2di): Change attr "type" to "ssemov".
25572         (sse2_movntsi): Likewise.
25573         (rsqrtv8sf2): Change attr "type" to "sseadd".
25574         (sse3_addsubv2df3): Set attr "atom_unit".
25575         (sse3_h<plusminus_insn>v4sf3): Likewise.
25576         (*sse2_pmaddwd): Likewise.
25577         (*vec_extractv2di_1_rex64): Likewise.
25578         (*vec_extractv2di_1_avx): Likewise.
25579         (sse2_psadbw): Likewise.
25580         (ssse3_phaddwv8hi3): Likewise.
25581         (ssse3_phaddwv4hi3): Likewise.
25582         (ssse3_phadddv4si3): Likewise.
25583         (ssse3_phadddv2si3): Likewise.
25584         (ssse3_phaddswv8hi3): Likewise.
25585         (ssse3_phaddswv4hi3): Likewise.
25586         (ssse3_phsubwv8hi3): Likewise.
25587         (ssse3_phsubwv4hi3): Likewise.
25588         (ssse3_phsubdv4si3): Likewise.
25589         (ssse3_phsubdv2si3): Likewise.
25590         (ssse3_phsubswv8hi3): Likewise.
25591         (ssse3_phsubswv4hi3): Likewise.
25592         (ssse3_pmaddubsw128): Likewise.
25593         (sse3_pmaddubsw: Likewise.
25594         (ssse3_palignrti): Likewise.
25595         (ssse3_palignrdi): Likewise.
25596
25597 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
25598
25599         * doc/install.texi (Specific): Fix two cross-references to MinGW.
25600
25601 2009-04-06  Richard Guenther  <rguenther@suse.de>
25602
25603         PR tree-optimization/28868
25604         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
25605         of which PHI results we inserted.
25606         (insert_into_preds_of_block): Record inserted PHIs.
25607         (eliminate): Eliminate redundant PHI nodes.
25608         (init_pre): Init inserted_phi_names.
25609
25610 2009-04-06  Richard Guenther  <rguenther@suse.de>
25611
25612         PR tree-optimization/39643
25613         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
25614         IMAGPART_EXPRs of complex constants.
25615         (execute_fold_all_builtins): If we folded a call queue
25616         TODO_update_address_taken.
25617
25618 2009-04-06  Jan Hubicka  <jh@suse.cz>
25619
25620         PR middle-end/39659
25621         * except.c (remove_unreachable_regions): Propagate may_contain_throw
25622         flag.
25623
25624 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
25625
25626         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
25627         delay slot.
25628         (ic_invalidate_array): Likewise.
25629
25630 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
25631
25632         * calls.c (emit_library_call_value_1): Fix a problem with parameter
25633         alignment for library calls.
25634
25635 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
25636
25637         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
25638         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
25639         * config/i386/mingw-stdint.h:  New file.
25640
25641 2009-04-05  Richard Guenther  <rguenther@suse.de>
25642
25643         PR tree-optimization/39648
25644         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
25645         our &A vs. &A[0] IL deficiencies.
25646
25647 2009-04-04  Jan Hubicka  <jh@suse.cz>
25648
25649         * except.c (sjlj_find_directly_reachable_regions): Be ready for
25650         removed toplevel regions.
25651         (sjlj_mark_call_sites): Likewise.
25652
25653 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
25654
25655         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
25656         (cygwin tm clause use_gcc_stdint):  Set to wrap.
25657         * config/i386/cygwin-stdint.h:  New file.
25658
25659 2009-04-04  Richard Guenther  <rguenther@suse.de>
25660
25661         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
25662         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
25663         single-argument PHIs if we are in loop-closed SSA form.
25664         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
25665         for the pre-condition.
25666         (slpeel_tree_peel_loop_to_edge): Likewise.
25667         (vect_build_loop_niters): Take an optional sequence to append stmts.
25668         (vect_generate_tmps_on_preheader): Likewise.
25669         (vect_do_peeling_for_loop_bound): Take extra guards for the
25670         pre-condition.
25671         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
25672         the cost model check.
25673         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
25674         guards if we are going to peel.  Do not apply versioning in that case.
25675         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
25676         (vect_do_peeling_for_loop_bound): Likewise.
25677         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
25678         loop bound only record extra pre-conditions, do not apply loop
25679         versioning.
25680
25681 2009-04-04  Richard Guenther  <rguenther@suse.de>
25682
25683         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
25684         renaming code.
25685
25686 2009-04-04  Jan Hubicka  <jh@suse.cz>
25687
25688         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
25689         last_basic_block for size of bb->index indexed array.
25690         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
25691         compute_out, link_btr_uses, build_btr_def_use_webs,
25692         build_btr_def_use_webs, migrate_btr_defs): Likewise.
25693
25694 2009-04-04  Jan Hubicka  <jh@suse.cz>
25695
25696         * except.c (remove_eh_handler_and_replace): Break out from ...
25697         (remove_eh_handler): ... here.
25698         (bring_to_root): New function.
25699         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
25700         handled ones, bring others to root of tree.
25701
25702 2009-04-04  Jan Hubicka  <jh@suse.cz>
25703
25704         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
25705         (all_phis_safe_to_merge): New function.
25706         (update_info): New structure.
25707         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
25708         (cleanup_empty_eh): Update SSA if possible.
25709
25710 2009-04-04  Richard Guenther  <rguenther@suse.de>
25711
25712         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
25713         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
25714         (append_vuse): Likewise.
25715
25716 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
25717
25718         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
25719         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
25720         instead of REG_UNSAVED for DW_CFA_undefined.
25721         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
25722         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
25723         outermost frame.
25724
25725 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
25726
25727         PR target/39501
25728         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
25729
25730 2009-04-04  Richard Guenther  <rguenther@suse.de>
25731
25732         PR tree-optimization/8781
25733         PR tree-optimization/37892
25734         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
25735         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
25736         (valueize_refs): Call it for *& valueizations.
25737         (shared_reference_ops_from_ref): Rename to ...
25738         (valueize_shared_reference_ops_from_ref): ... this and valueize.
25739         (shared_reference_ops_from_call): Rename to ...
25740         (valueize_shared_reference_ops_from_call): ... this and valueize.
25741         (vn_reference_lookup): Update.
25742         (visit_reference_op_call): Likewise.
25743         * tree-ssa-pre.c (phi_translate_1): Fold *&.
25744         (eliminate): Value-replace the call address in call statements.
25745
25746 2009-04-04  Richard Guenther  <rguenther@suse.de>
25747
25748         PR tree-optimization/39636
25749         * tree-ssa-forwprop.c
25750         (forward_propagate_addr_into_variable_array_index): Check for
25751         GIMPLE_ASSIGN before accessing the rhs code.
25752
25753 2009-04-03  Jason Merrill  <jason@redhat.com>
25754
25755         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
25756
25757 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
25758
25759         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
25760         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
25761         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
25762         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
25763         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
25764         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
25765         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
25766         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
25767         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
25768         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
25769         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
25770         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
25771         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
25772         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
25773         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
25774         Use fr_reg_or_fp01_operand instead of fr_register_operand
25775
25776         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
25777         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
25778         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
25779
25780 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
25781
25782         PR rtl-optimization/39607
25783         PR rtl-optimization/39631
25784
25785         Revert:
25786
25787         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
25788         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
25789         instead of DF_LR_OUT.
25790         * ira-lives.c (process_bb_node_lives): Ditto.
25791         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
25792         instead of DF_LR_{OUT,IN}.
25793         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
25794         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
25795
25796 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
25797
25798         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
25799         (execute_lower_omp): Always run but take the short way out if -fopenmp
25800         is not given.
25801         (gate_lower_omp): Remove, forcing the pass manager to always run the
25802         pass and always set PROP_gimple_lomp.
25803         (pass_lower_omp): Remove gate function.
25804         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
25805         PROP_trees.  Instead, require it.
25806         * ipa-cp.c (pass_ipa_cp): Likewise.
25807         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
25808         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
25809         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
25810         and PROP_gimple_leh.
25811
25812 2009-04-03  Richard Guenther  <rguenther@suse.de>
25813
25814         PR middle-end/13146
25815         PR tree-optimization/23940
25816         PR tree-optimization/33237
25817         PR middle-end/33974
25818         PR middle-end/34093
25819         PR tree-optimization/36201
25820         PR tree-optimization/36230
25821         PR tree-optimization/38049
25822         PR tree-optimization/38207
25823         PR tree-optimization/38230
25824         PR tree-optimization/38301
25825         PR tree-optimization/38585
25826         PR middle-end/38895
25827         PR tree-optimization/38985
25828         PR tree-optimization/39299
25829         * tree-ssa-structalias.h: Remove.
25830         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
25831         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
25832         (struct vuse_element_d): Remove.
25833         (struct vuse_vec_d): Likewise.
25834         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
25835         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
25836         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
25837         VUSE_ELEMENT_VAR): Likewise.
25838         (struct voptype_d): Likewise.
25839         (NUM_VOP_FREE_BUCKETS): Likewise.
25840         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
25841         (struct stmt_operands_d): Remove.
25842         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
25843         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
25844         VDEF_NUM, VDEF_VECT): Likewise.
25845         (copy_virtual_operands): Remove.
25846         (operand_build_cmp): Likewise.
25847         (create_ssa_artificial_load_stmt): Likewise.
25848         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
25849         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
25850         vuse_index and mayuse_index members.  Pack and move done and iter_type
25851         members to the front.
25852         (SSA_OP_VMAYUSE): Remove.
25853         (SSA_OP_VIRTUAL_USES): Adjust.
25854         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
25855         (unlink_stmt_vdef): Declare.
25856         (add_to_addressable_set): Remove.
25857         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
25858         (vrp_visit_stmt): Likewise.
25859         * doc/tree-ssa.texi (Alias analysis): Update.
25860         * doc/invoke.texi (max-aliased-vops): Remove docs.
25861         (avg-aliased-vops): Likewise.
25862         * tree-into-ssa.c (syms_to_rename): Remove.
25863         (need_to_update_vops_p): Likewise.
25864         (need_to_initialize_update_ssa_p): Rename to ...
25865         (update_ssa_initialized_fn): ... this.  Track function we are
25866         initialized for.
25867         (symbol_marked_for_renaming): Simplify.
25868         (add_new_name_mapping): Do not set need_to_update_vops_p.
25869         (dump_currdefs): Use SYMS_TO_RENAME.
25870         (rewrite_update_stmt): Always walk all uses/defs.
25871         (dump_update_ssa): Adjust.
25872         (init_update_ssa): Take function argument.  Track what we are
25873         initialized for.
25874         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
25875         (create_new_def_for): Initialize for cfun, assert we are initialized
25876         for cfun.
25877         (mark_sym_for_renaming): Simplify.
25878         (mark_set_for_renaming): Do not initialize update-ssa.
25879         (need_ssa_update_p): Simplify.  Take function argument.
25880         (name_mappings_registered_p): Assert we ask for the correct function.
25881         (name_registered_for_update_p): Likewise.
25882         (ssa_names_to_replace): Likewise.
25883         (release_ssa_name_after_update_ssa): Likewise.
25884         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
25885         (dump_decl_set): Do not print a newline.
25886         (debug_decl_set): Do it here.
25887         (dump_update_ssa): And here.
25888         * tree-ssa-loop-im.c (move_computations): Adjust.
25889         (movement_possibility): Likewise.
25890         (determine_max_movement): Likewise.
25891         (gather_mem_refs_stmt): Likewise.
25892         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
25893         or NAME_MEMORY_TAG.
25894         * tree-complex.c (update_all_vops): Remove.
25895         (expand_complex_move): Adjust.
25896         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
25897         Simplify test for memory referencing statement.  Exclude
25898         non-invariant ADDR_EXPRs.
25899         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
25900         * tree-loop-distribution.c (generate_memset_zero): Adjust.
25901         (rdg_flag_uses): Likewise.
25902         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
25903         related code.
25904         (tree_optimize_tail_calls_1): Also split the
25905         edge from the entry block if we have degenerate PHI nodes in
25906         the first basic block.
25907         * tree.c (init_ttree): Remove memory-tag related code.
25908         (tree_code_size): Likewise.
25909         (tree_node_structure): Likewise.
25910         (build7_stat): Re-write to be build6_stat.
25911         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
25912         (SSA_VAR_P): Adjust.
25913         (struct tree_memory_tag): Remove.
25914         (struct tree_memory_partition_tag): Likewise.
25915         (union tree_node): Adjust.
25916         (build7): Re-write to be build6.
25917         * tree-pass.h (pass_reset_cc_flags): Remove.
25918         (TODO_update_address_taken): New flag.
25919         (pass_simple_dse): Remove.
25920         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
25921         * params.h (MAX_ALIASED_VOPS): Remove.
25922         (AVG_ALIASED_VOPS): Likewise.
25923         * omp-low.c (expand_omp_taskreg): Update SSA form.
25924         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
25925         aliases the lhs in a copy stmt.
25926         * tree-ssa-dse.c (struct address_walk_data): Remove.
25927         (memory_ssa_name_same): Likewise.
25928         (memory_address_same): Likewise.
25929         (get_kill_of_stmt_lhs): Likewise.
25930         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
25931         unused stores.  Look through PHI nodes into post-dominated regions.
25932         (dse_optimize_stmt): Simplify.  Properly remove stores.
25933         (tree_ssa_dse): Compute dominators.
25934         (execute_simple_dse): Remove.
25935         (pass_simple_dse): Likewise.
25936         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
25937         gimple_loaded_syms and gimple_stored_syms computation.
25938         * toplev.c (dump_memory_report): Dump alias and pta stats.
25939         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
25940         (vn_reference_eq): Likewise.
25941         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
25942         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
25943         valueize_vuses): Remove.
25944         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
25945         (get_def_ref_stmt_vuse): ... this.
25946         (vn_reference_lookup_2): New function.
25947         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
25948         walking equivalent vuses.  Simplify.
25949         (vn_reference_lookup): Likewise.
25950         (vn_reference_insert): Likewise.
25951         (vn_reference_insert_pieces): Likewise.
25952         (visit_reference_op_call): Simplify.
25953         (visit_reference_op_load): Likewise.
25954         (visit_reference_op_store): Likewise.
25955         (init_scc_vn): Remove shared_lookup_vuses initialization.
25956         (free_scc_vn): Remove shared_lookup_vuses freeing.
25957         (sort_vuses, sort_vuses_heap): Remove.
25958         (get_ref_from_reference_ops): Export.
25959         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
25960         vector with single vuse pointer.
25961         (vn_reference_lookup_pieces, vn_reference_lookup,
25962         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
25963         (shared_vuses_from_stmt): Remove.
25964         (get_ref_from_reference_ops): Declare.
25965         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
25966         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
25967         memory-tag related code.
25968         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
25969         (likely_value): Add comment, skip static-chain of call statements.
25970         (surely_varying_stmt_p): Adjust.
25971         (gimplify_and_update_call_from_tree): Likewise.
25972         (execute_fold_all_builtins): Do not rebuild alias info.
25973         (gimplify_and_update_call_from_tree): Properly update VOPs.
25974         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
25975         (copy_ref_info): Remove memory-tag related code.
25976         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
25977         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
25978         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
25979         computation.
25980         * tree-ssa-dom.c (gimple_p): Remove typedef.
25981         (eliminate_redundant_computations): Adjust.
25982         (record_equivalences_from_stmt): Likewise.
25983         (avail_expr_hash): Likewise.
25984         (avail_expr_eq): Likewise.
25985         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
25986         (stmt_makes_single_load): Likewise.
25987         (stmt_makes_single_store): Likewise.
25988         * tree-ssa-alias.c: Rewrite completely.
25989         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
25990         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
25991         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
25992         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
25993         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
25994         Remove public functions.
25995         (pass_reset_cc_flags): Remove.
25996         (pass_build_alias): Move ...
25997         * tree-ssa-structalias.c (pass_build_alias): ... here.
25998         * tree-ssa-alias.c (may_be_aliased): Move ...
25999         * tree-flow-inline.h (may_be_aliased): ... here.
26000         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
26001         count_uses_and_derefs): Move ...
26002         * gimple.c: ... here.
26003         * gimple.h (count_uses_and_derefs): Declare.
26004         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
26005         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
26006         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
26007         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
26008         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
26009         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
26010         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
26011         New functions.
26012         * tree-dfa.c (refs_may_alias_p): Move ...
26013         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
26014         * tree-ssa-alias.h: New file.
26015         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
26016         (statement_sink_location): Likewise.
26017         * opts.c (decode_options): Do not adjust max-aliased-vops or
26018         avg-aliased-vops values.
26019         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
26020         (TV_CALL_CLOBBER): Likewise.
26021         (TV_FLOW_SENSITIVE): Likewise.
26022         (TV_FLOW_INSENSITIVE): Likewise.
26023         (TV_MEMORY_PARTITIONING): Likewise.
26024         (TV_ALIAS_STMT_WALK): New timevar.
26025         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
26026         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
26027         (get_address_description): Remove memory-tag related code.
26028         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
26029         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
26030         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
26031         and immediate uses in statements.  Document.
26032         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
26033         (dump_symbols): Remove.
26034         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
26035         * alias.c (get_deref_alias_set): New function split out from ...
26036         (get_alias_set): ... here.
26037         * alias.h (get_deref_alias_set): Declare.
26038         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
26039         type parameter.  Remove restrict pointer handling.  Create a
26040         ref-all pointer in case type-based alias sets do not conflict.
26041         (vect_analyze_data_refs): Remove SMT related code.
26042         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
26043         (vectorizable_load): Likewise.
26044         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
26045         (DR_SYMBOL_TAG, DR_VOPS): Remove.
26046         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
26047         Ignore vops and SMTs.
26048         (dr_analyze_alias): Likewise..
26049         (free_data_ref): Likewise.
26050         (create_data_ref): Likewise.
26051         (analyze_all_data_dependences): Likewise.
26052         (get_references_in_stmt): Adjust.
26053         * tree-flow-inline.h (gimple_aliases_computed_p,
26054         gimple_addressable_vars, gimple_call_clobbered_vars,
26055         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
26056         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
26057         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
26058         gimple_mem_ref_stats): Remove.
26059         (gimple_vop): New function.
26060         (op_iter_next_use): Remove vuses and mayuses cases.
26061         (op_iter_next_def): Remove vdefs case.
26062         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
26063         (clear_and_done_ssa_iter): Do not set removed fields.
26064         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
26065         Assert we are not iterating over vuses or vdefs if not also
26066         iterating over uses or defs.
26067         (op_iter_init_use): Likewise.
26068         (op_iter_init_def): Likewise.
26069         (op_iter_next_vdef): Remove.
26070         (op_iter_next_mustdef): Likewise.
26071         (op_iter_init_vdef): Likewise.
26072         (compare_ssa_operands_equal): Likewise.
26073         (link_use_stmts_after): Handle vuse operand.
26074         (is_call_used): Use is_call_clobbered.
26075         (is_call_clobbered): Global variables are always call clobbered,
26076         query the call-clobbers bitmap.
26077         (mark_call_clobbered): Ignore global variables.
26078         (clear_call_clobbered): Likewise.
26079         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
26080         virtual operands sanity check.
26081         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
26082         Remove.
26083         (TARGET_MEM_REF): Remove TMR_TAG operand.
26084         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
26085         Remove call-clobber related code.
26086         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
26087         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
26088         partitions or escape reason.
26089         (get_single_def_stmt, get_single_def_stmt_from_phi,
26090         get_single_def_stmt_with_phi): Remove.
26091         (dump_referenced_vars): Tidy.
26092         (get_ref_base_and_extent): Allow bare decls.
26093         (collect_dfa_stats): Adjust.
26094         * graphite.c (rename_variables_in_stmt): Adjust.
26095         (graphite_copy_stmts_from_block): Likewise.
26096         (translate_clast): Likewise.
26097         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
26098         (EXPR_DIES): New.
26099         (translate_vuse_through_block): Use the oracle.
26100         (phi_translate_1): Adjust.
26101         (value_dies_in_block_x): Use the oracle.  Cache the outcome
26102         in EXPR_DIES.
26103         (valid_in_sets): Check if the VUSE for
26104         a REFERENCE is available.
26105         (eliminate): Do not remove stmts during elimination,
26106         instead queue and remove them afterwards.
26107         (do_pre): Do not rebuild alias info.
26108         (pass_pre): Run TODO_rebuild_alias before PRE.
26109         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
26110         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
26111         (mark_all_v_defs_stmt): Remove.
26112         (mark_all_v_defs_seq): Adjust.
26113         (sra_replace): Likewise.
26114         (scalarize_use): Likewise.
26115         (scalarize_copy): Likewise.
26116         (scalarize_init): Likewise.
26117         (scalarize_ldst): Likewise.
26118         (todoflags): Remove.
26119         (tree_sra): Do not rebuild alias info.
26120         (tree_sra_early): Adjust.
26121         (pass_sra): Run TODO_update_address_taken before SRA.
26122         * tree-predcom.c (set_alias_info): Remove.
26123         (prepare_initializers_chain): Do not call it.
26124         (mark_virtual_ops_for_renaming): Adjust.
26125         (mark_virtual_ops_for_renaming_list): Remove.
26126         (initialize_root_vars): Adjust.
26127         (initialize_root_vars_lm): Likewise.
26128         (prepare_initializers_chain): Likewise.
26129         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
26130         (may_propagate_copy_into_stmt): Likewise.
26131         (merge_alias_info): Do nothing for now.
26132         (propagate_tree_value_into_stmt): Adjust.
26133         (stmt_may_generate_copy): Likewise.
26134         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
26135         not mark symbols for renaming.
26136         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
26137         with the same statement, make sure to update the new pointed-to one.
26138         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
26139         call statements, do not mark symbols for renaming.
26140         (mark_operand_necessary): Dump something.
26141         (ref_may_be_aliased): New function.
26142         (mark_aliased_reaching_defs_necessary_1): New helper function.
26143         (mark_aliased_reaching_defs_necessary): Likewise.
26144         (mark_all_reaching_defs_necessary_1): Likewise.
26145         (mark_all_reaching_defs_necessary): Likewise.
26146         (propagate_necessity): Do not process virtual PHIs.  For
26147         non-aliased loads mark all reaching definitions as necessary.
26148         For aliased loads and stores mark the immediate dominating
26149         aliased clobbers as necessary.
26150         (visited): New global static.
26151         (perform_tree_ssa_dce): Free visited bitmap after propagating
26152         necessity.
26153         (remove_dead_phis): Perform simple dead virtual PHI removal.
26154         (remove_dead_stmt): Properly unlink virtual operands when
26155         removing stores.
26156         (eliminate_unnecessary_stmts): Schedule PHI removal after
26157         stmt removal.
26158         * tree-ssa-ter.c (is_replaceable_p): Adjust.
26159         (process_replaceable): Likewise.
26160         (find_replaceable_in_bb): Likewise.
26161         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
26162         based on the single gimple vop.
26163         (verify_flow_insensitive_alias_info): Remove.
26164         (verify_flow_sensitive_alias_info): Likewise.
26165         (verify_call_clobbering): Likewise.
26166         (verify_memory_partitions): Likewise.
26167         (verify_alias_info): Likewise.
26168         (verify_ssa): Adjust..
26169         (execute_update_addresses_taken): Export.  Update SSA
26170         manually.  Optimize only when optimizing.  Use a local bitmap.
26171         (pass_update_address_taken): Remove TODO_update_ssa, add
26172         TODO_dump_func.
26173         (pass_update_address_taken): Just use TODO_update_address_taken.
26174         (init_tree_ssa): Do not initialize addressable_vars.
26175         (verify_ssa): Verify new VUSE / VDEF properties.
26176         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
26177         Do not call verify_alias_info.
26178         (delete_tree_ssa): Clear the VUSE, VDEF operands.
26179         Do not free the loaded and stored syms bitmaps.  Reset the escaped
26180         and callused solutions.  Do not free addressable_vars.
26181         Remove memory-tag related code.
26182         (warn_uninitialized_var): Aliases are always available.
26183         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
26184         * lambda-code.c (can_put_in_inner_loop): Adjust.
26185         (can_put_after_inner_loop): Likewise.
26186         (perfect_nestify): Likewise.
26187         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
26188         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
26189         (vectorizable_conversion): Do not mark symbols for renaming.
26190         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
26191         (expand_call_inline): Unlink the calls virtual operands before
26192         replacing it.
26193         (tree_function_versioning): Do not call update_ssa if we are not
26194         updating clones.  Simplify.
26195         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
26196         (propagate_with_phi): Likewise..
26197         * tree-outof-ssa.c (create_temp): Remove memory tag and call
26198         clobber code.  Assert we are not aliased or global.
26199         * tree-flow.h: Include tree-ssa-alias.h
26200         (enum escape_type): Remove.
26201         (struct mem_sym_stats_d): Likewise.
26202         (struct mem_ref_stats_d): Likewise.
26203         (struct gimple_df): Add vop member.  Remove global_var,
26204         call_clobbered_vars, call_used_vars, addressable_vars,
26205         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
26206         escaped and callused members.
26207         (struct ptr_info_def): Remove all members, add points-to solution
26208         member pt.
26209         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
26210         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
26211         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
26212         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
26213         (tree-ssa-alias.o): Likewise.
26214         (toplev.o): Add tree-ssa-alias.h
26215         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
26216         * gimple.c (gimple_set_bb): Fix off-by-one error.
26217         (is_gimple_reg): Do not handle memory tags.
26218         (gimple_copy): Also copy virtual operands.
26219         Delay updating the statement.  Do not reset loaded and stored syms.
26220         (gimple_set_stored_syms): Remove.
26221         (gimple_set_loaded_syms): Likewise.
26222         (gimple_call_copy_skip_args): Copy the virtual operands
26223         and mark the new statement modified.
26224         * tree-ssa-structalias.c (may_alias_p): Remove.
26225         (set_uids_in_ptset): Take the alias set to prune with as
26226         parameter.  Fold in the alias test of may_alias_p.
26227         (compute_points_to_sets): Compute whether a ptr is dereferenced
26228         in a local sbitmap.
26229         (process_constraint): Deal with &ANYTHING on the lhs, reject all
26230         other ADDRESSOF constraints on the lhs.
26231         (get_constraint_for_component_ref): Assert that we don't get
26232         ADDRESSOF constraints from the base of the reference.
26233         Properly generate UNKNOWN_OFFSET for DEREF if needed.
26234         (struct variable_info): Remove collapsed_to member.
26235         (get_varinfo_fc): Remove.
26236         (new_var_info): Do not set collapsed_to.
26237         (dump_constraint): Do not follow cycles.
26238         (dump_constraint_graph): Likewise.
26239         (build_pred_graph): Likewise.
26240         (build_succ_graph): Likewise.
26241         (rewrite_constraints): Likewise.
26242         (do_simple_structure_copy): Remove.
26243         (do_rhs_deref_structure_copy): Remove.
26244         (do_lhs_deref_structure_copy): Remove.
26245         (collapse_rest_of_var): Remove.
26246         (do_structure_copy): Re-implement.
26247         (pta_stats): New global variable.
26248         (dump_pta_stats): New function.
26249         (struct constraint_expr): Make offset signed.
26250         (UNKNOWN_OFFSET): Define special value.
26251         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
26252         (solution_set_expand): New helper function split out from ...
26253         (do_sd_constraint): ... here.
26254         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
26255         (do_ds_constraint): Likewise.
26256         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
26257         and CALLUSED = *CALLUSED.
26258         (set_union_with_increment): Make inc argument signed.
26259         (type_safe): Remove.
26260         (get_constraint_for_ptr_offset): Handle unknown and negative
26261         constant offsets.
26262         (first_vi_for_offset): Handle offsets before start.  Bail
26263         out early for offsets beyond the variable extent.
26264         (first_or_preceding_vi_for_offset): New function.
26265         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
26266         Together with ESCAPED = *ESCAPED this properly computes reachability.
26267         (find_what_var_points_to): New function.
26268         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
26269         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
26270         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
26271         pt_solutions_intersect): New functions.
26272         (compute_call_used_vars): Remove.
26273         (compute_may_aliases): New main entry into PTA computation.
26274         * gimple.h (gimple_p): New typedef.
26275         (struct gimple_statement_base): Remove references_memory_p.
26276         (struct gimple_statement_with_memory_ops_base): Remove
26277         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
26278         members.
26279         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
26280         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
26281         gimple_set_references_memory): Remove.
26282         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
26283         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
26284         New functions.
26285         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
26286         (verify_expr): Allow RESULT_DECL.
26287         (gimple_duplicate_bb): Do not copy virtual operands.
26288         (gimple_duplicate_sese_region): Adjust.
26289         (gimple_duplicate_sese_tail): Likewise.
26290         (mark_virtual_ops_in_region): Remove.
26291         (move_sese_region_to_fn): Do not call it.
26292         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
26293         and pass_simple_dse.
26294         (execute_function_todo): Handle TODO_update_address_taken,
26295         call execute_update_addresses_taken for TODO_rebuild_alias.
26296         (execute_todo): Adjust.
26297         (execute_one_pass): Init dump files early.
26298         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
26299         call-clobbered.
26300         (create_general_new_stmt): Clear vops.
26301         * tree-ssa-reassoc.c (get_rank): Adjust.
26302         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
26303         symbols for renaming.
26304         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
26305         (PARAM_AVG_ALIASED_VOPS): Likewise.
26306         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
26307         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
26308         * tree-ssa-operands.c: Simplify for new virtual operand representation.
26309         (operand_build_cmp, copy_virtual_operands,
26310         create_ssa_artificial_load_stmt, add_to_addressable_set,
26311         gimple_add_to_addresses_taken): Remove public functions.
26312         (unlink_stmt_vdef): New function.
26313
26314 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
26315
26316         * config.gcc (powerpc-*-linux*): Merge variants.
26317
26318 2009-04-02  Chao-ying Fu  <fu@mips.com>
26319             James Grosbach  <james.grosbach@microchip.com>
26320
26321         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
26322         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
26323         cop0_sp_offset.
26324         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
26325         keep_interrupts_masked_p, use_debug_exception_return_p.
26326         (mips_attribute_table): Add interrupt, use_shadow_register_set,
26327         keep_interrupts_masked, use_debug_exception_return.
26328         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
26329         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
26330         New functions.
26331         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
26332         (mips_print_operand): Process COP0 registers to print $0 .. $31
26333         correctly for GAS to process.
26334         (mips_interrupt_extra_call_saved_reg_p): New function.
26335         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
26336         extra registers.
26337         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
26338         (mips_compute_frame_info): Add supports for interrupt context that
26339         includes doubleword accumulators and COP0 registers.
26340         (mips_for_each_saved_acc): New function.
26341         (mips_for_each_saved_gpr_and_fpr): Change the function name from
26342         mips_for_each_saved_reg.
26343         (mips_save_reg): Save accumulators.
26344         (mips_kernel_reg_p): A new for_each_rtx callback.
26345         (mips_expand_prologue): Support interrupt handlers.
26346         (mips_restore_reg): Restore accumulators.
26347         (mips_expand_epilogue): Support interrupt handlers.
26348         (mips_can_use_return_insn): Return false for interrupt handlers.
26349         (mips_epilogue_uses): New function.
26350         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
26351         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
26352         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
26353         cop0_move): New instructions.
26354         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
26355         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
26356         defines.
26357         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
26358         New defines.
26359         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
26360         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
26361         interrupt handlers, we use K0 as the temporary register.
26362         (EPILOGUE_USES): Change to a function call.
26363         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
26364         handlers, we use K0 as the temporary register.
26365
26366         * doc/extend.texi (Function Attributes): Document interrupt,
26367         use_shadow_register_set, keep_interrupts_masked,
26368         use_debug_exception_return for MIPS attributes.
26369
26370 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
26371
26372         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
26373         Remove a number of t-files from tmake_file.
26374         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
26375         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
26376         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
26377         target_prototype, not TARGET_PROTOTYPE.
26378         (LINK_OS_GNU_SPEC): Define.
26379         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
26380         and darwin-ldoubdle.c.
26381
26382 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
26383
26384         PR driver/39293
26385         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
26386         (cpp_options): Ditto.
26387         (default_compilers): Ditto.
26388         (display_help): Ditto.
26389         (process_command): Ditto.
26390         (do_spec_1): Ditto.
26391         (set_input): Use lbasename instead of duplicate code.
26392         (save_temps_prefix): New static for -save-temps=obj.
26393         (save_temps_length): Ditto.
26394
26395         * doc/invoke.texi (-save-temps=obj): Document new variant to
26396         -save-temps switch.
26397
26398 2009-04-02  Jeff Law  <law@redhat.com>
26399
26400         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
26401         variable.
26402
26403 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
26404
26405         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
26406         * configure: Regenerated.
26407
26408 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
26409
26410         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
26411         share the argument list.
26412
26413 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
26414
26415         Merge
26416
26417         2009-02-12  Diego Novillo  <dnovillo@google.com>
26418
26419         * varpool.c (debug_varpool): New.
26420         * cgraph.h (debug_varpool): Declare.
26421
26422 2009-04-02  Jan Hubicka  <jh@suse.cz>
26423
26424         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
26425         pass.
26426
26427 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
26428
26429         * config/i386/i386.c (ix86_abi): Move initialization to ...
26430         (override_options): Here.
26431
26432 2009-04-02  Christian Bruel  <christian.bruel@st.com>
26433
26434         * config/sh/sh.c (sh_dwarf_register_span): New function.
26435         (TARGET_DWARF_REGISTER_SPAN): Define.
26436         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
26437
26438 2009-04-02  Ira Rosen  <irar@il.ibm.com>
26439
26440         PR tree-optimization/39595
26441         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
26442         interleaved loads group is not  greater than the SLP group size.
26443
26444 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
26445
26446         * builtins.c (is_builtin_name): New.
26447         (called_as_built_in): Use is_builtin_name.
26448         * tree.h (is_builtin_name): New.
26449         * varasm.c (incorporeal_function_p): Use is_builtin_name
26450
26451 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
26452
26453         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
26454
26455 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
26456
26457         PR c++/26693
26458         * c-decl.c (clone_underlying_type): Move this ...
26459         * c-common.c (set_underlying_type): ... here.
26460         Also, make sure the function properly sets TYPE_STUB_DECL() on
26461         the newly created typedef variant type.
26462         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
26463         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
26464         points.
26465
26466 2009-04-02  Richard Guenther  <rguenther@suse.de>
26467
26468         PR tree-optimization/37221
26469         * tree-flow.h (degenerate_phi_result): Declare.
26470         * tree-ssa-dom.c (degenerate_phi_result): Export.
26471         * tree-scalar-evolution.c (analyze_initial_condition): If
26472         the initial condition is defined by a degenerate PHI node
26473         use the degenerate value.
26474
26475 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
26476
26477         PR rtl-optimization/39588
26478         * combine.c (merge_outer_ops): Do not set the constant when this
26479         is not necessary.
26480         (simplify_shift_const_1): Do not modify it either in this case.
26481
26482 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
26483
26484         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
26485         tuning is deprecated if -mtune value is set to an Itanium1 variant.
26486
26487 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
26488
26489         PR c/29027
26490         * c-lex.c (interpret_float): Default (no suffix) is double.
26491
26492 2009-04-1  Xinliang David Li  <davidxl@google.com>
26493
26494         * config/i386/i386.c (legitimate_constant_p): Recognize
26495         all one vector constant.
26496
26497 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26498
26499         * config/vax/vax.c: Add #includes to silence warnings.
26500         Change #include order to silence two warnings.
26501
26502 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26503
26504         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
26505         (ASM_SPEC): Pass -k to the assembler for PIC code.
26506
26507 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26508
26509         * config.gcc: Add vax-*-linux* to the switch.
26510         * config/vax/linux.h: New file. (TARGET_VERSION,
26511         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
26512
26513 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26514
26515         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
26516         Use predicate macros instead of GET_CODE() == foo.
26517         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
26518         ashlsi3, rotrsi3, <unnamed>): Likewise.
26519
26520 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26521
26522         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
26523         jbbccihi, jbbccisi): Remova trailing whitespace.
26524         * config/vax/constraints.md: Likewise.
26525         * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
26526         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
26527         * config/vax/predicates.md: Likewise.
26528         * config/vax/vax.c (print_operand_address, vax_output_int_move,
26529         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
26530         * config/vax/vax.h: Likewise.
26531         * config/vax/vax.md (nonlocal_goto): Likewise.
26532
26533 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26534
26535         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
26536         (indirectable_address_p, adjacent_operands_p): Add spaces around
26537         braces.
26538         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
26539
26540 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26541
26542         * config/vax/vax.c (legitimate_constant_address_p,
26543         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
26544         index_term_p, reg_plus_index_p, legitimate_address_p,
26545         vax_mode_dependent_address_p): Update comments to match functions
26546         modified by the recent int->bool conversion.
26547
26548 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26549
26550         * config/vax/builtins.md: Update copyright message.
26551         * config/vax/constraints.md: Likewise.
26552         * config/vax/netbsd-elf.h: Likewise.
26553         * config/vax/predicates.md: Likewise.
26554         * config/vax/vax-protos.h: Likewise.
26555         * config/vax/vax.c: Likewise.
26556         * config/vax/vax.h: Likewise.
26557         * config/vax/vax.md: Likewise.
26558         * config/vax/vax.opt: Likewise.
26559
26560 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26561
26562         * config/vax/builtins.md (ffssi2, ffssi2_internal,
26563         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
26564         * config/vax/constraints.md (B, R): Likewise.
26565         * config/vax/predicates.md (external_memory_operand,
26566         nonimmediate_addsub_di_operand): Likewise.
26567         * config/vax/vax.c (vax_output_int_add): Likewise.
26568         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
26569         untyped_call): Likewise.
26570
26571 2009-04-01  Matt Thomas  <matt@3am-software.com>
26572
26573         * config/vax/predicates.md: New file.
26574         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
26575         external_const_operand, nonsymbolic_operand, external_memory_operand,
26576         indirect_memory_operand, indexed_memory_operand,
26577         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
26578         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
26579         predicate.
26580         * config/vax/constraints.md: New file.
26581         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
26582         New constraint.
26583         * config/vax/builtins.md: New file.
26584         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
26585         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
26586         jbbccisi): Define.
26587         * config/vax/vax.opt (mqmath): Add option.
26588         * config/vax/vax.md (isfx): Extend with DI.
26589         (VAXintQH, VAXintQHSD): Define.
26590         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
26591         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
26592         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
26593         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
26594         (movdi): Update constraints and use vax_output_int_move().
26595         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
26596         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
26597         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
26598         nonlocal_goto): New.
26599         (mov<mode>): Extend accepted operand types.
26600         (subdi3_old): Rename from subdi3, change update constraints and use
26601         a new implementation.
26602         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
26603         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
26604         MOVE_RATIO, CLEAR_RATIO): Define.
26605         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
26606         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
26607         (PRINT_OPERAND): Redefine using a function instead of inlined code.
26608         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
26609         (split_quadword_operands): Make static and really allow variable
26610         splitting.
26611         (print_operand_address): Update for PIC generation.
26612         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
26613         indexable_address_p, fixup_mathdi_operand,
26614         vax_expand_addsub_di_operands, adjacent_operands_p): New.
26615         (vax_float_literal, legitimate_constant_p,
26616         indirectable_constant_address_p, index_term_p,
26617         reg_plus_index_p): Return bool instead of int.
26618         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
26619         where needed.
26620         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
26621         generation.
26622         (vax_output_conditional_branch): Indent.
26623         (legitimate_constant_address_p, indirectable_constant_address_p,
26624         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
26625         vax_mode_dependent_address_p): Return bool instead of int, update for
26626         PIC generation.
26627         * config/vax/vax-protos.h (legitimate_constant_address_p,
26628         legitimate_constant_p, legitimate_address_p,
26629         vax_mode_dependent_address_p): Change declaration to bool.
26630         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
26631         vax_expand_addsub_di_operands, vax_output_int_subtract,
26632         vax_output_movmemsi): Declare.
26633         (split_quadword_operands, vax_float_literal): Delete declaration.
26634         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
26635         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
26636         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
26637         ASM_OUTPUT_DWARF_PCREL): Define.
26638         (ASM_SPEC): Change definition to allow PIC generation.
26639
26640 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
26641
26642         * doc/sourcebuild.texi: Update front-end requirements.
26643
26644 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
26645
26646         PR target/39226
26647         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
26648         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
26649         (booldi3_internal3): Use boolean_or_operator instead of
26650         boolean_operator.
26651
26652 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
26653
26654         PR c/39605
26655         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
26656         declarator whose size is not an integer constant expression but
26657         folds to an integer constant, then treat it as a constant
26658         subsequently.
26659
26660 2009-04-01  Richard Guenther  <rguenther@suse.de>
26661
26662         * fold-const.c (fold_plusminus_mult_expr): Do not fold
26663         i * 4 + 2 to (i * 2 + 1) * 2.
26664
26665 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
26666
26667         PR c/37772
26668         * c-parser.c (c_parser_asm_statement): Skip until close paren and
26669         return if c_parser_asm_string_literal returned NULL.
26670
26671 2009-04-01  Nick Clifton  <nickc@redhat.com>
26672
26673         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
26674         already defined.
26675         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
26676         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
26677         other typedefs to avoid conflicts with libgcc2.c.  Define labels
26678         to gain 16-bit bit-manipulation functions from libgcc2.c and then
26679         include it.
26680         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
26681         to gain 16-bit trapping arithmetic functions from libgcc2.c and
26682         then include it.
26683
26684 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
26685
26686         * varasm.c (default_function_rodata_section): Declare DOT as
26687         const char*.
26688
26689 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
26690             Andrey Galkin  <agalkin@hypercom.com>
26691
26692         PR/39492
26693         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
26694         Make object_name unique for each process.
26695
26696 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
26697
26698         PR other/39591
26699         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
26700         addressable variables in the parallel that could go out of scope while
26701         running queued tasks.
26702
26703 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
26704
26705         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
26706         (CASE_VALUES_THRESHOLD): Redefine.
26707         * config/avr/avr.c (avr_override_options): Remove initialization of
26708         avr_case_values_threshold variable.
26709         (avr_case_values_threshold): Remove variable. Add new function.
26710         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
26711         * config/avr/avr.opt (mno-tablejump): Remove option.
26712         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
26713
26714 2009-04-01  DJ Delorie  <dj@redhat.com>
26715
26716         * varasm.c (default_function_rodata_section): Don't assume
26717         anything about where the first '.' in the section name is.
26718
26719 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
26720
26721         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
26722         rs6000_emit_stack_tie.
26723
26724 2009-03-31  Ian Lance Taylor  <iant@google.com>
26725
26726         * tree-eh.c (tree_remove_unreachable_handlers): Compare
26727         gimple_code with GIMPLE_RESX, not RESX.
26728
26729 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
26730
26731         * c-common.c (c_get_ident): New.
26732         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
26733
26734 2009-04-01  Ben Elliston  <bje@au.ibm.com>
26735
26736         * config/rs6000/sysv4.opt (msdata): Improve option description.
26737
26738 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
26739
26740         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
26741         (divdf3_internal_lat): Remove.
26742         (divxf3_internal_lat): Remove.
26743         (divxf3_internal_thr): Remove.
26744         (divxf): Use divxf3_internal.
26745         * config/ia64/div.md (divsf3_internal_lat): New.
26746         (divdf3_internal_lat): New.
26747         (divxf3_internal): New.
26748
26749 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
26750
26751         PR c/448
26752         * Makefile.in (USE_GCC_STDINT): Define.
26753         (stmp-int-hdrs): Install stdint.h if applicable.
26754         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
26755         if known.
26756         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
26757         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
26758         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
26759         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26760         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26761         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26762         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26763         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26764         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
26765         (c_common_nodes_and_builtins): Initialize
26766         underlying_wchar_type_node.  Do not initialize
26767         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
26768         nodes for new types.
26769         (c_stddef_cpp_builtins): Define macros for new types.
26770         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
26771         Remove.
26772         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
26773         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
26774         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
26775         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
26776         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
26777         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
26778         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
26779         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
26780         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
26781         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
26782         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
26783         int16_type_node, int32_type_node, int64_type_node,
26784         uint8_type_node, uint16_type_node, c_uint32_type_node,
26785         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
26786         int_least32_type_node, int_least64_type_node,
26787         uint_least8_type_node, uint_least16_type_node,
26788         uint_least32_type_node, uint_least64_type_node,
26789         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
26790         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
26791         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
26792         uintptr_type_node): Define.
26793         * c-cppbuiltin.c (builtin_define_constants,
26794         builtin_define_type_minmax): New.
26795         (builtin_define_stdint_macros): Define more macros.
26796         (c_cpp_builtins): Define more limit macros.
26797         (type_suffix): New.
26798         (builtin_define_type_max): Define in terms of
26799         builtin_define_type_minmax.  Remove is_long parameter.  All
26800         callers changed.
26801         * config.gcc (use_gcc_stdint): Define.
26802         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
26803         Add newlib-stdint.h for generic targets.
26804         * config/glibc-stdint.h, config/newlib-stdint.h,
26805         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
26806         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
26807         * config/score/score.h (UINTPTR_TYPE): Define.
26808         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
26809         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
26810         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26811         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26812         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26813         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26814         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26815         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
26816         * config/spu/spu.h (STDINT_LONG32): Define.
26817         * configure.ac (use_gcc_stdint): Substitute.
26818         * configure: Regenerate.
26819         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
26820         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
26821         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
26822         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
26823         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
26824         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
26825         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
26826         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
26827         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
26828         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
26829         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
26830         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
26831         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
26832         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
26833         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
26834         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
26835         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
26836         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
26837         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
26838         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
26839         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
26840         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
26841         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
26842         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26843         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26844         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26845         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26846         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26847         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
26848
26849 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
26850
26851         * loop-iv.c (suitable_set_for_replacement): Renamed from
26852         simplify_using_assignment; changed to return bool and to accept new
26853         args DEST and SRC.  Return true iff we find a source/destination pair
26854         that can be used to make a replacement, and fill SRC and DEST if so.
26855         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
26856         changed.
26857         (simplify_using_initial_values): Deal with altered regs here and track
26858         more precisely the effect they have on the validity of our expression.
26859
26860         * loop-iv.c (simplify_using_condition): A condition of the form
26861         (EQ REG CONST) can be used to simply make a substitution.
26862         (simplify_using_initial_values): Keep track of conditions we have seen
26863         and keep using them to simplify new expressions, while applying the
26864         same substitutions to them as to the expression.
26865
26866         * simplify-rtx.c (simplify_relational_operation_1): Simplify
26867         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
26868         GEU/LTU reversed.
26869
26870         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
26871         changed.  Use this when trying to improve the upper bound.
26872         Generate the comparison by using simplify_gen_relational.
26873
26874         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
26875
26876         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
26877         functions.
26878         (simplify_using_assignment, simplify_using_initial_values): Call
26879         replace_in_expr to make replacements.  Call replace_single_def_regs
26880         once on the initial version of the expression.
26881
26882 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26883
26884         PR target/27237
26885         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
26886
26887 2009-03-31  Richard Guenther  <rguenther@suse.de>
26888
26889         PR middle-end/31029
26890         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
26891         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
26892
26893 2009-03-31  Richard Guenther  <rguenther@suse.de>
26894
26895         * tree.h (div_if_zero_remainder): Declare.
26896         * fold-const.c (div_if_zero_remainder): Export.
26897         * tree-ssa-forwprop.c
26898         (forward_propagate_addr_into_variable_array_index): Handle
26899         constant array index addition outside of the variable index.
26900
26901 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
26902
26903         PR target/39592
26904         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
26905         define_splits, floatunssi<mode>2): Require x87 conversions from
26906         DImode to be permitted.
26907
26908 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
26909
26910         PR preprocessor/15638
26911         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
26912
26913 2009-03-31  Richard Guenther  <rguenther@suse.de>
26914
26915         PR middle-end/23401
26916         PR middle-end/27810
26917         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
26918         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
26919         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
26920         a separate statement.
26921         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
26922         (lookup_tmp_var): Likewise.
26923         (is_gimple_formal_tmp_or_call_rhs): Remove.
26924         (is_gimple_reg_or_call_rhs): Rename to ...
26925         (is_gimple_reg_rhs_or_call): ... this.
26926         (is_gimple_mem_or_call_rhs): Rename to ...
26927         (is_gimple_mem_rhs_or_call): ... this.
26928         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
26929         DECL_GIMPLE_REG_P only if is_formal is true.
26930         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
26931         for non-proper post-modify expression gimplification.
26932         (gimplify_self_mod_expr): For post-modify expressions gimplify
26933         the lvalue to a minimal lvalue.
26934         (rhs_predicate_for): Remove formal temp case.
26935         (gimplify_modify_expr_rhs): Likewise.
26936         (gimplify_addr_expr): Use is_gimple_reg.
26937         (gimplify_expr): Remove formal temp cases.
26938         (gimple_regimplify_operands): Likewise.
26939         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
26940         and FILTER_EXPR like constants.
26941         * gimple.c (walk_gimple_op): Fix val_only initialization, use
26942         is_gimple_reg.
26943         (is_gimple_formal_tmp_rhs): Remove.
26944         (is_gimple_reg_rhs): Remove special casing.
26945         (is_gimple_mem_rhs): Fix.
26946         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
26947         (is_gimple_formal_tmp_var): Remove.
26948         (is_gimple_formal_tmp_reg): Likewise.
26949         (is_gimple_min_lval): Allow invariant component ref parts.
26950         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
26951         is_gimple_formal_tmp_reg): Remove declarations.
26952         * tree-cfg.c (verify_expr): Verify that variables with address
26953         taken do not have DECL_GIMPLE_REG_P set.
26954         * tree-mudflap.c (mf_build_check_statement_for): Use
26955         force_gimple_operand instead of gimplify_expr.
26956
26957 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
26958
26959         * modulo-sched.c (sms_schedule_by_order): Pass the actual
26960         schedulable rows to compute_split_row.
26961
26962 2009-03-31  Ben Elliston  <bje@au.ibm.com>
26963
26964         PR target/31635
26965         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
26966         OPT_mvrsave.
26967
26968 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
26969
26970         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
26971         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
26972         * configure: Regenerate.
26973         * config.in: Regenerate.
26974         * config/rs6000/rs6000.opt (mtls-markers): Add.
26975         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
26976         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
26977         (tls_ld_aix, tls_ld_sysv): Likewise.
26978         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
26979         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
26980
26981 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
26982
26983         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
26984
26985 2009-03-30  Jan Hubicka  <jh@suse.cz>
26986
26987         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
26988         out of RESX.
26989         (tree_remove_unreachable_handlers): Cleanup EH predecestor
26990         detection and label handling.
26991
26992 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
26993
26994         * ira-int.h (ira_allocno): Rename left_conflicts_num to
26995         left_conflicts_size.
26996         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
26997         ALLOCNO_LEFT_CONFLICTS_SIZE.
26998
26999         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
27000         remove_allocno_from_bucket_and_push,
27001         allocno_spill_priority_compare, push_allocnos_to_stack,
27002         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
27003         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
27004         (setup_allocno_left_conflicts_num): Ditto.  Rename to
27005         setup_allocno_left_conflicts_size.
27006         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
27007         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
27008         setup_allocno_left_conflicts_size instead of
27009         setup_allocno_left_conflicts_num.
27010
27011         * ira-build.c (ira_create_allocno): Use
27012         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
27013         ALLOCNO_LEFT_CONFLICTS_NUM.
27014
27015 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
27016
27017         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
27018         instead of DF_LR_OUT.
27019
27020         * ira-lives.c (process_bb_node_lives): Ditto.
27021
27022         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
27023         instead of DF_LR_{OUT,IN}.
27024
27025         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
27026
27027         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
27028
27029 2009-03-30  Jan Hubicka  <jh@suse.cz>
27030
27031         * except.c (label_to_region_map): Fix thinko.
27032
27033 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
27034
27035         PR middle-end/38237
27036         * tree.h (tree_find_value): New declaration.
27037         * tree.c (tree_find_value): New function.
27038         * varasm.c (assemble_external): Avoid duplicate entries on lists.
27039
27040 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
27041
27042         PR debug/39563
27043         * c-decl.c (struct c_binding): Add locus field.
27044         (bind): Add locus argument, set locus field from it.
27045         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
27046         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
27047         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
27048         implicitly_declare, undeclared_variable, lookup_label,
27049         declare_label, c_make_fname_decl, c_builtin_function,
27050         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
27051         bind callers.
27052
27053 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
27054
27055         PR target/38781
27056         * config/i386/i386.c (classify_argument): Check total size of
27057         structure.
27058
27059 2009-03-30  Martin Jambor  <mjambor@suse.cz>
27060
27061         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
27062         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
27063         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
27064         respectively.
27065
27066         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
27067         seen_variable_array_ref while also traversing a union.
27068
27069         * tree-inline.c (optimize_inline_calls): Do not call
27070         cgraph_node_remove_callees.
27071         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
27072         (pass_remove_cgraph_callee_edges): New variable.
27073         * passes.c (init_optimization_passes): Add
27074         pass_remove_cgraph_callee_edges after early inlining and before all
27075         late intraprocedural passes.
27076
27077         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
27078
27079 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
27080
27081         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
27082         Fix typos in names.
27083
27084 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
27085
27086         * combine.c (simplify_comparison): Use have_insn_for.
27087         * dojump.c (do_jump): Likewise.
27088
27089 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
27090
27091         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
27092         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
27093         sparc_compare_op0 like sparc_compare_emitted used to be handled.
27094         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
27095         instead of sparc_compare_emitted.
27096         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
27097         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
27098         instead of sparc_compare_emitted.
27099
27100 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
27101
27102         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
27103         enter/exit cfglayout mode.
27104         (pass_partition_block): Require it.
27105         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
27106         (combine_instructions): Track basic blocks instead of labels.
27107         (update_cfg_for_uncondjump): New.
27108         (try_combine): Use it.  Update jumps after rescanning.
27109         (pass_combine): Require PROP_cfglayout.
27110         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
27111
27112 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
27113
27114         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
27115         Provide/destroy PROP_cfglayout respectively.
27116         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
27117         * tree-pass.h (PROP_cfglayout): New.
27118
27119 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
27120
27121         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
27122         fold_convert_const_fixed_from_fixed,
27123         fold_convert_const_fixed_from_int,
27124         fold_convert_const_fixed_from_real, fold_negate_const): Do not
27125         set TREE_CONSTANT_OVERFLOW.
27126         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
27127         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
27128
27129 2009-03-30  Ira Rosen  <irar@il.ibm.com>
27130
27131         * tree-vect-loop-manip.c: New file.
27132         * tree-vectorizer.c: Update documentation and included files.
27133         (vect_loop_location): Make extern.
27134         (rename_use_op): Move to tree-vect-loop-manip.c
27135         (rename_variables_in_bb, rename_variables_in_loop,
27136         slpeel_update_phis_for_duplicate_loop,
27137         slpeel_update_phi_nodes_for_guard1,
27138         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
27139         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
27140         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
27141         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
27142         find_loop_location): Likewise.
27143         (new_stmt_vec_info): Move to tree-vect-stmts.c.
27144         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
27145         get_vectype_for_scalar_type, vect_is_simple_use,
27146         supportable_widening_operation, supportable_narrowing_operation):
27147         Likewise.
27148         (bb_in_loop_p): Move to tree-vect-loop.c.
27149         (new_loop_vec_info, destroy_loop_vec_info,
27150         reduction_code_for_scalar_code, report_vect_op,
27151         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
27152         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
27153         (vect_supportable_dr_alignment): Likewise.
27154         * tree-vectorizer.h (tree-data-ref.h): Include.
27155         (vect_loop_location): Declare.
27156         Reorganize function declarations according to the new file structure.
27157         * tree-vect-loop.c: New file.
27158         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
27159         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
27160         * tree-vect-data-refs.c: New file.
27161         * tree-vect-patterns.c (timevar.h): Don't include.
27162         * tree-vect-stmts.c: New file.
27163         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
27164         tree-vect-slp.c, tree-vect-loop.c.
27165         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
27166         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
27167         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
27168         (tree-vect-analyze.o): Remove.
27169         (tree-vect-transform.o): Likewise.
27170         (tree-vect-data-refs.o): Add rule.
27171         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
27172         tree-vect-slp.o): Likewise.
27173         (tree-vect-patterns.o): Remove redundant dependencies.
27174         (tree-vectorizer.o): Likewise.
27175         * tree-vect-slp.c: New file.
27176
27177 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27178
27179         * optc-gen.awk: Warn if an option flag has multiple different
27180         help strings.
27181
27182 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
27183
27184         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
27185         -floop-block): Document dependences on PPL, CLooG and Graphite.
27186
27187 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
27188
27189         PR rtl-optimization/323
27190         * c-common.c (c_fully_fold, convert_and_check,
27191         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
27192         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
27193         * c-common.def (EXCESS_PRECISION_EXPR): New.
27194         * c-cppbuiltin.c (builtin_define_float_constants): Define
27195         constants with enough digits for long double.
27196         * c-lex.c (interpret_float): Interpret constant with excess
27197         precision where appropriate.
27198         * c-opts.c (c_common_post_options): Set
27199         flag_excess_precision_cmdline.  Give an error for
27200         -fexcess-precision=standard for C++ for processors where the
27201         option is significant.
27202         * c-parser.c (c_parser_conditional_expression): Handle excess
27203         precision in condition.
27204         * c-typeck.c (convert_arguments): Handle arguments with excess
27205         precision.
27206         (build_unary_op): Move excess precision outside operation.
27207         (build_conditional_expr): Likewise.
27208         (build_compound_expr): Likewise.
27209         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
27210         (build_modify_expr): Handle excess precision in RHS.
27211         (convert_for_assignment): Handle excess precision in converted
27212         value.
27213         (digest_init, output_init_element, process_init_element): Handle
27214         excess precision in initializer.
27215         (c_finish_return): Handle excess precision in return value.
27216         (build_binary_op): Handle excess precision in operands and add
27217         excess precision as needed for operation.
27218         * common.opt (-fexcess-precision=): New option.
27219         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
27220         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
27221         For standard excess precision, output explicit conversion to and
27222         truncation from XFmode.
27223         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
27224         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
27225         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
27226         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
27227         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
27228         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
27229         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
27230         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
27231         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
27232         define_splits, sqrt<mode>2): Disable where appropriate for
27233         standard excess precision.
27234         * convert.c (convert_to_real): Do not shorten arithmetic to type
27235         for which excess precision would be used.
27236         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
27237         * doc/invoke.texi (-fexcess-precision=): Document option.
27238         (-mfpmath=): Correct index entry.
27239         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
27240         flag_excess_precision): New.
27241         * langhooks.c (lhd_post_options): Set
27242         flag_excess_precision_cmdline.
27243         * opts.c (common_handle_option): Handle -fexcess-precision=.
27244         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
27245         init_excess_precision): New.
27246         (lang_dependent_init_target): Call init_excess_precision.
27247         * tree.c (excess_precision_type): New.
27248         * tree.h (excess_precision_type): Declare.
27249
27250 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
27251
27252         PR c/35235
27253         * c-typeck.c (build_component_ref): Do not copy qualifiers from
27254         non-lvalue to component.
27255
27256 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
27257
27258         PR preprocessor/34695
27259         * Makefile.in (c-opts.o): Depend on c-tree.h.
27260         * c-common.c: Move down include of diagnostic.h.
27261         (done_lexing, c_cpp_error): New.
27262         * c-common.h (done_lexing): Declare.
27263         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
27264         (parse_in).
27265         * c-opts.c: Include c-tree.h.
27266         (c_common_init_options): Set preprocessor error callback.
27267         (c_common_handle_option): Do not set preprocessor
27268         inhibit_warnings, warnings_are_errors, warn_system_headers,
27269         pedantic_errors or inhibit_warnings flags.
27270         (c_common_post_options): Do not check cpp_errors (parse_in).
27271         (c_common_finish): Do not output dependencies if there were
27272         errors.  Do not check return value of cpp_finish.
27273         * c-ppoutput.c (pp_file_change): Set input_location.
27274         * c-tree.h (c_cpp_error): Declare.
27275         * diagnostic.c (diagnostic_set_info_translated): Also initialize
27276         override_column.
27277         (diagnostic_build_prefix): Check override_column.
27278         * diagnostic.h (diagnostic_info): Add override_column field.
27279         (diagnostic_override_column): Define.
27280
27281 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
27282
27283         * c-common.c (c_expand_expr, c_staticp): Remove.
27284         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
27285         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
27286         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
27287         * c-gimplify.c (gimplify_compound_literal_expr,
27288         optimize_compound_literals_in_ctor): Remove.
27289         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
27290         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
27291         * c-semantics.c (emit_local_var): Remove.
27292
27293         * langhooks-def.h (lhd_expand_expr): Remove.
27294         * langhooks.c (lhd_expand_expr): Remove.
27295         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
27296
27297         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
27298         handling from c-semantics.c; don't call into langhook.
27299         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
27300         * gimplify.c (gimplify_compound_literal_expr,
27301         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
27302         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
27303         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
27304         as was done in c-gimplify.c.
27305         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
27306         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
27307         Move from c-common.h.
27308         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
27309
27310         * tree.c (staticp): Do not call langhook.
27311         * langhooks.c (lhd_staticp): Delete.
27312         * langhooks-def.h (lhd_staticp): Delete prototype.
27313         (LANG_HOOKS_STATICP): Delete.
27314         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
27315
27316         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
27317         instead of DECL_STMTs.
27318
27319 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
27320
27321         PR c/456
27322         PR c/5675
27323         PR c/19976
27324         PR c/29116
27325         PR c/31871
27326         PR c/35198
27327         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
27328         void_type_node.
27329         (fold_call_expr): Return a NOP_EXPR from folding rather than the
27330         contained expression.
27331         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
27332         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
27333         conditional expressions for C.
27334         (decl_constant_value_for_optimization): Move from
27335         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
27336         whether optimizing and that the expression is a VAR_DECL not of
27337         array type instead of doing such checks in the caller.  Do not
27338         check pedantic.  Call gcc_unreachable for C++.
27339         * c-common.def (C_MAYBE_CONST_EXPR): New.
27340         * c-common.h (c_fully_fold, c_save_expr,
27341         decl_constant_value_for_optimization): New prototypes.
27342         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
27343         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
27344         EXPR_INT_CONST_OPERANDS): Define.
27345         * c-convert.c (convert): Strip nops from expression.
27346         * c-decl.c (groktypename): Take extra parameters expr and
27347         expr_const_operands.  Update call to grokdeclarator.
27348         (start_decl): Update call to grokdeclarator.  Add statement for
27349         expressions used in type of decl.
27350         (grokparm): Update call to grokdeclarator.
27351         (push_parm_decl): Update call to grokdeclarator.
27352         (build_compound_literal): Add parameter non_const and build a
27353         C_MAYBE_COSNT_EXPR if applicable.
27354         (grokdeclarator): Take extra parameters expr and
27355         expr_const_operands.  Track expressions used in declaration
27356         specifiers and declarators.  Fold array sizes and track whether
27357         they are constant expressions and whether they are integer
27358         constant expressions.
27359         (parser_xref_tag): Set expr and expr_const_operands fields in
27360         return value.
27361         (grokfield): Update call to grokdeclarator.
27362         (start_function): Update call to grokdeclarator.
27363         (build_null_declspecs): Set expr and expr_const_operands fields in
27364         return value.
27365         (declspecs_add_type): Handle expressions in typeof specifiers.
27366         * c-parser.c (c_parser_declspecs): Set expr and
27367         expr_const_operands fields for declaration specifiers.
27368         (c_parser_enum_specifier): Likewise.
27369         (c_parser_struct_or_union_specifier): Likewise.
27370         (c_parser_typeof_specifier): Likewise.  Update call to
27371         groktypename.  Fold expression as needed.  Return expressions with
27372         type instead of adding statements.
27373         (c_parser_attributes): Update calls to c_parser_expr_list.
27374         (c_parser_statement_after_labels): Fold expression before passing
27375         to objc_build_throw_stmt.
27376         (c_parser_condition): Fold expression.
27377         (c_parser_asm_operands): Fold expression.
27378         (c_parser_conditional_expression): Use c_save_expr.  Update call
27379         to build_conditional_expr.
27380         (c_parser_alignof_expression): Update call to groktypename.
27381         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
27382         original_code.  Fold expression argument of va_arg.  Create
27383         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
27384         argument to va_arg.  Update calls to groktypename.  Fold array
27385         index for offsetof.  Verify that first argument to
27386         __builtin_choose_expr has integer type.
27387         (c_parser_postfix_expression_after_paren_type): Update calls to
27388         groktypename and build_compound_literal.  Handle expressions with
27389         side effects in type name.
27390         (c_parser_postfix_expression_after_primary): Update call to
27391         c_parser_expr_list.  Set original_code for calls to
27392         __builtin_constant_p.
27393         (c_parser_expr_list): Take extra parameter fold_p.  Fold
27394         expressions if requested.
27395         (c_parser_objc_type_name): Update call to groktypename.
27396         (c_parser_objc_synchronized_statement): Fold expression.
27397         (c_parser_objc_receiver): Fold expression.
27398         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
27399         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
27400         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
27401         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
27402         (struct c_typespec): Add elements expr and expr_const_operands.
27403         (struct c_declspecs): Add elements expr and expr_const_operands.
27404         (groktypename, build_conditional_expr, build_compound_literal):
27405         Update prototypes.
27406         (in_late_binary_op): Declare.
27407         * c-typeck.c (note_integer_operands): New function.
27408         (in_late_binary_op): New variable.
27409         (decl_constant_value_for_broken_optimization): Move to c-common.c
27410         and rename to decl_constant_value_for_optimization.
27411         (default_function_array_conversion): Do not strip nops.
27412         (default_conversion): Do not call
27413         decl_constant_value_for_broken_optimization.
27414         (build_array_ref): Do not fold result.
27415         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
27416         result when operand is a VLA.
27417         (c_expr_sizeof_type): Update call to groktypename.  Handle
27418         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
27419         result when operand names a VLA type.
27420         (build_function_call): Update call to build_compound_literal.
27421         Only fold result for calls to __builtin_* functions.  Strip
27422         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
27423         the function designator.
27424         (convert_arguments): Fold arguments.  Update call to
27425         convert_for_assignment.
27426         (build_unary_op): Handle increment and decrement of
27427         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
27428         decrement earlier.  Fold operand of increment and decrement.
27429         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
27430         built for integer operand.  Wrap returns that are INTEGER_CSTs
27431         without being integer constant expressions or that have integer
27432         constant operands without being INTEGER_CSTs.
27433         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
27434         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
27435         result is an integer constant expression or can be used in
27436         unevaluated parts of one and avoid folding and wrap as
27437         appropriate.  Fold operands before possibly doing -Wsign-compare
27438         warnings.
27439         (build_compound_expr): Wrap result for C99 if operands can be used
27440         in integer constant expressions.
27441         (build_c_cast): Update call to digest_init.  Do not ignore
27442         overflow from casting floating-point constants to integers.  Wrap
27443         results that could be confused with integer constant expressions,
27444         null pointer constants or floating-point constants.
27445         (c_cast_expr): Update call to groktypename.  Handle expressions
27446         included in type name.
27447         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
27448         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
27449         Update calls to convert_for_assignment.
27450         (convert_for_assignment): Take new parameter
27451         null_pointer_constant.  Do not strip nops or call
27452         decl_constant_value_for_broken_optimization.  Set
27453         in_late_binary_op for conversions to boolean.
27454         (store_init_value): Update call to digest_init.
27455         (digest_init): Take new parameter null_pointer_constant.  Do not
27456         call decl_constant_value_for_broken_optimization.  pedwarn for
27457         initializers not constant expressions.  Update calls to
27458         convert_for_assignment.
27459         (constructor_nonconst): New.
27460         (struct constructor_stack): Add nonconst element.
27461         (really_start_incremental_init, push_init_level, pop_init_level):
27462         Handle constructor_nonconst and nonconst element.
27463         (set_init_index): Call constant_expression_warning for array
27464         designators.
27465         (output_init_element): Fold value.  Set constructor_nonconst as
27466         applicable.  pedwarn for initializers not constant expressions.
27467         Update call to digest_init.  Call constant_expression_warning
27468         where constant initializers are required.
27469         (process_init_element): Use c_save_expr.
27470         (c_finish_goto_ptr): Fold expression.
27471         (c_finish_return): Fold return value.  Update call to
27472         convert_for_assignment.
27473         (c_start_case): Fold switch expression.
27474         (c_process_expr_stmt): Fold expression.
27475         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
27476         ensure statement expression is not evaluated in constant expression.
27477         (build_binary_op): Track whether results are integer constant
27478         expressions or may occur in such, disable folding and wrap results
27479         as applicable.  Fold operands for -Wsign-compare warnings unless
27480         in_late_binary_op.
27481         (c_objc_common_truthvalue_conversion): Handle results folded to
27482         integer constants that are not integer constant expressions.
27483         * doc/extend.texi: Document when typeof operands are evaluated,
27484         that condition of __builtin_choose_expr is an integer constant
27485         expression, and more about use of __builtin_constant_p in
27486         initializers.
27487
27488 2009-03-29  Richard Guenther  <rguenther@suse.de>
27489
27490         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
27491         propagate addresses of array references.
27492
27493 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
27494
27495         * regmove.c (perhaps_ends_bb_p): Remove.
27496         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
27497         from INSN and check that the main loop stays within that basic block.
27498         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
27499         (regmove_forward_pass): Split out from regmove_optimize.  Use
27500         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
27501         (regmove_backward_pass): Split out from regmove_optimize.  Use
27502         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
27503         (regmove_optimize): Simplify.
27504
27505 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
27506
27507         PR target/39545
27508         * config/i386/i386.c (classify_argument): Ignore flexible array
27509         member in struct and warn ABI change.
27510
27511 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
27512
27513         * config/i386/i386-protos.h (ix86_agi_dependent): New.
27514
27515         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
27516         (ix86_adjust_cost): Updated.
27517
27518 2009-03-29  Jan Hubicka  <jh@suse.cz>
27519
27520         PR middle-end/28850
27521         * tree-pass.h (pass_cleanup_eh): New function.
27522         (remove_unreachable_regions): Break code handling RTL
27523         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
27524         that can not be reached by runtime.
27525         (can_be_reached_by_runtime): New function.
27526         (label_to_region_map): New function.
27527         (num_eh_regions): New function.
27528         (rtl_remove_unreachable_regions): New function.
27529         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
27530         (remove_eh_region): New function.
27531         * except.h: Include sbitmap and vecprim.
27532         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
27533         num_eh_regions): Declare.
27534         * passes.c (init_optimization_passes): Schedule cleanup_eh.
27535         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
27536         * tree-eh.c (tree_remove_unreachable_handlers): New function.
27537         (tree_empty_eh_handler_p): New function.
27538         (cleanup_empty_eh): New function.
27539         (cleanup_eh): New function.
27540         (pass_cleanup_eh): New function.
27541
27542 2009-03-29  Jan Hubicka  <jh@suse.cz>
27543
27544         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
27545         for removed regions.
27546
27547 2009-03-29  Jan Hubicka  <jh@suse.cz>
27548
27549         * except.c (dump_eh_tree): Dump all datastructures.
27550
27551 2009-03-29  Jan Hubicka  <jh@suse.cz>
27552
27553         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
27554         (duplicate_eh_regions_1): Likewise.
27555         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
27556         vector; call EH verification.
27557         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
27558         Be ready for region being removed.
27559
27560 2009-03-29  Jan Hubicka  <jh@suse.cz>
27561
27562         * bitmap.c (bitmap_last_set_bit): New function.
27563         * bitmap.h (bitmap_last_set_bit): Declare.
27564
27565 2009-03-29  David Ayers  <ayers@fsfe.org>
27566
27567         PR objc/27377
27568         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
27569         by calling objc_compare_types and surpress warnings about
27570         incompatible C pointers that are compatible ObjC pointers.
27571
27572 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
27573
27574         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
27575         call initialize_inline_failed.
27576         (initialize_inline_failed): Move it from here ...
27577         * cgraph.c (initialize_inline_failed): ... to here.
27578         (cgraph_create_edge): Call initialize_inline_failed rather than
27579         setting inline_failed directly.
27580
27581 2009-03-29  Ben Elliston  <bje@au.ibm.com>
27582
27583         PR target/32542
27584         * sysv4.opt (msdata): Improve comment.
27585         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
27586         * sysv4.h (SVR4_ASM_SPEC): Likewise.
27587
27588 2009-03-29  Ben Elliston  <bje@au.ibm.com>
27589
27590         PR target/30451
27591         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
27592         load and store attributes.
27593
27594 2009-03-29  Ben Elliston  <bje@au.ibm.com>
27595
27596         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
27597         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
27598         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
27599         * doc/extend.texi (X86 Built-in Functions): Add index entries for
27600         __builtin_infq and __builtin_huge_valq.
27601
27602 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
27603
27604         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
27605         atmega8m1 devices.
27606         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
27607         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
27608
27609 2009-03-28  Xinliang David Li  <davidxl@google.com>
27610
27611         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
27612         (do_dbg_cnt): New function.
27613
27614 2009-03-28  Jan Hubicka  <jh@suse.cz>
27615
27616         Merge from pretty-ipa:
27617
27618         2009-03-27  Jan Hubicka  <jh@suse.cz>
27619
27620         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
27621         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
27622         * passes.c (function_called_by_processed_nodes_p): New.
27623         * ipa-pure-const.c (check_call): Fix handling of operands.
27624         (analyze_function): Dump debug output for skipped bodies.
27625         (local_pure_const): Use function_called_by_processed_nodes_p.
27626         * dwarf2out.c (reference_to_unused): Use output.
27627         * passes.c (do_per_function_toporder): Likewise.
27628
27629         2008-11-12  Jan Hubicka  <jh@suse.cz>
27630
27631         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
27632         * ipa-pure-const.c (funct_state_d): Add can throw field; make
27633         state_set_in_source enum
27634         (check_decl): Ignore memory tags; do not set fake looping flags;
27635         dump diagnostics.
27636         (check_operand, check_tree, check_rhs_var, check_lhs_var,
27637         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
27638         (check_call, analyze_function): Rewrite.
27639         (check_stmt): New.
27640         (add_new_function): Update call of analyze_function.
27641         (generate_summary): Add call of analyze_function.
27642         (propagate): Propagate can_throw; handle state_set_in_source correctly.
27643         (local_pure_const): New function.
27644         (pass_local_pure_const): New pass.
27645         * ipa-inline.c (inline_transform): Set after_inlining.
27646         * tree-eh.c (stmt_can_throw_external): New.
27647         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
27648         work with aliasing built.
27649         * tree-flow.h (stmt_can_throw_external): New.
27650         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
27651         and local pure/const pass in early and late optimization queue.
27652
27653 2009-03-28  Martin Jambor  <mjambor@suse.cz>
27654
27655         * fold-const.c (get_pointer_modulus_and_residue): New parameter
27656         allow_func_align.
27657         (fold_binary): Allow function decl aligment consideration is the
27658         second argument is integer constant one.
27659         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
27660         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
27661         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
27662
27663 2009-03-28  Jan Hubicka  <jh@suse.cz>
27664
27665         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
27666         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
27667         * function.h (rtl_data): Add nothrow flag.
27668         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
27669         set DECL_NOTHROW for AVAILABLE functions.
27670
27671 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
27672
27673         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
27674         following vector keyword has expansion starting with pixel or bool
27675         keyword, expand vector to __vector and pixel or bool to __pixel or
27676         __bool.
27677
27678         PR c++/39554
27679         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
27680         warn_if_disallowed_function_p): Removed.
27681         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
27682         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
27683         warning_if_disallowed_function_p.
27684         * flags.h (warn_if_disallowed_function_p,
27685         warn_disallowed_functions): Removed.
27686         * common.opt (Wdisallowed-function-list=): Removed.
27687         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
27688
27689 2009-03-28  Richard Guenther  <rguenther@suse.de>
27690
27691         PR tree-optimization/38723
27692         * tree-ssa-pre.c (compute_avail): Add all default definitions to
27693         the entry block.
27694
27695 2009-03-28  Jan Hubicka  <jh@suse.cz>
27696
27697         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
27698         test introduced by my previous patch.
27699
27700 2009-03-28  Richard Guenther  <rguenther@suse.de>
27701
27702         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
27703         the PHIs value undefined.
27704
27705 2009-03-28  Jan Hubicka  <jh@suse.cz>
27706
27707         * tree-pass.h (pass_fixup_cfg): New pass.
27708         * ipa-inline.c (inline_transform): Set
27709         always_inline_functions_inlined/after_inlining.
27710         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
27711         (pass_fixup_cfg): New pass.
27712         * passes.c (init_optimization_passes): Add fixup_cfg.
27713
27714 2009-03-28  Richard Guenther  <rguenther@suse.de>
27715
27716         PR tree-optimization/38458
27717         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
27718         argument use the arguments copy-of value.
27719
27720 2009-03-28  Richard Guenther  <rguenther@suse.de>
27721
27722         PR tree-optimization/38180
27723         * tree-ssa-ccp.c (get_default_value): Simplify.
27724         (likely_value): Likewise.
27725         (surely_varying_stmt_p): Properly handle VOP case.
27726         (ccp_initialize): Likewise.
27727         (ccp_fold): Handle propagating through *&.
27728         (fold_const_aggregate_ref): Also handle decls.
27729
27730 2009-03-28  Jan Hubicka  <jh@suse.cz>
27731
27732         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
27733         * cgraph.h (cgraph_node): Likewise.
27734         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
27735         (cgraph_reset_node): Use process flag.
27736         (cgraph_mark_functions_to_output): Likewise.
27737         (cgraph_expand_function): Likewise.
27738         (cgraph_expand_all_functions): Likewise.
27739         (cgraph_output_in_order): Likewise.
27740         * dwarf2out.c (reference_to_unused): Likewise.
27741         * passes.c do_per_function_toporder): Likewise.
27742
27743 2009-03-28  Jan Hubicka  <jh@suse.cz>
27744
27745         Bring from lto-branch:
27746
27747         2008-09-03  Doug Kwan  <dougkwan@google.com>
27748
27749         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
27750         enums instead of reason strings.
27751         * cgraph.c (cgraph_create_edge): Same.
27752         (cgraph_inline_failed_string): New function.
27753         * cgraph.h (cgraph_inline_failed_t): New enum type.
27754         (cgraph_inline_failed_string): New prototype.
27755         (struct cgraph_edge): Change type of INLINED_FAILED from constant
27756         char pointer to cgraph_inline_failed_t.
27757         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
27758         (cgraph_default_inline_p): Ditto.
27759         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
27760         to cgraph_inline_failed_t pointer.
27761         * cif-code.def: New file.
27762         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
27763         reason string.
27764         (cgraph_check_inline_limits): Change type of REASON to pointer to
27765         cgraph_inline_failed_t.  Replace reason strings with enums.
27766         (cgraph_default_inline_p): Ditto.
27767         (cgraph_recursive_inlining_p): Ditto.
27768         (update_caller_keys): Change type of FAILED_REASON to
27769         cgraph_inline_failed_t.
27770         (cgraph_set_inline_failed): Change type of REASON to pointer to
27771         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
27772         convert enums to strings for text output.
27773         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
27774         to be of type cgraph_inline_failed_t.  Replace reason strings with
27775         enums.  Call cgraph_inline_failed_string to covert enums
27776         to strings for text output.
27777         (cgraph_decide_inlining): Replace reason strings with enums.
27778         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
27779         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
27780         for text output.
27781         * tree-inline.c (expand_call_inline): Change type of REASON
27782         to cgraph_inline_failed_t.  Replace reason strings with enums.
27783         Call cgraph_inline_failed_string for text output.
27784         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
27785         (cgraph.o): Ditto.
27786
27787 2009-03-28  Jan Hubicka  <jh@suse.cz>
27788
27789         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
27790         cgraph_clone_node): Remove master clone handling.
27791         (cgraph_is_master_clone, cgraph_master_clone): Remove.
27792         * cgraph.h (master_clone): Remove.
27793         (cgraph_is_master_clone, cgraph_master_clone): Remove.
27794         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
27795         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
27796
27797 2009-03-28  Jan Hubicka  <jh@suse.cz>
27798
27799         * cgraph.c (cgraph_function_body_availability): Functions declared
27800         inline are always safe to assume that it is not going to be replaced.
27801
27802 2009-03-28  Richard Guenther  <rguenther@suse.de>
27803
27804         PR tree-optimization/38513
27805         * tree-ssa-pre.c (eliminate): Remove redundant stores.
27806         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
27807         EXC_PTR_EXPR and FILTER_EXPR.
27808         (get_ref_from_reference_ops): Likewise.
27809
27810 2009-03-28  Richard Guenther  <rguenther@suse.de>
27811
27812         PR tree-optimization/38968
27813         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
27814         Use FLOOR_MOD_EXPR to compute misalignment.
27815
27816 2009-03-28  Richard Guenther  <rguenther@suse.de>
27817
27818         PR tree-optimization/37795
27819         * tree.h (combine_comparisons): Declare.
27820         * fold-const.c (combine_comparisons): Export.
27821         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
27822         comparisons.
27823         (ifcombine_iforif): Use combine_comparisons.
27824
27825 2009-03-28  Jan Hubicka  <jh@suse.cz>
27826
27827         * tree-eh.c (inlinable_call_p): New function.
27828         (make_eh_edges): Use it.
27829         (verify_eh_edges): Use it.
27830         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
27831         * except.c (reachable_next_level): Add inlinable_function argument
27832         (sjlj_find_directly_reachable_regions): Update.
27833         (add_reachable_handler): Do not set saw_any_handlers.
27834         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
27835         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
27836         Add new inlinable call parameter.
27837         (can_throw_internal, can_throw_external): Update.
27838         * except.h (can_throw_internal_1, can_throw_external_1,
27839         foreach_reachable_handler): Update declaration.
27840
27841 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
27842
27843         * config/arm/t-arm-coff, config/h8300/coff.h,
27844         config/i386/i386-aout.h, config/i386/i386-coff.h,
27845         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
27846         config/pdp11/2bsd.h, config/rs6000/aix41.h,
27847         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
27848         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
27849         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
27850         sys-types.h: Remove.
27851         * Makefile.in: Remove protoize and fixproto support and references
27852         in comments.
27853         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
27854         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
27855         Remove.
27856         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
27857         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
27858         unprotoize$(exeext).
27859         (rest.encap): Don't depend on $(STMP_FIXPROTO)
27860         (.PHONY): Don't depend on proto.
27861         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
27862         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
27863         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
27864         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
27865         build/gen-protos.o, build/scan.o, xsys-protos.h,
27866         build/fix-header$(build_exeext), build/fix-header.o,
27867         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
27868         stmp-install-fixproto): Remove.
27869         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
27870         SYSCALLS.c or fixproto files.
27871         (install-common): Don't install protoize.
27872         (install-headers-tar, install-headers-cpio, install-headers-cp):
27873         Don't depend on $(STMP_FIXPROTO).
27874         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
27875         install fixproto files or write out fixproto settings.
27876         (uninstall): Don't uninstall protoize.
27877         * config.gcc (use_fixproto): Remove.
27878         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
27879         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
27880         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
27881         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
27882         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
27883         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
27884         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
27885         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
27886         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
27887         * config/t-vxworks (STMP_FIXPROTO): Remove.
27888         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
27889         STMP_FIXPROTO): Remove.
27890         * config.in, configure: Regenerate.
27891         * crtstuff.c (gid_t, uid_t): Don't undefine.
27892         * doc/install.texi: Change m68k-coff to m68k-elf in example.
27893         (arm-*-coff, arm-*-aout: Remove target entries.
27894         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
27895         Remove mention of AIX 4.1.
27896         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
27897         * doc/invoke.texi (Running Protoize): Remove.
27898         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
27899         (Protoize Caveats): Remove.
27900         * tsystem.h: Update comments on headers assumed to exist.
27901
27902 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
27903
27904         * genautomata.c: Add a new year to the copyright.  Add a new
27905         reference.
27906         (struct insn_reserv_decl): Add comments for member bypass_list.
27907         (find_bypass): Remove.
27908         (insert_bypass): New.
27909         (process_decls): Use insert_bypass.
27910         (output_internal_insn_latency_func): Output all bypasses with the
27911         same input insn in one switch case.
27912
27913         * rtl.def (define_bypass): Describe bypass choice.
27914         * doc/md.texi (define_bypass): Ditto.
27915
27916 2009-03-27  Richard Guenther  <rguenther@suse.de>
27917
27918         * gimplify.c (mark_addressable): Export.
27919         * tree-flow.h (mark_addressable): Declare.
27920         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
27921         * tree-ssa.c (verify_phi_args): Verify that address taken
27922         variables have TREE_ADDRESSABLE set.
27923
27924 2009-03-27  Richard Guenther  <rguenther@suse.de>
27925
27926         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
27927         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
27928         Do not mark decls TREE_ADDRESSABLE.
27929         (build_fold_addr_expr): Adjust.
27930         (fold_addr_expr): Remove.
27931         (fold_unary): Use build_fold_addr_expr.
27932         (fold_comparison): Likewise.
27933         (split_address_to_core_and_offset): Likewise.
27934         * coverage.c (tree_coverage_counter_addr): Mark the array decl
27935         TREE_ADDRESSABLE.
27936         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
27937         (gimplify_modify_expr_to_memcpy): Mark source and destination
27938         addressable.
27939         * omp-low.c (create_omp_child_function): Mark the object decl
27940         TREE_ADDRESSABLE.
27941         (lower_rec_input_clauses): Mark the var we take the address of
27942         TREE_ADDRESSABLE.
27943         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
27944
27945 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27946
27947         PR middle-end/39315
27948         * cfgexpand.c (expand_one_stack_var_at): Change alignment
27949         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
27950
27951 2009-03-27  Richard Guenther  <rguenther@suse.de>
27952
27953         PR tree-optimization/39120
27954         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
27955         constraints.
27956         (handle_lhs_call): Process return constraints.  Add escape
27957         constraints if necessary.
27958         (handle_const_call): Fill out return constraints.  Make nested
27959         case more precise.  Avoid consttmp if possible.
27960         (handle_pure_call): Fill out return constraints.  Avoid
27961         callused if possible.
27962         (find_func_aliases): Simplify call handling.
27963
27964 2009-03-27  Richard Guenther  <rguenther@suse.de>
27965
27966         PR tree-optimization/39120
27967         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
27968         as a representative.
27969         (solve_graph): Do propagate CALLUSED.
27970         (handle_pure_call): Use a scalar constraint from CALLUSED for
27971         the return value.
27972         (find_what_p_points_to): CALLUSED shall not appear in poins-to
27973         solutions.
27974
27975 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27976
27977         PR c/39323
27978         * c-common.c (handle_aligned_attribute): Properly check alignment
27979         overflow.  Use (1U << i) instead of (1 << i).
27980
27981         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
27982
27983         * expr.h (get_mem_align_offset): Updated.
27984
27985         * tree.h (tree_decl_common): Change align to "unsigned int" and
27986         move it before pointer_alias_set.
27987
27988 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27989             Jakub Jelinek  <jakub@redhat.com>
27990
27991         PR target/38034
27992         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
27993         gr_register_operand with gr_reg_or_0_operand.
27994         (cmpxchg_rel_di): Likewise.
27995         (sync_lock_test_and_set<mode>): Likewise.
27996
27997 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27998
27999         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
28000         (true_regnum): Likewise.
28001
28002         * rtlanal.c (subreg_info): Moved to ...
28003         * rtl.h (subreg_info): Here.  New.
28004         (subreg_get_info): New.
28005
28006         * rtlanal.c (subreg_get_info): Make it extern.
28007
28008 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
28009
28010         PR target/39472
28011         * config/i386/i386.c (ix86_abi): New.
28012         (override_options): Handle -mabi=.
28013         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
28014         (ix86_call_abi_override): Likewise.
28015         (init_cumulative_args): Likewise.
28016         (function_arg_advance): Likewise.
28017         (function_arg_64): Likewise.
28018         (function_arg): Likewise.
28019         (ix86_pass_by_reference): Likewise.
28020         (ix86_function_value_regno_p): Likewise.
28021         (ix86_build_builtin_va_list_abi): Likewise.
28022         (setup_incoming_varargs_64): Likewise.
28023         (is_va_list_char_pointer): Likewise.
28024         (ix86_init_machine_status): Likewise.
28025         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
28026         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
28027         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
28028         (ix86_function_abi): Make it static and return enum calling_abi.
28029         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
28030         with ix86_abi.
28031         (ix86_fn_abi_va_list): Updated.
28032
28033         * config/i386/i386.h (ix86_abi): New.
28034         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
28035         (CONDITIONAL_REGISTER_USAGE): Likewise.
28036         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
28037         (machine_function): Likewise.
28038
28039         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
28040         with ix86_abi.
28041         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
28042         (STACK_BOUNDARY): Likewise.
28043         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
28044
28045         * config/i386/i386.opt (mabi=): New.
28046
28047         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
28048         return enum calling_abi.
28049         (ix86_function_type_abi): Likewise.
28050         (ix86_function_abi): Removed.
28051
28052         * doc/invoke.texi: Document -mabi= option for x86.
28053
28054 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
28055
28056         * builtins.c (real_dconstp): Delete.
28057         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
28058
28059 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
28060             Jakub Jelinek  <jakub@redhat.com>
28061
28062         PR debug/37959
28063         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
28064         (gen_subprogram_die): When a function is explicit, generate the
28065         DW_AT_explicit attribute.
28066         * langhooks.h (struct lang_hooks_for_decls): Add
28067         function_decl_explicit_p langhook.
28068         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
28069         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
28070
28071 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
28072
28073         * builtins.c (fold_builtin_memory_op): Optimize memmove
28074         into memcpy if we can prove source and destination don't overlap.
28075
28076         * tree-inline.c: Include gt-tree-inline.h.
28077         (clone_fn_id_num): New variable.
28078         (clone_function_name): New function.
28079         (tree_function_versioning): Use it.
28080         * Makefile.in (GTFILES): Add tree-inline.c.
28081
28082 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
28083
28084         * BASE-VER: Change to 4.5.0.
28085
28086 2009-03-27  Xinliang David Li  <davidxl@google.com>
28087
28088         PR tree-optimization/39557
28089         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
28090
28091 2009-03-27  Xinliang David Li  <davidxl@google.com>
28092
28093         PR tree-optimization/39548
28094         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
28095         candidate check.
28096
28097 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
28098
28099         * c-common.c (pointer_int_sum): Use %wd on return from
28100         tree_low_cst.
28101
28102 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
28103
28104         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
28105         on return from tree_low_cst.
28106
28107 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
28108
28109         PR c++/36799
28110         * ginclude/stdarg.h (va_copy): Define also for
28111         __GXX_EXPERIMENTAL_CXX0X__.
28112
28113 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
28114
28115         PR c++/35652
28116         * builtins.h (c_strlen): Do not warn here.
28117         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
28118         * c-common.c (pointer_int_sum): Take an explicit location.
28119         Warn about offsets out of bounds.
28120         * c-common.h (pointer_int_sum): Adjust declaration.
28121
28122 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28123
28124         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
28125         markup glitch.
28126
28127 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
28128
28129         PR c++/39554
28130         * opts.c (warn_if_disallowed_function_p): Don't assume
28131         get_callee_fndecl must return non-NULL.
28132
28133 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
28134
28135         PR rtl-optimization/39522
28136         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
28137         when reg_reloaded_valid is set.
28138
28139 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28140
28141         * config/spu/divv2df3.c: New file.
28142         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
28143         (DPBIT_FUNCS): Filter out _div_df.
28144
28145 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
28146
28147         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
28148         a jump insn, count that jump in the distance to the loop start.
28149
28150 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
28151
28152         PR target/39523
28153         * config/sh/sh.c (calc_live_regs): Fix condition for global
28154         registers except PIC_OFFSET_TABLE_REGNUM.
28155
28156 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
28157
28158         PR/39518
28159         * doc/invoke.texi (-mconsole): New.
28160         (-mcygwin): New.
28161         (-mno-cygwin): New.
28162         (-mdll): New.
28163         (-mnop-fun-dllimport): New.
28164         (-mthread): New.
28165         (-mwin32): New.
28166         (-mwindows): New.
28167         (sub section "i386 and x86-64 Windows Options"): New.
28168
28169 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
28170
28171         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
28172         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
28173
28174 2009-03-25  Richard Guenther  <rguenther@suse.de>
28175
28176         PR middle-end/39497
28177         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
28178         of -Wno-error.
28179
28180 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
28181
28182         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
28183         neither of haifa/selective schedulers are working.
28184
28185 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28186
28187         * doc/invoke.texi (Debugging Options): Fix description of
28188         -fno-merge-debug-strings.
28189
28190 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
28191
28192         * config/cris/libgcc.ver: New version-script.
28193         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
28194
28195         * configure.ac <GAS features, nop mnemonic>: Add pattern
28196         crisv32-*-* for "nop".
28197         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
28198         * configure: Regenerate.
28199
28200 2009-03-24  Ira Rosen  <irar@il.ibm.com>
28201
28202         PR tree-optimization/39529
28203         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
28204         mark_sym_for_renaming for the tag copied to the new vector
28205         pointer.
28206
28207 2009-03-24  Arthur Loiret  <aloiret@debian.org>
28208
28209         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
28210         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
28211         EXTRA_SPEC_FUNCTIONS.
28212         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
28213         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
28214         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
28215         -march and -mtune options.
28216
28217 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
28218
28219         * config/m68k/t-rtems: Add m5329 multilib.
28220
28221 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
28222             Jakub Jelinek  <jakub@redhat.com>
28223
28224         PR debug/39524
28225         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
28226         nodes.
28227
28228 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
28229
28230         PR c/39495
28231         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
28232         instead of c_parser_expression_conv, if original_code isn't one of the
28233         4 allowed comparison codes, fail.
28234
28235 2009-03-23  Richard Guenther  <rguenther@suse.de>
28236
28237         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
28238         * tree.h (struct tree_type): Likewise.
28239         * reload.h (struct insn_chain): Likewise.
28240         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
28241         * function.h (struct function): Likewise.
28242         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
28243
28244 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
28245
28246         PR tree-optimization/39516
28247         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
28248
28249 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
28250
28251         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
28252         should be set true if BITS_PER_WORD of target is bigger than 32
28253
28254 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
28255
28256         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
28257         Translate -B-options to -rpath-link.  Correct existing
28258         rpath-link and conditionalize on !nostdlib.
28259
28260 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28261
28262         * doc/extend.texi (Function Attributes, Variable Attributes):
28263         Fix typos.
28264         * doc/invoke.texi (Debugging Options, Optimize Options)
28265         (i386 and x86-64 Options, MCore Options): Likewise.
28266
28267 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
28268
28269         PR debug/37890
28270         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
28271         it for block local namespace aliases.
28272         (gen_decl_die): Pass context_die to gen_namespace_die.
28273
28274 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
28275
28276         PR c/39495
28277         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
28278         minimum or maximum value.
28279
28280 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
28281
28282         * reginfo.c (globalize_reg): Recompute derived reg sets.
28283
28284 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
28285
28286         PR target/39063
28287         * libgcc2.c (mprotect): Do not use signed arguments for
28288         VirtualProtect, use DWORD arguments.  Also fix the 'may
28289         be used uninitialized' warning for the np variable.
28290
28291 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
28292
28293         PR target/39496
28294         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
28295         functions using regparm calling conventions when not optimizing.
28296         (ix86_function_sseregparm): Similarly for sseregparm calling
28297         conventions.
28298
28299 2009-03-19  Li Feng  <nemokingdom@gmail.com>
28300
28301         PR middle-end/39500
28302         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
28303         dependence if the first conflict is after niter iterations.
28304
28305 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
28306
28307         PR middle-end/38609
28308         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
28309         functions with dynamic stack-pointer adjustments.
28310
28311 2009-03-19  Ben Elliston  <bje@au.ibm.com>
28312
28313         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
28314         option; change to -msdata=data.
28315
28316 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28317
28318         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
28319         and -fopenmp.
28320
28321 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
28322
28323         PR target/35180
28324         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
28325
28326 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
28327
28328         * doc/invoke.texi (Code Gen Options): Expand discussion of
28329         -fno-common.
28330
28331 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
28332
28333         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
28334         * matrix-reorg.c (struct matrix_info): Likewise.
28335         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
28336         * rtl.h (struct mem_attrs): Likewise.
28337         * df.h (struct df): Likewise.
28338         * tree-data-ref.h (struct data_dependence_relation): Likewise.
28339         * ira-int.h (struct ira_allocno): Likewise.
28340         * df-scan.c (struct df_collection_rec): Likewise.
28341         * ira.c (struct equivalence): Likewise.
28342         * function.c (struct temp_slot): Likewise.
28343         * cfgloop.h (struct loop): Likewise.
28344
28345         PR debug/39485
28346         * function.c (use_register_for_decl): When not optimizing, disregard
28347         register keyword for variables with types containing methods.
28348
28349 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
28350
28351         PR middle-end/39447
28352         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
28353         (is_simple_operand): Call contains_component_ref_p before calling data
28354         reference analysis that would fail on COMPONENT_REFs.
28355
28356         * tree-vrp.c (search_for_addr_array): Fix formatting.
28357
28358 2009-03-18  Richard Guenther  <rguenther@suse.de>
28359
28360         * tree-vect-transform.c (vect_loop_versioning): Fold the
28361         generated comparisons.
28362         * tree-vectorizer.c (set_prologue_iterations): Likewise.
28363         (slpeel_tree_peel_loop_to_edge): Likewise.
28364
28365 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28366
28367         PR middle-end/37805
28368         * opts.c (print_specific_help): In addition to `undocumented',
28369         accept `separate' and `joined' flags if passed alone.  Describe
28370         output by the first matched one of those.
28371         (common_handle_option): Skip over empty strings.
28372         * gcc.c (display_help): Fix help string for `--help='.
28373         * doc/invoke.texi (Option Summary, Overall Options): With
28374         `--help=', classes and qualifiers can both be repeated, but
28375         only the latter can be negated.  One should not pass only
28376         negated qualifiers.  Fix markup and examples.
28377
28378         Revert
28379         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
28380         PR middle-end/37805
28381         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
28382         and -fhelp=separate.
28383
28384 2009-03-17  Jing Yu  <jingyu@google.com>
28385
28386         PR middle-end/39378
28387         * function.h (struct rtl_data): Move is_thunk from here...
28388         (struct function): ...to here.
28389         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
28390         * varasm.c (assemble_start_function): Change is_thunk from crtl to
28391         cfun.
28392         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
28393         cfun.
28394         (alpha_does_function_need_gp, alpha_start_function): Likewise.
28395         (alpha_output_function_end_prologue): Likewise.
28396         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
28397         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
28398         (rs6000_output_function_epilogue): Likewise.
28399         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
28400
28401 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
28402
28403         PR target/39482
28404         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
28405         from different units in a single alternative.
28406         (*truncdfsf_i387): Ditto.
28407         (*truncxfsf2_mixed): Ditto.
28408         (*truncxfdf2_mixed): Ditto.
28409
28410 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
28411
28412         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
28413         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
28414
28415         PR debug/39474
28416         * tree-ssa-live.c (remove_unused_locals): Don't remove local
28417         unused non-artificial variables when not optimizing.
28418
28419         PR debug/39471
28420         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
28421         DW_TAG_imported_module even if decl is IMPORTED_DECL with
28422         NAMESPACE_DECL in its DECL_INITIAL.
28423
28424         PR middle-end/39443
28425         * optabs.c (set_user_assembler_libfunc): New function.
28426         * expr.h (set_user_assembler_libfunc): New prototype.
28427         * c-common.c: Include libfuncs.h.
28428         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
28429         for memcmp, memset, memcpy, memmove and abort.
28430         * Makefile.in (c-common.o): Depend on libfuncs.h.
28431
28432         PR debug/39412
28433         * dwarf2out.c (gen_inlined_enumeration_type_die,
28434         gen_inlined_structure_type_die, gen_inlined_union_type_die,
28435         gen_tagged_type_instantiation_die): Removed.
28436         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
28437         do nothing.
28438
28439 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
28440
28441         PR testsuite/38526
28442         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
28443         its use.
28444         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
28445         (check-parallel-%): Ditto.
28446         (check-consistency): Ditto.
28447
28448 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
28449
28450         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
28451         local variable rhs by NULL_TREE.
28452
28453 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
28454
28455         PR target/39477
28456         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
28457
28458 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
28459
28460         PR target/39476
28461         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
28462
28463 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
28464
28465         PR target/39473
28466         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
28467         for ms->sysv ABI calls only in 64bit mode.
28468
28469         * config/i386/i386.md (untyped_call): Support 32bit.
28470
28471 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28472
28473         * doc/extend.texi: Replace x86_65 with x86_64.
28474
28475 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
28476
28477         PR tree-optimization/39455
28478         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
28479         mismatches for POINTER_TYPE_P (type).
28480         (number_of_iterations_le): Likewise.
28481
28482 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
28483
28484         * config/picochip/picochip.c: Removed profiling support.
28485         * config/picochip/picochip.md: Removed profiling instruction.
28486         * config/picochip/picochip.h: Removed profiling builtin.
28487
28488 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
28489
28490         * doc/install.texi (--with-host-libstdcxx): Document.
28491
28492 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
28493
28494         PR target/34299
28495         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
28496         generate a warning if the function name does not begin with
28497         "__vector" and the function has either the 'signal' or 'interrupt'
28498         attribute, from here to ...
28499         (avr_declare_function_name): ...here. New function.
28500         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
28501         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
28502
28503 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
28504
28505         PR bootstrap/39454
28506         * cse.c (fold_rtx): Don't modify original const_arg1 when
28507         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
28508         separate variable instead.
28509         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
28510         from out of range shift counts.
28511         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
28512
28513 2009-03-13  Catherine Moore  <clm@codesourcery.com>
28514
28515         * config/i386/x-mingw32 (host-mingw32.o): Replace
28516         diagnostic.h with $(DIAGNOSTIC_H).
28517
28518 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
28519
28520         PR target/39431
28521         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
28522         predicate.
28523         * config/i386/sync.md (sync_compare_and_swap<mode>,
28524         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
28525         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
28526         into a register.
28527         (sync_double_compare_and_swapdi_pic,
28528         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
28529         cmpxchg8b_pic_memory_operand instead of just memory_operand.
28530
28531 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
28532
28533         PR target/39445
28534         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
28535
28536 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
28537
28538         PR target/39327
28539         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
28540         (avx_addsubv4df3): Likewise.
28541         (*avx_addsubv4sf3): Likewise.
28542         (sse3_addsubv4sf3): Likewise.
28543
28544 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
28545
28546         PR target/38824
28547         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
28548
28549 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
28550
28551         PR debug/39432
28552         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
28553         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
28554         registers for allocnos created from user-defined variables.
28555
28556 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28557
28558         PR target/39181
28559         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
28560         of non-integer mode as well.
28561
28562 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
28563
28564         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
28565         for functions for which the parameter types are unknown.
28566
28567 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
28568
28569         PR target/39137
28570         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
28571         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
28572         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
28573         * config/i386/i386.c (ix86_local_alignment): For
28574         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
28575         long long variables on the stack to avoid dynamic realignment.
28576         Allow the first argument to be a decl rather than type.
28577         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
28578
28579 2009-03-11  Nick Clifton  <nickc@redhat.com>
28580
28581         PR target/5362
28582         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
28583         options.
28584         Add description to mno-lsim option.
28585         * config/mcore/mcore.h: Remove comment about deprecated m4align
28586         option.
28587         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
28588         * doc/invoke.texi: Add description of mno-lsim and
28589         mstack-increment options.
28590
28591         * config/fr30/fr30.opt: Document the -mno-lsim option.
28592         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
28593         and -mno-lsim options.
28594
28595 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28596
28597         * fold-const.c (fold_comparison): Only call fold_inf_compare
28598         if the mode supports infinities.
28599
28600 2009-03-11  Jason Merrill  <jason@redhat.com>
28601
28602         PR debug/39086
28603         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
28604         end already did.  Notice GIMPLE_CALL modifications of the result.
28605         Don't copy debug information from an ignored decl or a decl from
28606         another function.
28607
28608 2009-03-10  Richard Guenther  <rguenther@suse.de>
28609             Nathan Froyd  <froydnj@codesourcery.com>
28610
28611         PR middle-end/37850
28612         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
28613         (__divMODE3): Likewise.
28614
28615 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
28616
28617         PR tree-optimization/39394
28618         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
28619         DECL_SIZE_UNIT of variable length FIELD_DECLs.
28620
28621 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28622
28623         * recog.c (verfiy_changes): Disallow renaming of hard regs in
28624         inline asms for register asm ("") declarations.
28625
28626 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
28627
28628         * fold-const.c (fold_unary): Fix comment.
28629
28630 2009-03-07  Jan Hubicka  <jh@suse.cz>
28631
28632         PR target/39361
28633         * tree-inline.c (setup_one_parameter): Do replacement of const
28634         argument by constant in SSA form.
28635
28636 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28637
28638         PR middle-end/38028
28639         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
28640         determine alignment passed to assign_stack_local.
28641         (assign_parms_unsplit_complex): Likewise.
28642         * except.c (sjlj_build_landing_pads): Likewise.
28643
28644 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
28645
28646         PR middle-end/39360
28647         * tree-flow.h (add_referenced_var): Return bool instead of void.
28648         * tree-dfa.c (add_referenced_var): Return result of
28649         referenced_var_check_and_insert call.
28650         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
28651         of referenced_var_check_and_insert.
28652
28653         PR debug/39372
28654         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
28655         (gen_variable_die): Emit DW_AT_location on abstract static variable's
28656         DIE, don't emit it if abstract origin already has it.
28657         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
28658         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
28659
28660 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
28661
28662         * genpreds.c (needs_variable): Fix parentheses at variable name
28663         detection.
28664         (write_tm_constrs_h): Indent generated code.
28665
28666 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28667
28668         * doc/extend.texi (Function Attributes): Add documentation
28669         for isr attributes.
28670
28671 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
28672
28673         PR debug/39387
28674         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
28675         take locus from its DECL_SOURCE_LOCATION instead of input_location.
28676
28677 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
28678
28679         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
28680         the loop as bad.
28681
28682 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
28683
28684         PR debug/39379
28685         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
28686         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
28687
28688 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
28689
28690         * config/i386/i386.md (R8_REG, R9_REG): New constants.
28691         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
28692         constants instead of magic numbers.
28693         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
28694         (QI_REG_P): Ditto.
28695         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
28696         (x86_64_ms_abi_int_parameter_registers): Ditto.
28697         (x86_64_int_return_registers): Ditto.
28698         (ix86_maybe_switch_abi): Ditto.
28699         (ix86_expand_call): Ditto for clobbered_registers array.
28700         (ix86_hard_regno_mode_ok): Ditto.
28701         (x86_extended_QIreg_mentioned_p): Ditto.
28702
28703 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
28704
28705         PR tree-optimization/39349
28706         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
28707
28708         * combine.c (gen_lowpart_for_combine): Use omode when generating
28709         clobber.
28710
28711 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
28712
28713         PR rtl-optimization/39235
28714         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
28715
28716 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
28717
28718         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
28719
28720 2009-03-04  Richard Guenther  <rguenther@suse.de>
28721
28722         PR tree-optimization/39362
28723         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
28724         that occur in abnormal PHIs should be varying.
28725
28726 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
28727
28728         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
28729         Extend comments.
28730         (simple_iv):  Take loop as an argument instead of statement.
28731         * tree-scalar-evolution.h (simple_iv): Declaration changed.
28732         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
28733         to simple_iv.
28734         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
28735         Ditto.
28736         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
28737         * matrix-reorg.c (analyze_transpose): Ditto.
28738         * tree-data-ref.c (dr_analyze_innermost): Ditto.
28739         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
28740         * tree-predcom.c (ref_at_iteration): Ditto.
28741         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
28742
28743 2009-03-04  Richard Guenther  <rguenther@suse.de>
28744
28745         PR tree-optimization/39358
28746         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
28747         escaped_id and callused_id.
28748         (solve_graph): Likewise.
28749
28750 2009-03-04  Richard Guenther  <rguenther@suse.de>
28751
28752         PR tree-optimization/39339
28753         * tree-sra.c (try_instantiate_multiple_fields): Make it
28754         no longer ICE on the above.
28755
28756 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
28757
28758         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
28759         that fits within Pmode.
28760
28761 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
28762
28763         PR middle-end/10109
28764         * tm.texi (LIBCALL_VALUE): Update description.
28765
28766 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
28767
28768         PR middle-end/34443
28769         * doc/extend.texi (section): Update description.
28770
28771 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
28772
28773         PR middle-end/39345
28774         * tree-inline.c (remapped_type): New.
28775         (can_be_nonlocal): Call remapped_type instead of remap_type.
28776
28777 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
28778
28779         PR fortran/39354
28780         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
28781         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
28782
28783 2009-03-03  Richard Guenther  <rguenther@suse.de>
28784
28785         PR middle-end/39272
28786         * tree.c (tree_nonartificial_location): New function.
28787         * tree.h (tree_nonartificial_location): Declare.
28788         * builtins.c (expand_builtin_memory_chk): Provide location
28789         of the call location for artificial function pieces.
28790         (maybe_emit_chk_warning): Likewise.
28791         (maybe_emit_sprintf_chk_warning): Likewise.
28792         (maybe_emit_free_warning): Likewise.
28793         * expr.c (expand_expr_real_1): Likewise.
28794
28795 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
28796
28797         PR tree-optimization/39343
28798         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
28799         COMPONENT_REF t has ARRAY_TYPE.
28800
28801 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
28802
28803         PR middle-end/39335
28804         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
28805         when the type precision of the induction variable should be
28806         larger than the type precision of nit.
28807         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
28808         * graphite.c (graphite_loop_normal_form): Same.
28809         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
28810
28811 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
28812
28813         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
28814         (*call_1_rex64_ms_sysv): Use named constants instead of magic
28815         numbers to describe clobbered registers.
28816         (*call_value_0_rex64_ms_sysv): Ditto.
28817         * config/i386/mmx.md (mmx_emms): Ditto.
28818         (mmx_femms): Ditto.
28819
28820 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
28821
28822         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
28823         of ABI_64.
28824
28825 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28826
28827         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
28828         (spu_section_type_flags): New function.
28829
28830 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
28831
28832         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
28833         reg_class_contents of FLOAT_REGS into a temporary.
28834
28835 2009-03-02  Richard Guenther  <rguenther@suse.de>
28836             Ira Rosen  <irar@il.ibm.com>
28837
28838         PR tree-optimization/39318
28839         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
28840         information to the vectorized statement.
28841
28842 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
28843
28844         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
28845         variable.  Use defined names instead of magic constants for REX SSE
28846         registers.
28847
28848 2009-03-01  Richard Guenther  <rguenther@suse.de>
28849
28850         PR tree-optimization/39331
28851         * omp-low.c (lower_send_shared_vars): Do not receive new
28852         values for the reference of DECL_BY_REFERENCE parms or results.
28853
28854 2009-03-01  Jan Hubicka  <jh@suse.cz>
28855
28856         PR debug/39267
28857         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
28858         BLOCK_NONLOCALIZED_VAR): New macros.
28859         (tree_block): Add nonlocalized_vars.
28860         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
28861         gen_decl_die): Add origin argument.  Allow generation of die with
28862         origin at hand only.
28863         (gen_member_die, gen_type_die_with_usage, force_decl_die,
28864         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
28865         of gen_*.
28866         (gen_block_die): Fix checking for unused blocks.
28867         (process_scope_var): Break out from .... ; work with origins only.
28868         (decls_for_scope) ... here; process nonlocalized list.
28869         (dwarf2out_ignore_block): Look for nonlocalized vars.
28870         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
28871         vars.
28872         (dump_scope_block): Dump them.
28873         * tree-inline.c (remap_decls): Handle nonlocalized vars.
28874         (remap_block): Likewise.
28875         (can_be_nonlocal): New predicate.
28876         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
28877
28878 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28879
28880         * configure: Regenerate.
28881
28882 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28883
28884         * optc-gen.awk: No need to duplicate option flags twice.
28885         Reuse help texts for duplicate options which do not have any.
28886
28887         * gcc.c (display_help): Document --version.
28888
28889         * gcc.c (main): If print_help_list and verbose_flag, ensure
28890         driver output comes before subprocess output.
28891
28892         * optc-gen.awk: Assign all remaining fields to help string,
28893         space-separated, for multi-line help in *.opt.
28894
28895         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
28896         -Wno-pedantic-ms-format is for MinGW targets only.
28897
28898         * doc/options.texi (Option file format): Fix bad indentation,
28899         restoring dropped sentence.
28900
28901 2009-02-28  Jan Hubicka  <jh@suse.cz>
28902
28903         * tree-inline.c (tree_function_versioning): Output debug info.
28904
28905 2009-02-28  Jan Hubicka  <jh@suse.cz>
28906
28907         PR debug/39267
28908         * tree-inline.c (setup_one_parameter): Do not copy propagate
28909         arguments when not optimizing.
28910
28911 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
28912
28913         PR target/39327
28914         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
28915         (avx_addsubv4df3): Likewise.
28916         (*avx_addsubv4sf3): Likewise.
28917         (sse3_addsubv4sf3): Likewise.
28918         (*avx_addsubv2df3): Likewise.
28919         (sse3_addsubv2df3): Likewise.
28920         (avx_unpckhps256): Correct item selectors.
28921         (avx_unpcklps256): Likewise.
28922         (avx_unpckhpd256): Likewise.
28923         (avx_unpcklpd256): Likewise.
28924
28925 2009-02-28  Jan Hubicka  <jh@suse.cz>
28926
28927         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
28928         static vars.
28929         (copy_arguments_for_versioning): If var is declared don't declare it.
28930         (tree_function_versioning): First setup substitutions and then copy
28931         args.
28932
28933 2009-02-27  Jan Hubicka  <jh@suse.cz>
28934
28935         PR debug/39267
28936         * cgraph.h (varpool_output_debug_info): Remove.
28937         * cgraphunit.c (varpool_output_debug_info): Remove.
28938         * dwarf2out.c (deferred_locations_struct): New struct
28939         (deferred_locations): New type.
28940         (deferred_locations_list): New static var.
28941         (deffer_location): New function.
28942         (gen_variable_die): Use it.
28943         (decls_for_scope): Output info on local static vars.
28944         (dwarf2out_finish): Process deferred locations.
28945         * varpool.c (varpool_output_debug_info): Remove.
28946
28947 2009-02-27  Jan Hubicka  <jh@suse.cz>
28948
28949         PR debug/39267
28950         * tree.h (TREE_PROTECTED): Fix comment.
28951         (BLOCK_HANDLER_BLOCK): Remove.
28952         (struct tree_block): Remove handler_block add body_block.
28953         (inlined_function_outer_scope_p): New.
28954         (is_body_block): Remove.
28955         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
28956         * dwarf2out.c (is_inlined_entry_point): Remove.
28957         (add_high_low_attributes): Use inlined_function_outer_scope_p.
28958         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
28959         code.
28960         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
28961         * gimplify.c (gimplify_expr): Gimplify body blocks.
28962         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
28963         block with multiple subblocks.
28964         (dump_scope_block): Prettier output; dump more flags and info.
28965         (dump_scope_blocks): New.
28966         (remove_unused_locals): Use dump_scope_blocks.
28967         * tree-flow.h (dump_scope_blocks): Declare.
28968         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
28969         * stmt.c (is_body_block): Remove.
28970         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
28971         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
28972
28973 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
28974
28975         PR middle-end/39308
28976         * graphite.c (graphite_loop_normal_form): Do not call
28977         number_of_iterations_exit from a gcc_assert.
28978
28979 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28980
28981         * config/s390/s390.c (s390_swap_cmp): Look for conditional
28982         jumps if COND is NULL.
28983         (find_cond_jump): New function.
28984         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
28985         * config/s390/s390.md: Remove z10_cobra attribute value.
28986
28987 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
28988
28989         * config/alpha/alpha.h (alpha_expand_mov): Return false if
28990         force_const_mem returns NULL_RTX.
28991
28992 2009-02-26  Jan Hubicka  <jh@suse.cz>
28993
28994         PR debug/39267
28995         * cgraph.h (varpool_output_debug_info): Remove.
28996         * cgraphunit.c (varpool_output_debug_info): Remove.
28997         * dwarf2out.c (deferred_locations_struct): New struct
28998         (deferred_locations): New type.
28999         (deferred_locations_list): New static var.
29000         (deffer_location): New function.
29001         (gen_variable_die): Use it.
29002         (decls_for_scope): Output info on local static vars.
29003         (dwarf2out_finish): Process deferred locations.
29004         * varpool.c (varpool_output_debug_info): Remove.
29005
29006 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
29007
29008         PR rtl-optimization/39241
29009         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
29010         to subreg_offset_representable_p.
29011
29012 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
29013
29014         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
29015         execute function prototype.  Get f and nregs from max_reg_num
29016         and get_insns.  Remove the first backward pass as it's dead,
29017         guard the forward pass by flag_expensive_optimizations.
29018         (rest_of_handle_regmove): Delete.
29019         (pass_regmove): Replace it with regmove_optimize.
29020
29021 2009-02-25  Martin Jambor  <mjambor@suse.cz>
29022
29023         PR tree-optimization/39259
29024         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
29025         calls_alloca function flags.
29026         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
29027         calls are detected.
29028
29029 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
29030
29031         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
29032         flags_set_1_rtx, flags_set_1_set): Delete.
29033         (regmove_optimize): Do not call mark_flags_life_zones.
29034
29035 2009-02-24  Julian Brown  <julian@codesourcery.com>
29036
29037         PR target/35965
29038         * config/arm/arm.c (require_pic_register): Only set
29039         cfun->machine->pic_reg once per function.
29040
29041 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
29042
29043         * doc/invoke.texi (Link Options): Document an easier way to pass
29044         options that take arguments to the GNU linker using -Xlinker and -Wl.
29045
29046 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
29047
29048         PR target/33785
29049         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
29050
29051 2009-02-24  Richard Guenther  <rguenther@suse.de>
29052
29053         PR debug/39285
29054         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
29055
29056 2009-02-24  Richard Guenther  <rguenther@suse.de>
29057             Zdenek Dvorak  <ook@ucw.cz>
29058
29059         PR tree-optimization/39233
29060         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
29061         from converting them to a generic type.
29062
29063 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
29064
29065         PR tree-optimization/39260
29066         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
29067         contains a condition with a real type.
29068         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
29069
29070 2009-02-23  Jason Merrill  <jason@redhat.com>
29071
29072         PR c++/38880
29073         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
29074         narrowing_initializer_constant_valid_p.
29075         (narrowing_initializer_constant_valid_p): Don't return
29076         null_pointer_node for adding a pointer to itself.
29077
29078 2009-02-23  Jan Hubicka  <jh@suse.cz>
29079
29080         PR c/12245
29081         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
29082         resizing.
29083
29084 2009-02-23  Jan Hubicka  <jh@suse.cz>
29085
29086         PR tree-optimization/37709
29087         * tree.c (block_ultimate_origin): Move here from dwarf2out.
29088         * tree.h (block_ultimate_origin): Declare.
29089         * dwarf2out.c (block_ultimate_origin): Move to tree.c
29090         * tree-ssa-live.c (remove_unused_scope_block_p):
29091         Eliminate blocks containig no instructions nor live variables nor
29092         nested blocks.
29093         (dump_scope_block): New function.
29094         (remove_unused_locals): Enable removal of dead blocks by default;
29095         enable dumping at TDF_DETAILS.
29096
29097 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
29098
29099         * config/i386/i386.c (classify_argument): Don't allow COImode
29100         and OImode.
29101         (function_arg_advance_32): Don't allow OImode.
29102         (function_arg_32): Likewise.
29103         (function_value_32): Likewise.
29104         (return_in_memory_32): Likewise.
29105         (function_arg_64): Remove OImode comment.
29106
29107 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
29108
29109         PR target/39261
29110         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
29111         ix86_expand_vector_set for V4DImode in 64bit mode only.
29112         (ix86_expand_vector_init_one_var): Likewise.
29113
29114 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
29115
29116         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
29117
29118 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
29119
29120         PR bootstrap/39257
29121         * loop-iv.c: Revert last change.
29122         * emit-rtl.c: Likewise.
29123
29124 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
29125
29126         PR target/39256
29127         * config/i386/i386.c (type_natural_mode): Remove an extra
29128         space in the warning message.
29129         (function_value_32): Handle 32-byte vector modes.
29130         (return_in_memory_32): Likewise.
29131
29132 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
29133
29134         * loop-iv.c (truncate_value): New function.
29135         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
29136         of lowpart_subreg.
29137         (lowpart_subreg): Move to...
29138         * emit-rtl.c: ...here.
29139
29140 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
29141
29142         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
29143         accidental and undocumented change at revision 140860.
29144
29145 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
29146
29147         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
29148         take gimple_seq * arguments.
29149         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
29150         types_compatible_p langhook.
29151
29152 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
29153             Joseph Myers  <joseph@codesourcery.com>
29154
29155         * config/arm/arm.c (arm_builtin_va_list): New function.
29156         (arm_expand_builtin_va_start): Likewise.
29157         (arm_gimplify_va_arg_expr): Likewise.
29158         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
29159         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
29160         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
29161         (va_list_type): New variable.
29162         (arm_mangle_type): Mangle va_list_type appropriately.
29163
29164 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
29165
29166         PR middle-end/39157
29167         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
29168         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
29169         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
29170         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
29171         parameter to 1000 for -O1 by default.
29172         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
29173         parameter.
29174         * loop-invariant.c: Include params.h.
29175         (move_loop_invariants): Don't call move_single_loop_invariants on
29176         very large loops.
29177
29178 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
29179
29180         * calls.c (emit_library_call_value_1): Use slot_offset instead of
29181         offset when calculating bounds for indexing stack_usage_map.  Fixes
29182         a buffer overflow with certain target setups.
29183
29184 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
29185
29186         PR target/39240
29187         * calls.c (expand_call): Clear try_tail_call if caller and callee
29188         disagree in promotion of function return value.
29189
29190 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
29191
29192         PR target/39175
29193         * c-common.c (c_determine_visibility): If visibility changed and
29194         DECL_RTL has been already set, call make_decl_rtl to update symbol
29195         flags.
29196
29197 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
29198
29199         PR c++/39188
29200         * varasm.c (assemble_variable): Don't check DECL_NAME when
29201         globalizing a variable.
29202
29203 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
29204
29205         PR c/38483
29206         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
29207         expression before any __builtin_trap call.
29208         * c-typeck.c (build_function_call): Convert and check function
29209         arguments before generating a call to a trap.  Evaluate the
29210         function arguments before the trap.
29211
29212 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
29213
29214         PR target/39228
29215         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
29216         (UNSPEC_FXAM_MEM): New unspec.
29217         (fxam<mode>2_i387_with_temp): New insn and split pattern.
29218         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
29219         memory using fxam<mode>2_i387_with_temp to remove excess precision.
29220
29221 2009-02-19  Richard Guenther  <rguenther@suse.de>
29222
29223         PR tree-optimization/39207
29224         PR tree-optimization/39074
29225         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
29226         storedanything_tree): New.
29227         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
29228         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
29229         (build_succ_graph): Add edges from STOREDANYTHING to all
29230         non-direct nodes.
29231         (init_base_vars): Initialize STOREDANYTHING.
29232         (compute_points_to_sets): Free substitution info after
29233         building the succ graph.
29234         (ipa_pta_execute): Likewise.
29235
29236         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
29237         field.
29238         (do_ds_constraint): Do not add to special var or non-pointer
29239         field solutions.
29240         (type_could_have_pointers): Split out from ...
29241         (could_have_pointers): ... here.  For arrays use the element type.
29242         (create_variable_info_for): Initialize may_have_pointers.
29243         (new_var_info): Likewise.
29244         (handle_lhs_call): Make the HEAP variable unknown-sized.
29245         (intra_create_variable_infos): Use a type with pointers for
29246         PARM_NOALIAS, make it unknown-sized.
29247
29248 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
29249
29250         PR target/39224
29251         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
29252
29253 2009-02-18  Jason Merrill  <jason@redhat.com>
29254
29255         PR target/39179
29256         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
29257         value if DECL_EXTERNAL.
29258         * tree-sra.c (sra_walk_gimple_assign): Likewise.
29259         * target.h (gcc_target::binds_local_p): Clarify "module".
29260         * tree.h (TREE_PUBLIC): Clarify "module".
29261
29262 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
29263
29264         PR target/38891
29265         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
29266         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
29267
29268 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
29269
29270         PR target/39082
29271         * c.opt (Wabi): Support C and ObjC.
29272         (Wpsabi): New.
29273
29274         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
29275
29276         * config/i386/i386.c (classify_argument): Warn once about the ABI
29277         change when passing union with long double.
29278
29279         * doc/invoke.texi: Update -Wabi for warning psABI changes.
29280
29281 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
29282
29283         PR c/35447
29284         * c-parser.c (c_parser_compound_statement): Always enter and leave
29285         a scope.
29286
29287 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29288
29289         PR target/34587
29290         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
29291
29292 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
29293
29294         PR tree-optimization/36922
29295         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
29296         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
29297         Likewise.
29298
29299 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
29300
29301         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
29302         to 0 for EABI64.
29303
29304 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
29305
29306         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
29307
29308 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
29309
29310         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
29311         tree sharing.
29312
29313 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
29314             Richard Sandiford  <rdsandiford@googlemail.com>
29315
29316         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
29317         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
29318         (loongson_biadd): ...this.
29319
29320 2009-02-17  Richard Guenther  <rguenther@suse.de>
29321
29322         PR tree-optimization/39202
29323         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
29324         a var make sure to follow existing collapses.
29325
29326 2009-02-17  Richard Guenther  <rguenther@suse.de>
29327
29328         PR middle-end/39214
29329         * langhooks.c (lhd_print_error_function): Check for NULL block.
29330
29331 2009-02-17  Richard Guenther  <rguenther@suse.de>
29332
29333         PR tree-optimization/39204
29334         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
29335         of the PHI arg.
29336
29337 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
29338
29339         * config/soft-fp/double.h: Update from glibc CVS.
29340
29341 2009-02-17  Richard Guenther  <rguenther@suse.de>
29342
29343         PR tree-optimization/39207
29344         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
29345         strict-aliasing warnings for pointers pointing to NULL.
29346
29347 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
29348
29349         PR c/35446
29350         * c-parser.c (c_parser_braced_init): Call pop_init_level when
29351         skipping until next close brace.
29352
29353 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
29354
29355         PR target/37049
29356         * config/i386/i386.c (ix86_expand_push): Set memory alignment
29357         to function argument boundary.
29358
29359 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
29360
29361         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
29362         in the lea_add. Reload eventually constraints it properly.
29363         * config/picochip/constraints.md: Remove the target constraint
29364         "b", since it is not needed anymore.
29365
29366 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
29367
29368         * gthr-dce.h: Uglify function parameter and local variable names.
29369         * gthr-gnat.h: Likewise.
29370         * gthr-mipssde.h: Likewise.
29371         * gthr-nks.h: Likewise.
29372         * gthr-posix95.h: Likewise.
29373         * gthr-posix.h: Likewise.
29374         * gthr-rtems.h: Likewise.
29375         * gthr-single.h: Likewise.
29376         * gthr-solaris.h: Likewise.
29377         * gthr-tpf.h: Likewise.
29378         * gthr-vxworks.h: Likewise.
29379         * gthr-win32.h: Likewise.
29380
29381 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
29382
29383         PR target/39196
29384         * config/i386/i386.md: Restrict the new peephole2 to move
29385         between MMX/SSE registers.
29386
29387 2009-02-15  Richard Guenther  <rguenther@suse.de>
29388
29389         Revert
29390         2009-02-13  Richard Guenther  <rguenther@suse.de>
29391
29392         * configure.ac: Enable LFS.
29393         * configure: Re-generate.
29394         * config.in: Likewise.
29395
29396 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29397
29398         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
29399         spu_srqwbyte, spu_srqwbytebc): Define.
29400         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
29401         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
29402         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
29403         "shrqby_<mode>"): New insn-and-split patterns.
29404         * config/spu/spu.c (expand_builtin_args): Determine and return
29405         number of operands using spu_builtin_description data.
29406         (spu_expand_builtin_1): Use it.
29407
29408 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
29409
29410         PR target/38056
29411         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
29412         TARGET_CONST_GP.
29413
29414 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
29415
29416         PR target/39149
29417         * config/i386/i386.c (override_options): Correct warning
29418         messages for -malign-loops, -malign-jumps and -malign-functions.
29419
29420 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
29421
29422         PR target/39152
29423         * config/i386/i386.md: Restrict the new peephole2 to move
29424         between the general purpose registers.
29425
29426 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
29427
29428         PR target/39162
29429         * config/i386/i386.c (type_natural_mode): Add a new argument.
29430         Return the original mode and warn ABI change if vector size is 32byte.
29431         (function_arg_advance): Updated.
29432         (function_arg): Likewise.
29433         (ix86_function_value): Likewise.
29434         (ix86_return_in_memory): Likewise.
29435         (ix86_sol10_return_in_memory): Likewise.
29436         (ix86_gimplify_va_arg): Likewise.
29437         (function_arg_32): Don't warn ABX ABI change here.
29438         (function_arg_64): Likewise.
29439
29440 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
29441
29442         * loop-iv.c (implies_p): In the final case, test that operands 0
29443         of the two comparisons match.
29444
29445         * config/bfin/bfin.c (find_prev_insn_start): New function.
29446         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
29447         (find_next_insn_start): Move.
29448
29449 2009-02-13  Richard Guenther  <rguenther@suse.de>
29450
29451         * configure.ac: Enable LFS.
29452         * configure: Re-generate.
29453         * config.in: Likewise.
29454
29455 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
29456
29457         PR c/35444
29458         * c-parser.c (c_parser_parms_list_declarator): Discard pending
29459         sizes on syntax error after some arguments have been parsed.
29460
29461 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
29462
29463         * doc/invoke.texi (-fira): Remove.
29464
29465 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
29466
29467         * caller-save.c: Replace regclass.c with reginfo.c in comments.
29468         * recog.c: Likewise.
29469         * rtl.h: Likewise.
29470
29471 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
29472
29473         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
29474         (umul_ppmm): Likewise.
29475         (count_leading_zeros): Likewise.
29476         (count_trailing_zeros): Likewise.
29477         (UMUL_TIME): Likewise.
29478
29479 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
29480
29481         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
29482         soft-fp/t-softfp to tmake_file.
29483
29484         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
29485         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
29486         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
29487         IA64_BUILTIN_INFQ]: New.
29488         (ia64_init_builtins): Initialize __builtin_infq,
29489         __builtin_fabsq and __builtin_copysignq if not HPUX.
29490         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
29491         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
29492
29493         * config/ia64/lib1funcs.asm (__divtf3): Define only if
29494         SHARED is defined.
29495         (__fixtfti): Likewise.
29496         (__fixunstfti): Likewise.
29497         (__floattitf): Likewise.
29498
29499         * config/ia64/libgcc-glibc.ver: New.
29500         * config/ia64/t-fprules-softfp: Likewise.
29501         * config/ia64/sfp-machine.h: Likewise.
29502
29503         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
29504         (LIBGCC2_TF_CEXT): Likewise.
29505         (TF_SIZE): Likewise.
29506         (TARGET_INIT_LIBFUNCS): Likewise.
29507
29508         * config/ia64/t-glibc (SHLINB_MAPFILES):
29509         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
29510
29511 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
29512
29513         * config/i386/i386.c (construct_container): Rewrite processing
29514         BLKmode with X86_64_SSE_CLASS.
29515
29516 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
29517
29518         PR target/39152
29519         * config/i386/i386.md: Replace simplify_replace_rtx with
29520         replace_rtx in the new peephole2.
29521
29522 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
29523
29524         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
29525         loop unrolling do not happen at -O2.
29526
29527 2009-02-12  Michael Matz  <matz@suse.de>
29528
29529         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
29530
29531 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
29532
29533         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
29534         for -g3.
29535
29536 2009-02-12  Ben Elliston  <bje@au.ibm.com>
29537
29538         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
29539         patterns when updating the back chain.  Missed in the 2009-02-10
29540         change.
29541
29542 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
29543
29544         * doc/extend.texi (Decimal Floating Types): Update identifier of
29545         draft TR and list of missing support.
29546
29547 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
29548
29549         PR middle-end/39154
29550         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
29551         bit to variable length decl's flags, add it also to its
29552         pointer replacement variable.
29553
29554 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
29555             Jakub Jelinek  <jakub@redhat.com>
29556
29557         PR target/39118
29558         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
29559         (memory_blockage): New expander.
29560         (*memory_blockage): New insn pattern.
29561         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
29562         instead of general blockage at the end of function prologue when
29563         frame pointer is used to access red zone area.  Do not emit blockage
29564         when profiling, it is emitted in generic code.
29565         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
29566         function epilogue when frame pointer is used to access red zone area.
29567
29568 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
29569
29570         PR target/38824
29571         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
29572         by arithmetic with memory operands.
29573         * config/i386/predicates.md (commutative_operator): New.
29574
29575 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
29576
29577         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
29578         bulleted lists.
29579
29580 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
29581
29582         * alias.h (record_alias_subset): Declare.
29583         * alias.c (record_alias_subset): Make global.
29584
29585 2009-02-10  Nick Clifton  <nickc@redhat.com>
29586
29587         * tree-parloops.c: Change license to GPLv3.
29588         * ipa-struct-reorg.c: Change license to GPLv3.
29589         * ipa-struct-reorg.h: Change license to GPLv3.
29590
29591 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
29592
29593         PR c/39084
29594         * c-decl.c (start_struct): Return NULL on error.
29595
29596 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
29597
29598         PR middle-end/39124
29599         * cfgloopmanip.c (remove_path): Call remove_bbs after
29600         cancel_loop_tree, not before it.
29601
29602         PR target/39139
29603         * function.h (struct function): Add has_local_explicit_reg_vars bit.
29604         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
29605         VAR_DECLs were seen.
29606         * tree-ssa-live.c (remove_unused_locals): Recompute
29607         cfun->has_local_explicit_reg_vars.
29608         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
29609         copies or clearings if cfun->has_local_explicit_reg_vars.
29610
29611 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
29612
29613         PR target/39118
29614         * config/i386/i386.c (expand_prologue): Emit blockage at the end
29615         of function prologue when frame pointer is used to access
29616         red zone area.
29617
29618 2009-02-10  Richard Guenther  <rguenther@suse.de>
29619
29620         PR middle-end/39127
29621         * gimplify.c (gimple_regimplify_operands): Always look if
29622         we need to create a temporary.
29623
29624 2009-02-10  Richard Guenther  <rguenther@suse.de>
29625
29626         PR tree-optimization/39132
29627         * tree-loop-distribution.c (todo): New global var.
29628         (generate_memset_zero): Trigger TODO_rebuild_alias.
29629         (tree_loop_distribution): Return todo.
29630
29631 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
29632
29633         PR target/39119
29634         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
29635         (x86_64_reg_class_name): Removed.
29636         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
29637         first one isn't X86_64_SSE_CLASS or any other ones aren't
29638         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
29639         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
29640         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
29641         and 3 X86_64_SSEUP_CLASS.
29642         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
29643         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
29644
29645 2009-02-10  Ben Elliston  <bje@au.ibm.com>
29646
29647         * config/rs6000/rs6000.md (allocate_stack): Always use an update
29648         form instruction to update the stack back chain word, even if the
29649         user has disabled the generation of update instructions.
29650         (movdi_<mode>_update_stack): New.
29651         (movsi_update_stack): Likewise.
29652         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
29653         always use an update form instruction to update the stack back
29654         chain word.
29655
29656 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
29657
29658         PR middle-end/38953
29659         * graphite.c (if_region_set_false_region): After moving a region in
29660         the false branch of a condition, remove the empty dummy basic block.
29661         (gloog): Remove wrong fix for PR38953.
29662
29663 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29664
29665         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
29666         generation due to implicit sign extension.
29667
29668 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
29669
29670         PR middle-end/38981
29671         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
29672         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
29673
29674 2009-02-09  Richard Guenther  <rguenther@suse.de>
29675
29676         PR middle-end/35202
29677         * convert.c (convert_to_real): Disable (float)fn((double)x)
29678         to fnf(x) conversion if errno differences may occur and
29679         -fmath-errno is set.
29680
29681 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
29682
29683         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
29684         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
29685         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
29686
29687 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
29688
29689         PR c/35434
29690         * c-common.c (handle_alias_attribute): Disallow attribute for
29691         anything not a FUNCTION_DECL or VAR_DECL.
29692
29693 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
29694
29695         PR c/39035
29696         * real.c (do_compare): Special-case compare of zero against
29697         decimal float value.
29698
29699 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
29700
29701         PR c/36432
29702         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
29703         as indicating flexible array members unless the field itself is
29704         being declarared as the incomplete array.
29705
29706 2009-02-06  Jan Hubicka  <jh@suse.cz>
29707
29708         PR tree-optimization/38844
29709         * ipa-inline.c (try_inline): Stop inlining recursion when edge
29710         is already inlined.
29711
29712 2009-02-06  Richard Guenther  <rguenther@suse.de>
29713
29714         PR middle-end/38977
29715         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
29716         fork because we may expand it as __gcov_fork.
29717
29718 2009-02-06  Nick Clifton  <nickc@redhat.com>
29719
29720         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
29721
29722 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
29723
29724         PR tree-optimization/35659
29725         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
29726         vn_phi_eq): Shortcut if hashcode does not match.
29727         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
29728         NULL operands.
29729         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
29730         and avoid iterative_hash_expr.
29731         (FOR_EACH_VALUE_ID_IN_SET): New.
29732         (value_id_compare): Remove.
29733         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
29734         sort expressions by value id.
29735
29736 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
29737
29738         PR target/38991
29739         * config/sh/predicates.md (general_movsrc_operand): Don't check
29740         the subreg of system registers here.
29741
29742 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
29743
29744         PR c++/39106
29745         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
29746         on the copied decl.
29747
29748 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
29749
29750         PR rtl-optimization/39110
29751         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
29752         addresses, not aligned ones.
29753
29754 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
29755             Richard Guenther  <rguenther@suse.de>
29756
29757         PR tree-optimization/39100
29758         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
29759         comment says and add edges.
29760
29761 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
29762
29763         PR c/35435
29764         * c-common.c (handle_tls_model_attribute): Ignore attribute for
29765         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
29766
29767 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
29768
29769         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
29770         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
29771         register_bb_in_sese, new_sese, free_sese): Moved.
29772         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
29773         outermost_loop_in_scop, build_scop_iteration_domain,
29774         expand_scalar_variables_ssa_name, get_vdef_before_scop,
29775         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
29776         Use loop_in_sese_p instead of loop_in_scop_p.
29777         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
29778         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
29779         (scopdet_basic_block_info): Fix bug in scop detection.
29780         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
29781         eq_loop_to_cloog_loop): Remove.
29782         (nb_loops_around_loop_in_scop, nb_loop
29783         ref_nb_loops): Moved here...
29784         * graphite.h (ref_nb_loops): ... from here.
29785         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
29786         (loop_domain_dim, loop_iteration_vector_dim): Remove.
29787         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
29788
29789 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
29790             Hans-Peter Nilsson  <hp@axis.com>
29791
29792         PR rtl-optimization/37889
29793         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
29794         Move offset handling from PLUS to before the switch.  Use new
29795         arguments when considering SYMBOL_REFs too.
29796         (rtx_addr_can_trap_p): Pass dummy offset and size.
29797         (enum may_trap_p_flags): Remove.
29798         (may_trap_p_1): Pass size from MEM_SIZE.
29799
29800         PR rtl-optimization/38921
29801         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
29802         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
29803         * rtlanal.c (may_trap_after_code_motion_p): Delete.
29804         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
29805
29806 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
29807
29808         AVX Programming Reference (January, 2009)
29809         * config/i386/sse.md (*vpclmulqdq): New.
29810
29811 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
29812
29813         PR tree-optimization/38977
29814         PR gcov-profile/38292
29815         * calls.c (special_function_p): Disregard __builtin_ prefix.
29816
29817 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
29818
29819         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
29820         non-indexable addresses even before reload.
29821
29822 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
29823
29824         PR c/29129
29825         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
29826         as having variable size.  Do not give an error for unnamed
29827         parameters with [*] declarators.  Give a warning for type names
29828         with [*] declarators and mark them as variable size.
29829         * c-parser.c (c_parser_sizeof_expression): Do not give an error
29830         for sizeof applied to [*] type names.
29831
29832 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
29833
29834         PR C++/36607
29835         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
29836
29837 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
29838
29839         * gcc.c (process_command): Update copyright notice dates.
29840         * gcov.c (print_version): Likewise.
29841         * gcov-dump.c (print_version): Likewise.
29842         * mips-tfile.c (main): Likewise.
29843         * mips-tdump.c (main): Likewise.
29844
29845 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
29846
29847         PR c/35433
29848         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
29849         for composite type involving a zero-length array type.
29850
29851 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
29852
29853         PR target/35318
29854         * function.c (match_asm_constraints_1): Skip over
29855         initial optional % in the constraint.
29856
29857         PR inline-asm/39059
29858         * c-parser.c (c_parser_postfix_expression): If fixed point is not
29859         supported, don't accept FIXED_CSTs.
29860         * c-decl.c (finish_declspecs): Error if fixed point is not supported
29861         and _Sat is used without _Fract/_Accum.  Set specs->type to
29862         integer_type_node for cts_fract/cts_accum if fixed point is not
29863         supported.
29864
29865 2009-02-02  Catherine Moore  <clm@codesourcery.com>
29866
29867         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
29868
29869 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
29870
29871         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
29872         (ABI_HAS_64BIT_SYMBOLS): Use it.
29873         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
29874
29875 2009-02-02  Paul Brook  <paul@codesourcery.com>
29876
29877         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
29878
29879 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
29880
29881         PR inline-asm/39058
29882         * recog.h (asm_operand_ok): Add constraints argument.
29883         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
29884         recurse on matching constraint.
29885         (check_asm_operands): Pass constraints as 3rd argument to
29886         asm_operand_ok.  Don't look up matching constraint here.
29887         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
29888         to asm_operand_ok.
29889
29890 2009-02-02  Ben Elliston  <bje@au.ibm.com>
29891
29892         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
29893         TARGET_NARROW_VOLATILE_BITFIELD macro names.
29894
29895 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29896
29897         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
29898         information.  Remove some obsolete information.  Reorganize.
29899
29900         * config/pa/fptr.c: Revert license to GPL 2.
29901         * config/pa/milli64.S: Likewise.
29902
29903 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
29904
29905         PR target/38904
29906         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
29907         LIBRARY name in, instead of hard-coding it.
29908         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
29909         extra target make frag to tmake_files according to EH model.
29910         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
29911         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
29912         frags that define makefile variable EH_MODEL appropriately.
29913         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
29914         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
29915         to "-sjlj" according to type of EH configured.
29916         (LIBGCC_SONAME):  Concatenate it to shared library base name.
29917         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
29918         to "_sjlj" according to type of EH configured.
29919         (LIBGCC_SONAME):  Concatenate it to shared library base name.
29920         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
29921         (SHLIB_LINK):  Add missing semicolon to if-else construct.
29922         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
29923         string value of "pe_dll" command-line option.
29924         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
29925         (SHLIB_SONAME):  Use it when overriding t-cygming default.
29926         (SHLIB_IMPLIB):  Override t-cygming default.
29927         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
29928         string value of "pe_dll" command-line option.
29929
29930 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
29931
29932         PR target/38952
29933         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
29934         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
29935
29936 2009-01-31  Richard Guenther  <rguenther@suse.de>
29937
29938         PR tree-optimization/38937
29939         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
29940         computing the transitive closure.
29941
29942 2009-01-30  Richard Guenther  <rguenther@suse.de>
29943
29944         PR tree-optimization/39041
29945         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
29946         Propagate variable indices only if the types match for this stmt.
29947
29948 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
29949
29950         PR target/39013
29951         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
29952         inline but never defined.
29953
29954 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
29955
29956         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
29957         (*insv_h_di_reg_extimm): New insn.
29958         (*insv_l<mode>_reg_extimm): New insn.
29959
29960 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
29961
29962         * config/picochip/picochip.c (flag_conserve_stack): set
29963         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
29964         fconserve-stack. Reduce call-overhead used by inliner.
29965
29966 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
29967
29968         PR/38157
29969         * common.opt (flag_conserve_stack): Initialised to zero.
29970
29971 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
29972
29973         PR/39002
29974         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
29975         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
29976         method.
29977
29978 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
29979
29980         * ira-color.c (allocno_reload_assign): Update comments.
29981         * regmove.c (regmove_optimize): Likewise.
29982
29983         * ra.h: Removed.
29984
29985 2009-01-29  Robert Millan  <rmh@aybabtu.com>
29986
29987         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
29988         * config/i386/kopensolaris-gnu.h: New file.  Undefine
29989         `MD_UNWIND_SUPPORT'.
29990         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
29991
29992 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
29993
29994         PR tree-optimization/39007
29995         * tree-loop-distribution.c (generate_builtin): Use
29996         recompute_dominator to compute the immediate dominator of the
29997         basic block just after the loop.
29998
29999 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
30000
30001         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
30002         (ASM_OUTPUT_DWARF_PCREL): Define.
30003
30004 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
30005
30006         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
30007         * doc/passes.texi: Remove entries about regclass, local-alloc, and
30008         global.  Modify entries about regmove and IRA.
30009
30010         * ra-conflict.c: Remove the file.
30011
30012         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
30013
30014         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
30015         (pass_regclass_init): Rename to pass_reginfo_init.
30016
30017         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
30018
30019         * toplev.h (flag_ira): Remove.
30020
30021         * caller-save.c (setup_save_areas): Remove flag_ira.
30022
30023         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
30024
30025         * global.c: Remove the file.
30026
30027         * opts.c (decode_options): Remove flag_ira.
30028
30029         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
30030
30031         * regmove.c: Modify file description.
30032         (find_use_as_address, try_auto_increment): Define them only if
30033         AUTO_INC_DEC is defined.
30034         (replacement_quality, replace_in_call_usage, fixup_match_1,
30035         stable_and_no_regs_but_for_p): Remove.
30036         (reg_set_in_bb): Make it static.
30037         (regmove_optimize): Remove flag_ira and code which worked for
30038         !flag_ira.
30039
30040         * local-alloc.c: Remove the file.
30041
30042         * common.opt (fira): Remove.
30043
30044         * ira.c: Include except.h.
30045         (eliminable_regset): Move from global.c.
30046         (mark_elimination): Ditto.  Remove flag_ira.
30047         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
30048         equiv_mem_modified, validate_equiv_mem_from_store,
30049         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
30050         contains_replace_regs, memref_referenced_p, memref_used_between_p,
30051         no_equiv, recorded_label_ref): Move from local-alloc.c.
30052         (update_equiv_regs): Ditto.  Make it static.
30053         (print_insn_chain, print_insn_chains): Move it from global.c.
30054         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
30055         (build_insn_chain): Ditto.  Make it static.
30056         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
30057         Rename to init_live_subregs.
30058         (gate_ira): Remove flag_ira.
30059
30060         * regclass.c: Rename reginfo.c.  Change file description.
30061         (FORBIDDEN_INC_DEC_CLASSES): Remove.
30062         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
30063         (init_reg_sets_1): Remove code for evaluation of
30064         reg_class_superclasses and losing_caller_save_reg_set.
30065         (init_regs): Remove init_reg_autoinc.
30066         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
30067         ok_for_base_p_nonstrict): Remove.
30068         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
30069         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
30070         corresponding entries.
30071         (dump_regclass, record_operand_costs, scan_one_insn,
30072         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
30073         record_address_regs, auto_inc_dec_reg_p): Remove.
30074         (gt-regclass.h): Rename to gt-reginfo.h.
30075
30076         * rtl.h (dump_global_regs, retry_global_alloc,
30077         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
30078
30079         * Makefile.in (RA_H): Remove.
30080         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
30081         Rename regclass.o to reginfo.o.
30082         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
30083         gt-reginfo.h.
30084         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
30085         (GTFILES): Rename regclass.c to reginfo.c.
30086
30087         * passes.c (init_optimization_passes): Remove pass_local_alloc and
30088         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
30089
30090         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
30091         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
30092         Remove flag_ira.
30093         (finish_spills): Ditto.  Remove code for !flag_ira.
30094
30095 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
30096
30097         PR middle-end/35854
30098         * doc/invoke.texi (rtl debug options): Complete rewrite.
30099         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
30100         to auto_inc_dec".
30101         * mode-switching.c (pass_mode_switching): Rename pass from
30102         "mode-sw" to "mode_sw".
30103         * except.c (pass_convert_to_eh_ranges): Rename pass from
30104         "eh-ranges" to "eh_ranges".
30105         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
30106         to "subreg1".
30107
30108
30109 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
30110             Alexander Monakov  <amonakov@ispras.ru>
30111
30112         PR middle-end/38857
30113         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
30114         register.
30115         (move_exprs_to_boundary): Change return type and pass through
30116         should_move from move_op.  Relax assert.  Update usage ...
30117         (schedule_expr_on_boundary): ... here.  Use should_move instead of
30118         cant_move.
30119         (move_op_orig_expr_found): Indicate that insn was disconnected from
30120         stream.
30121         (code_motion_process_successors): Do not call after_merge_succs
30122         callback if original expression was not found when traversing any of
30123         the branches.
30124         (code_motion_path_driver): Change return type.  Update prototype.
30125         (move_op): Update comment.  Add a new parameter (should_move).  Update
30126         prototype.  Set *should_move based on indication provided by
30127         move_op_orig_expr_found.
30128
30129 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
30130
30131         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
30132         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
30133         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
30134         * config/rs6000/rs6000.c (rs6000_override_options): Default
30135         avoid-indexed-addresses on for Power6, off for everything else.
30136         (avoiding_indexed_address_p): New function.
30137         (rs6000_legitimize_address): Use it.
30138         (rs6000_legitimate_address): Likewise.
30139         * config/rs6000/rs6000.md (movXX_updateX): Likewise
30140
30141 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
30142
30143         PR tree-optimization/38997
30144         * tree-loop-distribution.c (generate_memset_zero): Use
30145         POINTER_PLUS_EXPR for a pointer addition.
30146
30147 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
30148
30149         * config/s390/s390.md (bswap<mode>2): New pattern added.
30150
30151 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
30152
30153         * config/s390/s390.md (*tls_load_31): Added type attribute.
30154
30155 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
30156
30157         * config/s390/s390.md: Fix a few comments.
30158
30159 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
30160
30161         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
30162         (*tm<mode>_full): Fixed z10prop attribute.
30163         (*tst<mode>_extimm): Fixed z10prop attribute.
30164         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
30165         (*tstqiCCT_cconly): Fixed z10prop attribute.
30166         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
30167         (*movsi_larl): Fixed z10prop attribute.
30168         (*movsi_zarch): Fixed z10prop attribute.
30169         (*movsi_eas): Fixed z10prop attribute.
30170         (*movhi): Fixed z10prop attribute.
30171         (*movqi): Fixed z10prop attribute.
30172         (*movstrictqi): Fixed z10prop attribute.
30173         (*mov<mode>): Fixed z10prop attribute.
30174         (*movcc): Fixed z10prop attribute.
30175         (*sethighpartdi_64): Fixed z10prop attribute.
30176         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
30177         (*negdi2_sign_cc): Fixed z10prop attribute.
30178         (*negdi2_sign): Fixed z10prop attribute.
30179         (*absdi2_sign_cc): Fixed z10prop attribute.
30180         (*absdi2_sign): Fixed z10prop attribute.
30181         (*negabsdi2_sign_cc): Fixed z10prop attribute.
30182         (*negabsdi2_sign): Fixed z10prop attribute.
30183         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
30184         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
30185         (doloop_si64): Fixed z10prop attribute.
30186         (doloop_si31): Fixed z10prop attribute.
30187         (doloop_long): Fixed z10prop attribute.
30188         (indirect_jump): Fixed z10prop attribute.
30189         (nop): Fixed z10prop attribute.
30190         (main_base_64): Fixed z10prop attribute.
30191         (reload_base_64): Fixed z10prop attribute.
30192
30193 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
30194
30195         PR rtl-optimization/38740
30196         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
30197         if !optimize.
30198         * config/mips/mips.c (mips_reorg): Likewise.
30199
30200 2009-01-28  Richard Guenther  <rguenther@suse.de>
30201
30202         PR tree-optimization/38926
30203         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
30204         with the correct value id to a value.
30205         (do_regular_insertion): Use the value number of edoubleprime
30206         for the value number of the expr.
30207
30208         Revert
30209         2008-08-21  Richard Guenther  <rguenther@suse.de>
30210
30211         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
30212         a PHI ask VN if it is already available.
30213         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
30214         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
30215
30216 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
30217
30218         PR middle-end/38934
30219         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
30220         set to varying whenever max has TREE_OVERFLOW set, similarly
30221         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
30222
30223 2009-01-28  Richard Guenther  <rguenther@suse.de>
30224
30225         PR middle-end/38908
30226         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
30227         uninitialized aggregate uses in call arguments.
30228
30229 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
30230
30231         PR tree-optimization/38984
30232         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
30233         the nothing_id variable if -fno-delete-null-pointer-checks.
30234
30235 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
30236
30237         PR target/38988
30238         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
30239         (set_got_offset_rex64): Ditto.
30240
30241 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
30242
30243         PR target/38941
30244         * doc/extend.texi: Improve local variable with asm reg.
30245
30246 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
30247
30248         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
30249         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
30250         was not supplied then set warn_packed_bitfield_compat to the
30251         default value of 1.
30252         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
30253         against 1.
30254
30255 2009-01-27  Richard Guenther  <rguenther@suse.de>
30256
30257         PR tree-optimization/38503
30258         * cfgexpand.c (expand_gimple_basic_block): Ignore
30259         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
30260         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
30261         variables that cannot have TBAA applied.
30262         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
30263         statements.
30264
30265 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
30266
30267         PR middle-end/38969
30268         * calls.c (initialize_argument_information): Do not wrap complex
30269         arguments in SAVE_EXPR.
30270
30271 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
30272
30273         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
30274         (INSTALL_LIBGCC): Revert typo commit.
30275
30276 2009-01-26  Richard Guenther  <rguenther@suse.de>
30277
30278         PR tree-optimization/38745
30279         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
30280         from special handling.
30281
30282 2009-01-26  Richard Guenther  <rguenther@suse.de>
30283
30284         PR tree-optimization/38745
30285         * tree-ssa.c (execute_update_addresses_taken): Do not include
30286         variables that cannot possibly be a register in not_reg_needs.
30287         Do not clear TREE_ADDRESSABLE on vars that may not become
30288         registers.
30289         * tree-ssa.c (update_alias_info_1): Include those in the set
30290         of addressable vars.
30291
30292 2009-01-26  Richard Guenther  <rguenther@suse.de>
30293
30294         PR middle-end/38851
30295         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
30296         * tree-ssa-dse.c: Include langhooks.h
30297         (execute_simple_dse): Remove stores with zero size.
30298
30299 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
30300
30301         PR c/38957
30302         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
30303         as PLUS_EXPR.
30304
30305 2009-01-24  Julian Brown  <julian@codesourcery.com>
30306
30307         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
30308         config/arm/linux-atomic.c.
30309         * config/arm/linux-atomic.c: New.
30310
30311 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
30312
30313         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
30314         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
30315         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
30316
30317 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
30318
30319         PR c/38938
30320         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
30321         properly.
30322
30323 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
30324
30325         PR tree-optimization/38953
30326         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
30327         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
30328         (gloog): Split the exit of the scop when the scop exit is a loop exit.
30329         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
30330         changed the CFG.
30331
30332 2009-01-24  Paul Brook  <paul@codesourcery.com>
30333
30334         * config/arm/neon.md (neon_type): Move to arm.md.
30335         (neon_mov<VSTRUCT>): Add neon_type attribute.
30336         * config/arm/arm.md (neon_type): Move to here.
30337         (conds): Add "unconditioal" and use as default for NEON insns.
30338
30339 2009-01-24  Ben Elliston  <bje@au.ibm.com>
30340
30341         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
30342         void *' warning from -Wc++-compat.
30343         * Makefile.in (dominance.o-warn): Remove.
30344
30345 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
30346
30347         PR tree-optimization/38932
30348         * fold-const.c (fold_unary_ignore_overflow): New.
30349         * tree.h (fold_unary_ignore_overflow): Declare.
30350         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
30351         * tree-ssa-sccvn.c (visit_reference_op_load,
30352         simplify_unary_expression): Likewise.
30353
30354 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
30355
30356         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
30357         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
30358         regardless of their type.
30359         * c-common.c (handle_packed_attribute): Don't ignore packed on
30360         bitfields.
30361         * c.opt (Wpacked-bitfield-compat): New warning option.
30362         * stor-layout.c (place_field): Warn if offset of a field changed.
30363         * doc/extend.texi (packed): Mention the ABI change.
30364         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
30365         (Warning Options): Add it to the list.
30366
30367 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
30368
30369         * c-opts.c (c_common_post_options): Fix a typo in comments.
30370
30371 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
30372
30373         PR middle-end/38615
30374         * gimplify.c (gimplify_init_constructor): Fix promotion of const
30375         variables to static.
30376         * doc/invoke.texi (-fmerge-all-constants): Update description.
30377
30378 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
30379
30380         PR target/38931
30381         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
30382         (*movdi_1_rex64): Use type "mmx" for alternative 5.
30383
30384 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
30385
30386         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
30387         a word boundary.
30388         (LOCAL_ALIGNMENT): Similarly.
30389
30390 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
30391             Joseph Myers  <joseph@codesourcery.com>
30392
30393         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
30394         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
30395         * config/arm/arm-tune.md: Regenerate.
30396         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
30397         -march=iwmmxt2.
30398
30399 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
30400
30401         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
30402         version number to five.
30403
30404 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
30405
30406         PR c++/38930
30407         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
30408         * c-common.c (set_underlying_type): Likewise.
30409         (is_typedef_decl ): Likewise
30410         * tree.h: Likewise
30411         (set_underlying_type): Likewise.
30412         (is_typedef_type): Likewise.
30413
30414 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
30415
30416         PR middle-end/38587
30417         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
30418         crossing setjmps.
30419
30420 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
30421
30422         PR bootstrap/37660
30423         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
30424         (LIBGCC_SPEC):  Don't define.
30425         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
30426
30427 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
30428
30429         PR rtl-optimization/38879
30430         * alias.c (base_alias_check): Unaligned access via AND address can
30431         alias all surrounding object types except those with sizes equal
30432         or wider than the size of unaligned access.
30433
30434 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
30435
30436         PR c++/26693
30437         * c-decl.c (clone_underlying_type): Move this ...
30438         * c-common.c (set_underlying_type): ... here.
30439         Also, make sure the function properly sets TYPE_STUB_DECL() on
30440         the newly created typedef variant type.
30441         (is_typedef_decl ): New entry point.
30442         * tree.h: Added a new member member_types_needing_access_check to
30443         struct tree_decl_non_common.
30444         (set_underlying_type): New entry point.
30445         (is_typedef_type): Likewise.
30446
30447 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
30448
30449         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
30450         Check whether two instructions have memory references that
30451         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
30452         are helper functions for traversing.
30453         * alias.h (insn_alias_sets_confilict_p): New prototypes.
30454         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
30455         not to draw dependency edge for instructions with non-conflicting
30456         alias sets.
30457
30458 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
30459
30460         PR other/38758
30461         * longlong.h: Update copyright years.  Use soft-fp license notice.
30462         Sync __clz_tab declaration with glibc.
30463
30464 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
30465
30466         PR target/30687
30467         * doc/extend.texi (syscall_linkage): New.
30468         (version_id): Modify.
30469
30470 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
30471             Richard Guenther  <rguenther@suse.de>
30472
30473         PR tree-optimization/38747
30474         PR tree-optimization/38748
30475         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
30476         conversion if the base address is an indirect reference and the
30477         aliasing sets could cause issues.
30478
30479 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
30480
30481         * common.opt (fgraphite, fgraphite-identity): Add comment for
30482         explaining why these options are not documented.
30483
30484 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
30485
30486         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
30487         gimple_call_lhs is NULL.
30488
30489 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30490
30491         PR target/38868
30492         * emit-rtl.c (adjust_address_1): Make sure memref is never
30493         overwritten.
30494
30495 2009-01-20  Ben Elliston  <bje@au.ibm.com>
30496
30497         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
30498         const qualifier from arg parameter. Remove unnecessary cast to char *.
30499         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
30500         const qualifier from arg 2.
30501
30502 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
30503
30504         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
30505
30506 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
30507
30508         PR c/38869
30509         * rtl.h (reinit_regs): New prototype.
30510         * regclass.c: Include ira.h.
30511         (reinit_regs): New.
30512         * Makefile.in (regclass.o): Add ira.h.
30513         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
30514
30515 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
30516
30517         PR target/38736
30518         * c-common.c (handle_aligned_attribute): Use
30519         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
30520         default alignment value.
30521
30522         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
30523
30524         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
30525         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
30526
30527         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
30528         __BIGGEST_ALIGNMENT__.
30529
30530         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
30531
30532 2009-01-18  Richard Guenther  <rguenther@suse.de>
30533
30534         PR tree-optimization/38819
30535         * tree-flow.h (operation_could_trap_helper_p): Declare.
30536         * tree-eh.c (operation_could_trap_helper_p): Export.
30537         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
30538         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
30539         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
30540         are about to insert a possibly trapping instruction and fail
30541         in this case.
30542
30543 2009-01-18  Andreas Schwab  <schwab@suse.de>
30544
30545         * doc/install.texi (Configuration): Remove obsolete paragraph
30546         about use of --with-gnu-ld with --with-gnu-as.
30547
30548 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
30549
30550         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
30551         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
30552         Follow spelling conventions.
30553
30554 2009-01-18  Ben Elliston  <bje@au.ibm.com>
30555
30556         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
30557         C++ warning about implicit conversion from void * to struct
30558         bitmap_head_def *.
30559         (bitmap_obstack_free): Likewise for bitmap_element *.
30560         * Makefile.in (bitmap.o-warn): Remove.
30561
30562 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
30563
30564         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
30565
30566 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
30567             Tobias Grosser  <tobi.grosser@amd.com>
30568
30569         * graphite.c (graphite_trans_scop_block): Do not block single
30570         nested loops.
30571
30572 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
30573
30574         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
30575         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
30576         test with assertion.
30577
30578 2009-01-16  Richard Guenther  <rguenther@suse.de>
30579
30580         PR tree-optimization/38835
30581         PR middle-end/36227
30582         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
30583         and INT + PTR -> (INT)(PTR p+ INT) folding.
30584         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
30585
30586 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
30587
30588         PR target/38554
30589         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
30590         the subreg from a lowpart subreg if it is also casting the value.
30591
30592 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
30593             Tobias Grosser  <tobi.grosser@amd.com>
30594
30595         * graphite.c (compare_prefix_loops): New.
30596         (build_scop_canonical_schedules): Rewritten.
30597         (graphite_transform_loops): Move build_scop_canonical_schedules
30598         after build_scop_iteration_domain.
30599
30600 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
30601             Tobias Grosser  <tobi.grosser@amd.com>
30602
30603         * graphite.c (add_conditions_to_domain): Add the loops to
30604         the dimension of the iteration domain.  Do copy the domain
30605         only when it exists.
30606         (build_scop_conditions_1): Do not call add_conditions_to_domain.
30607         (add_conditions_to_constraints): New.
30608         (can_generate_code_stmt, can_generate_code): Removed.
30609         (gloog): Do not call can_generate_code.
30610         (graphite_transform_loops): Call add_conditions_to_constraints
30611         after building the iteration domain.
30612
30613 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
30614
30615         PR tree-optimization/38789
30616         * tree-ssa-threadedge.c
30617         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
30618         __builtin_constant_p.
30619
30620 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
30621
30622         * dce.c (delete_unmarked_insns): Reversed the order that insns are
30623         examined before deleting them.
30624
30625 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
30626
30627         * function.c (aggregate_value_p): Correctly extract the function
30628         type from CALL_EXPR_FN lookup.
30629
30630 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
30631
30632         * config/picochip/picochip.c (picochip_override_options): Revert
30633         CFI asm flag disable commited previously.
30634
30635 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
30636             Tobias Grosser  <tobi.grosser@amd.com>
30637             Jan Sjodin  <jan.sjodin@amd.com>
30638
30639         * graphite.c (scan_tree_for_params): On substractions negate
30640         all the coefficients of the term.
30641         (clast_to_gcc_expression_red): New.  Handle reduction expressions
30642         of more than two operands.
30643         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
30644         (get_vdef_before_scop): Handle also the case of default definitions.
30645
30646 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
30647
30648         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
30649         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
30650         Also use them when walking CALL_INSN_FUNCTION_USAGE.
30651
30652 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
30653             Joey Ye  <joey.ye@intel.com>
30654
30655         PR middle-end/37843
30656         * cfgexpand.c (expand_stack_alignment): Don't update stack
30657         boundary nor check incoming stack boundary here.
30658         (gimple_expand_cfg): Update stack boundary and check incoming
30659         stack boundary here.
30660
30661 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
30662
30663         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
30664
30665 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
30666
30667         PR rtl-optimization/38245
30668         * calls.c (expand_call): Add stack arguments to
30669         CALL_INSN_FUNCTION_USAGE even for pure calls (when
30670         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
30671         in regs and partially in memory or BLKmode arguments.
30672         (emit_library_call_value_1): Add stack arguments to
30673         CALL_INSN_FUNCTION_USAGE even for pure calls (when
30674         ACCUMULATE_OUTGOING_ARGS).
30675         * dce.c: Include tm_p.h.
30676         (find_call_stack_args): New function.
30677         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
30678         argument.
30679         (mark_insn): Call find_call_stack_args for CALL_Ps.
30680         (prescan_insns_for_dce): Walk insns backwards in bb rather than
30681         forwards.  Allocate and free arg_stores bitmap if needed, pass it
30682         down to deletable_insn_p, don't mark stores set in arg_stores
30683         bitmap, clear the bitmap at the beginning of each bb.
30684         * Makefile.in (dce.o): Depend on $(TM_P_H).
30685
30686 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
30687
30688         PR target/22599
30689         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
30690         to make sure the insn is a conditional test (bug 22599).  Reformat a
30691         few long lines.
30692
30693 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
30694
30695         PR middle-end/38431
30696         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
30697         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
30698         (gloog): Do not call cleanup_tree_cfg.
30699         (graphite_transform_loops): Call cleanup_tree_cfg after all
30700         scops have been code generated.
30701
30702 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
30703         * doc/gty.texi (Invoking the garbage collector): Added new node
30704         and section documenting ggc_collect.
30705
30706 2009-01-14  Richard Guenther  <rguenther@suse.de>
30707
30708         PR tree-optimization/38826
30709         PR middle-end/38477
30710         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
30711         initialization notes only if we actually emitted a warning.
30712         (intra_create_variable_infos): Add constraints for a result decl
30713         that is passed by hidden reference.
30714         (build_pred_graph): Mark all related variables non-direct on
30715         address-taking.
30716
30717 2009-01-14  Nick Clifton  <nickc@redhat.com>
30718
30719         * ira-conflicts.c: Include addresses.h for the definition of
30720         base_reg_class.
30721         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
30722         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
30723
30724 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
30725
30726         PR target/38811
30727         * Makefile.in (ira-lives.o): Add except.h.
30728
30729         * ira-lives.c: Include except.h.
30730         (process_bb_node_lives): Process can_throw_internal.
30731
30732 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
30733
30734         PR rtl-optimization/38774
30735         * combine.c (simplify_set): When undoing cc_use change, don't do
30736         PUT_CODE on the newly created comparison, but instead put back the
30737         old comparison.
30738
30739 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
30740
30741         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
30742         values.  Remove duplicate arm8 entry.
30743
30744 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
30745
30746         PR tree-optimization/38786
30747         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
30748         the SSA_NAME case of expand_scalar_variables_expr.
30749         Set the type of an expression to the type of its assign statement.
30750         (expand_scalar_variables_expr): Also gather the scalar computation
30751         used to index the memory access.  Do not pass loop_p.
30752         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
30753         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
30754         the gimple_stmt_iterator where it inserts new code.
30755         Do not pass loop_p.
30756         (copy_bb_and_scalar_dependences): Do not pass loop_p.
30757         (translate_clast): Update call to copy_bb_and_scalar_dependences.
30758
30759 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
30760
30761         * graphite.h (debug_value): Removed.
30762         * graphite.c (debug_value): Removed.
30763
30764 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
30765
30766         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
30767         ldrd/strd with two 32-bit instructions.
30768
30769 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
30770
30771         * config/arm/arm.c (struct processors): Pass for speed down into
30772         cost helper functions.
30773         (const_ok_for_op): Handle COMPARE and inequality nodes.
30774         (arm_rtx_costs_1): Rewrite.
30775         (arm_size_rtx_costs): Update prototype.
30776         (arm_rtx_costs): Pass speed down to helper functions.
30777         (arm_slowmul_rtx_costs): Rework cost calculations.
30778         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
30779         (arm_9e_rtx_costs): Likewise.
30780
30781 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
30782
30783         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
30784         relocations of local symbols wider than UNITS_PER_WORD are not valid.
30785         (alpha_legitimize_address): Do not split local symbols wider than
30786         UNITS_PER_WORD into HIGH/LO_SUM parts.
30787
30788 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
30789
30790         PR bootstrap/38580
30791         * gcc.c (process_command): Replace call to execvp with calls
30792         to pex_one and exit.
30793
30794 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
30795
30796         PR target/29141
30797         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
30798         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
30799         variant for devices with 3-byte PC.
30800         (__tablejump_elpm__): New.
30801
30802 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
30803
30804         PR c/32041
30805         * c-parser.c (c_parser_postfix_expression): Allow `->' in
30806         offsetof member-designator, handle it as `[0].'.
30807
30808 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30809
30810         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
30811         function when not using named sections on targets with named sections
30812         if branch distance is less than 262132.
30813
30814 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
30815
30816         * combine.c (combine_instructions):  Recompute
30817         optimize_this_for_speed_p  for each BB in the main combine loop.
30818
30819 2009-01-12  Tomas Bily  <tbily@suse.cz>
30820
30821         PR middlend/38385
30822         * tree-loop-distribution.c (prop_phis): New function.
30823         (generate_builtin): Call prop_phis.
30824
30825 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
30826
30827         PR tree-optimization/38807
30828         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
30829         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
30830
30831 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
30832
30833         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
30834         subreg of op0 to the original op0.
30835
30836 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
30837
30838         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
30839
30840 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
30841
30842         PR debug/7055
30843         * mips-tfile.c (parse_def): Fix parsing of def strings
30844         starting with digits.
30845
30846 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
30847
30848         PR target/38695
30849         * config/arm/arm.c (arm_is_long_call_p): Don't call
30850         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
30851
30852 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
30853
30854         * regrename.c (regrename_optimize): Fix dumping.
30855         (find_oldest_value_reg): Preserve REG_POINTER.
30856         (copy_hardreg_forward_1): Likewise.
30857
30858 2009-01-09  Diego Novillo  <dnovillo@google.com>
30859
30860         * gimple.h (struct gimple_statement_base) <uid>: Document
30861         the restrictions on its use.
30862         (gimple_uid): Tidy.
30863         (gimple_set_uid): Tidy.
30864
30865 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
30866
30867         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
30868         zero guard even if align_bytes != 0 and count is smaller than
30869         size_needed.
30870
30871 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
30872
30873         PR rtl-optimization/38495
30874         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
30875         (add_range_and_copies_from_move_list): Print all added ranges.
30876         Add ranges to memory optimized destination.
30877
30878 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
30879
30880         PR target/38686
30881         PR target/38708
30882         * config/i386/i386.c (override_options): Reject
30883         -mstringop-strategy=rep_8byte with -m32.
30884         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
30885         to 1.  Do count comparison against epilogue_size_needed at compile
30886         time even when count_exp was constant forced into register.  For
30887         size_needed don't jump to epilogue, instead just avoid aligning
30888         and invoke the body algorithm.  If need_zero_guard, add zero guard
30889         even if count is non-zero, but smaller than size_needed + number of
30890         bytes that could be stored for alignment.
30891         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
30892         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
30893         but smaller than size_needed + number of bytes that could be stored
30894         for alignment.  Compare size_needed with epilogue_size_needed instead
30895         of desired_align - align, don't adjust size_needed, pass
30896         epilogue_size_needed to the epilogue expanders.
30897
30898         PR c/35742
30899         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
30900
30901 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30902
30903         * pa.c (last_address): Change to unsigned.
30904         (update_total_code_bytes): Change argument to unsigned.  Don't
30905         check if insn addresses are set.
30906         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
30907         addresses are not set.
30908         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
30909
30910 2009-01-09  Nick Clifton  <nickc@redhat.com>
30911
30912         * config/sh/symbian.c: Replace uses of DECL_INLINE with
30913         DECL_DECLARED_INLINE_P.
30914
30915 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
30916
30917         PR middle-end/38347
30918         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
30919         GET_MODE (op0) in operand_subword_force calls.
30920
30921         PR middle-end/38771
30922         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
30923         fold_convert arg0 operands to TREE_TYPE (op0) first.
30924
30925 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
30926
30927         * params.def (ira-max-conflict-table-size): Decrease default value
30928         to 1000.
30929
30930 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
30931
30932         PR tree-optimization/37031
30933         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
30934         on parameter_set.
30935         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
30936         allocate it using gc instead of heap, use VEC_quick_push instead of
30937         VEC_safe_push.
30938         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
30939         instead of heap, use VEC_quick_push instead of VEC_safe_push.
30940         * tree-data-ref.h (struct access_matrix): Change matrix to gc
30941         allocated vector from heap allocated.
30942         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
30943         * tree-loop-linear.c (linear_transform_loops): Allocate nest
30944         vector only after perfect_loop_nest_depth call.
30945
30946 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
30947             Jan Sjodin  <jan.sjodin@amd.com>
30948
30949         PR tree-optimization/38559
30950         * graphite.c (debug_value, copy_constraint,
30951         swap_constraint_variables, scale_constraint_variable, ): New.
30952         (get_lower_bound, get_upper_bound): Removed.
30953         (graphite_trans_bb_strip_mine): Clean up this code that works
30954         only for constant number of iterations.  Fully copy upper and
30955         lower bound constraints, not only the constant part of them.
30956         * graphite.h (debug_value): Declared.
30957
30958 2009-01-08  Ira Rosen  <irar@il.ibm.com>
30959
30960         PR tree-optimization/37194
30961         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
30962         Don't add the cost of cost model guard in prologue to scalar
30963         outside cost in case of known number of iterations.
30964
30965 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
30966             Alan Modra  <amodra@bigpond.net.au>
30967
30968         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
30969         non-word-aligned REG+CONST addressing.
30970
30971 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
30972
30973         PR target/38706
30974         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
30975         free_after_compilation when outputting a thunk.
30976         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
30977         Do not call free_after_compilation here.
30978
30979 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
30980
30981         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
30982         (ix86_valid_target_attribute_inner_p): Ditto.
30983
30984 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
30985
30986         PR tree-optimization/38492
30987         PR tree-optimization/38498
30988         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
30989         * tree-chrec.h (scev_is_linear_expression): Declared.
30990         * graphite.c (graphite_cannot_represent_loop_niter): New.
30991         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
30992         (graphite_loop_normal_form): Use gcc_assert.
30993         (scan_tree_for_params): Use CASE_CONVERT.
30994         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
30995         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
30996         Use gcc_assert.  Discard scops that contain unhandled cases.
30997         (build_scop_conditions): Return a boolean status for unhandled cases.
30998         (strip_mine_profitable_p): Print the loop number, not its depth.
30999         (is_interchange_valid): Pass the depth of the loop nest, don't
31000         recompute it wrongly.
31001         (graphite_trans_bb_block): Same.
31002         (graphite_trans_bb_block): Print tentative of loop blocking.
31003         (graphite_trans_scop_block): Do not print that the loop has been
31004         blocked.
31005         (graphite_transform_loops): Do not handle scops that contain condition
31006         scalar phi nodes.
31007
31008 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
31009
31010         AVX Programming Reference (December, 2008)
31011         * config/i386/avxintrin.h (_mm256_stream_si256): New.
31012         (_mm256_stream_pd): Likewise.
31013         (_mm256_stream_ps): Likewise.
31014
31015         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
31016         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
31017         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
31018         (bdesc_special_args): Add __builtin_ia32_movntdq256,
31019         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
31020         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
31021         (ix86_expand_special_args_builtin): Likewise.
31022
31023         * config/i386/sse.md (AVXMODEDI): New.
31024         (avx_movnt<mode>): Likewise.
31025         (avx_movnt<mode>): Likewise.
31026         (<sse>_movnt<mode>): Remove AVX support.
31027         (sse2_movntv2di): Likewise.
31028
31029 2009-01-07  Richard Guenther  <rguenther@suse.de>
31030
31031         PR middle-end/38751
31032         * fold-const.c (extract_muldiv): Remove obsolete comment.
31033         (fold_plusminus_mult_expr): Undo MINUS_EXPR
31034         to PLUS_EXPR canonicalization for the canonicalization.
31035
31036 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
31037
31038         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
31039         hosted cross-compilers generating less efficient code.
31040
31041 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
31042
31043         * function.h (rtl_data): Add a dbr_scheduled_p field.
31044         * reorg.c (dbr_schedule): Set it.
31045         (gate_handle_delay_slots): Check it.
31046         * config/mips/mips.c (mips_base_delayed_branch): Delete.
31047         (mips_reorg): Check flag_delayed_branch instead of
31048         mips_base_delayed_branch.
31049         (mips_override_options): Don't set mips_base_delayed_branch
31050         or flag_delayed_branch.
31051
31052 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
31053
31054         PR rtl-optimization/38426.
31055         * ira.c (ira): Set current_function_is_leaf earlier.
31056
31057 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
31058
31059         PR rtl-optimization/38722
31060         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
31061         too early, only set a flag and modify after last possible
31062         undo_all point.
31063
31064 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
31065
31066         PR c/34252
31067         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
31068         * real.c (decimal_single_format): Correct values of emin and emax.
31069         (decimal_double_format): Ditto.
31070         (decimal_quad_format): Ditto.
31071         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
31072         computation of DECnn_MIN and DECnn_MAX for corrected values of
31073         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
31074         __DECnn_MIN__, and adjust its computation for the corrected value
31075         of emin.
31076
31077 2009-01-06  Jan Hubicka  <jh@suse.cz>
31078
31079         PR target/38744
31080         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
31081
31082 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
31083
31084         * doc/contrib.texi (Contributors): Slightly adjust the end note.
31085         Add Robert Clark to the list of testers.
31086
31087 2009-01-06  Jan Hubicka  <jh@suse.cz>
31088             Kai Tietz  <kai.tietz@onevision.com>
31089
31090         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
31091         * config/i386/i386.c (ix86_expand_call): Add clobbers.
31092
31093 2009-01-06  Jan Hubicka  <jh@suse.cz>
31094             Kai Tietz  <kai.tietz@onevision.com>
31095
31096         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
31097         for w64 ABI.
31098         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
31099         (ix86_nsaved_regs): Count only general purpose regs.
31100         (ix86_nsaved_sseregs): New.
31101         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
31102         to 16 for w64; compute padding and size of sse reg save area.
31103         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
31104         general purpose regs.
31105         (ix86_emit_save_sse_regs_using_mov): New.
31106         (ix86_expand_prologue): Save SSE regs if needed.
31107         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
31108         (ix86_emit_restore_sse_regs_using_mov): New.
31109         (ix86_expand_epilogue): Save SSE regs if needed.
31110
31111 2009-01-06  Jan Hubicka  <jh@suse.cz>
31112             Kai Tietz  <kai.tietz@onevision.com>
31113
31114         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
31115         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
31116         functions when accumulate outgoing args is off.
31117
31118 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
31119
31120         PR bootstrap/38742
31121         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
31122         before using pseudos_have_intersected_live_ranges_p.
31123
31124         * ira-int.h (ira_assert): Always define.
31125
31126 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
31127
31128         AVX Programming Reference (December, 2008)
31129         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
31130         (_mm256_permute2_pd): Likewise.
31131         (_mm_permute2_ps): Likewise.
31132         (_mm256_permute2_ps): Likewise.
31133         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
31134         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
31135
31136         * config/i386/i386.c (ix86_builtins): Remove
31137         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
31138         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
31139         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
31140         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
31141         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
31142         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
31143         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
31144         __builtin_ia32_vpermil2ps256.
31145         (ix86_init_mmx_sse_builtins): Updated.
31146         (ix86_expand_args_builtin): Likewise.
31147
31148 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31149
31150         * pa.c (output_call): Relocate non-jump insns in the delay slot of
31151         long absolute calls when generating PA 2.0 code.
31152
31153 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
31154
31155         PR rtl-optimization/38583
31156         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
31157
31158         * params.def (ira-max-conflict-table-size): New.
31159
31160         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
31161
31162         * ira.h (ira_conflicts_p): New external definition.
31163
31164         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
31165         table.  Report this.  Return result of building.
31166         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
31167         building conflict table.
31168
31169         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
31170         (ira_color): Use ira_conflicts_p.
31171
31172         * global.c: Include ira.h.
31173         (pseudo_for_reload_consideration_p, build_insn_chain): Use
31174         ira_conflicts_p.
31175
31176         * Makefile.in (global.o): Add ira.h.
31177
31178         * ira-build.c (mark_all_loops_for_removal,
31179         propagate_some_info_from_allocno): New.
31180         (remove_unnecessary_allocnos): Call
31181         propagate_some_info_from_allocno.
31182         (remove_low_level_allocnos): New.
31183         (remove_unnecessary_regions): Add parameter.  Call
31184         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
31185         parameter to remove_unnecessary_regions.
31186         (ira_build): Remove all regions but root if the conflict table was
31187         not built.  Update conflict hard regs for allocnos crossing calls.
31188
31189         * ira.c (ira_conflicts_p): New global.
31190         (ira): Define and use ira_conflicts_p.
31191
31192         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
31193         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
31194         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
31195
31196 2009-01-06  Ben Elliston  <bje@au.ibm.com>
31197
31198         * gengtype-lex.l (YY_NO_INPUT): Define.
31199
31200 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
31201
31202         PR c/34911
31203         * c-common.c (handle_vector_size_attribute): Also reject
31204         BOOLEAN_TYPE types.
31205
31206 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
31207
31208         PR tree-optimization/38492
31209         * graphite.c (rename_map_elt, debug_rename_elt,
31210         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
31211         rename_map_elt_info, eq_rename_map_elts,
31212         get_new_name_from_old_name, bb_in_sese_p): Moved around.
31213         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
31214         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
31215         (sese_build_livein_liveouts): New.
31216         (new_sese, free_sese): New.
31217         (new_scop): Call new_sese.
31218         (free_scop): Call free_sese.
31219         (rename_variables_from_edge, rename_phis_end_scop): Removed.
31220         (register_old_new_names): Renamed register_old_and_new_names.
31221         (register_scop_liveout_renames, add_loop_exit_phis,
31222         insert_loop_close_phis, struct igp,
31223         default_liveout_before_guard, add_guard_exit_phis,
31224         insert_guard_phis, copy_renames): New.
31225         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
31226         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
31227         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
31228         (scop_adjust_phis_for_liveouts): New.
31229         (gloog): Call scop_adjust_phis_for_liveouts.
31230
31231         * graphite.h (struct sese): Documented.  Added fields liveout,
31232         num_ver and livein.
31233         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
31234         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
31235         (struct scop): Added field liveout_renames.
31236         (SCOP_LIVEOUT_RENAMES): New.
31237
31238 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
31239
31240         PR tree-optimization/38510
31241         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
31242         (translate_clast): Call recompute_all_dominators before
31243         graphite_verify.
31244         (gloog): Call recompute_all_dominators before graphite_verify.
31245
31246 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
31247             Jan Sjodin  <jan.sjodin@amd.com>
31248
31249         PR tree-optimization/38500
31250         * graphite.c (create_sese_edges): Call fix_loop_structure after
31251         splitting blocks.
31252
31253 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
31254
31255         * config.gcc: Add m32r*-*-rtems*.
31256         * config/m32r/rtems.h: New file.
31257
31258 2009-01-05  Ben Elliston  <bje@au.ibm.com>
31259
31260         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
31261         (.po.pox): Likewise.
31262         (po/gcc.pot): Likewise.
31263
31264 2009-01-04  David S. Miller  <davem@davemloft.net>
31265
31266         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
31267         (STARTING_FRAME_OFFSET): Always set to zero.
31268
31269 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
31270
31271         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
31272         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
31273         fixed-point types, and vectors of the same.
31274
31275 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
31276
31277         * config/mips/sync.md (*mb_barrier): Rename to...
31278         (*memory_barrier): ...this.
31279
31280 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
31281
31282         * doc/extend.texi (Function Attributes): Move @cindex after @item
31283         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
31284         and put in alphabetical order. Fix 'target' name and put in order.
31285         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
31286         typos.
31287
31288 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
31289
31290         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
31291         (memory_barrier): Expand as unspec instead of unspec_volatile.
31292         Remove mem:BLK from insn operands.  Use Pmode scratch register.
31293         (*memory_barrier): Define as unspec instead of unspec_volatile.
31294         Use (match_dup 0) as input operand.
31295
31296         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
31297         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
31298         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
31299         scratch register.  Remove operand 1.
31300         (*stbar): Define as unspec instead of unspec_volatile.
31301         Use (match_dup 0) as input operand, remove (const_int 8).
31302         (*membar): Define as unspec instead of unspec_volatile.
31303         Use (match_dup 0) as input operand, remove input operand 2.
31304
31305         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
31306         (memory_barrier): Expand as unspec instead of unspec_volatile.
31307         Remove mem:BLK from insn operands.  Use Pmode scratch register.
31308         (*memory_barrier): Define as unspec instead of unspec_volatile.
31309         Use (match_dup 0) as input operand.
31310
31311         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
31312         Remove mem:BLK from insn operands.  Use Pmode scratch register.
31313         Set volatile flag on operand 0.
31314         (*memory_barrier): New insn pattern.
31315
31316         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
31317         insn operands.
31318         (*memory_barrier): Use (match_dup 0) as input operand.
31319
31320         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
31321         Remove mem:BLK from insn operands.  Use Pmode scratch register.
31322         Set volatile flag on operand 0.
31323         (*mb_internal): New insn pattern.
31324
31325         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
31326
31327 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
31328
31329         PR middle-end/38586
31330         * function.c (struct temp_slot): Move to the section of the file
31331         that deals with temp slots.  Remove field 'address'.
31332         (temp_slot_address_table): New hash table of address -> temp slot.
31333         (struct temp_slot_address_entry): New struct, items for the table.
31334         (temp_slot_address_compute_hash, temp_slot_address_hash,
31335         temp_slot_address_eq, insert_temp_slot_address): Support functions
31336         for the new table.
31337         (find_temp_slot_from_address): Rewrite to use the new hash table.
31338         (remove_unused_temp_slot_addresses): Remove addresses of temp
31339         slots that have been made available.
31340         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
31341         worker function for remove_unused_temp_slot_addresses.
31342         (assign_stack_temp_for_type): Don't clear the temp slot address list.
31343         Add the temp slot address to the address -> temp slot map.
31344         (update_temp_slot_address): Update via insert_temp_slot_address.
31345         (free_temp_slots): Call remove_unused_temp_slot_addresses.
31346         (pop_temp_slots): Likewise.
31347         (init_temp_slots): Allocate the address -> temp slot map, or empty
31348         the map if it is already allocated.
31349         (prepare_function_start): Initialize temp slot processing.
31350
31351 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
31352
31353         PR middle-end/38584
31354         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
31355         Calculate the size of all stack vars assuming no packing of stack
31356         vars will happen, replacing a quadratic algorithm with a linear one.
31357
31358 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
31359
31360         PR target/38707
31361         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
31362         can't be used.
31363
31364 2009-01-03  Diego Novillo  <dnovillo@google.com>
31365
31366         * doc/contrib.texi: Update contributions.
31367
31368 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
31369
31370         PR c++/38705
31371         * builtins.c (fold_builtin_memory_op): Give up if either operand
31372         is volatile.  Set srctype or desttype to non-qualified version
31373         of the other type.
31374
31375         PR c/38700
31376         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
31377         and FUNCTION_DECLs.
31378
31379 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
31380
31381         PR rtl-optimization/35805
31382         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
31383         problem if fast dce is able to remove any instructions.
31384         * dce.c (dce_process_block): Fix dump message.
31385
31386 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
31387
31388         PR 33649
31389         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
31390
31391 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
31392
31393         PR middle-end/38690
31394         * tree-flow.h (op_code_prio, op_prio): New prototypes.
31395         * tree-pretty-print.c (op_code_prio): New function.
31396         (op_prio): No longer static.  Use op_code_prio.
31397         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
31398         Use op_prio and op_code_prio to determine if () should be
31399         printed around operand(s) or not.
31400
31401         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
31402         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
31403         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
31404         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
31405         pp_character instead of pp_string for single letter printing.
31406
31407 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
31408
31409         * doc/extend.texi: Fix '#pragma GCC option' typo.
31410
31411 2009-01-02  Richard Guenther  <rguenther@suse.de>
31412
31413         * doc/install.texi (--enable-checking): Mention different
31414         default for stage1.
31415         (--enable-stage1-checking): Document.
31416
31417 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
31418
31419         PR middle-end/30142
31420         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
31421         case to be an error.
31422
31423 2009-01-02  Ben Elliston  <bje@au.ibm.com>
31424
31425         * config/fp-bit.h (pack_d): Constify argument.
31426         * config/fp-bit.c (makenan): Constify return type. Remove casts.
31427         (isnan): Constify argument.
31428         (isinf): Likewise.
31429         (iszero): Likewise.
31430         (pack_d): Likewise.
31431         (_fpadd_parts): Constify return type.
31432         (_fpmul_parts): Likewise.
31433         (_fpdiv_parts): Likewise.
31434
31435 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
31436
31437         PR c/36489
31438         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
31439         warn about overwriting initializer with side-effects or
31440         -Woverride-init if !IMPLICIT.
31441         (output_init_element): Likewise.  Pass IMPLICIT down to
31442         add_pending_init.
31443         (process_init_element): Add IMPLICIT argument.  Pass it down
31444         to output_init_element.
31445         (push_init_element, pop_init_level, set_designator): Adjust
31446         process_init_element callers.
31447         (set_nonincremental_init, set_nonincremental_init_from_string):
31448         Adjust add_pending_init callers.
31449         (output_pending_init_elements): Adjust output_init_element callers.
31450         * c-tree.h (process_init_element): Adjust prototype.
31451         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
31452         process_init_element callers.
31453
31454 \f
31455 Copyright (C) 2009 Free Software Foundation, Inc.
31456
31457 Copying and distribution of this file, with or without modification,
31458 are permitted in any medium without royalty provided the copyright
31459 notice and this notice are preserved.