OSDN Git Service

* cfgrtl.c (pass_free_cfg): Add pass name.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-11-08  Zbigniew Chamski  <zbigniew.chamski@gmail.com>
2             Joern Rennecke  <amylaar@spamcop.net>
3
4         * cfgrtl.c (pass_free_cfg): Add pass name.
5         * cgraphbuild.c (pass_build_cgraph_edges): Likewise.
6         (pass_rebuild_cgraph_edges, pass_remove_cgraph_callee_edges): Likewise.
7         * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Change pass name.
8         * df-core.c (pass_df_initialize_no_opt): Likewise.
9         * except.c (pass_rtl_eh): Likewise.
10         * function.c (pass_init_function, pass_leaf_regs): Likewise.
11         * gcse.c (pass_rtl_pre): Change pass name.
12         * passes.c (pass_postreload): Add pass name.
13         (make_pass_instance): Don't use duplicate-tracking logic for
14         names starting with '*'.
15         (next_pass_1): Assert that pass has a name.
16         (register_one_dump_file): If there is an space in the name,
17         skip past it.
18         * predict.c (pass_strip_predict_hints): Add pass name.
19         * reg-stack.c (pass_stack_regs): Likewise.
20         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
21         * tree-cfg.c (pass_warn_function_return,
22         pass_warn_function_noreturn): Add pass name.
23         * tree-dfa.c (pass_referenced_vars): Likewise.
24         * tree-optimize.c (pass_cleanup_cfg_post_optimizing):
25         Fix whitespace before comment.
26         (pass_fixup_cfg): Add pass name, fix whitespace before comment.
27         (pass_init_datastructures): Add pass name.
28         * tree-ssa-loop.c (pass_record_bounds): Likewise.
29         * tree-ssa.c (pass_early_warn_uninitialized,
30         pass_late_warn_uninitialized): Likewise.
31         * tree.c (pass_ipa_free_lang_data): Likewise.
32         * doc/passes.texi (pass manager): Document how to disambiguate
33         pass names.
34
35 2009-11-08  Paolo Bonzini  <bonzini@gnu.org>
36
37         * df-problems.c: Fix documentation for forward simulation of LR.
38         (df_simulate_one_insn_forwards): Use df_simulate_find_defs.
39         (df_simulate_finalize_forwards): Remove.
40         * df.h (df_simulate_finalize_forwards): Remove.
41
42 2009-11-08  Richard Guenther  <rguenther@suse.de>
43
44         * tree-ssa-structalias.c (build_succ_graph): Properly make
45         variables escape if they are stored to anything.
46
47 2009-11-08  Richard Guenther  <rguenther@suse.de>
48
49         PR rtl-optimization/41928
50         * loop-invariant.c (free_loop_data): If we didn't allocate
51         loop data do not try to free it.
52
53 2009-11-07  Jason Merrill  <jason@redhat.com>
54
55         * tree.c (reconstruct_complex_type): Preserve attributes.
56
57 2009-11-07  Richard Guenther  <rguenther@suse.de>
58
59         * tree-ssa-structalias.c (build_succ_graph): Feed stores
60         to anything only to variables that can take pointers.
61         (get_constraint_for_ssa_var): Properly exclude full
62         variables from expanding.
63         (first_vi_for_offset): Avoid overflow in arithmetic.
64         (first_or_preceding_vi_for_offset): Likewise.
65         (count_num_arguments): Fix implementation.
66         (gate_ipa_pta): Do not run when not optimizing.
67
68 2009-11-07  David Binderman <dcb314@hotmail.com>
69
70         * builtins.c (apply_args_size, expand_builtin_mathfn, expand_powi,
71         expand_builtin_expect, maybe_emit_sprintf_chk_warning): Remove some
72         set but not used variables.
73         * calls.c (flags_from_decl_or_type): Likewise.
74         * genautomata.c (check_regexp_units_distribution): Likewise.
75
76 2009-11-07  Uros Bizjak  <ubizjak@gmail.com>
77
78         * config/i386/sse.md (xop_pmacsww, xop_pmacssww, xop_pmacsdd,
79         xop_pmacssdd, xop_pmacssdql, xop_pmacssdqh, xop_pmacsdql,
80         *xop_pmacsdql_mem, xop_pmacsdqh, *xop_pmacsdqh_mem, xop_pmacsswd,
81         xop_pmacswd, xop_pmadcsswd, xop_pmadcswd, xop_pcmov_<mode>,
82         xop_pcmov_<mode>256, xop_pperm, xop_pperm_pack_v2di_v4si,
83         xop_pperm_pack_v4si_v8hi, xop_pperm_pack_v8hi_v16qi): Compress
84         operand alternatives.
85
86 2009-11-06  Michael Matz  <matz@suse.de>
87
88         PR middle-end/41963
89         * tree-ssa-math-opts.c (execute_cse_reciprocals): Check all uses
90         of a potential reciprocal to really be reciprocals.
91
92 2009-11-06  Jakub Jelinek  <jakub@redhat.com>
93
94         * config/i386/x86intrin.h: Include fma4intrin.h, xopintrin.h and
95         lwpintrin.h after immintrin.h.
96         * config/i386/fma4intrin.h (__v8sf, __v4df, __m256, __m256d): Remove
97         typedefs.
98
99         PR middle-end/41935
100         * c-common.c (fold_offsetof_1) <case ARRAY_REF>: Don't crash for VLAs
101         or non-constant index, allow index one past the last element and
102         allow exceeding array bound in arrays that might be used as flexible
103         array members.
104
105 2009-11-05  Richard Henderson  <rth@redhat.com>
106
107         * config/i386/ia32intrin.h: Protect CRC32 builtins with __SSE4_2__.
108
109 2009-11-05  Paul Brook  <paul@codesourcery.com>
110
111         * config/arm/arm.c (arm_fp_model, arm_fpu_arch, arm_fpu_tune): Remove.
112         (arm_fpu_desc): New.
113         (all_fpus): Add FPU details.
114         (fp_model_for_fpu): Remove.
115         (arm_override_options): Set and use arm_fpu_desc and arm_fpu_attr.
116         (arm_output_epilogue, arm_save_coproc_regs): Use TARGET_FPA_EMU2.
117         (arm_file_start): Use arm_fpu_desc.
118         * config/arm/arm.h (TARGET_FPA, TARGET_MAVERICK, TARGET_VFP,
119         TARGET_VFPD32, TARGET_VFP3, TARGET_NEON_FP16, TARGET_NEON): Use
120         arm_fpu_desc.
121         (TARGET_FPA_EMU2): Define.
122         (arm_fp_model, fputype, arm_fpu_tune): Remove.
123         (vfp_reg_type, arm_fpu_desc): New.
124         * config/arm/arm.md (attr fpu): Simplify.
125         * config/arm/fpa.md (movxf_fpa): Use TARGET_FPA_EMU2.
126         * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Use string value.
127         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Use string value.
128         * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Use string value.
129         * config/arm/vxworks.h (FPUTYPE_DEFAULT): Use string value.
130
131 2009-11-05  Michael Matz  <matz@suse.de>
132
133         * config/i386/i386.c (ix86_builtin_reciprocal): Remove dependency
134         on TARGET_RECIP.
135         * doc/invoke.texi (-mrecip): Clarify that we don't need -mrecip
136         for 1/sqrtf.
137
138 2009-11-04  Jason Merrill  <jason@redhat.com>
139
140         PR c++/36912
141         * varasm.c (initializer_constant_valid_p): A PLUS_EXPR
142         or MINUS_EXPR of REAL_TYPE is not a valid constant initializer.
143         (output_constant): Avoid crash after error.
144
145 2009-11-05  Martin Jambor  <mjambor@suse.cz>
146
147         * tree-sra.c (struct access): Changed comment of next_sibling field.
148         (analyze_modified_params): Loop over accesses of a group rather than
149         over all with the ame base, pass a common bitmap to
150         walk_aliased_vdefs.
151         (unmodified_by_ref_scalar_representative): Build link lists of
152         accesses of a group.
153         (splice_param_accesses): Likewise.
154
155 2009-11-04  Kenneth Zadeck  <zadeck@naturalbridge.com>
156
157         * df-scan.c (df-uses-record): Add case zero_extract of mem.
158         
159 2009-11-04  Eric Botcazou  <ebotcazou@adacore.com>
160
161         PR target/10127
162         PR ada/20548
163         * config/i386/i386.md (probe_stack): New expander.
164         (logical operation peepholes): Do not split stack checking probes.
165
166 2009-11-04  Harsha Jagasia  <harsha.jagasia@amd.com>
167             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
168
169         * doc/invoke.texi (-mlwp): Add documentation.
170         * doc/extend.texi (x86 intrinsics): Add LWP intrinsics.
171         * config.gcc (i[34567]86-*-*): Include lwpintrin.h.
172         (x86_64-*-*): Ditto.
173         * config/i386/lwpintrin.h: New file, provide x86 compiler
174         intrinisics for LWP.
175         * config/i386/cpuid.h (bit_LWP): Define LWP bit.
176         * config/i386/x86intrin.h: Add LWP check and lwpintrin.h.
177         * config/i386/i386-c.c (ix86_target_macros_internal): Check
178         ISA_FLAG for LWP. 
179         * config/i386/i386.h (TARGET_LWP): New macro for LWP.
180         * config/i386/i386.opt (-mlwp): New switch for LWP support.
181         * config/i386/i386.c (OPTION_MASK_ISA_LWP_SET): New.
182         (OPTION_MASK_ISA_LWP_UNSET): New.       
183         (ix86_handle_option): Handle -mlwp.
184         (isa_opts): Handle -mlwp.
185         (enum pta_flags): Add PTA_LWP.
186         (override_options): Add LWP support.
187         (IX86_BUILTIN_LLWPCB16): New for LWP intrinsic.
188         (IX86_BUILTIN_LLWPCB32): Ditto.
189         (IX86_BUILTIN_LLWPCB64): Ditto.
190         (IX86_BUILTIN_SLWPCB16): Ditto.
191         (IX86_BUILTIN_SLWPCB32): Ditto.
192         (IX86_BUILTIN_SLWPCB64): Ditto.
193         (IX86_BUILTIN_LWPVAL16): Ditto.
194         (IX86_BUILTIN_LWPVAL32): Ditto.
195         (IX86_BUILTIN_LWPVAL64): Ditto.
196         (IX86_BUILTIN_LWPINS16): Ditto.
197         (IX86_BUILTIN_LWPINS32): Ditto.
198         (IX86_BUILTIN_LWPINS64): Ditto.
199         (enum  ix86_special_builtin_type): Add LWP intrinsic support.
200         (builtin_description): Ditto.
201         (ix86_init_mmx_sse_builtins): Ditto.
202         (ix86_expand_special_args_builtin): Ditto.
203         * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC): Add new UNSPEC for 
204         LWP support.
205         (UNSPEC_SLWP_INTRINSIC): Ditto.
206         (UNSPECV_LWPVAL_INTRINSIC): Ditto.
207         (UNSPECV_LWPINS_INTRINSIC): Ditto.
208         (lwp_llwpcbhi1): New lwp pattern.
209         (lwp_llwpcbsi1): Ditto.
210         (lwp_llwpcbdi1): Ditto.
211         (lwp_slwpcbhi1): Ditto.
212         (lwp_slwpcbsi1): Ditto.
213         (lwp_slwpcbdi1): Ditto.
214         (lwp_lwpvalhi3): Ditto.
215         (lwp_lwpvalsi3): Ditto.
216         (lwp_lwpvaldi3): Ditto.
217         (lwp_lwpinshi3): Ditto.
218         (lwp_lwpinssi3): Ditto.
219         (lwp_lwpinsdi3): Ditto.
220         
221 2009-11-04  Andrew Pinski  <andrew_pinski@playstation.sony.com>
222             Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
223
224         PR rtl-opt/41833
225         * simplify-rtx.c (simplify_binary_operation_1): Simplify vec_select of
226         a vec_duplicate.
227
228 2009-11-04  Richard Guenther  <rguenther@suse.de>
229             Rafael Avila de Espindola  <espindola@google.com>
230  
231         * gcc.c (process_command): Handle arguments name@offset.
232
233 2009-11-04  Harsha Jagasia  <harsha.jagasia@amd.com>
234             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
235         
236         * config.gcc (i[34567]86-*-*): Include xopintrin.h.
237         (x86_64-*-*): Ditto.
238         * config/i386/xopintrin.h: New file, provide common x86 compiler
239         intrinisics for XOP.
240         * config/i386/cpuid.h (bit_XOP): Define XOP bit.
241         * config/i386/x86intrin.h: Add XOP check and xopintrin.h.
242         * config/i386/i386-c.c(ix86_target_macros_internal): Check
243         ISA_FLAG for XOP. 
244         * config/i386/i386.h(TARGET_XOP): New macro for XOP.
245         * config/i386/i386.opt (-mxop): New switch for XOP support.
246         * config/i386/i386.md (UNSPEC_XOP_UNSIGNED_CMP)
247         (UNSPEC_XOP_TRUEFALSE)
248         (UNSPEC_XOP_PERMUTE)
249         (UNSPEC_FRCZ): Add new UNSPEC for XOP support.
250         (PPERM_*): New constants for vpperm instruction.
251         (xop_pcmov_<mode>): Add XOP conditional mov instructions.
252         * config/i386/i386.c (OPTION_MASK_ISA_XOP_SET): New.
253         (OPTION_MASK_ISA_XOP_UNSET): New.       
254         (OPTION_MASK_ISA_XOP_UNSET): Change definition to depend on XOP.
255         (ix86_handle_option): Handle -mxop.
256         (isa_opts): Handle -mxop.
257         (enum pta_flags): Add PTA_XOP.
258         (override_options): Add XOP support.
259         (print_operand): Add code for XOP compare instructions.
260         (ix86_expand_sse_movcc): Extend for XOP conditional move instruction.
261         (ix86_expand_int_vcond): Extend for XOP compare instruction.
262
263         (IX86_BUILTIN_VPCMOV): New for XOP intrinsic.
264         (IX86_BUILTIN_VPCMOV_V2DI): Ditto.
265         (IX86_BUILTIN_VPCMOV_V4SI): Ditto.
266         (IX86_BUILTIN_VPCMOV_V8HI): Ditto.
267         (IX86_BUILTIN_VPCMOV_V16QI): Ditto.
268         (IX86_BUILTIN_VPCMOV_V4SF): Ditto.
269         (IX86_BUILTIN_VPCMOV_V2DF): Ditto.
270
271         (IX86_BUILTIN_VPCMOV256): Ditto.
272         (IX86_BUILTIN_VPCMOV_V4DI256): Ditto.
273         (IX86_BUILTIN_VPCMOV_V8SI256): Ditto.
274         (IX86_BUILTIN_VPCMOV_V16HI256): Ditto.
275         (IX86_BUILTIN_VPCMOV_V32QI256): Ditto.
276         (IX86_BUILTIN_VPCMOV_V8SF256): Ditto.
277         (IX86_BUILTIN_VPCMOV_V4DF256): Ditto.
278
279         (IX86_BUILTIN_VPPERM): Ditto.
280
281         (IX86_BUILTIN_VPMACSSWW): Ditto.
282         (IX86_BUILTIN_VPMACSWW): Ditto.
283         (IX86_BUILTIN_VPMACSSWD): Ditto.
284         (IX86_BUILTIN_VPMACSWD): Ditto.
285         (IX86_BUILTIN_VPMACSSDD): Ditto.
286         (IX86_BUILTIN_VPMACSDD): Ditto.
287         (IX86_BUILTIN_VPMACSSDQL): Ditto.
288         (IX86_BUILTIN_VPMACSSDQH): Ditto.
289         (IX86_BUILTIN_VPMACSDQL): Ditto.
290         (IX86_BUILTIN_VPMACSDQH): Ditto.
291         (IX86_BUILTIN_VPMADCSSWD): Ditto.
292         (IX86_BUILTIN_VPMADCSWD): Ditto.
293
294         (IX86_BUILTIN_VPHADDBW): Ditto.
295         (IX86_BUILTIN_VPHADDBD): Ditto.
296         (IX86_BUILTIN_VPHADDBQ): Ditto.
297         (IX86_BUILTIN_VPHADDWD): Ditto.
298         (IX86_BUILTIN_VPHADDWQ): Ditto.
299         (IX86_BUILTIN_VPHADDDQ): Ditto.
300         (IX86_BUILTIN_VPHADDUBW): Ditto.
301         (IX86_BUILTIN_VPHADDUBD): Ditto.
302         (IX86_BUILTIN_VPHADDUBQ): Ditto.
303         (IX86_BUILTIN_VPHADDUWD): Ditto.
304         (IX86_BUILTIN_VPHADDUWQ): Ditto.
305         (IX86_BUILTIN_VPHADDUDQ): Ditto.
306         (IX86_BUILTIN_VPHSUBBW): Ditto.
307         (IX86_BUILTIN_VPHSUBWD): Ditto.
308         (IX86_BUILTIN_VPHSUBDQ): Ditto.
309
310         (IX86_BUILTIN_VPROTB): Ditto.
311         (IX86_BUILTIN_VPROTW): Ditto.
312         (IX86_BUILTIN_VPROTD): Ditto.
313         (IX86_BUILTIN_VPROTQ): Ditto.
314         (IX86_BUILTIN_VPROTB_IMM): Ditto.
315         (IX86_BUILTIN_VPROTW_IMM): Ditto.
316         (IX86_BUILTIN_VPROTD_IMM): Ditto.
317         (IX86_BUILTIN_VPROTQ_IMM): Ditto.
318
319         (IX86_BUILTIN_VPSHLB): Ditto.
320         (IX86_BUILTIN_VPSHLW): Ditto.
321         (IX86_BUILTIN_VPSHLD): Ditto.
322         (IX86_BUILTIN_VPSHLQ): Ditto.
323         (IX86_BUILTIN_VPSHAB): Ditto.
324         (IX86_BUILTIN_VPSHAW): Ditto.
325         (IX86_BUILTIN_VPSHAD): Ditto.
326         (IX86_BUILTIN_VPSHAQ): Ditto.
327
328         (IX86_BUILTIN_VFRCZSS): Ditto.
329         (IX86_BUILTIN_VFRCZSD): Ditto.
330         (IX86_BUILTIN_VFRCZPS): Ditto.
331         (IX86_BUILTIN_VFRCZPD): Ditto.
332         (IX86_BUILTIN_VFRCZPS256): Ditto.
333         (IX86_BUILTIN_VFRCZPD256): Ditto.
334
335         (IX86_BUILTIN_VPCOMEQUB): Ditto.
336         (IX86_BUILTIN_VPCOMNEUB): Ditto.
337         (IX86_BUILTIN_VPCOMLTUB): Ditto.
338         (IX86_BUILTIN_VPCOMLEUB): Ditto.
339         (IX86_BUILTIN_VPCOMGTUB): Ditto.
340         (IX86_BUILTIN_VPCOMGEUB): Ditto.
341         (IX86_BUILTIN_VPCOMFALSEUB): Ditto.
342         (IX86_BUILTIN_VPCOMTRUEUB): Ditto.
343
344         (IX86_BUILTIN_VPCOMEQUW): Ditto.
345         (IX86_BUILTIN_VPCOMNEUW): Ditto.
346         (IX86_BUILTIN_VPCOMLTUW): Ditto.
347         (IX86_BUILTIN_VPCOMLEUW): Ditto.
348         (IX86_BUILTIN_VPCOMGTUW): Ditto.
349         (IX86_BUILTIN_VPCOMGEUW): Ditto.
350         (IX86_BUILTIN_VPCOMFALSEUW): Ditto.
351         (IX86_BUILTIN_VPCOMTRUEUW): Ditto.
352
353         (IX86_BUILTIN_VPCOMEQUD): Ditto.
354         (IX86_BUILTIN_VPCOMNEUD): Ditto.
355         (IX86_BUILTIN_VPCOMLTUD): Ditto.
356         (IX86_BUILTIN_VPCOMLEUD): Ditto.
357         (IX86_BUILTIN_VPCOMGTUD): Ditto.
358         (IX86_BUILTIN_VPCOMGEUD): Ditto.
359         (IX86_BUILTIN_VPCOMFALSEUD): Ditto.
360         (IX86_BUILTIN_VPCOMTRUEUD): Ditto.
361
362         (IX86_BUILTIN_VPCOMEQUQ): Ditto.
363         (IX86_BUILTIN_VPCOMNEUQ): Ditto.
364         (IX86_BUILTIN_VPCOMLTUQ): Ditto.
365         (IX86_BUILTIN_VPCOMLEUQ): Ditto.
366         (IX86_BUILTIN_VPCOMGTUQ): Ditto.
367         (IX86_BUILTIN_VPCOMGEUQ): Ditto.
368         (IX86_BUILTIN_VPCOMFALSEUQ): Ditto.
369         (IX86_BUILTIN_VPCOMTRUEUQ): Ditto.
370
371         (IX86_BUILTIN_VPCOMEQB): Ditto.
372         (IX86_BUILTIN_VPCOMNEB): Ditto.
373         (IX86_BUILTIN_VPCOMLTB): Ditto.
374         (IX86_BUILTIN_VPCOMLEB): Ditto.
375         (IX86_BUILTIN_VPCOMGTB): Ditto.
376         (IX86_BUILTIN_VPCOMGEB): Ditto.
377         (IX86_BUILTIN_VPCOMFALSEB): Ditto.
378         (IX86_BUILTIN_VPCOMTRUEB): Ditto.
379
380         (IX86_BUILTIN_VPCOMEQW): Ditto.
381         (IX86_BUILTIN_VPCOMNEW): Ditto.
382         (IX86_BUILTIN_VPCOMLTW): Ditto.
383         (IX86_BUILTIN_VPCOMLEW): Ditto.
384         (IX86_BUILTIN_VPCOMGTW): Ditto.
385         (IX86_BUILTIN_VPCOMGEW): Ditto.
386         (IX86_BUILTIN_VPCOMFALSEW): Ditto.
387         (IX86_BUILTIN_VPCOMTRUEW): Ditto.
388
389         (IX86_BUILTIN_VPCOMEQD): Ditto.
390         (IX86_BUILTIN_VPCOMNED): Ditto.
391         (IX86_BUILTIN_VPCOMLTD): Ditto.
392         (IX86_BUILTIN_VPCOMLED): Ditto.
393         (IX86_BUILTIN_VPCOMGTD): Ditto.
394         (IX86_BUILTIN_VPCOMGED): Ditto.
395         (IX86_BUILTIN_VPCOMFALSED): Ditto.
396         (IX86_BUILTIN_VPCOMTRUED): Ditto.
397
398         (IX86_BUILTIN_VPCOMEQQ): Ditto.
399         (IX86_BUILTIN_VPCOMNEQ): Ditto.
400         (IX86_BUILTIN_VPCOMLTQ): Ditto.
401         (IX86_BUILTIN_VPCOMLEQ): Ditto.
402         (IX86_BUILTIN_VPCOMGTQ): Ditto.
403         (IX86_BUILTIN_VPCOMGEQ): Ditto.
404         (IX86_BUILTIN_VPCOMFALSEQ): Ditto.
405         (IX86_BUILTIN_VPCOMTRUEQ): Ditto.
406
407         (enum multi_arg_type): New enum for describing the various XOP
408         intrinsic argument types.
409         (bdesc_multi_arg): New table for XOP intrinsics.
410         (ix86_init_mmx_sse_builtins): Add XOP intrinsic support.
411         (ix86_expand_multi_arg_builtin): New function for creating XOP
412         intrinsics.
413
414         * config/i386/sse.md (sserotatemax): New mode attribute for XOP.
415         (xop_pmacsww): Ditto.
416         (xop_pmacssww): Ditto.
417         (xop_pmacsdd): Ditto.
418         (xop_pmacssdd): Ditto.
419         (xop_pmacssdql): Ditto.
420         (xop_pmacssdqh): Ditto.
421         (xop_pmacsdql): Ditto.
422         (xop_pmacsdql_mem): Ditto.
423         (xop_mulv2div2di3_low): Ditto.
424         (xop_pmacsdqh): Ditto.
425         (xop_pmacsdqh_mem): Ditto.
426         (xop_mulv2div2di3_high): Ditto.
427         (xop_pmacsswd): Ditto.
428         (xop_pmacswd): Ditto.
429         (xop_pmadcsswd): Ditto.
430         (xop_pmadcswd): Ditto.
431         (xop_pcmov_<mode>): Ditto.
432         (xop_pcmov_<mode>)256: Ditto.
433         (xop_phaddbw): Ditto.
434         (xop_phaddbd): Ditto.
435         (xop_phaddbq): Ditto.
436         (xop_phaddwd): Ditto.
437         (xop_phaddwq): Ditto.
438         (xop_phadddq): Ditto.
439         (xop_phaddubw): Ditto.
440         (xop_phaddubd): Ditto.
441         (xop_phaddubq): Ditto.
442         (xop_phadduwd): Ditto.
443         (xop_phadduwq): Ditto.
444         (xop_phaddudq): Ditto.
445         (xop_phsubbw): Ditto.
446         (xop_phsubwd): Ditto.
447         (xop_phsubdq): Ditto.
448         (xop_pperm): Ditto.
449         (rotl<mode>3): Ditto.
450         (rotr<mode>3): Ditto.
451         (xop_rotl<mode>3): Ditto.
452         (xop_rotr<mode>3): Ditto.
453         (vrotr<mode>3): Ditto.
454         (vrotl<mode>3): Ditto.
455         (xop_vrotl<mode>3): Ditto.
456         (vlshr<mode>3): Ditto.
457         (vashr<mode>3): Ditto.
458         (vashl<mode>3
459         (xop_ashl<mode>3): Ditto.
460         (xop_lshl<mode>3): Ditto.
461         (ashlv16qi3): Ditto.
462         (lshlv16qi3): Ditto.
463         (ashrv16qi3): Ditto.
464         (ashrv2di3): Ditto.
465         (xop_frcz<mode>2): Ditto.
466         (xop_vmfrcz<mode>2): Ditto.
467         (xop_frcz<mode>2256): Ditto.    
468         (xop_maskcmp<mode>3): Ditto.
469         (xop_maskcmp_uns<mode>3): Ditto.
470         (xop_maskcmp_uns2<mode>3): Ditto.
471         (xop_pcom_tf<mode>3): Ditto.
472
473         * doc/invoke.texi (-mxop): Add documentation.
474         * doc/extend.texi (x86 intrinsics): Add XOP intrinsics.
475         
476 2009-11-03  Mark Mitchell  <mark@codesourcery.com>
477
478         PR driver/11810
479         * gcc.c (SWITCHES_NEED_SPACES): Define to "o".
480         * config/alpha/osf.h (SWITCHES_NEED_SPACES): Remove here.
481         * config/mips/iris.h (SWITCHES_NEED_SPACES): Remove here.
482
483 2009-11-04  Richard Earnshaw  <rearnsha@arm.com>
484
485         PR target/40835
486         * arm.md (peephole2 patterns for move and compare): New.
487
488 2009-11-04  Nick Clifton  <nickc@redhat.com>
489
490         * defaults.h (CONSTANT_ADDRESS_P): Provide a default definition.
491         Make sure that it does not allow CONST_DOUBLEs.
492         * doc/tm.texi (CONSTANT_ADDRESS_P): Update description.
493         * config/avr/avr.h (CONSTANT_ADDRESS_P): Delete.
494         * config/bfin/bfin.h (CONSTANT_ADDRESS_P): Delete.
495         * config/cris/cris.h (CONSTANT_ADDRESS_P): Delete.
496         * config/fr30/fr30.h (CONSTANT_ADDRESS_P): Delete.
497         * config/frv/frv.h (CONSTANT_ADDRESS_P): Delete.
498         * config/m32c/m32c.h (CONSTANT_ADDRESS_P): Delete.
499         * config/m68hc11/m68hc11.h (CONSTANT_ADDRESS_P): Delete.
500         * config/mep/mep.h (CONSTANT_ADDRESS_P): Delete.
501         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Delete.
502         * config/moxie/moxie.h (CONSTANT_ADDRESS_P): Delete.
503         * config/pdp11/pdp11.h (CONSTANT_ADDRESS_P): Delete.
504         * config/picochip/picochip.h (CONSTANT_ADDRESS_P): Delete.
505         * config/score/score.h (CONSTANT_ADDRESS_P): Delete.
506         * config/stormy16/stormy16.h (CONSTANT_ADDRESS_P): Delete.
507
508 2009-11-04  Richard Guenther  <rguenther@suse.de>
509
510         PR tree-optimization/41919
511         * tree-vrp.c (test_for_singularity): Properly compare values.
512
513 2009-11-04  Revital Eres  <eres@il.ibm.com>
514
515         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
516         Consider peeling for alignment only for stores and remove
517         redundant assignment.
518
519 2009-11-04  Maxim Kuvyrkov  <maxim@codesourcery.com>
520
521         PR target/41302
522         * config/m68k/m68k.c (m68k_reg_present_p): New static function.
523         (m68k_ok_for_sibcall_p): Handle different result return locations.
524
525 2009-11-04  Richard Guenther  <rguenther@suse.de>
526
527         * c-opts.c (c_common_post_options): Move LTO option processing
528         code ...
529         * opts.c (decode_options): ... here.
530
531 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
532
533         * c-common.c (fold_offsetof_1): Use %wd instead of
534         HOST_WIDE_INT_PRINT_DEC.
535
536 2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
537
538         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Don't define
539         __pic__ or __PIC__.
540
541 2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
542
543         * config.gcc (vax-*-linux*): Keep the original contents of
544         tmake_file while adding vax/t-linux.
545
546 2009-11-03  Eric Botcazou  <ebotcazou@adacore.com>
547
548         PR target/10127
549         PR ada/20548
550         * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete.
551         (STACK_CHECK_PROBE_INTERVAL_EXP): New macro.
552         (STACK_CHECK_MOVING_SP): Likewise.
553         * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it.
554         * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL.
555         Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP.
556         * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK.
557         Document PROBE_STACK.
558         * explow.c (anti_adjust_stack_and_probe): New function.
559         (allocate_dynamic_stack_space): Do not directly allocate space if
560         STACK_CHECK_MOVING_SP, instead invoke above function.
561         (emit_stack_probe): Handle probe_stack insn.
562         (PROBE_INTERVAL): New macro.
563         (STACK_GROW_OPTAB): Likewise.
564         (STACK_GROW_OFF): Likewise.
565         (probe_stack_range): Use Pmode and memory_address consistently.  Fix
566         loop condition in the small constant case.  Rewrite in the general
567         case to be immune to wraparounds.  Make sure the address of probes
568         is valid.  Try to use [base + disp] addressing mode if possible.
569         * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack
570         checking is enabled and STACK_CHECK_MOVING_SP.
571         * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled,
572         return 1 for volatile references to the stack pointer.
573         * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on
574         __builtin_alloca if stack checking is enabled.
575         * unwind-dw2.c (uw_identify_context): Take into account whether the
576         context is that of a signal frame or not.
577         * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1.
578         * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise.
579
580 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
581
582         PR rtl-optimization/41917
583         * rtlanal.c (num_sign_bit_copies1) <case UMOD>: If sign bit of second
584         operand isn't known to be 0, return 1.
585
586 2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
587
588         * config/mips/mips.md: Fix typos.
589
590 2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
591
592         * doc/invoke.texi: Fix typo.
593
594 2009-11-03  Paul Brook  <paul@codesourcery.com>
595
596         * config/arm/neon.ml (vectype): Add T_floatSF.
597         (string_of_vectype): Ditto.
598         * config/arm/neon-gen.ml (signed_ctype): Add T_floatSF.
599         (deftypes): Use float for float32_t.
600         * config/arm/arm_neon.h: Regenerate.
601
602 2009-11-03  Nick Clifton  <nickc@redhat.com>
603             Kevin Buettner  <kevinb@redhat.com>
604
605         * config/rx/predicates.md (rx_store_multiple_vector): Reverse
606         order of expected registers.
607         (rx_load_multiple_vector): Likewise.
608         (rx_rtsd_vector): Likewise.
609         * config/rx/rx.c (rx_cpu_type): New variable.
610         (rx_print_operand): Fix bug printing 64-bit constant values.
611         (rx_emit_stack_pushm): Reverse order of pushed registers.
612         (gen_rx_store_vector): Likewise.
613         (is_fast_interrupt_func): Only accept "fast_interrupt" as the
614         attribute name.
615         (is_exception_func): Rename to is_interrupt_func and only accept
616         "interrupt" as the attribute name.
617         (rx_get_stack_layout): Use new function name.
618         (rx_func_attr_inlinable): Likewise.
619         (rx_attribute_table): Remove "exception".
620         (rx_expand_prologue): If necessary push the accumulator register
621         in the prologue of interrupt functions.
622         (rx_expand_epilogue): If necessary pop the accumulator.
623         (rx_builtins): Add RX_BUILTIN_MVTIPL.
624         (rx_expand_builtin_stz): Remove.
625         (rx_expand_builtin_mvtipl): New function.
626         (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
627         (rx_expand_builtin): Likewise.
628         (rx_enable_fpu): New variable.
629         (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
630         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
631         on rx_cpu_type.  Define __RX_FPU_INSNS__ if FPU insns are allowed.
632         (enum rx_cpu_types): Define.
633         (ASM_SPEC): Pass -m32bit-doubles on to assembler.
634         (INCOMING_FRAME_SP_OFFSET): Define.
635         (ARG_POINTER_CFA_OFFSET): Define.
636         (FRAME_POINTER_CFA_OFFSET): Define.
637         (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
638         (ALLOW_RX_FPU_INSNS): Define.
639         * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
640         fast_math_flags_set_p.
641         (UNSPEC_BUILTIN_MVTIPL): Define.
642         (revl): Rename to bswapsi2.
643         (bswaphi2): New pattern.
644         (mvtachi): Mark as volatile because it uses a register unknown to GCC.
645         (mvtaclo): Likewise.
646         (racw): Likewise.
647         (mvtc): Remove clobber of cc0.
648         (mvtcp): Delete.
649         (opecp): Delete.
650         * config/rx/rx.opt (mieee): Remove.
651         (fpu): Add.
652         (nofpu): Add.
653         (mcpu=): Add.
654         (patch=): Add.
655         (msave-acc-in-interrupts): Add.
656         * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit doubles.
657         (MULTILIB_DIRS): Likewise.
658         (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
659         * doc/extend.texi: Remove description of "exception" function
660         attribute.
661         * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
662         -msave-acc-in-interrupts options.
663
664 2009-11-03  Richard Guenther  <rguenther@suse.de>
665
666         * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
667
668 2009-11-03  Dodji Seketeli  <dodji@redhat.com>
669
670         PR c++/38699
671         * c-common.c (fold_offsetof_1): Issue errors when the member
672         designator of the offsetof expression is not legitimate.
673
674 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
675
676         * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
677         names instead of numerical constants.
678         (sse_prologue_save): Ditto.
679         (*sse_prologue_save_insn): Ditto.
680
681 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
682
683         PR target/41900
684         * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
685         (TARGET_CALL_ESP): New define.
686         * config/i386/i386.c (initial_ix86_tune_features): Initialize
687         X86_ARCH_CALL_ESP.
688         * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
689         *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
690         *call_1, *call_value_pop_1 and *call_value_1.  Depend on
691         TARGET_CALL_ESP.
692         (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
693         New patterns, use "lsm" as operand 1 constraint.
694         * config/i386/predicates.md (call_insn_operand): Depend on
695         index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
696
697 2009-11-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
698
699         PR tree-optimization/41857
700         * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
701         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
702         to create_mem_ref.
703         * tree-ssa-address.c (move_hint_to_base): New function.
704         (most_expensive_mult_to_index): Add TYPE argument.  Use mode and
705         address space associated with TYPE.
706         (addr_to_parts): Add TYPE and BASE_HINT arguments.  Pass TYPE to
707         most_expensive_mult_to_index.  Call move_hint_to_base.
708         (create_mem_ref): Add BASE_HINT argument.  Pass BASE_HINT and
709         TYPE to addr_to_parts.
710
711 2009-11-02  Martin Jambor  <mjambor@suse.cz>
712
713         PR tree-optimization/41750
714         * tree-sra.c (analyze_modified_params): Loop over all
715         representatives of components of a parameter.
716
717 2009-11-02  Jakub Jelinek  <jakub@redhat.com>
718
719         PR tree-optimization/41841
720         * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
721         local variables of not yet materialized clones.
722
723         PR debug/41893
724         * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
725         for a VOIDmode variable.
726
727         PR c++/41774
728         * c-pragma.c (visstack): Change into vector of ints rather than
729         enum symbol_visibility.
730         (push_visibility): Add kind argument, push default_visibility together
731         with kind.
732         (pop_visibility): Add kind argument, return true if successful, fail
733         if visibility stack is empty or if stack top is of different kind.
734         (handle_pragma_visibility): Don't check length of visstack, instead
735         call pop_visibility and issue diagnostics if it failed.  Pass 0
736         as last argument to push_visibility and pop_visibility.
737         * c-pragma.h (push_visibility): Add kind argument.
738         (pop_visibility): Likewise.  Return bool instead of void.
739
740 2009-11-01  Eric Botcazou  <ebotcazou@adacore.com>
741
742         * tree.def (TARGET_MEM_REF): Update comment.
743         * alias.c (get_alias_set): Retrieve the original memory reference for
744         a TARGET_MEM_REF before proceeding.
745
746 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
747
748         * config/frv/frv.c (frv_function_value, frv_libcall_value,
749         frv_function_value_regno_p): New functions.
750         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
751         * config/frv/frv.h: (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
752         (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
753         * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
754
755 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
756
757         * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
758         new 'outgoing' argument.
759         (mn10300_libcall_value, mn10300_function_value_regno_p): New functions.
760         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
761         * config/mn10300/mn10300.h: (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
762         LIBCALL_VALUE): Remove.
763         (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
764         * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
765         (mh10300_function_value_regno_p): Declare.
766
767 2009-10-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
768
769         * config/arm/cortex-a9.md: New - integer pipeline description.
770
771 2009-10-31  Eric Botcazou  <ebotcazou@adacore.com>
772
773         * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
774         aborting if the sizes of the two references don't match.
775
776 2009-10-31  Toon Moene  <toon@moene.org>
777
778         * ipa-inline.c (cgraph_decide_inlining):
779         Include reason for not inlining called-once functions in dump file.
780
781 2009-10-30  Daniel Gutson  <dgutson@codesourcery.com>
782
783         * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
784         * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
785         (LINK_SPEC): BE_LINK_SPEC added.
786
787 2009-10-30  Richard Guenther  <rguenther@suse.de>
788
789         PR lto/41858
790         * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
791
792 2009-10-30  Nathan Sidwell  <nathan@codesourcery.com>
793
794         * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
795         * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
796         label.
797
798 2009-10-30  Martin Jambor  <mjambor@suse.cz>
799
800         * tree-sra.c (build_ref_for_offset_1): Remove a comment.
801
802 2009-10-30  H.J. Lu  <hongjiu.lu@intel.com>
803
804         PR target/40838
805         * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
806         first.  Move assert on stack_alignment_estimated just before
807         setting stack_realign_needed.
808         (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
809         Don't call update_stack_boundary.
810
811         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
812         (verride_options): Don't check ix86_force_align_arg_pointer here.
813         (ix86_function_ok_for_sibcall): Use it.
814         (ix86_update_stack_boundary): Likewise.
815
816         * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
817
818 2009-10-30  Richard Earnshaw  <rearnsha@arm.com>
819
820         * arm.md (QHSI): New mode iterator.
821         (movqi): If generating for thumb, then truncate any immediate to
822         8 bits.
823         * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
824         with...
825         (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
826         version.
827
828 2009-10-29  Cary Coutant  <ccoutant@google.com>
829
830         PR debug/41700
831         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
832         locations in the source).
833         (store_vcall_insn): New function.
834         (lookup_vcall_insn): New function.
835         (dwarf2out_virtual_call_token): Use store_vcall_insn.
836         (dwarf2out_copy_call_info): New function.
837         (dwarf2out_virtual_call): Use lookup_vcall_insn.
838         * emit-rtl.c (try_split): Call copy_call_info debug hook.
839         * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
840         * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
841         (debug_nothing_rtx_rtx): New dummy hook.
842         * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
843         (xcoff_debug_hooks): Likewise.
844         * sdbout.c (sdb_debug_hooks): Likewise.
845         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
846
847 2009-10-29  David Daney  <ddaney@caviumnetworks.com>
848
849         * doc/invoke.texi (mmcount-ra-address): Document new command line
850         option.
851         * config/mips/mips.opt (mmcount-ra-address): New option.
852         * config/mips/mips-protos.h (mips_function_profiler): Declare new
853         function.
854         * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
855         member.
856         (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
857         (mips_function_profiler): Moved from FUNCTION_PROFILER, and
858         rewritten.
859         * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
860         mips_function_profiler.
861
862 2009-10-29  Steve Ellcey  <sje@cup.hp.com>
863
864         PR middle-end/37565
865         PR target/38018
866         * doc/tm.texi (OVERRIDE_OPTIONS): Update.
867         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
868         * optc-gen.awk (cl_target_option_restore): Include call to
869         targetm.override_options_after_change.
870         * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
871         * target.h (override_options_after_change): New.
872         * c-common.c (parse_optimize_options): Call
873         targetm.override_options_after_change.
874         * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
875         (ia64_override_options_after_change): New.
876         (ia64_override_options) Add call to above.
877
878 2009-10-29  Michael Matz  <matz@suse.de>
879
880         * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
881         (gate_convert_to_rsqrt): Ditto.
882         (pass_convert_to_rsqrt): Ditto.
883         * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
884         * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
885         to pass list.
886
887         * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
888
889 2009-10-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
890
891         * config/arm/arm.c (find_best_start): Fix type of remainder to be
892         unsigned.
893
894 2009-10-29  Martin Jambor  <mjambor@suse.cz>
895
896         PR tree-optimization/41775
897         * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
898         (generate_subtree_copies): Do not unshare agg.
899         (load_assign_lhs_subreplacements): Do not unshare rhs.
900         (sra_modify_assign): Do not unshare exprs.
901         (propagate_subacesses_accross_link): Renamed to
902         propagate_subaccesses_across_link.
903
904 2009-10-29  Richard Earnshaw  <rearnsha@arm.com>
905
906         * arm.c (count_insns_for_constant): Rework to support counting for
907         thumb2 immediates as well.
908         (find_best_start): Split out from arm_gen_constant.
909         (arm_gen_constant): Rework to support XOR with immediate.
910
911 2009-10-29  Chao-ying Fu  <fu@mips.com>
912
913         * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
914         functions.
915         (mips_expand_synci_loop):  Use the length rtx to control the
916         synci loop from the begin rtx that points to the first byte of
917         the cache line.
918
919 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
920
921         * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
922
923 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
924
925         * dbxout.c (dbxout_common_check): Accept non public trees.
926         * dwarf2out.c (fortran_common): Accept non public trees.
927
928 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
929
930         * common.opt (fuse-linker-plugin): New option.
931         * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
932         fuse-linker-plugin.
933         * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
934
935 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
936
937         PR rtl-optimization/39715
938         * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
939         (gen_cstoresi_ltu_thumb1): New splitter.
940
941 2009-10-28  Richard Guenther  <rguenther@suse.de>
942
943         PR lto/41808
944         PR lto/41839
945         * tree-ssa.c (useless_type_conversion_p): Do not treat
946         conversions to pointers to incomplete types as useless.
947         * gimple.c (gimple_types_compatible_p): Compare struct tags,
948         not typedef names.
949
950 2009-10-28  Jakub Jelinek  <jakub@redhat.com>
951
952         * var-tracking.c (emit_note_insn_var_location): Don't call the second
953         vt_expand_loc unnecessarily when location is not a register nor
954         memory.
955
956         PR middle-end/41837
957         * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
958         fields don't have DECL_NAME.
959
960         PR debug/41801
961         * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
962         call convert_memory_address on addr.
963
964         PR target/41762
965         * config/i386/i386.c (ix86_pic_register_p): Don't call
966         rtx_equal_for_cselib_p for VALUEs discarded as useless.
967
968 2009-10-28  Richard Sandiford  <rdsandiford@googlemail.com>
969
970         * var-tracking.c (emit_note_insn_var_location): Get the mode of
971         a variable part from its REG, MEM or VALUE.
972
973 2009-10-28  Richard Guenther  <rguenther@suse.de>
974
975         * gimple.c (gimple_get_alias_set): Fix comment typo.
976
977 2009-10-28  Richard Guenther  <rguenther@suse.de>
978
979         * tree.c (free_lang_data_in_type): Do not call get_alias_set.
980         (free_lang_data): Unconditionally compute alias sets for all
981         standard integer types.  Bail out if gate bailed out previously.
982         Do not reset the types_compatible_p langhook.
983         (gate_free_lang_data): Remove.
984         (struct pass_ipa_free_lang_data): Enable unconditionally.
985         * gimple.c (gimple_get_alias_set): Use the same alias-set for
986         all pointer types.
987
988 2009-10-28  Richard Guenther  <rguenther@suse.de>
989
990         PR middle-end/41855
991         * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
992         (ref_maybe_used_by_call_p_1): Fix bcopy handling.
993         (call_may_clobber_ref_p_1): Likewise.
994         * tree-ssa-structalias.c (find_func_aliases): Likewise.
995         * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
996
997 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
998
999         PR rtl-optimization/41812
1000
1001         Revert:
1002         2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
1003
1004         * df-problems.c (df_md_scratch): New.
1005         (df_md_alloc, df_md_free): Allocate/free it.
1006         (df_md_local_compute): Only include live registers in init.
1007         (df_md_transfer_function): Prune the in-set computed by
1008         the confluence function, and the gen-set too.
1009
1010 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
1011
1012         PR rtl-optimization/39715
1013         * combine.c (simplify_comparison): Use extensions to
1014         widen comparisons.  Try an ANDing first.
1015
1016 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
1017
1018         PR rtl-optimization/40741
1019         * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
1020         a small constant is cheap.
1021         * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
1022         force_reg on the LHS.
1023         (xorsi3): Likewise, and split the XOR if the constant is complex
1024         and not in Thumb mode.
1025
1026 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
1027
1028         * expmed.c (emit_store_flag): Check costs before
1029         transforming to the opposite representation.
1030
1031 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
1032
1033         * config/sh/sh.md (cbranchfp4_media): Remove hack extending
1034         cstore result to DImode.
1035
1036 2009-10-28  Kaz Kojima  <kkojima@gcc.gnu.org>
1037
1038         * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
1039         inside the unspec vector.
1040
1041 2009-10-27  Richard Henderson  <rth@redhat.com>
1042
1043         * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
1044
1045 2009-10-27  Richard Henderson  <rth@redhat.com>
1046
1047         PR c++/41819
1048         * tree-eh.c (eh_region_may_contain_throw_map): Rename from
1049         eh_region_may_contain_throw; update users.
1050         (eh_region_may_contain_throw): New function.
1051         (lower_catch): Check flag_exceptions before creating exception region.
1052         (lower_eh_filter, lower_eh_must_not_throw): Likewise.
1053         (lower_cleanup): Tidy existing flag_exceptions check to match.
1054
1055 2009-10-27  Kai Tietz <kai.tietz@onevision.com>
1056
1057         PR/41799
1058         * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
1059         * config/i386/mingw.opt: Add fset-stack-executable.
1060         * config/i386/i386.c (ix86_trampoline_init): Make call to
1061         emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
1062         defined and its value is not zero.
1063         * doc/invoke.texi
1064
1065 2009-10-27  Richard Guenther  <rguenther@suse.de>
1066
1067         * tree-ssa-structalias.c (find_func_aliases): In IPA mode
1068         handle calls to externally visible functions like in regular mode.
1069         (create_variable_info_for): Do not create function infos here.
1070         (have_alias_info): Remove write-only variable.
1071         (solve_constraints): New function split out from common code
1072         in compute_points_to_sets and ipa_pta_execute.
1073         (compute_points_to_sets): Adjust.
1074         (ipa_pta_execute): Likewise.  Handle clones and externally visible
1075         functions like in non-IPA mode.
1076
1077 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1078
1079         PR c/41842
1080         * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
1081         error_mark_node.
1082
1083 2009-10-27  Richard Guenther  <rguenther@suse.de>
1084
1085         * tree-complex.c (expand_complex_div_wide): Check for
1086         INTEGER_CST, not TREE_CONSTANT on comparison folding result.
1087
1088 2009-10-27  Revital Eres  <eres@il.ibm.com>
1089
1090         PR tree-optimization/40648
1091         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1092         Change decision of when to peel for alignment.
1093
1094 2009-10-27  Richard Guenther  <rguenther@suse.de>
1095
1096         PR lto/41821
1097         * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
1098
1099 2009-10-27  Aldy Hernandez  <aldyh@redhat.com>
1100
1101         PR bootstrap/41451
1102         * fold-const.c (fold_binary_loc): Do not call
1103         protected_set_expr_location.
1104
1105 2009-10-27  Wei Guozhi  <carrot@google.com>
1106
1107         PR target/41705
1108         * target.h (have_conditional_execution): Add a new target hook
1109         function.
1110         * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
1111         * targhooks.h (default_have_conditional_execution): Likewise.
1112         * targhooks.c (default_have_conditional_execution): Likewise.
1113         * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
1114         * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
1115         (arm_have_conditional_execution): New function.
1116         * ifcvt.c (noce_process_if_block, find_if_header,
1117         cond_exec_find_if_block, dead_or_predicable): Change the usage of
1118         macro HAVE_conditional_execution to a target hook call.
1119         * recog.c (peephole2_optimize): Likewise.
1120         * sched-rgn.c (add_branch_dependences): Likewise.
1121         * final.c (asm_insn_count, final_scan_insn): Likewise.
1122         * bb-reorder.c (HAVE_conditional_execution): Remove it.
1123
1124 2009-10-26  Ben Elliston  <bje@au.ibm.com>
1125             Michael Meissner  <meissner@linux.vnet.ibm.com>
1126             Ulrich Weigand  <uweigand@de.ibm.com>
1127
1128         * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
1129         * config/spu/spu_cache.h: New file.
1130
1131         * config/spu/cachemgr.c: New file.
1132         * config/spu/cache.S: New file.
1133
1134         * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
1135         (ADDR_SPACE_EA): Define.
1136         (TARGET_ADDR_SPACE_KEYWORDS): Define.
1137         * config/spu/spu.c (EAmode): New macro.
1138         (TARGET_ADDR_SPACE_POINTER_MODE): Define.
1139         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
1140         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
1141         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
1142         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
1143         (TARGET_ADDR_SPACE_CONVERT): Likewise.
1144         (TARGET_ASM_SELECT_SECTION): Likewise.
1145         (TARGET_ASM_UNIQUE_SECTION): Likewise.
1146         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
1147         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
1148         (ea_symbol_ref): New function.
1149         (spu_legitimate_constant_p): Handle __ea qualified addresses.
1150         (spu_addr_space_legitimate_address_p): New function.
1151         (spu_addr_space_legitimize_address): Likewise.
1152         (cache_fetch): New global.
1153         (cache_fetch_dirty): Likewise.
1154         (ea_alias_set): Likewise.
1155         (ea_load_store): New function.
1156         (ea_load_store_inline): Likewise.
1157         (expand_ea_mem): Likewise.
1158         (spu_expand_mov): Handle __ea qualified memory references.
1159         (spu_addr_space_pointer_mode): New function.
1160         (spu_addr_space_address_mode): Likewise.
1161         (spu_addr_space_subset_p): Likewise.
1162         (spu_addr_space_convert): Likewise.
1163         (spu_section_type_flags): Handle "._ea" section.
1164         (spu_select_section): New function.
1165         (spu_unique_section): Likewise.
1166         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
1167         and __EA64__ predefined macros.
1168         * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
1169         -matomic-updates switches.
1170
1171         * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
1172         (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
1173         libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
1174         libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
1175         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
1176         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
1177         $(T)cache128k.o): Likewise.
1178         ($(T)libgcc_%.a): Likewise.
1179
1180         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
1181         * config/spu/spu.opt (-mea32/-mea64): Add switches.
1182         (-maddress-space-conversion): Likewise.
1183         (-mcache-size=): Likewise.
1184         (-matomic-updates): Likewise.
1185         * doc/invoke.texi (-mea32/-mea64): Document.
1186         (-maddress-space-conversion): Likewise.
1187         (-mcache-size=): Likewise.
1188         (-matomic-updates): Likewise.
1189
1190 2009-10-26  Ben Elliston  <bje@au.ibm.com>
1191             Michael Meissner  <meissner@linux.vnet.ibm.com>
1192             Ulrich Weigand  <uweigand@de.ibm.com>
1193
1194         * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
1195
1196         * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
1197         defined, add the named address space keywords.
1198         (c_addr_space_name): New function.
1199         (complete_array_type): Preserve named address space.
1200         (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
1201         instead of targetm.valid_pointer_mode.
1202
1203         * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
1204         RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
1205         (ADDR_SPACE_KEYWORD): New macro.
1206         (c_addr_space_name): Add prototype.
1207
1208         * c-tree.h (struct c_declspecs): Add address_space member.
1209         (declspecs_add_addrspace): Add prototype.
1210
1211         * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
1212
1213         * c-parser.c (c_parse_init): Add assertion.
1214         (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
1215         (c_lex_one_token): Handle address space keywords.
1216         (c_token_starts_typename): Likewise.
1217         (c_token_starts_declspecs): Likewise.
1218         (c_parser_declspecs): Likewise.
1219         (c_parser_postfix_expression_after_paren_type): Diagnose compound
1220         literal within function qualified with named address space.
1221
1222         * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
1223         address space qualifiers.
1224         (shadow_tag_warned): Warn about useless address space qualifiers.
1225         (quals_from_declspecs): Handle address space qualifiers.
1226         (grokdeclarator): Likewise.
1227         (build_null_declspecs): Likewise.
1228         (declspecs_add_addrspace): New function.
1229
1230         * c-typeck.c (addr_space_superset): New function.
1231         (qualify_type): Handle named address spaces.
1232         (composite_type): Likewise.
1233         (common_pointer_type): Likewise.
1234         (comp_target_types): Likewise.
1235         (build_conditional_expr): Likewise.
1236         (handle_warn_cast_qual): Likewise.
1237         (build_c_cast): Likewise.
1238         (convert_for_assignment): Likewise.
1239         (build_binary_op): Likewise.
1240         (pointer_diff): Handle named address spaces.  Use intermediate
1241         integer type of sufficient size if required.
1242
1243 2009-10-26  Ben Elliston  <bje@au.ibm.com>
1244             Michael Meissner  <meissner@linux.vnet.ibm.com>
1245             Ulrich Weigand  <uweigand@de.ibm.com>
1246
1247         * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
1248         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
1249         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
1250
1251         * target.h (struct target_def): Add pointer_mode, address_mode,
1252         and valid_pointer_mode to addr_space substructure.
1253         * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
1254         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
1255         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
1256         (TARGET_ADDR_SPACE_HOOKS): Add them.
1257         * targhooks.c (target_default_pointer_address_modes_p): New function.
1258         * target.h (target_default_pointer_address_modes_p): Add prototype.
1259         * targhooks.c (default_addr_space_pointer_mode): New function.
1260         (default_addr_space_address_mode): Likewise.
1261         (default_addr_space_valid_pointer_mode): Likewise.
1262         * targhooks.h (default_addr_space_pointer_mode): Add prototype.
1263         (default_addr_space_address_mode): Likewise.
1264         (default_addr_space_valid_pointer_mode): Likewise.
1265         * output.h (default_valid_pointer_mode): Move to ...
1266         * targhooks.h (default_valid_pointer_mode): ... here.
1267         * varasm.c (default_valid_pointer_mode): Move to ...
1268         * targhooks.c (default_valid_pointer_mode): ... here.
1269
1270         * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
1271         instead of targetm.valid_pointer_mode.
1272
1273         * fold-const.c (fit_double_type): Use int_or_pointer_precision.
1274         * tree.c (integer_pow2p): Likewise.
1275         (tree_log2): Likewise.
1276         (tree_floor_log2): Likewise.
1277         (signed_or_unsigned_type_for): Support pointer type of different size.
1278         (int_or_pointer_precision): New function.
1279         * tree.h (int_or_pointer_precision): Add prototype.
1280         * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
1281         * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
1282         incoming pointer type instead of POINTER_SIZE.
1283
1284         * tree.c (build_pointer_type): Use appropriate pointer mode
1285         instead of ptr_mode.
1286         (build_reference_type): Likewise.
1287         * expr.c (store_expr): Likewise.
1288         (expand_expr_addr_expr): Likewise.
1289         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
1290         * cfgexpand.c (expand_debug_expr): Likewise.
1291
1292         * auto-inc-dec.c: Include "target.h".
1293         (try_merge): Use appropriate address mode instead of Pmode.
1294         (find_inc): Likewise.
1295         * combine.c (find_split_point): Likewise.
1296         * cselib.c (cselib_record_sets): Likewise.
1297         * dse.c (replace_inc_dec): Likewise.
1298         (canon_address): Likewise.
1299         * var-tracking.c (replace_expr_with_values): Likewise.
1300         (count_uses): Likewise.
1301         (add_uses): Likewise.
1302         (add_stores): Likewise.
1303         * emit-rtl.c: Include "target.h".
1304         (adjust_address_1): Use appropriate address mode instead of Pmode.
1305         (offset_address): Likewise.
1306         * explow.c (break_out_memory_refs): Likewise.
1307         (memory_address_addr_space): Likewise.
1308         (promote_mode): Likewise.
1309         * expr.c (move_by_pieces): Likewise.
1310         (emit_block_move_via_loop): Likewise.
1311         (store_by_pieces): Likewise.
1312         (store_by_pieces_1): Likewise.
1313         (expand_assignment): Likewise.
1314         (store_constructor): Likewise.
1315         (expand_expr_addr_expr): Likewise.
1316         (expand_expr_real_1): Likewise.
1317         * cfgexpand.c (expand_debug_expr): Likewise.
1318         * ifcvt.c (noce_try_cmove_arith): Likewise.
1319         * regcprop.c (kill_autoinc_value): Likewise.
1320         * regmove.c (try_auto_increment): Likewise.
1321         * reload.c (find_reloads): Likewise.
1322         (find_reloads_address): Likewise.
1323         (find_reloads_address_1): Likewise.
1324         * sched-deps.c: Include "target.h".
1325         (sched_analyze_1): Use appropriate address mode instead of Pmode.
1326         (sched_analyze_2): Likewise.
1327         * sel-sched-dump.c: Include "target.h".
1328         (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
1329         * stor-layout.c (layout_type): Likewise.
1330         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
1331         (multiplier_allowed_in_address_p): Likewise.
1332         (get_address_cost): Likewise.
1333         * varasm.c (make_decl_rtl): Likewise.
1334
1335         * expr.c (expand_assignment): Always convert offsets to appropriate
1336         address mode.
1337         (store_expr): Likewise.
1338         (store_constructor): Likewise.
1339         (expand_expr_real_1): Likewise.
1340
1341         * reload.h (form_sum): Add MODE argument.
1342         * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
1343         Update recursive calls.
1344         (subst_indexed_address): Update calls to form_sum.
1345
1346         * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
1347         * tree-ssa-address.c: Include "target.h".
1348         (templates): Replace by ...
1349         (mem_addr_template_list): ... this new vector.
1350         (TEMPL_IDX): Handle address space numbers.
1351         (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
1352         (addr_for_mem_ref): Add ADDRSPACE argument.  Use per-address-space
1353         instead of global cache.  Update call to gen_addr_rtx.
1354         (valid_mem_ref_p): Update call to addr_for_mem_ref.
1355         * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
1356
1357         * rtl.h (convert_memory_address_addr_space): Add prototype.
1358         (convert_memory_address): Define as macro.
1359         * explow.c (convert_memory_address): Rename to ...
1360         (convert_memory_address_addr_space): ... this.  Add ADDRSPACE argument.
1361         Use appropriate pointer and address modes instead of ptr_mode / Pmode.
1362         Update recursive calls.
1363         (memory_address_addr_space): Call convert_memory_address_addr_space.
1364         * expmed.c (make_tree): Likewise.
1365         * expr.c (expand_assignment): Likewise.
1366         (expand_expr_addr_expr_1): Likewise.  Also, add ADDRSPACE argument.
1367         (expand_expr_addr_expr): Likewise.  Also, update call.
1368
1369         * alias.c (find_base_value): Guard pointer size optimizations.
1370         (find_base_term): Likewise.
1371         * rtlanal.c (nonzero_bits1): Likewise.
1372         (num_sign_bit_copies1): Likewise.
1373         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1374
1375         * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
1376         (emit-rtl.o): Likewise.
1377         (auto-inc-dec.o): Likewise.
1378         (sched-deps.o): Likewise.
1379
1380 2009-10-26  Ben Elliston  <bje@au.ibm.com>
1381             Michael Meissner  <meissner@linux.vnet.ibm.com>
1382             Ulrich Weigand  <uweigand@de.ibm.com>
1383
1384         * doc/extend.texi (Named Address Spaces): New section.
1385         * coretypes.h (addr_space_t): New type.
1386         (ADDR_SPACE_GENERIC): New define.
1387         (ADDR_SPACE_GENERIC_P): New macro.
1388
1389         * doc/tm.texi (Named Address Spaces): New section.
1390         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
1391         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
1392         (TARGET_ADDR_SPACE_SUBSET_P): Document.
1393         (TARGET_ADDR_SPACE_CONVERT): Document.
1394         * target.h (struct gcc_target): Add addr_space substructure.
1395         * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
1396         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
1397         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
1398         (TARGET_ADDR_SPACE_CONVERT): Likewise.
1399         (TARGET_ADDR_SPACE_HOOKS): Likewise.
1400         (TARGET_INITIALIZER): Initialize addr_space hooks.
1401         * targhooks.c (default_addr_space_legitimate_address_p): New function.
1402         (default_addr_space_legitimize_address): Likewise.
1403         (default_addr_space_subset_p): Likewise.
1404         (default_addr_space_convert): Likewise.
1405         * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
1406         (default_addr_space_legitimize_address): Likewise.
1407         (default_addr_space_subset_p): Likewise.
1408         (default_addr_space_convert): Likewise.
1409
1410         * doc/rtl.texi (MEM_ADDR_SPACE): Document.
1411         * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
1412         (MEM_ADDR_SPACE): New macro.
1413         * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
1414         address space memory attribute.
1415         (mem_attrs_htab_hash): Handle address space memory attribute.
1416         (mem_attrs_htab_eq): Likewise.
1417         (set_mem_attributes_minus_bitpos): Likewise.
1418         (set_mem_alias_set): Likewise.
1419         (set_mem_align): Likewise.
1420         (set_mem_expr): Likewise.
1421         (set_mem_offset): Likewise.
1422         (set_mem_size): Likewise.
1423         (adjust_address_1): Likewise.
1424         (offset_address): Likewise.
1425         (widen_memoy_address): Likewise.
1426         (get_spill_slot_decl): Likewise.
1427         (set_mem_attrs_for_spill): Likewise.
1428         (set_mem_addr_space): New function.
1429         * emit-rtl.h (set_mem_addr_space): Add prototype.
1430         * print-rtl.c (print_rtx): Print address space memory attribute.
1431         * expr.c (expand_assignment): Set address space memory attribute
1432         of generated MEM RTXes as appropriate.
1433         (expand_expr_real_1): Likewise.
1434         * cfgexpand.c (expand_debug_expr): Likewise.
1435         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
1436
1437         * tree.h (struct tree_base): Add address_space bitfield.  Reduce
1438         size of "spare" bitfield.
1439         (TYPE_ADDR_SPACE): New macro.
1440         (ENCODE_QUAL_ADDR_SPACE): Likewise.
1441         (DECODE_QUAL_ADDR_SPACE): Likewise.
1442         (CLEAR_QUAL_ADDR_SPACE): Likewise.
1443         (KEEP_QUAL_ADDR_SPACE): Likewise.
1444         (TYPE_QUALS): Encode type address space.
1445         (TYPE_QUALS_NO_ADDR_SPACE): New macro.
1446         * tree.c (set_type_quals): Set type address space.
1447         (build_array_type): Inherit array address space from element type.
1448         * print-tree.c (print_node_brief): Print type address space.
1449         (print_node): Likewise.
1450         * tree-pretty-print.c (dump_generic_node): Likewise.
1451
1452         * explow.c (memory_address): Rename to ...
1453         (memory_address_addr_space): ... this.  Add ADDRSPACE argument.
1454         Use address-space aware variants of memory address routines.
1455         * recog.c (memory_address_p): Rename to ...
1456         (memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
1457         Use address-space aware variants of memory address routines.
1458         (offsettable_address_p): Rename to ...
1459         (offsettable_address_addr_space_p): ... this.  Add ADDRSPACE argument.
1460         Use address-space aware variants of memory address routines.
1461         * reload.c (strict_memory_address_p): Rename to ...
1462         (strict_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
1463         Use address-space aware variants of memory address routines.
1464         (maybe_memory_address_p): Rename to ...
1465         (maybe_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
1466         Use address-space aware variants of memory address routines.
1467         * expr.h (memory_address_addr_space): Add prototype.
1468         (memory_address): Define as macro.
1469         * recog.h (memory_address_addr_space_p): Add prototype.
1470         (memory_address_p): Define as macro.
1471         (offsettable_address_addr_space_p): Add prototype.
1472         (offsettable_address_p): Define as macro.
1473         (strict_memory_address_addr_space_p): Add prototype.
1474         (strict_memory_address_p): Define as macro.
1475
1476         * combine.c (find_split_point): Use address-space aware variants
1477         of memory address routines.
1478         * emit-rtl.c (operand_subword): Likewise.
1479         (change_address_1): Likewise.
1480         (adjust_address_1): Likewise.
1481         (offset_address): Likewise.
1482         * expr.c (emit_move_insn): Likewise.
1483         (expand_assignment): Likewise.
1484         (expand_expr_real_1): Likewise.
1485         * recog.c (verify_changes): Likewise.
1486         (general_operand): Likewise.
1487         (offsettable_memref_p): Likewise.
1488         (offsettable_nonstrict_memref_p): Likewise.
1489         (constrain_operands): Likewise.
1490         * reload.c (get_secondary_mem): Likewise.
1491         (find_reloads_toplev): Likewise.
1492         (find_reloads_address): Likewise.
1493         (find_reloads_subreg_address): Likewise.
1494         * reload1.c (reload): Likewise.
1495         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1496         * rtl.h (address_cost): Add ADDRSPACE argument.
1497         * rtlanal.c (address_cost): Add ADDRSPACE argument.  Use address-space
1498         aware variant of memory address routines.
1499         * loop-invariant.c (create_new_invariant): Update address_cost call.
1500         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1501         * fwprop.c (should_replace_address): Add ADDRSPACE argument.
1502         Use address-space aware variant of memory address routines.
1503         (propagate_rtx_1): Update call to should_replace_address.
1504         * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
1505         argument.
1506         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
1507         ADDRSPACE argument.  Use per-address-space instead of global cache.
1508         Use address-space aware variant of memory address routines.
1509         (get_address_cost): Likewise.
1510         (get_computation_cost_at): Update calls.
1511         * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
1512         Use address-space aware variant of memory address routines.
1513         (create_mem_ref_raw): Update call to valid_mem_ref_p.
1514         (most_expensive_mult_to_index): Update call to
1515         multiplier_allowed_in_address_p.
1516
1517         * dwarf2out.c (modified_type_die): Output DW_AT_address_class
1518         attribute to indicate named address spaces.
1519
1520         * varasm.c (get_variable_section): DECLs in named address spaces
1521         cannot be "common".
1522
1523         * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
1524         for addresses in a non-generic address space.
1525
1526         * expr.c (emit_block_move_hints): Do not use libcalls for
1527         memory in non-generic address spaces.
1528         (clear_storage_hints): Likewise.
1529         (expand_assignment): Likewise.
1530
1531         * fold-const.c (operand_equal_p): Expressions refering to different
1532         address spaces are not equivalent.
1533
1534         * rtl.c (rtx_equal_p_cb): MEMs refering to different address
1535         spaces are not equivalent.
1536         (rtx_equal_p): Likewise.
1537         * cse.c (exp_equiv_p): Likewise.
1538         * jump.c (rtx_renumbered_equal_p): Likewise.
1539         * reload.c (operands_match_p): Likewise.
1540
1541         * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
1542         address spaces may alias.
1543         (true_dependence): Likewise.
1544         (canon_true_dependence): Likewise.
1545         (write_dependence_p): Likewise.
1546
1547         * dse.c (canon_address): Handle named address spaces.
1548         * ifcvt.c (noce_try_cmove_arith): Likewise.
1549
1550         * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
1551         * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
1552         * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
1553         to handle conversions between different address spaces.
1554         * fold-const.c (fold_convert_loc): Likewise.
1555         (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
1556         * tree-pretty-print.c (dump_generic_node): Likewise.
1557         * gimple-pretty-print.c (dump_unary_rhs): Likewise.
1558         * tree-cfg.c (verify_gimple_assign_unary): Likewise.
1559         * tree-inline.c (estimate_operator_cost): Likewise.
1560         * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
1561         to different address spaces are not useless.
1562
1563 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
1564
1565         PR bootstrap/41345
1566         * cfgcleanup.c (trivially_empty_bb_p): New function.
1567         (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
1568
1569         PR debug/41828
1570         * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
1571         add_name_and_src_coords_attributes, gen_namespace_die,
1572         dwarf2out_set_name): Handle dwarf2_name returning NULL.
1573
1574 2009-10-26  Nick Clifton  <nickc@redhat.com>
1575
1576         * config.gcc: Add support for RX target.
1577         * config/rx: New directory.
1578         * config/rx/constraints.md: New file.
1579         * config/rx/predicates.md: New file.
1580         * config/rx/rx.c: New file.
1581         * config/rx/rx.h: New file.
1582         * config/rx/rx.md: New file.
1583         * config/rx/rx.opt: New file.
1584         * config/rx/rx-protos.h: New file.
1585         * config/rx/t-rx: New file.
1586         * doc/extend.texi: Document RX function attributes.
1587         * doc/invoke.texi: Document RX specific command line options.
1588         * doc/contrib.texi: Document RX contribution.
1589         * doc/md.texi: Document RX constraints.
1590         * doc/install.texi: Document RX support.
1591
1592 2009-10-26  Michael Matz  <matz@suse.de>
1593
1594         PR tree-optimization/41783
1595         * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
1596         case for simple diamonds.
1597         * tree-ssa-alias.h (get_continuation_for_phi): Declare.
1598         * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
1599         argument, use alias oracle to skip some vdefs.
1600         (phi_translate_1): Change call to above, don't allocate new
1601         value ids if they can stay the same.
1602         (compute_avail): Allow vuse walking when looking up references.
1603
1604 2009-10-26  Richard Guenther  <rguenther@suse.de>
1605
1606         PR tree-optimization/41826
1607         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
1608         access to re-allocated vector fields.
1609
1610 2009-10-26  Richard Guenther  <rguenther@suse.de>
1611
1612         * graphite-sese-to-poly.c (check_poly_representation): Fix
1613         compile without checking.
1614
1615 2009-10-26  Janus Weil  <janus@gcc.gnu.org>
1616
1617         PR fortran/41714
1618         * gimple.h (tree_annotate_all_with_location): Remove prototype.
1619         * gimplify.c (tree_should_carry_location_p,
1620         tree_annotate_one_with_location,tree_annotate_all_with_location):
1621         Remove obsolete functions.
1622
1623 2009-10-25  Kaz Kojima  <kkojima@gcc.gnu.org>
1624
1625         PR target/41813
1626         * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
1627
1628 2009-10-25  Richard Guenther  <rguenther@suse.de>
1629
1630         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1631         Stream DECL_RESTRICTED_P.
1632         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1633
1634 2009-10-25  Richard Sandiford  <rdsandiford@googlemail.com>
1635
1636         * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
1637         a note when expanding to nothing.
1638
1639 2009-10-25  Richard Guenther  <rguenther@suse.de>
1640
1641         PR middle-end/41814
1642         * tree.c (find_decls_types_r): Deal with Java overloading
1643         BINFO_VIRTUALS for its own purpose.
1644
1645 2009-10-24  Adam Nemet  <anemet@caviumnetworks.com>
1646
1647         * config/mips/predicates.md (hilo_operand): New predicate.
1648         * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
1649         define_insn.  Correct !ISA_HAS_EXT_INS length from 24 to 28.  Move
1650         splitter part from here ...:
1651         (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here.  Swap
1652         op0 and op4 to match the DINS case.
1653         (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
1654
1655 2009-10-24  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
1656
1657         PR middle-end/19154
1658         * avr.md (QIDI): Add new mode iterator.
1659         (sbrx_branch<mode>): Create new zero extract bit, test and jump
1660         patterns for all QI thru DI modes combinations.
1661         (sbrx_and_branch<mode>): Create new and based bit test and jump
1662         patterns for QI thru SI modes.
1663         avr.c (avr_out_sbxx_branch): Use only bit number.
1664
1665 2009-10-24  Jan Hubicka  <jh@suse.cz>
1666
1667         * ipa-reference.c (check_call): Noreturn notrhow calls do not write
1668         to memory.
1669         (analyze_function): When analyzing noreturn nothrow call, do not
1670         compute written stats; free bitmaps of vars early if possible.
1671         (generate_summary): Only update bitmaps if computed.
1672         (propagate): Only dump bitmaps if computed.
1673         (ipa_reference_read_summary): Fix pasto.
1674
1675 2009-10-24  Eric Botcazou  <ebotcazou@adacore.com>
1676
1677         * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
1678         (aliasing_component_refs_p): ...this.  Return true if there is no
1679         common base and the base access types have the same alias set.
1680         (indirect_ref_may_alias_decl_p): Adjust for above renaming.
1681         (indirect_refs_may_alias_p): Likewise.
1682
1683 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
1684
1685         PR c/40033
1686         * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
1687         a C_MAYBE_CONST_EXPR.
1688
1689 2009-10-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1690
1691         PR target/41787
1692         * config/rs6000/rs6000.c (struct machine_function): Add
1693         vsx_or_altivec_used_p to record if vector types are used.
1694         (rs6000_expand_to_rtl_hook): Rename from
1695         rs6000_alloc_sdmode_stack_slot.  If VSX, check to see if there are
1696         any vector operations, so if there are, we can set VRSAVE to
1697         non-zero when only floating point vector registers are used.
1698         (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
1699         (rs6000_check_vector_mode): Inner function to check if vector
1700         types are used in the code.
1701         (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
1702         vector instructions are used.
1703
1704         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
1705         Indicate that VSX registers which overlap floating point
1706         registers, can't be used across a call, since the ABI only states
1707         the scalar part of the register will be saved and restored.
1708
1709 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
1710
1711         PR c/41673
1712         * alias.c (get_alias_set): Call langhook before returning 0 for
1713         types with structural equality.
1714         * c-common.c (c_common_get_alias_set): Use alias set of element
1715         type for arrays with structural comparison.
1716
1717 2009-10-23  Richard Guenther  <rguenther@suse.de>
1718
1719         PR middle-end/41805
1720         * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
1721         gimple_call_nothrow_p.
1722
1723 2009-10-23  Richard Guenther  <rguenther@suse.de>
1724
1725         PR tree-optimization/41778
1726         * tree-ssa-pre.c (do_regular_insertion): Only insert if a
1727         redundancy along a path in the CFG we want to optimize for speed
1728         is going to be removed.
1729         (execute_pre): Do partial-PRE only if the function is to be
1730         optimized for speed.
1731         (gate_pre): Do not turn off all of PRE when not optimizing a
1732         function for speed.
1733
1734 2009-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1735
1736         * builtins.c (fold_builtin_cabs): Use validate_arg().
1737         (fold_builtin_cexp): Fix if-logic.
1738         (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
1739
1740 2009-10-22  Jeff Law  <law@redhat.com>
1741
1742         * ira-lives.c (process_single_reg_class_operands): Update the
1743         hard reg costs for all the hard registers desired by the
1744         single reg class operand.
1745
1746 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
1747
1748         * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
1749         for rtxes that aren't handled specially.
1750
1751 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
1752
1753         * rtl.h (shallow_copy_rtvec): Declare.
1754         * rtl.c (shallow_copy_rtvec): New function.
1755         * cselib.c (cselib_subst_to_values): Use it.  Only modify an
1756         rtx field if the subrtx has changed.
1757
1758 2009-10-22  Anatoly Sokolov  <aesok@post.ru>
1759
1760         * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
1761         (m32c_function_value): Make static, add new 'outgoing' argument.
1762         (m32c_libcall_value): Make static, add new 'fun' argument.
1763         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1764         * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1765         (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
1766         * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
1767         (m32c_function_value, m32c_libcall_value): Delete declaration.
1768
1769 2009-10-22  Diego Novillo  <dnovillo@google.com>
1770
1771         * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
1772
1773 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
1774
1775         * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
1776         space.
1777
1778 2009-10-22  Richard Guenther  <rguenther@suse.de>
1779
1780         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
1781         * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
1782         (lto_symtab_merge): Do not merge cgraph nodes here.
1783         (lto_symtab_resolve_can_prevail_p): Simplify.
1784         (lto_symtab_resolve_symbols): Store cgraph node.
1785         (lto_symtab_merge_decls_1): Simplify.  Do not drop non-prevailing
1786         functions from the symtab.
1787         (lto_symtab_merge_cgraph_nodes_1): New function.
1788         (lto_symtab_merge_cgraph_nodes): Likewise.
1789
1790 2009-10-22  Richard Guenther  <rguenther@suse.de>
1791
1792         PR lto/41791
1793         * lto-streamer-out.c (lto_output_location): Stream the
1794         system header flag.
1795         * lto-streamer-in.c (lto_input_location): Likewise.
1796
1797 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
1798
1799         * cfgloopmanip.c (duplicate_subloops): Export.
1800         * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
1801         (transform_to_exit_first_loop): Duplicate bbs starting from
1802         header up to loop->latch instead of exit->src.
1803         Initialize control variable to the correct number of iterations.
1804         (gather_scalar_reductions): Do not register double reductions.
1805         (parallelize_loops): Dump which loop is tested.
1806         Indicate whether the parallelized loop is inner or not.
1807         Remove the innermost-loop requirement.
1808         * cfgloop.h (duplicate_subloops): Export.
1809         * tree-cfg.c (add_phi_args_after_redirect): New function.
1810         (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
1811         Call duplicate_subloops.
1812         Update number of iterations at the exit condition.
1813         Don't redirect nexits always to the loop exit.
1814         Redirect copied edges from latch to the loop exit.
1815
1816 2009-10-22  Jan Hubicka  <jh@suse.cz>
1817
1818         * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
1819         flag_ltrans check.
1820         * ipa-inline.c (cgraph_mark_inline_edge,
1821         cgraph_decide_inlining_of_small_function,
1822         cgraph_decide_inlining, inline_read_summary): Disable indirect
1823         inlining for WPA for time being.
1824
1825         PR tree-optimize/40556
1826         * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
1827
1828 2009-10-22  Richard Guenther  <rguenther@suse.de>
1829
1830         * lto-streamer.h (lto_symtab_clear_resolution): Remove.
1831         * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
1832
1833 2009-10-22  Jan Hubicka  <jh@suse.cz>
1834
1835         PR lto/41730
1836         * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
1837         global vars.
1838         (check_call): Handle only indirect calls.
1839         (propagate_bits): Update comment.
1840         (write_node_summary_p): Turn bogus check to assert.
1841         (ipa_reference_write_summary): Stream calls_read_all properly.
1842         (ipa_reference_read_summary): Stream in calls_read_all properly.
1843         (read_write_all_from_decl): New function.
1844         (propagate): Handle OVERWRITABLE nodes and external calls here.
1845         * ipa-pre-const.c (check_call): In IPA mode handle indirect
1846         calls only.
1847         (analyze_function): Do not check visibility here.
1848         (add_new_function): We summary OVERWRITABLE too.
1849         (generate_summary): Stream OVERWRITABLE nodes too.
1850         (propagate): Handle external calls and OVERWRITABLE nodes here.
1851         (local_pure_const): Check visibility here.
1852
1853 2009-10-22  Jan Hubicka  <jh@suse.cz>
1854
1855         * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
1856         (pass_ipa_cp): Register them.
1857         (ipcp_init_stage): Analyze all functions for whopr/lto.
1858         (ipcp_propagate_stage): Skip external calls.
1859         (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
1860         * ipa-reference.c (write_node_summary_p): Fix thinko about
1861         availability.
1862         * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
1863         when in ltrans, skip executing of ipa passes since everything
1864         should've been done.
1865         * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
1866         (inline_generate_summary): Likewise.
1867         (inline_read_summary): New function.
1868         (inline_write_summary): New function.
1869         (pass_ipa_inline): Register new hooks.
1870         * ipa-prop.c: Inlcude lto-streamer.h
1871         (ipa_edge_args_vector): Update declaration.
1872         (ipa_count_arguments, ipa_compute_jump_functions,
1873         ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
1874         (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
1875         ipa_read_node_info): New static functions.
1876         (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
1877         (duplicate_array): Use xmalloc.
1878         (duplicate_ggc_array): New.
1879         (ipa_edge_duplication_hook): Use it.
1880         (ipa_update_after_lto_read): New function.
1881         * ipa-prop.h (ipa_prop_write_jump_functions,
1882         ipa_prop_read_jump_functions): Declare.
1883         (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
1884         jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
1885         (ipa_edge_args_vector): Move into GGC.
1886         (ipa_check_create_edge_args): Update.
1887         (ipa_update_after_lto_read): New.
1888         * passes.c (ipa_write_summaries_1): When in wpa, do not write
1889         summaries.
1890         (ipa_read_summaries): When in ltrans, so not read summaries.
1891         * lto-streamer.c (lto_get_section_name): Add
1892         LTO_section_jump_functions.
1893         * lto-streamer.h (LTO_section_jump_functions): New section.
1894         (produce_asm): Declare.
1895         * lto-cgraph.c (output_cgraph): Output edges in reverse order.
1896         * lto-streamer-out.c (produce_asm): Export.
1897         * lto-streamer-in.c: Include tree-pass.h
1898         (input_function): Free dominance info when done.
1899         (lto_read_body): Push ipa_inline in ltrans stage.
1900         * gengtype.c (open_base_files): Add ipa-prop.h into includes.
1901         * Makefile.in (GTFILES): Add ipa-prop.h
1902
1903 2009-10-22  Matthias Klose  <doko@ubuntu.com>
1904
1905         * doc/install.texi: Document --enable-browser-plugin.
1906
1907 2009-10-21  Vladimir Makarov  <vmakarov@redhat.com>
1908
1909         * doc/invoke.texi (fira-loop-pressure): Update default value.
1910         * opts.c (decode_options): Remove default value setting for
1911         flag_ira_loop_pressure.
1912         * config/ia64/ia64.c (ia64_override_options): Set
1913         flag_ira_loop_pressure up for -O3.
1914         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
1915
1916 2009-10-21  Sebastian Pop  <sebastian.pop@amd.com>
1917
1918         PR tree-optimization/41497
1919         * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
1920         chrec_dont_know if the evolution function returned by follow_ssa_edge
1921         is constant in the analyzed loop and is not compatible with the
1922         initial value before the loop.
1923         * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
1924
1925 2009-10-21  Joseph Myers  <joseph@codesourcery.com>
1926
1927         * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
1928
1929 2009-10-21  Jakub Jelinek  <jakub@redhat.com>
1930
1931         PR other/25507
1932         * doc/invoke.texi: Document -print-multi-os-directory.
1933
1934 2009-10-21  Jack Howarth  <howarth@bromo.med.uc.edu>
1935
1936         PR c++/41313
1937         * gcc/config/darwin10.h: Use default_emit_unwind_label.
1938         * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
1939         when darwin_emit_unwind_label is used.
1940
1941 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
1942
1943         * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
1944         order of checks.
1945
1946 2009-10-20  Richard Henderson  <rth@redhat.com>
1947
1948         * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
1949         before emit_post_landing_pad.
1950
1951 2009-10-20  Adam Nemet  <anemet@caviumnetworks.com>
1952
1953         * config/mips/mips.c (mips_binary_cost): Add new argument speed.
1954         Use when calling rtx_costs.
1955         (mips_rtx_costs): Fix formatting.  Use argument speed rather than the
1956         global optimize_size.  Pass speed to mips_binary_cost.
1957
1958 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
1959
1960         * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
1961         of TREE_CONSTANT.
1962
1963 2009-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
1964
1965         * rtl.h (simplify_replace_fn_rtx): Declare.
1966         (wrap_constant, unwrap_constant): Delete.
1967         * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
1968         (expand_debug_expr): Don't call wrap_constant.
1969         * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
1970         (auto_adjust_pair): Fold into...
1971         (propagate_for_debug_subst): ...here.  Only define for AUTO_INC_DEC.
1972         Just return a new value.
1973         (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
1974         otherwise use simplify_replace_rtx.
1975         * cselib.c (wrap_constant): Reinstate old definition.
1976         (cselib_expand_value_rtx_1): Don't wrap constants.
1977         * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
1978         simplify_replace_rtx.
1979         (bypass_block): Fix formatting in calls to simplify_replace_rtx.
1980         * reload1.c (reload): Skip all uses for an insn before adjusting it.
1981         Use simplify_replace_rtx.
1982         * simplify-rtx.c (simplify_replace_fn_rtx): New function,
1983         adapted from...
1984         (simplify_replace_rtx): ...here.  Turn into a wrapper for
1985         simplify_replace_fn_rtx.
1986         (simplify_unary_operation): Don't unwrap CONSTs.
1987         * var-tracking.c (check_wrap_constant): Delete.
1988         (vt_expand_loc_callback): Don't call it.
1989         (vt_expand_loc): Likewise.
1990
1991 2009-10-20  Pascal Obry  <obry@adacore.com>
1992             Eric Botcazou  <ebotcazou@adacore.com>
1993
1994         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
1995
1996 2009-10-20  Michael Matz  <matz@suse.de>
1997
1998         * loop-invariant.c (create_new_invariant): Use different magic number.
1999
2000 2009-10-20  Richard Earnshaw  <rearnsha@arm.com>
2001
2002         PR target/39247
2003         * arm.c (arm_override_options): Forcibly disable hot/cold block
2004         partitioning.
2005
2006 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
2007
2008         PR debug/41739
2009         * haifa-sched.c (try_ready): Skip debug deps updating speculation
2010         status.
2011
2012 2009-10-20  Richard Guenther  <rguenther@suse.de>
2013
2014         * ggc-page.c: Include cfgloop.h.
2015         (struct max_alignment): Drop long double, add void *.
2016         (extra_order_size_table): Add low non-power-of-two multiples
2017         of MAX_ALIGNMENT.  Drop small type-based entries, add
2018         tree_type, cgraph_node and loop.
2019         * alloc-pool.c (struct allocation_object_def): Drop long double
2020         aligning element.
2021
2022 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
2023
2024         PR debug/41340
2025         * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
2026         referenced just in DEBUG_INSNs.
2027
2028 2009-10-20  Richard Guenther  <rguenther@suse.de>
2029
2030         PR lto/41761
2031         * gimple.c (gimple_register_type): Make sure we register
2032         the types main variant first.
2033
2034 2009-10-20  Richard Guenther  <rguenther@suse.de>
2035
2036         * gimple.c (gimple_types_compatible_p): Simplify.  Move
2037         cheap checks before hashtable queries.  Add checks for
2038         TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
2039
2040 2009-10-20  Eric Botcazou  <ebotcazou@adacore.com>
2041
2042         * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
2043         without size or with size that can't be represented as a host integer.
2044
2045 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
2046
2047         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
2048         the removal of a debug stmt as a significant change.
2049
2050 2009-10-20  Wolfgang Gellerich  <gellerich@de.ibm.com>
2051
2052         * config/s390/s390.md: Added agen condition to operand
2053         forwarding bypasses.  Added bypass for early address generation
2054         use of int results.  Updated comments.
2055
2056 2009-10-20  Stefan Dösinger  <stefan@codeweavers.com>
2057
2058         * config/i386/i386.c: Remove signal.h #include.
2059
2060 2009-10-20  Jie Zhang  <jie.zhang@analog.com>
2061
2062         * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
2063         * doc/rtl.texi: Document ss_abs.
2064
2065 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
2066
2067         * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
2068         * c-lex.c (c_lex_with_flags): Likewise.  Test C_LEX_STRING_NO_JOIN
2069         instead of C_LEX_RAW_STRINGS.
2070         (lex_string): Handle CPP_UTF8STRING.
2071         * c-parser.c (c_parser_postfix_expression): Likewise.
2072         * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
2073         (C_LEX_STRING_NO_JOIN): ... this.
2074
2075 2009-10-19  Anatoly Sokolov  <aesok@post.ru>
2076
2077         * config/cris/cris.c (cris_function_value, cris_libcall_value,
2078         cris_function_value_regno_p): New functions.
2079         (cris_promote_function_mode): Update comment.
2080         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
2081         * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
2082         (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
2083         * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
2084
2085 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
2086
2087         * unwind-dw2.c (execute_stack_op): Fix operand order for
2088         DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
2089
2090 2009-10-19  Eric Botcazou  <ebotcazou@adacore.com>
2091
2092         * gimple-low.c (struct lower_data): Add cannot_fallthru field.
2093         (lower_stmt) <GIMPLE_BIND>: Add comment.
2094         <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
2095         and return.
2096         <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
2097         Otherwise lower it and set cannot_fallthru to true.
2098         <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
2099         <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
2100         <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
2101         to true for a noreturn call.  Do not remove statements.
2102         <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
2103         Set cannot_fallthru to false on function exit.
2104         (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
2105         <GIMPLE_ASSIGN>: Remove.
2106
2107 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2108
2109         * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
2110
2111 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2112
2113         * config/s390/s390.c (s390_z10_optimize_cmp): Use
2114         next/prev_active_insn to skip DEBUG_INSNs as well.
2115
2116 2009-10-19  Joseph Myers  <joseph@codesourcery.com>
2117
2118         * config/arm/arm.c (output_move_neon): Use DImode in call to
2119         adjust_address.
2120
2121 2009-10-19  Matthias Klose  <doko@ubuntu.com>
2122
2123         PR target/40134
2124         * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
2125
2126 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
2127
2128         * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
2129
2130 2009-10-17  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
2131
2132         PR middle-end/41738
2133         * optabs.c (expand_binop): Make mode of shift count expression mode
2134         of shift count not target.
2135         Remove indent nit.
2136
2137 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
2138
2139         * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
2140         case.  Force using values to replace references within the statement.
2141         (convert_local_reference_stmt): Likewise.
2142
2143 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
2144
2145         * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
2146         remove a subsequent GOTO or RETURN statement.
2147
2148 2009-10-17  Andy Hutchinson  <hutchinsonandy@aim.com>
2149
2150         * config/avr.md (*movqi): Add zero as equally preferable constraint
2151         as general register.
2152         (*movhi): Ditto.
2153
2154 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
2155
2156         * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
2157
2158 2009-10-17  Richard Guenther  <rguenther@suse.de>
2159
2160         * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
2161
2162 2009-10-17  Richard Guenther  <rguenther@suse.de>
2163
2164         * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
2165         operands in COMPONENT_REFs.
2166
2167 2009-10-17  Anatoly Sokolov  <aesok@post.ru>
2168
2169         * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
2170         if not defined. Change type of second argument to const_rtx.
2171         (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
2172         macro not defined.
2173         * targhooks.h (default_libcall_value): Update prototype.
2174         * target.h (struct gcc_target): Change type of second argument of
2175         libcall_value to const_rtx.
2176         * config/arm/arm.c (arm_libcall_value): Change type of second argument
2177         to const_rtx.
2178         (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
2179         * doc/tm.texi (TARGET_LIBCALL_VALUE):  Revise documentation.
2180
2181 2009-10-17  Jakub Jelinek  <jakub@redhat.com>
2182
2183         PR debug/40521
2184         * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
2185         * cgraphunit.c (cgraph_optimize): Call it.
2186         * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
2187         (dwarf2out_assembly_start): ... here.  New hook.
2188         (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
2189         * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
2190         hook.
2191         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
2192         * sdbout.c (sdb_debug_hooks): Likewise.
2193         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
2194         (vmsdbgout_assembly_start): New hook.
2195
2196 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
2197
2198         * rtl.h (RTL_LOCATION): Fix typo.
2199
2200 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
2201
2202         * print-rtl.c (print_rtx): Print locators in asm_operands
2203         and asm_input.
2204
2205 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
2206
2207         PR debug/41535
2208         * sched-deps.c (depl_on_debug_p): New.
2209         (attach_dep_link): Reject debug deps before nondebug deps.
2210         (add_to_deps_list): Insert debug deps after nondebug deps.
2211         (sd_lists_empty_p): Stop at first nonempty list.  Disregard debug
2212         deps.
2213         (sd_add_dep): Do not reject debug deps.
2214         (add_insn_mem_dependence): Don't count debug deps.
2215         (remove_from_deps): Likewise.
2216         (sched_analyze_2): Set up mem deps on debug insns.
2217         (sched_analyze_insn): Record reg uses for deps on debug insns.
2218         * haifa-sched.c (schedule_insn): Reset deferred debug insn.  Don't
2219         try_ready nondebug insn after debug insn.
2220         * ddg.c (create_ddg_dep_from_intra_loop_link,
2221         create_ddg_dep_no_link): Don't reject debug deps.
2222
2223 2009-10-16  Richard Guenther  <rguenther@suse.de>
2224
2225         * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
2226         (maybe_merge_incomplete_and_complete_type): Likewise.
2227         (lto_symtab_merge): Do not call them.  Do not warn for
2228         complete vs. incomplete compatible types.
2229         (lto_symtab_merge_decls_2): Simplify.
2230         * gimple.c (gimple_force_type_merge): Remove.
2231         (gimple_types_compatible_p): Make it static.
2232         * gimple.h (gimple_force_type_merge): Remove.
2233         (gimple_types_compatible_p): Likewise.
2234
2235 2009-10-16  Jakub Jelinek  <jakub@redhat.com>
2236
2237         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
2238         DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
2239
2240 2009-10-16  Richard Guenther  <rguenther@suse.de>
2241
2242         PR tree-optimization/41728
2243         * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
2244         if fold_stmt did anything.
2245
2246 2009-10-16  Richard Guenther  <rguenther@suse.de>
2247
2248         PR lto/41715
2249         * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
2250         (maybe_fixup_handled_component): New function.
2251         (input_gimple_stmt): Fixup mismatched decl replacements.
2252
2253 2009-10-16  Richard Guenther  <rguenther@suse.de>
2254
2255         PR lto/41713
2256         * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
2257         the same as VAR_DECL.
2258
2259 2009-10-16  Richard Guenther  <rguenther@suse.de>
2260
2261         * gimple.c (iterative_hash_gimple_type): For integer types
2262         also hash their minimum and maximum values and the string flag.
2263         For array types hash their domain and the string flag.
2264
2265 2009-10-16  Richard Guenther  <rguenther@suse.de>
2266
2267         * gimple.c (gimple_types_compatible_p): Restrict completing
2268         types to record or unions.  Simplify completion.
2269         Do not merge records or unions with different
2270         TYPE_STRUCTURAL_EQUALITY_P tag.
2271         (iterative_hash_gimple_type): Restrict non-recursing into
2272         pointer targets for records and unions.
2273
2274 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
2275
2276         PR debug/41717
2277         * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
2278         * dwarf2out.c (mem_loc_descriptor): Don't handle
2279         POST_INT/POST_DEC/POST_MODIFY like SUBREG.  For SUBREG
2280         punt if it is not lowpart subreg or if inner mode isn't
2281         MODE_INT.
2282
2283 2009-10-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2284
2285         * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
2286         investigating previous or next insns.
2287
2288 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
2289
2290         * tree-sra.c (build_ref_for_offset_1): Update comment.
2291
2292 2009-10-16  Wolfgang Gellerich  <gellerich@de.ibm.com>
2293
2294         * config/s390/s390.md (atype): Added missing values.
2295
2296 2009-10-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2297
2298         PR target/41702
2299         * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
2300         (casesi64p): Update pattern to reflect above.
2301
2302 2009-10-15  Steve Ellcey  <sje@cup.hp.com>
2303
2304         PR rtl-optimization/41697
2305         * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
2306
2307 2009-10-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
2308
2309         PR target/23983
2310         * config/rs6000/predicates.md: Update copyright year.
2311         * config/rs6000/altivec.md: Ditto.
2312
2313         * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
2314         (MD_INCLUDES): Add a2.md.
2315
2316         * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
2317         RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
2318         (builtin_classify): New static vector to classify various builtins
2319         to get the tree attributes correct.
2320         (def_builtin): Set the attributes of builtins based on what the
2321         builtin does (i.e. memory operation, floating point, saturation
2322         need special attributes, others are pure functions).
2323
2324         * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
2325         the builtins.
2326         (enum rs6000_builtins): Include rs6000-builtin.def to define the
2327         builtins.  Change the end marker to MAX_RS6000_BUILTINS from
2328         RS6000_BUILTIN_COUNT.
2329         (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
2330         MAX_RS6000_BUILTINS.
2331
2332         * config/rs6000/rs6000-builtin.def: New file that combines the
2333         builtin enumeration name and attributes.
2334
2335 2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2336
2337         * config/i386/linux.h (ASM_SPEC): Add --32.
2338
2339 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
2340
2341         * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
2342         and DW_TAG_template_alias.
2343         (dwarf_attr_name): Handle DW_AT_main_subprogram,
2344         DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
2345         DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
2346         DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
2347         DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
2348         and DW_AT_GNU_odr_signature.
2349         (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
2350         DW_FORM_flag_present and DW_FORM_ref_sig8.
2351         (output_signature): Only print name on the first byte.
2352         (output_die): Likewise for dw_val_class_data8.
2353
2354 2009-10-15  Alexander Monakov  <amonakov@ispras.ru>
2355
2356         * doc/invoke.texi: Clarify that most optimizations are not enabled
2357         without -O.
2358
2359 2009-10-15  Richard Guenther  <rguenther@suse.de>
2360
2361         PR lto/41668
2362         * gimple.c (compare_type_names_p): Handle anonymous names
2363         differently based on new mode argument.
2364         (gimple_types_compatible_p): For structs also compare the tags.
2365         (iterative_hash_type_name): Rename to ...
2366         (iterative_hash_name): ... this.  Hash all names.
2367         (iterative_hash_gimple_type): Fix hashing the struct tag of
2368         pointer targets.  Hash field decl names.
2369
2370 2009-10-15  Richard Guenther  <rguenther@suse.de>
2371
2372         PR lto/41669
2373         * gimple.c (gimple_get_alias_set): Avoid recursing on
2374         invalid type topology.
2375
2376 2009-10-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2377
2378         * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
2379
2380 2009-10-15  Richard Guenther  <rguenther@suse.de>
2381
2382         * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
2383
2384 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
2385
2386         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
2387         add --with-tune{,-32,-64} configured default for -mtune if explicit
2388         -mcpu is used.
2389
2390 2009-10-14  Daniel Gutson  <dgutson@codesourcery.com>
2391
2392         * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
2393
2394 2009-10-14  DJ Delorie  <dj@redhat.com>
2395
2396         * config/h8300/h8300.c (F): New.
2397         (Fpa): New.
2398         (h8300_emit_stack_adjustment): Call them.
2399         (push): Likewise.
2400         (h8300_push_pop): Likewise.
2401         (h8300_expand_prologue): Likewise.
2402         * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
2403         (MUST_USE_SJLJ_EXCEPTIONS): Define.
2404         (INCOMING_RETURN_ADDR_RTX): Define.
2405         (INCOMING_FRAME_SP_OFFSET): Define.
2406         (DWARF_CIE_DATA_ALIGNMENT): Define.
2407
2408 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
2409
2410         * stor-layout.c (place_field): Don't emit -Wpadded warnings for
2411         fields in builtin structs.
2412         (finalize_record_size): Likewise.
2413
2414 2009-10-14  Richard Guenther  <rguenther@suse.de>
2415
2416         * gimple.c (gtc_ob): New global.
2417         (struct type_pair_d): Replace pointers with type UIDs.
2418         (type_pair_hash): Adjust.
2419         (type_pair_eq): Likewise.
2420         (lookup_type_pair): Likewise.  Allocate from an obstack.
2421         (gimple_force_type_merge): Adjust.
2422         (gimple_types_compatible_p): Likewise.
2423         (free_gimple_type_tables): Free the obstack.
2424
2425 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
2426
2427         * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
2428         stmts setting DEBUG_EXPR_DECLs.
2429
2430         * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
2431         Don't crash if mode1 is VOIDmode.
2432
2433 2009-09-26  Vladimir Makarov  <vmakarov@redhat.com>
2434
2435         * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
2436         * params.h (IRA_LOOP_RESERVED_REGS): New.
2437         * tree-pass.h (pass_subregs_of_mode_init,
2438         pass_subregs_of_mode_finish): Remove.
2439         * passes.c (pass_subregs_of_mode_init,
2440         pass_subregs_of_mode_finish): Remove.
2441         (pass_reginfo_init): Move before loop optimizations.
2442         * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
2443         * common.opt (fira-loop-pressure): New.
2444         * toplev.h (flag_ira_loop_pressure): New.
2445         * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
2446         * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
2447         Make external and void type functions.
2448         (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
2449         pass_subregs_of_mode_finish): Remove.
2450         * ira-costs.c (init_costs): Call init_subregs_of_mode.
2451         * regmove.c: Include ira.h.
2452         (regmove_optimize): Call ira_set_pseudo_classes after IRA based
2453         register pressure calculation in loops.
2454         * loop-invariant.c: Include REGS_H and ira.h.
2455         (struct loop_data): New members max_reg_pressure, regs_ref, and
2456         regs_live.
2457         (struct invariant): New member orig_regno.
2458         (curr_loop): New variable.
2459         (find_exits): Initialize regs_ref and regs_live.
2460         (create_new_invariant): Initialize orig_regno.
2461         (get_cover_class_and_nregs): New.
2462         (get_inv_cost): Make aregs_needed an array.  Use regs_needed as an
2463         array.  Add code for flag_ira_loop_pressure.
2464         (gain_for_invariant): Make new_regs an array.  Add code for
2465         flag_ira_loop_pressure.
2466         (best_gain_for_invariant): Ditto.
2467         (set_move_mark): New parameter gain.  Use it for debugging output.
2468         (find_invariants_to_move): Make regs_needed and new_regs an array.
2469         Add code for flag_ira_loop_pressure.
2470         (move_invariant_reg): Set up orig_regno.
2471         (move_invariants): Set up reg classes for pseudos for
2472         flag_ira_loop_pressure.
2473         (free_loop_data): Clear regs_ref and regs_live.
2474         (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
2475         get_regno_cover_class, change_pressure, mark_regno_live,
2476         mark_regno_death, mark_reg_store, mark_reg_clobber,
2477         mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
2478         (move_loop_invariants): Calculate pressure.  Initialize curr_loop.
2479         * ira.c (ira): Call ira_set_pseudo_classes after IRA based
2480         register pressure calculation in loops if new regs were added.
2481         Call finish_subregs_of_mode.
2482         * opts.c (decode_options): Set up flag_ira_loop_pressure.
2483         * Makefile.in (loop-invariant.o): Add ira.h.
2484         (regmove.o): Ditto.
2485         * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
2486         Describe.
2487         * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
2488
2489 2009-10-14  Richard Guenther  <rguenther@suse.de>
2490
2491         * lto-symtab.c (lto_symtab_compatible): Fold in ...
2492         (lto_symtab_merge): ... here.  Rewrite both to take the
2493         prevailing and a to-be-merged entry and to queue diagnostics properly.
2494         (lto_symtab_resolve_replaceable_p): New predicate for
2495         symbol resolution.
2496         (lto_symtab_resolve_can_prevail_p): Likewise.
2497         (lto_symtab_resolve_symbols): Rewrite.  Fold in code that
2498         handles merging commons by choosing the largest decl.  Fold
2499         in code that gives ODR errors.
2500         (lto_symtab_merge_decls_2): Simplify a lot.  Emit queued
2501         diagnostics here.
2502         (lto_symtab_merge_decls_1): Re-structure.  Deal with the
2503         case of no prevailing decl here.  Diagnose mismatches
2504         in object types here.  Drop all but the prevailing decls.
2505         (lto_symtab_prevailing_decl): Return the single prevailing decl.
2506         * lto-streamer-in.c (lto_input_tree_ref): Deal with
2507         VIEW_CONVERT_EXPRs in decl slots.  Unshare the tree in this case.
2508
2509 2009-10-14  Richard Guenther  <rguenther@suse.de>
2510
2511         PR lto/41521
2512         * lto-streamer-in.c (input_bb): Replace debug stmts with
2513         nops instead of dropping them.
2514
2515 2009-10-14  Nick Clifton  <nickc@redhat.com>
2516
2517         * gcc/doc/extended.texi: Replace the dash character with @minus{}
2518         in situations where it is being used as a minus symbol.
2519         * gcc/doc/tm.texi: Likewise.
2520         * gcc/doc/md.texi: Likewise.
2521
2522 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
2523
2524         PR preprocessor/41543
2525         * input.h (BUILTINS_LOCATION): Change to 1 from 2.
2526         Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
2527         * tree.c: Include intl.h.
2528         (expand_location): Handle BUILTINS_LOCATION.
2529         * Makefile.in (tree.o): Depend on intl.h.
2530
2531         PR debug/41695
2532         * dwarf2out.c (dwarf2out_var_location): Always clear
2533         last_postcall_label when changing last_label.
2534
2535 2009-10-14  Pascal Obry  <obry@adacore.com>
2536
2537         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
2538         (process_command): Handle -E as done with -c and -S.  Do not add
2539         the target executable suffix to the output file when -E is used.
2540         (main): Adjust error message accordingly.
2541
2542 2009-10-14  Alexandre Oliva  <aoliva@redhat.com>
2543
2544         PR debug/41343
2545         PR debug/41447
2546         PR debug/41264
2547         PR debug/41338
2548         * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
2549         decl with rtl.
2550         (tree_code_size): Likewise.
2551
2552 2009-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2553
2554         * builtins.c (fold_builtin_1): Support complex "arc" functions.
2555         * real.h (HAVE_mpc_arc): Define.
2556
2557 2009-10-14  Kaz Kojima  <kkojima@gcc.gnu.org>
2558
2559         * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
2560         (struct builtin_description): Add fndecl field.
2561         (bdesc): Remove const qualifier.  Update initializer.
2562         (sh_media_init_builtins): Remove const qualifier for d.  Record
2563         the result of add_builtin_function to the fndecl field.
2564         (sh_builtin_decl): New.
2565         (sh_media_builtin_decl): New.
2566
2567 2009-10-14  Hans-Peter Nilsson  <hp@axis.com>
2568
2569         PR target/38948
2570         * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
2571         requests between special registers.
2572
2573 2009-10-13  Eric Botcazou  <ebotcazou@adacore.com>
2574
2575         * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
2576
2577 2009-10-13  Richard Henderson  <rth@redhat.com>
2578
2579         PR tree-optimization/41377
2580         * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
2581         (cleanup_empty_eh_merge_phis): New change_region parameter;
2582         pass it on to redirect_eh_edge_1.  Update callers.
2583         (cleanup_empty_eh_unsplit): Don't require an existing EH label
2584         at the destination block.
2585
2586 2009-10-13  Basile Starynkevitch  <basile@starynkevitch.net>
2587
2588         * passes.c (register_pass): Replaced gcc_unreachable by
2589         fatal_error on failure. Mentions plugins in comments & messages.
2590
2591 2009-10-13  Jakub Jelinek  <jakub@redhat.com>
2592
2593         PR target/41693
2594         * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
2595         * sched-vis.c (print_value): Use it.
2596         * cselib.c (cselib_hash_rtx): Likewise.
2597         * print-rtl.c (print_rtx): Likewise.
2598         * cfgexpand.c (expand_debug_rtx): Likewise.
2599         * var-tracking.c (vt_expand_loc_callback): Likewise.
2600
2601 2009-10-13  Richard Guenther  <rguenther@suse.de>
2602
2603         PR lto/41565
2604         * opts.c (handle_option): Split out code to handle setting
2605         the options flag var ...
2606         (set_option): ... here.
2607         * opts.h (set_option): Declare.
2608         * lto-opts.c (register_user_option_p): Include -fexceptions
2609         and all position independent code variants.
2610         (handle_common_option): Remove.
2611         (lto_reissue_options): Use set_option.
2612
2613 2009-10-13  Martin Jambor  <mjambor@suse.cz>
2614
2615         PR tree-optimization/41661
2616         * ipa-prop.c (compute_complex_pass_through): Allow only operations
2617         that are tcc_comparisons or do not change the type in any
2618         un-usleless way.
2619         * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
2620         folding tcc_comparison operations.
2621
2622 2009-10-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2623
2624         * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
2625         properly.
2626
2627 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
2628
2629         PR debug/41343
2630         PR debug/41447
2631         PR debug/41264
2632         PR debug/41338
2633         * tree.def (DEBUG_EXPR_DECL): New.
2634         * rtl.def (DEBUG_EXPR): New.
2635         * gengtype.c (adjust_field_rtx_def): Handle it.
2636         * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
2637         (insert_debug_temp_for_var_def): ... this.  Drop support for
2638         moving.  Take iterator for def stmt; insert debug stmt before it.
2639         Scan early for use count and kind in debug stmts.
2640         (propagate_defs_into_debug_stmts): Rename to...
2641         (insert_debug_temps_for_defs): ... this.  Likewise.
2642         * tree.h (DEBUG_TEMP_UID): New.
2643         * tree.c (next_debug_decl_uid): New.
2644         (make_node_stat): Count debug decls separately.
2645         (copy_node_stat): Likewise.
2646         * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
2647         * var-tracking.c (dv_is_decl_p): Recognize it.
2648         (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
2649         (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
2650         (vt_expand_loc_callback): Expand DEBUG_EXPRs.
2651         (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
2652         * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
2653         (cselib_hash_rtx): Likewise.
2654         (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
2655         * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
2656         debug bind stmts.
2657         * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
2658         (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
2659         * rtl.c (copy_rtx): Likewise.
2660         (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
2661         * print-rtl.c (print_rtx): Likewise.
2662         * sched-vis.c (print_value): Likewise.
2663         (print_insn): Handle DEBUG_EXPR_DECL.
2664         * tree-dump.c (dequeue_and_dump): Likewise.
2665         * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
2666         * gimple-iterator (gsi_replace): Check for same lhs.
2667         (gsi_remove): Insert debug temps.
2668         * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
2669         (move_computations_stmt): Drop explicit propagation into debug stmts.
2670         (rewrite_bittest): Likewise.  Use gsi_remove for propagation.
2671         * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
2672         * tree-ssa-sink.c (statement_sink_location): Likewise.
2673         * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
2674         * tree-ssanames.c (release_ssa_name): Adjust for rename.
2675         * tree-flow.h: Likewise.
2676         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
2677         debug temps without values.
2678         (eliminate_unnecessary_stmts): Don't discard just-inserted
2679         debug stmts.
2680
2681 2009-10-12  Hans-Peter Nilsson  <hp@axis.com>
2682
2683         PR target/26515
2684         * config/cris/cris.md (andu): Check that operand 1 is one of the
2685         general registers.  Fix typo in head comment.
2686
2687 2009-10-12  Stefan Dösinger  <stefan@codeweavers.com>
2688
2689         * config/i386/i386.md (vswapmov): New.
2690         * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
2691         (ix86_function_ms_hook_prologue): New.
2692         (ix86_expand_prologue): Handle ms_hook_prologue attribute.
2693         * configure.ac: Test for swap suffix support in as.
2694         * configure: Rebuild.
2695
2696 2009-10-12  Jakub Jelinek  <jakub@redhat.com>
2697
2698         PR target/41680
2699         * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
2700         paradoxical subregs to prevent partial register stalls if the inner
2701         mode is integer mode.
2702
2703 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
2704
2705         * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
2706
2707 2009-10-12  Dodji Seketeli  <dodji@redhat.com>
2708
2709         PR c++/41570
2710         * gcc/dwarf2out.c (template_parameter_pack_die,
2711         gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
2712
2713 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
2714
2715         PR debug/41616
2716         * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
2717         on updates too.
2718         (maybe_register_def): Likewise.  Take stmt iterator.
2719         (rewrite_update_stmt): Take stmt iterator and pass it on.
2720         (rewrite_update_enter_block): Pass stmt iterator.
2721
2722 2009-10-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2723
2724         * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
2725         (spu_builtin_decl): New function.
2726
2727 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
2728
2729         * config/i386/i386.md (SWIM): New mode iterator.
2730         (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
2731         using SWIM mode iterator.
2732         (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
2733         patterns using SWI48 mode iterator.
2734         (*x86_mov<mode>cc_0_m1_se):  Macroize insn from
2735         *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
2736         (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
2737         (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
2738         patterns using SWI248 mode iterator.
2739         * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
2740         gen_x86_movdicc_0_m1_rex64 for renamed function
2741
2742 2009-10-11  Jose Ruiz  <ruiz@adacore.com>
2743             Eric Botcazou  <ebotcazou@adacore.com>
2744
2745         PR target/33743
2746         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
2747         * config/sparc/sol2-unwind.h: New file.
2748
2749 2009-10-11  Olivier Hainque  <hainque@adacore.com>
2750             Eric Botcazou  <ebotcazou@adacore.com>
2751
2752         PR target/33743
2753         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
2754         * config/i386/sol2-unwind.h: New file.
2755
2756 2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>
2757
2758         PR target/41665
2759         * config/i386/i386.md (addsi_1_zext): Get the proper second
2760         operand for lea.
2761
2762 2009-10-11  Richard Sandiford  <rdsandiford@googlemail.com>
2763
2764         * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
2765         all OLD_RTXes, not just REGs.  Use copy_rtx to create the
2766         replacement value.
2767
2768 2009-10-11  Richard Guenther  <rguenther@suse.de>
2769
2770         * gimple.c (iterative_hash_type_name): Do not handle special
2771         anonymous names.
2772
2773 2009-10-11  Uros Bizjak  <ubizjak@gmail.com>
2774
2775         * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
2776         (*setcc_si_1_and): Ditto.
2777         (*setcc_si_1_movzbl): Ditto.
2778         (*setcc_<mode>_2): Ditto.
2779         (*setcc_qi): Rename from *setcc_1.
2780         (*setcc_qi_slp): Rename from *setcc_2.
2781
2782         (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
2783         (*zero_extendqisi2_movzbw_and splitter): Ditto.
2784
2785         * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
2786         "if" condition, there is already assert with reload_completed present.
2787
2788 2009-10-11  Gerald Pfeifer  <gerald@pfeifer.com>
2789
2790         * plugin.c (try_init_one_plugin): Improve constness of variable err.
2791
2792 2009-10-10  Gerald Pfeifer  <gerald@pfeifer.com>
2793
2794         * doc/install.texi (Final install): Refer to
2795         http://gcc.gnu.org/bugs/ for bug reporting.
2796
2797 2009-10-10  Peter Bergner  <bergner@vnet.ibm.com>
2798
2799         * configure.ac: Add test for dci instruction.
2800         * configure: Regenerate.
2801         * config.in: Likewise.
2802         * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
2803         * doc/invoke.texi: Add cpu_type 476 and 476fp.
2804         (-mmulhw): Add 476 to description.
2805         (-mdlmzb): Likewise.
2806         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
2807         * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
2808         (processor_target_table): Add 476 and 476fp entries.
2809         (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
2810         (rs6000_issue_rate): Add CPU_PPC476.
2811         * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
2812         (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
2813         (processor_type): Add PROCESSOR_PPC476.
2814         (EXTRA_SPECS): Add asm_cpu_476 string.
2815         * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
2816         (define_attr "cpu"): Add ppc476.
2817         Include 476.md.
2818         Update comments for 476.
2819         (isel_signed, isel_unsigned): Change to use "isel" type attribute.
2820         * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
2821         Update copyright year.
2822         * config/rs6000/476.md: New file.
2823         * config/rs6000/40x.md: Add description for "isel" attribute.
2824         Update copyright year.
2825         * config/rs6000/440.md: Likewise.
2826         * config/rs6000/603.md: Likewise.
2827         * config/rs6000/6xx.md: Likewise.
2828         * config/rs6000/7450.md: Likewise.
2829         * config/rs6000/7xx.md: Likewise.
2830         * config/rs6000/8540.md: Likewise.
2831         * config/rs6000/cell.md: Likewise.
2832         * config/rs6000/e300c2c3.md: Likewise.
2833         * config/rs6000/e500mc.md: Likewise.
2834         * config/rs6000/mpc.md: Likewise.
2835         * config/rs6000/power4.md: Likewise.
2836         * config/rs6000/power5.md: Likewise.
2837         * config/rs6000/power6.md: Likewise.
2838         * config/rs6000/power7.md: Likewise.
2839         * config/rs6000/rios1.md: Likewise.
2840         * config/rs6000/rios2.md: Likewise.
2841         * config/rs6000/rs64.md: Likewise.
2842
2843 2009-10-10  Richard Guenther  <rguenther@suse.de>
2844
2845         PR tree-optimization/41654
2846         * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
2847         a cond expr before calling gimple_cond_set_condition_from_tree.
2848         (ifcombine_iforif): Likewise.
2849
2850 2009-10-09  Ian Lance Taylor  <iant@google.com>
2851
2852         * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
2853         * configure: Rebuild.
2854
2855 2009-10-09  Neil Vachharajani <nvachhar@google.com>
2856
2857         * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
2858         deprecated.
2859
2860 2009-10-09  Richard Guenther  <rguenther@suse.de>
2861
2862         PR lto/41638
2863         * target-def.h (TARGET_BUILTIN_DECL): Define.
2864         (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
2865         * target.h (struct gcc_target): Add builtin_decl target hook.
2866         * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
2867         * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
2868         target builtins.
2869         * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
2870         not gcc_unreachable.
2871         (lto_output_builtin_tree): Sorry if the target does not support
2872         streaming target builtins.
2873         * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
2874         (rs6000_builtin_decl): New function.
2875         * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
2876         (ix86_builtin_decl): New function.
2877
2878 2009-10-09  Jakub Jelinek  <jakub@redhat.com>
2879
2880         PR preprocessor/41445
2881         * c-ppoutput.c (do_line_change): New function.
2882         (cb_line_change): Use it.
2883         (scan_translation_unit): Call do_line_change if
2884         avoid_paste or PREV_WHITE and token location is on a different line
2885         than print.src_line.
2886
2887         PR debug/40521
2888         * dwarf2out.c (dwarf2out_init): Test whether
2889         HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
2890         it is defined.
2891
2892         PR rtl-optimization/41646
2893         * calls.c (expand_call): For BLKmode types returned in registers
2894         avoid likely spilled hard regs in copy_blkmode_from_reg generated
2895         insns.
2896
2897 2009-10-09  Richard Guenther  <rguenther@suse.de>
2898
2899         PR tree-optimization/41634
2900         * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
2901         we remove the correct elements.
2902         (optimize_stmt): Make sure to update stmt operands before
2903         optimizing redundancies.
2904
2905 2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2906
2907         * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
2908
2909 2009-10-09  Richard Guenther  <rguenther@suse.de>
2910
2911         PR driver/41637
2912         * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
2913         globals.
2914         (lto_wrapper_exit): New function.
2915         (fatal): Use it.
2916         (fatal_perror): Likewise.
2917         (fork_execute): Use global args_name, do not free it.
2918         (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
2919         * lto-streamer.h: Remove duplicate prototypes.
2920
2921 2009-10-09  Richard Guenther  <rguenther@suse.de>
2922
2923         * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
2924         before calling stmt_can_throw_external.
2925
2926 2009-10-09  Eric Botcazou  <ebotcazou@adacore.com>
2927
2928         PR tree-optimization/40071
2929         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
2930         pointer if the original data reference doesn't conflict with the
2931         created vector data reference.  Fix long line.
2932
2933 2009-10-09  Uros Bizjak  <ubizjak@gmail.com>
2934
2935         * config/i386/i386.md (any_div): New code iterator.
2936         (u): Handle div and udiv.
2937         (sgnprefix): Ditto.
2938         (<u>divqi3): Macroize insn from {,u}divqi3  using any_div
2939         code iterator.
2940         (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
2941         lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
2942         (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
2943         lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
2944
2945 2009-10-08  Joseph Myers  <joseph@codesourcery.com>
2946
2947         * gcc.c (main): Remove trailing "." from diagnostics.
2948
2949 2009-10-08  Cary Coutant  <ccoutant@google.com>
2950
2951         Add support for debugging with ICF (Identical Code Folding).
2952         * calls.c (debug.h): New #include.
2953         (emit_call_1): Call virtual_call_token debug hook.
2954         * common.opt (-fenable-icf-debug): New option.
2955         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
2956         locations in the source).
2957         (poc_label_num): New variable.
2958         (dcall_entry, vcall_entry): New typedefs.
2959         (dcall_table, vcall_table): New variables.
2960         (struct vcall_insn): New type.
2961         (vcall_insn_table): New variable.
2962         (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
2963         (size_of_dcall_table): New function.
2964         (output_dcall_table): New function.
2965         (size_of_vcall_table): New function.
2966         (output_vcall_table): New function.
2967         (dwarf2out_direct_call): New function.
2968         (vcall_insn_table_hash): New function.
2969         (vcall_insn_table_eq): New function.
2970         (dwarf2out_virtual_call_token): New function.
2971         (dwarf2out_virtual_call): New function.
2972         (dwarf2out_init): Allocate new tables and sections.
2973         (prune_unused_types): Mark DIEs referenced from direct call table.
2974         (dwarf2out_finish): Output direct and virtual call tables.
2975         * final.c (final_scan_insn): Call direct_call and virtual_call
2976         debug hooks.
2977         * debug.h (struct gcc_debug_hooks): Add direct_call,
2978         virtual_call_token, virtual_call hooks.
2979         (debug_nothing_uid): New function.
2980         * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
2981         (debug_nothing_uid): New function.
2982         * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
2983         (xcoff_debug_hooks): Likewise.
2984         * sdbout.c (sdb_debug_hooks): Likewise.
2985         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2986         * doc/invoke.texi (-fenable-icf-debug): New option.
2987
2988 2009-10-08  Alexandre Oliva  <aoliva@redhat.com>
2989
2990         PR debug/41353
2991         * regmove.c (regmove_backward_pass): Replace src with dst in the
2992         debug insn, and check for dst before rather than after.
2993
2994 2009-10-08  Janis Johnson <janis187@us.ibm.com>
2995
2996         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
2997         (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
2998
2999 2009-10-08  Jan Hubicka  <jh@suse.cz>
3000
3001         PR middle-end/41626
3002         * cgraphbuild.c (record_reference): When parameter DATA is NULL,
3003         do not mark cgraph nodes as needed.
3004         (record_references_in_initializer): Add new only_vars parameter.
3005         * cgraph.h (record_references_in_initializer): New parameter.
3006         * varasm.c (assemble_variable): Update call.
3007         * varpool.c (varpool_analyze_pending_decls): Always look for
3008         referenced vars.
3009
3010 2009-10-08  Anatoly Sokolov  <aesok@post.ru>
3011
3012         * config/avr/avr.c (last_insn_address) Remove variable.
3013         (expand_prologue): Don't initialise last_insn_address variable.
3014         (final_prescan_insn): Don't output insn size.
3015         * config/avr/avr.opt (msize): Remove switch.
3016         * doc/invoke.texi (AVR Options): Remove documentation of -msize
3017         switch.
3018
3019 2009-10-08  Adam Nemet  <anemet@caviumnetworks.com>
3020
3021         * combine.c (label_tick_ebb_start): Fix comment.
3022         (combine_instructions): Set label_tick and label_tick_ebb_start before
3023         calling setup_incoming_promotions.  Start them from 1.  Increment
3024         label_tick instead of deriving it from the BB index.  Rather than
3025         comparing ticks use the block from the previous iteration to decide
3026         whether to start a new EBB.  Remove empty lines before function.
3027
3028 2009-10-08  Michael Matz  <matz@suse.de>
3029
3030         PR middle-end/41573
3031         * builtins.c (fold_builtin_isascii): Use fold_build2.
3032         (fold_builtin_isdigit): Ditto.
3033         * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
3034         * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
3035         remove_useless_stmts_cond, remove_useless_stmts_tf,
3036         remove_useless_stmts_tc, remove_useless_stmts_bind,
3037         remove_useless_stmts_goto, remove_useless_stmts_label,
3038         remove_useless_stmts_1, remove_useless_stmts,
3039         pass_remove_useless_stmts): Remove.
3040         * tree-pass.h (pass_remove_useless_stmts): Don't declare.
3041         * passes.c (init_optimization_passes): Don't add
3042         pass_remove_useless_stmts.
3043         * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
3044         * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
3045         static constants.
3046         * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
3047         for static constants.
3048         * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
3049         * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
3050
3051 2009-10-08  Richard Guenther  <rguenther@suse.de>
3052
3053         * gimple.c (free_gimple_type_tables): New function.
3054         * gimple.h (free_gimple_type_tables): Declare.
3055
3056 2009-10-07  Mark Heffernan  <meheff@google.com>
3057
3058         * ipa-prop.c (ipa_print_node_params) Only print
3059         names of named arguments.
3060
3061 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
3062
3063         * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
3064         being statically linked.
3065
3066 2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3067
3068         * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
3069
3070 2009-10-08  Jan Hubicka  <jh@suse.cz>
3071
3072         PR bootstrap/41620
3073         * ipa.c (cgraph_externally_visible_p,
3074         function_and_variable_visibility,
3075         whole_program_function_and_variable_visibility): Skip non-finalized
3076         nodes.
3077
3078 2009-10-08  Nick Clifton  <nickc@redhat.com>
3079
3080         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
3081         CONST_DOUBLEs.
3082
3083 2009-10-08  Andreas Tobler  <a.tobler@schweiz.org>
3084
3085         PR bootstrap/37739
3086         * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
3087
3088 2009-10-07  Joseph Myers  <joseph@codesourcery.com>
3089
3090         PR c/41182
3091         * c-common.c (c_fully_fold_internal): Strip nops from the result
3092         of recursive calls to c_fully_fold_internal.
3093         (c_wrap_maybe_const): New.
3094         (c_save_expr): Use c_wrap_maybe_const.
3095         * c-common.h (c_wrap_maybe_const): Declare.
3096         * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
3097         build_binary_op): Use c_wrap_maybe_const.
3098
3099 2009-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3100
3101         * real.c: Fix comment to reflect actual exponent size.
3102
3103 2009-10-08  Ben Elliston  <bje@au.ibm.com>
3104
3105         * config/rs6000/a2.md: Add FSF comment header.
3106
3107 2009-10-07  Uros Bizjak  <ubizjak@gmail.com>
3108
3109         * config/i386/i386.md (any_extend): New code iterator.
3110         (u, s): New code attributes.
3111         (sgnprefix): Ditto.
3112         (DWIH): Rewrite as code iterator for SI and DI modes.
3113         (DWI): Rewrite as mode attribute.
3114         (dwi): New mode attribute.
3115         (di): Depend on SI mode and DI mode.
3116         (doubleint_general_operand): Remove mode attribute.
3117
3118         (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
3119         DWIH mode iterator.
3120
3121         (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
3122         (*sub<mode>3_doubleword): Ditto.
3123
3124         (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
3125         using SWIM248 mode iterator.
3126         (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
3127         using SWI48 mode iterator.
3128         (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
3129         patterns using DWIH mode iterator and any_extend code iterator.
3130         (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
3131         using any_extend code iterator.
3132         (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
3133         patterns using DWIH mode iterator and any_extend code iterator.
3134         (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
3135         using any_extend code iterator.
3136         (<s>mul<mode>3_highpart): Macroize expander from
3137         {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
3138         and any_extend code iterator.
3139         (*<s>muldi3_highpart_1): Macroize insn from
3140         *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
3141         (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
3142         patterns using any_extend code iterator.
3143         (*<s>mulsi3_highpart_zext): Macroize insn from
3144         *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
3145
3146 2009-10-07  Jakub Jelinek  <jakub@redhat.com>
3147
3148         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
3149         DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
3150         refering to a DIE with DW_AT_const_value.
3151
3152 2009-10-07  Vladimir Makarov  <vmakarov@redhat.com>
3153
3154         PR middle-end/22072
3155         * ira-lives.c (check_and_make_def_conflict): Process all operands.
3156
3157 2009-10-06  Jan Hubicka  <jh@suse.cz>
3158
3159         * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
3160         correctly.
3161
3162 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
3163
3164         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
3165         *lea_2_rex64): Move before *add<mode>_1 pattern.
3166
3167 2009-10-07  Jan Hubicka  <jh@suse.cz>
3168
3169         * collect2.c (main): Add -fno-whole-program.
3170         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
3171
3172 2009-10-07  Jan Hubicka  <jh@suse.cz>
3173
3174         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
3175         has no address taken.
3176         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
3177         never needed.
3178         (cgraph_clone_node): Clear externally_visible flag for clones.
3179         * cgraph.h (cgraph_only_called_directly_p,
3180         cgraph_can_remove_if_no_direct_calls_p): New predicates.
3181         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
3182         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
3183         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
3184         ipcp_insert_stage): Likwise.
3185         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
3186         externally_visible flag.
3187         (verify_cgraph_node): Verify that inline clones look right.
3188         (process_function_and_variable_attributes): Do not set
3189         externally_visible flags.
3190         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
3191         been already run.
3192         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
3193         boundaries.
3194         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
3195         clear externally_visible when turning into inline clones
3196         (cgraph_mark_inline_edge): Use new predicates.
3197         (cgraph_estimate_growth): Likewise.
3198         (cgraph_decide_inlining): Likewise.
3199         * ipa.c (cgraph_postorder): Likewise.
3200         (cgraph_remove_unreachable_nodes): Likewise; sanity check
3201         that inline clones are not needed.
3202         (cgraph_externally_visible_p): New predicate.
3203         (function_and_variable_visibility): Add whole_program parameter;
3204         always set externally_visible flag; handle COMDAT function
3205         privatization.
3206         (local_function_and_variable_visibility): New function.
3207         (gate_whole_program_function_and_variable_visibility): New function.
3208         (whole_program_function_and_variable_visibility): New function.
3209         (pass_ipa_whole_program_visibility): New function.
3210         * passes.c  (init_optimization_passes): Add whole program visibility
3211         pass.
3212         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
3213         not care about needed/reachable flags.
3214         * varpool.c: Include flags.h
3215         (decide_is_variable_needed): When doing LTO assume whole-program mode.
3216         (varpool_finalize_decl): When we are in LTO read-back, all variables
3217         are analyzed.
3218         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
3219
3220 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3221
3222         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
3223         add MASK_HARD_DFP.
3224
3225 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3226
3227         * config.gcc: Don't include the makefile fragments intended for
3228         libgcc.
3229         * config/s390/fixdfdi.h: File removed.
3230         * config/s390/libgcc-glibc.ver: File removed.
3231         * config/s390/s390.h: Remove the fixdfdi.h hack.
3232         * config/s390/t-crtstuff: File moved to libgcc dir.
3233         * config/s390/t-linux: Likewise.
3234         * config/s390/t-tpf: libgcc specific parts removed.
3235         * config/s390/t-linux64: Likewise.
3236
3237 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
3238
3239         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
3240         (lto-compress.o): Likewise.
3241
3242 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
3243
3244         PR target/41512
3245         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
3246         dllexport to class members here.
3247         (i386_pe_determine_dllimport_p): Only check static class data for
3248         definition.
3249         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
3250         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
3251         functions for vague linkage.
3252         (i386_pe_type_dllexport_p): Fix formatting.
3253         (maybe_add_dllexport) New function.
3254         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
3255         to class members.
3256
3257 2009-10-07  Ben Elliston  <bje@au.ibm.com>
3258
3259         * config/rs6000/a2.md: Remove duplicated lines.
3260
3261 2009-10-07  Ben Elliston  <bje@au.ibm.com>
3262
3263         * config.gcc (powerpc*-*-*): Handle a2.
3264         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
3265         * config/rs6000/a2.md: New file.
3266         * config/rs6000/rs6000.opt (mno-update): New.
3267         (mupdate): Return to using a mask, not a var.
3268         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
3269         (enum processor_type): Add PROCESSOR_PPCA2.
3270         * config/rs6000/rs6000.c (ppca2_cost): New costs.
3271         (rs6000_override_options): Add "a2" to processor_target_table.
3272         Update rs6000_always_hint logic.  Correctly set rs6000_cost for a2.
3273         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
3274
3275 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
3276
3277         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
3278         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
3279         reference to nonexistent gen_truncxfxf2 function.
3280
3281 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
3282
3283         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
3284         (DWIH, g, di, doubleint_general_operand): New mode attributes.
3285         (general_operand): Handle TI mode.
3286         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
3287         using SDWIM mode iterator.
3288         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
3289         pattern from *add{di,ti}3_1 patterns and corresponding splitters
3290         using DWI mode iterator.
3291         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
3292         patterns using SWI mode iterator.
3293         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
3294         using SWI48 mode iterator.
3295         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
3296         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
3297         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
3298         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
3299         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
3300         using SDWIM mode iterator.
3301         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
3302         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
3303         using DWI mode iterator.
3304         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
3305         patterns using SWI mode iterator.
3306         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
3307         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
3308         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
3309         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
3310         patterns using plusminus code iterator.
3311         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
3312         sub<mode>3 patterns using plusminus code iterator.
3313         * config/i386/i386.c (override_options): Update the call to
3314         gen_subdi_carry_rex64 for renamed function.
3315         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
3316         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
3317         calls to instruction expanders.
3318
3319 2009-10-06  Martin Jambor  <mjambor@suse.cz>
3320
3321         PR bootstrap/41395
3322         * opts.c (decode_options): Run IPA-SRA at -O2.
3323
3324 2009-10-06  Richard Guenther  <rguenther@suse.de>
3325
3326         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
3327
3328 2009-10-06  Tobias Burnus  <burnus@net-b.de>
3329
3330         PR lto/41591
3331         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
3332         -flto and -fwhole-program flags can be combined.
3333
3334 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
3335
3336         PR driver/41217
3337         * gcc.c (process_command): Check that -o argument was specified.
3338
3339 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
3340
3341         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
3342
3343 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3344
3345         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
3346         * doc/invoke.texi (Warning Options): Annotate allowed languages
3347         for -Wunsuffixed-float-constants.
3348
3349 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
3350
3351         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
3352         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
3353         same name and isn't the main variant.
3354
3355         PR debug/41558
3356         * dwarf2out.c (loc_by_reference): Removed.
3357         (dw_loc_list_1): New function.
3358         (dw_loc_list): Remove toplev argument, add want_address argument.
3359         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
3360         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
3361         want_address == 2 to dw_loc_list.  For successful dw_loc_list
3362         set have_address to 1 only if want_address is not 0.
3363
3364 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
3365
3366         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
3367         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
3368         a code block followed by two pointers.
3369         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
3370         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
3371         (MIPS_MOVE): Likewise.
3372         (MIPS_LUI): Likewise.
3373         (MIPS_JR): Likewise.
3374         (MIPS_BAL): Likewise.
3375         (MIPS_NOP): Likewise.
3376         (mips_asm_trampoline_template): Delete.
3377         (mips_trampoline_code_size): New function.
3378         (mips_trampoline_init): Add shorter sequences for all cases
3379         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
3380         Calculate the opcodes directly, rather than copying from a template.
3381         Only flush the code part of the trampoline.
3382         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
3383
3384 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
3385
3386         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
3387         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
3388         (INCOMING_RETURN_ADDR_RTX): Likewise.
3389         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
3390         with AT_REGNUM.
3391         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
3392         with RETURN_ADDR_REGNUM.
3393         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
3394         * config/mips/mips.c (mips16_build_call_stub): Replace
3395         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
3396         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
3397         (mips_print_operand_punctuation): Likewise.
3398         (mips_frame_set): Likewise.
3399         (mips16e_output_save_restore): Likewise.
3400         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
3401         (mips_save_reg_p): Likewise.
3402         (mips_return_addr): Likewise.
3403         (mips_set_return_address): Likewise.
3404         (mips_direct_save_slot_move_p): Likewise.
3405         (mips_output_function_prologue): Likewise.
3406         (mips_restore_reg): Likewise.
3407         (mips_expand_epilogue): Likewise.
3408         (mips_epilogue_uses): Likewise.
3409         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
3410         (*mov<mode>_ra): Use it instead of a hard-coded 31.
3411         (clear_hazard_<mode>): Likewise.
3412         (call_internal): Likewise.
3413         (call_internal_direct): Likewise.
3414         (call_direct_split): Likewise.
3415         (call_value_internal): Likewise.
3416         (call_value_split): Likewise.
3417         (call_value_internal_direct): Likewise.
3418         (call_value_direct_split): Likewise.
3419         (call_value_multiple_internal): Likewise.
3420         (call_value_multiple_split): Likewise.
3421
3422 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
3423             Jakub Jelinek  <jakub@redhat.com>
3424
3425         PR rtl-optimization/41511
3426         * combine.c (record_value_for_reg): Pass explicit values as argument
3427         to get_last_value_validate.
3428         (get_last_value_validate): Document INSN parameter.
3429         For non-readonly MEMs, assume they might have been modified if INSN
3430         was in another basic block.
3431         (get_last_value): Minor reformatting.
3432
3433 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3434
3435         PR tree-opt/40992
3436         * final.c (asm_str_count): Split out from asm_insn_count.
3437         * rtl.h (asm_str_count): New prototype.
3438         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
3439         asm_str_count.
3440
3441 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
3442
3443         * doc/plugins.texi: Change plugin_pass to register_pass_info.
3444
3445 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
3446             Rafael Espindola  <espindola@google.com>
3447
3448         * gengtype.c (write_types): Moved call to write_func_for_structure
3449         into seperate loops.
3450
3451 2009-10-05  Richard Guenther  <rguenther@suse.de>
3452
3453         PR lto/41281
3454         * lto-cgraph.c (output_cgraph): Output toplevel asms.
3455         (input_cgraph_1): Input toplevel asms.
3456
3457 2009-10-05  Richard Guenther  <rguenther@suse.de>
3458
3459         PR lto/40902
3460         * lto-symtab.c (lto_compatible_attributes_p): Remove.
3461         (external_aggregate_decl_p): Likewise.
3462         (lto_symtab_compatible): Re-structure.  Remove dead code.
3463         For variables ignore toplevel qualifiers when comparing types.
3464         Issue warnings, not errors for mismatched user-alignment.
3465
3466 2009-10-05  Richard Guenther  <rguenther@suse.de>
3467
3468         PR lto/41552
3469         PR lto/41487
3470         * lto-symtab.c (struct lto_symtab_base_def): Remove.
3471         (struct lto_symtab_identifier_def): Likewise.
3472         (struct lto_symtab_decl_def): Likewise.
3473         (struct lto_symtab_entry_def): New.
3474         (lto_symtab_identifier_t): Rename to ...
3475         (lto_symtab_entry_t): ... this.
3476         (lto_symtab_decls): Remove.
3477         (lto_symtab_base_hash): Rename to ...
3478         (lto_symtab_entry_hash): ... this.
3479         (lto_symtab_base_eq): Rename to ...
3480         (lto_symtab_entry_eq): ... this.
3481         (lto_symtab_base_marked_p): Rename to ...
3482         (lto_symtab_entry_marked_p): ... this.
3483         (lto_symtab_identifier_marked_p): Remove.
3484         (lto_symtab_decl_marked_p): Likewise.
3485         (lto_symtab_maybe_init_hash_tables): Rename to ...
3486         (lto_symtab_maybe_init_hash_table): ... this.
3487         (lto_symtab_set_resolution_and_file_data): Remove.
3488         (lto_symtab_register_decl): New function.
3489         (lto_symtab_get_identifier): Remove.
3490         (lto_symtab_get): New function.
3491         (lto_symtab_get_resolution): Adjust.
3492         (lto_symtab_get_identifier_decl): Remove.
3493         (lto_symtab_set_identifier_decl): Likewise.
3494         (lto_symtab_merge_decl): Rename to ...
3495         (lto_symtab_merge): ... this.  Rewrite.
3496         (lto_symtab_merge_var): Remove.
3497         (lto_symtab_merge_fn): Likewise.
3498         (lto_symtab_prevailing_decl): Adjust.
3499         (lto_cgraph_replace_node): New function.
3500         (lto_symtab_merge_decls_2): Likewise.
3501         (lto_symtab_merge_decls_1): Likewise.
3502         (lto_symtab_fixup_var_decls): Likewise.
3503         (lto_symtab_resolve_symbols): Likewise.
3504         (lto_symtab_merge_decls): Likewise.
3505         (lto_symtab_prevailing_decl): Adjust.
3506         (lto_symtab_get_symtab_def): Remove.
3507         (lto_symtab_get_file_data): Likewise.
3508         (lto_symtab_clear_resolution): Adjust.
3509         (lto_symtab_clear_resolution): Likewise.
3510         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
3511         (input_cgraph_1): Likewise.
3512         * lto-streamer-in.c (get_resolution): Do not provide fake
3513         symbol resolutions here.
3514         (deferred_global_decls): Remove.
3515         (lto_register_deferred_decls_in_symtab): Likewise.
3516         (lto_register_var_decl_in_symtab): Change signature, register
3517         variable via lto_symtab_register_decl.
3518         (lto_register_function_decl_in_symtab): Likewise.
3519         (lto_read_tree): Adjust.
3520         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
3521         (lto_symtab_merge_var): Likewise.
3522         (lto_symtab_merge_fn): Likewise.
3523         (lto_symtab_register_decl): Declare.
3524         (lto_symtab_merge_decls): Likewise.
3525
3526 2009-10-05  Richard Guenther  <rguenther@suse.de>
3527
3528         PR tree-optimization/23821
3529         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
3530         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
3531         simple IV increments.
3532
3533 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3534
3535         * config/arm/arm.c (arm_override_options): Really initialize
3536         flag_dwarf2_cfi_asm to 0.
3537
3538 2009-10-05  Doug Kwan  <dougkwan@google.com>
3539
3540         PR rtl-optimization/41574
3541         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
3542         floating point and we are not doing unsafe math optimizations.
3543
3544 2009-10-03  Simon Baldwin  <simonb@google.com>
3545             Cary Coutant  <ccoutant@google.com>
3546             Rafael Espindola  <espindola@google.com>
3547             Richard Guenther  <rguenther@suse.de>
3548             Jan Hubicka  <jh@suse.cz>
3549             Doug Kwan <dougkwan@google.com>
3550             H.J. Lu  <hongjiu.lu@intel.com>
3551             Bill Maddox  <maddox@google.com>
3552             Ryan Mansfield  <rmansfield@qnx.com>
3553             Diego Novillo  <dnovillo@google.com>
3554             Ollie Wild  <aaw@google.com>
3555             Kenneth Zadeck <zadeck@naturalbridge.com>
3556
3557         * lto-cgraph.c: New file.
3558         * lto-compress.c: New file.
3559         * lto-compress.h: New file.
3560         * lto-opts.c: New file.
3561         * lto-section-in.c: New file.
3562         * lto-section-out.c: New file.
3563         * lto-streamer-in.c: New file.
3564         * lto-streamer-out.c: New file.
3565         * lto-streamer.c: New file.
3566         * lto-streamer.h: New file.
3567         * lto-symtab.c: New file.
3568         * lto-wpa-fixup.c: New file.
3569         * lto-wrapper.c: New file.
3570
3571 2009-10-03  Simon Baldwin  <baldwin@google.com>
3572             Ben Elliston  <bje@au.ibm.com>
3573             Rafael Espindola  <espindola@google.com>
3574             Nathan Froyd  <froydnj@codesourcery.com>
3575             Jan Hubicka  <jh@suse.cz>
3576             Doug Kwan  <dougkwan@google.com>
3577             Diego Novillo  <dnovillo@google.com>
3578             Kenneth Zadeck  <zadeck@naturalbridge.com>
3579
3580         * Makefile.in (enable_lto): New.
3581         (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
3582         (LINKER_PLUGIN_API_H): Define.
3583         (LTO_SYMTAB_H): Define.
3584         (LTO_STREAMER_H): Define.
3585         (TREE_VECTORIZER_H): Define.
3586         (INCLUDES): Add LIBELFINC.
3587         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
3588         lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
3589         lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
3590         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
3591         (native): Add lto-wrapper$(exeext)
3592         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
3593         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
3594         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
3595         (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
3596         (varasm.o): Add dependency on tree-iterator.h.
3597         (cgraph.o): Add dependency on cif-code.def.
3598         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
3599         (ipa-pure-const.o): Likewise.
3600         (GTFILES): Add lto-symtab.c.
3601         (install-lto-wrapper): New.
3602         * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
3603         and enable_lto.  If LIBELFLIBS is set, define HAVE_libelf.
3604         * config.in: Regenerate.
3605
3606 2009-10-03  Rafael Espindola  <espindola@google.com>
3607             Diego Novillo  <dnovillo@google.com>
3608
3609         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
3610         ipa_write_summaries.
3611         Call execute_ipa_summary_passes for all_regular_ipa_passes and
3612         all_lto_gen_passes.
3613         (cgraph_optimize): Make extern.
3614
3615 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
3616             Kenneth Zadeck <zadeck@naturalbridge.com>
3617
3618         * toplev.c (in_lto_p): Declare.
3619         * collect2.c (scan_prog_file): Read all the output when reading
3620         information for LTO.
3621         (enum lto_mode_d): Declare.
3622
3623 2009-10-03  Richard Guenther  <rguenther@suse.de>
3624             Diego Novillo  <dnovillo@google.com>
3625
3626         * gimple.c: Include target.h and alias.h.
3627         (gimple_types): Declare.
3628         (type_hash_cache): Declare.
3629         (gimple_alloc_stat): Make extern.
3630         (gimple_build_eh_must_not_throw): Call
3631         gimple_eh_must_not_throw_set_fndecl.
3632         (struct type_pair_d): Declare.
3633         (type_pair_t): Declare.
3634         (type_pair_hash): New.
3635         (type_pair_eq): New.
3636         (lookup_type_pair): New.
3637         (gimple_force_type_merge): New.
3638         (compare_type_names_p): New.
3639         (compare_field_offset): New.
3640         (gimple_types_compatible_p): New.
3641         (struct sccs): Declare.
3642         (next_dfs_num): Declare.
3643         (iterative_hash_gimple_type): New.
3644         (visit): New.
3645         (iterative_hash_type_name): New.
3646         (iterative_hash_gimple_type): New.
3647         (gimple_type_hash): New.
3648         (gimple_type_eq): New.
3649         (gimple_register_type): New.
3650         (print_gimple_types_stats): New.
3651         (gimple_signed_or_unsigned_type): New.
3652         (gimple_unsigned_type): New.
3653         (gimple_signed_type): New.
3654         (gimple_get_alias_set): New.
3655         (gimple_decl_printable_name): Do not use DMGL_TYPES.
3656         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
3657         (gimple_force_type_merge): Declare.
3658         (gimple_types_compatible_p): Declare.
3659         (gimple_register_type): Declare.
3660         (print_gimple_types_stats): Declare.
3661         (gimple_unsigned_type): Declare.
3662         (gimple_signed_type): Declare.
3663         (gimple_get_alias_set): Declare.
3664         (gimple_eh_must_not_throw_set_fndecl): New.
3665
3666 2009-10-03  Jan Hubicka  <jh@suse.cz>
3667             Kenneth Zadeck <zadeck@naturalbridge.com>
3668
3669         * ipa-pure-const.c: Include lto-streamer.h.
3670         (register_hooks): Factor out of ...
3671         (generate_summary): ... here.
3672         (pure_const_write_summary): New.
3673         (pure_const_read_summary): New.
3674         (pass_ipa_pure_const): Add pure_const_write_summary and
3675         pure_const_read_summary.
3676         * ipa-reference.c: Include lto-streamer.h.
3677         (add_new_function): New.
3678         (remove_node_data): New.
3679         (duplicate_node_data): New.
3680         (ipa_init): Guard against multiple calls.
3681         Move hook setup from analyze_function.
3682         (write_node_summary_p): New.
3683         (ipa_reference_write_summary): New.
3684         (ipa_reference_read_summary): New.
3685         (pass_ipa_reference): Add ipa_reference_write_summary and
3686         ipa_reference_read_summary.
3687         * cgraph.h (cgraph_local_info): Add field lto_file_data.
3688         (struct cgraph_edge): Add fields lto_stmt_uid and
3689         call_stmt_cannot_inline_p.
3690         (cgraph_optimize): Declare.
3691         (cgraph_decide_is_function_needed): Declare.
3692         (reset_inline_failed): Declare.
3693         (enum LTO_cgraph_tags): Declare.
3694         (LTO_cgraph_tag_names): Declare.
3695         (LCC_NOT_FOUND): Define.
3696
3697 2009-10-03  Doug Kwan  <dougkwan@google.com>
3698             Rafael Espindola  <espindola@google.com>
3699             Jan Hubicka  <jh@suse.cz>
3700             Diego Novillo  <dnovillo@google.com>
3701             Kenneth Zadeck  <zadeck@naturalbridge.com>
3702
3703         * passes.c (all_regular_ipa_passes): New.
3704         (all_ipa_passes): Rename to all_small_ipa_passes.
3705         (init_optimization_passes): Init all_regular_ipa_passes.
3706         * tree-pass.h (all_regular_ipa_passes): New.
3707         (all_ipa_passes): Rename to all_small_ipa_passes.
3708         * passes.c (all_lto_gen_passes): New.
3709         (init_optimization_passes): Initialize all_lto_gen_passes.
3710         (execute_ipa_summary_passes): Make non-static.
3711         (ipa_write_summaries_1): New.
3712         (ipa_write_summaries_2): New.
3713         (ipa_write_summaries): New.
3714         (ipa_write_summaries_of_cgraph_node_set): New.
3715         (ipa_read_summaries_1): New.
3716         (ipa_read_summaries): New.
3717         (execute_ipa_pass_list): Call cgraph_process_new_functions.
3718         (execute_regular_ipa_pass_list): Remove.
3719         (init_optimization_passes): Schedule
3720         pass_rebuild_cgraph_edges and pass_early_inline outside
3721         of pass_all_early_optimizations.  Document reason.
3722         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
3723         pass_ipa_lto_finish_out): New pass.
3724         (pass_ipa_summary_passes): Start and stop timers if the pass has them.
3725         (execute_all_ipa_transforms): New.
3726         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
3727         (dump_properties, debug_properties): New.
3728         * tree-optimize.c (gate_all_early_local_passes): Return
3729         false if we are in lto1.
3730         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
3731         * tree-pass.h (execute_all_ipa_transforms): Declare.
3732         (pass_ipa_function_and_variable_visibility): Declare.
3733         (pass_ipa_early_inline): Declare.
3734         (pass_ipa_lto_gimple_out): Declare.
3735         (pass_ipa_lto_wpa_fixup): Declare.
3736         (pass_ipa_lto_finish_out): Declare.
3737         (all_small_ipa_passes, all_regular_ipa_passes,
3738         all_lto_gen_passes): Declare.
3739         (execute_ipa_summary_passes): Declare.
3740         (execute_all_ipa_transforms): Declare.
3741         (ipa_write_summaries): Declare
3742         (ipa_write_summaries_of_cgraph_node_set): Declare.
3743         (ipa_read_summaries): Declare.
3744
3745 2009-10-03  Doug Kwan  <dougkwan@google.com>
3746             Ollie Wild  <aaw@google.com>
3747
3748         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
3749
3750         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
3751         (lto_mode): New variable.
3752         (maybe_run_lto_and_relink): Handle the -fwpa option.
3753         (main): Handle the -fwpa option.
3754         (maybe_unlink_list): New function.
3755         * gcc.c (link_lto_options): Replace -flto with -fwpa.
3756         * common.opt (flto): New flag.
3757         * toplev.c (flag_generate_lto): Declare.
3758
3759 2009-10-03  Simon Baldwin  <simonb@google.com>
3760
3761         * common.opt (flto-compression-level): New flag.
3762
3763         * opts.c: Include lto-opts.h.
3764         (handle_option): Call lto_register_user_option for each
3765         valid option handled.
3766         (decode_options): Clear registered options before the options
3767         handling loop.
3768
3769 2009-10-03  Cary Coutant  <ccoutant@google.com>
3770
3771         * collect2.c (is_elf): New function.
3772         (scan_prog_file): Require LTO object to be in ELF format.
3773
3774 2009-10-03  Rafael Espindola  <espindola@google.com>
3775
3776         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
3777         libgcc to the linker.
3778
3779         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
3780
3781         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
3782         (collect_execute): Add flags argument. Pass flags to pex_run. Update
3783         all callers.
3784         * collect2.h (collect_execute): Add flags argument.
3785         * tlink.c (tlink_execute): Update call to collect_execute.
3786         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
3787         (use_linker_plugin): New.
3788         (use_linker_plugin_spec_function): New.
3789         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
3790         (linker_plugin_file_spec): New.
3791         (lto_wrapper_spec): New.
3792         (lto_gcc_spec): New.
3793         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
3794         (static_spec_functions): Add use-linker-plugin.
3795         (process_command): Handle -use-linker-plugin.
3796         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
3797         linker_plugin_file_spec and lto_gcc_spec.
3798         (use_linker_plugin_spec_function): New.
3799
3800 2009-10-03  Richard Guenther  <rguenther@suse.de>
3801
3802         PR lto/41547
3803         PR lto/41548
3804         * tree.h (is_lang_specific): Include LANG_TYPE.
3805         * tree.c (find_decls_types_r): Manually add interesting parts
3806         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
3807
3808         * gimple.c (type_pair_hash): Make symmetric.
3809         (type_pair_eq): Likewise.
3810         (lookup_type_pair): Increase initial hashtable size.
3811         (gimple_force_type_merge): Rely on type-pair symmetry.
3812         (visit): Remove excessive checking code.
3813         (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
3814         (gimple_register_type): Remove getenv calls, shrink initial
3815         hashtable size.
3816
3817         PR middle-end/41502
3818         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
3819         inline functions if not generating lto output.
3820
3821         PR lto/41379
3822         * toplev.c (finalize): In WPA mode remove the asm file.
3823
3824 2009-10-03  Doug Kwan  <dougkwan@google.com>
3825
3826         * ipa-inline.c (cgraph_mark_inline): Check
3827         edge->call_stmt_cannot_inline_p instead of calling
3828         gimple_call_cannot_inline_p.
3829         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
3830         (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
3831         (inline_generate_summary): Do nothing in LTRANS.
3832         * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
3833         exists before calling gimple_call_cannot_inline_p.
3834         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
3835         (cgraph_clone_edge): Add argument STMT_UID.  Modify all callers.
3836         Update new_edge->lto_stmt_uid.
3837         * cgraphbuild.c (reset_inline_failed): New.
3838
3839         * common.opt (fwpa): New flag.
3840         (fltrans): New option.
3841         * gcc.c (gcc_lto_option_t): New type.
3842         (current_lto_option): New variable.
3843         (lto_single_spec_function): Remove and is replaced by ..
3844         (lto_option_spec_function): New function.
3845         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
3846         passing the -flto flag.
3847         (cc1_options): Separate non-LTO related parts into ..
3848         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
3849         (lto1_options): New spec for lto FE.
3850         (link_lto_options): New spec for handling LTO flags in linker.
3851         (invoke_lto_single): Re-format to fit in 80 column.  Replace
3852         lto-single with lto-option.
3853         (static_specs): Add cc1_non_lto_options, lto1_options and
3854         link_lto_options.
3855         (static_spec_function): Replace lto-single with lto-option.
3856         (process_command): Handle -flto, -fwpa and -fltran by setting
3857         current_lto_option and not passing it to subprocess unconditionally.
3858
3859 2009-10-03  Bill Maddox  <maddox@google.com>
3860
3861         Add `gcc' driver support for link-time code generation (LTO).
3862
3863         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
3864         (lto_flag, lto_objects, lto_o_file): New variables.
3865         (struct lto_object, struct lto_object_list): New structures.
3866         (collect_exit, handler): Remove LTO temporary output file on exit.
3867         (add_lto_object): New function.
3868         (maybe_run_lto_and_relink): New function. Perform link time code
3869         generation and relinking for object files containing LTO information.
3870         (main): Invoke maybe_run_lto_and_relink().
3871         (dump_argv): New function.  For debugging, currently disabled.
3872         (scan_prog_file): Add LTO information pass.
3873         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
3874         collect2.
3875         * toplev.c (compile_file): Emit assembler directive to create
3876         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
3877
3878 2009-10-03  Diego Novillo  <dnovillo@google.com>
3879
3880         * c.opt: Add LTO to warn_abi and warn_psabi.
3881
3882         * tree.c (fld_worklist_push): Rename from PUSH.  Convert to static
3883         inline function.  Ignore language-specific nodes.  Update all users.
3884         (find_decls_types_r): Do not traverse the subtrees of
3885         language-specific nodes.  Do not traverse DECL_INITIAL for TYPE_DECLs.
3886         * tree.h (is_lang_specific): New.
3887         * langhooks.h (struct lang_hooks_for_decls): Remove
3888         may_need_assembler_name_p.  Update all users.
3889
3890         * c-common.c (set_builtin_user_assembler_name): Move ...
3891         * builtins.c (set_builtin_user_assembler_name): ... here.
3892         (is_builtin_name): Add comment
3893         (is_builtin_fn): New.
3894         * except.c (output_ttype): Only call
3895         lookup_type_for_runtime if TYPE is not a runtime type.
3896
3897         * passes.c (register_pass): Call position_pass on
3898         all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
3899         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
3900         (TV_IPA_LTO_DECL_IO): Define.
3901         (TV_IPA_LTO_CGRAPH_IO): Define.
3902         (TV_LTO): Define.
3903         (TV_WHOPR_WPA): Define.
3904         (TV_WHOPR_WPA_IO): Define.
3905         (TV_WHOPR_LTRANS): Define.
3906         (TV_WHOPR_WPA_FIXUP): Define.
3907         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
3908         * tree-cfg.c (tree_node_can_be_shared): Make extern.
3909         * tree-flow.h (tree_node_can_be_shared): Declare.
3910         * tree-inline.c (tree_can_inline_p): Check that E has a
3911         statement associated with it.
3912         * tree.c (free_lang_data_in_binf): Factor out of ...
3913         (free_lang_data_in_type): ... here.
3914         Call RECORD_OR_UNION_TYPE_P.
3915         (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
3916         set.  Call lang_hooks.decls.may_need_assembler_name_p if set.
3917         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
3918         (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE.  Set
3919         write_symbols to NO_DEBUG.  Set debug_hooks to do_nothing_debug_hooks.
3920         (gate_free_lang_data): Return true if flag_generate_lto is set.
3921         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
3922         * c-common.h (set_builtin_user_assembler_name): Move ...
3923         * tree.h (set_builtin_user_assembler_name): ... here.
3924
3925         * common.opt (flto-report): New flag.
3926         * opts.c (complain_wrong_lang): Do not complain if running lto1.
3927         * collect2.c (scan_prog_file): Send the error output of
3928         'nm' to HOST_BIT_BUCKET.
3929
3930 2009-10-03  Ollie Wild  <aaw@google.com>
3931
3932         * langhooks-def.h (lhd_begin_section): New function declaration.
3933         (lhd_write_section): New function declaration.
3934         (lhd_end_section): New function declaration.
3935         (LANG_HOOKS_BEGIN_SECTION): New macro.
3936         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
3937         (LANG_HOOKS_END_SECTION): New macro.
3938         (LANG_HOOKS_LTO): New macro.
3939         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
3940         * langhooks.c (output.h): Add include.
3941         (saved_section): New static variable.
3942         (lhd_begin_section): New function.
3943         (lhd_write_section_data): New function.
3944         (lhd_end_section): New function.
3945         * langhooks.h (struct lang_hooks_for_lto): New structure.
3946         (struct lang_hooks): Add member lto.
3947         * Makefile.in (langhooks.o): Add dependency on output.h.
3948
3949         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
3950
3951 2009-10-03  Richard Guenther  <rguenther@suse.de>
3952
3953         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3954         Handle LTO.
3955
3956 2009-10-03  Simon Baldwin  <simonb@google.com>
3957             Richard Guenther  <rguenther@suse.de>
3958             Janis Johnson  <janis187@us.ibm.com>
3959             Doug Kwan  <dougkwan@google.com>
3960             Diego Novillo  <dnovillo@google.com>
3961             Ramana Radhakrishnan  <ramana.r@gmail.com>
3962             Ollie Wild  <aaw@google.com>
3963
3964         * doc/install.texi: Add documentation for libelf and --enable-lto.
3965         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
3966         -flto-report, -flto-compression-level and -use-linker-plugin.
3967         * doc/sourcebuild.texi: Document use of zlib.  Document lto-plugin.
3968         Add section for LTO Testing.
3969
3970 2009-10-02  Cary Coutant  <ccoutant@google.com>
3971
3972         Add support for comdat type sections for DWARF v4.
3973         Merge from dwarf4 branch.
3974
3975         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
3976         (dw_die_ref): Define vector type.
3977         (enum dw_val_class): Add dw_val_class_data8.
3978         (struct dw_val_struct): Add v.val_data8.
3979         (comdat_type_node_ref): New type.
3980         (struct die_struct): Move die_symbol into a union; add new field
3981         die_type_node.  Change all uses.
3982         (comdat_type_node): New type.
3983         (skeleton_chain_node): New type.
3984         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
3985         (comdat_type_list): New variable.
3986         (dwarf_tag_name): Add DW_TAG_type_unit.
3987         (dwarf_attr_name): Add DW_AT_signature.
3988         (add_AT_data8): New function.
3989         (replace_child): New function.
3990         (move_all_children): New function.
3991         (print_signature): New function.
3992         (print_die): Print signature information; add dw_val_class_data8.
3993         (attr_checksum): Support dw_val_class_data8.
3994         (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
3995         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
3996         (checksum_sleb128, checksum_uleb128): New functions.
3997         (checksum_die_context): New function.
3998         (loc_checksum_ordered): New function.
3999         (attr_checksum_ordered): New function.
4000         (struct checksum_attributes): New structure.
4001         (collect_checksum_attributes): New function.
4002         (die_checksum_ordered): New function.
4003         (generate_type_signature): New function.
4004         (same_dw_val_p): Add dw_val_class_data8.
4005         (is_symbol_die): Use new is_declaration_die function.
4006         (is_declaration_die): New function.
4007         (should_move_die_to_comdat): New function.
4008         (clone_die): New function.
4009         (clone_tree): New function.
4010         (clone_as_declaration): New function.
4011         (copy_declaration_context): New function.
4012         (generate_skeleton_ancestor_tree): New function.
4013         (generate_skeleton_bottom_up): New function.
4014         (generate_skeleton): New function.
4015         (remove_child_or_replace_with_skeleton): New function.
4016         (break_out_comdat_types): New function.
4017         (struct decl_table_entry): New type.
4018         (htab_decl_hash): New function.
4019         (htab_decl_eq): New function.
4020         (htab_decl_del): New function.
4021         (copy_ancestor_tree): New function.
4022         (copy_decls_walk): New function.
4023         (copy_decls_for_unworthy_types): New function.
4024         (build_abbrev_table): Don't assert on missing die_symbol when doing
4025         comdat type sections.
4026         (size_of_die): Use DW_FORM_sig8 for external references.  Add
4027         dw_val_class_data8.
4028         (unmark_dies): Don't assert for unmarked dies when doing comdat
4029         type sections.
4030         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
4031         (output_signature): New function.
4032         (output_die): Likewise.
4033         (output_compilation_unit_header): Mark output as DWARF version 3
4034         even if generating DWARF 4.
4035         (output_comdat_type_unit): New function.
4036         (output_line_info): Mark output as DWARF version 3 even if generating
4037         DWARF 4.
4038         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
4039         DWARF-4.
4040         (dwarf2out_end_source_file): Likewise.
4041         (prune_unused_types_walk_attribs): Don't follow references into
4042         comdat type sections.
4043         (prune_unused_types_mark): When generating type units, do not mark
4044         children of non-defining declarations of types; do mark children of
4045         type entries.
4046         (prune_unused_types): Process comdat type sections.
4047         (htab_ct_hash): New function.
4048         (htab_ct_eq): New function.
4049         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
4050         Add a pointer to the line table from type unit entries so
4051         DW_AT_decl_file has meaning.
4052         * varasm.c (default_elf_asm_named_section): Use identifier name as
4053         comdat key instead of lang hook.
4054
4055 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
4056
4057         * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
4058
4059 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
4060
4061         * config/i386/i386.md (SWIM248): New mode iterator.
4062         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
4063         divmodhi4 patterns using SWIM248 macro.
4064         (*divmod<mode>4): Macroize insn_and_split pattern from
4065         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
4066         and their corresponding splitters usign SWIM248 macro.  Split SImode
4067         insn to generate cltd and DImode insn to generate cqto instead of
4068         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
4069         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
4070         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
4071         *divmodsi_noext patterns using SWIM248 macro.
4072         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
4073         udivmodhi4 patterns using SWIM248 macro.
4074         (*udivmod<mode>4): Macroize insn_and_split pattern from
4075         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
4076         corresponding splitters using SWIM248 macro.
4077         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
4078         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
4079
4080 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
4081
4082         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
4083         of zero-sized element is zero-sized regardless of its extent.
4084
4085 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
4086
4087         PR debug/40521
4088         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
4089         * configure: Regenerated.
4090         * config.in: Regenerated.
4091         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
4092         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
4093         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
4094         not emitting .eh_frame, emit .cfi_sections .debug_frame
4095         directive.
4096
4097         PR debug/41404
4098         PR debug/41353
4099         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
4100         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
4101         with '\0'.
4102         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
4103         vars use DECL_RTL with resetting it back to NULL afterwards.
4104         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
4105         rtx_equal_p instead of asserting it is a SYMBOL_REF.
4106         (value_format): For dw_val_class_addr only use DW_FORM_addr if
4107         the attribute type allows it, otherwise use DW_FORM_dataN.
4108         (mem_loc_descriptor): Handle CONST_STRING.
4109         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
4110         Handle MEM with CONST_STRING address using add_AT_string.
4111         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
4112         CONST_STRING for const arrays initialized with a string literal.
4113         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
4114         (dwarf2out_finish): Call resolve_addr.
4115
4116 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
4117             Maxim Kuvyrkov  <maxim@codesourcery.com>
4118
4119         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
4120
4121 2009-10-02  Nick Clifton  <nickc@redhat.com>
4122
4123         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
4124         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
4125
4126 2009-10-01  Jan Hubicka  <jh@suse.cz>
4127
4128         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
4129         (cgraph_create_virtual_clone): Just pass redirect_callers
4130         around.
4131         * cgraph.h (cgraph_clone_node): Update prototype.
4132         * ipa-pure-const.c (self_recursive_p): New function.
4133         (propagate): Use it.
4134         * ipa-inline.c (cgraph_clone_inlined_nodes,
4135         cgraph_decide_recursive_inlining): Update.
4136
4137 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
4138
4139         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
4140         instructions for TARGET_OCTEON.
4141
4142 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4143
4144         * config/arm/arm.c (arm_override_options): Turn off
4145         flag_dwarf2_cfi_asm for AAPCS variants.
4146
4147 2009-10-01  Martin Jambor  <mjambor@suse.cz>
4148
4149         PR middle-end/12392
4150         * tree-sra.c (convert_callers): Do not call
4151         compute_inline_parameters on one caller more than once.
4152
4153 2009-10-01  Nick Clifton  <nickc@redhat.com>
4154
4155         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
4156         an empty string if not already defined.
4157
4158 2009-10-01  Martin Jambor  <mjambor@suse.cz>
4159
4160         PR bootstrap/41395
4161         * tree-sra.c (is_va_list_type): New function.
4162         (find_var_candidates): Call is_va_list_type.
4163         (find_param_candidates): Check that the type or the type pointed
4164         to are not va_list types.
4165
4166 2009-10-01  Martin Jambor  <mjambor@suse.cz>
4167
4168         PR c++/41503
4169         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
4170         DECL_ARTIFICIAL (param_decl) is true.
4171
4172 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
4173
4174         * tree.h (tree_decl_common::lang_flag_8): New.
4175         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
4176         keyword.
4177         * c-common.h (RID_CONSTEXPR): New.
4178
4179 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
4180
4181         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
4182         Use ref-all pointers.
4183         (alpha_gimplify_va_arg): Ditto.
4184
4185 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
4186
4187         PR target/41279
4188         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
4189         before insn counting loop now that BB_END (bb) is counted.  Ensure
4190         the return value isn't zero.
4191
4192 2009-09-30  Nick Clifton  <nickc@redhat.com>
4193
4194         * config.gcc (sh-symbianelf): Replace definition of extra_objs
4195         with separate definitions of c_target_objs and cxx_target_objs.
4196         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
4197         and symbian-base.o.
4198         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
4199         sh_symbian_import_export_class.
4200         * config/sh/sh-protos.h: Fix names of exported symbian functions.
4201         * config/sh/symbian.c: Delete, moving code into...
4202         * config/sh/symbian-base.c: ... here
4203         * config/sh/symbian-c.c: ... and here
4204         * config/sh/symbian-cxx.c: ... and here.
4205
4206 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
4207
4208         PR target/22093
4209         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
4210         of plus RTX into register.
4211
4212 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4213
4214         * doc/install.texi: Linguistic and markup fixes.
4215         (Configuration) <--disable-cpp>: Remove description.
4216         <--enable-maintainer-mode>: Autotools files are affected, too.
4217         <--with-sysroot>: Improve description.
4218         (Building): Bump required GNU make version.
4219
4220 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
4221
4222         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
4223         (x86_64-*-*): Ditto.
4224
4225         * config/i386/fma4intrin.h: New file, provide common x86 compiler
4226         intrinisics for FMA4.
4227         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
4228         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
4229         Add FMA4 check and fma4intrin.h.
4230         * config/i386/i386-c.c(ix86_target_macros_internal): Check
4231         ISA_FLAG for FMA4.
4232         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
4233         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
4234         constant for FMA4 support.
4235         (UNSPEC_FMA4_FMADDSUB): Ditto.
4236         (UNSPEC_FMA4_FMSUBADD): Ditto.
4237         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
4238         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
4239         (ix86_expand_fma4_multiple_memory): Ditto.
4240         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
4241         (OPTION_MASK_ISA_FMA4_UNSET): New.
4242         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
4243         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
4244         (ix86_handle_option): Handle -mfma4.
4245         (isa_opts): Handle -mfma4.
4246         (enum pta_flags): Add PTA_FMA4.
4247         (override_options): Add FMA4 support.
4248         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
4249         (IX86_BUILTIN_VFMADDSD): Ditto.
4250         (IX86_BUILTIN_VFMADDPS): Ditto.
4251         (IX86_BUILTIN_VFMADDPD): Ditto.
4252         (IX86_BUILTIN_VFMSUBSS): Ditto.
4253         (IX86_BUILTIN_VFMSUBSD): Ditto.
4254         (IX86_BUILTIN_VFMSUBPS): Ditto.
4255         (IX86_BUILTIN_VFMSUBPD): Ditto.
4256         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
4257         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
4258         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
4259         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
4260         (IX86_BUILTIN_VFNMADDSS): Ditto.
4261         (IX86_BUILTIN_VFNMADDSD): Ditto.
4262         (IX86_BUILTIN_VFNMADDPS): Ditto.
4263         (IX86_BUILTIN_VFNMADDPD): Ditto.
4264         (IX86_BUILTIN_VFNMSUBSS): Ditto.
4265         (IX86_BUILTIN_VFNMSUBSD): Ditto.
4266         (IX86_BUILTIN_VFNMSUBPS): Ditto.
4267         (IX86_BUILTIN_VFNMSUBPD): Ditto.
4268         (IX86_BUILTIN_VFMADDPS256): Ditto.
4269         (IX86_BUILTIN_VFMADDPD256): Ditto.
4270         (IX86_BUILTIN_VFMSUBPS256): Ditto.
4271         (IX86_BUILTIN_VFMSUBPD256): Ditto.
4272         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
4273         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
4274         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
4275         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
4276         (IX86_BUILTIN_VFNMADDPS256): Ditto.
4277         (IX86_BUILTIN_VFNMADDPD256): Ditto.
4278         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
4279         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
4280         (enum multi_arg_type): New enum for describing the various FMA4
4281         intrinsic argument types.
4282         (bdesc_multi_arg): New table for FMA4 intrinsics.
4283         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
4284         (ix86_expand_multi_arg_builtin): New function for creating FMA4
4285         intrinsics.
4286         (ix86_expand_builtin): Add FMA4 intrinsic support.
4287         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
4288         operand instructions.
4289         (ix86_expand_fma4_multiple_memory): New function to split the
4290         second memory reference from FMA4 instructions.
4291         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
4292         (ssemodesuffixf2s): Ditto.
4293         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
4294         instructions.
4295         (fma4_fmsub<mode>4): Ditto.
4296         (fma4_fnmadd<mode>4): Ditto.
4297         (fma4_fnmsub<mode>4): Ditto.
4298         (fma4_vmfmadd<mode>4): Ditto.
4299         (fma4_vmfmsub<mode>4): Ditto.
4300         (fma4_vmfnmadd<mode>4): Ditto.
4301         (fma4_vmfnmsub<mode>4): Ditto.
4302         (fma4_fmadd<mode>4256): Ditto.
4303         (fma4_fmsub<mode>4256): Ditto.
4304         (fma4_fnmadd<mode>4256): Ditto.
4305         (fma4_fnmsub<mode>4256): Ditto.
4306         (fma4_fmaddsubv8sf4): Ditto.
4307         (fma4_fmaddsubv4sf4): Ditto.
4308         (fma4_fmaddsubv4df4): Ditto.
4309         (fma4_fmaddsubv2df4): Ditto.
4310         (fma4_fmsubaddv8sf4): Ditto.
4311         (fma4_fmsubaddv4sf4): Ditto.
4312         (fma4_fmsubaddv4df4): Ditto.
4313         (fma4_fmsubaddv2df4): Ditto.
4314         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
4315         instructions for intrinsics.
4316         (fma4i_fmsub<mode>4): Ditto.
4317         (fma4i_fnmadd<mode>4): Ditto.
4318         (fma4i_fnmsub<mode>4): Ditto.
4319         (fma4i_vmfmadd<mode>4): Ditto.
4320         (fma4i_vmfmsub<mode>4): Ditto.
4321         (fma4i_vmfnmadd<mode>4): Ditto.
4322         (fma4i_vmfnmsub<mode>4): Ditto.
4323         (fma4i_fmadd<mode>4256): Ditto.
4324         (fma4i_fmsub<mode>4256): Ditto.
4325         (fma4i_fnmadd<mode>4256): Ditto.
4326         (fma4i_fnmsub<mode>4256): Ditto.
4327         (fma4i_fmaddsubv8sf4): Ditto.
4328         (fma4i_fmaddsubv4sf4): Ditto.
4329         (fma4i_fmaddsubv4df4): Ditto.
4330         (fma4i_fmaddsubv2df4): Ditto.
4331         (fma4i_fmsubaddv8sf4): Ditto.
4332         (fma4i_fmsubaddv4sf4): Ditto.
4333         (fma4i_fmsubaddv4df4): Ditto.
4334         (fma4i_fmsubaddv2df4): Ditto.
4335
4336         * doc/invoke.texi (-mfma4): Add documentation.
4337         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
4338
4339 2009-09-29  Richard Henderson  <rth@redhat.com>
4340
4341         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
4342         an edge to the new destination block.
4343
4344 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4345
4346         PR target/41393
4347         * pa.c (hppa_profile_hook): Use
4348         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
4349
4350 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
4351             Alexander Monakov  <amonakov@ispras.ru>
4352
4353         PR target/41365
4354         * config/ia64/predicates.md (not_postinc_destination_operand): New.
4355         (not_postinc_memory_operand): New.
4356         (not_postinc_move_operand): New.
4357         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
4358         (*cmovsi_internal): Ditto.
4359
4360 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
4361
4362         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
4363         restrict issue_rate in first pass when scheduling for register
4364         pressure.
4365
4366 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
4367             Rafael Avila de Espindola  <espindola@google.com>
4368
4369         * gengtype.c (plugin_output): New.
4370         (get_output_file_with_visibility): Return plugin_output for plugins.
4371         (main): Parse and use the -P option.
4372         * gty.texi: Update the command line format.
4373
4374 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
4375
4376         PR debug/41438
4377         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
4378         functions.
4379         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
4380         out if !const_ok_for_output.
4381
4382         PR debug/41474
4383         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
4384         case VAR_LOCATION>: Remove gcc_unreachable ().
4385
4386 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
4387
4388         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
4389         (x86_64-*-*): Ditto.
4390         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
4391         back to smmintrin.h.
4392         * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
4393         * config/i386/x86intrin.h: Remove SSE5.
4394         * config/i386/mmintrin-common.h: Delete file.
4395         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
4396
4397 2009-09-29  Richard Guenther  <rguenther@suse.de>
4398
4399         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
4400         resulting from stack temporaries on STRICT_ALIGNMENT targets.
4401
4402 2009-09-29  Nick Clifton  <nickc@redhat.com>
4403
4404         * function.c (current_function_name): If there is no current
4405         function just return "<none>".
4406
4407 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
4408
4409         * tree-pass.h (register_pass_info): New structure.
4410         (pass_positioning_ops): Move enum from gcc-plugin.h.
4411         (register_pass): New function.
4412         * gcc-plugin.h (plugin_pass): Delete structure.
4413         (pass_positioning_ops): Delete enum.
4414         * plugin.c (regsiter_pass): Delete function.
4415         (position_pass): Delete function.
4416         (added_pass_nodes): Delete variable.
4417         (prev_added_pass_nodes): Delete variable.
4418         (pass_list_node): Delete structure.
4419         * passes.c (make_pass_instance): New function.
4420         (next_pass_1): Change to call make_pass_instance.
4421         (pass_list_node): Move structure from gcc-plugin.h.
4422         (added_pass_nodes): Move variable from plugin.c.
4423         (prev_added_pass_nodes): Move variable from plugin.c.
4424         (position_pass): New function.
4425         (register_pass): New function.
4426
4427 2009-09-28  Easwaran Raman  <eraman@google.com>
4428
4429         * ifcvt.c (noce_try_abs): Recognize pattern and call
4430         expand_one_cmpl_abs_nojump.
4431         * optabs.c (expand_one_cmpl_abs_nojump): New function.
4432         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
4433
4434 2009-09-28  Ian Lance Taylor  <iant@google.com>
4435
4436         PR middle-end/40500
4437         * c-opts.c (c_common_handle_option): Don't set
4438         warn_jump_misses_init for -Wall.
4439         * doc/invoke.texi (Warning Options): Update documentation.
4440
4441 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4442
4443         * Makefile.in ($(out_object_file)): Depend on
4444         gt-$(basename $(notdir $(out_file))).h.
4445
4446 2009-09-28  Richard Henderson  <rth@redhat.com>
4447
4448         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
4449         * except.c (gen_eh_region): Set it.
4450         (duplicate_eh_regions_1): Copy it.
4451         * tree-eh.c (lower_resx): Use it to determine which function
4452         to call to resume.
4453
4454         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
4455         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
4456         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
4457         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
4458         BUILT_IN_CXA_END_CLEANUP if necessary.
4459
4460         * c-common.c (c_define_builtins): Update call to
4461         build_common_builtin_nodes.
4462
4463 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4464
4465         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
4466
4467 2009-09-28  Michael Matz  <matz@suse.de>
4468
4469         * builtins.c (interclass_mathfn_icode): New helper.
4470         (expand_builtin_interclass_mathfn): Use it here, and split folding
4471         into ...
4472         (fold_builtin_interclass_mathfn): ... this new folder.
4473         (build_call_nofold_loc): New static helper.
4474         (build_call_nofold): New wrapper macro for above.
4475         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
4476         (expand_builtin_pow): Ditto.
4477         (expand_builtin_memset_args): Ditto.
4478         (expand_builtin_printf): Ditto.
4479         (expand_builtin_fprintf): Ditto.
4480         (expand_builtin_sprintf): Ditto.
4481         (expand_builtin_memory_chk): Ditto.
4482         (expand_builtin_mempcpy_args): Ditto and don't call folders.
4483         (expand_builtin_stpcpy): Ditto.
4484         (expand_builtin_strcmp): Ditto.
4485         (expand_builtin_strncmp): Ditto.
4486         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
4487         (expand_builtin_strcpy_args): Don't call folders.
4488         (expand_builtin_memcmp): Ditto.
4489         (expand_builtin_strncpy): Ditto, and use target.
4490         (expand_builtin_memcpy): Ditto.
4491         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
4492         expand_builtin_strpbrk, expand_builtin_memmove,
4493         expand_builtin_memmove_args, expand_builtin_bcopy,
4494         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
4495         expand_builtin_strspn, expand_builtin_strcspn,
4496         expand_builtin_fputs): Remove these.
4497         (expand_builtin): Don't call the above, change calls to other
4498         expanders that changed prototype.
4499         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
4500         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
4501         fold_builtin_interclass_mathfn.
4502         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
4503         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
4504
4505         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
4506         * passes.c (init_optimization_passes): Move pass_fold_builtins
4507         after last phiopt pass.
4508         * tree-inline.c (fold_marked_statements): When folding builtins
4509         iterate over all instruction potentially generated.
4510         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
4511         earlier.
4512         (fold_gimple_call): Use it to always fold calls (into potentially
4513         multiple instructions).
4514         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
4515         calls into zero at this time.
4516         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
4517         statements generated by builtin folding.
4518
4519 2009-09-28  Nick Clifton  <nickc@redhat.com>
4520
4521         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
4522
4523 2009-09-28  Duncan Sands  <baldrick@free.fr>
4524
4525         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
4526         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
4527         (register_callback): Dispatch it.
4528         (invoke_plugin_callbacks): Incorporate in sanity check.
4529         * ggc.h (ggc_register_cache_tab): Add declaration.
4530         * ggc-common.c (ggc_register_root_tab): Simplify.
4531         (const_ggc_cache_tab_t): New typedef.
4532         (extra_cache_vec): New vector of dynamically added cache tables.
4533         (ggc_register_cache_tab): New function.
4534         (ggc_scan_cache_tab): New function.
4535         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
4536         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
4537
4538 2009-09-27  Richard Henderson  <rth@redhat.com>
4539
4540         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
4541         which we remove __builtin_stack_restore.
4542
4543 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
4544
4545         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
4546         to test for GRD_INVARIANT.
4547         (simple_rhs_p): Anything that's function_invariant_p is fine.
4548
4549 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
4550
4551         * gengtype.c (main): Use plunge_files instead of plugin_output.
4552
4553 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
4554             Rafael Avila de Espindola  <espindola@google.com>
4555
4556         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
4557         Don't print pch related info if it is false.
4558         (main): Don't print pch info in plugin mode.
4559
4560 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
4561
4562         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
4563         with dw_val_class_const_double.
4564         (struct dw_val_struct): Replace val_long_long with val_double and
4565         adjust for above change.
4566         (output_loc_operands): Likewise.
4567         (add_AT_long_long): Rename into...
4568         (add_AT_double): ...this.
4569         (print_die): Replace dw_val_class_long_long with
4570         dw_val_class_const_double and adjust.
4571         (attr_checksum): Likewise.
4572         (same_dw_val_p): Likewise.
4573         (size_of_die): Likewise.
4574         (value_format): Likewise.
4575         (output_die): Likewise.
4576         (loc_descriptor) <CONST_DOUBLE>: Likewise.
4577         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
4578         instead of add_AT_long_long.
4579         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
4580         value with the precision of its type.
4581
4582 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
4583
4584         PR c/41476
4585         * c-typeck.c (build_conditional_expr): Use the readonly and
4586         volatile flags of the operand types, not of the operands itself.
4587
4588 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
4589
4590         * collect2.c (main): Look for -brtl before adding libraries.
4591
4592 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
4593
4594         * config.gcc: Update OpenBSD targets.
4595         * config/openbsd-stdint.h: New file.
4596         * config/openbsd-libpthread.h: New file.
4597         * config/openbsd.h: Update and break out LIB_SPEC definition.
4598         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
4599         * config/i386/openbsdelf.h: Correct types.
4600         * config/m68k/openbsd.h: Likewise.
4601         * config/mips/openbsd.h: Likewise.
4602         * config/vax/openbsd.h: Likewise.
4603
4604 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
4605
4606         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
4607         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
4608         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
4609         of the length and zero.
4610
4611 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4612
4613         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
4614         (FLAGS_H): Add options.h $(REAL_H).
4615         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
4616         (TREE_VECTORIZER_H): New.
4617         (EBITMAP_H): Renamed from EBIMAP_H.
4618         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
4619         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
4620         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
4621         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
4622         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
4623         (graphite-clast-to-gimple.o, graphite-dependences.o)
4624         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
4625         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
4626         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
4627         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
4628         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
4629         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
4630         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
4631         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
4632         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
4633         updated and fixed as per above changes and per
4634         check_makefile_deps.sh output.
4635
4636         PR bootstrap/40928
4637         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
4638         * configure: Regenerate.
4639
4640 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4641
4642         * doc/install.texi: Update minimum MPC version to 0.7.
4643
4644 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
4645
4646         * doc/install.texi (Binaries): Remove reference to the binary
4647         distribution CD-ROM from the FSF.
4648
4649 2009-09-26  Michael Matz  <matz@suse.de>
4650
4651         PR lto/40758
4652         PR middle-end/41470
4653         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
4654         that are mentioned in the body.
4655
4656 2009-09-26  Michael Matz  <matz@suse.de>
4657
4658         PR tree-optimization/41454
4659         * tree-ssa-dom (stmts_to_rescan): Remove variable.
4660         (tree_ssa_dominator_optimize): Don't allocate and free it.
4661         (dom_opt_leave_block): Don't iterate over it.
4662         (eliminate_redundant_computations): Don't return a value.
4663         (cprop_operand, cprop_into_stmt): Ditto.
4664         (optimize_stmt): Don't defer updating stmts.
4665
4666 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
4667
4668         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
4669         generic_parameter_die, template_parameter_pack_die,
4670         gen_formal_parameter_die, gen_subprogram_die): Adjust after
4671         renaming DW_TAG_formal_parameter_pack and
4672         DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
4673         and DW_TAG_GNU_template_parameter_pack.
4674
4675 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
4676
4677         * config/v850/v850.h (FUNCTION_VALUE): Remove.
4678         * config/v850/v850.c (v850_function_value): New function.
4679         (TARGET_FUNCTION_VALUE): Define.
4680
4681 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
4682
4683         * tree-vect-stmts.c (vectorizable_call): Call
4684         mark_symbols_for_renaming after vect_finish_stmt_generation.
4685
4686         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
4687         to loc_descriptor_from_tree.
4688         (add_location_or_const_value_attribute): Pass 0 instead of 2
4689         for decl_by_reference_p decls.
4690
4691 2009-09-25  Richard Guenther  <rguenther@suse.de>
4692
4693         PR middle-end/41463
4694         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
4695         arrays again.
4696
4697 2009-09-25  Ben Elliston  <bje@au.ibm.com>
4698
4699         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
4700         after `power7'.
4701
4702 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
4703
4704         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
4705         form of instruction.
4706
4707 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4708
4709         PR middle-end/41435
4710         * fold-const.c (const_binop): Handle complex int division.
4711         * tree-complex.c (expand_complex_div_straight,
4712         expand_complex_div_wide): Update comments.
4713
4714 2009-09-24  DJ Delorie  <dj@redhat.com>
4715
4716         PR target/41456
4717         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
4718         (reg_class): Likewise.
4719         (REG_CLASS_NAMES): Likewise.
4720         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
4721         (m32c_override_options): Disable -fivopts for M32C.
4722
4723 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4724
4725         * config/rs6000/predicates.md (indexed_or_indirect_operand):
4726         Delete VSX load/store with update support.
4727         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
4728         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
4729         (vsx_movti): Ditto.
4730         (VSX_U): Delete.
4731         (VSbit): Ditto.
4732         (VStype_load_update): Ditto.
4733         (VStype_store_update): Ditto.
4734         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
4735         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
4736
4737         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
4738         load/store with update builtins.
4739
4740 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
4741
4742         * libgcc2.c (L_trampoline): Prototype for getpagesize
4743         and mprotect in WINNT case.
4744
4745 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
4746
4747         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
4748         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
4749         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
4750         'outgoing' argument.
4751         (TARGET_FUNCTION_VALUE): Define.
4752
4753 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
4754
4755         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
4756
4757 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
4758
4759         PR bootstrap/41405
4760         * common.opt: Initialize dwarf_strict to -1.
4761         * toplev.c (process_options): Catch unset dwarf_strict
4762         and set to 0 for all targets not overriding.
4763         * config/darwin.c (darwin_override_options): Catch unset
4764         dwarf_strict and override to 1.
4765
4766 2009-09-24  Jeff Law  <law@redhat.com>
4767
4768         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
4769
4770 2009-09-24  Richard Guenther  <rguenther@suse.de>
4771
4772         PR tree-optimization/36143
4773         PR tree-optimization/38747
4774         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
4775         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
4776
4777 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
4778
4779         PR bootstrap/41457
4780         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
4781         return false instead of gcc_unreachable ().  For CONST return the
4782         value returned by recursive call instead of always returning true.
4783         (tree_add_const_value_attribute): Return the value returned by
4784         add_const_value_attribute instead of always returning true if rtl
4785         is non-NULL.
4786
4787 2009-09-23  Justin Seyster  <jrseys@gmail.com>
4788
4789         * Makefile.in (PLUGIN_HEADERS): Include real.h.
4790
4791 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
4792
4793         * cgraphunit.c (cgraph_lower_function): Revert last change.
4794         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
4795         instead of DECL_NO_STATIC_CHAIN.
4796         * tree-cfg.c (verify_gimple_call): Likewise.
4797         * tree-nested.c (get_chain_decl, get_chain_field,
4798         convert_tramp_reference_op, convert_gimple_call): Likewise.
4799         (convert_all_function_calls): Likewise.  Always set or clear
4800         DECL_STATIC_CHAIN initially, for !n->outer clear it.
4801         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
4802         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
4803         if nested.
4804         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
4805         DECL_NO_STATIC_CHAIN.
4806         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
4807         instead of DECL_NO_STATIC_CHAIN.
4808         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
4809         decl_function_context.
4810         * varasm.c (initializer_constant_valid_p): Likewise.
4811         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
4812         (DECL_STATIC_CHAIN): ... this.
4813         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
4814         instead of DECL_NO_STATIC_CHAIN.
4815
4816 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
4817             Rafael Avila de Espindola  <espindola@google.com>
4818
4819         * gengtype.c (nb_plugin_files): Make it unsigned to match
4820         num_gt_files. Adjust other variables to avoid warnings.
4821         (main): Allocate an all zero lang_bitmap before each plugin file name
4822         to match regular file names.
4823
4824 2009-09-23  Richard Henderson  <rth@redhat.com>
4825
4826         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
4827         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
4828         static chain passed in memory.
4829         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
4830         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
4831         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
4832         STATIC_CHAIN_REGNUM defined.
4833
4834         * config/picochip/picochip-protos.h: s/class/klass/.
4835         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
4836         (picochip_static_chain): New.
4837         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
4838         (STATIC_CHAIN_INCOMING): Remove.
4839
4840         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
4841         (xtensa_static_chain): New.
4842         * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
4843         (STATIC_CHAIN_INCOMING): Remove.
4844
4845 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
4846
4847         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
4848         * config/pa/pa-protos.h (function_value): Remove.
4849         * config/pa/pa.c (pa_function_value): Rename from function_value.
4850         Make static, add 'outgoing' argument.
4851         (TARGET_FUNCTION_VALUE): Define.
4852
4853 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
4854
4855         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
4856         instead of cfun->machine->is_leaf.
4857         * config/avr/avr.h (machine_function): Remove is_leaf field.
4858
4859 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
4860
4861         PR debug/41439
4862         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
4863         DW_OP_piece after DW_OP_stack_value, adjust size calculations
4864         for it, when DW_OP_stack_value and DW_OP_implicit_value has
4865         the same size, prefer DW_OP_stack_value.
4866         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
4867         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
4868
4869 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
4870
4871         PR debug/41353
4872         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
4873
4874 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
4875
4876         PR debug/41248
4877         * cfgexpand.c (convert_debug_memory_address): New.
4878         (expand_debug_expr): Convert base address and offset to the same
4879         mode.  Use it to convert addresses to other modes.  Accept
4880         ptr_mode addresses.
4881
4882 2009-09-23  Richard Guenther  <rguenther@suse.de>
4883
4884         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
4885         produced for bigendian targets with promoted subregs.
4886
4887 2009-09-23  Richard Guenther  <rguenther@suse.de>
4888
4889         * value-prof.c (gimple_ic): Purge old EH edges only after building
4890         the new ones.
4891
4892 2009-09-23  Nick Clifton  <nickc@redhat.com>
4893
4894         * config/arc/arc.c (arc_trampoline_init): Fix typo.
4895
4896 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
4897
4898         PR bootstrap/41405
4899         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
4900
4901         PR bootstrap/41436
4902         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
4903         on non-nested functions.
4904
4905 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
4906             Jan Hubicka  <jh@suse.cz>
4907
4908         * dwarf2out.c (loc_list_plus_const): Only define if
4909         DWARF2_DEBUGGING_INFO.
4910         (address_of_int_loc_descriptor): Likewise.
4911
4912         PR debug/41411
4913         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
4914
4915 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
4916
4917         PR c/39779
4918         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
4919         constant is more than zero.
4920
4921 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
4922
4923         PR target/40473
4924         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
4925         call final to emit non-scheduled prologue, instead insert at entry.
4926
4927 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
4928             Joseph S. Myers  <joseph@codesourcery.com>
4929
4930         * doc/install.texi (*-*-freebsd*): Add proper format codes.
4931
4932 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
4933             Rafael Avila de Espindola  <espindola@google.com>
4934
4935         * gengtype.c (is_file_equal): New function.
4936         (close_output_files): Use is_file_equal. Free of->buf.
4937
4938 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
4939             Rafael Avila de Espindola  <espindola@google.com>
4940
4941         * gengtype.c (write_types, write_local): Add the output_header
4942         argument. Update all callers.
4943
4944 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
4945
4946         * dwarf2out.c (template_parameter_pack_die,
4947         gen_formal_parameter_pack_die ): New functions.
4948         (make_ith_pack_parameter_name): Remove this function.
4949         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
4950         DW_TAG_formal_parameter_pack.
4951         (gen_generic_params_dies): Represent each template parameter pack
4952         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
4953         represented by usual DW_TAG_template_*_parameter DIEs that are
4954         children of the DW_TAG_template_parameter_pack element DIE.
4955         (generic_parameter_die): This doesn't deal with parameter pack
4956         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
4957         of parameter pack DIEs.
4958         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
4959         in certain cases, e.g. for pack elements.
4960         (gen_formal_types_die, gen_decl_die): Adjust usage of
4961         gen_formal_parameter_die.
4962         (gen_subprogram_die): Represent each function parameter pack by a
4963         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
4964         represented by usual DW_TAG_formal_parameter DIEs that are children
4965         of the DW_TAG_formal_parameter_pack DIE. Remove references to
4966         ____builtin_va_alist decls as no part of the compiler uses those
4967         anymore.
4968         * langhooks.h (struct lang_hooks_for_decls): Add
4969         function_parm_expanded_from_pack_p, get_generic_function_decl
4970         and function_parameter_pack_p hooks.  Fix comment for
4971         get_innermost_generic_parms hook.
4972         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
4973         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
4974         macros and use them to initialize lang_hook.
4975
4976 2009-09-22  Richard Henderson  <rth@redhat.com>
4977
4978         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
4979         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
4980         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
4981         on TRAMPOLINE_TEMPLATE.
4982         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
4983         TRAMPOLINE_ADJUST_ADDRESS.
4984         * targhooks.c (default_asm_trampoline_template): Remove.
4985         (default_trampoline_adjust_address): Remove.
4986         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
4987         * targhooks.h: Update decls.
4988
4989 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
4990
4991         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
4992         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
4993         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4994
4995 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
4996
4997         PR debug/41295
4998         * reload1.c (reload): Reset debug insns with pseudos without
4999         equivalences.
5000
5001 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
5002
5003         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
5004         unconditional true for decimal float modes.
5005         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
5006         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
5007
5008 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
5009
5010         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
5011         Enable a new case for __FreeBSD__ >= 7.
5012         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
5013         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
5014         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
5015         and USE_LD_AS_NEEDED.
5016
5017         * doc/install.texi (*-*-freebsd*): Update target information.
5018
5019 2009-09-22  Richard Guenther  <rguenther@suse.de>
5020
5021         PR middle-end/41395
5022         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
5023         arrays really properly.
5024
5025 2009-09-22  Richard Henderson  <rth@redhat.com>
5026
5027         PR target/41246
5028         * target.h (struct gcc_target): Add asm_out.trampoline_template,
5029         calls.static_chain, calls.trampoline_init,
5030         calls.trampoline_adjust_address.
5031         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5032         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
5033         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
5034         * builtins.c (expand_builtin_setjmp_receiver): Use
5035         targetm.calls.static_chain; only clobber registers.
5036         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
5037         set up memory attributes properly for the trampoline block.
5038         (expand_builtin_adjust_trampoline): Use
5039         targetm.calls.trampoline_adjust_address.
5040         * calls.c (prepare_call_address): Add fndecl argument.  Use
5041         targetm.calls.static_chain.
5042         * df-scan.c (df_need_static_chain_reg): Remove.
5043         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
5044         consolodate static chain handling.
5045         * doc/tm.texi: Document new hooks.
5046         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
5047         (init_emit_regs): Don't initialize them.
5048         * expr.h (prepare_call_address): Update decl.
5049         * final.c (profile_function): Use targetm.calls.static_chain.
5050         * function.c (expand_function_start): Likewise.
5051         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
5052         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
5053         only clobber registers.
5054         * targhooks.c (default_static_chain): New.
5055         (default_asm_trampoline_template, default_trampoline_init): New.
5056         (default_trampoline_adjust_address): New.
5057         * targhooks.h: Declare them.
5058         * varasm.c (assemble_trampoline_template): Use
5059         targetm.asm_out.trampoline_template.  Make the memory block const
5060         and set its size.
5061
5062         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
5063         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
5064         differences into the TARGET_ABI_OPEN_VMS code block.
5065         (TARGET_TRAMPOLINE_INIT): New.
5066         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
5067         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
5068         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
5069         (INITIALIZE_TRAMPOLINE): Remove.
5070
5071         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
5072         (TRAMPOLINE_TEMPLATE): Merge with ...
5073         (INITIALIZE_TRAMPOLINE): ... this and move ...
5074         * config/arc/arc.c (arc_trampoline_init): ... here.
5075         (TARGET_TRAMPOLINE_INIT): New.
5076
5077         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5078         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
5079         (arm_asm_trampoline_template): New.
5080         (arm_trampoline_init, arm_trampoline_adjust_address): New.
5081         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
5082         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
5083         code to arm_asm_trampoline_template.
5084         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
5085         arm_trampoline_adjust_address.
5086         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
5087         adjust for target hook parameters.
5088
5089         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
5090         Remove.
5091
5092         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
5093         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
5094         (bfin_trampoline_init): Rename from initialize_trampoline;
5095         make static; update for target hook parameters.
5096         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
5097         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
5098         bfin_asm_trampoline_template.
5099         (INITIALIZE_TRAMPOLINE): Remove.
5100
5101         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
5102         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
5103         cris_trampoline_init): New.
5104         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
5105         cris_asm_trampoline_template.
5106         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
5107         adjust for target hook parameters.
5108
5109         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
5110
5111         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
5112         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
5113         fr30_trampoline_init): New.
5114         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
5115         fr30_asm_trampoline_template.
5116         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
5117         adjust for target hook parameters.
5118
5119         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
5120         (frv_trampoline_init): Rename from frv_initialize_trampoline;
5121         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
5122         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
5123         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
5124
5125         * config/h8300/h8300.c (h8300_trampoline_init): New.
5126         (TARGET_TRAMPOLINE_INIT): New.
5127         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
5128         to h8300_trampoline_init and adjust for hook parameters.
5129
5130         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
5131         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
5132         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
5133         make static; adjust for hook parameters.
5134         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
5135
5136         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5137         (TARGET_TRAMPOLINE_INIT): New.
5138         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
5139         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
5140         iq2000_asm_trampoline_template.
5141         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
5142         (TRAMPOLINE_CODE_SIZE): New.
5143         (TRAMPOLINE_SIZE): Use it.
5144         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
5145
5146         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
5147         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
5148         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
5149         adjust for hook parameters.
5150         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
5151
5152         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
5153         (m32r_trampoline_init): New.
5154         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
5155         m32r_trampoline_init.
5156
5157         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
5158         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
5159         make static; update for hook parameters.
5160         * config/m68hc11/m68hc11-protos.h: Update.
5161         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
5162
5163         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5164         (TARGET_TRAMPOLINE_INIT): New.
5165         (mcore_function_value): Fix typo.
5166         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
5167         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
5168         to mcore_asm_trampoline_template.
5169         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
5170
5171         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
5172         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
5173         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
5174         update for hook parameters.
5175         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
5176
5177         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
5178         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
5179         mips_trampoline_init): New.
5180         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
5181         mips_asm_trampoline_template.
5182         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
5183         update for hook parameters.
5184
5185         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5186         (TARGET_TRAMPOLINE_INIT): New.
5187         (mmix_trampoline_size): Remove.
5188         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
5189         make static.  Remove out-of-date tetra vs octa comment.
5190         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
5191         make static; update for hook parameters.
5192         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
5193         (INITIALIZE_TRAMPOLINE): Remove.
5194         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
5195         (TRAMPOLINE_ALIGNMENT): New.
5196         * gcc/config/mmix/mmix-protos.h: Update.
5197
5198         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
5199         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
5200         mn10300_trampoline_init): New.
5201         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
5202         mn10300_asm_trampoline_template.
5203         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
5204
5205         * config/moxie/moxie.c (moxie_static_chain,
5206         moxie_asm_trampoline_template, moxie_trampoline_init,
5207         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
5208         TARGET_TRAMPOLINE_INIT): New.
5209         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
5210         moxie_trampoline_init.
5211         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
5212         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
5213
5214         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
5215         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
5216         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
5217         pa_trampoline_adjust_address): New.
5218         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
5219         pa_asm_trampoline_template.
5220         (TRAMPOLINE_ALIGNMENT): New.
5221         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
5222         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
5223         adjust for hook parameters.
5224         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
5225
5226         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
5227         (TARGET_TRAMPOLINE_INIT): New.
5228         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
5229         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
5230
5231         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
5232
5233         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
5234         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
5235         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
5236         make static; adjust parameters for the hook.
5237         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
5238
5239         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
5240         s390_trampoline_template; make static.
5241         (s390_trampoline_init): Rename from s390_initialize_trampoline;
5242         make static; adjust for target hook.
5243         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
5244         * config/s390/s390-protos.h: Remove trampoline decls.
5245         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
5246         (TRAMPOLINE_TEMPLATE): Remove.
5247         (TRAMPOLINE_ALIGNMENT): New.
5248
5249         * config/score/score-protos.h (score_initialize_trampoline): Remove.
5250         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5251         (TARGET_TRAMPOLINE_INIT): New.
5252         (score_asm_trampoline_template): New.
5253         (score_trampoline_init): Rename from score_initialize_trampoline;
5254         make static; adjust for hook parameters.
5255         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
5256         score[37]_asm_trampoline_template.
5257         (INITIALIZE_TRAMPOLINE): Remove.
5258         * config/score/score3.c (score3_asm_trampoline_template): New.
5259         (score3_trampoline_init): Rename from score3_initialize_trampoline;
5260         adjust for target hook.
5261         * config/score/score7.c (score7_asm_trampoline_template): New.
5262         (score7_trampoline_init): Rename from score7_initialize_trampoline;
5263         adjust for target hook.
5264         * config/score/score3.h, config/score/score7.h: Update.
5265
5266         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
5267         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
5268         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
5269         (sh_trampoline_init): Rename from sh_initialize_trampoline;
5270         make static; adjust for target hook parameters.
5271         (sh_trampoline_adjust_address): New.
5272         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
5273         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
5274
5275         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
5276         (sparc32_initialize_trampoline): Rename from
5277         sparc_initialize_trampoline; make static; replace tramp parameter
5278         with m_tramp and update memory accesses.
5279         (sparc64_initialize_trampoline): Similarly.
5280         (sparc_trampoline_init): New.
5281         * config/sparc/sparc-protos.h: Remove trampoline decls.
5282         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
5283         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
5284
5285         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
5286         (array_to_constant): Make ARR parameter const.
5287         (spu_trampoline_init): Rename from spu_initialize_trampoline;
5288         make static; update for hook parameters.
5289         * config/spu/spu-protos.h: Update decls.
5290         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
5291
5292         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
5293         from xstormy16_initialize_trampoline; make static; update for
5294         hook parameters.
5295         (TARGET_TRAMPOLINE_INIT): New.
5296         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
5297
5298         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5299         (TARGET_TRAMPOLINE_INIT): New.
5300         (v850_can_eliminate): Make static.
5301         (v850_asm_trampoline_template, v850_trampoline_init): New.
5302         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
5303         v850_asm_trampoline_template.
5304         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
5305         and adjust for target hook parameters.
5306
5307         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5308         (TARGET_TRAMPOLINE_INIT): New.
5309         (vax_asm_trampoline_template, vax_trampoline_init): New.
5310         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
5311         vax_asm_trampoline_template.
5312         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
5313
5314         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
5315         (TARGET_TRAMPOLINE_INIT): New.
5316         (xtensa_asm_trampoline_template): Rename from
5317         xtensa_trampoline_template; make static.
5318         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
5319         make static; update for hook parameters.
5320         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
5321         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
5322         (INITIALIZE_TRAMPOLINE): Remove.
5323
5324         * config/i386/i386.c (ix86_function_regparm): Do not issue an
5325         error for nested functions with regparm=3.
5326         (ix86_compute_frame_layout): Adjust frame pointer offset for
5327         ix86_static_chain_on_stack.
5328         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
5329         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
5330         don't reset to UNITS_PER_WORD.
5331         (ix86_emit_leave): Adjust ix86_cfa_state.
5332         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
5333         (ix86_static_chain): New.
5334         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
5335         make static; update for target hook parameters; use ix86_static_chain.
5336         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
5337         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
5338         (INITIALIZE_TRAMPOLINE): Remove.
5339         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
5340         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
5341         to the end.  Add static_chain_on_stack.
5342         (ix86_static_chain_on_stack): New.
5343
5344         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
5345         (m68k_output_mi_thunk): Don't use static_chain_rtx.
5346         (m68k_trampoline_init): New.
5347         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
5348         m68k_trampoline_init and adjust for hook parameters.
5349         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
5350         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
5351
5352 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
5353
5354         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
5355         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
5356
5357         * reload1.c (reload): Call wrap_constant when substituting
5358         reg for equiv inside of DEBUG_INSNs.
5359
5360         PR bootstrap/41405
5361         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
5362         add_call_src_coords_attributes, add_high_low_attributes,
5363         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
5364         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
5365         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
5366         when -gdwarf-2 -gstrict-dwarf.
5367         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
5368         -gdwarf-[23] -gstrict-dwarf.
5369         (address_of_int_loc_descriptor, loc_descriptor,
5370         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
5371         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
5372         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
5373
5374 2009-09-22  Richard Guenther  <rguenther@suse.de>
5375
5376         PR tree-optimization/41428
5377         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
5378         (ccp_finalize): Pass it to substitute_and_fold.
5379
5380 2009-09-22  Richard Guenther  <rguenther@suse.de>
5381
5382         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
5383         (substitute_and_fold): Adjust prototype.
5384         * tree-vrp.c (vrp_evaluate_conditional): Make static.
5385         (simplify_stmt_using_ranges): Likewise.
5386         (fold_predicate_in): Move here from tree-ssa-propagate.c.
5387         (vrp_fold_stmt): New function.
5388         (vrp_finalize): Pass it to substitute_and_fold.
5389         * tree-flow.h (vrp_evaluate_conditional): Remove.
5390         (simplify_stmt_using_ranges): Likewise.
5391         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
5392         * tree-ssa-copy.c (fini_copy_prop): Likewise.
5393         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
5394         member.
5395         (fold_predicate_in): Move to tree-vrp.c.
5396         (substitute_and_fold): Use the callback instead of calling into
5397         tree-vrp.c functions directly.
5398
5399 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
5400
5401         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
5402         comparison warning on rs6000.
5403
5404         PR middle-end/41429
5405         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
5406         GIMPLE_EH_MUST_NOT_THROW cleanup.
5407         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
5408
5409 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
5410
5411         PR middle-end/41260
5412         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
5413         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
5414         LIB_SPEC for darwin10 and later since it always uses the unwinder in
5415         libSystem which is derived from the gcc 4.2.1 unwinder.
5416
5417 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
5418
5419         PR middle-end/41357
5420         * varasm.c (default_encode_section_info): Copy TLS model into
5421         sym_ref flags regardless of backend support for TLS, for all
5422         model types except TLS_MODEL_EMULATED.
5423
5424 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
5425
5426         PR bootstrap/41404
5427         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
5428         we can handle it correctly.
5429
5430 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
5431
5432         * doc/install.texi (os2): Remove section.
5433
5434 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
5435
5436         * doc/standards.texi (Objective-C): Adjust two URLs.
5437
5438 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
5439
5440         * tree-tailcall.c (process_assignment): Don't check if a
5441         multiplication or an addition are already present.
5442         (find_tail_calls): Combine multiple additions and multiplications.
5443         (adjust_accumulator_values): Emit accumulators.
5444
5445 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
5446
5447         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
5448         xmm register restore.
5449
5450 2009-09-21  Jan Hubicka  <jh@suse.cz>
5451
5452         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
5453         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
5454         restore at the end.
5455
5456 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
5457
5458         * stor-layout.c (layout_type): Remove obsolete code.
5459
5460 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
5461
5462         PR middle-end/41395
5463         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
5464
5465 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5466
5467         PR middle-end/30789
5468         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
5469         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
5470         (fold_builtin_2, do_mpc_arg1): Update accordingly.
5471         * fold-const.c (const_binop): Likewise.
5472         * real.h (do_mpc_arg2): Update prototype.
5473
5474 2009-09-20  Jan Hubicka  <jh@suse.cz>
5475
5476         * dwarf2out.c (add_const_value_attribute): Return true if successful.
5477         (add_location_or_const_value_attribute): Rewrite using
5478         loc_list_from_tree.
5479         (tree_add_const_value_attribute): Return true if successful.
5480         (tree_add_const_value_attribute_for_decl): Likewise.
5481
5482         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
5483         (loc_descriptor): ... here;
5484         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
5485         (cst_pool_loc_descr): Break out from ...; do not reffer constant
5486         pool items that was not marked for output.
5487         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
5488         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
5489         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
5490         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
5491         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
5492         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
5493         DW_OP_stack_value to get address of items that are not available
5494         as addresses.
5495         (dw_loc_list): Handle single element lists correctly.
5496
5497 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
5498             Pascal Obry  <obry@adacore.com>
5499
5500         * unwind-dw2-fde.c (classify_object_over_fdes):
5501         Cast the constant 1 to _Unwind_Ptr.
5502         (add_fdes): Likewise.
5503         (linear_search_fdes): Likewise.
5504
5505 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
5506
5507         * stor-layout.c (set_sizetype): Avoid useless type copy.
5508
5509 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
5510
5511         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
5512         feature check.
5513         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
5514         * configure, config.in: Regenerate.
5515         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
5516         DW_EH_PE_absptr.
5517         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
5518         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
5519         for global data if the output could be used in a shared library.
5520         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
5521         to 0 if TARGET_WRITABLE_EH_FRAME.
5522
5523 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
5524
5525         PR rtl-optimization/39886
5526         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
5527         just when insn is equal to BB_END (bb).
5528
5529 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
5530
5531         * config/mips/mips.opt (mrelax-pic-calls): New option.
5532         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
5533         the file.
5534         (mips_unspec_call): Change "unspec_call" expander into this.
5535         (mips_strip_unspec_call): New function.
5536         (mips_got_load): Call mips_unspec_call instead of
5537         gen_unspec_call<mode>.
5538         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
5539         MIPS_CALL.
5540         (mips_cfg_in_reorg): New function.
5541         (mips16_lay_out_constants): Use it to decide whether to call
5542         CFG-aware insn splitting.
5543         (r10k_insert_cache_barriers): Move CFG set-up code from here to
5544         mips_reorg.  Move DF set-up code from here ...
5545         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
5546         from here.
5547         (mips_reorg): Call mips_df_reorg instead of
5548         r10k_insert_cache_barriers.  Move CFG set-up code here from
5549         r10k_insert_cache_barriers.
5550         (mips_call_expr_from_insn): New function.
5551         (mips_pic_call_symbol_from_set): Likewise.
5552         (mips_find_pic_call_symbol): Likewise.
5553         (mips_annotate_pic_call_expr): Likewise.
5554         (mips_get_pic_call_symbol): Likewise.
5555         (mips_annotate_pic_calls): Likewise.
5556         (mips_override_options): Disable -mrelax-pic-calls unless PIC
5557         calls are used.
5558         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
5559         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
5560         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
5561         directive.
5562         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
5563         (unspec_call<mode>): Remove it.
5564         (sibcall_internal, sibcall_value_internal,
5565         sibcall_value_multiple_internal, call_internal, call_split,
5566         call_value_internal, call_value_split,
5567         call_value_multiple_internal, call_value_multiple_split): Pass
5568         SIZE_OPNO to MIPS_CALL.
5569         (call_internal_direct, call_direct_split,
5570         call_value_internal_direct, call_value_direct_split): Pass -1 as
5571         SIZE_OPNO to MIPS_CALL.
5572         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
5573         * configure: Regenerate.
5574         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
5575         and -mno-relax-pic-calls.
5576         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
5577
5578 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5579
5580         PR bootstrap/35619
5581         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
5582         in the directory this rule is called from, rather than the
5583         toplevel 'gcc' directory, to fix in-tree build.
5584
5585 2009-09-19  Chris Demetriou  <cgd@google.com>
5586
5587         PR preprocessor/28435:
5588         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
5589         to cpplib that the preprocessor output is needed.
5590
5591 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
5592
5593         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
5594         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
5595         *return_and_restore_fpregs_<mode>,
5596         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
5597
5598         PR bootstrap/41397
5599         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
5600         instead of assuming it has always a REG inside of it.
5601
5602 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
5603
5604         * config/freebsd.h: Update comment on types.
5605         (WINT_TYPE): Define.
5606
5607 2009-09-18  Jason Merrill  <jason@redhat.com>
5608
5609         * c.opt: Add -fno-deduce-init-list.
5610
5611 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
5612
5613         * value-prof.c (interesting_stringop_to_profile_p): Added output
5614         argument to indicate which parameter is the size parameter.
5615         * value-prof.c (gimple_stringop_fixed_value): Use
5616         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
5617         * value-prof.c (gimple_stringops_transform): Update call sites to
5618         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
5619
5620 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
5621
5622         PR target/38288
5623         From David Binderman <dcb314@hotmail.com>:
5624         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
5625         local variable f.  Remove stale comments.
5626         (ix86_compute_frame_layout): Remove useless local variable total_size.
5627         Remove #if 0'd code.
5628         (legitimate_address_p): Remove useless local variables
5629         reason_rtx and reason.
5630         (ix86_split_copysign_const): Remove useless local variable op1.
5631         (scale_counter): Remove useless local variable piece_size_mask.
5632
5633 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
5634
5635         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
5636         output decl.
5637
5638 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
5639
5640         PR target/40913
5641         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
5642
5643 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
5644
5645         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
5646         TYPE_STUB_DECL.
5647
5648 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
5649
5650         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
5651         DW_OP_implicit_value even without dwarf_version 4.
5652
5653 2009-09-17  Jan Hubicka  <jh@suse.cz>
5654
5655         * dwarf2out.c: Include tree-pass.h and gimple.h.
5656         (loc_list_plus_const): New function.
5657         (loc_descriptor_from_tree_1): Rename to ...
5658         (loc_descriptor_from_tree): ... remove original.
5659         (loc_list_from_tree): New function.
5660         (add_AT_location_description): Accept location list.
5661         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
5662         (concatn_mem_loc_descriptor): Remove.
5663         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
5664         returning NULL.
5665         (secname_for_decl): Move up.
5666         (hidden_reference_p): New function; break out from ...
5667         (loc_by_refernece): ... here; move up.
5668         (dw_loc_list): New function.
5669         (single_element_loc_list): New function.
5670         (single_element_loc_list_p): New function.
5671         (add_loc_descr_to_each): New function.
5672         (add_loc_list): New function.
5673         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
5674         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
5675         add diagnostics why expansion failed.
5676         (add_location_or_const_value_attribute): Support location lists.
5677         (add_bound_info): Likewise.
5678         (descr_info_loc): Update call of loc_descriptor_from_tree.
5679         (gen_variable_die): Work on location lists.
5680         * final.c (pass_final): Add dump file.
5681         * Makefile.in (dwarf2out.o): Add new dependencies.
5682
5683 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
5684
5685         PR c/41049
5686         * real.c decimal_from_integer, decimal_integer_string): New.
5687         (real_from_integer): Use them as special case for decimal float.
5688         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
5689         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
5690         Do not append zero after the decimal point in string to convert.
5691
5692 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
5693
5694         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
5695         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
5696
5697 2009-09-17  Martin Jambor  <mjambor@suse.cz>
5698
5699         * common.opt (fipa-sra): New switch.
5700         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
5701         * timevar.def (TV_IPA_SRA): New timevar.
5702         * params.def (ipa-sra-ptr-growth-factor): New parameter.
5703         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
5704         * tree-sra.c: Include cgraph.c.
5705         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
5706         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
5707         and grp_not_necessarilly_dereferenced.
5708         (func_param_count): New variable.
5709         (encountered_apply_args): New variable.
5710         (bb_dereferences): New variable.
5711         (final_bbs): New variable.
5712         (no_accesses_representant): New variable.
5713         (no_accesses_p): New function.
5714         (dump_access): Dump the new fields.
5715         (sra_initialize): Set encountered_apply_args to false.
5716         (get_ssa_base_param): New function.
5717         (mark_parm_dereference): New function.
5718         (create_access): Caring for INIDRECT_REFs and different handling of
5719         varialble length accesses in early IPA SRA.  Store the stmt - a new
5720         parameter - to the new access.
5721         (build_access_from_expr_1): New parameter stmt, passed to
5722         create_access.  Handle INDIRECT_REFs.
5723         (build_access_from_expr): Pass the current statement to
5724         build_access_from_expr_1.
5725         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
5726         passes.
5727         (build_accesses_from_assign): Pass the current statement to
5728         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
5729         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
5730         final_bbs when necessary.  Check for calls to __builtin_apply_args.
5731         Fixup EH info if anythng was changed.
5732         (is_unused_scalar_param): New function.
5733         (ptr_parm_has_direct_uses): New function.
5734         (find_param_candidates): New function.
5735         (mark_maybe_modified): New function.
5736         (analyze_modified_params): New function.
5737         (propagate_dereference_distances): New function.
5738         (dump_dereferences_table): New function.
5739         (analyze_caller_dereference_legality): New function.
5740         (unmodified_by_ref_scalar_representative): New function.
5741         (splice_param_accesses): New function.
5742         (decide_one_param_reduction): New function.
5743         (enum ipa_splicing_result): New type.
5744         (splice_all_param_accesses): New function.
5745         (get_param_index): New function.
5746         (turn_representatives_into_adjustments): New function.
5747         (analyze_all_param_acesses): New function.
5748         (get_replaced_param_substitute): New function.
5749         (get_adjustment_for_base): New function.
5750         (replace_removed_params_ssa_names): New function.
5751         (sra_ipa_reset_debug_stmts): New function.
5752         (sra_ipa_modify_expr): New function.
5753         (sra_ipa_modify_assign): New function.
5754         (convert_callers): New function.
5755         (modify_function): New function.
5756         (ipa_sra_preliminary_function_checks): New function.
5757         (ipa_early_sra): New function.
5758         (ipa_early_sra_gate): New function.
5759         (pass_early_ipa_sra): New variable.
5760         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
5761
5762 2009-09-17  Michael Matz  <matz@suse.de>
5763
5764         PR middle-end/41347
5765         * tree.c (build_type_attribute_qual_variant): Export.
5766         * tree.h (build_type_attribute_qual_variant): Declare.
5767         * tree-inline.c (remap_type_1): Use it to build variants with
5768         the original qualifiers and attributes.
5769
5770 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5771
5772         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
5773         without a fallthrough edge.
5774
5775 2009-09-16  DJ Delorie  <dj@redhat.com>
5776
5777         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
5778         chip and ignore the "fast_interrupt" attribute if so.
5779
5780 2009-09-16  Richard Henderson  <rth@redhat.com>
5781
5782         PR middle-end/41360
5783         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
5784         barrier fix.
5785
5786 2009-09-16  Richard Henderson  <rth@redhat.com>
5787
5788         PR target/41246
5789         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
5790         is set only if DECL_NO_STATIC_CHAIN is unset.
5791         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
5792         (FOR_EACH_NEST_INFO): New.
5793         (walk_all_functions): Use it.
5794         (finalize_nesting_tree): Likewise.
5795         (unnest_nesting_tree): Likewise.
5796         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
5797         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
5798         (convert_gimple_call): Early out if gimple_call_chain already set.
5799         (convert_all_function_calls): Iterate until no new functions
5800         require a static chain.
5801         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
5802         when building a trampoline.  Use dump_function_to_file instead
5803         of dump_function.
5804         (lower_nested_functions): Open dump_file.  Validate that decls
5805         that have DECL_NO_STATIC_CHAIN from the front end don't have that
5806         bit reset by this pass.
5807
5808 2009-09-16  Michael Matz  <matz@suse.de>
5809
5810         PR fortran/41212
5811         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
5812         shorten decl_common_unused.
5813         (DECL_RESTRICTED_P): New accessor.
5814         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
5815         to disambiguate marked decls and restrict pointers.
5816
5817 2009-09-16  Richard Henderson  <rth@redhat.com>
5818
5819         PR middle-end/41360
5820         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
5821
5822 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
5823
5824         * integrate.c (set_block_abstract_flags): Call
5825         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
5826
5827 2009-09-16  Richard Guenther  <rguenther@suse.de>
5828
5829         PR middle-end/34011
5830         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
5831         as non-aliased.
5832
5833 2009-09-16  DJ Delorie  <dj@redhat.com>
5834             Kaz Kojima  <kkojima@gcc.gnu.org>
5835
5836         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
5837         (sh_expand_prologue): Update calls to output_stack_adjust.
5838         (sh_expand_epilogue): Likewise.
5839
5840 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
5841
5842         PR bootstrap/41349
5843         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
5844         trying to limit the extent of searches in the insn stream.
5845
5846 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
5847             Jakub Jelinek  <jakub@redhat.com>
5848
5849         PR target/41175
5850         PR target/40677
5851         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
5852         problem.
5853         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
5854         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
5855         (rs6000_savres_strategy): Always save FP registers inline if the
5856         target doesn't support hardware double-precision.  Set the above
5857         bits in return value when needed.
5858         (rs6000_savres_routine_sym): Fix computation for cache selector.
5859         Mark the generated symbol as a function.  Rename exitp argument to
5860         lr.  Move code for determining the name of the symbol...
5861         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
5862         getting the names right on AIX and 64-bit Linux.
5863         (savres_routine_name): New variable.
5864         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
5865         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
5866         on what the target routine uses as a base register.  If savep && lr
5867         describe saving of r0 into memory slot.
5868         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
5869         line calls for AIX ABI.
5870         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
5871         determine FP save/restore functions.
5872         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
5873         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
5874         gen_addsi3.
5875         (rs6000_emit_epilogue): Adjust computation of restore_lr.
5876         Duplicate restoration of LR and execute the appropriate one
5877         depending on whether GPRs are being restored inline.  Set r11 from
5878         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
5879         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
5880         Fix out of line calls for AIX ABI.
5881         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
5882         New insn.
5883         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
5884         register 11.
5885         (*restore_gpregs_spe): Likewise.
5886         (*return_and_restore_gpregs_spe): Likewise.
5887         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
5888         Define to empty string unconditionally.
5889         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
5890         Define to empty string unconditionally.
5891         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
5892         !TARGET_64BIT.
5893
5894 2009-09-15  Jan Hubicka  <jh@suse.cz>
5895
5896         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
5897         * params.def (inline-insns-auto): Likewise.
5898
5899 2009-09-15  Martin Jambor  <mjambor@suse.cz>
5900
5901         * ipa-inline.c (estimate_function_body_sizes): Dump info about
5902         individual statements only at TDF_DETAILS dump level.  Format
5903         source for 80 characters per line.
5904
5905 2009-09-15  Christian Bruel  <christian.bruel@st.com>
5906
5907         * regrename.c (do_replace): Update REG_DEAD notes.
5908
5909 2009-09-15  Revital Eres  <eres@il.ibm.com>
5910
5911         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
5912         * targhooks.c (default_builtin_support_vector_misalignment):
5913         New builtin function.
5914         * targhooks.h (default_builtin_support_vector_misalignment):
5915         Declare.
5916         * target.h (builtin_support_vector_misalignment):
5917         New field in struct gcc_target.
5918         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
5919         new builtin function.
5920         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
5921         Define.
5922         * config/rs6000/rs6000.c
5923         (rs6000_builtin_support_vector_misalignment): New function.
5924         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
5925
5926 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
5927
5928         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
5929         instead of INSN_P.
5930         (bfin_optimize_loop): Likewise.
5931         (bfin_gen_bundles): Likewise.
5932         (workaround_speculation): Likewise.
5933         (find_load): Return NULL_RTX for debug_insn.
5934
5935 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
5936
5937         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
5938         (sminsf3): Ditto.
5939
5940 2009-09-14  DJ Delorie  <dj@redhat.com>
5941
5942         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
5943         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
5944         VLIW mode.
5945
5946 2009-09-14  Richard Henderson  <rth@redhat.com>
5947             Jakub Jelinek  <jakub@redhat.com>
5948
5949         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
5950         * cfgbuild.c (make_edges): Handle asm goto.
5951         * cfglayout.c (fixup_reorder_chain): Likewise.
5952         * cfgrtl.c (patch_jump_insn): Likewise.
5953         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
5954         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
5955         (gimple_build_asm_vec): Add and use labels parameter.
5956         (gimple_build_asm): Remove.
5957         (walk_gimple_asm): Walk labels too.
5958         * gimple.def (GIMPLE_ASM): Update docs.
5959         * gimple.h: Update decls.
5960         (struct gimple_statement_asm): Change nc to use unsigned char;
5961         add nl member.
5962         (gimple_asm_nlabels): New.
5963         (gimple_asm_label_op, gimple_asm_set_label_op): New.
5964         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
5965         into gimple_build_asm_vec.
5966         * jump.c (mark_jump_label_asm): New.
5967         (mark_jump_label): Use it.
5968         (redirect_jump_1): Handle asm goto.
5969         (invert_jump_1): Soft fail if X is null.
5970         * recog.c (extract_asm_operands): New.
5971         (asm_noperands): Use it; handle asm labels.
5972         (decode_asm_operands): Use extract_asm_operands.
5973         (asm_operand_ok): Properly handle empty string.
5974         * reg-stack.c (get_asm_operands_in_out): Rename from
5975         get_asm_operand_n_inputs; use extract_asm_operands; return both
5976         inputs and outputs by reference; update all callers.
5977         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
5978         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
5979         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
5980         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
5981         (extract_asm_operands): Declare.
5982         * stmt.c (expand_asm_operands): Add and use labels parameter.
5983         (check_unique_operand_names): Likewise.
5984         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
5985         (expand_asm_stmt): Handle asm labels.
5986         * tree-cfg.c (make_gimple_asm_edges): New.
5987         (make_edges): Use it.
5988         (cleanup_dead_labels): Handle asm labels.
5989         (is_ctrl_altering_stmt): Likewise.
5990         (gimple_redirect_edge_and_branch): Likewise.
5991         * tree.def (ASM_EXPR): Add 5th operand.
5992         * tree.h (ASM_LABELS): New.
5993         (resolve_asm_operand_names): Update decl.
5994
5995         * c-parser.c (c_parser_asm_statement): Parse asm goto.
5996         (c_parser_asm_goto_operands): New.
5997         * c-tree.h (build_asm_expr): Update decl.
5998         * c-typeck.c (build_asm_expr): Add and use labels parameter.
5999         * doc/extend.texi: Document asm goto.
6000
6001 2009-09-14  Richard Henderson  <rth@redhat.com>
6002
6003         * except.h: Update declarations.
6004         (struct pointer_map_t): Forward declare.
6005         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
6006         (struct eh_landing_pad_d, eh_landing_pad): New.
6007         (struct eh_catch_d, eh_catch): New.
6008         (struct eh_region_d): Remove next_region_sharing_label, aka,
6009         label, tree_label, landing_pad, post_landing_pad, resume,
6010         may_contain_throw.  Rename region_number to index.  Remove
6011         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
6012         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
6013         (VEC(eh_landing_pad,gc)): New.
6014         (struct eh_status): Remove last_region_number.  Add lp_array,
6015         throw_stmt_table, ttype_data, ehspec_data.
6016         (ehr_next, FOR_ALL_EH_REGION_AT): New.
6017         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
6018         * except.c (lang_protect_cleanup_actions): Return tree.
6019         (struct ehl_map_entry): Remove.
6020         (init_eh_for_function): Push zero entries for region and lp_array.
6021         (gen_eh_region): Add to region_array immediately.
6022         (gen_eh_region_catch): Operate on eh_catch objects.
6023         (gen_eh_landing_pad): New.
6024         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
6025         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
6026         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
6027         (get_eh_landing_pad_from_number_fn): New.
6028         (get_eh_landing_pad_from_number): New.
6029         (get_eh_region_from_lp_number_fn): New.
6030         (get_eh_region_from_lp_number): New.
6031         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
6032         (get_exception_pointer, get_exception_filter): Remove.
6033         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
6034         (current_function_has_exception_handlers): Simplify.
6035         (bring_to_root, eh_region_replaceable_by_p): Remove.
6036         (replace_region, hash_type_list, hash_eh_region): Remove.
6037         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
6038         (label_to_region_map, num_eh_regions): Remove.
6039         (get_next_region_sharing_label, must_not_throw_labels): Remove.
6040         (find_exception_handler_labels): Remove.
6041         (duplicate_eh_regions_0, find_prev_try): Remove.
6042         (struct duplicate_eh_regions_data): New.
6043         (duplicate_eh_regions_1): Rewrite.
6044         (duplicate_eh_regions): Return a pointer map instead of an
6045         integer offset.
6046         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
6047         (redirect_eh_edge_to_label): Remove.
6048         (eh_region_outermost): Rewrite using eh_region pointers
6049         instead of integers.
6050         (add_ttypes_entry): Update for ttype_data move to eh_status.
6051         (add_ehspec_entry): Rewrite with VEC instead of varray.
6052         (assign_filter_values): Likewise.  Export.
6053         (build_post_landing_pads, connect_post_landing_pads): Remove.
6054         (dw2_build_landing_pads): Rewrite to use lp_array.
6055         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
6056         (sjlj_assign_call_site_values): Rewrite to use lp_array.
6057         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
6058         (sjlj_mark_call_sites): Update for landing pad numbers.
6059         (finish_eh_generation): Rewrite.
6060         (gate_handle_eh): Do nothing for no eh tree.
6061         (pass_rtl_eh): Move up near finish_eh_generation.
6062         (remove_eh_landing_pad): New.
6063         (remove_eh_handler): Export.
6064         (remove_eh_region, remove_eh_handler_and_replace): Remove.
6065         (for_each_eh_label): Rewrite to use lp_array.
6066         (make_reg_eh_region_note): New.
6067         (make_reg_eh_region_note_nothrow_nononlocal): New.
6068         (insn_could_throw_p): New.
6069         (copy_reg_eh_region_note_forward): New.
6070         (copy_reg_eh_region_note_backward): New.
6071         (check_handled, add_reachable_handler): Remove.
6072         (reachable_next_level, foreach_reachable_handler): Remove.
6073         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
6074         (get_eh_region_and_lp_from_rtx): New.
6075         (get_eh_region_from_rtx): New.
6076         (can_throw_internal_1, can_throw_external_1): Remove.
6077         (can_throw_internal): Use get_eh_region_from_rtx.
6078         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
6079         (insn_nothrow_p, can_nonlocal_goto): New.
6080         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
6081         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
6082         (add_action_record): Use VEC not varray.
6083         (collect_one_action_chain): Update for eh_region changes.
6084         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
6085         Use get_eh_region_and_lp_from_rtx.
6086         (gate_convert_to_eh_region_ranges): New.
6087         (pass_convert_to_eh_region_ranges): Use it.
6088         (push_uleb128, push_sleb128): Use VEC not varray.
6089         (output_one_function_exception_table): Likewise.
6090         (dump_eh_tree): Update for eh_region changes.
6091         (verify_eh_tree): Likewise.
6092         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
6093         * tree-eh.c: Include target.h.
6094         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
6095         Don't disallow GIMPLE_RESX; adjust argument check.
6096         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
6097         (record_stmt_eh_region): Update for landing pad numbers;
6098         generate a landing pad if necessary.
6099         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
6100         (remove_stmt_from_eh_lp_fn): Similarly.
6101         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
6102         Update for lp numbers; don't special case missing throw_stmt_table.
6103         (lookup_expr_eh_lp): Similarly.
6104         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
6105         (eh_seq, eh_region_may_contain_throw): New.
6106         (struct leh_state): Add ehp_region.
6107         (struct leh_tf_state): Remove eh_label.
6108         (emit_post_landing_pad): New.
6109         (emit_resx, emit_eh_dispatch): New.
6110         (note_eh_region_may_contain_throw): New.
6111         (frob_into_branch_around): Take eh_region not eh label;
6112         emit eh code into eh_seq.
6113         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
6114         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
6115         lower_eh_must_not_throw.  Emit code to eh_seq.
6116         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
6117         (lower_try_finally_onedest): Likewise.
6118         (lower_try_finally_copy): Likewise.
6119         (lower_try_finally_switch): Likewise.
6120         (lower_try_finally): Initialize ehp_region.
6121         (lower_catch): Update for eh_catch objects.
6122         (lower_eh_filter): Don't handle must_not_throw.
6123         (lower_eh_must_not_throw): New.
6124         (lower_cleanup): Don't set eh_label.
6125         (lower_eh_constructs_2): Resolve eh builtins.
6126         Handle GIMPLE_EH_MUST_NOT_THROW.
6127         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
6128         Add eh_seq to the end of the function body.
6129         (make_eh_dispatch_edges): New.
6130         (make_eh_edge): Remove.
6131         (make_eh_edges): Simplify for landing pads.
6132         (redirect_eh_edge_1): New.
6133         (redirect_eh_edge): Use it.
6134         (redirect_eh_dispatch_edge): New.
6135         (stmt_could_throw_p): Use a switch.  Allow RESX.
6136         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
6137         (stmt_can_throw_internal): Likewise.
6138         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
6139         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
6140         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
6141         (gate_refactor_eh): New.
6142         (pass_refactor_eh): Use it.
6143         (lower_resx, execute_lower_resx, pass_lower_resx): New.
6144         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
6145         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
6146         (remove_unreachable_handlers): Rename from
6147         tree_remove_unreachable_handlers; rewrite for landing pads;
6148         call remove_eh_handler directly.
6149         (remove_unreachable_handlers_no_lp): New.
6150         (unsplit_eh, unsplit_all_eh): New.
6151         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
6152         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
6153         (cleanup_empty_eh_unsplit): New.
6154         (cleanup_empty_eh): Rewrite.
6155         (cleanup_all_empty_eh): New.
6156         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
6157         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
6158         (gate_cleanup_eh): New.
6159         (pass_cleanup_eh): Use it.
6160         (verify_eh_edges): Move later in file.  Expect one EH edge.
6161         (verify_eh_dispatch_edge): New.
6162
6163         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
6164         (gtype-desc.o): Add TARGET_H.
6165         (tree.o): Use EXCEPT_H, not except.h.
6166         (cfgbuild.o): Add EXPR_H.
6167         (GTFILES): Add vecprim.h.
6168         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
6169         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
6170         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
6171         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
6172         * calls.c (emit_call_1): Use make_reg_eh_region_note.
6173         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
6174         calls to can_throw_internal.
6175         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
6176         (make_edges): Don't handle RESX; use can_nonlocal_goto.
6177         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
6178         (expand_gimple_stmt): Use make_reg_eh_region_note.
6179         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
6180         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
6181         or find_exception_handler_labels.
6182         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
6183         there is exacly one EH edge.  Use can_nonlocal_goto and
6184         can_throw_internal.
6185         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
6186         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
6187         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
6188         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
6189         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
6190         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
6191         * dse.c (scan_insn): Use insn_could_throw_p.
6192         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
6193         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
6194         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
6195         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
6196         EXC_PTR_EXPR or FILTER_EXPR.
6197         (tree_expr_nonzero_warnv_p): Likewise.
6198         * function.h: Include vecprim.h, not varray.h
6199         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
6200         move ttype_data and ehspec_data members to struct eh_status; change
6201         action_record_data member to a VEC.
6202         * gcse.c (hash_scan_set): Use can_throw_internal.
6203         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
6204         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
6205         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
6206         (block_may_fallthru): Don't handle RESX_EXPR.
6207         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
6208         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
6209         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
6210         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
6211         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
6212         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
6213         (gimple_size): Likewise.
6214         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
6215         (gimple_build_resx): Use gimple_build_with_ops.
6216         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
6217         (is_gimple_val): Likewise.
6218         (is_gimple_stmt): Remove RESX_EXPR.
6219         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
6220         (GIMPLE_RESX): Reorder with other EH constructs.
6221         * gimple.h (struct gimple_statement_eh_mnt): New.
6222         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
6223         (gimple_eh_filter_must_not_throw): Remove.
6224         (gimple_eh_filter_set_must_not_throw): Remove.
6225         (gimple_eh_must_not_throw_fndecl): New.
6226         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
6227         (is_gimple_resx): New.
6228         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
6229         Don't copy EH_FILTER_MUST_NOT_THROW.
6230         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
6231         * ipa-inline.c (estimate_function_body_sizes): Don't try to
6232         handle must_not_throw_labels specially.
6233         * ipa-pure-const.c (check_call): Update debug statement for LP.
6234         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
6235         * ipa-utils.c (get_base_var): Likewise.
6236         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
6237         * lower-subreg.c (move_eh_region_note): Remove.
6238         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
6239         * omp-low.c (new_omp_context): Update for eh_lp_nr.
6240         (create_task_copyfn): Likewise.
6241         (maybe_catch_exception): Use gimple_build_eh_filter.
6242         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
6243         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
6244         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
6245         and pass_lower_resx.
6246         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
6247         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
6248         can_throw_internal, can_nonlocal_goto.
6249         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
6250         copy_reg_eh_region_note_forward.
6251         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
6252         (emit_output_reload_insns): Likewise.
6253         (copy_eh_notes): Remove.
6254         * rtl.def (RESX): Remove.
6255         * rtl.h: Update declarations.
6256         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
6257         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
6258         (update_eh_label): Remove.
6259         (cleanup_dead_labels_eh): New.
6260         (cleanup_deal_labels): Use it instead of update_eh_label.
6261         (gimple_merge_blocks): Update landing pad data structure when
6262         removing a landing pad label.
6263         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
6264         test; handle GIMPLE_EH_MUST_NOT_THROW.
6265         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
6266         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
6267         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
6268         (verify_stmt): Likewise.  Verify landing pads.
6269         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
6270         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
6271         (struct move_stmt_d): Add eh_map.
6272         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
6273         (move_stmt_r): Remap eh region numbers in builtin calls,
6274         resx and eh_dispatch.
6275         (move_block_to_fn): Remove eh_offset parameter.  Use
6276         maybe_duplicate_eh_stmt_fn.
6277         (find_outermost_region_in_block): Operate on eh_region pointers
6278         instead of region numbers.
6279         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
6280         duplicate_eh_regions.
6281         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
6282         test earlier.  Disallow EH landing pads.
6283         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
6284         * tree-flow.h: Update declarations.
6285         (struct tree_ann_common_d): Replace rn with lp_nr.
6286         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
6287         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
6288         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
6289         resx and eh_dispatch.
6290         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
6291         (copy_edges_for_bb): Use make_eh_dispatch_edges.
6292         (copy_cfg_body): Expect eh_map instead of eh_region_offset
6293         from duplicate_eh_regions.
6294         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
6295         update RESX; handle EH_DISPATCH.
6296         (expand_call_inline): Set eh_lp_nr, not eh_region.
6297         (maybe_inline_call_in_expr): Likewise.
6298         * tree-inline.h (struct copy_body_data): Replace eh_region with
6299         eh_lp_nr, eh_region_offset with eh_map.
6300         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
6301         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
6302         * tree-pretty-print.c (dump_generic_node): Don't handle
6303         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
6304         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
6305         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
6306         EXC_PTR_EXPR, FILTER_EXPR.
6307         * tree-ssa-operands.c (get_expr_operands): Likewise.
6308         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
6309         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6310         (ao_ref_init_from_vn_reference): Likewise.
6311         * tree-ssa-sink.c (statement_sink_location): Likewise.
6312         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
6313         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
6314         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
6315         EXC_PTR_EXPR, FILTER_EXPR.
6316         (is_exception_related): Remove.
6317         (compute_avail): Don't call it.
6318         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
6319         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
6320         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
6321         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
6322         Build EH builtins.
6323         (build_resx): Remove.
6324         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
6325         * tree.h: Update declarations.
6326         (EH_FILTER_MUST_NOT_THROW): Remove.
6327         (struct tree_label_decl): Add eh_landing_pad_nr.
6328         (EH_LANDING_PAD_NR): New.
6329         * value-prof.c (gimple_ic): Tidy variable names.  Update for
6330         landing pad numbers.
6331         (gimple_stringop_fixed_value): Tidy variable names.  Assert
6332         that neither call stmt can throw.
6333         * vecprim.h (uchar): New.
6334         (VEC(uchar,heap), VEC(uchar,gc)): New.
6335
6336         * c-common.c (c_define_builtins): Update call to
6337         build_common_builtin_nodes.
6338         * c-parser.c (c_parse_file): Don't call
6339         default_init_unwind_resume_libfunc.
6340
6341 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
6342
6343         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
6344         (mips_cprestore_address_p): Likewise.
6345         (mips_save_gp_to_cprestore_slot): Likewise.
6346         (mips_restore_gp): Rename to...
6347         (mips_restore_gp_from_cprestore_slot): ...this.
6348         (mips_must_initialize_gp_p): Declare.
6349         (mips_emit_save_slot_move): Likewise.
6350         (mips_output_load_label): Return nothing.
6351         (mips_eh_uses): Declare.
6352         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
6353         (TARGET_CPRESTORE_DIRECTIVE): New macro.
6354         (TARGET_ABSOLUTE_JUMPS): Likewise.
6355         (EH_USES): Likewise.
6356         (FIRST_PSEUDO_REGISTER): Update comment.
6357         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
6358         (MIPS_CALL): ...here.
6359         (REGISTER_NAMES): Add $cprestore.
6360         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
6361         Add load_label_length, has_inflexible_gp_insn_p,
6362         has_flexible_gp_insn_p, must_initialize_gp_p and
6363         must_restore_gp_when_clobbered_p.
6364         (mips_expand_call): Don't generate split instructions here.
6365         (mips_split_call): Update the call to mips_restore_gp after
6366         the above name change.
6367         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
6368         (mips_find_gp_ref): New function.
6369         (mips_insn_has_inflexible_gp_ref_p): Likewise.
6370         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
6371         (mips_insn_has_flexible_gp_ref_p): Likewise.
6372         (mips_cfun_has_flexible_gp_ref_p): Likewise.
6373         (mips_function_has_gp_insn): Delete.
6374         (mips_global_pointer): Drop the df_regs_ever_live_p check.
6375         Use the new functions above.  Only return INVALID_REGNUM
6376         for TARGET_ABSOLUTE_JUMPS.
6377         (mips_must_initialize_gp_p): New function.
6378         (mips_get_cprestore_base_and_offset): New function, extracted from...
6379         (mips_cprestore_slot): ...here.  Take a bool parameter.
6380         (mips_cfun_has_cprestore_slot_p): New function.
6381         (mips_cprestore_address_p): Likewise.
6382         (mips_save_gp_to_cprestore_slot): Likewise.
6383         (mips_restore_gp): Rename to...
6384         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
6385         epilogue_completed.  Update the call to mips_cprestore_slot.
6386         Test cfun->machine->must_restore_gp_when_clobbered_p.
6387         (mips_direct_save_slot_move_p): New function.
6388         (mips_emit_save_slot_move): Likewise.
6389         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
6390         of cfun->machine->global_pointer.
6391         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
6392         (mips_save_reg): Use mips_emit_save_slot_move.
6393         (mips_expand_prologue): Set must_initialize_gp_p.
6394         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
6395         for all cprestore saves.  Emit a use_cprestore instruction after
6396         setting up the cprestore slot.
6397         (mips_restore_reg): Use mips_emit_save_slot_move.
6398         (mips_process_load_label): New function.
6399         (mips_load_label_length): Likewise.
6400         (mips_output_load_label): Don't return asm: output it here instead.
6401         Use mips_process_load_label.
6402         (mips_adjust_insn_length): Adjust the length of branch instructions
6403         that have length MAX_PIC_BRANCH_LENGTH.
6404         (mips_output_conditional_branch): Update the call to
6405         mips_output_load_label.  Assume the branch target is OPERANDS[0]
6406         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
6407         (mips_output_order_conditional_branch): Swap the meaning of
6408         OPERANDS[0] and OPERANDS[1].
6409         (mips_variable_issue): Don't count ghost instructions.
6410         (mips_expand_ghost_gp_insns): New function.
6411         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
6412         (mips_output_mi_thunk): Set must_initialize_gp_p.
6413         (mips_eh_uses): New function.
6414         * config/mips/predicates.md (cprestore_save_slot_operand)
6415         (cprestore_load_slot_operand): New predicates.
6416         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
6417         (UNSPEC_MOVE_GP): Likewise.
6418         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
6419         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
6420         (CPRESTORE_SLOT_REGNUM): New register.
6421         (MAX_PIC_BRANCH_LENGTH): New constant.
6422         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
6423         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
6424         branches.  Fix commentary.
6425         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
6426         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
6427         Change type to "ghost".
6428         (loadgp_absolute_<mode>): Likewise.
6429         (loadgp_rtp_<mode>): Likewise.
6430         (copygp_mips16): Likewise.
6431         (loadgp_blockage): Remove redundant mode attribute.
6432         (potential_cprestore): New instruction.
6433         (cprestore): Turn into an unspec set.
6434         (use_cprestore): New instruction.
6435         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
6436         (*branch_fp_inverted): Likewise.
6437         (*branch_order<mode>): Likewise.
6438         (*branch_order<mode>_inverted): Likewise.
6439         (*branch_equality<mode>): Likewise.
6440         (*branch_equality<mode>_inverted): Likewise.
6441         (*branch_bit<bbv><mode>): Likewise.
6442         (*branch_bit<bbv><mode>_inverted): Likewise.
6443         (*branch_equality<mode>_mips16): Remove redundant mode.
6444         (jump): Turn into a define_expand.
6445         (*jump_absolute): New instruction.
6446         (*jump_pic): Likewise.
6447         (*jump_mips16): Rename previously-unnamed pattern.  Remove
6448         redundant mode attribute.
6449         (restore_gp): Split on epilogue_completed rather than
6450         reload_completed.  Change type to "ghost".
6451         (move_gp<mode>): New instruction.
6452         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
6453         Remove redundant mode attribute.
6454         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
6455         (bc1any4f, bc1any2t, bc1any2f): Likewise.
6456         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
6457
6458 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6459
6460         PR target/41210
6461         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
6462         are returned in the same register (vs34 or v2) that Altivec vector
6463         types are returned in.
6464         (rs6000_libcall_value): Ditto.
6465
6466         PR target/41331
6467         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
6468         instead of explicit addsi3/adddi3 calls.
6469         (rs6000_split_multireg_move): Ditto.
6470         (rs6000_emit_allocate_stack): Ditto.
6471         (rs6000_emit_prologue): Ditto.
6472         (rs6000_output_mi_thunk): Ditto.
6473
6474         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
6475         size is 64 bits if we can use 64-bit registers.
6476
6477 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
6478
6479         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
6480         symbols.
6481
6482         From Jie Zhang <jie.zhang@analog.com>:
6483         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
6484         save FP and RETS with saveall attribute.
6485         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
6486         with saveall attribute.
6487
6488         * config/bfin/bfin.c (bfin_expand_builtin,
6489         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
6490         operands.
6491
6492         From Jie Zhang <jie.zhang@analog.com>:
6493         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
6494         before use in two places.
6495         * config/bfin/bfin.md (AREG): Define mode iterator.
6496         (reload_in, reload_out): Use mode iterator AREG.
6497
6498 2009-09-14  Richard Guenther  <rguenther@suse.de>
6499
6500         PR middle-end/41350
6501         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
6502         EH personality path.
6503
6504 2009-09-13  Richard Guenther  <rguenther@suse.de>
6505             Rafael Avila de Espindola  <espindola@google.com>
6506
6507         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
6508         (LANG_HOOKS_EH_PERSONALITY): Likewise.
6509         (LANG_HOOKS_INITIALIZER): Adjust.
6510         (lhd_pass_through_t): Declare.
6511         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
6512         eh_personality.
6513         * langhooks.c (lhd_pass_through_t): New function.
6514         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
6515         dwarf2out_begin_prologue): Use personality from current_function_decl.
6516         * expr.h (get_personality_function): Declare.
6517         * expr.c (get_personality_function): New function.
6518         (build_personality_function): Likewise.
6519         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
6520         (eh_personality_libfunc): Remove.
6521         * optabs.c (build_libfunc_function): New function split out from ...
6522         (init_one_libfunc): ... here.
6523         * tree.h (DECL_FUNCTION_PERSONALITY): New.
6524         (tree_function_decl): Add personality.
6525         (lhd_gcc_personality): Declare.
6526         (build_personality_function): Likewise.
6527         * tree.c (gcc_eh_personality_decl): New.
6528         (lhd_gcc_personality): New function.
6529         * except.h (lang_eh_runtime_type): Remove.
6530         (enum eh_personality_kind): New.
6531         (build_personality_function): Declare.
6532         (function_needs_eh_personality): Declare.
6533         * except.c (lang_eh_runtime_type): Remove.
6534         (function_needs_eh_personality): New function.
6535         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
6536         (sjlj_emit_function_enter, output_function_exception_table):
6537         Use personality from current_function_decl.
6538         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
6539         * tree-inline.c (tree_can_inline_p): Do not inline across different
6540         EH personalities.
6541         (expand_call_inline): Likewise.  Adjust the callers EH personality.
6542         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
6543         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
6544         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
6545         (c-parser.o): Likewise
6546         * c-tree.h (c_eh_initialized_p): Remove.
6547         (c_maybe_initialize_eh): Likewise.
6548         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
6549         (finish_decl): Don't call c_maybe_initialize_eh.
6550         (c_eh_initialized_p): Remove.
6551         (c_maybe_initialize_eh): Likewise.
6552         * c-parser.c (c_parser_omp_construct): Likewise.
6553         (c_parse_file): Initialize exception handling.
6554
6555 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
6556
6557         * config.gcc (tm_file): Remove i386/biarch32.h
6558         for i?86-w64-mingw* case.
6559         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
6560         support.
6561         * config.host: Set for x64 mingw the option
6562         use_long_long_for_widest_fast_int to yes.
6563
6564 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
6565
6566         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
6567         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
6568         (dbxout_begin_function): Likewise.
6569         * final.c (dwarf2_debug_info_emitted_p): New predicate.
6570         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
6571         set on the function.
6572         (final_end_function): Likewise.
6573         (final_scan_insn): Likewise.
6574         (rest_of_handle_final): Likewise.
6575         * varasm.c (assemble_start_function): Likewise.
6576         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6577
6578 2009-09-12  Jason Merrill  <jason@redhat.com>
6579
6580         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
6581         * opts.c (common_handle_option): constify.
6582
6583 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
6584
6585         * doc/install.texi (avr): Remove obsolete reference site.
6586
6587 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
6588
6589         * doc/install.texi (Binaries): Adjust AIX link.
6590
6591 2009-09-12  Akim Demaille  <demaille@gostai.com>
6592
6593         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
6594         Use an imperative sentence.
6595
6596 2009-09-11  Richard Henderson  <rth@redhat.com>
6597
6598         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
6599         structure-name and has-tree-operands arguments; update all entries.
6600         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
6601         update all entries.
6602         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
6603         (gsstruct_code_size): New.
6604         (gss_for_code_): New.
6605         (gss_for_code): Remove.
6606         (gimple_size): Rewrite using gsstruct_code_size.
6607         (gimple_statement_structure): Move to gimple.h.
6608         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
6609         (gss_for_code, gimple_statement_structure): New.
6610         (gimple_ops): Use new arrays; tidy.
6611
6612 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6613
6614         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
6615         operand to be a PLUS expression.
6616         * config/pa/pa.c (pa_secondary_reload): Likewise.
6617
6618 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
6619
6620         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
6621
6622         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
6623         XEXP (in_rtx, 8).
6624
6625 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
6626
6627         From Jie Zhang <jie.zhang@analog.com>:
6628         * doc/extend.texi (node Function Attributes): Document l2
6629         function attribute.
6630         (node Blackfin Variable Attributes): Document l2 variable attributes.
6631
6632 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
6633
6634         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
6635         to match the system compiler's configuration at inflection point.
6636         Add comment to remark a remaining difference with system compiler.
6637
6638         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
6639         * configure: Regenerate.
6640
6641 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
6642
6643         From Jie Zhang <jie.zhang@analog.com>:
6644         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
6645         (bfin_handle_l2_attribute): New.
6646         (bfin_attribute_table): Add l2 attribute.
6647
6648 2009-09-11  Michael Matz  <matz@suse.de>
6649
6650         PR middle-end/41275
6651         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
6652         on the local_decls list.
6653
6654 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
6655
6656         PR debug/41276
6657         PR debug/41307
6658         * cselib.c (cselib_expand_value_rtx_cb): Document callback
6659         interface.
6660         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
6661         for VALUEs, to implement the documented interface.
6662         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
6663         Adjust for VALUEs and anything else, to implement the
6664         documented interface.
6665
6666 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
6667
6668         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
6669         with actual SPE/paired vector modes before using 64-bit alignment.
6670         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
6671
6672 2009-09-10  DJ Delorie  <dj@redhat.com>
6673
6674         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
6675         emitted.
6676
6677         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
6678         * config/mep/mep.c (mep_legitimate_constant_p): New.
6679         * config/mep/mep-protos.h: Prototype it.
6680
6681 2009-09-10  Richard Henderson  <rth@redhat.com>
6682
6683         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
6684
6685 2009-09-10  Jason Merrill  <jason@redhat.com>
6686
6687         * tree.c (chain_index): New fn.
6688         * tree.h: Declare it.
6689
6690 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6691
6692         * config/sol2-c.c (cmn_err_length_specs): Initialize
6693         scalar_identity_flag.
6694
6695 2009-09-10  Richard Henderson  <rth@redhat.com>
6696
6697         * tree.h (struct tree_decl_common): Move align member earlier;
6698         move label_decl_uid member ...
6699         (struct tree_label_decl): ... here.
6700         (LABEL_DECL_UID): Update to match.
6701
6702         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
6703         not TDF_DETAILS.
6704
6705         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
6706         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
6707
6708         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
6709         dest_prev if the edge is complex.
6710
6711         * tree-cfg.c (is_ctrl_stmt): Use a switch.
6712
6713         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
6714         loop latch tests earlier.
6715
6716         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
6717         before GIMPLE_RETURN, not after its predecessor; insert
6718         before GIMPLE_RESX.
6719
6720         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
6721         gimple_seq_empty_p to test for no PHI nodes.
6722         * tree-cfg.c (split_critical_edges): Likewise.
6723
6724         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
6725
6726 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
6727
6728         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
6729         introduced by the VTA branch merge.
6730
6731 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
6732
6733         * ira-conflicts.c: Use fputs or putc instead of fprintf
6734         where appropriate.
6735         * cfg.c: Ditto.
6736         * toplev.c: Ditto.
6737         * tree-switch-conversion.c: Ditto.
6738
6739 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
6740
6741         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
6742         introduced by the VTA branch merge.
6743
6744 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
6745
6746         Revert:
6747         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
6748
6749         PR rtl-optimization/39779
6750         * expr.c (convert_modes): Return when mode == oldmode after
6751         CONST_INTs are processed.
6752
6753 2009-09-10  Nick Clifton  <nickc@redhat.com>
6754
6755         * config/mep/mep.c (mep_encode_section_info): Copy weakness
6756         attribute and referring decl when creating renamed symbol.
6757
6758 2009-09-10  Richard Guenther  <rguenther@suse.de>
6759
6760         PR middle-end/41257
6761         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
6762         reachable nodes.
6763         (cgraph_finalize_compilation_unit): Compute reachability
6764         before emitting thunks.  Properly process aliases before
6765         possibly removing unreachable nodes.
6766
6767 2009-09-10  Richard Guenther  <rguenther@suse.de>
6768
6769         PR middle-end/41254
6770         * tree.c (struct free_lang_data_d): Add worklist member.
6771         (find_decls_types_r): Push onto the worklist instead of recursing.
6772         Handle TREE_BINFOs properly.
6773         (find_decls_types): New function wrapped around find_decls_types_r
6774         to process the worklist.
6775         (find_decls_types_in_eh_region): Use it.
6776         (find_decls_types_in_node): Likewise.
6777         (find_decls_types_in_var): Likewise.
6778         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
6779         * tree.h (RECORD_OR_UNION_TYPE_P): New.
6780         (AGGREGATE_TYPE_P): Adjust.
6781
6782 2009-09-09  Jason Merrill  <jason@redhat.com>
6783
6784         * configure.ac: Check glibc version even if we have an in-tree
6785         assembler.
6786
6787 2009-09-09  Anthony Green  <green@moxielogic.com>
6788
6789         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
6790         the constant 0 when appropriate.
6791         * config/moxie/constraints.md: Add constraint O.
6792
6793         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
6794         to pass up to 6 32-bit argument values in registers.
6795         (moxie_function_arg): Ditto.
6796         (moxie_arg_partial_bytes): Ditto.
6797         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
6798         (REG_PARM_STACK_SPACE): Ditto.
6799         (FUNCTION_ARG_REGNO_P): Ditto.
6800
6801         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
6802         instruction to allocate stack space.
6803
6804 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
6805
6806         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
6807         unnecessarily stringent constraints.  Fix address
6808         calculation in the splitters.
6809
6810 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
6811
6812         PR rtl-optimization/39779
6813         * expr.c (convert_modes): Return when mode == oldmode after
6814         CONST_INTs are processed.
6815
6816 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
6817
6818         PR/41315
6819         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
6820         (ix86_expand_prologue): Take frame.padding0 into logic of
6821         to_allocate checks.
6822         (ix86_expand_epilogue): Likewise.
6823
6824 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
6825
6826         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
6827         New variables.
6828         (SHLIB_LINK, SHLIB_INSTALL): Use them.
6829         * config/t-slibgcc-libgcc: New file.
6830         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
6831
6832 2009-09-09  Martin Jambor  <mjambor@suse.cz>
6833
6834         PR tree-optimization/41089
6835         * tree-sra.c (find_var_candidates): Do not consider va_lists in
6836         early SRA.
6837
6838 2009-09-09  Richard Henderson  <rth@redhat.com>
6839
6840         * gimple.h (CASE_GIMPLE_OMP): New.
6841         (is_gimple_omp): Use it.
6842         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
6843         (verify_gimple_debug): Likewise.
6844
6845 2009-09-09  Richard Guenther  <rguenther@suse.de>
6846
6847         PR tree-optimization/41101
6848         * tree-ssa-pre.c (maximal_set): Remove.
6849         (compute_antic_aux): Treat the maximal set as implicitly all ones.
6850         Defer all blocks we didn't visit at least one successor.
6851         (add_to_exp_gen): Do not add to the maximal set.
6852         (make_values_for_phi): Likewise.
6853         (compute_avail): Likewise.
6854         (init_pre): Do not allocate the maximal set.
6855         (execute_pre): Do not dump it.
6856
6857 2009-09-09  Martin Jambor  <mjambor@suse.cz>
6858
6859         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
6860         an SSA_NAME rather than a is_gimple_variable.
6861
6862 2009-09-09  Richard Guenther  <rguenther@suse.de>
6863
6864         PR middle-end/41317
6865         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
6866         code dealing with plain pointer bases.
6867         (maybe_fold_offset_to_reference): Likewise.
6868         (maybe_fold_stmt_addition): Adjust.
6869
6870 2009-09-09  Richard Guenther  <rguenther@suse.de>
6871
6872         * tree.c (free_lang_data_in_type): Do not free the type variant
6873         chains.
6874         (free_lang_data): Merge char_type_node with its properly signed
6875         variant.
6876         (pass_ipa_free): Collect after freeing language specific data.
6877
6878 2009-09-09  Michael Matz  <matz@suse.de>
6879
6880         PR middle-end/41268
6881         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
6882         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
6883         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
6884         to reflect reality.
6885
6886 2009-09-08  DJ Delorie  <dj@redhat.com>
6887
6888         * config/mep/mep.c (conversions[]): Add "ml" pattern.
6889
6890 2009-09-04  Jason Merrill  <jason@redhat.com>
6891
6892         * tree.c (tree_find_value): Remove.
6893         * tree.h: Remove prototype.
6894         * varasm.c (assemble_external): Use value_member instead.
6895
6896 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6897
6898         * toplev.c (process_options): Choose default debugging type when
6899         gtoggle enables debug info and type is unset.
6900
6901 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6902
6903         PR debug/41276
6904         PR debug/41307
6905         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
6906         invalid subreg.
6907
6908 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6909
6910         * configure: Rebuilt with modified libtool.m4.
6911
6912 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6913
6914         PR debug/41229
6915         PR debug/41291
6916         PR debug/41300
6917         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
6918
6919 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6920
6921         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
6922         (remove_statement): Likewise.
6923         (rewrite_use_nonlinear_expr): Adjust.
6924         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
6925         * tree-ssa.c (release_defs_bitset): ... this.  New.
6926         * tree-flow.h (release_defs_bitset): Declare.
6927
6928 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6929
6930         PR debug/41232
6931         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
6932         in the middle block.
6933
6934 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
6935
6936         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
6937         via intptr_t to long type.
6938         (insert_operand_rank): Cast long type via intptr_t to
6939         pointer type.
6940         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
6941         pointer to scalar.
6942         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
6943         from pointer to unsigned via uintptr_t.
6944
6945         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
6946         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
6947         and HAVE_INTPTR_T.
6948         * configure: Regenerated.
6949         * config.in: Regenerated
6950         * system.h (stdint.h): Add include.
6951         (inttypes.h): Likewise.
6952         * Makefile.in (aclocal): Add config/stdint.m4.
6953         * aclocal.m4: Regenerated.
6954
6955 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
6956
6957         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
6958         variables.
6959         (note_np_check_stores): New function.
6960         (harmless_null_pointer_p): New function.
6961         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
6962         changed.  Take into account whether we're in the shadow of a condjump
6963         that tested NP_REG for NULL.
6964         Lose all code that tested for SEQUENCEs.
6965         (workaround_speculation): Avoid inserting NOPs for loads that are
6966         either always executed or a NULL pointer.
6967
6968 2009-09-08  Jan Hubicka  <jh@suse.cz>
6969
6970         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
6971         * params.def (early-inlining-insns): Likewise.
6972
6973 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
6974
6975         PR rtl-optimization/41239
6976         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
6977         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
6978         lists.
6979         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
6980         across calls, as the calls might not always return normally.
6981         (call_may_noreturn_p): New function.
6982         (deps_analyze_insn): Update last_function_call_may_noreturn list.
6983         (init_deps): Initialize it.
6984         (remove_from_deps): Also remove calls from
6985         last_function_call_may_noreturn list.
6986
6987 2009-09-07  Richard Henderson  <rth@redhat.com>
6988
6989         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
6990         more VR->OPERANDS than LHS operands.  Free LHS before returning.
6991
6992 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
6993
6994         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
6995         (attr "addrtype"): New member "spreg".
6996         Use it if mem_spfp_address_operand is true for the address.
6997         (attr "type"): New entry "stall".
6998         (cpu_unit "load"): New.
6999         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
7000         "load".
7001         (insn_reservation "loadsp"): New.
7002         (insn_reservation "load_stall1"): New.
7003         (insn_reservation "load_stall3"): New.
7004         (stall): New insn.
7005         * config/bfin/predicates.md (const1_operand, const3_operand): New.
7006         (mem_p_address_operand): Exclude stack and frame pointer based
7007         addresses.
7008         (mem_spfp_address_operand): New; match them here.
7009         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
7010         (bfin_reorg): Call it if scheduling insns.
7011         (bfin_gen_bundles): Remove dummy insns created by
7012         add_sched_insns_for_speculation.
7013
7014         From Jie Zhang <jie.zhang@analog.com>:
7015         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
7016         bfin_si_revision, bfin_workarounds): Move these ...
7017         * config/bfin/bfin.h: ... here.
7018
7019         From Mike Frysinger  <michael.frysinger@analog.com>
7020         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
7021         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
7022         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
7023         bf547m, bf548m, and bf549m.
7024         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
7025         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
7026         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
7027         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
7028         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
7029         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
7030         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
7031         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
7032         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
7033         bf542m, bf544m, bf547m, bf548m, and bf549m.
7034
7035         From Jie Zhang <jie.zhang@analog.com>:
7036         * config/bfin/predicates.md (p_register_operand): New predicate.
7037         (dp_register_operand): New predicate.
7038         * config/bfin/bfin-protos.h (WA_05000074): Define.
7039         (ENABLE_WA_05000074): Define.
7040         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
7041         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
7042         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
7043         (define_attr addrtype): Allow load/store register to be P register.
7044         (define_attr storereg): New.
7045         (define_cpu_unit anomaly_05000074): New.
7046         (define_insn_reservation dsp32shiftimm): New.
7047         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
7048         (define_insn_reservation loadp): Cannot use slot2.
7049         (define_insn_reservation loadsp): Cannot use slot2.
7050         (define_insn_reservation storep): Cannot use slot2. Does not
7051         apply when working around 05000074.
7052         (define_insn_reservation storep_anomaly_05000074): New.
7053         (define_insn_reservation storei): Does not apply when working
7054         around 05000074.
7055         (define_insn_reservation storei_anomaly_05000074): New.
7056         (define_attr length): Add dsp32shiftimm case.
7057         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
7058         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
7059         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
7060         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
7061         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
7062
7063 2009-09-07  Martin Jambor  <mjambor@suse.cz>
7064
7065         PR middle-end/41282
7066         * tree-sra.c (create_artificial_child_access): Return NULL if
7067         build_ref_for_offset fails.
7068         (propagate_subacesses_accross_link): Allow build_ref_for_offset
7069         and create_artificial_child_access to fail.
7070
7071 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
7072
7073         PR c++/41214
7074         * unwind-dw2.c (uw_init_context_1): Mark noinline.
7075         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
7076         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
7077
7078 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
7079
7080         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
7081         block, ensure it has an exit edge.  Emit a barrier after a jump.
7082
7083 2009-09-07  Nick Clifton  <nickc@redhat.com>
7084
7085         * gcc.c (this_is_linker_script): New variable.  Like
7086         this_is_library_file but for the %T constructor.
7087         (end_going_arg): If this_is_linker_script is set then locate the
7088         script and insert a --script switch before it
7089         (do_spec_2): Initialise this_is_linker_script.
7090         (do_spec_1): Likewise.  Handle %T construct.
7091         (eval_spec_function): Preserve this_is_linker_script.
7092         * doc/invoke.texi: Document %T construct in spec files.
7093         * config/m32c/m32c.h (LIB_SPEC): Use it.
7094
7095 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7096
7097         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
7098         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
7099         when volatile flag is set.
7100         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
7101
7102 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
7103
7104         PR bootstrap/41241
7105         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
7106         (combine_stack_adjustments_for_block): Allow insns between stack
7107         adjustments and stores with corresponding pre-(dec|inc)rement or
7108         pre-modify operation.
7109
7110 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
7111
7112         PR bootstrap/41241
7113         * combine-stack-adj.c (struct csa_memlist): Rename to...
7114         (struct csa_reflist): ... this.  Rename mem field to ref.
7115         (free_csa_memlist): Rename to...
7116         (free_csa_reflist): ... this.
7117         (record_one_stack_memref): Rename to...
7118         (record_one_stack_ref): ... this.  Handle also REG_P.
7119         (try_apply_stack_adjustment): Handle also REG_P.
7120         (struct record_stack_memrefs_data): Rename to...
7121         (struct record_stack_refs_data): ... this.  Rename memlist field to
7122         reflist.
7123         (record_stack_memrefs): Rename to...
7124         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
7125         subexpressions instead of failing when a MEM contains SP references.
7126         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
7127         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
7128
7129 2009-09-06  Richard Guenther  <rguenther@suse.de>
7130
7131         PR middle-end/41144
7132         * tree.c (build_array_type): Do not record types marked
7133         with structural equality in the canonical type hashtable.
7134
7135 2009-09-06  Richard Guenther  <rguenther@suse.de>
7136
7137         PR middle-end/41261
7138         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
7139
7140 2009-09-05  Richard Guenther  <rguenther@suse.de>
7141
7142         PR middle-end/41181
7143         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
7144
7145 2009-09-05  Richard Guenther  <rguenther@suse.de>
7146
7147         PR debug/41273
7148         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
7149
7150 2009-09-05  Richard Guenther  <rguenther@suse.de>
7151
7152         PR middle-end/41271
7153         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
7154         before comparing function argument types.
7155
7156 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7157
7158         PR target/41024
7159         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
7160         the assembler.
7161
7162 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
7163
7164         Revert:
7165         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
7166
7167         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
7168         locators before emit_insn is called.
7169
7170 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
7171
7172         PR bootstrap/41241
7173         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
7174         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
7175         (reginfo_init): Don't call allocate_reg_info.
7176
7177 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
7178
7179         PR target/41262
7180         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
7181         NONDEBUG_INSN_P instead of INSN_P.
7182
7183 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
7184
7185         PR debug/41225
7186         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
7187
7188 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
7189
7190         PR target/41252
7191         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
7192         pattern of the split.
7193
7194 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
7195
7196         * toplev.c (process_options): Move setter of flag_var_tracking
7197         before other tests that depend on it.  Move down setter of
7198         flag_rename_registers.  Don't enable var-tracking-assignments
7199         by default if selective scheduling is enabled.  Warn if both
7200         are enabled.
7201
7202 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
7203
7204         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
7205         comment.  Use switch statement to catch overlaps between rtx
7206         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
7207         (IS_DECL_CODE): ... here. Remove.
7208         (check_value_is_not_decl): Remove.
7209         (dv_from_decl, dv_from_value): Check after conversion.
7210
7211 2009-09-04  Richard Guenther  <rguenther@suse.de>
7212
7213         PR middle-end/41257
7214         * (cgraph_finalize_compilation_unit): Move finalizing aliases
7215         after emitting tunks.  Move emitting thunks and ctors from ...
7216         (cgraph_optimize): ... here.  Remove redundant
7217         cgraph_analyze_functions.
7218         * varasm.c (find_decl_and_mark_needed): Remove no longer
7219         necessary check.
7220         (finish_aliases_1): Adjust check for thunk aliases.
7221
7222 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
7223
7224         * config/arm/arm.md (ctzsi2): Added braces
7225         to avoid warning that broke booststrap.
7226
7227 2009-09-04  Martin Jambor  <mjambor@suse.cz>
7228
7229         PR tree-optimization/41112
7230         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
7231         handle variable-bounded arrays.
7232         (expr_with_var_bounded_array_refs_p): New function.
7233         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
7234
7235 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
7236
7237         * config/s390/2097.md: Removed two incorrect bypasses.
7238         (z10_fsimpdf): Fixed latency.
7239         (z10_fhex): New insn_reservation.
7240         (z10_floaddf): Fixed latency.
7241         (z10_floadsf): Fixed latency.
7242         (z10_ftrunctf): Fixed latency.
7243         (z10_ftruncdf): Fixed latency.
7244         * config/s390/s390.c (z10_cost): Fixed values.
7245         (s390_adjust_priority): Added z10 path.
7246         * config/s390/s390.md (type): Added fhex.
7247         (*mov<mode>_64dfp): Updated type attribute.
7248         (*mov<mode>_64): Updated type attribute.
7249         (*mov<mode>_31): Updated type attribute.
7250         (*mov<mode>"): Likewise.
7251         * config/s390/2084.md (x_fsimpdf): Updated condition.
7252
7253 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
7254
7255         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
7256         RTXs in the predicate for operand 1.
7257
7258 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
7259
7260         * config/arm/arm.md (UNSPEC_RBIT): New constant.
7261         (rbitsi2): New insn.
7262         (ctzsi2): New expand.
7263         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
7264
7265 2009-09-03  Martin Jambor  <mjambor@suse.cz>
7266
7267         * tree-sra.c (duplicate_expr_for_different_base): Removed.
7268         (create_artificial_child_access): Use build_ref_for_offset instead
7269         of duplicate_expr_for_different_base.
7270         (propagate_subacesses_accross_link): Likewise.
7271
7272 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
7273
7274         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
7275         of INSN_P.
7276         (mips16e_collect_argument_saves): Skip debug instructions.
7277         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
7278         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
7279         (r10k_insert_cache_barriers): Likewise.
7280         (mips_reorg_process_insns): Likewise.
7281
7282 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
7283
7284         PR bootstrap/41241
7285         * ira.c (update_equiv_reg): Remove check on class likely spill.
7286
7287 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
7288
7289         PR debug/41236
7290         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
7291         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
7292         it or SUBREG.
7293
7294         PR debug/41238
7295         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
7296         the stack slot if it is passed by invisible reference.
7297         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
7298         by invisible reference.
7299
7300 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
7301
7302         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
7303         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
7304         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
7305         0.
7306         * config/bfin/sync.md: New file.
7307         * config/bfin/bfin.md: Include it.
7308         (UNSPEC_ATOMIC): New.
7309         (UNSPEC_ONES): Provide a unique number.
7310
7311         From Jie Zhang <jie.zhang@analog.com>:
7312         * config/bfin/bfin.c (ret_regs): New.
7313         (must_save_fp_p): Don't return true because of frame_pointer_needed.
7314         (must_save_rets_p): New.
7315         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
7316         current_function_is_leaf.
7317         (do_link): Likewise.
7318         (do_unlink): Likewise.
7319         (expand_interrupt_handler_prologue): Use ret_regs array.
7320         (expand_interrupt_handler_epilogue): Use ret_regs array and
7321         pass return register to gen_return_internal.
7322         (bfin_expand_epilogue): Pass return register to
7323         gen_return_internal.
7324         (bfin_expand_call): Explicitly clobber RETS.
7325         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
7326         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
7327         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
7328         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
7329         RETS.
7330         (return_internal): Take a reg rtx rather than the register number.
7331
7332 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
7333
7334         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
7335         when comparing against estimated_loop_iterations_int return.
7336
7337 2009-09-03  Richard Guenther  <rguenther@suse.de>
7338
7339         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
7340         eh_personality_libfunc.
7341
7342 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
7343
7344         * tree-parloops.c (separate_decls_in_region): Add space.
7345
7346 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
7347
7348         * tree-parloops.c (separate_decls_in_region): Change the condition
7349         checking if there are reductions in the loop.
7350
7351 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
7352
7353         PR tree-optimization/38275
7354         * tree-parloops.c (parallelize_loops): Replace profitability condition
7355         for expected number of iterations.
7356
7357 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
7358
7359         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
7360         (bootstrap-debug): Explain conditions in which it becomes default.
7361         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
7362         make it add to it.
7363
7364 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
7365
7366         * doc/invoke.texi (Optimize Options): Move
7367         -finline-small-functions to the -O2 list.
7368
7369 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
7370
7371         * toplev.c (process_options): Enable var-tracking-assignments
7372         by default if var-tracking is enabled.
7373
7374 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
7375
7376         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
7377         barrier.
7378         * emit-rtl.c (prev_nonnote_insn_bb): New function.
7379         * rtl.h (prev_nonnote_insn_bb): Declare it.
7380
7381 2009-09-03  Diego Novillo  <dnovillo@google.com>
7382
7383         * cgraph.c (cgraph_node_for_decl): New.
7384         * cgraph.h (cgraph_node_for_decl): Declare.
7385         * tree.c (host_integerp): Return 0 if T is NULL.
7386
7387 2009-09-03  Diego Novillo  <dnovillo@google.com>
7388
7389         * tree.h (struct alias_pair): Move from varasm.c.
7390         (alias_pairs): Likewise.
7391         (TYPE_MAXVAL): Define.
7392         (TYPE_MINVAL): Define.
7393         (iterative_hash_host_wide_int): Declare.
7394         (remove_unreachable_alias_pairs): Declare.
7395         * tree-pass.h (pass_ipa_free_lang_data): Declare.
7396         * diagnostic.c (default_diagnostic_starter): Make extern.
7397         (default_diagnostic_finalizer): Make extern.
7398         * diagnostic.h (default_diagnostic_starter): Declare.
7399         (default_diagnostic_finalizer): Declare.
7400         (default_tree_printer): Declare.
7401         * toplev.c (default_tree_printer): Make extern.
7402
7403 2009-09-03  Richard Guenther  <rguenther@suse.de>
7404             Diego Novillo  <dnovillo@google.com>
7405
7406         * cgraph.c (cgraph_add_new_function): Remove gimplification.
7407         * cgraphunit.c (cgraph_expand_function): Do not emit
7408         associated thunks from here.
7409         (cgraph_emit_thunks): New.
7410         (cgraph_optimize): Call it.
7411         Return if any IPA pass finds an error.
7412         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
7413         by thunks.
7414
7415 2009-09-03  Simon Baldwin  <simonb@google.com>
7416             Rafael Espindola  <espindola@google.com>
7417             Richard Guenther  <rguenther@suse.de>
7418             Doug Kwan  <dougkwan@google.com>
7419             Diego Novillo  <dnovillo@google.com>
7420
7421         * tree.c: Include tree-pass.h, langhooks-def.h,
7422         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
7423         (free_lang_data_in_type): New.
7424         (need_assembler_name_p): New.
7425         (free_lang_data_in_block): New.
7426         (free_lang_data_in_decl): New.
7427         (struct free_lang_data_d): New.
7428         (add_tree_to_fld_list): New.
7429         (find_decls_types_r): New.
7430         (get_eh_types_for_runtime): New.
7431         (find_decls_types_in_eh_region): New.
7432         (find_decls_types_in_node): New.
7433         (find_decls_types_in_var): New.
7434         (free_lang_data_in_cgraph): New.
7435         (free_lang_data): New.
7436         (gate_free_lang_data): New.
7437         (pass_ipa_free_lang_data): New.
7438
7439 2009-09-03  Diego Novillo  <dnovillo@google.com>
7440
7441         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
7442         * langhooks.h (struct lang_hooks): Add field free_lang_data.
7443         (lang_hooks): Remove const qualifier.
7444         * ipa.c (cgraph_remove_unreachable_nodes): Call
7445         remove_unreachable_alias_pairs.
7446         * except.c (add_type_for_runtime): Check if TYPE has
7447         already been converted.
7448         (lookup_type_for_runtime): Likewise.
7449         (check_handled): Handle converted types.
7450         * varasm.c (remove_unreachable_alias_pairs): New.
7451         * gimple.c: Include demangle.h.
7452         (gimple_decl_printable_name): New.
7453         (gimple_fold_obj_type_ref): New.
7454         * gimple.h (gimple_decl_printable_name): Declare.
7455         (gimple_fold_obj_type_ref): Declare.
7456         * passes.c (init_optimization_passes): Add pass
7457         pass_ipa_free_lang_data.
7458         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
7459         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
7460
7461 2009-09-03  Diego Novillo  <dnovillo@google.com>
7462
7463         * c-lang.c (lang_hooks): Remove const qualifier.
7464
7465 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
7466
7467         * doc/install.texi (*-*-freebsd*): Update target information.
7468
7469 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
7470
7471         * hard-reg-set.h (call_fixed_regs): Remove.
7472         * reginfo.c (call_fixed_regs): Remove.
7473         (init_reg_sets_1): Remove initialization of call_fixed_regs.
7474         (globalize_reg): Don't use call_fixed_regs.
7475         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
7476         call_fixed_regs.
7477
7478 2009-09-01  Michael Matz  <matz@suse.de>
7479
7480         * expr.h (emit_storent_insn, expand_expr_real_1,
7481         expand_expr_real_2): Declare.
7482         * expr.c (emit_storent_insn, expand_expr_real_1,
7483         expand_expr_real_2): Export.
7484         (store_expr): Setting and evaluating dont_return_target is useless.
7485         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
7486         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
7487         * except.c (expand_resx_expr): Rename to ...
7488         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
7489         * except.h (expand_resx_stmt): Declare.
7490         * stmt.c: Add include gimple.h
7491         (expand_asm_expr): Rename to ...
7492         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
7493         (expand_case): Rewrite to take gimple statement.
7494         * tree.h (expand_asm_stmt): Declare.
7495         (expand_case): Change prototype.
7496         * Makefile.in (stmt.o): Depend on gimple.h.
7497         * builtins.c (expand_builtin_synchronize): Build gimple asm
7498         statement, not an ASM_EXPR.
7499         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
7500         gimple_to_tree, release_stmt_tree): Remove.
7501         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
7502         ggc_free, but hold comparison code and operands separately.
7503         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
7504         (expand_call_stmt, expand_gimple_stmt_1,
7505         expand_gimple_stmt): New helpers.
7506         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
7507         release_stmt_tree.  Call expand_gimple_stmt instead.
7508         (expand_gimple_basic_block): Ditto.
7509
7510         * calls.c (emit_call_1): Don't look at EH regions here, make
7511         fntree parameter useless.
7512         (expand_call): New local rettype for TREE_TYPE(exp), use it
7513         throughout.  Remove local p, use addr instead.
7514         Don't look at EH regions here.
7515
7516 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
7517
7518         * doc/invoke.texi (-fsched-pressure): Document it.
7519         (-fsched-reg-pressure-heuristic): Remove it.
7520
7521         * reload.c (ira.h): Include.
7522         (find_reloads): Add choosing reload on number of small spilled
7523         classes.
7524
7525         * haifa-sched.c (ira.h): Include.
7526         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
7527         saved_reg_pressure, curr_reg_live, saved_reg_live,
7528         region_ref_regs): New variables.
7529         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
7530         initiate_reg_pressure_info, setup_ref_regs,
7531         initiate_bb_reg_pressure_info, save_reg_pressure,
7532         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
7533         functions.
7534         (setup_insn_reg_pressure_info): New function.
7535         (rank_for_schedule): Add pressure checking and insn issue time.
7536         Remove comparison of insn reg weights.
7537         (ready_sort): Set insn reg pressure info.
7538         (update_register_pressure, setup_insn_max_reg_pressure,
7539         update_reg_and_insn_max_reg_pressure,
7540         sched_setup_bb_reg_pressure_info): New functions.
7541         (schedule_insn): Add code for printing and updating reg pressure info.
7542         (find_set_reg_weight, find_insn_reg_weight): Remove.
7543         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
7544         (debug_ready_list): Print reg pressure info.
7545         (schedule_block): Ditto.  Check insn issue time.
7546         (sched_init): Set up sched_pressure_p.  Allocate and set up some
7547         reg pressure related info.
7548         (sched_finish): Free some reg pressure related info.
7549         (fix_tick_ready): Make insn always ready if pressure_p.
7550         (init_h_i_d): Don't call find_insn_reg_weight.
7551         (haifa_finish_h_i_d): Free insn reg pressure info.
7552
7553         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
7554         ira_memory_move_cost, ira_class_hard_regs,
7555         ira_class_hard_regs_num, ira_no_alloc_regs,
7556         ira_available_class_regs, ira_reg_class_cover_size,
7557         ira_reg_class_cover, ira_class_translate): Move to ira.h.
7558
7559         * ira-lives.c (single_reg_class): Check mode to find how many
7560         registers are necessary for operand.
7561         (ira_implicitly_set_insn_hard_regs): New.
7562
7563         * common.opt (fsched-pressure): New options.
7564         (fsched-reg-pressure-heuristic): Remove.
7565
7566         * ira.c (setup_eliminable_regset): Rename to
7567         ira_setup_eliminable_regset.  Make it external.
7568         (expand_reg_info): Pass cover class to setup_reg_classes.
7569         (ira): Call resize_reg_info instead of allocate_reg_info.
7570
7571         * sched-deps.c: Include ira.h.
7572         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
7573         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
7574         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
7575         mark_insn_hard_regno_birth, mark_insn_reg_birth,
7576         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
7577         mark_insn_reg_store, mark_insn_reg_clobber,
7578         setup_insn_reg_pressure_info): New.
7579         (sched_analyze_1): Update implicit_reg_pending_uses.
7580         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
7581         Use them to create dependencies.  Set insn reg uses and pressure
7582         info.  Process reg_pending_uses in one place.
7583         (free_deps): Free implicit sets.
7584         (remove_from_deps): Remove implicit sets if necessary.  Check
7585         implicit sets when clearing reg_last_in_use.
7586         (init_deps_global): Clear implicit_reg_pending_clobbers and
7587         implicit_reg_pending_uses.
7588
7589         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
7590         ira_memory_move_cost, ira_class_hard_regs,
7591         ira_class_hard_regs_num, ira_no_alloc_regs,
7592         ira_available_class_regs, ira_reg_class_cover_size,
7593         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
7594         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
7595         ira_implicitly_set_insn_hard_regs): New prototypes.
7596
7597         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
7598         cost_elements_num): New variables.
7599         (allocno_costs, total_costs): Rename to costs and
7600         total_allocno_costs.
7601         (COSTS_OF_ALLOCNO): Rename to COSTS.
7602         (allocno_pref): Rename to pref.
7603         (allocno_pref_buffer): Rename to pref_buffer.
7604         (common_classes): Rename to regno_cover_class.
7605         (COST_INDEX): New.
7606         (record_reg_classes): Set allocno attributes only if allocno_p.
7607         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
7608         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
7609         and COSTS_OF_ALLOCNO.
7610         (print_costs): Rename to print_allocno_costs.
7611         (print_pseudo_costs): New.
7612         (process_bb_node_for_costs): Split into 2 functions with new
7613         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
7614         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
7615         new parameter dump_file.  Use cost_elements_num instead of
7616         ira_allocnos_num.  Make one iteration if preferred classes were
7617         already calculated for scheduler.  Make 2 versions of code
7618         depending on allocno_p.
7619         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
7620         regno_cover_class and COSTS instead of common_classes and
7621         COSTS_OF_ALLOCNO.
7622         (init_costs, finish_costs): New.
7623         (ira_costs): Set up allocno_p and cost_elements_num.  Call
7624         init_costs and finish_costs.
7625         (ira_set_pseudo_classes): New.
7626
7627         * rtl.h (allocate_reg_info): Remove.
7628         (resize_reg_info): Change return type.
7629         (reg_cover_class): New.
7630         (setup_reg_classes): Add new parameter.
7631
7632         * sched-int.h (struct deps_reg): New member implicit_sets.
7633         (sched_pressure_p, sched_regno_cover_class): New external definitions.
7634         (INCREASE_BITS): New macro.
7635         (struct reg_pressure_data, struct reg_use_data): New.
7636         (struct _haifa_insn_data): Remove reg_weight.  Add members
7637         reg_pressure, reg_use_list, reg_set_list, and
7638         reg_pressure_excess_cost_change.
7639         (struct deps): New member implicit_sets.
7640         (pressure_p): New variable.
7641         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
7642         (struct reg_pressure_data, struct reg_use_data): New.
7643         (INSN_REG_WEIGHT): Remove.
7644         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
7645         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
7646         (sched_init_region_reg_pressure_info,
7647         sched_setup_bb_reg_pressure_info): New prototypes.
7648
7649         * reginfo.c (struct reg_pref): New member coverclass.
7650         (reg_cover_class): New function.
7651         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
7652         (reg_info_size): New variable.
7653         (allocate_reg_info): Make static.  Setup reg_info_size.
7654         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
7655         (setup_reg_classes): Add a new parameter.  Setup cover class too.
7656
7657         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
7658         the dependencies.
7659
7660         * sched-rgn.c (deps_join): Set up implicit_sets.
7661         (schedule_region): Set up region and basic blocks pressure
7662         relative info.
7663
7664         * passes.c (init_optimization_passes): Move
7665         pass_subregs_of_mode_init before pass_sched.
7666
7667 2009-09-02  Martin Jambor  <mjambor@suse.cz>
7668
7669         * tree-sra.c (struct access): New field grp_hint.
7670         (dump_access): Dump grp_hint.
7671         (sort_and_splice_var_accesses): Set grp_hint if a group is read
7672         multiple times.
7673         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
7674         those which have been specifically read and somehow written to.
7675         (propagate_subacesses_accross_link): Set grp_hint of right child and
7676         also possibly of the left child.
7677
7678 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
7679
7680         * tree-object-size.c (addr_object_size): Always use object_size_type
7681         0 or 2 when determining the pointer pointed object size.
7682
7683 2009-09-02  Richard Guenther  <rguenther@suse.de>
7684
7685         Revert
7686         2009-08-31  Richard Guenther  <rguenther@suse.de>
7687
7688         * builtins.c (fold_builtin_memory_op): Use the alias oracle
7689         to query if the memory regions for memmove overlap.
7690         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
7691         asserts on pointers, instead deal with odd trees.
7692         (ptr_derefs_may_alias_p): Likewise.
7693         (refs_may_alias_p_1): Constructor bases also never alias.
7694
7695 2009-08-01  Christian Bruel  <christian.bruel@st.com>
7696
7697         Revert:
7698         2009-07-31  Christian Bruel  <christian.bruel@st.com>
7699         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
7700
7701 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
7702
7703         * doc/invoke.texi (-fvar-tracking-assignments): New.
7704         (-fvar-tracking-assignments-toggle): New.
7705         (-fdump-final-insns=file): Mark filename as optional.
7706         (--param min-nondebug-insn-uid): New.
7707         (-gdwarf-@{version}): Mention version 4.
7708         * opts.c (common_handle_option): Accept it.
7709         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
7710         * regrename.c (regrename_optimize): Drop last.  Don't count debug
7711         insns as uses.  Don't reject change because of debug insn.
7712         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
7713         from the chain starter, and check for inexact matches in DEBUG_INSNS.
7714         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
7715         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
7716         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
7717         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
7718         * doc/gimple.texi (is_gimple_debug): New.
7719         (gimple_debug_bind_p): New.
7720         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
7721         * doc/install.texi (bootstrap-debug): More details.
7722         (bootstrap-debug-big, bootstrap-debug-lean): Document.
7723         (bootstrap-debug-lib): More details.
7724         (bootstrap-debug-ckovw): Update.
7725         (bootstrap-time): New.
7726         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
7727         (insert_phi_nodes_for): Insert debug stmts.
7728         (rewrite_stmt): Take iterator.  Insert debug stmts.
7729         (rewrite_enter_block): Adjust.
7730         (maybe_replace_use_in_debug_stmt): New.
7731         (rewrite_update_stmt): Use it.
7732         (mark_use_interesting): Return early for debug stmts.
7733         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
7734         stmts before replacing stmt.
7735         (move_computations_stmt): Likewise.
7736         * ira-conflicts.c (add_copies): Skip debug insns.
7737         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
7738         (regstat_bb_compute_ri): Skip debug insns.
7739         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
7740         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
7741         check_loop_closed_ssa_stmt): Skip debug stmts.
7742         * tree-tailcall.c (find_tail_calls): Likewise.
7743         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7744         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
7745         (build_var_debug_value_stat): Declare.
7746         (build_var_debug_value): Define.
7747         (target_for_debug_bind): Declare.
7748         * reload.c (find_equiv_reg): Skip debug insns.
7749         * rtlanal.c (reg_used_between_p): Skip debug insns.
7750         (side_effects_p): Likewise.
7751         (canonicalize_condition): Likewise.
7752         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
7753         insns never depend on debug insns.
7754         (create_ddg_dep_no_link): Likewise.
7755         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
7756         Don't add inter-loop dependencies for debug insns.
7757         (build_intra_loop_deps): Likewise.
7758         (create_ddg): Count debug insns.
7759         * ddg.h (struct ddg::num_debug): New.
7760         (num_backargs): Pair up with previous int field.
7761         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
7762         -fcompare-debug-second.
7763         * final.c (get_attr_length_1): Skip debug insns.
7764         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
7765         * gcc.c (invoke_as): Call compare-debug-dump-opt.
7766         (driver_self_specs): Map -fdump-final-insns to
7767         -fdump-final-insns=..
7768         (get_local_tick): New.
7769         (compare_debug_dump_opt_spec_function): Test for . argument and
7770         compute output name.  Compute temp output spec without flag name.
7771         Compute -frandom-seed.
7772         (OPT): Undef after use.
7773         * cfgloopanal.c (num_loop_insns): Skip debug insns.
7774         (average_num_loop_insns): Likewise.
7775         * params.h (MIN_NONDEBUG_INSN_UID): New.
7776         * gimple.def (GIMPLE_DEBUG): New.
7777         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
7778         * auto-inc-dec.c (merge_in_block): Skip debug insns.
7779         (merge_in_block): Fix whitespace.
7780         * toplev.c (flag_var_tracking): Update comment.
7781         (flag_var_tracking_assignments): New.
7782         (flag_var_tracking_assignments_toggle): New.
7783         (process_options): Don't open final insns dump file if we're not
7784         going to write to it.  Compute defaults for var_tracking.
7785         * df-scan.c (df_insn_rescan_debug_internal): New.
7786         (df_uses_record): Handle debug insns.
7787         * haifa-sched.c (ready): Initialize n_debug.
7788         (contributes_to_priority): Skip debug insns.
7789         (dep_list_size): New.
7790         (priority): Use it.
7791         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
7792         they're ready.  Disregard previous debug insns to make decisions.
7793         (queue_insn): Never queue debug insns.
7794         (ready_add, ready_remove_first, ready_remove): Count debug insns.
7795         (schedule_insn): Don't reject debug insns because of issue rate.
7796         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
7797         (queue_to_ready): Skip and discount debug insns.
7798         (choose_ready): Let debug insns through.
7799         (schedule_block): Check boundary debug insns.  Discount debug
7800         insns, schedule them early.  Adjust whitespace.
7801         (set_priorities): Check for boundary debug insns.
7802         (add_jump_dependencies): Use dep_list_size.
7803         (prev_non_location_insn): New.
7804         (check_cfg): Use it.
7805         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
7806         stmts.
7807         (remove_unused_ivs): Reset debug stmts.
7808         * modulo-sched.c (const_iteration_count): Skip debug insns.
7809         (res_MII): Discount debug insns.
7810         (loop_single_full_bb_p): Skip debug insns.
7811         (sms_schedule): Likewise.
7812         (sms_schedule_by_order): Likewise.
7813         (ps_has_conflicts): Likewise.
7814         * caller-save.c (refmarker_fn): New.
7815         (save_call_clobbered_regs): Replace regs with saved mem in
7816         debug insns.
7817         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
7818         Call refmarker_fn mark for hardregnos.
7819         (mark_reg_as_referenced): New.
7820         (replace_reg_with_saved_mem): New.
7821         * ipa-pure-const.c (check_stmt): Skip debug stmts.
7822         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
7823         searching back.
7824         (cse_extended_basic_block): Skip debug insns.
7825         (count_reg_usage): Likewise.
7826         (is_dead_reg): New, split out of...
7827         (set_live_p): ... here.
7828         (insn_live_p): Use it for debug insns.
7829         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
7830         (execute_optimize_stdarg): Likewise.
7831         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
7832         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
7833         changes in debug stmts as changes.
7834         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
7835         (moveup_expr): Don't move across debug insns.  Don't move
7836         debug insn if it would create a bookkeeping block.
7837         (moveup_expr_cached): Don't use cache for debug insns that
7838         are heads of blocks.
7839         (compute_av_set_inside_bb): Skip debug insns.
7840         (sel_rank_for_schedule): Schedule debug insns first.  Remove
7841         dead code.
7842         (block_valid_for_bookkeeping_p); Support lax searches.
7843         (create_block_for_bookkeeping): Adjust block numbers when
7844         encountering debug-only blocks.
7845         (find_place_for_bookkeeping): Deal with debug-only blocks.
7846         (generate_bookkeeping_insn): Accept no place to insert.
7847         (remove_temp_moveop_nops): New argument full_tidying.
7848         (prepare_place_to_insert): Deal with debug insns.
7849         (advance_state_on_fence): Debug insns don't start cycles.
7850         (update_boundaries): Take fence as argument.  Deal with
7851         debug insns.
7852         (schedule_expr_on_boundary): No full_tidying on debug insns.
7853         (fill_insns): Deal with debug insns.
7854         (track_scheduled_insns_and_blocks): Don't count debug insns.
7855         (need_nop_to_preserve_insn_bb): New, split out of...
7856         (remove_insn_from_stream): ... this.
7857         (fur_orig_expr_not_found): Skip debug insns.
7858         * rtl.def (VALUE): Move up.
7859         (DEBUG_INSN): New.
7860         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
7861         (nearest_common_dominator_of_uses): Take debug_stmts argument.
7862         Set it if debug stmts are found.
7863         (statement_sink_location): Skip debug stmts.  Propagate
7864         moving defs into debug stmts.
7865         * ifcvt.c (first_active_insn): Skip debug insns.
7866         (last_active_insns): Likewise.
7867         (cond_exec_process_insns): Likewise.
7868         (noce_process_if_block): Likewise.
7869         (check_cond_move_block): Likewise.
7870         (cond_move_convert_if_block): Likewise.
7871         (block_jumps_and_fallthru_p): Likewise.
7872         (dead_or_predicable): Likewise.
7873         * dwarf2out.c (debug_str_hash_forced): New.
7874         (find_AT_string): Add comment.
7875         (gen_label_for_indirect_string): New.
7876         (get_debug_string_label): New.
7877         (AT_string_form): Use it.
7878         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
7879         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
7880         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
7881         several operations that cannot be represented with DWARF opcodes.
7882         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
7883         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
7884         (dwarf2out_var_location): Take during-call mark into account.
7885         (output_indirect_string): Update comment.  Output if there are
7886         label and references.
7887         (prune_indirect_string): New.
7888         (prune_unused_types): Call it if debug_str_hash_forced.
7889         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
7890         (dw_long_long_const): Remove.
7891         (struct dw_val_struct): Change val_long_long type to rtx.
7892         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
7893         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
7894         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
7895         component instead of HOST_BITS_PER_LONG.
7896         (output_loc_operands): Likewise.  For const8* assert
7897         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
7898         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
7899         rather than HOST_BITS_PER_LONG is >= 64.
7900         (add_AT_long_long): Remove val_hi and val_lo arguments, add
7901         val_const_double.
7902         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
7903         HOST_BITS_PER_LONG for dw_val_class_long_long.
7904         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
7905         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
7906         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
7907         DW_OP_stack_value.
7908         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
7909         Handle DW_OP_implicit_value.
7910         (extract_int): Move prototype earlier.
7911         (mem_loc_descriptor): For SUBREG punt if inner
7912         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
7913         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
7914         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
7915         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
7916         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
7917         instead of Pmode size.
7918         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
7919         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
7920         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
7921         (concat_loc_descriptor, concatn_loc_descriptor,
7922         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
7923         (add_location_or_const_value_attribute): Likewise.  For single
7924         location loc_lists attempt to use add_const_value_attribute
7925         for constant decls.  Add DW_AT_const_value even if
7926         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
7927         in its expression.
7928         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
7929         (control_flow_insn_p): Likewise.
7930         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
7931         (separate_decls_in_region_debug_bind): New.
7932         (separate_decls_in_region): Process debug bind stmts afterwards.
7933         * recog.c (verify_changes): Handle debug insns.
7934         (extract_insn): Likewise.
7935         (peephole2_optimize): Skip debug insns.
7936         * dse.c (scan_insn): Skip debug insns.
7937         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
7938         Pass it on.
7939         (setup_id_for_insn): Handle debug insns.
7940         (maybe_tidy_empty_bb): Adjust whitespace.
7941         (tidy_control_flow): Skip debug insns.
7942         (sel_remove_insn): Adjust for debug insns.
7943         (sel_estimate_number_of_insns): Skip debug insns.
7944         (create_insn_rtx_from_pattern): Handle debug insns.
7945         (create_copy_of_insn_rtx): Likewise.
7946         * sel-sched-.h (sel_bb_end): Declare.
7947         (sel_bb_empty_or_nop_p): New.
7948         (get_all_loop_exits): Use it.
7949         (_eligible_successor_edge_p): Likewise.
7950         (return_nop_to_pool): Adjust.
7951         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
7952         * ira-lives.c (process_bb_node_lives): Skip debug insns.
7953         * gimple-pretty-print.c (dump_gimple_debug): New.
7954         (dump_gimple_stmt): Use it.
7955         (dump_bb_header): Skip gimple debug stmts.
7956         * regmove.c (optimize_reg_copy_1): Discount debug insns.
7957         (fixup_match_2): Likewise.
7958         (regmove_backward_pass): Likewise.  Simplify combined
7959         replacement.  Handle debug insns.
7960         * function.c (instantiate_virtual_regs): Handle debug insns.
7961         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
7962         * print-rtl.h: Include cselib.h.
7963         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
7964         * df.h (df_inns_rescan_debug_internal): Declare.
7965         * gcse.c (alloc_hash_table): Estimate n_insns.
7966         (cprop_insn): Don't regard debug insns as changes.
7967         (bypass_conditional_jumps): Skip debug insns.
7968         (one_pre_gcse_pass): Adjust.
7969         (one_code_hoisting_pass): Likewise.
7970         (compute_ld_motion_mems): Skip debug insns.
7971         (one_cprop_pass): Adjust.
7972         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
7973         (if_convertible_stmt_p): Handle debug stmts.
7974         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
7975         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
7976         * ira-build.c (create_bb_allocnos): Skip debug insns.
7977         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
7978         (has_single_use): Likewise.
7979         (single_imm_use): Likewise.
7980         (num_imm_uses): Likewise.
7981         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
7982         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
7983         (create_outofssa_var_map): Likewise.
7984         * lower-subreg.c (adjust_decomposed_uses): New.
7985         (resolve_debug): New.
7986         (decompose_multiword_subregs): Use it.
7987         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
7988         * emit-rtl.c: Include params.h.
7989         (cur_debug_insn_uid): Define.
7990         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
7991         (copy_rtx_if_shared_1): Handle debug insns.
7992         (reset_used_flags): Likewise.
7993         (set_used_flags): LIkewise.
7994         (get_max_insn_count): New.
7995         (next_nondebug_insn): New.
7996         (prev_nondebug_insn): New.
7997         (make_debug_insn_raw): New.
7998         (emit_insn_before_noloc): Handle debug insns.
7999         (emit_jump_insn_before_noloc): Likewise.
8000         (emit_call_insn_before_noloc): Likewise.
8001         (emit_debug_insn_before_noloc): New.
8002         (emit_insn_after_noloc): Handle debug insns.
8003         (emit_jump_insn_after_noloc): Likewise.
8004         (emit_call_insn_after_noloc): Likewise.
8005         (emit_debug_insn_after_noloc): Likewise.
8006         (emit_insn_after): Take loc from earlier non-debug insn.
8007         (emit_jump_insn_after): Likewise.
8008         (emit_call_insn_after): Likewise.
8009         (emit_debug_insn_after_setloc): New.
8010         (emit_debug_insn_after): New.
8011         (emit_insn_before): Take loc from later non-debug insn.
8012         (emit_jump_insn_before): Likewise.
8013         (emit_call_insn_before): Likewise.
8014         (emit_debug_insn_before_setloc): New.
8015         (emit_debug_insn_before): New.
8016         (emit_insn): Handle debug insns.
8017         (emit_debug_insn): New.
8018         (emit_jump_insn): Handle debug insns.
8019         (emit_call_insn): Likewise.
8020         (emit): Likewise.
8021         (init_emit): Take min-nondebug-insn-uid into account.
8022         Initialize cur_debug_insn_uid.
8023         (emit_copy_of_insn_after): Handle debug insns.
8024         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
8025         location of single rhs in place.
8026         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
8027         (floor_sdiv_adjust): New.
8028         (cell_sdiv_adjust): New.
8029         (cell_udiv_adjust): New.
8030         (round_sdiv_adjust): New.
8031         (round_udiv_adjust): New.
8032         (wrap_constant): Moved from cselib.
8033         (unwrap_constant): New.
8034         (expand_debug_expr): New.
8035         (expand_debug_locations): New.
8036         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
8037         debug bind stmts.
8038         (gimple_expand_cfg): Expand debug locations.
8039         * cselib.c: Include tree-pass.h.
8040         (struct expand_value_data): New.
8041         (cselib_record_sets_hook): New.
8042         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
8043         (cselib_clear_table): Move, and implemnet in terms of...
8044         (cselib_reset_table_with_next_value): ... this.
8045         (cselib_get_next_unknown_value): New.
8046         (discard_useless_locs): Don't discard preserved values.
8047         (cselib_preserve_value): New.
8048         (cselib_preserved_value_p): New.
8049         (cselib_preserve_definitely): New.
8050         (cselib_clear_preserve): New.
8051         (cselib_preserve_only_values): New.
8052         (new_cselib_val): Take rtx argument.  Dump it in details.
8053         (cselib_lookup_mem): Adjust.
8054         (expand_loc): Take regs_active in struct.  Adjust.  Silence
8055         dumps unless details are requested.
8056         (cselib_expand_value_rtx_cb): New.
8057         (cselib_expand_value_rtx): Rename and reimplment in terms of...
8058         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
8059         without details.  Copy more subregs.  Try to resolve values
8060         using a callback.  Wrap constants.
8061         (cselib_subst_to_values): Adjust.
8062         (cselib_log_lookup): New.
8063         (cselib_lookup): Call it.
8064         (cselib_invalidate_regno): Don't count preserved values as useless.
8065         (cselib_invalidate_mem): Likewise.
8066         (cselib_record_set): Likewise.
8067         (struct set): Renamed to cselib_set, moved to cselib.h.
8068         (cselib_record_sets): Adjust.  Call hook.
8069         (cselib_process_insn): Reset table when it would be cleared.
8070         (dump_cselib_val): New.
8071         (dump_cselib_table): New.
8072         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
8073         (remove_forwarder_block): Support moving debug stmts.
8074         * cselib.h (cselib_record_sets_hook): Declare.
8075         (cselib_expand_callback): New type.
8076         (cselib_expand_value_rtx_cb): Declare.
8077         (cselib_reset_table_with_next_value): Declare.
8078         (cselib_get_next_unknown_value): Declare.
8079         (cselib_preserve_value): Declare.
8080         (cselib_preserved_value_p): Declare.
8081         (cselib_preserve_only_values): Declare.
8082         (dump_cselib_table): Declare.
8083         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
8084         (try_crossjump_to_edge): Likewise.
8085         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
8086         dominated blocks when debug stmts are present.
8087         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
8088         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
8089         (set_var_live_on_entry): Likewise.
8090         * loop-invariant.c (find_invariants_bb): Skip debug insns.
8091         * cfglayout.c (curr_location, last_location): Make static.
8092         (set_curr_insn_source_location): Don't avoid bouncing.
8093         (get_curr_insn_source_location): New.
8094         (get_curr_insn_block): New.
8095         (duplicate_insn_chain): Handle debug insns.
8096         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
8097         into debug stmts.
8098         * common.opt (fcompare-debug): Move to sort order.
8099         (fdump-unnumbered-links): Likewise.
8100         (fvar-tracking-assignments): New.
8101         (fvar-tracking-assignments-toggle): New.
8102         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
8103         because of debug stmts.
8104         (mark_stmt_if_obviously_necessary): Mark debug stmts.
8105         (eliminate_unnecessary_stmts): Walk dominated blocks before
8106         dominators.
8107         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
8108         * ira.c (memref_used_between_p): Skip debug insns.
8109         (update_equiv_regs): Likewise.
8110         * sched-deps.c (sd_lists_size): Accept empty list.
8111         (sd_init_insn): Mark debug insns.
8112         (sd_finish_insn): Unmark them.
8113         (sd_add_dep): Reject non-debug deps on debug insns.
8114         (fixup_sched_groups): Give debug insns group treatment.
8115         Skip debug insns.
8116         (sched_analyze_reg): Don't mark debug insns for sched before call.
8117         (sched_analyze_2): Handle debug insns.
8118         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
8119         insns.
8120         (deps_analyze_insn): Handle debug insns.
8121         (deps_start_bb): Skip debug insns.
8122         (init_deps): Initialize last_debug_insn.
8123         * tree-ssa.c (target_for_debug_bind): New.
8124         (find_released_ssa_name): New.
8125         (propagate_var_def_into_debug_stmts): New.
8126         (propagate_defs_into_debug_stmts): New.
8127         (verify_ssa): Skip debug bind stmts without values.
8128         (warn_uninialized_vars): Skip debug stmts.
8129         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
8130         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
8131         (rtx_equal_p): Likewise.
8132         * ira-costs.c (scan_one_insn): Skip debug insns.
8133         (process_bb_node_for_hard_reg_moves): Likewise.
8134         * rtl.h (DEBUG_INSN_P): New.
8135         (NONDEBUG_INSN_P): New.
8136         (MAY_HAVE_DEBUG_INSNS): New.
8137         (INSN_P): Accept debug insns.
8138         (RTX_FRAME_RELATED_P): Likewise.
8139         (INSN_DELETED_P): Likewise
8140         (PAT_VAR_LOCATION_DECL): New.
8141         (PAT_VAR_LOCATION_LOC): New.
8142         (PAT_VAR_OCATION_STATUS): New.
8143         (NOTE_VAR_LOCATION_DECL): Reimplement.
8144         (NOTE_VAR_LOCATION_LOC): Likewise.
8145         (NOTE_VAR_LOCATION_STATUS): Likewise.
8146         (INSN_VAR_LOCATION): New.
8147         (INSN_VAR_LOCATION_DECL): New.
8148         (INSN_VAR_LOCATION_LOC): New.
8149         (INSN_VAR_LOCATION_STATUS): New.
8150         (gen_rtx_UNKNOWN_VAR_LOC): New.
8151         (VAR_LOC_UNKNOWN_P): New.
8152         (NOTE_DURING_CALL_P): New.
8153         (SCHED_GROUP_P): Accept debug insns.
8154         (emit_debug_insn_before): Declare.
8155         (emit_debug_insn_before_noloc): Declare.
8156         (emit_debug_insn_beore_setloc): Declare.
8157         (emit_debug_insn_after): Declare.
8158         (emit_debug_insn_after_noloc): Declare.
8159         (emit_debug_insn_after_setloc): Declare.
8160         (emit_debug_insn): Declare.
8161         (make_debug_insn_raw): Declare.
8162         (prev_nondebug_insn): Declare.
8163         (next_nondebug_insn): Declare.
8164         (delegitimize_mem_from_attrs): Declare.
8165         (get_max_insn_count): Declare.
8166         (wrap_constant): Declare.
8167         (unwrap_constant): Declare.
8168         (get_curr_insn_source_location): Declare.
8169         (get_curr_insn_block): Declare.
8170         * tree-inline.c (insert_debug_decl_map): New.
8171         (processing_debug_stmt): New.
8172         (remap_decl): Don't create new mappings in debug stmts.
8173         (remap_gimple_op_r): Don't add references in debug stmts.
8174         (copy_tree_body_r): Likewise.
8175         (remap_gimple_stmt): Handle debug bind stmts.
8176         (copy_bb): Skip debug stmts.
8177         (copy_edges_for_bb): Likewise.
8178         (copy_debug_stmt): New.
8179         (copy_debug_stmts): New.
8180         (copy_body): Copy debug stmts at the end.
8181         (insert_init_debug_bind): New.
8182         (insert_init_stmt): Take id.  Skip and emit debug stmts.
8183         (setup_one_parameter): Remap variable earlier, register debug mapping.
8184         (estimate_num_insns): Skip debug stmts.
8185         (expand_call_inline): Preserve debug_map.
8186         (optimize_inline_calls): Check for no debug_stmts left-overs.
8187         (unsave_expr_now): Preserve debug_map.
8188         (copy_gimple_seq_and_replace_locals): Likewise.
8189         (tree_function_versioning): Check for no debug_stmts left-overs.
8190         Init and destroy debug_map as needed.  Split edges unconditionally.
8191         (build_duplicate_type): Init and destroy debug_map as needed.
8192         * tree-inline.h: Include gimple.h instead of pointer-set.h.
8193         (struct copy_body_data): Add debug_stmts and debug_map.
8194         * sched-int.h (struct ready_list): Add n_debug.
8195         (struct deps): Add last_debug_insn.
8196         (DEBUG_INSN_SCHED_P): New.
8197         (BOUNDARY_DEBUG_INSN_P): New.
8198         (SCHEDULE_DEBUG_INSN_P): New.
8199         (sd_iterator_cond): Accept empty list.
8200         * combine.c (create_log_links): Skip debug insns.
8201         (combine_instructions): Likewise.
8202         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
8203         return value is always unshared.
8204         (struct rtx_subst_pair): New.
8205         (auto_adjust_pair): New.
8206         (propagate_for_debug_subst): New.
8207         (propagate_for_debug): New.
8208         (try_combine): Skip debug insns.  Propagate removed defs into
8209         debug insns.
8210         (next_nonnote_nondebug_insn): New.
8211         (distribute_notes): Use it.  Skip debug insns.
8212         (distribute_links): Skip debug insns.
8213         * tree-outof-ssa.c (set_location_for_edge): Likewise.
8214         * resource.c (mark_target_live_regs): Likewise.
8215         * var-tracking.c: Include cselib.h and target.h.
8216         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
8217         MO_VAL_SET.
8218         (micro_operation_type_name): New.
8219         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
8220         (struct micro_operation_def): Update comments.
8221         (decl_or_value): New type.  Use instead of decls.
8222         (struct emit_note_data_def): Add vars.
8223         (struct attrs_def): Use decl_or_value.
8224         (struct variable_tracking_info_def): Add permp, flooded.
8225         (struct location_chain_def): Update comment.
8226         (struct variable_part_def): Use decl_or_value.
8227         (struct variable_def): Make var_part a variable length array.
8228         (valvar_pool): New.
8229         (scratch_regs): New.
8230         (cselib_hook_called): New.
8231         (dv_is_decl_p): New.
8232         (dv_is_value_p): New.
8233         (dv_as_decl): New.
8234         (dv_as_value): New.
8235         (dv_as_opaque): New.
8236         (dv_onepart_p): New.
8237         (dv_pool): New.
8238         (IS_DECL_CODE): New.
8239         (check_value_is_not_decl): New.
8240         (dv_from_decl): New.
8241         (dv_from_value): New.
8242         (dv_htab_hash): New.
8243         (variable_htab_hash): Use it.
8244         (variable_htab_eq): Support values.
8245         (variable_htab_free): Free from the right pool.
8246         (attrs_list_member, attrs_list_insert): Use decl_or_value.
8247         (attrs_list_union): Adjust.
8248         (attrs_list_mpdv_union): New.
8249         (tie_break_pointers): New.
8250         (canon_value_cmp): New.
8251         (unshare_variable): Return possibly-modified slot.
8252         (vars_copy_1): Adjust.
8253         (var_reg_decl_set): Adjust.  Split out of...
8254         (var_reg_set): ... this.
8255         (get_init_value): Adjust.
8256         (var_reg_delete_and_set): Adjust.
8257         (var_reg_delete): Adjust.
8258         (var_regno_delete): Adjust.
8259         (var_mem_decl_set): Split out of...
8260         (var_mem_set): ... this.
8261         (var_mem_delete_and_set): Adjust.
8262         (var_mem_delete): Adjust.
8263         (val_store): New.
8264         (val_reset): New.
8265         (val_resolve): New.
8266         (variable_union): Adjust.  Speed up merge of 1-part vars.
8267         (variable_canonicalize): Use unshared slot.
8268         (VALUED_RECURSED_INTO): New.
8269         (find_loc_in_1pdv): New.
8270         (struct dfset_merge): New.
8271         (insert_into_intersection): New.
8272         (intersect_loc_chains): New.
8273         (loc_cmp): New.
8274         (canonicalize_loc_order_check): New.
8275         (canonicalize_values_mark): New.
8276         (canonicalize_values_star): New.
8277         (variable_merge_over_cur): New.
8278         (variable_merge_over_src): New.
8279         (dataflow_set_merge): New.
8280         (dataflow_set_equiv_regs): New.
8281         (remove_duplicate_values): New.
8282         (struct dfset_post_merge): New.
8283         (variable_post_merge_new_vals): New.
8284         (variable_post_merge_perm_vals): New.
8285         (dataflow_post_merge_adjust): New.
8286         (find_mem_expr_in_1pdv): New.
8287         (dataflow_set_preserve_mem_locs): New.
8288         (dataflow_set_remove_mem_locs): New.
8289         (dataflow_set_clear_at_call): New.
8290         (onepart_variable_different_p): New.
8291         (variable_different_p): Use it.
8292         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
8293         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
8294         if not needed.
8295         (track_loc_p): Pass it true.
8296         (struct count_use_info): New.
8297         (find_use_val): New.
8298         (replace_expr_with_values): New.
8299         (log_op_type): New.
8300         (use_type): New, partially split out of...
8301         (count_uses): ... this.  Count new micro-ops.
8302         (count_uses_1): Adjust.
8303         (count_stores): Adjust.
8304         (count_with_sets): New.
8305         (VAL_NEEDS_RESOLUTION): New.
8306         (VAL_HOLDS_TRACK_EXPR): New.
8307         (VAL_EXPR_IS_COPIED): New.
8308         (VAL_EXPR_IS_CLOBBERED): New.
8309         (add_uses): Adjust.  Generate new micro-ops.
8310         (add_uses_1): Adjust.
8311         (add_stores): Generate new micro-ops.
8312         (add_with_sets): New.
8313         (find_src_status): Adjust.
8314         (find_src_set_src): Adjust.
8315         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
8316         Handle new micro-ops.  Canonicalize value equivalances.
8317         (vt_find_locations): Compute total size of hash tables for
8318         dumping.  Perform merge for var-tracking-assignments.  Don't
8319         disregard single-block loops.
8320         (dump_attrs_list): Handle decl_or_value.
8321         (dump_variable): Take variable.  Deal with decl_or_value.
8322         (dump_variable_slot): New.
8323         (dump_vars): Use it.
8324         (dump_dataflow_sets): Adjust.
8325         (set_slot_part): New, extended to support one-part variables
8326         after splitting out of...
8327         (set_variable_part): ... this.
8328         (clobber_slot_part): New, split out of...
8329         (clobber_variable_part): ... this.
8330         (delete_slot_part): New, split out of...
8331         (delete_variable_part): .... this.
8332         (check_wrap_constant): New.
8333         (vt_expand_loc_callback): New.
8334         (vt_expand_loc): New.
8335         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
8336         EMIT_NOTE_AFTER_CALL_INSN.
8337         (emit_notes_for_differences_1): Adjust.  Handle values.
8338         (emit_notes_for_differences_2): Likewise.
8339         (emit_notes_for_differences): Adjust.
8340         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
8341         Adjust.  Handle new micro-ops.
8342         (vt_add_function_parameters): Adjust.  Create and bind values.
8343         (vt_initialize): Adjust.  Initialize scratch_regs and
8344         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
8345         operations.  Move some code to count_with_sets and add_with_sets.
8346         (delete_debug_insns): New.
8347         (vt_debug_insns_local): New.
8348         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
8349         cselib.
8350         (var_tracking_main): If var-tracking-assignments is enabled
8351         but var-tracking isn't, delete debug insns and leave.  Likewise
8352         if we exceed limits or fail the stack adjustments tests, and
8353         after all var-tracking processing.
8354         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
8355         (dataflow_set): Add traversed_vars.
8356         (value_chain, const_value_chain): New typedefs.
8357         (value_chain_pool, value_chains): New variables.
8358         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
8359         add_value_chains, add_cselib_value_chains, remove_value_chain,
8360         remove_value_chains, remove_cselib_value_chains): New functions.
8361         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
8362         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
8363         static inlines.
8364         (shared_hash_find_slot_unshare, shared_hash_find_slot,
8365         shared_hash_find_slot_noinsert, shared_hash_find): Update.
8366         (dst_can_be_shared): New variable.
8367         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
8368         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
8369         different from set->vars, look up slot again instead of using the
8370         passed in slot.
8371         (dataflow_set_init): Initialize traversed_vars.
8372         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
8373         lookup if set->vars is shared.  Don't keep slot cleared before
8374         calling unshare_variable.  Unshare set->vars if needed.  Adjust
8375         unshare_variable callers.  Clear dst_can_be_shared if needed.
8376         Even ->refcount == 1 vars must be unshared if set->vars is shared
8377         and var needs to be modified.
8378         (dataflow_set_union): Set traversed_vars during canonicalization.
8379         (VALUE_CHANGED, DECL_CHANGED): Define.
8380         (set_dv_changed, dv_changed_p): New static inlines.
8381         (track_expr_p): Clear DECL_CHANGED.
8382         (dump_dataflow_sets): Set it.
8383         (variable_was_changed): Call set_dv_changed.
8384         (emit_note_insn_var_location): Likewise.
8385         (changed_variables_stack): New variable.
8386         (check_changed_vars_1, check_changed_vars_2): New functions.
8387         (emit_notes_for_changes): Do nothing if changed_variables is
8388         empty.  Traverse changed_variables with check_changed_vars_1,
8389         call check_changed_vars_2 on each changed_variables_stack entry.
8390         (emit_notes_in_bb): Add SET argument.  Just clear it at the
8391         beginning, use it instead of local &set, don't destroy it at the end.
8392         (vt_emit_notes): Call dataflow_set_clear early on all
8393         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
8394         computed set, dataflow_set_clear also VTI(bb)->in when we are
8395         done with the basic block.  Initialize changed_variables_stack,
8396         free it afterwards.  If ENABLE_CHECKING verify that after noting
8397         differences to an empty set value_chains hash table is empty.
8398         (vt_initialize): Initialize value_chains and value_chain_pool.
8399         (vt_finalize): Delete value_chains htab, free value_chain_pool.
8400         (variable_tracking_main): Call dump_dataflow_sets before calling
8401         vt_emit_notes, not after it.
8402         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
8403         (propagate_var_def_into_debug_stmts): Declare.
8404         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
8405         (df_set_note): Reject debug insns.
8406         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
8407         add notes to debug insns.
8408         (df_note_bb_compute): Adjust.  Likewise.
8409         (df_simulate_uses): Skip debug insns.
8410         (df_simulate_initialize_backwards): Likewise.
8411         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
8412         (subst_stack_regs_pat): Reject debug insns.
8413         (convert_regs_1): Handle debug insns.
8414         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
8415         (print-rtl.o): Depend on cselib.h.
8416         (cselib.o): Depend on TREE_PASS_H.
8417         (var-tracking.o): Depend on cselib.h and TARGET_H.
8418         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
8419         (init_ready_list): Skip boundary debug insns.
8420         (add_branch_dependences): Skip debug insns.
8421         (free_block_dependencies): Check for blocks with only debug insns.
8422         (compute_priorities): Likewise.
8423         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
8424         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
8425         all callers.
8426         (gimple_build_debug_bind_stat): New.
8427         (empty_body_p): Skip debug stmts.
8428         (gimple_has_side_effects): Likewise.
8429         (gimple_rhs_has_side_effects): Likewise.
8430         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
8431         (gimple_build_debug_bind_stat): Declare.
8432         (gimple_build_debug_bind): Define.
8433         (is_gimple_debug): New.
8434         (gimple_debug_bind_p): New.
8435         (gimple_debug_bind_get_var): New.
8436         (gimple_debug_bind_get_value): New.
8437         (gimple_debug_bind_get_value_ptr): New.
8438         (gimple_debug_bind_set_var): New.
8439         (gimple_debug_bind_set_value): New.
8440         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
8441         (gimple_debug_bind_reset_value): New.
8442         (gimple_debug_bind_has_value_p): New.
8443         (gsi_next_nondebug): New.
8444         (gsi_prev_nondebug): New.
8445         (gsi_start_nondebug_bb): New.
8446         (gsi_last_nondebug_bb): New.
8447         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
8448         (print_insn): Handle DEBUG_INSN.
8449         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
8450         of first insn prevail.
8451         (first_stmt): Skip debug stmts.
8452         (first_non_label_stmt): Likewise.
8453         (last_stmt): Likewise.
8454         (has_zero_uses_1): New.
8455         (single_imm_use_1): New.
8456         (verify_gimple_debug): New.
8457         (verify_types_in_gimple_stmt): Handle debug stmts.
8458         (verify_stmt): Likewise.
8459         (debug_loop_num): Skip debug stmts.
8460         (remove_edge_and_dominated_blocks): Remove dominators last.
8461         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
8462         (linearize_expr): Likewise.
8463         * config/i386/i386.c (ix86_delegitimize_address): Call
8464         default implementation.
8465         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
8466         (group_barrier_needed): Skip debug insns.
8467         (emit_insn_group_barriers): Likewise.
8468         (emit_all_insn_group_barriers): Likewise.
8469         (ia64_variable_issue): Handle debug insns.
8470         (ia64_dfa_new_cycle): Likewise.
8471         (final_emit_insn_group_barriers): Skip debug insns.
8472         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
8473         def cfa without frame.
8474         (process_set): Likewise.
8475         (process_for_unwind_directive): Pass frame on.
8476         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
8477         (rs6000_delegitimize_address): New.
8478         (rs6000_debug_adjust_cost): Handle debug insns.
8479         (is_microcoded_insn): Likewise.
8480         (is_cracked_insn): Likewise.
8481         (is_nonpipeline_insn): Likewise.
8482         (insn_must_be_first_in_group): Likewise.
8483         (insn_must_be_last_in_group): Likewise.
8484         (force_new_group): Likewise.
8485         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
8486         contains only debug insns.
8487         (rtl_merge_blocks): Skip debug insns.
8488         (purge_dead_edges): Likewise.
8489         (rtl_block_ends_with_call_p): Skip debug insns.
8490         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
8491         (mark_reg_dependencies): Skip debug insns.
8492         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
8493         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
8494         * tree-ssa-threadedge.c
8495         (record_temporary_equivalences_from_stmts): Skip debug stmts.
8496         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
8497         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
8498         (copyprop_hardreg_forward_1): Handle debug insns.
8499         * reload1.c (reload): Skip debug insns.  Replace unassigned
8500         pseudos in debug insns with their equivalences.
8501         (eliminate_regs_in_insn): Skip debug insns.
8502         (emit_input_reload_insns): Skip debug insns at first, adjust
8503         them later.
8504         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
8505         (get_indirect_ref_operands): Pass opf_no_vops on.
8506         (get_expr_operands): Likewise.  Skip debug stmts.
8507         (parse_ssa_operands): Scan debug insns with opf_no_vops.
8508
8509 2009-09-01  Richard Henderson  <rth@redhat.com>
8510
8511         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
8512         stmt_ends_pp_p statements at least once.
8513         * tree-vrp.c (vrp_initialize): Likewise.
8514         (vrp_visit_stmt): Be prepared for non-interesting stmts.
8515
8516 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
8517
8518         PR bootstrap/41205
8519         Fix AIX bootstrap after PR debug/30161
8520         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
8521         that is a GNU extension.
8522         (tmpl_value_parm_die_table): Move the definition of this global
8523         outside #ifdef DWARF2_DEBUGGING_INFO region.
8524
8525 2009-09-01  Richard Guenther  <rguenther@suse.de>
8526
8527         * tree.c (tree_expr_size): New function.
8528         * tree.h (tree_expr_size): Declare.
8529         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
8530         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
8531         * langhooks.c (lhd_expr_size): Remove.
8532         * langhooks.h (struct lang_hooks): Remove expr_size.
8533         * explow.c (expr_size): Use tree_expr_size.
8534         (int_expr_size): Likewise.
8535         * langhooks-def.h (lhd_expr_size): Remove.
8536         (LANG_HOOKS_EXPR_SIZE): Likewise.
8537         (LANG_HOOKS_INITIALIZER): Adjust.
8538
8539 2009-09-01  Richard Guenther  <rguenther@suse.de>
8540
8541         * tree-flow.h (mark_addressable): Move declaration ...
8542         * tree.h (mark_addressable): ... here.
8543         * stmt.c (expand_asm_operands): Use mark_addressable, not
8544         lang_hooks.mark_addressable.
8545         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
8546         LANG_HOOKS_MARK_ADDRESSABLE.
8547         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
8548         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
8549
8550 2009-08-31  Chris Demetriou  <cgd@google.com>
8551
8552         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
8553         vectorize if not TARGET_SSE2.
8554
8555 2009-08-31  DJ Delorie  <dj@redhat.com>
8556
8557         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
8558         registers if no coprocessor is enabled.
8559
8560 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
8561
8562         PR debug/30161
8563         * cgraph.h (cgraph_get_node): Declare ...
8564         * cgraph.c (cgraph_get_node): ... new function.
8565         * dwarf2out.c (gen_generic_params_dies,
8566         generic_parameter_die, tree_add_const_value_attribute_for_decl,
8567         make_ith_pack_parameter_name,
8568         append_entry_to_tmpl_value_parm_die_table,
8569         gen_remaining_tmpl_value_param_die_attribute): New functions.
8570         (gen_subprogram_die): Generate debug info for template parameters
8571         if debug info level is higher than DINFO_LEVEL_TERSE.
8572         Use tree_add_const_value_attribute_for_decl instead of
8573         tree_add_const_value_attribute.
8574         (gen_const_die): Use tree_add_const_value_attribute_for_decl
8575         instead of tree_add_const_value_attribute.
8576         (gen_struct_or_union_type_die): Generate debug
8577         info for template parameters if debug info level is higher than
8578         DINFO_LEVEL_TERSE.
8579         (tree_add_const_value_attribute): Handle integral and pointer
8580         constants. Update comment.
8581         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
8582         (dwarf_attr_name): Support DW_AT_GNU_template_name.
8583         (reference_to_unused): Fix thinko. Remove redundant predicates from
8584         tests.
8585         (tree_add_const_value_attribute): Make this work for constant
8586         expressions only.
8587         tree_add_const_value_attribute_for_decl is to be used for variable
8588         DECLs now.
8589         (add_location_or_const_value_attribute): Use
8590         tree_add_const_value_attribute_for_decl now.
8591         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
8592         DW_TAG_template_value_param DIEs after function DIEs have been
8593         emitted.
8594         * langhooks.h (lang_hooks_for_types): Add
8595         get_argument_pack_elems.
8596         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
8597         (lang_hooks): Added get_innermost_generic_parms,
8598         get_innermost_generic_args.
8599         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
8600         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
8601         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
8602         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
8603
8604 2009-08-31  DJ Delorie  <dj@redhat.com>
8605
8606         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
8607         it once we start generating the prologue or epilogue.
8608         (mep_call_saves_register): If the frame is locked, re-use
8609         cached values.
8610         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
8611         (mep_expand_prologue): Call it.
8612         (mep_expand_epilogue): Likewise.
8613         (mep_start_function): Use the same logic as mep_expand_prologue.
8614         (mep_pass_by_reference): Make logic more readable.
8615         (mep_return_in_memory): Zero-sized objects are passed in memory.
8616         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
8617
8618 2009-08-31  Richard Guenther  <rguenther@suse.de>
8619
8620         * builtins.c (fold_builtin_memory_op): Use the alias oracle
8621         to query if the memory regions for memmove overlap.
8622         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
8623         asserts on pointers, instead deal with odd trees.
8624         (ptr_derefs_may_alias_p): Likewise.
8625         (refs_may_alias_p_1): Constructor bases also never alias.
8626
8627 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
8628
8629         * doc/install.texi (Final install): Adjust reference on where to
8630         order printed manuals.
8631
8632 2009-08-30  Olivier Hainque  <hainque@adacore.com>
8633
8634         * dwarf2out.c (switch_to_frame_table_section): Move
8635         definition prior to first use.
8636
8637 2009-08-30  Richard Guenther  <rguenther@suse.de>
8638
8639         PR tree-optimization/41186
8640         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
8641         (ao_ref_init_from_ptr_and_size): New function.
8642         (ref_maybe_used_by_call_p_1): Be more precise tracking
8643         used ranges for builtin functions.
8644         (ref_maybe_used_by_call_p): Adjust.
8645         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
8646         ranges for builtin functions.
8647         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
8648
8649 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
8650
8651         PR target/41081
8652         * fwprop.c (get_reg_use_in): Delete.
8653         (free_load_extend): New function.
8654         (forward_propagate_subreg): Use it.
8655
8656 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
8657
8658         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
8659
8660 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
8661
8662         PR/41184
8663         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
8664         padding.
8665
8666 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
8667
8668         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
8669         fini or fini_array section.
8670
8671 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8672
8673         * graphite-dependences.c (graphite_legal_transform_bb): Call
8674         pbb_remove_duplicate_pdrs.
8675         * graphite-poly.c (can_collapse_pdr): Removed.
8676         (pdr_find_duplicate): Removed.
8677         (can_collapse_pdrs): New.
8678         (pbb_remove_duplicate_pdrs): New.
8679         (new_poly_dr): Do not look for duplicates.
8680         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
8681         (PBB_PDR_DUPLICATES_REMOVED): New.
8682         (pbb_remove_duplicate_pdrs): Declared.
8683
8684 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8685
8686         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
8687         the strides by multiplying by PDR_NB_REFS.
8688         * graphite-poly.c (can_collapse_pdr): New.
8689         (pdr_find_duplicate): New.
8690         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
8691         Initialize PDR_NB_REFS.
8692         * graphite-poly.h (struct poly_dr): Add field nb_refs.
8693         (PDR_NB_REFS): New.
8694         (new_poly_dr): Number of subscripts is a graphite_dim_t.
8695
8696 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8697
8698         PR middle-end/40965
8699         * graphite-poly.c (apply_poly_transforms): Remove legality test before
8700         any transform.
8701
8702 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8703
8704         * graphite-dependences.c (pddr_original_scattering): Return NULL
8705         for read-read dependence relations.
8706         * graphite-poly.h (enum poly_dr_type): Fix comment.
8707         (pdr_read_p): New.
8708         (pdr_write_p): New.
8709         (pdr_may_write_p): New.
8710
8711 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8712
8713         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
8714         (struct poly_dr): Same.
8715         (new_poly_dr): Same.
8716         * graphite-poly.c (new_poly_dr): Same.
8717         * graphite-dependences.c (dot_deps): Disable call to system.
8718
8719 2009-08-28  Cary Coutant  <ccoutant@google.com>
8720
8721         PR debug/41063
8722         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
8723         struct/union/enum types local to a function.
8724
8725 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
8726             Sebastian Pop  <sebastian.pop@amd.com>
8727
8728         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
8729         pbb_strip_mine_time_depth.  Changed the implementation so that
8730         transformation is expressed as a transformation on
8731         time (scatttering) dimensions.  Also, ensures that the 2d+1
8732         scheduling format is preserved.
8733         (pbb_strip_mine_profitable_p): Profitability is based on the
8734         iteration number of a given time (scattering) dimension,
8735         and not on a original loop depth dimension.
8736         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
8737         (pbb_do_strip_mine): Call psct_dynamic_dim.
8738         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
8739         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
8740         (pbb_nb_dynamic_scattering_transform): New.
8741         (psct_dynamic_dim): New.
8742
8743 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
8744
8745         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
8746         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
8747         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
8748         * graphite-interchange.c (build_linearized_memory_access): Same.
8749         (memory_stride_in_loop): Same.
8750
8751 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8752
8753         * graphite-dependences.c (pddr_original_scattering): New.
8754         (graphite_legal_transform_dr): Call pddr_original_scattering.
8755         (dot_deps_1): New.
8756         (dot_deps): New.
8757         * graphite-dependences.h (dot_deps): Declared.
8758         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
8759         (print_pdr): Print PDR_ID.
8760         * graphite-poly.h (struct poly_dr): Add field id.
8761         (PDR_ID): New.
8762         (pbb_index): New.
8763         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
8764
8765 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8766
8767         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
8768         not delete the original dependence relation.
8769
8770 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8771
8772         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
8773         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
8774         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
8775         (free_poly_ddr): New.
8776         (pddr_is_empty): New.
8777         (dependence_polyhedron_1): Now returns a poly_ddr_p.
8778         (dependence_polyhedron): Same.  Remove useless gcc_assert.
8779         Remove fprintfs.
8780         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
8781         (graphite_carried_dependence_level_k): Call pddr_is_empty.
8782         * graphite-dependences.h (enum poly_dependence_kind): New.
8783         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
8784         (PDRP_SOURCE): Renamed PDDR_SOURCE.
8785         (PDRP_SINK): Renamed PDDR_SINK.
8786         (PDRP_DDP): Renamed PDDR_DDP.
8787         (PDDR_KIND): New.
8788         (free_poly_ddr): Declared.
8789         * graphite-poly.c (new_scop): Use the new hash function names.
8790         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
8791         into original_pddrs.
8792         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
8793
8794 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8795
8796         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
8797         bounds with LT_EXPR to make niter analysis more precise on code
8798         generated by Graphite.
8799
8800 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8801
8802         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
8803         (graphite_legal_transform_bb): Same.
8804         (poly_drs_may_alias_p): Same.
8805
8806 2009-08-28  Richard Guenther  <rguenther@suse.de>
8807
8808         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
8809
8810 2009-08-28  Jan Beulich  <jbeulich@novell.com>
8811
8812         * config/i386/netware.c: Include langhooks.h.
8813         (i386_nlm_encode_section_info): Simplify.
8814         (netware_override_options): Delete.
8815         * config/i386/netware.h (netware_override_options): Delete
8816         declaration.
8817         (OVERRIDE_OPTIONS): Delete definition.
8818         (SUBTARGET_OVERRIDE_OPTIONS): Define.
8819         (ASM_COMMENT_START): Define.
8820         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
8821
8822 2009-08-28  Jan Beulich  <jbeulich@novell.com>
8823
8824         * configure.ac: For in-tree ld, do a plain version check to
8825         determine whether comdat groups are supported.
8826         * configure: Regenerate.
8827
8828 2009-08-28  Olivier Hainque  <hainque@adacore.com>
8829
8830         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
8831         always defined.  Reflect definition or absence of such for
8832         COLLECT_EXPORT_LIST.  Readability helper.
8833         (scanfilter): New enum, to help control what symbols
8834         are to be considered or ignored by scan_prog_file.
8835         (enum pass): Rename as "scanpass", moved together with scanfilter
8836         prior to scan_prog_file's prototype.
8837         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
8838         Group prototype with the scanpass/scanfilter definitions, factorize
8839         head comments for the several implementations at the prototype.
8840         (main): Reorganize the first pass link control to let AIX
8841         drag only the needed frame tables in executables.  Prevent
8842         frame tables collection during the scan aimed at static ctors.
8843         Pre-link and scan for frame tables later to compensate.
8844         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
8845         A C statement to issue assembly directives that create a reference
8846         to the given DWARF table identifier label from the current function
8847         section.
8848         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
8849         to differentiate first time section entry.  Only emit a .data
8850         tables start identifier label the first time around.
8851         (switch_to_frame_table_section): New function.  Helper for
8852         output_call_frame_info to switch possibly BACK into the eh_frame
8853         or the debug_frame section depending on FOR_EH.
8854         (output_call_frame_info): Use helper to first enter the proper
8855         frame section.
8856         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
8857         emit a link to the frame table start label from each function
8858         section.
8859         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
8860         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
8861         * config/rs6000/rs6000-protos.h: Declare it.
8862         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
8863
8864 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
8865
8866         * config/sh/sh.c (split_branches): Check the result of
8867         next_active_insn.
8868
8869 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
8870
8871         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
8872         using -pthread -fopenmp
8873
8874 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
8875
8876         * doc/service.texi (service directory): Update URL.
8877
8878 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
8879
8880         PR rtl-optimization/40861
8881         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
8882         extract word from a multi-word subreg for negative byte positions.
8883
8884 2009-08-27  Tristan Gingold  <gingold@adacore.com>
8885             Douglas B Rupp  <rupp@gnat.com>
8886
8887         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
8888         (SECTION_VMS_OVERLAY): Define.
8889         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
8890         attribute.
8891         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
8892         for common_object.
8893         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
8894         common_object declarations.
8895         (ia64_section_type_flags): Set section flag for common_object.
8896         * config/ia64/ia64-protos.h
8897         (ia64_vms_output_aligned_decl_common): Declare.
8898         (ia64_vms_elf_asm_named_section): Declare.
8899
8900 2009-08-27  Michael Matz  <matz@suse.de>
8901
8902         * expr.c (expand_expr_real_2): New function taking exploded
8903         unary or binary expression, split out from ...
8904         (expand_expr_real_1): ... here.  Move over all unary/binary
8905         switch parts to above function, in particular these codes:
8906         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
8907         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
8908         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
8909         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
8910         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
8911         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
8912         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
8913         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
8914         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
8915         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
8916         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
8917         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
8918         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
8919         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
8920         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
8921         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
8922         VEC_PACK_FIX_TRUNC_EXPR.
8923         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
8924         full expression.
8925
8926 2009-08-27  Richard Guenther  <rguenther@suse.de>
8927
8928         * gengtype.c (main): Handle uint64_t.
8929         * ipa-utils.c (get_base_var): Indent properly.
8930         * tree-ssa-live.c (debug_scope_block): New function.
8931         * tree-flow.h (debug_scope_block): Declare.
8932         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
8933         * basic-block.h (enum profile_status): Rename to
8934         enum profile_status_d.
8935         (x_profile_status): Adjust type.
8936
8937 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
8938
8939         PR debug/41170
8940         * dwarf2out.c (get_context_die): Declare this static function.
8941         (gen_type_die_with_usage): Make sure a DIE is a generated for
8942         the context of a typedef.
8943
8944 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
8945
8946         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
8947         switch.
8948
8949 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
8950
8951         * config/mips/mips-protos.h (mips_output_sync): Declare.
8952         (mips_sync_loop_insns): Likewise.
8953         (mips_output_sync_loop): Replace first two parameters with an rtx.
8954         * config/mips/mips.c (mips_multi_member): New structure.
8955         (mips_multi_members): New variable.
8956         (mips_multi_start): New function.
8957         (mips_multi_add): Likewise.
8958         (mips_multi_add_insn): Likewise.
8959         (mips_multi_add_label): Likewise.
8960         (mips_multi_last_index): Likewise.
8961         (mips_multi_copy_insn): Likewise.
8962         (mips_multi_set_operand): Likewise.
8963         (mips_multi_write): Likewise.
8964         (mips_print_operand_punctuation): Remove '%|' and '%-'.
8965         (mips_init_print_operand_punct): Update accordingly.
8966         (mips_start_ll_sc_sync_block): New function.
8967         (mips_end_ll_sc_sync_block): Likewise.
8968         (mips_output_sync): Likewise.
8969         (mips_sync_insn1_template): Likewise.
8970         (mips_sync_insn2_template): Likewise.
8971         (mips_get_sync_operand): Likewise.
8972         (mips_process_sync_loop): Likewise.
8973         (mips_output_sync_loop): Use mips_process_sync_loop.
8974         (mips_sync_loop_insns): New function.
8975         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
8976         (MIPS_COMPARE_AND_SWAP_12): Likewise.
8977         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
8978         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
8979         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
8980         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
8981         (MIPS_SYNC_OLD_OP_12): Likewise.
8982         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
8983         (MIPS_SYNC_NEW_OP_12): Likewise.
8984         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
8985         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
8986         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
8987         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
8988         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
8989         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
8990         * config/mips/mips.md (sync_mem): New attribute.
8991         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
8992         (sync_exclusive_mask, sync_required_oldval): Likewise.
8993         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
8994         (sync_release_barrier): Likewise.
8995         (length): Handle sync loops.
8996         (sync): Use mips_output_sync.
8997         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
8998         (sync_compare_and_swap<mode>): Set the new sync_* attributes
8999         and use mips_output_sync_loop.
9000         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
9001         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
9002         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
9003         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
9004         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
9005         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
9006         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
9007         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
9008         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
9009
9010 2009-08-26  Richard Guenther  <rguenther@suse.de>
9011
9012         PR middle-end/41163
9013         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
9014         the types to not match.
9015         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
9016         verification.
9017         * tree-ssa.c (useless_type_conversion_p): Conversions to
9018         pointers to unprototyped functions are useless.
9019
9020 2009-08-26  Richard Guenther  <rguenther@suse.de>
9021
9022         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
9023         whole-program condition, prepare to be called for non-globals.
9024         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
9025         params build a representative with known type and track its fields.
9026
9027 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
9028
9029         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
9030         clearing by a taken branch.
9031         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
9032         effectively after bbro pass.
9033         (sync_nand<mode>): Ditto.
9034         (sync_old_<fetchop_name><mode>): Ditto.
9035         (sync_old_nand<mode>): Ditto.
9036         (sync_new_<fetchop_name><mode>): Dito.
9037         (sync_new_nand<mode>): Ditto.
9038         (sync_compare_and_swap<mode>_1): Ditto.
9039         (*sync_compare_and_swap<mode>): Ditto.
9040         (sync_lock_test_and_set<mode>_1): Ditto.
9041         ("sync_lock_test_and_set<mode>): Ditto.
9042
9043 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
9044
9045         * hwint.h (HOST_LONG_FORMAT): New macro
9046         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
9047         Use HOST_PTR_PRINTF.
9048         * system.h (HOST_PTR_PRINTF): Resurrect old macro
9049         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
9050         (HOST_PTR_PRINTF): Document.
9051
9052 2009-08-25 Jan Hubicka  <jh@suse.cz>
9053
9054         * config/i386/bmmintrin.h: Replace by #error.
9055
9056         Revert:
9057         Michael Meissner  <michael.meissner@amd.com>
9058         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
9059         Tony Linthicum  <tony.linthicum@amd.com>
9060
9061         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
9062         (TARGET_ROUND): New macro for the round/ptest instructions which
9063         are shared between SSE4.1 and SSE5.
9064         (OPTION_MASK_ISA_ROUND): Ditto.
9065         (OPTION_ISA_ROUND): Ditto.
9066         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
9067         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
9068
9069         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
9070         (-mfused-madd): New switch to give users control over whether the
9071         compiler optimizes to use the multiply/add SSE5 instructions.
9072
9073         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
9074         (ix86_handle_option): Turn off 3dnow if -msse5.
9075         (override_options): Add SSE5 support.
9076         (print_operand): %Y prints comparison codes for SSE5 com/pcom
9077         instructions.
9078         (ix86_expand_sse_movcc): Add SSE5 support.
9079         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
9080         vector type to the next largest size.
9081         (ix86_expand_sse5_pack): New function to use pperm to pack a
9082         vector type to the next smallest size.
9083         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
9084         (IX86_BUILTIN_FMADDSD): Ditto.
9085         (IX86_BUILTIN_FMADDPS): Ditto.
9086         (IX86_BUILTIN_FMADDPD): Ditto.
9087         (IX86_BUILTIN_FMSUBSS): Ditto.
9088         (IX86_BUILTIN_FMSUBSD): Ditto.
9089         (IX86_BUILTIN_FMSUBPS): Ditto.
9090         (IX86_BUILTIN_FMSUBPD): Ditto.
9091         (IX86_BUILTIN_FNMADDSS): Ditto.
9092         (IX86_BUILTIN_FNMADDSD): Ditto.
9093         (IX86_BUILTIN_FNMADDPS): Ditto.
9094         (IX86_BUILTIN_FNMADDPD): Ditto.
9095         (IX86_BUILTIN_FNMSUBSS): Ditto.
9096         (IX86_BUILTIN_FNMSUBSD): Ditto.
9097         (IX86_BUILTIN_FNMSUBPS): Ditto.
9098         (IX86_BUILTIN_FNMSUBPD): Ditto.
9099         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
9100         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
9101         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
9102         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
9103         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
9104         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
9105         (IX86_BUILTIN_PPERM): Ditto.
9106         (IX86_BUILTIN_PERMPS): Ditto.
9107         (IX86_BUILTIN_PERMPD): Ditto.
9108         (IX86_BUILTIN_PMACSSWW): Ditto.
9109         (IX86_BUILTIN_PMACSWW): Ditto.
9110         (IX86_BUILTIN_PMACSSWD): Ditto.
9111         (IX86_BUILTIN_PMACSWD): Ditto.
9112         (IX86_BUILTIN_PMACSSDD): Ditto.
9113         (IX86_BUILTIN_PMACSDD): Ditto.
9114         (IX86_BUILTIN_PMACSSDQL): Ditto.
9115         (IX86_BUILTIN_PMACSSDQH): Ditto.
9116         (IX86_BUILTIN_PMACSDQL): Ditto.
9117         (IX86_BUILTIN_PMACSDQH): Ditto.
9118         (IX86_BUILTIN_PMADCSSWD): Ditto.
9119         (IX86_BUILTIN_PMADCSWD): Ditto.
9120         (IX86_BUILTIN_PHADDBW): Ditto.
9121         (IX86_BUILTIN_PHADDBD): Ditto.
9122         (IX86_BUILTIN_PHADDBQ): Ditto.
9123         (IX86_BUILTIN_PHADDWD): Ditto.
9124         (IX86_BUILTIN_PHADDWQ): Ditto.
9125         (IX86_BUILTIN_PHADDDQ): Ditto.
9126         (IX86_BUILTIN_PHADDUBW): Ditto.
9127         (IX86_BUILTIN_PHADDUBD): Ditto.
9128         (IX86_BUILTIN_PHADDUBQ): Ditto.
9129         (IX86_BUILTIN_PHADDUWD): Ditto.
9130         (IX86_BUILTIN_PHADDUWQ): Ditto.
9131         (IX86_BUILTIN_PHADDUDQ): Ditto.
9132         (IX86_BUILTIN_PHSUBBW): Ditto.
9133         (IX86_BUILTIN_PHSUBWD): Ditto.
9134         (IX86_BUILTIN_PHSUBDQ): Ditto.
9135         (IX86_BUILTIN_PROTB): Ditto.
9136         (IX86_BUILTIN_PROTW): Ditto.
9137         (IX86_BUILTIN_PROTD): Ditto.
9138         (IX86_BUILTIN_PROTQ): Ditto.
9139         (IX86_BUILTIN_PROTB_IMM): Ditto.
9140         (IX86_BUILTIN_PROTW_IMM): Ditto.
9141         (IX86_BUILTIN_PROTD_IMM): Ditto.
9142         (IX86_BUILTIN_PROTQ_IMM): Ditto.
9143         (IX86_BUILTIN_PSHLB): Ditto.
9144         (IX86_BUILTIN_PSHLW): Ditto.
9145         (IX86_BUILTIN_PSHLD): Ditto.
9146         (IX86_BUILTIN_PSHLQ): Ditto.
9147         (IX86_BUILTIN_PSHAB): Ditto.
9148         (IX86_BUILTIN_PSHAW): Ditto.
9149         (IX86_BUILTIN_PSHAD): Ditto.
9150         (IX86_BUILTIN_PSHAQ): Ditto.
9151         (IX86_BUILTIN_FRCZSS): Ditto.
9152         (IX86_BUILTIN_FRCZSD): Ditto.
9153         (IX86_BUILTIN_FRCZPS): Ditto.
9154         (IX86_BUILTIN_FRCZPD): Ditto.
9155         (IX86_BUILTIN_CVTPH2PS): Ditto.
9156         (IX86_BUILTIN_CVTPS2PH): Ditto.
9157         (IX86_BUILTIN_COMEQSS): Ditto.
9158         (IX86_BUILTIN_COMNESS): Ditto.
9159         (IX86_BUILTIN_COMLTSS): Ditto.
9160         (IX86_BUILTIN_COMLESS): Ditto.
9161         (IX86_BUILTIN_COMGTSS): Ditto.
9162         (IX86_BUILTIN_COMGESS): Ditto.
9163         (IX86_BUILTIN_COMUEQSS): Ditto.
9164         (IX86_BUILTIN_COMUNESS): Ditto.
9165         (IX86_BUILTIN_COMULTSS): Ditto.
9166         (IX86_BUILTIN_COMULESS): Ditto.
9167         (IX86_BUILTIN_COMUGTSS): Ditto.
9168         (IX86_BUILTIN_COMUGESS): Ditto.
9169         (IX86_BUILTIN_COMORDSS): Ditto.
9170         (IX86_BUILTIN_COMUNORDSS): Ditto.
9171         (IX86_BUILTIN_COMFALSESS): Ditto.
9172         (IX86_BUILTIN_COMTRUESS): Ditto.
9173         (IX86_BUILTIN_COMEQSD): Ditto.
9174         (IX86_BUILTIN_COMNESD): Ditto.
9175         (IX86_BUILTIN_COMLTSD): Ditto.
9176         (IX86_BUILTIN_COMLESD): Ditto.
9177         (IX86_BUILTIN_COMGTSD): Ditto.
9178         (IX86_BUILTIN_COMGESD): Ditto.
9179         (IX86_BUILTIN_COMUEQSD): Ditto.
9180         (IX86_BUILTIN_COMUNESD): Ditto.
9181         (IX86_BUILTIN_COMULTSD): Ditto.
9182         (IX86_BUILTIN_COMULESD): Ditto.
9183         (IX86_BUILTIN_COMUGTSD): Ditto.
9184         (IX86_BUILTIN_COMUGESD): Ditto.
9185         (IX86_BUILTIN_COMORDSD): Ditto.
9186         (IX86_BUILTIN_COMUNORDSD): Ditto.
9187         (IX86_BUILTIN_COMFALSESD): Ditto.
9188         (IX86_BUILTIN_COMTRUESD): Ditto.
9189         (IX86_BUILTIN_COMEQPS): Ditto.
9190         (IX86_BUILTIN_COMNEPS): Ditto.
9191         (IX86_BUILTIN_COMLTPS): Ditto.
9192         (IX86_BUILTIN_COMLEPS): Ditto.
9193         (IX86_BUILTIN_COMGTPS): Ditto.
9194         (IX86_BUILTIN_COMGEPS): Ditto.
9195         (IX86_BUILTIN_COMUEQPS): Ditto.
9196         (IX86_BUILTIN_COMUNEPS): Ditto.
9197         (IX86_BUILTIN_COMULTPS): Ditto.
9198         (IX86_BUILTIN_COMULEPS): Ditto.
9199         (IX86_BUILTIN_COMUGTPS): Ditto.
9200         (IX86_BUILTIN_COMUGEPS): Ditto.
9201         (IX86_BUILTIN_COMORDPS): Ditto.
9202         (IX86_BUILTIN_COMUNORDPS): Ditto.
9203         (IX86_BUILTIN_COMFALSEPS): Ditto.
9204         (IX86_BUILTIN_COMTRUEPS): Ditto.
9205         (IX86_BUILTIN_COMEQPD): Ditto.
9206         (IX86_BUILTIN_COMNEPD): Ditto.
9207         (IX86_BUILTIN_COMLTPD): Ditto.
9208         (IX86_BUILTIN_COMLEPD): Ditto.
9209         (IX86_BUILTIN_COMGTPD): Ditto.
9210         (IX86_BUILTIN_COMGEPD): Ditto.
9211         (IX86_BUILTIN_COMUEQPD): Ditto.
9212         (IX86_BUILTIN_COMUNEPD): Ditto.
9213         (IX86_BUILTIN_COMULTPD): Ditto.
9214         (IX86_BUILTIN_COMULEPD): Ditto.
9215         (IX86_BUILTIN_COMUGTPD): Ditto.
9216         (IX86_BUILTIN_COMUGEPD): Ditto.
9217         (IX86_BUILTIN_COMORDPD): Ditto.
9218         (IX86_BUILTIN_COMUNORDPD): Ditto.
9219         (IX86_BUILTIN_COMFALSEPD): Ditto.
9220         (IX86_BUILTIN_COMTRUEPD): Ditto.
9221         (IX86_BUILTIN_PCOMEQUB): Ditto.
9222         (IX86_BUILTIN_PCOMNEUB): Ditto.
9223         (IX86_BUILTIN_PCOMLTUB): Ditto.
9224         (IX86_BUILTIN_PCOMLEUB): Ditto.
9225         (IX86_BUILTIN_PCOMGTUB): Ditto.
9226         (IX86_BUILTIN_PCOMGEUB): Ditto.
9227         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
9228         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
9229         (IX86_BUILTIN_PCOMEQUW): Ditto.
9230         (IX86_BUILTIN_PCOMNEUW): Ditto.
9231         (IX86_BUILTIN_PCOMLTUW): Ditto.
9232         (IX86_BUILTIN_PCOMLEUW): Ditto.
9233         (IX86_BUILTIN_PCOMGTUW): Ditto.
9234         (IX86_BUILTIN_PCOMGEUW): Ditto.
9235         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
9236         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
9237         (IX86_BUILTIN_PCOMEQUD): Ditto.
9238         (IX86_BUILTIN_PCOMNEUD): Ditto.
9239         (IX86_BUILTIN_PCOMLTUD): Ditto.
9240         (IX86_BUILTIN_PCOMLEUD): Ditto.
9241         (IX86_BUILTIN_PCOMGTUD): Ditto.
9242         (IX86_BUILTIN_PCOMGEUD): Ditto.
9243         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
9244         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
9245         (IX86_BUILTIN_PCOMEQUQ): Ditto.
9246         (IX86_BUILTIN_PCOMNEUQ): Ditto.
9247         (IX86_BUILTIN_PCOMLTUQ): Ditto.
9248         (IX86_BUILTIN_PCOMLEUQ): Ditto.
9249         (IX86_BUILTIN_PCOMGTUQ): Ditto.
9250         (IX86_BUILTIN_PCOMGEUQ): Ditto.
9251         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
9252         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
9253         (IX86_BUILTIN_PCOMEQB): Ditto.
9254         (IX86_BUILTIN_PCOMNEB): Ditto.
9255         (IX86_BUILTIN_PCOMLTB): Ditto.
9256         (IX86_BUILTIN_PCOMLEB): Ditto.
9257         (IX86_BUILTIN_PCOMGTB): Ditto.
9258         (IX86_BUILTIN_PCOMGEB): Ditto.
9259         (IX86_BUILTIN_PCOMFALSEB): Ditto.
9260         (IX86_BUILTIN_PCOMTRUEB): Ditto.
9261         (IX86_BUILTIN_PCOMEQW): Ditto.
9262         (IX86_BUILTIN_PCOMNEW): Ditto.
9263         (IX86_BUILTIN_PCOMLTW): Ditto.
9264         (IX86_BUILTIN_PCOMLEW): Ditto.
9265         (IX86_BUILTIN_PCOMGTW): Ditto.
9266         (IX86_BUILTIN_PCOMGEW): Ditto.
9267         (IX86_BUILTIN_PCOMFALSEW): Ditto.
9268         (IX86_BUILTIN_PCOMTRUEW): Ditto.
9269         (IX86_BUILTIN_PCOMEQD): Ditto.
9270         (IX86_BUILTIN_PCOMNED): Ditto.
9271         (IX86_BUILTIN_PCOMLTD): Ditto.
9272         (IX86_BUILTIN_PCOMLED): Ditto.
9273         (IX86_BUILTIN_PCOMGTD): Ditto.
9274         (IX86_BUILTIN_PCOMGED): Ditto.
9275         (IX86_BUILTIN_PCOMFALSED): Ditto.
9276         (IX86_BUILTIN_PCOMTRUED): Ditto.
9277         (IX86_BUILTIN_PCOMEQQ): Ditto.
9278         (IX86_BUILTIN_PCOMNEQ): Ditto.
9279         (IX86_BUILTIN_PCOMLTQ): Ditto.
9280         (IX86_BUILTIN_PCOMLEQ): Ditto.
9281         (IX86_BUILTIN_PCOMGTQ): Ditto.
9282         (IX86_BUILTIN_PCOMGEQ): Ditto.
9283         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
9284         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
9285         (enum multi_arg_type): New enum for describing the various SSE5
9286         intrinsic argument types.
9287         (bdesc_multi_arg): New table for SSE5 intrinsics.
9288         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
9289         (ix86_expand_multi_arg_builtin): New function for creating SSE5
9290         intrinsics.
9291         (ix86_expand_builtin): Add SSE5 intrinsic support.
9292         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
9293         operand instructions.
9294         (ix86_expand_sse5_multiple_memory): New function to split the
9295         second memory reference from SSE5 instructions.
9296         (type_has_variadic_args_p): Delete in favor of stdarg_p.
9297         (ix86_return_pops_args): Use stdarg_p to determine if the function
9298         has variable arguments.
9299         (ix86_setup_incoming_varargs): Ditto.
9300         (x86_this_parameter): Ditto.
9301
9302         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
9303         declaration.
9304         (ix86_expand_sse5_pack): Ditto.
9305         (ix86_sse5_valid_op_p): Ditto.
9306         (ix86_expand_sse5_multiple_memory): Ditto.
9307
9308         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
9309         constant for SSE5 support.
9310         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
9311         (UNSPEC_SSE5_TRUEFALSE): Ditto.
9312         (UNSPEC_SSE5_PERMUTE): Ditto.
9313         (UNSPEC_SSE5_ASHIFT): Ditto.
9314         (UNSPEC_SSE5_LSHIFT): Ditto.
9315         (UNSPEC_FRCZ): Ditto.
9316         (UNSPEC_CVTPH2PS): Ditto.
9317         (UNSPEC_CVTPS2PH): Ditto.
9318         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
9319         (PCOM_TRUE): Ditto.
9320         (COM_FALSE_S): Ditto.
9321         (COM_FALSE_P): Ditto.
9322         (COM_TRUE_S): Ditto.
9323         (COM_TRUE_P): Ditto.
9324         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
9325         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
9326         types.
9327         (memory attribute): Ditto.
9328         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
9329         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
9330         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
9331         (floor<mode>2): Ditto.
9332         (ceil<mode>2): Ditto.
9333         (btrunc<mode>2): Ditto.
9334         (nearbyintdf2): Ditto.
9335         (nearbyintsf2): Ditto.
9336         (sse_setccsf): Disable if SSE5.
9337         (sse_setccdf): Ditto.
9338         (sse5_setcc<mode>): New support for SSE5 conditional move.
9339         (sse5_pcmov_<mode>): Ditto.
9340
9341         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
9342         (SSEMODEF4): Ditto.
9343         (SSEMODEF2P): Ditto.
9344         (ssemodesuffixf4): New mode attribute for SSE5.
9345         (ssemodesuffixf2s): Ditto.
9346         (ssemodesuffixf2c): Ditto.
9347         (sserotatemax): Ditto.
9348         (ssescalarmode): Ditto.
9349         (sse_maskcmpv4sf3): Disable if SSE5.
9350         (sse_maskcmpv2df3): Ditto.
9351         (sse_vmmaskcmpv4sf3): Ditto.
9352         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
9353         (sse5_vmfmadd<mode>4): Ditto.
9354         (sse5_fmsub<mode>4): Ditto.
9355         (sse5_vmfmsub<mode>4): Ditto.
9356         (sse5_fnmadd<mode>4): Ditto.
9357         (sse5_vmfnmadd<mode>4): Ditto.
9358         (sse5_fnmsub<mode>4): Ditto.
9359         (sse5_vmfnmsub<mode>4): Ditto.
9360         (sse5i_fmadd<mode>4): Ditto.
9361         (sse5i_fmsub<mode>4): Ditto.
9362         (sse5i_fnmadd<mode>4): Ditto.
9363         (sse5i_fnmsub<mode>4): Ditto.
9364         (sse5i_vmfmadd<mode>4): Ditto.
9365         (sse5i_vmfmsub<mode>4): Ditto.
9366         (sse5i_vmfnmadd<mode>4): Ditto.
9367         (sse5i_vmfnmsub<mode>4): Ditto.
9368         (mulv16qi3): Add SSE5 support.
9369         (mulv4si3): Ditto.
9370         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
9371         (sse2_mulv4si3): Disable if SSE5.
9372         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
9373         (sse4_1_roundps): Ditto.
9374         (sse4_1_roundsd): Ditto.
9375         (sse4_1_roundss): Ditto.
9376         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
9377         be generated.
9378         (sse_maskcmpsf3): Ditto.
9379         (sse_vmmaskcmpv4sf3): Ditto.
9380         (sse2_maskcmpv2df3): Ditto.
9381         (sse2_maskcmpdf3): Ditto.
9382         (sse2_vmmaskcmpv2df3): Ditto.
9383         (sse2_eq<mode>3): Ditto.
9384         (sse2_gt<mode>3): Ditto.
9385         (sse5_pcmov_<mode>): Add SSE5 support.
9386         (vec_unpacku_hi_v16qi): Ditto.
9387         (vec_unpacks_hi_v16qi): Ditto.
9388         (vec_unpacku_lo_v16qi): Ditto.
9389         (vec_unpacks_lo_v16qi): Ditto.
9390         (vec_unpacku_hi_v8hi): Ditto.
9391         (vec_unpacks_hi_v8hi): Ditto.
9392         (vec_unpacku_lo_v8hi): Ditto.
9393         (vec_unpacks_lo_v8hi): Ditto.
9394         (vec_unpacku_hi_v4si): Ditto.
9395         (vec_unpacks_hi_v4si): Ditto.
9396         (vec_unpacku_lo_v4si): Ditto.
9397         (vec_unpacks_lo_v4si): Ditto.
9398         (sse5_pmacsww): New SSE5 intrinsic insn.
9399         (sse5_pmacssww): Ditto.
9400         (sse5_pmacsdd): Ditto.
9401         (sse5_pmacssdd): Ditto.
9402         (sse5_pmacssdql): Ditto.
9403         (sse5_pmacssdqh): Ditto.
9404         (sse5_pmacsdqh): Ditto.
9405         (sse5_pmacsswd): Ditto.
9406         (sse5_pmacswd): Ditto.
9407         (sse5_pmadcsswd): Ditto.
9408         (sse5_pmadcswd): Ditto.
9409         (sse5_pcmov_<move>): Conditional move support on SSE5.
9410         (sse5_phaddbw): New SSE5 intrinsic insn.
9411         (sse5_phaddbd): Ditto.
9412         (sse5_phaddbq): Ditto.
9413         (sse5_phaddwd): Ditto.
9414         (sse5_phaddwq): Ditto.
9415         (sse5_phadddq): Ditto.
9416         (sse5_phaddubw): Ditto.
9417         (sse5_phaddubd): Ditto.
9418         (sse5_phaddubq): Ditto.
9419         (sse5_phadduwd): Ditto.
9420         (sse5_phadduwq): Ditto.
9421         (sse5_phaddudq): Ditto.
9422         (sse5_phsubbw): Ditto.
9423         (sse5_phsubwd): Ditto.
9424         (sse5_phsubdq): Ditto.
9425         (sse5_pperm): Ditto.
9426         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
9427         (sse5_pperm_zero_v16qi_v8hi): Ditto.
9428         (sse5_pperm_sign_v8hi_v4si): Ditto.
9429         (sse5_pperm_zero_v8hi_v4si): Ditto.
9430         (sse5_pperm_sign_v4si_v2di): Ditto.
9431         (sse5_pperm_sign_v4si_v2di): Ditto.
9432         (sse5_pperm_pack_v2di_v4si): Ditto.
9433         (sse5_pperm_pack_v4si_v8hi): Ditto.
9434         (sse5_pperm_pack_v8hi_v16qi): Ditto.
9435         (sse5_perm<mode>): New SSE5 intrinsic insn.
9436         (rotl<mode>3): Ditto.
9437         (sse5_rotl<mode>3): Ditto.
9438         (sse5_ashl<mode>3): Ditto.
9439         (sse5_lshl<mode>3): Ditto.
9440         (sse5_frcz<mode>2): Ditto.
9441         (sse5s_frcz<mode>2): Ditto.
9442         (sse5_cvtph2ps): Ditto.
9443         (sse5_cvtps2ph): Ditto.
9444         (sse5_vmmaskcmp<mode>3): Ditto.
9445         (sse5_com_tf<mode>3): Ditto.
9446         (sse5_maskcmp<mode>3): Ditto.
9447         (sse5_maskcmp_uns<mode>3): Ditto.
9448         (sse5_maskcmp_uns2<mode>3): Ditto.
9449         (sse5_pcom_tf<mode>3): Ditto.
9450
9451         * config/i386/predicates.md (sse5_comparison_float_operator):
9452         New predicate to match the comparison operators supported by
9453         the SSE5 com instruction.
9454         (ix86_comparison_int_operator): New predicate to match just the
9455         signed int comparisons.
9456         (ix86_comparison_uns_operator): New predicate to match just the
9457         unsigned int comparisons.
9458
9459         * doc/invoke.texi (-msse5): Add documentation.
9460         (-mfused-madd): Ditto.
9461
9462         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
9463
9464         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
9465         mmintrin-common.h.
9466         (x86_64-*-*): Ditto.
9467
9468         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
9469
9470         * config/i386/bmmintrin.h: New file, provide common x86 compiler
9471         intrinisics for SSE5.
9472
9473         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
9474         mmintrin-common.h.
9475
9476         * config/i386/mmintrin-common.h: New file, to contain common
9477         instructions between SSE4.1 and SSE5.
9478
9479         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
9480         FOREACH_FUNCTION_ARGS to iterate over the argument list.
9481         (gen_regparm_prefix): Ditto.
9482
9483         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
9484         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
9485         prototype_p to determine if a function is prototyped.
9486
9487 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
9488
9489         * c-common.c (c_common_reswords) add the alignof keyword,
9490         with same RID as __alignof and __alignof__
9491
9492 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
9493
9494         * hooks.h (hook_bool_const_int_const_int_true): Declare.
9495         * hooks.c (hook_bool_const_int_const_int_true): New function.
9496         * target.h (struct gcc_target): Add can_eliminate field.
9497         * target-def.h (TARGET_CAN_ELIMINATE): Define.
9498         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
9499         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
9500         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
9501         (elim_table): Revise comment.
9502         * system.h (CAN_ELIMINATE): Poison.
9503         * defaults.h (CAN_ELIMINATE): Remove.
9504         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
9505
9506         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
9507         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
9508         Define macro.
9509         (alpha_vms_can_eliminate): Declare as static, change return type to
9510         bool.
9511         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
9512
9513         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
9514         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
9515         (arm_can_eliminate): New function.
9516
9517         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
9518         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
9519         (avr_can_eliminate): Declare as static.
9520         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
9521
9522         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
9523         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
9524         (bfin_can_eliminate): New function.
9525
9526         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
9527         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
9528         (crx_can_eliminate): New function.
9529
9530         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
9531         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
9532         (fr30_can_eliminate): New function.
9533
9534         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
9535         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
9536         (frv_can_eliminate): New function.
9537
9538         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
9539         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
9540         (h8300_can_eliminate): New function.
9541
9542         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
9543         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
9544         (i386_can_eliminate): Declare as static, change return type to bool.
9545         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
9546
9547         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
9548         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
9549         (ia64_can_eliminate): New function.
9550
9551         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
9552         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
9553         (iq2000_can_eliminate): New function.
9554
9555         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
9556         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
9557         (m32r_can_eliminate): New function.
9558
9559         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
9560         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
9561         (m68hc11_can_eliminate): New function.
9562
9563         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
9564         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
9565         (m68k_can_eliminate): New function.
9566
9567         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
9568         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
9569         (mep_can_eliminate): New function.
9570
9571         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
9572         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
9573         (mips_can_eliminate): New function.
9574
9575         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
9576         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
9577         (rs6000_can_eliminate): New function.
9578
9579         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
9580         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
9581         (s390_can_eliminate): Declare as static.
9582         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
9583
9584         * config/score/score.h (CAN_ELIMINATE): Remove macro.
9585         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
9586         (score_can_eliminate): New function.
9587
9588         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
9589         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
9590         (sparc_can_eliminate): Declare as static.
9591         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
9592
9593         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
9594         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
9595         (xstormy16_can_eliminate): New function.
9596
9597         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
9598         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
9599         (v850_can_eliminate): New function.
9600
9601 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
9602
9603         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
9604         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
9605         (*movdfcc_ext[1234]): Disable for IEEE mode.
9606
9607 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
9608
9609         * gimplify.c (prepare_gimple_addressable): New static function.
9610         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
9611         it addressable.
9612         (gimplify_addr_expr): Invoke it similarly on the operand instead of
9613         manually fiddling with it.
9614
9615 2009-08-25  Michael Matz  <matz@suse.de>
9616
9617         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
9618         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
9619         full expression.
9620         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
9621         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
9622         (do_jump): Split out code for simple binary comparisons into ...
9623         (do_jump_1): ... this, taking the individual operands and code.
9624         Change callers to helper function above accordingly.
9625         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
9626         comparisons.
9627
9628 2009-08-25  Michael Matz  <matz@suse.de>
9629
9630         * expr.h (struct separate_ops, sepops): New type for passing
9631         around an exploded simple expression.
9632         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
9633         Use this structure instead of expression tree.
9634         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
9635         expression, only its type.
9636         (expand_vec_cond_expr): Take type and individual operands instead
9637         of full expression.
9638         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
9639         expand_vec_shift_expr): Change prototype accordingly.
9640         * tree-vect-stmts.c (vectorizable_condition): Change call of
9641         expand_vec_cond_expr_p to pass only type.
9642         * expr.c (do_store_flags): Change prototype and implementation
9643         to take an exploded expression.
9644         (expand_expr_real_1): New local ops initialized with details
9645         of the full expression.  Use it instead of full
9646         expression in calls to do_store_flags, expand_vec_cond_expr,
9647         expand_widen_pattern_expr and expand_vec_shift_expr.
9648
9649 2009-08-25  Michael Matz  <matz@suse.de>
9650
9651         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
9652         treeop2 initialized with first three operands of the full expression.
9653         Substitute all TREE_OPERAND (exp, [012]) calls with them.
9654
9655 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
9656
9657         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
9658         (__gthread_objc_condition_allocate): Mark arguments as unused.
9659         (__gthread_objc_condition_deallocate): Likewise.
9660         (__gthread_objc_condition_wait): Likewise.
9661         (__gthread_objc_condition_broadcast): Likewise.
9662         (__gthread_objc_condition_signal): Likewise.
9663         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
9664         (__gthread_objc_thread_id): Likewise.
9665
9666 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
9667
9668         PR middle-end/41149
9669         * tree-pretty-print.c (print_call_name): Print the correct call name
9670         for procedure pointer components.
9671
9672 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
9673
9674         * config/ia64/ia64.c (ia64_promote_function_mode): Call
9675         default_promote_function_mode when not VMS.
9676
9677 2009-08-24  Olivier Hainque  <hainque@adacore.com>
9678
9679         * convert.c (convert_to_integer): Don't assume an input pointer is
9680         POINTER_SIZE wide.  Fetch from the type instead.
9681
9682 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9683
9684         * configure.ac (AC_PREREQ): Bump to 2.64.
9685
9686 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
9687
9688         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
9689         (process_command): Don't search standard_exec_prefix_1 and
9690         standard_exec_prefix_2.
9691
9692 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9693
9694         * config/arm/arm.c (output_return_instruction): Handle for
9695         unified syntax.
9696
9697 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9698
9699         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
9700
9701 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9702
9703         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
9704         (*arm_movdf_vfp): Likewise.
9705
9706 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9707
9708         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
9709         (vashr<mode>3): Rename from ashr<mode>3.
9710         (vlshr<mode>3): Rename from lshr<mode>3.
9711
9712 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
9713
9714         PR/40786
9715         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
9716         (check_format_info_main): Use scalar_identify_flag.
9717         (check_format_types): Check for scalar size identity if
9718         scalar_identify_flag is set.
9719         (printf_length_specs): Extend by new field.
9720         (asm_fprintf_length_specs): Likewise.
9721         (gcc_diag_length_specs): Likewise.
9722         (scanf_length_specs): Likewise.
9723         (strfmon_length_specs): Likewise.
9724         (gcc_gfc_length_specs): Likewise.
9725         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
9726         (ms_printf_flag_specs): Likewise.
9727         * c-format.h (format_length_info): Add new member scalar_identity_flag.
9728
9729 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
9730
9731         PR target/40718
9732         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
9733         (*call_value_pop_1): Ditto.
9734         (*sibcall_pop_1): New insn pattern.
9735         (*sibcall_value_pop_1): Ditto.
9736
9737 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
9738
9739         PR target/41081
9740         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
9741         ashrsi3_64): New.
9742
9743 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
9744
9745         PR target/41081
9746         * fwprop.c (try_fwprop_subst): Allow multiple sets.
9747         (get_reg_use_in): New function.
9748         (forward_propagate_subreg): Propagate through subreg of zero_extend
9749         or sign_extend.
9750
9751 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
9752
9753         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
9754         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
9755
9756 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9757
9758         * configure.ac: Remove --with-datarootdir, --with-docdir,
9759         --with-htmldir switches.  No need to call AC_SUBST for
9760         datarootdir, docdir, htmldir any more.
9761         * configure: Regenerate.
9762         * doc/install.texi (Configuration): Document --datarootdir,
9763         --docdir, --htmldir, --pdfdir; update documentation for
9764         --infodir, --mandir.
9765         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
9766         M4 to 1.4.6.
9767
9768         * aclocal.m4: Regenerate.
9769         * config.in: Regenerate.
9770         * configure: Regenerate.
9771
9772 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
9773             Olivier Hainque  <hainque@adacore.com>
9774
9775         * config/ia64/ia64.c: Include libfuncs.h.
9776         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
9777         (ia64_expand_call): Use reg 25 on VMS.
9778         (ia64_initialize_trampoline): Fix for VMS ABI.
9779         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
9780         (ia64_function_arg): Initialize reg 25 on VMS.
9781         Fix OpenVMS ABI issues for varargs.
9782         For OpenVMS, emit the Argument Information register set in the
9783         incoming/sibcall case as well.
9784         (ia64_arg_type): New function.
9785         (ia64_function_arg_advance): Keep track of cum->words.
9786         Fix OpenVMS ABI issues for varargs.
9787         (ia64_function_value): On VMS, promote mode of non-aggregate types.
9788         (ia64_override_options): Set flag_no_common on VMS.
9789         (ia64_init_builtins): Disable FWRITE builtin.
9790         (ia64_asm_output_external): Call DO_CRTL_NAMES.
9791         (ia64_vms_init_libfuncs): Add decc$ routines.
9792         (ia64_vms_valid_pointer_mode): New function.
9793         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
9794         (ia64_promote_function_mode): New function
9795         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
9796         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
9797         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
9798         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
9799         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
9800         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
9801         Suppress trailing '#' if VALUE is numeric.
9802         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
9803         ia64_promote_function_mode.
9804         (TARGET_VALID_POINTER_MODE): Define.
9805
9806 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9807
9808         PR target/40671
9809         * config/rs6000/rs6000.c (rs6000_override_options): Use
9810         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
9811
9812         PR target/41145
9813         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
9814         reporting of vector + decimal/boolean/complex error.
9815
9816 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
9817
9818         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
9819         __vector double TYPE_DECL.
9820
9821 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
9822
9823         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
9824         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
9825         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
9826         to pointer to enum machine_mode.  Update all callers as needed.
9827
9828 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
9829
9830         * config/alpha/alpha.md (exception_receiver): Emit alternative
9831         GP load sequence if flag_reorder_blocks_and_partition is set.
9832         (*exception_receiver_2): Also enable when
9833         flag_reorder_blocks_and_partition is set.
9834
9835 2009-08-20  Matt Rice  <ratmice@gmail.com>
9836             Diego Novillo  <dnovillo@google.com>
9837
9838         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
9839         tree-ssa-sccvn.h.
9840
9841 2009-08-20  Richard Guenther  <rguenther@suse.de>
9842
9843         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
9844         * c-tree.h (c_dup_lang_specific_decl): Remove.
9845         (struct lang_decl, struct lang_type): Move definitions ...
9846         * c-lang.h: ... here.  New file.
9847         * c-decl.c: Include c-lang.h.
9848         (c_dup_lang_specific_decl): Remove.
9849         * c-typeck.c: Include c-lang.h.
9850         * Makefile.in (c-decl.o): Add c-lang.h dependency.
9851         (c-typeck.o): Likewise.
9852         * c-config-lang.in (gtfiles): Add c-lang.h.
9853         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
9854         like c-tree.h.
9855
9856 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
9857
9858         * config/alpha/alpha.c (alpha_end_function): Do not clear
9859         crtl->emit structure and free insn locators if cfun->is_thunk is true,
9860         this is now handled in generic code.
9861
9862 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
9863
9864         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
9865         (s390_z10_fix_long_loop_prediction): New function.
9866         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
9867         (s390_reorg): Walk over the INSNs and invoke
9868         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
9869
9870 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
9871
9872         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
9873         "*brx_64bit", "*brx_31bit"): New patterns.
9874         * config/s390/s390.c ('E'): New output modifier.
9875
9876 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9877             Richard Earnshaw  <richard.earnshaw@arm.com>
9878
9879         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
9880         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
9881
9882 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9883
9884         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
9885         patterns.
9886         * pa.c (emit_move_sequence): Check if address of operand1 is valid
9887         for mode mode of operand0 when doing secondary reload for SAR.
9888
9889 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
9890
9891         PR middle-end/41123
9892         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
9893         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
9894
9895 2009-08-19  Jason Merrill  <jason@redhat.com>
9896
9897         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
9898         supported template depth in C++0x.
9899
9900 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
9901
9902         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
9903         free_after_compilation.
9904         * config/score/score7.c (score7_output_mi_thunk): Likewise.
9905         * config/score/score3.c (score3_output_mi_thunk): Likewise.
9906         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9907         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
9908         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9909         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9910         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9911
9912 2009-08-19  Ian Lance Taylor  <iant@google.com>
9913
9914         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
9915         of (plus (mult (neg B) C) A).
9916
9917 2009-08-18  Michael Matz  <matz@suse.de>
9918
9919         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
9920         instead of comparing TYPE_MAIN_VARIANT for equality.
9921         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
9922         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
9923         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
9924         * gimplify.c (goa_lhs_expr_p): Ditto and use
9925         STRIP_USELESS_TYPE_CONVERSION.
9926
9927 2009-08-18  Michael Matz  <matz@suse.de>
9928
9929         * tree-ssa-structalias.c (create_variable_info_for): Also mark
9930         first field in a struct.
9931         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
9932
9933 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
9934
9935         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
9936         locators before emit_insn is called.  Remove assert that
9937         cfun->is_thunk.
9938         (alpha_end_function): Clear crtl->emit structure and free insn
9939         locators if cfun->is_thunk is true.
9940
9941 2009-08-18  Jason Merrill  <jason@redhat.com>
9942
9943         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
9944         type if available.
9945         * configure.ac: Test for it.
9946         * configure, config.in: Regenerate.
9947         * doc/install.texi: Document --enable-gnu-unique-object.
9948
9949 2009-08-18  Richard Guenther  <rguenther@suse.de>
9950
9951         PR middle-end/41094
9952         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
9953         pow(x,y*z) only if x is nonnegative.
9954
9955 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
9956
9957         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
9958         on jumps.
9959
9960         PR target/40971
9961         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
9962         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
9963
9964 2009-08-17  DJ Delorie  <dj@redhat.com>
9965
9966         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
9967         * config/m32c/prologue.md (epilogue_freit): New.
9968         (fset_b): New.
9969         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
9970         (bank_switch_p): Likewise.
9971         (fast_interrupt_p): Likewise.
9972         (interrupt_p): Likewise.
9973         (m32c_conditional_register_usage): Round memregs size up.
9974         (need_to_save): We only need to save $a0 when we use ENTER.
9975         (interrupt_p): Check for fast_interrupt too.
9976         (bank_switch_p): New.
9977         (fast_interrupt_p): New.
9978         (m32c_attribute_table): Add bank_switch and fast_interrupt.
9979         (m32c_emit_prolog): Support bank switching and fast interrupts.
9980         * doc/extend.texi (Function Attributes): Add bank_switch and
9981         fast_interrupt.
9982
9983 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
9984
9985         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
9986         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
9987
9988 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
9989
9990         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
9991         (menu): Add IA-64/VMS Options.
9992         (IA-64/VMS Options): Likewise.
9993
9994 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
9995
9996         PR target/38599
9997         * config/mips/mips.md (*lwxs): Use :P for pointer values.
9998
9999 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
10000
10001         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
10002         (mips_pop_asm_switch): Likewise.
10003         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
10004         with...
10005         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
10006         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
10007         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
10008         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
10009         instead of set_noreorder.
10010         (mips_output_function_prologue): Use the new functions.
10011         (mips_output_function_epilogue): Likewise.
10012         (mips_need_noat_wrapper_p): New function, split out from...
10013         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
10014         Use mips_push_asm_switch and mips_pop_asm_switch.
10015         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
10016         and mips_pop_asm_switch.
10017         (ASM_OUTPUT_REG_POP): Likewise.
10018         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
10019         Use mips_pop_asm_switch.
10020         (mips_asm_switch): New structure.
10021         (set_noreorder, set_nomacro): Replace with...
10022         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
10023         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
10024         instead of set_nomacro.
10025         (fix_truncsfsi2_macro): Likewise.
10026         (cprestore): Likewise.
10027         (hazard): Use mips_noreorder instead of set_noreorder.
10028         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
10029
10030 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
10031
10032         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
10033         from prev_active_insn.
10034
10035 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
10036
10037         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
10038         * config/avr/avr.c (avr_override_options): Initialize
10039         avr_current_arch variable.
10040         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
10041         __AVR_HAVE_16BIT_SP__ according to the device type.
10042         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
10043         TARGET_TINY_STACK.
10044         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
10045         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
10046
10047 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
10048
10049         PR debug/37801
10050         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
10051         generating inlined subroutine die only. We shouldn't be
10052         called for anything else.
10053         (gen_block_die): Don't generate inline subroutine debug info for
10054         abstract blocks.
10055
10056 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
10057
10058         * graphite-poly.c (print_pbb): Print PBB index.
10059
10060 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
10061
10062         PR middle-end/40981
10063         * graphite-interchange.c (ppl_max_for_le): Moved...
10064         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
10065         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
10066         ppl_Pointset_Powerset_C_Polyhedron_maximize.
10067         * graphite-ppl.h (ppl_max_for_le): Declared.
10068
10069 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
10070
10071         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
10072         supported on all platforms.
10073         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
10074         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
10075         * c-pragma.c: Likewise.
10076         * target-def.h (TARGET_INITIALIZER): Remove
10077         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
10078         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
10079
10080 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
10081
10082         * config/ia64/fde-vms.c: New file.
10083         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
10084         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
10085         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
10086         (uw_frame_state_for): Only register a personality routine if it is
10087         known to be compatible with our expectations.
10088         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
10089         Declare unw_table_entry stack variable and
10090         mod all calls to _Unwind_FindTableEntry to add arg.
10091         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
10092         (_Unwind_FindTableEntry): Add arg to prototype.
10093
10094 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
10095
10096         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
10097         field 'signal_pfs_loc'.
10098         (uw_frame_state_for): Remove duplicate code dealing with leaf
10099         procedures without unwind info.
10100         If in the frame after unwinding through a signal handler, restore
10101         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
10102         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
10103         'pfs_loc' to the AR.PFS location in the signal context; instead
10104         set 'signal_pfs_loc'.
10105         Manually generate the unwind info for the AR.PFS register.
10106         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
10107         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
10108         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
10109         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
10110         instead set 'signal_pfs_loc'.
10111         Remove code preventing the AR.PFS register from being restored
10112         from the signal context.
10113
10114 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
10115             Tristan Gingold  <gingold@adacore.com>
10116
10117         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
10118         * config/ia64/t-vms: New file.
10119         * config/ia64/vms64.h: New file.
10120         * config/ia64/vms.h: New file.
10121         * config/ia64/vms-crtinit.asm: New file.
10122         * config/ia64/vms_symvec_libgcc_s.opt: New file.
10123         * config/ia64/vms-unwind.h: New file.
10124
10125 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
10126
10127         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
10128         TFmode compares.
10129
10130 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10131
10132         PR middle-end/30789
10133         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
10134         Move declaration...
10135         * real.h (do_mpc_arg2): ... here.
10136         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
10137         and RDIV_EXPR.
10138
10139 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
10140
10141         * final.c (add_debug_prefix_map): Don't use GC memory for
10142         old_prefix and new_prefix.
10143
10144 2009-08-14  Richard Guenther  <rguenther@suse.de>
10145
10146         * ipa-prop.c (compute_complex_pass_through): If we cannot
10147         compute a non-varying offset for IPA_JF_ANCESTOR punt.
10148
10149 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10150
10151         * c-lex.c (c_lex_with_flags): Increase size of local variable
10152         to avoid memory clobber.
10153
10154 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
10155
10156         PR target/40934
10157         * config/i386/i386.c (ix86_fp_comparison_strategy):
10158         Only enable/disable sahf at function granularity.
10159
10160 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
10161
10162         PR rtl-optimization/41064
10163         * reload1.c (reload_as_needed): Don't call extract_insn
10164         for known invalid replacements after calling
10165         validate_replace_rtx_group and verify_changes.
10166
10167 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
10168
10169         PR target/41019
10170         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
10171         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
10172         ix86_expand_fp_vcond.
10173         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
10174         Assert that operation is supported by ix86_expand_int_vcond.
10175         (vcondu<SSEMODE124C8:mode>): Ditto.
10176
10177 2009-08-13  DJ Delorie  <dj@redhat.com>
10178
10179         * config/i386/djgpp-stdint.h: New.
10180         * config.gcc (djgpp): Use it.
10181
10182 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
10183
10184         * config/sh/sh.c (sh_override_options): When flag_exceptions or
10185         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
10186
10187 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
10188
10189         * tree-ssa-loop-prefetch.c
10190         (prune_ref_by_group_reuse): Enhance probabilistic analysis
10191         for long-stride pruning.
10192         (compute_miss_rate): New function to compute the probability
10193         that two memory references access different cache lines.
10194
10195 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
10196
10197         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
10198
10199 2009-08-13  Richard Guenther  <rguenther@suse.de>
10200
10201         PR middle-end/41047
10202         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
10203         use the constant pointer type.
10204         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
10205         of CV qualifiers on the target pointer type.
10206         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
10207         conversion check before restrict check.
10208
10209 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
10210
10211         PR target/41029
10212         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
10213
10214 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
10215
10216         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
10217
10218 2009-08-12  Richard Guenther  <rguenther@suse.de>
10219
10220         PR tree-optimization/41011
10221         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
10222         and reference constructing.
10223
10224 2009-08-12  Xinliang David Li  <davidxl@google.com>
10225
10226         PR tree-optimization/41012
10227         * tree-flow.h : New external interface.
10228         * gimple-low.c (check_call_arg): Change to public function.
10229         Remove argument mismatch check in lowering.
10230         * tree-inline.h (tree_can_inline_p): Interface change.
10231         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
10232         into this function.
10233         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
10234         Call change to tree_can_inline_p function.
10235         (cgraph_decide_inlining_incrementally): Ditto.
10236
10237 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
10238
10239         PR tree-optimization/41031
10240         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
10241         on the partition variable rather than promote_mode on the source
10242         type.  Assert that the partition variable's type has the same
10243         mode as the source value's.
10244
10245 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
10246
10247         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
10248         for for_return == 2.
10249         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
10250         comments.
10251         * calls.c (expand_call): Fix typo.
10252         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
10253         and PARM_DECL.
10254         * stmt.c (expand_value_return): Use promote_function_mode to copy out
10255         of pseudo.
10256         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
10257         * config/cris/cris.c (cris_promote_function_mode): Likewise.
10258         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
10259         * config/pa/pa.c (pa_promote_function_mode): Likewise.
10260
10261 2009-08-12  Andrew Haley  <aph@redhat.com>
10262
10263         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
10264
10265 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10266
10267         PR bootstrap/40103
10268         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
10269
10270 2009-08-12  Richard Guenther  <rguenther@suse.de>
10271
10272         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
10273         * gimplify.c (gimplify_modify_expr): Do not use
10274         lang_hooks.types_compatible_p.
10275         * tree-ssa.c (useless_type_conversion_p): For aggregates
10276         just return false if the canonical types differ.
10277
10278 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10279
10280         PR middle-end/40980
10281         * sese.c (convert_for_phi_arg): New.
10282         (add_guard_exit_phis): Use convert_for_phi_arg.
10283
10284 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10285
10286         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
10287         unknown subscript upper bounds.
10288
10289 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10290             Pranav Garg  <pranav.garg2107@gmail.com>
10291
10292         * graphite-interchange.c (gather_access_strides): Removed.
10293         (ppl_max_for_le): New.
10294         (build_linearized_memory_access): New.
10295         (memory_stride_in_loop): New.
10296         (pbb_interchange_profitable_p): Reimplemented.
10297         * graphite-ppl.h (ppl_new_id_map): New.
10298         (ppl_interchange): New.
10299
10300 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10301
10302         * graphite-interchange.c (compute_subscript): Removed.
10303         (compute_array_size_cstr): Removed.
10304         (compute_array_size_poly): Removed.
10305         (compute_array_size): Removed.
10306         (gather_access_strides_poly): Removed.
10307         (gather_access_strides): Empty.
10308
10309 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10310
10311         * graphite-dependences.c (dependence_polyhedron_1): Replace
10312         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
10313         (graphite_legal_transform_dr): Same.
10314         (graphite_carried_dependence_level_k): Same.
10315         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
10316         Initialize PDR_NB_SUBSCRIPTS.
10317         (print_pdr_access_layout): Replace pdr_nb_subscripts with
10318         PDR_NB_SUBSCRIPTS.
10319         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
10320         (PDR_NB_SUBSCRIPTS): New.
10321         (pdr_nb_subscripts): Removed.
10322         (pdr_dim): Simplified.
10323         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
10324         with PDR_NB_SUBSCRIPTS.
10325
10326 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10327
10328         * graphite-interchange.c (compute_array_size): Remove use of
10329         PDR_DATA_CONTAINER.
10330         * graphite-poly.c (new_poly_dr): Remove argument data_container.
10331         Do not initialize PDR_DATA_CONTAINER.
10332         (print_pdr): Do not print PDR_DATA_CONTAINER.
10333         * graphite-poly.h (struct poly_dr): Remove data_container field.
10334         (PDR_DATA_CONTAINER): Removed.
10335         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
10336         PDR_DATA_CONTAINER.
10337         (build_poly_dr): Same.
10338
10339 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
10340             Sebastian Pop  <sebastian.pop@amd.com>
10341
10342         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
10343         copy of the dependence polyhedron.  Free the temporary objects.
10344         (graphite_carried_dependence_level_k): Free unused objects before
10345         returning.
10346
10347 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10348
10349         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
10350         Early return without analyzing the data dependences if no
10351         transform has been done.  Call restore_scattering if the transform
10352         is not legal.
10353         (graphite-interchange.c): Same.
10354         * graphite-poly.c (print_scattering_function): Test for
10355         PBB_TRANSFORMED.
10356         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
10357         (apply_poly_transforms): Do not gcc_assert that
10358         the transform is legal.
10359         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
10360         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
10361         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
10362         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
10363         * graphite-poly.h (struct poly_scattering): New.
10364         (struct poly_bb): Add original, transformed, and saved fields.
10365         Remove transformed_scattering, original_scattering,
10366         nb_local_variables and nb_scattering_transform fields.
10367         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
10368         (poly_scattering_new): New.
10369         (poly_scattering_free): New.
10370         (poly_scattering_copy): New.
10371         (store_scattering_pbb): New.
10372         (store_scattering): New.
10373         (restore_scattering_pbb): New.
10374         (restore_scattering): New.
10375         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
10376         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
10377
10378 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10379
10380         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
10381         (print_scop): Same.
10382
10383 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10384
10385         * Makefile.in (graphite.o): Depends on PREDICT_H.
10386         * graphite.c: Include predict.h.
10387         (graphite_finalize): Call tree_estimate_probability.
10388         * predict.c (predict_loops): Do not call scev_initialize and
10389         scev_finalize.
10390         (tree_estimate_probability_bb): New.
10391         (tree_estimate_probability): Do not initialize loops: move that
10392         code to the driver.  Call tree_estimate_probability_bb.
10393         (tree_estimate_probability_driver): New.
10394         (pass_profile): Use tree_estimate_probability_driver.
10395         * predict.h (tree_estimate_probability): Declared.
10396
10397 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
10398
10399         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
10400         * graphite-dependences.c (graphite_legal_transform): Add time to
10401         TV_GRAPHITE_DATA_DEPS.
10402         (dependency_between_pbbs_p): Same.
10403         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
10404
10405 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
10406
10407         PR rtl-optimization/41033
10408         * alias.c (nonoverlapping_component_refs_p): Punt when strict
10409         aliasing is disabled.
10410
10411 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
10412
10413         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
10414         si_mask_operand, and_load_operand, low_bitmask_operand,
10415         and_reg_operand, and_operand): New predicates.
10416         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
10417         * config/mips/mips.c (and_operands_ok): New function.
10418         * config/mips/mips-protos.h (and_operands_ok): Declare it.
10419         * config/mips/mips.md (move_type): Add ext_ins and logical.
10420         (type): Handle them.
10421         (and<mode>3): Use and_reg_operand as the second operand's predicate.
10422         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
10423         shift_shift.  Remove commutative constraint modifier.
10424         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
10425         shift_shift.
10426         (*clear_upper32_dext): Remove define_insn_and_split.
10427         (*clear_upper32): Turn this define_insn_and_split ...
10428         (splitter for ANDing register with 0xffff_ffff): .. into this.
10429
10430 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
10431
10432         * combine.c (try_widen_shift_mode): Factor out code to check if an
10433         integer constant is a low-order bitmask from here ...
10434         * rtlanal.c (low_bitmask_len): ... to here.
10435         * rtl.h (low_bitmask_len): Declare.
10436
10437 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
10438
10439         PR target/8603
10440         * config/alpha/alpha.md (addsi3): Remove expander.
10441         (addsi3): Rename from *addsi3_internal insn pattern.
10442         (subsi3): Remove expander.
10443         (subsi3): Rename from *subsi3_internal insn pattern.
10444
10445 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
10446
10447         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
10448         FWRITE_UNLOCKED.
10449
10450 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
10451             Eric Botcazou  <botcazou@adacore.com>
10452             Douglas B Rupp  <rupp@gnat.com>
10453
10454         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
10455         that records that fit in 64 bits are returned by immediate value,
10456         as required by OpenVMS Calling Standard.
10457         (function_value): Adjust for above modification.
10458         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
10459         virtual_incoming_args_rtx as base object, not next_arg.
10460         * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
10461
10462 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10463
10464         * reload.c (find_reloads_subreg_address): Check the original
10465         req_equiv_mem address to detect the case where an address is
10466         not valid in the outer mode.
10467
10468 2009-08-11  Richard Guenther  <rguenther@suse.de>
10469
10470         PR bootstrap/40788
10471         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
10472
10473 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
10474
10475         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
10476         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
10477
10478 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
10479             Douglas B Rupp  <rupp@gnat.com>
10480
10481         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
10482         PT_STACK when frame_pointer_needed on OpenVMS.
10483         (alpha_pv_save_size, alpha_using_fp): Remove.
10484         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
10485         with proper processing for PT_NULL.
10486         (alpha_vms_initial_elimination_offset): New function. Support for
10487         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
10488         (alpha_sa_size): Force procedure type to PT_STACK when
10489         frame_pointer_needed on OpenVMS.
10490         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
10491         (alpha_using_fp): Likewise.
10492         (alpha_vms_can_eliminate): Add prototype.
10493         (alpha_vms_initial_elimination_offset): Likewise.
10494         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
10495         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
10496
10497 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
10498             Douglas B Rupp  <rupp@gnat.com>
10499
10500         * config/alpha/alpha.c (common_object_handler): New function.
10501         (vms_attribute_table): Declare a single attribute "common_object".
10502         (vms_output_aligned_decl_common): New global function.
10503         (SECTION_VMS_OVERLAY): Delete.
10504         (SECTION_VMS_GLOBAL): Likewise.
10505         (SECTION_VMS_INITIALIZE): Likewise.
10506         (vms_asm_named_section): Remove support for above flags.
10507         (vms_section_type_flags): Delete.
10508         (TARGET_SECTION_TYPE_FLAGS): Likewise.
10509         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
10510         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
10511         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
10512
10513 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10514
10515         PR target/41015
10516         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
10517         (sub_ddmmss): Likewise.
10518
10519 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
10520
10521         PR bootstrap/41018
10522         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
10523         year.
10524
10525 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10526
10527         PR target/37053
10528         * reload1.c (reload_as_needed): Use cancel_changes to completely
10529         undo a failed replacement attempt.
10530
10531 2009-08-10  Richard Guenther  <rguenther@suse.de>
10532
10533         PR middle-end/41006
10534         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
10535         (useless_type_conversion_p): ... here.  Require pointer targets
10536         to be compatible.
10537
10538 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
10539
10540         PR c++/40866
10541         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
10542         loose the original type of the statement list.
10543
10544 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
10545
10546         * config/alpha/alpha.c: Include libfuncs.h
10547         (avms_asm_output_extern): New function.
10548         (alpha_init_libfuncs): Init some decc libfuncs.
10549         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
10550         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
10551         (DO_CRTL_NAMES): Define.
10552         (LIB_SPEC): Remove.
10553         * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
10554         (LONG_TYPE_SIZE): Define.
10555         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
10556         (SUBTARGET_SWITCHES): Define malloc64 switch.
10557         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
10558         (MASK_RETURN_ADDR): Define.
10559         doc/invoke.texi (mmalloc64): Document switch.
10560
10561 2009-08-09  Olivier Hainque  <hainque@adacore.com>
10562             Douglas B Rupp  <rupp@gnat.com>
10563
10564         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
10565         uses_condition_handler.
10566         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
10567         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
10568         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
10569         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
10570         (code_for_builtin): New insn codes for the new alpha_builtins.
10571         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
10572         (alpha_sa_size): Account for uses_condition_handler.
10573         (alpha_expand_prologue): Likewise.
10574         (alpha_start_function): Likewise.
10575         (alpha_expand_epilogue): Likewise.
10576         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
10577         establish/revert expanders.
10578         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
10579         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
10580         New expander, resorting to the alpha.c associated function.
10581         (builtin_revert_vms_condition_handler): Likewise.
10582         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
10583         __gcc_shell_handler, the static VMS condition handler used as
10584         an indirection wrapper to the current dynamically established
10585         handler.
10586         * config/alpha/vms-unwind.h: Complete rewrite.
10587         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
10588         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
10589
10590 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
10591             Douglas B Rupp  <rupp@gnat.com>
10592
10593         * config/alpha/alpha.c (alpha_links): Add 'target' field.
10594         (alpha_need_linkage): Handle aliases.  Return function symbol.
10595         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
10596         Use ultimate alias target for the linkage name.
10597         * config/alpha/alpha.md (movmemdi): Use the symbol returned
10598         by alpha_need_linkage for the function symbol.
10599         (setmemdi): Likewise.
10600
10601 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
10602
10603         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
10604         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
10605         (ASM_WEAKEN_LABEL): Define.
10606         (CRT_CALL_STATIC_FUNCTION): Define.
10607         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
10608         (ENDFILE_SPEC): Define.
10609         (INIT_SECTION_ASM_OP): Define.
10610         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
10611         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
10612         crtend.o crtendS.o.
10613         (MULTILIB_OSDIRNAMES): Define.
10614         (shlib_version): Define.
10615         (SHLIB_EXT): Define.
10616         (SHLIB_OBJS): Define.
10617         (SHLIB_NAME): Define.
10618         (SHLIB_MULTILIB): Define.
10619         (SHLIB_INSTALL): Define.
10620         (SHLIB_SYMVEC): Define.
10621         (SHLIB_SYMVECX2): Define.
10622         (SHLIB_LINK): Define.
10623
10624 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
10625
10626         * config/alpha/alpha.c (alpha_initialize_trampoline):
10627         Initialize VMS trampoline IAW ABI for bounded procedure calls.
10628         (alpha_start_function): Emit transfer address on nested functions
10629         for VMS trampoline call.
10630         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
10631         since no longer used.
10632         * config/alpha/vms-tramp.asm: Remove.
10633         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
10634         since now only data initialized at runtime.
10635
10636 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
10637
10638         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
10639         (LINK_GCC_C_SEQUENCE_SPEC): Define.
10640         (MD_EXEC_PREFIX): Remove, no longer used.
10641         (MD_STARTFILE_PREFIX): Likewise.
10642         (INCLUDE_DEFAULTS): Likewise.
10643         * config/alpha/t-vms:
10644         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
10645
10646 2009-08-09  Richard Guenther  <rguenther@suse.de>
10647
10648         PR tree-optimization/41016
10649         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
10650         (operand_precision): Remove.
10651         (integral_operand_p): Likewise.
10652         (recognize_single_bit_test): Adjust.
10653
10654 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
10655
10656         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
10657         operation overflows.  Likewise non-cast unary arithmetic.
10658         If one arm of a conditional expression is always taken,
10659         inhibit evaluation warnings for the other arm.  Likewise inhibit
10660         evaluation warnings for the second && or || operand if the first
10661         operand is enough to determine the result.
10662         * c-typeck.c (build_conditional_expr): Apply the same inhibition
10663         rules here.
10664         (build_binary_op): Prevent duplicate evaluation warnings.
10665
10666 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
10667
10668         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
10669         and destination have different modes, Use promote_mode to
10670         determine the signedness of the conversion.  Assert that the
10671         promoted source mode matches the destination mode.  Don't pass
10672         the destination and destination mode to expand_expr if the source
10673         mode is different.  Simplify conversion logic.
10674
10675 2009-08-09  Ira Rosen  <irar@il.ibm.com>
10676
10677         PR tree-optimization/41008
10678         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
10679         from condition only in case it's a comparison. Adjust checks.
10680
10681 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
10682
10683         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
10684         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
10685         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
10686         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
10687         (dump_cand): Handle them.
10688         (struct iv_cand): New members COST_STEP and AINC_USE.
10689         (stmt_after_increment): Likewise.
10690         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
10691         callers changed.  Use gimple_uid comparison instead of scanning.
10692         (add_candidate_1): When looking for identical candidates, take
10693         AINC_USE into account.  Set it for new candidates.
10694         (force_expr_to_var_cost): Cast target_spill_cost to int.
10695         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
10696         All callers changed.  Check for availability of autoinc addressing
10697         modes, both in general for a given mode, and in the specific use case.
10698         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
10699         changed.
10700         (get_computation_cost): Likewise.
10701         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
10702         add_autoinc_candidates): New static functions.
10703         (add_candidate): Call add_autoinc_candidates for candidates based on
10704         a USE_ADDRESS use.
10705         (find_iv_candidates): Call set_autoinc_for_original_candidates.
10706         (determine_use_iv_cost_address): If we have an autoinc candidate at
10707         the matching use, verify autoinc is possible and subtract the cost
10708         of the candidate's step from the cost.
10709         (determine_iv_cost): Record the cost of the increment in the COST_STEP
10710         member of the candidate.
10711         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
10712         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
10713
10714 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
10715
10716         * config.build (ia64-hp-*vms*): New target.
10717         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10718         with ia64-hp-*vms*.
10719         * config.gcc (ia64-hp-*vms*): New target.
10720         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10721         with ia64-hp-*vms*.
10722         * config.host (ia64-hp-*vms*): New target.
10723         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10724         with ia64-hp-*vms*.
10725
10726 2009-08-08  Richard Guenther  <rguenther@suse.de>
10727
10728         PR tree-optimization/40991
10729         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
10730
10731 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
10732
10733         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
10734         mode check.  Do truncations in an integer mode.
10735         (force_to_mode): Handle subregs for all mode types.  Only do
10736         arithmetic simplifications on integer modes.
10737
10738 2009-08-07  Richard Guenther  <rguenther@suse.de>
10739
10740         PR tree-optimization/40999
10741         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
10742         (maybe_fold_reference): Lookup constant initializers.
10743         (fold_gimple_assign): Likewise.
10744
10745 2009-08-07  Richard Guenther  <rguenther@suse.de>
10746
10747         * tree-ssa.c (useless_type_conversion_p_1): Only for types
10748         that require structural equality defer to the langhook.
10749
10750 2009-08-07  Martin Jambor  <mjambor@suse.cz>
10751
10752         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
10753         comments.
10754         (struct ipa_pass_through_data): New type.
10755         (struct ipa_ancestor_jf_data): New type.
10756         (union jump_func_value): Removed field formal_id, added fields
10757         pass_through and ancestor.
10758         (struct ipa_param_call_note): Changed type of formal_id to int from
10759         unsigned.
10760         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
10761         operations jump functions and ancestor jump functions.
10762         (compute_complex_pass_through): New function.
10763         (compute_scalar_jump_functions): Call compute_complex_pass_through,
10764         reflect changes in the jump function strucutre.
10765         (update_jump_functions_after_inlining): Ignore complex pass-through
10766         and ancestor jump functions.
10767         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
10768         polynomial pass-through with operation jump functions.
10769
10770 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
10771
10772         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
10773         fde->dw_fde_begin as begin label instead of hot/cold label.
10774         Use LLSDAC label instead of LLSDA for second section lsda.
10775         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
10776         label instead of LLSDA if it is true.
10777         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
10778         callers.
10779         * except.c (add_call_site, dw2_size_of_call_site_table): Add
10780         SECTION argument.  Use it as index into crtl->eh.call_site_record
10781         array.
10782         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
10783         use it to determine how to print table entries instead of using
10784         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
10785         label instead of normal begin label as base.
10786         (sjlj_assign_call_site_values): Adjust add_call_site caller.
10787         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
10788         ensure no EH range spans between sections and that landing pads
10789         are always in the corresponding section.
10790         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
10791         for crtl->eh.call_site_record being an array rather than scalar.
10792         (output_one_function_exception_table): New function, copied
10793         from output_function_exception_table.  Adjust
10794         dw2_size_of_call_site_table, dw2_output_call_site_table
10795         callers.  For SECOND section use *C suffixed labels.
10796         (output_function_exception_table): Call
10797         output_one_function_exception_table and, when doing hot/cold
10798         partitioning, also another time for the second section.
10799         * opts.c: Include except.h.
10800         (decode_options): Allow -freorder-blocks-and-partition with
10801         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
10802         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
10803         * function.h (struct rtl_eh): Change call_site_record from
10804         scalar into array of 2 elements.
10805
10806 2009-08-07  Martin Jambor  <mjambor@suse.cz>
10807
10808         * ipa-prop.c (count_formal_params_1): New function.
10809         (ipa_get_vector_of_formal_parms): New function.
10810         (get_vector_of_formal_parm_types): New function.
10811         (ipa_modify_formal_parameters): New function.
10812         (ipa_modify_call_arguments): New function.
10813         (index_in_adjustments_multiple_times_p): New function.
10814         (ipa_combine_adjustments): New function.
10815         (ipa_dump_param_adjustments): New function.
10816         * ipa-prop.h (struct ipa_parm_adjustment): New type.
10817         (ipa_get_vector_of_formal_parms): Declare.
10818         (ipa_modify_formal_parameters): Declare.
10819         (ipa_modify_call_arguments): Declare.
10820         (ipa_combine_adjustments): Declare.
10821         (ipa_dump_param_adjustments): Declare.
10822         (build_ref_for_offset): Declare.
10823         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
10824         * tree-sra.c: Include ipa-prop.c.
10825         (build_ref_for_offset): Make public.
10826
10827 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
10828
10829         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
10830
10831 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
10832
10833         * gcc/doc/extend.texi (__builtin_extract_return_address)
10834         (__builtin_frob_return_address): Document.
10835
10836 2009-08-06  Paul Brook  <paul@codesourcery.com>
10837
10838         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
10839         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
10840         implementation on ARMv6-M.
10841
10842 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10843
10844         * doc/extend.texi (pcs): Document new attribute for ARM.
10845
10846 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10847
10848         * arm.c (pcs_attribute_args): Comment out unsupported attribute
10849         variants.
10850
10851 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10852
10853         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
10854         warning ().
10855
10856 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10857
10858         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
10859
10860 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10861
10862         Merge ARM/hard_vfp_branch to trunk.
10863
10864         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
10865
10866         * arm.c (libcall_eq): New function.
10867         (libcall_hash): New function.
10868         (add_libcall): New function.
10869         (arm_libcall_uses_aapcs_base): New function.
10870         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
10871         libcalls using the base PCS.
10872         (arm_init_cumulative_args): Likewise.
10873
10874         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
10875
10876         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
10877         Use base ABI for conversion libfuncs between HFmode and SFmode.
10878
10879         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
10880
10881         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
10882         V4SImode as representatives of all 64-bit and 128-bit vector
10883         types.  Allow vector types without vector modes.
10884         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
10885         without vector modes like BLKmode.
10886         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
10887         BLKmode.  Avoid unsupported vector modes or TImode moves for
10888         non-TARGET_NEON.
10889         (aapcs_vfp_allocate_return_reg): Likewise.
10890         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
10891         V8QImode if TARGET_NEON || TARGET_IWMMXT.
10892
10893         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
10894
10895         * config/arm/arm.c (arm_handle_pcs_attribute): New.
10896         (arm_get_pcs_model): Pass attribute arguments to
10897         arm_pcs_from_attribute.
10898         (arm_init_cumulative_args): Use base AAPCS for conversions from
10899         floating-point types to DImode.
10900         (arm_attribute_table): Add pcs attribute.
10901         (arm_handle_pcs_attribute): New.
10902         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
10903         conversions from floating-point types to DImode, also declare them
10904         to use base AAPCS and declare functions they call to use base
10905         AAPCS and their RTABI names.
10906
10907         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
10908
10909         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
10910         -mfloat-abi=hard not being supported for VFP.
10911
10912         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
10913
10914         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
10915         SYMBOL_REF to hard_libcall_value.
10916
10917         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
10918             Richard Earnshaw  <rearnsha@arm.com>
10919
10920         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
10921         has been put on the stack, all remaining co-processory arguments for
10922         that co-processor also go on the stack.
10923
10924         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
10925
10926         * config/arm/arm.c (arm_return_in_memory): Handle returning
10927         vectors of suitable size in registers also for AAPCS case.
10928
10929         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
10930
10931         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
10932
10933         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
10934
10935         ARM Hard-VFP calling convention
10936         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
10937         * target.h (gcc_target): Add libcall_value to table of call hooks.
10938         * targhooks.h (default_libcall_value): Default implementation.
10939         * targhooks.c (default_libcall_value): Likewise.
10940         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
10941         * optabs.c (expand_unop): Use it.
10942         * expr.h (hard_libcall_value): Pass the function RTX through.
10943         * calls.c (emit_library_call_value_1): Update call to
10944         hard_libcall_value.
10945         * explow.c (hard_libcall_value): Use new target hook.
10946         * config/arm/arm.c: Include cgraph.h
10947         (TARGET_FUNCTION_VALUE): Override default hook.
10948         (arm_pcs_default): New variable.
10949         (arm_override_options): Don't fault hard calling convention with VFP.
10950         Add support for AAPCS variants.
10951         (arm_function_value): Make static.  Handle AAPCS variants.
10952         (arm_libcall_value): New function.
10953         (arm_apply_result_size): Handle VFP registers in results.
10954         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
10955         conventions.
10956         (pcs_attribute_args): New variable.
10957         (arm_pcs_from_attribute): New function.
10958         (arm_get_pcs_model): New function.
10959         (aapcs_vfp_cum_init): New function.
10960         (aapcs_vfp_sub_candidate): New function.
10961         (aapcs_vfp_is_return_candidate): New function.
10962         (aapcs_vfp_is_call_candidate): New function.
10963         (aapcs_vfp_allocate): New function.
10964         (aapcs_vfp_allocate_return_reg): New function.
10965         (aapcs_vfp_advance): New function.
10966         (aapcs_cp_arg_layout): New variable.
10967         (aapcs_select_call_coproc): New function.
10968         (aapcs_select_return_coproc): New function.
10969         (aapcs_allocate_return_reg): New function.
10970         (aapcs_libcall_value): New function.
10971         (aapcs_layout_arg): New function.
10972         (arm_init_cumulative_args): Initialize AAPCS args data.
10973         (arm_function_arg): Handle AAPCS variants using new interface.
10974         (arm_arg_parital_bytes): Likewise.
10975         (arm_function_arg_advance): New function.
10976         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
10977         calling conventions.
10978         (arm_setup_incoming_varargs): Handle new AAPCS args data.
10979         * arm.h (NUM_VFP_ARG_REGS): Define.
10980         (LIBCALL_VALUE): Update.
10981         (FUNCTION_VALUE): Delete.
10982         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
10983         (arm_pcs): New enum.
10984         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
10985         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
10986         (FUNCTION_ARG_REGNO_P): Add VFP regs.
10987         * arm-protos.h (arm_function_arg_advance): Add.
10988         (aapcs_libcall_value): Add.
10989         (arm_function_value): Delete.
10990
10991 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
10992             H.J. Lu  <hongjiu.lu@intel.com>
10993
10994         PR target/40957
10995         * config/i386/i386.c (standard_sse_mode_p): Remove.
10996         (standard_sse_constant_p): Return 2 for integer mode
10997         vector_all_ones_operand when SSE2 is enabled.
10998         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
10999         (ix86_expand_vector_move): Do not check for negative values from
11000         standard_sse_constant_p.
11001
11002 2009-08-06  Richard Guenther  <rguenther@suse.de>
11003
11004         * tree-ssa.c (useless_type_conversion_p_1): Make function and
11005         array type comparisons frontend independent.
11006         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
11007         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
11008         out array reference lower bound and element size operands.
11009         (ao_ref_init_from_vn_reference): Properly compute the offset
11010         for ARRAY_RANGE_REF.
11011         (vn_reference_fold_indirect): Fill out array reference lower
11012         bound and element size operands.
11013         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
11014         a non gimple valued reference operand which can happen for
11015         array reference lower bound or element size.
11016         (create_component_ref_by_pieces_1): Properly generate the
11017         element size operand for array references.
11018
11019 2009-08-06  Richard Guenther  <rguenther@suse.de>
11020
11021         PR tree-optimization/40964
11022         * tree.c (iterative_hash_host_wide_int): Export.
11023         * tree.h (iterative_hash_host_wide_int): Declare.
11024         * tree-ssa-structalias.c (heapvar_map): New struct.
11025         (heapvar_map_eq): New function.
11026         (heapvar_map_hash): Likewise.
11027         (heapvar_lookup): Adjust.
11028         (heapvar_insert): Likewise.
11029         (make_constraint_from_heapvar): Allow multiple heap variables
11030         per decl at different offsets.
11031         (init_alias_heapvars): Adjust.
11032
11033 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
11034
11035         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
11036         * mips_output_sync_loop (mips_output_sync_loop): Only emit
11037         trailing sync if TARGET_SYNC_AFTER_SC.
11038
11039 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
11040
11041         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
11042         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
11043         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
11044         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
11045         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
11046         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
11047         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
11048         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
11049         test_and_set_12): Rewrite calls to mips_output_sync_loop.
11050         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
11051         the prototype declaration match the definition.
11052         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
11053         instructions explicitly.  Add barrier_before and operands
11054         parameters.
11055         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
11056         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
11057         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
11058         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
11059         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
11060         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
11061
11062 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
11063
11064         * tree-ssa-alias.c: Fix intervals to use [) syntax.
11065
11066 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
11067             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
11068
11069         PR target/40906
11070         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
11071         source operand.
11072
11073 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
11074
11075         PR rtl-optimization/40924
11076         * dse.c (canon_address): Before calling cselib_expand_value_rtx
11077         make sure canon_rtx (mem_address) isn't simpler than
11078         canon_rtx (expanded_mem_address).
11079
11080 2009-08-05  Li Feng  <nemokingdom@gmail.com>
11081
11082         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
11083         for each poly_bb_p.
11084         (build_scop_drs): Build alias set for each SCoP.
11085
11086 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
11087
11088         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
11089         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
11090         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
11091         (MIPS_ARCH_FLOAT_SPEC): Likewise.
11092         (BASE_DRIVER_SELF_SPECS): Likewise.
11093
11094 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
11095
11096         * tree-ssa-alias.c: Fix some comment typos.
11097
11098 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
11099
11100         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
11101         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
11102
11103 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
11104
11105         PR c/39902
11106         * simplify-rtx.c (simplify_binary_operation_1): Disable
11107         simplifications for decimal float operations.
11108
11109 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
11110
11111         PR middle-end/40943
11112         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
11113         operand of INDIRECT_REF.
11114
11115 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
11116
11117         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
11118         constants referencing TLS symbols.
11119
11120 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
11121
11122         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
11123         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
11124
11125 2009-08-03  Richard Guenther  <rguenther@suse.de>
11126
11127         * tree.c (make_vector_type): Build a main variant first,
11128         get the canonical one and then build the variant.
11129         * tree-ssa.c (useless_type_conversion_p_1): Handle
11130         fixed-point types.
11131         (useless_type_conversion_p): Conversions to pointers to
11132         incomplete record types are useless.
11133
11134 2009-08-03  Richard Guenther  <rguenther@suse.de>
11135
11136         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
11137         file will be created.
11138         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
11139         * toplev.c (compile_file): Adjust comment.
11140
11141 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
11142
11143         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
11144         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
11145         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11146         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
11147         (sh_promote_function_mode): Fix typo.
11148
11149 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
11150
11151         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
11152
11153 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11154
11155         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
11156         declaration arguments.
11157
11158 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
11159
11160         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
11161         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
11162         (ix86_split_ashl): Ditto.
11163         (ix86_expand_vector_init_one_nonzero): Ditto.
11164         (ix86_expand_vector_set): Ditto.
11165         (ix86_expand_reduc_v4sf): Ditto.
11166
11167 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
11168
11169         * explow.c (promote_function_mode): Remove assert.
11170         * config/sh/sh.c (sh_promote_function_mode): Declare.
11171
11172 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11173
11174         * config/pa/pa.c (pa_promote_function_mode): Declare.
11175         Change to static.  Fix promote_mode call.
11176
11177         * gthr-dce.h (CONST_CAST2): Define if not defined.
11178         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
11179
11180         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
11181
11182 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
11183
11184         * expr.c (store_constructor): Use promote_decl_mode.  Remove
11185         now write-only variable unsignedp.
11186         (expand_expr_real_1): Use promote_decl_mode.
11187         * expr.h (promote_function_mode, promote_decl_mode): New.
11188         (promote_mode): Remove last argument.
11189         * function.c (assign_temp): Drop last argument of promote_mode.
11190         (assign_parm_find_data_types): Use promote_function_mode.
11191         (assign_parm_setup_reg): Likewise.
11192         (expand_function_end): Use promote_function_mode.
11193         * calls.c (initialize_argument_information): Use promote_function_mode.
11194         (precompute_arguments): Use promote_mode instead of checking if
11195         only PROMOTE_FUNCTION_MODE is defined.
11196         (expand_call): When making sibcall decisions, use promote_function_mode.
11197         Below, remove an if for targetm.calls.promote_function_return and
11198         and use promote_function_mode.
11199         (emit_library_call_value_1): Use promote_function_mode, fix bug
11200         where promote_mode was passed FOR_CALL == 0 for a return value in an
11201         assertion.
11202         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
11203         * explow.c (promote_function_mode, promote_decl_mode): New.
11204         (promote_mode): Keep only the FOR_CALL == 0 case.
11205         * combine.c (setup_incoming_promotion): Remove test of
11206         promote_function_args.  Use promote_function_mode.
11207         * stmt.c (expand_value_return): Use promote_decl_mode.
11208         (expand_decl): Use promote_decl_mode.
11209
11210         * expr.c (store_constructor): Use promote_decl_mode.  Remove
11211         now write-only variable unsignedp.
11212         (expand_expr_real_1): Use promote_decl_mode.
11213         * expr.h (promote_function_mode, promote_decl_mode): New.
11214         (promote_mode): Remove last argument.
11215         * function.c (assign_temp): Drop last argument of promote_mode.
11216         (assign_parm_find_data_types): Use promote_function_mode.
11217         (assign_parm_setup_reg): Likewise.
11218         (expand_function_end): Use promote_function_mode.
11219         * calls.c (initialize_argument_information): Use promote_function_mode.
11220         (precompute_arguments): Use promote_mode instead of checking if
11221         only PROMOTE_FUNCTION_MODE is defined.
11222         (expand_call): When making sibcall decisions, use promote_function_mode.
11223         Below, remove an if for targetm.calls.promote_function_return and
11224         and use promote_function_mode.
11225         (emit_library_call_value_1): Use promote_function_mode, fix bug
11226         where promote_mode was passed FOR_CALL == 0 for a return value in an
11227         assertion.
11228         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
11229         * explow.c (promote_function_mode, promote_decl_mode): New.
11230         (promote_mode): Keep only the FOR_CALL == 0 case.
11231         * combine.c (setup_incoming_promotion): Remove test of
11232         promote_function_args.  Use promote_function_mode.
11233         * stmt.c (expand_value_return): Use promote_decl_mode.
11234         (expand_decl): Use promote_decl_mode.
11235
11236         * explow.c (promote_function_mode): Just call the target hook.
11237         * targhooks.c (default_promote_function_mode,
11238         default_promote_function_mode_always_promote): New.
11239         * targhooks.h (default_promote_function_mode,
11240         default_promote_function_mode_always_promote): Declare.
11241         * target.h (promote_function_args, promote_function_return): Remove.
11242         (promote_function_mode): New.
11243         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
11244         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11245         (TARGET_PROMOTE_FUNCTION_MODE): New.
11246         (TARGET_CALLS): Adjust.
11247         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
11248         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
11249
11250         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
11251         * config/s390/s390.c (s390_promote_function_mode): ... here,
11252         with pointer handling.
11253         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11254         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11255
11256         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
11257         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
11258         with pointer handling.
11259         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11260         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11261
11262         * config/sh/sh-protos.h (sh_promote_function_mode): New.
11263         * config/sh/sh.c (sh_promote_function_mode): New.
11264         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11265         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11266
11267         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
11268         * config/cris/cris.c (cris_promote_function_mode): ... here.
11269         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11270         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
11271
11272         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
11273         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
11274         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11275         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
11276
11277         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
11278         * config/arm/arm.c (arm_promote_function_mode): ... here, without
11279         complex type handling.
11280         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11281         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11282
11283         * config/pa/pa.c (pa_promote_function_mode): New.
11284         (TARGET_PROMOTE_FUNCTION_MODE): Define.
11285         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11286
11287         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
11288         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
11289         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
11290         * config/xtensa/xtensa.c: Likewise.
11291         * config/stormy16/stormy16.c: Likewise.
11292         * config/iq2000/iq2000.c: Likewise.
11293         * config/rs6000/rs6000.c: Likewise.
11294         * config/picochip/picochip.c: Likewise.
11295         * config/arc/arc.c: Likewise.
11296         * config/mcore/mcore.c: Likewise.
11297         * config/score/score.c: Likewise.
11298         * config/mips/mips.c: Likewise.
11299         * config/bfin/bfin.c: Likewise.
11300         * config/ia64/ia64.c: Likewise (disabled though).
11301
11302         * config/frv/frv.h: Remove pointless remark.
11303
11304         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
11305         TARGET_PROMOTE_FUNCTION_ARGS,
11306         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
11307         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
11308
11309 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
11310
11311         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
11312         -floop-parallelize-all.
11313         * toplev.c (process_options): Rename flag_graphite_force_parallel to
11314         flag_loop_parallelize_all.
11315         * tree-ssa-loop.c (gate_graphite_transforms): Same.
11316         * graphite.c (graphite_transform_loops): Same.
11317         * common.opt: Same.
11318         * graphite-poly.c (apply_poly_transforms): Same.
11319
11320 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
11321
11322         PR tree-optimization/40914
11323         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
11324         if set, then check the delta field of the PMF record.
11325         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
11326         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
11327         call is stored in the delta.
11328
11329 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
11330
11331         * config/mips/mips.md (*clear_upper32_dext): New pattern.
11332
11333 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
11334
11335         * config/i386/bsd.h (ASM_BYTE): New define.
11336         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
11337         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
11338         .byte.  Use fputs or putc instead of fprintf where appropriate.
11339         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
11340         fputs or putc instead of fprintf where appropriate.
11341         * config/i386/i386elf.h: Ditto.
11342         * config/i386/sysv4.h: Ditto.
11343
11344         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
11345         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
11346         (*tls_global_dynamic_64): Ditto.
11347
11348 2009-07-31  Christian Bruel  <christian.bruel@st.com>
11349
11350         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
11351
11352 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11353
11354         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
11355         Remove dead code for MINUS.
11356
11357 2009-07-31  Anthony Green  <green@moxielogic.com>
11358
11359         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
11360         $r12 in prologue.
11361         (moxie_expand_epilogue): Ditto for epilogue.
11362         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
11363         incoming arguments.
11364         (moxie_function_arg): Ditto.
11365         (moxie_pass_by_reference): Ditto.
11366         (moxie_arg_partial_bytes): Ditto.
11367         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
11368         (FUNCTION_ARG_ADVANCE) Ditto.
11369         (REG_PARM_STACK_SPACE) Ditto.
11370         (FUNCTION_ARG_REGNO_P) Dito.
11371
11372         * config.gcc: Add moxie linux config support.
11373         * gcc/config/moxie/uclinux.h: New file.
11374
11375 2009-07-31  DJ Delorie  <dj@redhat.com>
11376
11377         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
11378         (UNSPECV_SP_SWITCH_E): New.
11379         (sp_switch_1): Change to an unspec.
11380         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
11381         replace $r15.
11382         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
11383         reference the new stack's address
11384
11385 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11386
11387         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
11388         graphite-clast-to-gimple.o, graphite-dependences.o,
11389         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
11390         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
11391         (graphite-blocking.o,
11392         graphite-clast-to-gimple.o, graphite-dependences.o,
11393         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
11394         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
11395         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
11396         * cfgloop.h (struct loop): Add can_be_parallel field.
11397         * common.opt (fgraphite-identity): Moved up.
11398         (fgraphite-force-parallel): New flag.
11399         * graphite.c: Rewrite.
11400         * graphite.h: Rewrite.
11401         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
11402         after Graphite.
11403         * toplev.c (graphite_out_file): New file descriptor.
11404         (graphite_in_file): New.
11405         (process_options): flag_graphite_force_parallel cannot be used without
11406         Graphite.
11407         * tree-ssa-loop.c: Include toplev.h.
11408         (gate_graphite_transforms): Enable flag_graphite for
11409         flag_graphite_force_parallel.
11410
11411 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11412
11413         * ChangeLog.graphite: New.
11414         * graphite-blocking.c: New.
11415         * graphite-clast-to-gimple.c: New.
11416         * graphite-clast-to-gimple.h: New.
11417         * graphite-dependences.c: New.
11418         * graphite-dependences.h: New.
11419         * graphite-interchange.c: New.
11420         * graphite-poly.c: New.
11421         * graphite-poly.h: New.
11422         * graphite-ppl.c: New.
11423         * graphite-ppl.h: New.
11424         * graphite-scop-detection.c: New.
11425         * graphite-scop-detection.h: New.
11426         * graphite-sese-to-poly.c: New.
11427         * graphite-sese-to-poly.h: New.
11428         * sese.c: New.
11429         * sese.h: New.
11430
11431 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11432
11433         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
11434         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
11435
11436 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11437
11438         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
11439         (scev_is_linear_expression): Return false if the evolution is not
11440         affine multivariate.
11441
11442 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11443
11444         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
11445         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
11446
11447 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11448
11449         * tree-data-ref.c (debug_data_references): New.
11450         (debug_data_reference): New.
11451         * tree-data-ref.h (debug_data_references): Declared.
11452         (debug_data_reference): Declared.
11453
11454 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11455
11456         * tree-data-ref.c (stmt_simple_memref_p: Removed.
11457         * tree-data-ref.h (scop_p): Removed.
11458         (struct data_reference): Remove field scop.
11459         (DR_SCOP): Removed.
11460         (stmt_simple_memref_p): Removed.
11461
11462 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11463
11464         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
11465         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
11466         basic block empty.
11467
11468 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11469
11470         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
11471
11472 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11473
11474         * doc/invoke.texi (-fgraphite-identity): Documented.
11475
11476 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11477
11478         * tree-scalar-evolution.c: Fix comment.
11479         (instantiate_scev_1): Return unknow from scev instantiation if the
11480         result is not above instantiate_below.
11481
11482 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
11483
11484         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
11485         static anymore.  Instantiate the symbols that may have been introduced
11486         by chrec_apply.
11487         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
11488         Declared.
11489
11490 2009-07-30  DJ Delorie  <dj@redhat.com>
11491
11492         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
11493         .vliw directive to VLIW sections.
11494
11495 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11496
11497         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
11498         New variables.
11499         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
11500         (AUTOHEADER): New variable.
11501         ($(srcdir)/cstamp-h.in): Use it.
11502
11503 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
11504             Pat Haugen  <pthaugen@us.ibm.com>
11505             Revital Eres <ERES@il.ibm.com>
11506
11507         * config/rs6000/vector.md (VEC_F): Add VSX support.
11508         (VEC_A): Ditto.
11509         (VEC_N): Ditto.
11510         (mov<mode>): Ditto.
11511         (vector_load_<mode>): Ditto.
11512         (vector_store_<mode>): Ditto.
11513         (vector GPR move split): Ditto.
11514         (vec_reload_and_plus_<mptrsize>): Ditto.
11515         (vec_reload_and_reg_<mptrsize>): Ditto.
11516         (add<mode>3): Ditto.
11517         (sub<mode>3): Ditto.
11518         (mul<mode>3): Ditto.
11519         (neg<mode>2): Ditto.
11520         (abs<mode>2): Ditto.
11521         (smin<mode>3): Ditto.
11522         (smax<mode>3): Ditto.
11523         (vector_eq<mode>): Ditto.
11524         (vector_gt<mode>): Ditto.
11525         (vector_ge<mode>): Ditto.
11526         (vector_gtu<mode>): Ditto.
11527         (vector_select_<mode>_uns): Ditto.
11528         (vector_eq_<mode>_p): Ditto.
11529         (vector_gt_<mode>_p): Ditto.
11530         (vector_ge_<mode>_p): Ditto.
11531         (vector_gtu_<mode>_p): Ditto.
11532         (cr6_test_for_zero): Ditto.
11533         (cr6_test_for_zero_reverse): Ditto.
11534         (cr6_test_for_lt): Ditto.
11535         (cr6_test_for_lt_reverse): Ditto.
11536         (xor<mode>3): Ditto.
11537         (ior<mode>3): Ditto.
11538         (and<mode>3): Ditto.
11539         (one_cmpl<mode>2): Ditto.
11540         (nor<mode>2): Ditto.
11541         (andc<mode>2): Ditto.
11542         (float<VEC_int<mode>2): Ditto.
11543         (unsigned_float<VEC_int><mode>2): Ditto.
11544         (fix_trunc<mode><VEC_int>2): Ditto.
11545         (fixuns_trunc<mode><VEC_int>2): Ditto.
11546         (vec_init<mode>):
11547         (vec_set<mode>): Ditto.
11548         (vec_extract<mode>): Ditto.
11549         (vec_interleave_highv4sf): Ditto.
11550         (vec_interleave_lowv4sf): Ditto.
11551         (vec_realign_load_<mode>): Ditto.
11552         (vec_shl_<mode>): Ditto.
11553         (vec_shr_<mode>): Ditto.
11554         (div<mode>3): New patterns for VSX.
11555         (vec_interleave_highv2df): Ditto.
11556         (vec_interleave_lowv2df): Ditto.
11557         (vec_pack_trunc_v2df): Ditto.
11558         (vec_pack_sfix_trunc_v2df): Ditto.
11559         (vec_pack_ufix_trunc_v2df): Ditto.
11560         (vec_unpacks_hi_v4sf): Ditto.
11561         (vec_unpacks_lo_v4sf): Ditto.
11562         (vec_unpacks_float_hi_v4si): Ditto.
11563         (vec_unpacks_float_lo_v4si): Ditto.
11564         (vec_unpacku_float_hi_v4si): Ditto.
11565         (vec_unpacku_float_lo_v4si): Ditto.
11566         (movmisalign<mode>): Ditto.
11567         (vector_ceil<mode>2): New patterns for vectorizing math library.
11568         (vector_floor<mode>2): Ditto.
11569         (vector_btrunc<mode>2): Ditto.
11570         (vector_copysign<mode>3): Ditto.
11571
11572         * config/rs6000/predicates.md (easy_vector_constant_msb): New
11573         predicate for setting the high bit in each word, used for copysign.
11574
11575         * config/rs6000/ppc-asm.h (f19): Whitespace.
11576         (f32-f63): Define if VSX.
11577         (v0-v31): Define if Altivec.
11578         (vs0-vs63): Define if VSX.
11579
11580         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
11581
11582         * config/rs6000/power7.md: New file, provide tuning parameters for
11583         -mcpu=power7.
11584
11585         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
11586         (rs6000_cpu_cpp_builtins): Ditto.
11587         (altivec_overloaded_builtins): Ditto.
11588         (altivec_resolve_overloaded_builtin): Ditto.
11589
11590         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
11591         debug switch to disable vectorizing simple math builtin
11592         functions.
11593
11594         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
11595         Vectorize simple math builtin functions.
11596         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
11597         hook to vectorize math builtins.
11598         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
11599         (rs6000_builtin_conversion): Add VSX/power7 support.
11600         (rs6000_builtin_vec_perm): Ditto.
11601         (vsplits_constant): Add support for loading up a vector constant
11602         with just the high bit set in each part.
11603         (rs6000_expand_vector_init): Add VSX/power7 support.
11604         (rs6000_expand_vector_set): Ditto.
11605         (rs6000_expand_vector_extract): Ditto.
11606         (rs6000_emit_move): Ditto.
11607         (bdesc_3arg): Ditto.
11608         (bdesc_2arg): Ditto.
11609         (bdesc_1arg): Ditto.
11610         (rs6000_expand_ternop_builtin): Ditto.
11611         (altivec_expand_builtin): Ditto.
11612         (rs6000_expand_unop_builtin): Ditto.
11613         (rs6000_init_builtins): Ditto.
11614         (altivec_init_builtins): Ditto.
11615         (builtin_function_type): Ditto.
11616         (rs6000_common_init_builtins): Ditto.
11617         (rs6000_handle_altivec_attribute); Ditto.
11618         (rs6000_mangle_type): Ditto.
11619         (rs6000_vector_mode_supported_p): Ditto.
11620         (rs6000_mode_dependent_address): Altivec addresses with AND -16
11621         are mode dependent.
11622
11623         * config/rs6000/vsx.md: New file for VSX support.
11624
11625         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
11626         identifing values with just the most significant bit set.
11627         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
11628         vectorized builtins.
11629
11630         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
11631         (UNSPEC_VRFIM): Delete.
11632         (splitter for loading up vector with most significant bit): New
11633         splitter for vectorizing copysign.
11634         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
11635         vectorizing simple math functions.
11636         (altivec_vrfip): Add support for vectorizing simple math functions.
11637         (altivec_vrfim): Ditto.
11638         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
11639
11640         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
11641         (power7.md, vsx.md): Include for power7 support.
11642         (copysigndf3): Use VSX instructions if -mvsx.
11643         (negdf2_fpr): Ditto.
11644         (absdf2_fpr): Ditto.
11645         (nabsdf2_fpr): Ditto.
11646         (adddf3_fpr): Ditto.
11647         (subdf3_fpr): Ditto.
11648         (muldf3_fpr): Ditto.
11649         (divdf3_fpr): Ditto.
11650         (fix_truncdfdi2_fpr): Ditto.
11651         (cmpdf_internal1): Ditto.
11652         (fred, fred_fpr): Convert into expander/insn to add VSX support.
11653         (btruncdf2, btruncdf2_fpr): Ditto.
11654         (ceildf2, ceildf2_fpr): Ditto.
11655         (floordf2, floordf2_fpr): Ditto.
11656         (floatdidf2, floatdidf2_fpr): Ditto.
11657         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
11658         (fmsubdf4_fpr): Ditto.
11659         (fnmadddf4_fpr_1): Ditto.
11660         (fnmadddf4_fpr_2): Ditto.
11661         (fnmsubdf4_fpr_1): Ditto.
11662         (fnmsubdf4_fpr_2): Ditto.
11663         (fixuns_truncdfdi2): Add expander for VSX support.
11664         (fix_truncdfdi2): Ditto.
11665         (fix_truncdfsi2): Ditto.
11666         (ftruncdf2): Ditto.
11667         (btruncsf2): Whitespace.
11668         (movdf_hardfloat32): Add support for VSX registers.
11669         (movdf_softfloat32): Ditto.
11670         (movdf_hardfloat64): Ditto.
11671         (movdf_hardfloat64_mfpgpr): Ditto.
11672         (movdf_softfloat64): Ditto.
11673         (movti splitters): Add check for vector registers supporting
11674         TImode in the future.
11675         (bpermd): Add power7 bpermd instruction.
11676
11677         * config/rs6000/altivec.h (vec_div): Define if VSX.
11678         (vec_mul): Ditto.
11679         (vec_msub): Ditto.
11680         (vec_nmadd): Ditto.
11681         (vec_nearbyint): Ditto.
11682         (vec_rint): Ditto.
11683         (vec_sqrt): Ditto.
11684         (all predicates): Use the generic builtin function, and not the V4SF
11685         specific function so that the predicates will work with VSX's V2DF.
11686         (vec_all_*): Ditto.
11687         (vec_any_*): Ditto.
11688
11689         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
11690         Document new VSX functions and types.
11691
11692         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
11693         switches.
11694
11695         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
11696         "wa", and "j" constraints.  Modify "v" to talk about Altivec
11697         instead of just vector.
11698
11699 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
11700
11701         PR debug/26475
11702         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
11703         location for phi arguments.
11704         (rewrite_update_phi_arguments): Find locations for reaching defs.
11705         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
11706         Add location to add_phi_arg calls.
11707         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
11708         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
11709         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
11710         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
11711         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
11712         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
11713         * tree-phinodes.c (make_phi_node): Initialize location.
11714         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
11715         (add_phi_arg): Add location parameter.
11716         (remove_phi_arg_num): Move location when moving phi argument.
11717         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
11718         location.
11719         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
11720         slpeel_update_phi_nodes_for_guard1,
11721         slpeel_update_phi_nodes_for_guard2,
11722         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
11723         vect_loop_versioning): Set locations.
11724         * tree-parloops.c (create_phi_for_local_result,
11725         transform_to_exit_first_loop, create_parallel_loop): Add locations.
11726         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
11727         * tree-vect-loop.c (get_initial_def_for_induction,
11728         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
11729         locations.
11730         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
11731         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
11732         (gimple_phi_arg_set_location): New.  Set locus.
11733         (gimple_phi_arg_has_location): New.  Check for locus.
11734         (redirect_edge_var_map_location): New.  Return locus from var_map.
11735         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
11736         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
11737         combining PHI arguments.
11738         (cond_store_replacement): Set location.
11739         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
11740         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
11741         scop_add_exit_phis_edge): Add locations.
11742         * tree-cfgcleanup.c (remove_forwarder_block,
11743         remove_forwarder_block_with_phi): Add locations.
11744         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
11745         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
11746         locations.
11747         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
11748         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
11749         flush_pending_stmts): Add source location.
11750         * lambda-code.c (perfect_nestify): Maintain location stack with argument
11751         stack to preserve locations.
11752         * tree-vect-stmts.c (vectorizable_load): Add location.
11753         * tree-inline.c (copy_phis_for_bb): Copy locus.
11754         (setup_one_parameter): Add call locus to inlined parameter stmts.
11755         (initialize_inlined_parameters): Pass in call location as parameter
11756         assignment locus.
11757         (tree_function_versioning): Pass location to setup_one_parameter.
11758         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
11759         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
11760         copy and edge lists.
11761         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
11762         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
11763         locus parameter and override the stmt default if provided.
11764         (new_elim_graph, clear_elim_graph, delete_elim_graph,
11765         elim_graph_add_edge, elim_graph_remove_succ_edge,
11766         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
11767         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
11768         eliminate_phi):  Add locus info in elimination graph for each edge and
11769         value copy.
11770         (insert_backedge_copies): Copy locus if present.
11771         * tree-flow.h (struct _edge_var_map): Add locus field.
11772         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
11773         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
11774         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
11775         locations.
11776         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
11777
11778 2009-07-30  Martin Jambor  <mjambor@suse.cz>
11779
11780         PR tree-optimization/40570
11781         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
11782         use inlining loops.
11783
11784 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
11785
11786         * ssa-loop-manip.c: Include langhooks.h.
11787         (rewrite_phi_with_iv): New.
11788         (rewrite_all_phi_nodes_with_iv): New.
11789         (canonicalize_loop_ivs): Move here from tree-parloops.c.
11790         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
11791         * tree-parloops.c (loop_parallel_p): Move out all conditions
11792         except dependency check.
11793         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
11794         (gen_parallel_loop): Call canonicalize_loop_ivs without
11795         reduction_list argument.
11796         (build_new_reduction): New.
11797         (gather_scalar_reductions): New.
11798         (try_get_loop_niter): New.
11799         (try_create_reduction_list): New.
11800         (parallleize_loops): Change the parallel conditions check.
11801         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
11802         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
11803
11804 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
11805
11806         * opt-functions.awk (opt_args): Allow argument to be enclosed in
11807         curly braces.
11808         * doc/options.texi (Option properties):  Mention new quoting syntax.
11809
11810 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11811
11812         * config/alpha/alpha.c (alpha_start_function):
11813         Handle VMS_DEBUG_MAIN_POINTER
11814         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
11815         * doc/invoke.texi: Document -mdebug-main switch.
11816
11817 2009-07-29  Richard Henderson  <rth@redhat.com>
11818
11819         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
11820         (cgraph_create_edge_including_clones): Likewise.
11821         * tree-inline.c (copy_bb): Operate on the correct edges
11822         when updating the callgraph.
11823
11824 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11825
11826         * config/alpha/vms-cc.c: Deleted.
11827         * config/alpha/vms-ld.c: Deleted.
11828         * config/alpha/t-vms64: Moved to config/vms
11829         * config/alpha/vms-crt0-64.c: Moved to config/vms
11830         * config/alpha/vms-crt0.c: Moved to config/vms
11831         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
11832         * config/alpha/vms-psxcrt0.c: Moved to config/vms
11833         * config/alpha/xm-vms.h: Moved to config/vms
11834         * config/alpha/x-vms: Moved to config/vms
11835         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
11836         config/vms/t-vms.
11837         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
11838         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
11839         (version): Set.
11840         * config/vms/t-vms64: Moved here from config/alpha
11841         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
11842         (argc,argv,envp): Enforce 32bit malloc'ing.
11843         * config/vms/vms-psxcrt0-64.c: Likewise.
11844         * config/vms/vms-crt0.c: Moved here from config/alpha.
11845         * config/vms/vms-psxcrt0.c: Likewise.
11846         * config/vms/vms-crtl-64.h: New file.
11847         * config/vms/vms-crtl.h: New file.
11848         * config/vms/vms.opt: New file.
11849         * config/vms/xm-vms64.h: New file.
11850         * config/vms/xm-vms.h: Moved here from config/alpha.
11851         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
11852         Set.
11853         * config/vms/x-vms: Moved here from config/alpha.
11854         (version, VMS_EXTRA_PARTS): Moved to t-vms.
11855         (vms-ld.o, vms-cc.o): Removed.
11856         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
11857
11858 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11859
11860         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
11861         correct stack (obvious VMS fix).
11862
11863 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11864
11865         * dwarf2out.c (output_file_names): Output VMS style file name, size,
11866         date, version info if VMS_DEBUGGING_INFO defined.
11867         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
11868         size, date calculating code moved here.
11869
11870 2009-07-29  Paul Brook  <paul@codesourcery.com>
11871
11872         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
11873         do_push/do_pop.
11874
11875 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
11876
11877         PR target/40577
11878         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
11879         to DImode when generating insq_le insn.
11880
11881 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
11882
11883         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
11884         New macro set for VMS_DEBUGGGING_INFO.
11885         (AT_string_form): Use it.
11886
11887 2009-07-28  DJ Delorie  <dj@redhat.com>
11888
11889         * config/mep/mep.c (vtext_section): New.
11890         (vftext_section): New.
11891         (ftext_section): New.
11892         (mep_select_section): Add support for functions.
11893         (mep_unique_section): Likewise.
11894         (mep_asm_init_sections): Likewise.
11895         (mep_encode_section_info): Remove it from here.
11896
11897         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
11898
11899 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
11900
11901         * tree.h (TREE_DEPRECATED): Document it is used for types too.
11902         (TYPE_VECTOR_OPAQUE): Use default_def_flag
11903
11904 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
11905
11906         * dwarf2out.c (output_file_names): Test new macro
11907         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
11908         (add_comp_dir_attribute): Likewise.
11909
11910 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
11911
11912         * config/i386/mingw-w64.h (LINK_SPEC): Add
11913         separating space between commands.
11914
11915 2009-07-28  Jan Hubicka  <jh@suse.cz>
11916
11917         PR tree-optimization/40759
11918         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
11919         for renaming.
11920
11921 2009-07-27  DJ Delorie  <dj@redhat.com>
11922
11923         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
11924         types are dword-aligned.
11925         (mep_expand_va_start): Likewise.
11926
11927 2009-07-27  Olivier Hainque  <hainque@adacore.com>
11928             Douglas B Rupp  <rupp@gnat.com>
11929
11930         * convert.c (convert_to_pointer): Don't assume the target
11931         pointer type is POINTER_SIZE long. Fetch its precision instead.
11932
11933 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
11934
11935         * system.h (fopen): Undefine if macro.
11936
11937 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
11938
11939         * dwarf2out.c (output_cfi_p): Removed.
11940         (output_cfis): New function.
11941         (output_fde): New function, split from output_call_frame_info.
11942         (output_call_frame_info): Use it.
11943         (dwarf2out_switch_text_section): Use output_cfis.
11944
11945 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
11946
11947         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
11948         TARGET_BI_ARCH is specified without enabling SJLJ.
11949         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
11950         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
11951
11952 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
11953
11954         * arm.md (negdi2): Use DImode if forcing a value into a register.
11955
11956 2009-07-26  Ira Rosen  <irar@il.ibm.com>
11957
11958         PR tree-optimization/40801
11959         * tree-vect-stmts.c (vectorizable_call): Get previous copy
11960         of vector operand from the previous copy of vector statement.
11961         Pass the correct definition type value to
11962         vect_get_vec_def_for_stmt_copy().
11963
11964 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11965
11966         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
11967         const char ** conversion.
11968
11969 2009-07-25 David Daney <ddaney@caviumnetworks.com>
11970
11971         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
11972         fancy_abort() if !ENABLE_ASSERT_CHECKING.
11973         (gcc_unreachable): Invoke __builtin_unreachable() if
11974         !ENABLE_ASSERT_CHECKING.
11975
11976 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
11977
11978         PR rtl-optimization/40445
11979         * emit-rtl.c (next_nonnote_insn_bb): New function.
11980         * rtl.h (next_nonnote_insn_bb): Declare new function.
11981         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
11982         with no successors that is the successor of the ENTRY_BLOCK.
11983         Continue from the top after removing an empty fallthrough block.
11984         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
11985         of next_nonnote_insn.
11986
11987 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
11988
11989         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
11990
11991 2009-07-25  Martin Jambor  <mjambor@suse.cz>
11992
11993         * c-common.c (c_common_attribute_table): New element for noclone.
11994         (handle_noclone_attribute): New function. Forward-declare.
11995         * tree-inline.c (tree_versionable_function_p): Check for noclone
11996         attribute.
11997         * doc/extend.texi (Labels as Values): Document need for noclone.
11998         (Function Attributes): Document noclone attribute.
11999
12000 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
12001
12002         PR rtl-optimization/34999
12003         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
12004         and dw_fde_switched_cold_to_hot fields.
12005         (output_cfi_p): New function.
12006         (output_call_frame_info): If fde->dw_fde_switched_sections,
12007         output 2 FDEs instead of one with corrupted header.
12008         (dwarf2out_do_cfi_startproc): New function.
12009         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
12010         and fde->dw_fde_switched_cold_to_hot.
12011         (dwarf2out_switch_text_section): Compute
12012         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
12013         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
12014         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
12015         Otherwise, compute fde->dw_fde_switch_cfi.
12016
12017 2009-07-24  Cary Coutant  <ccoutant@google.com>
12018
12019         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
12020
12021 2009-07-24  Cary Coutant  <ccoutant@google.com>
12022
12023         * cfghooks.c (split_block): Copy discriminator to new block.
12024         * tree-cfg.c (assign_discriminator): Check location of last
12025         instruction in block as well as first.
12026
12027 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
12028
12029         * config/i386/linux.c: Use fputs or putc instead of fprintf
12030         where appropriate.
12031         * config/i386/gas.h: Ditto.
12032         * config/i386/x86-64.h: Ditto.
12033         * config/i386/att.h: Ditto.
12034
12035 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12036
12037         * expmed.c (emit_store_flag): Use a recursive call to optimize the
12038         xor case.
12039
12040 2009-07-24  Martin Jambor  <mjambor@suse.cz>
12041
12042         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
12043         (ipa_push_func_to_list_1): Declare.
12044         (ipa_push_func_to_list): New function.
12045
12046         * ipa-prop.c (ipa_push_func_to_list_1): New function.
12047         (ipa_init_func_list): Call ipa_push_func_to_list_1.
12048         (ipa_push_func_to_list): Removed.
12049         (ipa_pop_func_from_list): Clear node_enqueued flag.
12050
12051 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
12052
12053         * config/s390/s390.c (override_options): Default
12054         max-unrolled-insns to 100 for z10 tuning.
12055
12056 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
12057
12058         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
12059         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
12060         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
12061         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
12062         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
12063         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
12064         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
12065
12066 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
12067
12068         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
12069         use default set in mingw32.h header.
12070         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
12071         64-bit /mingw/include path.
12072         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
12073         path.
12074
12075 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
12076
12077         PR rtl-optimization/40209
12078         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
12079
12080 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
12081
12082         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
12083         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
12084         with the rest of string where appropriate.  Use fputs or putc
12085         instead of fprintf where appropriate.
12086
12087 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
12088             Pat Haugen  <pthaugen@us.ibm.com>
12089             Revital Eres <ERES@il.ibm.com>
12090
12091         * config/rs6000/vector.md: New file.  Move most of the vector
12092         expander support here from altivec.md to allow for the VSX vector
12093         unit in the future.  Add support for secondary_reload patterns.
12094         Rewrite the patterns for vector comparison, and vector comparison
12095         predicate instructions so that the RTL expresses the desired
12096         behavior, instead of using unspec.
12097
12098         * config/rs6000/constraints.md ("f" constraint): Use
12099         rs6000_constraints to hold the precalculated register class.
12100         ("d" constraint): Ditto.
12101         ("wd" constraint): New constraint for VSX.
12102         ("wf" constraint): Ditto.
12103         ("ws" constraint): Ditto.
12104         ("wa" constraint): Ditto.
12105         ("wZ" constraint): Ditto.
12106         ("j" constraint): Ditto.
12107
12108         * config/rs6000/predicates.md (vsx_register_operand): New
12109         predicate for VSX.
12110         (vfloat_operand): New predicate for vector.md.
12111         (vint_operand): Ditto.
12112         (vlogical_operand): Ditto.
12113         (easy_fp_constant): If VSX, 0.0 is an easy constant.
12114         (easy_vector_constant): Add VSX support.
12115         (altivec_indexed_or_indirect_operand): New predicate for
12116         recognizing Altivec style memory references with AND -16.
12117
12118         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
12119         for vector secondary reload support.
12120         (rs6000_vector_reg_class): Delete, replacing it with
12121         rs6000_constraints.
12122         (rs6000_vsx_reg_class): Ditto.
12123         (rs6000_constraints): New array to hold the register classes of
12124         each of the register constraints that can vary at runtime.
12125         (builtin_mode_to_type): New static array for builtin function type
12126         creation.
12127         (builtin_hash_table): New static hash table for builtin function
12128         type creation.
12129         (TARGET_SECONDARY_RELOAD): Define target hook.
12130         (TARGET_IRA_COVER_CLASSES): Ditto.
12131         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
12132         registers are 128 bits if VSX memory reference instructions are used.
12133         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
12134         unit is being used.
12135         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
12136         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
12137         Print several of the scheduling related parameters.
12138         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
12139         rs6000_constraints instead of rs6000_vector_reg_class.  Move
12140         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
12141         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
12142         Altivec.  Add VSX support.  Setup for secondary reload support on
12143         Altivec/VSX registers.
12144         (rs6000_override_options): Make power7 set the scheduling groups
12145         like the power5.  Add support for new debug switches to override
12146         the scheduling defaults.  Temporarily disable -mcpu=power7 from
12147         setting -mvsx.  Add support for debug switches -malways-hint,
12148         -msched-groups, and -malign-branch-targets.
12149         (rs6000_buitlin_conversion): Add support for returning unsigned
12150         vector conversion functions to fix regressions due to stricter
12151         type checking.
12152         (rs6000_builtin_mul_widen_even): Ditto.
12153         (rs6000_builtin_mul_widen_odd): Ditto.
12154         (rs6000_builtin_vec_perm): Ditto.
12155         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
12156         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
12157         to zero a register.
12158         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
12159         generated upstream.
12160         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
12161         VSX types for bit operations.  Changes to accomidate vector.md.
12162         (bdesc_2arg): Ditto.
12163         (bdesc_1arg): Ditto.
12164         (struct builtin_description_predicates): Rewrite predicate
12165         handling so that RTL describes the operation, instead of passing
12166         the instruction to be used as a string argument.
12167         (bdesc_altivec_preds): Ditto.
12168         (altivec_expand_predicate_builtin): Ditto.
12169         (altivec_expand_builtin): Ditto.
12170         (rs6000_expand_ternop_builtin): Use a switch instead of an if
12171         statement for vsldoi support.
12172         (altivec_expand_ld_builtin): Change to use new names from vector.md.
12173         (altivec_expand_st_builtin): Ditto.
12174         (paired_expand_builtin): Whitespace changes.
12175         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
12176         builtin_mode_to_type table for secondary reload.  Call
12177         builtin_function_type to build random builtin functions.
12178         (altivec_init_builtins): Change to use builtin_function_type to
12179         create builtin function types dynamically as we need them.
12180         (builtin_hash_function): New support for hashing the tree types
12181         for builtin function as we need it, rather than trying to build
12182         all of the trees that we need.  Add initial preliminary VSX support.
12183         (builtin_function_type): Ditto.
12184         (builtin_function_eq): Ditto.
12185         (builtin_hash_struct): Ditto.
12186         (rs6000_init_builtins): Ditto.
12187         (rs6000_common_init_builtins): Ditto.
12188         (altivec_init_builtins): Ditto.
12189         (rs6000_common_init_builtins): Ditto.
12190         (enum reload_reg_type): New enum for simplifing reg classes.
12191         (rs6000_reload_register_type): Simplify register classes into GPR,
12192         Vector, and other registers.  Altivec and VSX addresses in reload.
12193         (rs6000_secondary_reload_inner): Ditto.
12194         (rs6000_ira_cover_classes): New target hook, that returns the
12195         appropriate cover classes, based on -mvsx being used or not.
12196         (rs6000_secondary_reload_class): Add VSX support.
12197         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
12198         (get_vsel_insn): Ditto.
12199         (rs6000_emit_vector_compare): Rewrite vector conditional support
12200         so that where we can, we use RTL operators, instead of blindly use
12201         UNSPEC.
12202         (rs6000_emit_vector_select): Ditto.
12203         (rs6000_emit_vector_cond_expr): Ditto.
12204         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
12205         (create_TOC_reference): Add -mdebug=addr support.
12206         (emit_frame_save): VSX loads/stores need register indexed addressing.
12207
12208         * config/rs6000/rs6000.md: Include vector.md.
12209
12210         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
12211
12212         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12213         support for V2DI, V2DF in logical, permute, select operations.
12214
12215         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
12216         switch for vsx/power7.
12217         (-mvsx-scalar-memory): Ditto.
12218         (-mvsx-align-128): Ditto.
12219         (-mallow-movmisalign): Ditto.
12220         (-mallow-df-permute): Ditto.
12221         (-msched-groups): Ditto.
12222         (-malways-hint): Ditto.
12223         (-malign-branch-targets): Ditto.
12224
12225         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
12226         hook instead.
12227         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
12228         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
12229         (rs6000_vector_reg_class): Delete.
12230         (rs6000_vsx_reg_class): Ditto.
12231         (enum rs6000_reg_class_enum): New enum for the constraints that
12232         vary based on target switches.
12233         (rs6000_constraints): New array to hold the register class for all
12234         of the register constraints that vary based on the switches used.
12235         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
12236         (enum rs6000_builtins): Add unsigned varients for the builtin
12237         declarations returned by target hooks for expanding multiplies,
12238         select, and permute operations.  Add VSX builtins.
12239         (enum rs6000_builtin_type_index): Add entries for VSX.
12240         (V2DI_type_node): Ditto.
12241         (V2DF_type_node): Ditto.
12242         (unsigned_V2DI_type_node): Ditto.
12243         (bool_long_type_node): Ditto.
12244         (intDI_type_internal_node): Ditto.
12245         (uintDI_type_internal_node): Ditto.
12246         (double_type_internal_node): Ditto.
12247
12248         * config/rs6000/altivec.md (whole file): Move all expanders to
12249         vector.md from altivec.md.  Rename insn matching functions to be
12250         altivec_foo.
12251         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
12252         (altivec_vcmp*): Ditto.
12253         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
12254         (VM): New iterator for moves that includes the VSX types.
12255         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
12256         (altivec_vperm_<mode>_uns): New, for unsigned types.
12257         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
12258         (altivec_eq<mode>): Ditto.
12259         (altivec_gt<mode>): Ditto.
12260         (altivec_gtu<mode>): Ditto.
12261         (altivec_eqv4sf): Ditto.
12262         (altivec_gev4sf): Ditto.
12263         (altivec_gtv4sf): Ditto.
12264         (altivec_vcmpbfp_p): Ditto.
12265
12266 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
12267
12268         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
12269         unsigned HWI.
12270
12271 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
12272
12273         PR target/40832
12274         * config/i386/i386.c (output_387_ffreep): Rewrite to use
12275         ASM_SHORT instead of .word.
12276         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
12277         instead of .word in asm template.
12278
12279 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
12280
12281         PR target/37488
12282         * ira-lives.c (bb_has_abnormal_call_pred): New function.
12283         (process_bb_node_lives): Use it.
12284
12285         * ira.c (setup_cover_and_important_classes): Don't setup
12286         ira_important_class_nums.  Add cover classes to the end of
12287         important classes.
12288         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
12289         New.
12290         (find_reg_class_closure): Use reorder_important_classes.
12291
12292         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
12293
12294         * config/i386/i386.c (i386_ira_cover_classes): New function.
12295         (TARGET_IRA_COVER_CLASSES): Redefine.
12296
12297         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
12298         importance of order of cover classes in the array.
12299
12300 2009-07-22  Diego Novillo  <dnovillo@google.com>
12301
12302         * tree-pass.h (TDF_EH): Define.
12303         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
12304         contains TDF_EH, print the EH region number holding GS.
12305         * tree-dump.c (dump_options): Add "eh".
12306         * doc/invoke.texi: Document it.
12307
12308 2009-07-22  Doug Kwan  <dougkwan@google.com>
12309
12310         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
12311
12312 2009-07-22  Michael Matz  <matz@suse.de>
12313
12314         PR tree-optimization/35229
12315         PR tree-optimization/39300
12316
12317         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
12318         (inhibit_phi_insertion): New function.
12319         (insert_into_preds_of_block): Call it for REFERENCEs.
12320         (init_pre): Initialize and finalize scalar evolutions.
12321         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
12322
12323 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
12324
12325         * config/i386/predicates.md (zero_extended_scalar_load_operand):
12326         Use CONST_VECTOR_NUNITS to determine number of elements.
12327
12328 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
12329
12330         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
12331         (U, W): Constraints are now deprecated and will be removed if we
12332         run out of letters.
12333         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
12334         the file.
12335         ("prefetch"): Add the stcmh instruction for prefetching.
12336         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
12337         changes.
12338         (s390_short_displacement): Return always true if compiling for
12339         machines not providing the long displacement facility.
12340         (s390_mem_constraint): Support the new constraint letter Z.
12341         (s390_check_qrst_address): New function.
12342
12343 2009-07-21  DJ Delorie  <dj@redhat.com>
12344
12345         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
12346         alone too.
12347
12348 2009-07-21  Jason Merrill  <jason@redhat.com>
12349
12350         * c-common.c (max_tinst_depth): Increase default to 1024.
12351
12352 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
12353
12354         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
12355         (vec_unpacku_float_lo_v4si): Ditto.
12356
12357 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
12358
12359         PR target/40811
12360         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
12361         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
12362         (builtin_description): Add __builtin_ia32_cvtudq2ps.
12363         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
12364
12365 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
12366
12367         PR tree-optimization/40813
12368         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
12369         it.
12370
12371 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
12372
12373         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
12374         with a NOP_EXPR if needed.
12375
12376 2009-07-21  Paul Brook <paul@codesourcery.com>
12377
12378         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
12379         Terminate debug dump with newline.
12380
12381 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12382
12383         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
12384         Cast "1" to unsigned HOST_WIDE_INT.
12385         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
12386         deposit length to the maximum length - lsb.  Extend length if
12387         HOST_BITS_PER_WIDE_INT is 32.
12388
12389 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
12390
12391         * cgraph.h (constant_pool_htab): New function.
12392         (constant_descriptor_tree): Move from varasm.c.
12393         * varasm.c (constant_pool_htab): New function.
12394         (constant_descriptor_tree): Move to cgraph.h.
12395
12396 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
12397
12398         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
12399
12400 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
12401
12402         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
12403         $(VARRAY_H).
12404
12405 2009-07-20  Xinliang David Li  <davidxl@google.com>
12406
12407         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
12408
12409 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
12410
12411         * config/mips/mips.md (move_type): Add arith.
12412         (type): Handle arith.
12413         (zero_extendsidi2): Rename this into ...
12414         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
12415         (zero_extendsidi2): New expander.
12416         (*zero_extendsidi2_dext): New pattern.
12417
12418 2009-07-20  Nick Clifton  <nickc@redhat.com>
12419
12420         * config.gcc (mips64-*-*): Add definition of tm_defines in order
12421         to set MIPS_ABI_DEFAULT.
12422         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
12423
12424 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
12425
12426         * tree-object-size.c (addr_object_size): Handle unions with
12427         array in it as last field of structs in __bos (, 1) as __bos (, 0).
12428
12429         PR tree-optimization/40792
12430         * tree.c (build_function_type_skip_args): Remove bogus assert.
12431
12432 2009-07-20  Jan Hubicka  <jh@suse.cz>
12433             Martin Jambor  <mjambor@suse.cz>
12434
12435         * cgraph.h (combined_args_to_skip): New field.
12436         * cgraph.c (cgraph_create_virtual_clone): Properly handle
12437         combined_args_to_skip and args_to_skip.
12438         * tree-inline.c (update_clone_info): New function.
12439         (tree_function_versioning): Call update_clone_info.
12440         * cgraphunit.c (cgraph_materialize_clone): Dump materialized
12441         functions.
12442         (cgraph_materialize_all_clones): More extensive dumping, working
12443         with combined_args_to_skip rather than args_to_skip.
12444
12445 2009-07-20  Ira Rosen  <irar@il.ibm.com>
12446
12447         * tree-vectorizer.h (vectorizable_condition): Add parameters.
12448         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
12449         (get_initial_def_for_reduction): Likewise.
12450         (vectorizable_reduction): Skip the check of first operand in case
12451         of COND_EXPR. Add check that it is outer loop vectorization if
12452         nested cycle was detected. Call vectorizable_condition() for
12453         COND_EXPR. If reduction epilogue cannot be created do not fail for
12454         nested cycles (if it is not double reduction). Assert that there
12455         is only one type in the loop in case of COND_EXPR. Call
12456         vectorizable_condition() to vectorize COND_EXPR.
12457         * tree-vect-stmts.c (vectorizable_condition): Update comment.
12458         Add parameters. Allow nested cycles if called from
12459         vectorizable_reduction(). Use reduction vector variable if provided.
12460         (vect_analyze_stmt): Call vectorizable_reduction() before
12461         vectorizable_condition().
12462         (vect_transform_stmt): Update call to vectorizable_condition().
12463
12464 2009-07-20  Christian Bruel  <christian.bruel@st.com>
12465
12466         * config/sh/sh.opt (-mfmovd): Resurrect and document.
12467         * doc/invoke.texi (-mfmovd): Likewise.
12468         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
12469
12470 2009-07-20  Jan Hubicka  <jh@suse.cz>
12471
12472         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
12473         when handling SSA name.
12474
12475 2009-07-19  Jan Hubicka  <jh@suse.cz>
12476
12477         PR tree-optimization/40676
12478         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
12479         virtual PHIs in empty BBs.
12480
12481 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
12482
12483         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
12484         re-expanded the compound use gen_lowpart instead to convert to the
12485         desired mode.
12486
12487 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
12488
12489         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
12490         OUTER_CONST arguments.
12491         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
12492         the new wider mode will be masked off.
12493         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
12494
12495 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
12496
12497         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
12498         high-order bits are zero.
12499
12500 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
12501
12502         * combine.c (simplify_shift_const_1): Split code to determine
12503         shift_mode into ...
12504         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
12505         new bits shifted in are identical to the old sign bit.
12506
12507 2009-07-18  Richard Guenther  <rguenther@suse.de>
12508
12509         PR c/40787
12510         * gimplify.c (gimplify_call_expr): Reject code using results from
12511         functions returning void.
12512
12513 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
12514
12515         * doc/md.texi: Document the new PowerPC "es" constraint.
12516         Document that "m" can include automodified addresses on this target,
12517         and explain how %U must be used.  Extend the "Q" and "Z" documentation
12518         to suggest "es" as well as "m".
12519         * config/rs6000/constraints.md (es): New memory constraint.
12520         (Q, Z): Update strings to match new documentation.
12521
12522 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
12523
12524         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
12525         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
12526         * config/rs6000/predicates.md (volatile_mem_operand): Use
12527         offsettable_nonstrict_memref_p.
12528         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
12529         (*floatunssidf2_internal): Likewise.
12530         (*fix_truncdfsi2_internal): Likewise.
12531         (*fix_trunctfsi2_internal): Likewise.
12532
12533 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
12534
12535         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
12536         atmega32u2 devices.
12537         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
12538
12539 2009-07-17  Richard Guenther  <rguenther@suse.de>
12540
12541         PR c/40401
12542         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
12543         (pass_warn_unused_result): Likewise.
12544         (TODO_set_props): Remove.
12545         * omp-low.c (diagnose_omp_structured_block_errors): Change to
12546         run as a pass.
12547         (pass_diagnose_omp_blocks): Define.
12548         * c-decl.c (pop_file_scope): Do not finalize the CU here.
12549         (c_gimple_diagnostics_recursively): Remove.
12550         (finish_function): Do not call it.
12551         (c_write_global_declarations): Continue after errors.
12552         Finalize the CU here.
12553         * c-gimplify.c (c_genericize): Do not gimplify here.
12554         * c-common.c (c_warn_unused_result): Move ...
12555         * tree-cfg.c (do_warn_unused_result): ... here.
12556         (run_warn_unused_result): New function.
12557         (gate_warn_unused_result): New function.
12558         (pass_warn_unused_result): New pass.
12559         * c-common.h (c_warn_unused_result): Remove.
12560         * flags.h (flag_warn_unused_result): Declare.
12561         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
12562         * opts.c (flag_warn_unused_result): Initialize to false.
12563         * toplev.c (compile_file): Add comment.
12564         * omp-low.c (create_omp_child_function): Do not register
12565         the function with the frontend.
12566         (diagnose_omp_structured_block_errors): Prepare to be
12567         called as optimization pass.
12568         (gate_diagnose_omp_blocks): New function.
12569         (pass_diagnose_omp_blocks): New pass.
12570         * cgraph.h (cgraph_optimize): Remove.
12571         (cgraph_analyze_function): Likewise.
12572         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
12573         * cgraphunit.c (cgraph_lower_function): Lower nested functions
12574         before their parents here.
12575         (cgraph_finalize_function): Not here.
12576         (cgraph_analyze_function): Gimplify functions here.
12577         (cgraph_finalize_compilation_unit): Continue after errors.
12578         Optimize the callgraph from here.
12579         (cgraph_optimize): Make static.
12580         * langhooks.c (write_global_declarations): Finalize the CU.
12581         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
12582         (gimplify_function_tree): Assert we gimplify only once.
12583         Set PROP_gimple_any property.
12584         * tree-nested.c (gimplify_all_functions): New function.
12585         (lower_nested_functions): Gimplify all nested functions.
12586         * gimple.h (diagnose_omp_structured_block_errors): Remove.
12587         * passes.c (init_optimization_passes): Add pass_warn_unused_result
12588         and pass_diagnose_omp_blocks after gimplification.  Do not
12589         set TODO_set_props on all_lowering_passes.
12590         (execute_one_pass): Do not handle TODO_set_props.
12591         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
12592         (gimplify.o): Add tree-pass.h dependency.
12593         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
12594         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
12595         (unsave_r): Likewise.
12596         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
12597         temporary variable.
12598
12599 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
12600
12601         * doc/service.texi (Service): Restore previously removed link,
12602         which isn't broken after all.
12603
12604 2009-07-17  Richard Guenther  <rguenther@suse.de>
12605
12606         PR tree-optimization/40321
12607         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
12608         PHI nodes to the maximal set.
12609         (make_values_for_phi): Add PHI arguments to the maximal set.
12610         (execute_pre): Dump PHI_GEN and the maximal set.
12611
12612 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
12613
12614         PR c++/40780
12615         * gimplify.c (gimplify_conversion): Don't change non-conversions into
12616         VIEW_CONVERT_EXPR.
12617
12618 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
12619
12620         * doc/extend.texi (Nested Functions): Replace broken link with
12621         textual reference.
12622         * doc/service.texi (Service): Remove broken link.
12623
12624 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
12625
12626         PR bootstrap/40781
12627         * builtins.c (expand_builtin_memcmp): Use loc instead of
12628         EXPR_LOCATION (exp).
12629         (expand_builtin_strncmp): Likewise.
12630
12631 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
12632             Manuel López-Ibáñez  <manu@gcc.gnu.org>
12633
12634         PR 40435
12635         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
12636         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
12637         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
12638         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
12639         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
12640         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
12641         tree-inline.c, c-common.c, c-common.h, gimple.c,
12642         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
12643         convert.c: Add location argument to fold_{unary,binary,ternary},
12644         fold_build[123], build_call_expr, build_size_arg,
12645         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
12646         fold_build1_initializer, fold_build2_initializer,
12647         fold_build3_initializer, fold_build_call_array,
12648         fold_build_call_array_initializer, fold_single_bit_test,
12649         omit_one_operand, omit_two_operands, invert_truthvalue,
12650         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
12651         combine_comparisons, fold_builtin_*, fold_call_expr,
12652         build_range_check, maybe_fold_offset_to_address, round_up,
12653         round_down.
12654
12655 2009-07-16  Jason Merrill  <jason@redhat.com>
12656
12657         PR libstdc++/37907
12658         * c-common.c (c_common_reswords): Add __is_standard_layout
12659         and __is_trivial.
12660         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
12661         * doc/implement-cxx.texi: New.
12662         * doc/gcc.texi: Include it.
12663
12664 2009-07-16  DJ Delorie  <dj@redhat.com>
12665
12666         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
12667         compares that may be indirectly affected by previous instructions.
12668
12669 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12670
12671         * builtins.c (do_mpc_arg2): New.
12672         (fold_builtin_2): Fold builtin cpow.
12673         * real.h (HAVE_mpc_pow): New.
12674
12675 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
12676
12677         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
12678         comparison to skip unprofitable schedule
12679
12680 2009-07-16  Simon Baldwin  <simonb@google.com>
12681
12682         * gcc.c (option_map): New flag -no-canonical-prefixes.
12683         * (display_help): Print help text for new flag.
12684         * (process_command): Move options translation and language specifics
12685         and handle new flag early.  Use it to set a function pointer to a
12686         prefix builder.  Replace make_relative_prefix calls with calls to
12687         the function pointed to.  Ignore new flag in regular options handling.
12688         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
12689
12690 2009-07-15  DJ Delorie  <dj@redhat.com>
12691
12692         * config/mep/mep.md (sibcall_internal): Change register to avoid
12693         argument registers.
12694         (sibcall_value_internal): Likewise.
12695
12696 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
12697
12698         PR rtl-optimization/40710
12699         * resource.c (mark_target_live_regs): Reset DF problem to LR.
12700
12701 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
12702
12703         * config/mips/mips.md (*extenddi_truncate<mode>,
12704         *extendsi_truncate<mode>): Change type attribute to move_type
12705         with shift_shift.  Split out code handling exts from here ...
12706         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
12707         pattern.
12708         (*extendhi_truncateqi): Change type attribute to move_type with
12709         shift_shift.  Split out code handling exts from here ...
12710         (*extendhi_truncateqi_exts): ... to this new pattern.
12711
12712 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
12713
12714         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
12715         instead of "and" with inverted sign bit mask value.  Use
12716         "nonimmediate_operand" for operand 1 and operand 2 predicate.
12717         Allocate registers only for operand 4 and operand 5.
12718
12719 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
12720
12721         PR middle-end/40747
12722         * fold-const.c (fold_cond_expr_with_comparison): When folding
12723         < and <= to MIN, make sure the MIN uses the same type as the
12724         comparison's operands.
12725
12726 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
12727
12728         * arm.md (ior_xor): New code iterator.
12729         (split for ior/xor with shift and zero-extend): New split pattern.
12730         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
12731
12732 2009-07-15  Richard Guenther  <rguenther@suse.de>
12733
12734         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
12735         offset member.
12736
12737 2009-07-15  Richard Guenther  <rguenther@suse.de>
12738
12739         PR middle-end/40753
12740         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
12741
12742 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
12743
12744         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
12745         handle 2.6.30 kernel.
12746
12747 2009-07-15  DJ Delorie  <dj@redhat.com>
12748
12749         * config/mep/mep.md (sibcall_internal): Change register to allow
12750         for 24-bit addresses.
12751         (sibcall_value_internal): Likewise.
12752
12753 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
12754
12755         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
12756         that are enabled/disabled by the flags introduced by a previous patch.
12757
12758 2009-07-14  DJ Delorie  <dj@redhat.com>
12759
12760         * config/mep/mep.md (sibcall_internal): Include non-toggling
12761         non-jmp case.
12762         (sibcall_value_internal): Likewise.
12763
12764 2009-07-14  Taras Glek  <tglek@mozilla.com>
12765             Rafael Espindola  <espindola@google.com>
12766
12767         * doc/sourcebuild.texi: Document install-plugin target.
12768         * configure.ac: Added install-plugin target to language makefiles.
12769         * configure: Regenerate.
12770         * Makefile.in (install-plugin): Install more headers,
12771         depend on lang.install-plugin.
12772
12773 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12774
12775         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
12776         translation.
12777
12778 2009-07-14  DJ Delorie  <dj@redhat.com>
12779
12780         * config/mep/mep.c (mep_vliw_jmp_match): New function.
12781         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
12782         * config/mep/mep.md (sibcall_internal): Change test from
12783         mep_vliw_mode_match to mep_vliw_jmp_match.
12784         (sibcall_value_internal): Likewise.
12785
12786 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
12787
12788         * config/i386/sse.md (copysign<mode>3): New expander.
12789         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
12790         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
12791         Use ix86_build_const_vector.
12792         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
12793         IX86_BUILTIN_CPYSGNPD.
12794         (builtin_description): Add __builtin_ia32_copysignps and
12795         __builtin_ia32_copysignpd.
12796         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
12797         and BUILT_IN_COPYSIGNF.
12798
12799 2009-07-13  Jason Merrill  <jason@redhat.com>
12800
12801         * builtins.c (can_trust_pointer_alignment): New fn.
12802         (get_pointer_alignment): Factor it out from here.
12803         * tree.h: Declare it.
12804
12805 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
12806
12807         * config/rs6000/predicates.md (offsettable_mem_operand): Test
12808         RTX_AUTOINC class.
12809
12810 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
12811
12812         PR debug/40705
12813         PR c++/403057
12814         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
12815
12816 2009-07-14  Richard Guenther  <rguenther@suse.de>
12817             Andrey Belevantsev <abel@ispras.ru>
12818
12819         PR middle-end/40745
12820         * cfgexpand.c (partition_stack_vars): Do not bother to update
12821         alias information when not optimizing.
12822
12823 2009-07-14  Richard Guenther  <rguenther@suse.de>
12824             Andrey Belevantsev <abel@ispras.ru>
12825
12826         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
12827         (pt_solution_set): Likewise.
12828         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
12829         * tree-ssa-structalias.c (pt_solution_set): New function.
12830         * final.c (rest_of_clean_state): Free SSA data structures.
12831         * print-rtl.c (print_decl_name): Remove.
12832         (print_mem_expr): Implement in terms of print_generic_expr.
12833         * alias.c (ao_ref_from_mem): New function.
12834         (rtx_refs_may_alias_p): Likewise.
12835         (true_dependence): Query alias-export info.
12836         (canon_true_dependence): Likewise.
12837         (write_dependence_p): Likewise.
12838         * tree-dfa.c (get_ref_base_and_extent): For void types leave
12839         size unknown.
12840         * emit-rtl.c (component_ref_for_mem_expr): Remove.
12841         (mem_expr_equal_p): Use operand_equal_p.
12842         (set_mem_attributes_minus_bitpos): Do not use
12843         component_ref_for_mem_expr.
12844         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
12845         (update_alias_info_with_stack_vars): Likewise.
12846         (partition_stack_vars): Call update_alias_info_with_stack_vars.
12847         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
12848         explicitly nor clear stmt operands.
12849         Free the decl-to-pointer map.
12850         * tree-optimize.c (execute_free_datastructures): Do not free
12851         SSA data structures here.
12852         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
12853         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
12854         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
12855         dependencies.
12856         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
12857
12858 2009-07-13  DJ Delorie  <dj@redhat.com>
12859
12860         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
12861         unrolling at the right iteration count.
12862
12863         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
12864         calculations.
12865
12866 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
12867
12868         * haifa-sched.c (rank_for_schedule): Introduced flags to
12869         enable/disable individual scheduling heuristics.
12870         * common.opt: Introduced flags to enable/disable individual
12871         heuristics in the scheduler.
12872         * doc/invoke.texi: Introduced flags to enable/disable individual
12873         heuristics in the scheduler.
12874
12875 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
12876
12877         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
12878         config/i386/mingw-tls.c.
12879         * config/i386/mingw-tls.c: Removed.
12880
12881 2009-07-13  Ira Rosen  <irar@il.ibm.com>
12882
12883         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
12884         checks access only relevant statements.
12885         (vectorizable_reduction): Likewise.
12886
12887 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
12888
12889         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
12890         just for 32-bit case.
12891
12892 2009-07-12  Jan Hubicka  <jh@suse.cz>
12893
12894         PR tree-optimization/40585
12895         * except.c (expand_resx_expr): When there already is resume
12896         instruction, produce linked list.
12897         (build_post_landing_pads): Assert that resume is empty.
12898         (connect_post_landing_pads): Handle resume lists.
12899         (dump_eh_tree): Dump resume list.
12900
12901 2009-07-12  Ira Rosen  <irar@il.ibm.com>
12902
12903         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
12904         with additional argument.
12905         * tree-vectorizer.h (enum vect_def_type): Add
12906         vect_double_reduction_def.
12907         (vect_is_simple_reduction): Add argument.
12908         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
12909         indentation.
12910         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
12911         vect_is_simple_reduction with additional argument.
12912         (vect_analyze_loop_operations): Handle exit phi nodes in case of
12913         double reduction.
12914         (reduction_code_for_scalar_code): Handle additional codes by
12915         returning ERROR_MARK for them. Fix comment and indentation.
12916         (vect_is_simple_reduction): Fix comment, add argument to specify
12917         double reduction. Detect double reduction.
12918         (get_initial_def_for_induction): Fix indentation.
12919         (get_initial_def_for_reduction): Fix comment and indentation.
12920         Handle double reduction. Create initial definitions that do not
12921         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
12922         (vect_create_epilog_for_reduction): Fix comment, add argument to
12923         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
12924         epilogue result extraction. Create double reduction phi node and
12925         replace relevant uses.
12926         (vectorizable_reduction): Call vect_is_simple_reduction with
12927         additional argument. Fix indentation. Update epilogue code treatment
12928         according to the changes in reduction_code_for_scalar_code. Check
12929         for double reduction. Call vect_create_epilog_for_reduction with
12930         additional argument.
12931         * tree-vect-stmts.c (process_use): Handle double reduction, update
12932         documentation.
12933         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
12934         (vect_get_vec_def_for_operand): Likewise.
12935
12936 2009-07-12  Danny Smith  <dansmister@gmail.com>
12937
12938         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
12939         dllexport if !TREE_PUBLIC.
12940         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
12941
12942 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
12943
12944         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
12945         (avr_extra_arch_macro) Remove declatation.
12946         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
12947         (avr_extra_arch_macro) Declare as static.
12948         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
12949
12950 2009-07-11  Jan Hubicka  <jh@suse.cz>
12951
12952         PR middle-end/48388
12953         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
12954
12955 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
12956
12957         PR debug/40713
12958         * dwarf2out.c (dw_fde_struct): Add in_std_section and
12959         cold_in_std_section bits.
12960         (dwarf2out_begin_prologue): Initialize them.
12961         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
12962         if already covered by text_section or cold_text_section range.
12963
12964         PR rtl-optimization/40667
12965         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
12966         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
12967         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
12968         * config/i386/i386.c (ix86_minimum_alignment): New function.
12969         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
12970         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
12971         * emit-rtl.c (gen_reg_rtx): Likewise.
12972         * function.c (assign_parms): Likewise.  If nominal_type needs
12973         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
12974         rather than passed_type's alignment.
12975
12976         PR target/40668
12977         * function.c (assign_parm_setup_stack): Adjust
12978         MEM_OFFSET (data->stack_parm) if promoted_mode is different
12979         from nominal_mode on big endian.
12980
12981 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
12982
12983         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
12984
12985 2009-07-10  DJ Delorie  <dj@redhat.com>
12986
12987         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
12988
12989 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
12990
12991         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
12992         attribute.
12993         (thumb2_cbnz): Likewise.
12994
12995 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
12996
12997         PR target/39079
12998         * config.gcc (supported_defaults): Add synci.
12999         (with_synci): Add validation.
13000         (all_defaults): Add synci.
13001         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
13002         ISA_HAS_SYNCI.
13003         (synci): Same.
13004         * config/mips/mips.opt (msynci): New option.
13005         * config/mips/mips.c (mips_override_options): Warn on use of
13006         -msynci for targets that do now support it.
13007         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
13008         msynci.
13009         * gcc/doc/invoke.texi (-msynci): Document the new option.
13010         * doc/install.texi (--with-synci): Document the new option.
13011
13012 2009-07-10  Richard Guenther  <rguenther@suse.de>
13013
13014         PR tree-optimization/40496
13015         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
13016         the PHI result with a compatible type.
13017
13018 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13019
13020         PR 25509
13021         PR 40614
13022         * c.opt (Wunused-result): New.
13023         * doc/invoke.texi: Document it.
13024         * c-common.c (c_warn_unused_result): Use it.
13025
13026 2009-07-09  DJ Delorie  <dj@redhat.com>
13027
13028         * targhooks.c (default_target_can_inline_p): Rename from
13029         default_target_option_can_inline_p.
13030         * targhooks.h (default_target_can_inline_p): Likewise.
13031         * target-def.h (TARGET_CAN_INLINE_P): Rename from
13032         TARGET_OPTION_CAN_INLINE_P.
13033         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
13034         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
13035         (mep_target_can_inline_p): Rename from
13036         mep_target_option_can_inline_p.
13037
13038         PR target/40626
13039         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
13040         registers used to pass vectors.
13041
13042         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
13043
13044 2009-07-09  Tom Tromey  <tromey@redhat.com>
13045
13046         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
13047         * config/mmix/mmix.c: Include dwarf2.h.
13048         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
13049         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
13050         * config/sh/sh.c: Include dwarf2.h.
13051         * config/i386/i386.c: Include dwarf2.h.
13052         * Makefile.in (DWARF2_H): Remove 'elf'.
13053         * except.c: Include dwarf2.h.
13054         * unwind-dw2.c: Include dwarf2.h.
13055         * dwarf2out.c: Include dwarf2.h.
13056         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
13057         * unwind-dw2-fde.c: Include dwarf2.h.
13058         * dwarf2asm.c: Include dwarf2.h.
13059
13060 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
13061
13062         * haifa-sched.c (insn_finishes_cycle_p): New static function.
13063         (max_issue): Use it.
13064         * sched-int.h (struct sched_info: insn_finishes_block_p): New
13065         scheduler hook.
13066         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
13067         (region_sched_info): Update.
13068         * sched-ebb.c (ebb_sched_info): Update.
13069         * modulo-sched.c (sms_sched_info): Update.
13070         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
13071
13072 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
13073
13074         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
13075
13076 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
13077
13078         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
13079
13080 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
13081
13082         PR middle-end/40692
13083         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
13084         arg1 with arg01 if arg1 is already INTEGER_CST.
13085
13086 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
13087
13088         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
13089         Transform (and (truncate)) into (truncate (and)).
13090
13091 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
13092
13093         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
13094         creating LHS paradoxical subregs.  Fix surrounding returns to
13095         use NULL_RTX rather than 0.
13096
13097 2009-07-08  DJ Delorie  <dj@redhat.com>
13098
13099         * config/mep/mep.c (mep_option_can_inline_p): New.
13100         (TARGET_OPTION_CAN_INLINE_P): Define.
13101
13102 2009-07-08  Mark Wielaard  <mjw@redhat.com>
13103
13104         PR debug/40659
13105         * dwarf2out.c (add_data_member_location_attribute): When we have
13106         only a constant offset don't emit a new location description using
13107         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
13108         dwarf_version > 2.
13109
13110 2009-07-08  Richard Henderson  <rth@redhat.com>
13111
13112         PR target/38900
13113         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
13114         (enum reg_class): Add CLOBBERED_REGS.
13115         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
13116         * config/i386/i386.c (ix86_conditional_register_usage): Moved
13117         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
13118         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
13119         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
13120         force 64-bit sibcalls into R11.
13121         * config/i386/constraints.md (U): New constraint.
13122         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
13123         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
13124         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
13125
13126 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
13127
13128         * basic-block.h (dump_regset, debug_regset): Remove duplicate
13129         prototypes.
13130         * c-objc-common.h (c_initialize_diagnostics): Ditto.
13131         * ebitmap.h (dump_ebitmap): Ditto.
13132         * optabs.h (optab_libfunc): Ditto.
13133         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
13134         * tree-flow.h (vect_can_force_dr_alignment_p,
13135         get_vectype_for_scalar_type): Ditto.
13136         (vectorize_loops): Move prototype to ...
13137         * tree-vectorizer.h: ... here. Also, adjust comment.
13138         (vect_set_verbosity_level): Remove duplicate prototype.
13139         * tree-ssa-loop.c: Include tree-vectorizer.h.
13140         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
13141
13142 2009-07-08  Nick Clifton  <nickc@redhat.com>
13143
13144         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
13145         forward slash.
13146
13147 2009-07-08  DJ Delorie  <dj@redhat.com>
13148
13149         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
13150         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
13151         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
13152         written to.
13153         * config/mep/intrinsics.md: Regenerated.
13154         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
13155         registers when asm() or calls are detected.
13156
13157 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13158
13159         PR c++/31246
13160         * gimplify.c (gimplify_expr): Propagate no_warning flag when
13161         gimplifying.
13162         * gimple (gimple_build_call_from_tree): Likewise.
13163         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
13164         no_warning flag before warning.
13165
13166 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13167
13168         * tree.c (set_expr_locus): Remove.
13169         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
13170         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
13171         EXPR_LOCATION.
13172         * gimplify.c (internal_get_tmp_var): Likewise.
13173         (gimplify_call_expr): Likewise.
13174         (gimplify_one_sizepos): Likewise.
13175
13176 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
13177
13178         PR debug/40666
13179         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
13180         to variables for debugging purposes.
13181
13182 2009-06-23  Mark Loeser  <mark@halcy0n.com>
13183
13184         PR build/40010
13185         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
13186
13187 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13188
13189         * pretty-print.c (pp_base_format): Remove %J.
13190         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
13191         gcc_cxxdiag_char_table): Likewise.
13192         (init_dynamic_diag_info): Likewise.
13193
13194 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13195
13196         * pretty-print.c (pp_base_format): Remove %H.
13197         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
13198         gcc_cxxdiag_char_table): Likewise.
13199         (init_dynamic_diag_info): Likewise.
13200         * config/mep/mep.c (mep_select_section): Likewise.
13201
13202 2009-07-07  Duncan Sands  <baldrick@free.fr>
13203
13204         * final.c (pass_clean_state): Give the pass a name.
13205         * passes.c (pass_rest_of_compilation): Likewise.
13206         * tree-optimize.c (pass_all_optimizations): Likewise.
13207
13208 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
13209
13210         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
13211         an extra 'decl' for error_at.
13212
13213 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
13214
13215         PR middle-end/40669
13216         * tree-tailcall.c (adjust_return_value_with_ops,
13217         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
13218         if it has complex or vector type.
13219
13220 2009-07-07  Olivier Hainque  <hainque@adacore.com>
13221
13222         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
13223         pthread symbols.
13224
13225 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
13226
13227         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
13228
13229 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13230
13231         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
13232         * c-decl.c: Likewise.
13233         * function.c: Likewise.
13234         * varasm.c: Likewise.
13235         * tree-ssa.c: Likewise.
13236         * c-common.c: Likewise.
13237         * tree-cfg.c: Likewise.
13238         * config/spu/spu.c: Likewise.
13239         * config/ia64/ia64.c: Likewise.
13240         * config/v850/v850.c: Likewise.
13241
13242 2009-07-06  DJ Delorie  <dj@redhat.com>
13243
13244         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
13245         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
13246         unspecified accesses to control registers.
13247         * config/mep/intrinsics.md: Regenerate.
13248         * config/mep/intrinsics.h: Regenerate.
13249         * config/mep/mep-intrin.h: Regenerate.
13250
13251 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13252
13253         * c-lex.c: Replace %H by an explicit location. Update all calls.
13254         * c-common.c: Likewise.
13255         * c-decl.c: Likewise.
13256         * c-typeck.c: Likewise.
13257         * fold-const.c: Likewise.
13258         * gimplify.c: Likewise.
13259         * stmt.c: Likewise.
13260         * tree-cfg.c: Likewise.
13261         * tree-ssa-loop-niter.c: Likewise.
13262         * tree-vrp.c: Likewise.
13263         * value-prof.c: Likewise.
13264
13265 2009-07-06  Diego Novillo  <dnovillo@google.com>
13266
13267         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
13268         if it has one.  Handle cases where VAR does not have an
13269         annotation or cfun is NULL.
13270
13271 2009-07-06  Diego Novillo  <dnovillo@google.com>
13272
13273         * tree.c: Include debug.h.
13274         (initialize_tree_contains_struct): New.
13275         (init_ttree): Call it.
13276         (tree_node_structure_for_code): Factor out of ...
13277         (tree_node_structure): ... here.
13278         * treestruct.def (TS_PHI_NODE): Remove.
13279         (TS_GIMPLE_STATEMENT): Remove.
13280
13281 2009-07-06  Diego Novillo  <dnovillo@google.com>
13282
13283         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
13284         (debug_tree_chain): Handle cycles.
13285
13286 2009-07-06  Nick Clifton  <nickc@redhat.com>
13287             DJ Delorie  <dj@redhat.com>
13288
13289         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
13290         __FMOVD_ENABLED__ is defined.
13291         * config/sh/sh.h
13292         (TARGET_FMOVD): Provide a default definition.
13293         (MASK_FMOVD): Likewise.
13294         (TARGET_CPU_CPP_BUILTINS): Define
13295         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
13296         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
13297         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
13298         (split for DF load from memory into register): Also handle
13299         MEMs which consist of REG+DISP addressing.
13300         (split for DF store from register to memory): Likewise.
13301         (movsf_ie): Always use single fp_mode.
13302         * config/sh/sh.c (sh_override_options): Do not automatically
13303         enable TARGET_MOVD for the SH2A when supporting doubles - leave
13304         that to the -mfmovd command line switch.
13305         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
13306         (fldi_ok): Always allow.
13307         * config/sh/sh.opt (mfmovd): Remove this switch.
13308         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
13309
13310 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
13311             Kaz Kojima  <kkojima@gcc.gnu.org>
13312
13313         PR rtl-optimization/30807
13314         * postreload.c (reload_combine): For every new use of REG_SUM,
13315         record the use of BASE.
13316
13317 2009-07-06  Jan Hubicka  <jh@suse.cz>
13318
13319         * params.def: Revert my accidental commit at 2009-06-30.
13320
13321 2009-07-04  Ian Lance Taylor  <iant@google.com>
13322
13323         PR target/40636
13324         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
13325         EXPORTED_CONST.
13326         (mingw_format_attribute_overrides): Likewise.
13327
13328 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
13329
13330         PR debug/40596
13331         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
13332         don't check cfa.reg.  Instead of cfa.indirect use
13333         fde && fde->drap_reg != INVALID_REGNUM test.
13334
13335 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
13336
13337         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
13338
13339 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
13340
13341         PR target/40587
13342         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
13343
13344 2009-07-03  Richard Guenther  <rguenther@suse.de>
13345
13346         PR tree-optimization/40640
13347         * tree-switch-conversion.c (build_arrays): Perform arithmetic
13348         in original type.
13349
13350 2009-07-03  Jan Hubicka  <jh@suse.cz>
13351
13352         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
13353         for size, reduce amount of inlining.
13354
13355 2009-07-03  Richard Guenther  <rguenther@suse.de>
13356
13357         PR middle-end/34163
13358         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
13359         if t +- x is known to not overflow and the conversion widens the
13360         operation.
13361         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
13362
13363 2009-07-03  Jan Hubicka  <jh@suse.cz>
13364
13365         * ipa-pure-const.c (analyze): Update loop optimizer init.
13366         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
13367         try_remove_empty_loop, remove_empty_loops): Remove.
13368         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
13369         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
13370         to mark regular loops as neccesary.
13371         (degenerate_phi_p): New function.
13372         (propagate_necessity, remove_dead_phis): Use it.
13373         (forward_edge_to_pdom): Likewise.
13374         (eliminate_unnecessary_stmts): Take care to remove uses of results of
13375         virtual PHI nodes that became unreachable.
13376         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
13377         * tree-flow.h (remove_empty_loops): Remove.
13378         * passes.c (init_optimization_passes): Remove.
13379
13380 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
13381
13382         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
13383         can_create_pseudo_p.
13384         (*fix_trunc<mode>_i387_1): Ditto.
13385         (*floathi<mode>2_1): Ditto.
13386         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
13387         (*fistdi2_1): Ditto.
13388         (*fist<mode>2_1): Ditto.
13389         (frndintxf2_floor): Ditto.
13390         (*fist<mode>2_floor_1): Ditto.
13391         (frndintxf2_ceil): Ditto.
13392         (*fist<mode>2_ceil_1): Ditto.
13393         (frndintxf2_trunc): Ditto.
13394         (frndintxf2_mask_pm): Ditto.
13395         (fxam<mode>2_i387_with_temp): Ditto.
13396         * config/i386/sse.md (mulv16qi3): Ditto.
13397         (*sse2_mulv4si3): Ditto.
13398         (mulv2di3): Ditto.
13399         (sse4_2_pcmpestr): Ditto.
13400         (sse4_2_pcmpistr): Ditto.
13401
13402 2009-07-03  Jan Hubicka  <jh@suse.cz>
13403
13404         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
13405         (mark_stmt_necessary): Set it.
13406         (mark_operand_necessary): Set it.
13407         (mark_control_dependent_edges_necessary): Set it.
13408         (mark_virtual_phi_result_for_renaming): New function.
13409         (get_live_post_dom): New function.
13410         (forward_edge_to_pdom): New function.
13411         (remove_dead_stmt): Fix handling of control dependences.
13412         (tree_dce_init): Init new bitmap.
13413         (tree_dce_done): Free it.
13414
13415 2009-07-02  Richard Guenther  <rguenther@suse.de>
13416
13417         PR bootstrap/40617
13418         * tree-ssa-structalias.c (new_var_info): Initialize
13419         is_restrict_var.
13420
13421 2009-07-02  Jan Hubicka  <jh@suse.cz>
13422
13423         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
13424         local.
13425
13426 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
13427
13428         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
13429         instead of recomputing it.  Adjust calls.
13430         (emit_store_flag): Adjust recursive calls.
13431
13432 2009-07-02  Richard Guenther  <rguenther@suse.de>
13433
13434         * tree-ssa-live.c (remove_unused_locals): Do not remove
13435         heap variables.
13436         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
13437         of DECL_EXTERNAL for HEAP variables.
13438         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
13439         HEAP variables.  Do not adjust RESTRICT vars.
13440         (find_what_var_points_to): Nobody cares if something
13441         points to READONLY.
13442
13443 2009-07-02  Ben Elliston  <bje@au.ibm.com>
13444
13445         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
13446         pc_low and pc_high declarations to the top of the function.
13447
13448 2009-07-01  DJ Delorie  <dj@redhat.com>
13449
13450         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
13451         registers as fixed.
13452         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
13453         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
13454         unspecified accesses to control registers.
13455         * config/mep/intrinsics.md: Regenerate.
13456         * config/mep/intrinsics.h: Regenerate.
13457         * config/mep/mep-intrin.h: Regenerate.
13458
13459 2009-07-01  Anthony Green  <green@moxielogic.com>
13460
13461         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
13462         instruction when possible.
13463         (moxie_expand_prologue): Ditto.  Also, save an instruction and
13464         some complexity by popping off of $r12 instead of $sp.
13465         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
13466         operands.
13467
13468 2009-07-01  Richard Henderson  <rth@redhat.com>
13469
13470         PR bootstrap/40347
13471         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
13472         contained no insns, reposition note before last insn.
13473
13474 2009-07-01  Richard Henderson  <rth@redhat.com>
13475
13476         PR debug/40431
13477         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
13478         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
13479
13480 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
13481
13482         PR bootstrap/40558
13483         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
13484         darwin9 for printing reg addresses with %y.
13485
13486 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
13487
13488         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
13489         truncation from operands in binary operations.
13490
13491 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
13492
13493         Revert:
13494         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
13495         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
13496         subreg of op0 to the original op0.
13497
13498         * expmed.c (store_bit_field_1): Use a temporary as the destination
13499         instead of a paradoxical subreg when we need to truncate the result.
13500
13501 2009-07-01  DJ Delorie  <dj@redhat.com>
13502
13503         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
13504         names to VLIW variants.
13505         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
13506         * config/mep/intrinsics.md: Regenerate.
13507         * config/mep/intrinsics.h: Regenerate.
13508         * config/mep/mep-intrin.h: Regenerate.
13509
13510 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
13511
13512         PR debug/40462
13513         * jump.c (returnjump_p): Revert last patch.
13514         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
13515
13516 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13517
13518         PR target/40575
13519         * pa.md (casesi32p): Use jump table label to determine the offset
13520         of the jump table.
13521         (casesi64p): Likewise.
13522
13523         * pa.c (forward_branch_p): Return bool type.  Use instruction
13524         addresses when available.  Assert that INSN has a jump label.
13525         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
13526         have a jump label.
13527
13528 2009-07-01  Richard Guenther  <rguenther@suse.de>
13529
13530         PR tree-optimization/19831
13531         * tree-ssa-dce.c (propagate_necessity): Calls to functions
13532         that only act as barriers do not make any previous stores necessary.
13533         * tree-ssa-structalias.c (handle_lhs_call): Delay making
13534         HEAP variables global, do not add a constraint from nonlocal.
13535         (find_func_aliases): Handle escapes through return statements.
13536         (compute_points_to_sets): Make escaped HEAP variables global.
13537
13538 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
13539
13540         PR bootstrap/40597
13541         * expmed.c (emit_store_flag): Perform a conversion if necessary,
13542         after reducing a DImode cstore to SImode.
13543
13544 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
13545
13546         * expr.c (expand_expr_real_1): Reinstate fallthrough to
13547         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
13548
13549 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
13550
13551         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
13552         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
13553         to 0.
13554         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
13555         and umod_optab if TARGET_BSD_DIVMOD.
13556         * config/vax/lib1funcs.asm: New file.
13557         * config/vax/t-linux: New file.
13558         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
13559
13560 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
13561
13562         PR c++/40566
13563         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
13564         to type arguments that have void type.
13565
13566         PR debug/40573
13567         * dwarf2out.c (gen_formal_parameter_die): Call
13568         equate_decl_number_to_die if node is different from origin.
13569
13570 2009-06-30  Anthony Green  <green@moxielogic.com>
13571
13572         Clean up moxie port for --enable-build-with-cxx.
13573         * config/moxie/moxie.c (moxie_function_value): First two
13574         parameters are const_tree, not tree.
13575         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
13576         (REG_CLASS_NAMES): Ditto.
13577         (REGNO_REG_CLASS): Ditto.
13578         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
13579         (moxie_function_value): Fix constyness of arguments.
13580
13581 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
13582
13583         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
13584         finalize_size_functions before further processing.
13585         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
13586         (variable_size): Call self_referential_size on size expressions
13587         that contain a PLACEHOLDER_EXPR.
13588         (size_functions): New static variable.
13589         (copy_self_referential_tree_r): New static function.
13590         (self_referential_size): Likewise.
13591         (finalize_size_functions): New global function.
13592         * tree.c: Include tree-inline.h.
13593         (push_without_duplicates): New static function.
13594         (find_placeholder_in_expr): New global function.
13595         (substitute_in_expr) <tcc_declaration>: Return the replacement object
13596         on equality.
13597         <tcc_expression>: Likewise.
13598         <tcc_vl_exp>: If the replacement object is a constant, try to inline
13599         the call in the expression.
13600         * tree.h (finalize_size_functions): Declare.
13601         (find_placeholder_in_expr): Likewise.
13602         (FIND_PLACEHOLDER_IN_EXPR): New macro.
13603         (substitute_placeholder_in_expr): Update comment.
13604         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
13605         is true.
13606         (copy_tree_body_r): Likewise.
13607         (copy_tree_body): New static function.
13608         (maybe_inline_call_in_expr): New global function.
13609         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
13610         (maybe_inline_call_in_expr): Declare.
13611         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
13612         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
13613         GIMPLE_H.
13614
13615 2009-06-30  Richard Guenther  <rguenther@suse.de>
13616
13617         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
13618         continue walking.
13619         (propagate_necessity): Do not mark reaching defs of stores
13620         as necessary.
13621
13622 2009-06-30  Jan Hubicka  <jh@suse.cz>
13623
13624         * cfgloopanal.c (check_irred): Move into ...
13625         (mark_irreducible_loops): ... here; return true if ireducible
13626         loops was found.
13627         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
13628         (analyze_function): Try to prove loop finiteness.
13629         * cfgloop.h (mark_irreducible_loops): Update prototype.
13630         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
13631
13632 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
13633
13634         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
13635
13636 2009-06-30  Ira Rosen  <irar@il.ibm.com>
13637
13638         PR tree-optimization/40542
13639         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
13640         types.
13641
13642 2009-06-30  Martin Jambor  <mjambor@suse.cz>
13643
13644         PR tree-optimization/40582
13645         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
13646         than useless_type_conversion_p.
13647         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
13648         proper place.
13649
13650 2009-06-30  Martin Jambor  <mjambor@suse.cz>
13651
13652         PR middle-end/40554
13653         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
13654
13655 2009-06-30  Richard Guenther  <rguenther@suse.de>
13656
13657         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
13658         use ao_ref references.
13659         (walk_aliased_vdefs): Likewise.
13660         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
13661         * tree-ssa-dce.c (struct ref_data): Remove.
13662         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
13663         (mark_aliased_reaching_defs_necessary): Adjust.
13664         (mark_all_reaching_defs_necessary_1): Likewise.
13665
13666 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
13667
13668         PR boostrap/40597
13669         * expmed.c (emit_cstore): New name of emit_store_flag_1.
13670         (emit_store_flag_1): Extract from emit_store_flag, adjust
13671         calls to (what now is) emit_cstore.
13672         (emit_store_flag): Call emit_store_flag_1 and also use it
13673         for what used to be recursive calls.
13674
13675 2009-06-30  Wei Guozhi  <carrot@google.com>
13676
13677         PR/40416
13678         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
13679         if the target bb post dominates from bb.
13680         * config/i386/i386.c (memory_address_length): Check existence of base
13681         register before using it.
13682
13683 2009-06-30  Nick Clifton  <nickc@redhat.com>
13684             DJ Delorie  <dj@redhat.com>
13685
13686         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
13687         __FMOVD_ENABLED__ is defined.
13688         * config/sh/sh.h
13689         (TARGET_FMOVD): Provide a default definition.
13690         (MASK_FMOVD): Likewise.
13691         (TARGET_CPU_CPP_BUILTINS): Define
13692         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
13693         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
13694         two fmov instructions depending upon whether TARGET_FMOVD is
13695         enabled.
13696         (split for DF load from memory into register): Also handle
13697         MEMs which consist of REG+DISP addressing.
13698         (split for DF store from register to memory): Likewise.
13699         * config/sh/sh.opt (mfmovd): Remove this switch.
13700         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
13701         * config/sh/sh.c (sh_override_options): Do not automatically
13702         enable TARGET_MOVD for the SH2A when supporting doubles - leave
13703         that to the -mfmovd command line switch.
13704
13705         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
13706         the SH4 and SH4A.
13707         (fldi_ok): Always allow.
13708         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
13709
13710 2009-06-29  DJ Delorie  <dj@redhat.com>
13711
13712         * doc/install.texi (mep-x-elf): Correct chip's full name.
13713
13714 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
13715
13716         * doc/extend.texi: Fix typo.
13717
13718 2009-06-29  Tom Tromey  <tromey@redhat.com>
13719
13720         * dwarf2.h: Remove.
13721         * Makefile.in (DWARF2_H): New variable.
13722         (except.o): Use it.
13723         (dwarf2out.o): Likewise.
13724         (dwarf2asm.o): Likewise.
13725         * config/i386/t-i386: Use DWARF2_H.
13726         * except.c: Include elf/dwarf2.h.
13727         * unwind-dw2.c: Include elf/dwarf2.h.
13728         * dwarf2out.c: Include elf/dwarf2.h.
13729         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
13730         <dtprel>: New field.
13731         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
13732         (size_of_loc_descr): Likewise.
13733         (output_loc_operands_raw): Likewise.
13734         (output_loc_operands): Handle new dtprel field.
13735         (loc_checksum): Update.
13736         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
13737         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
13738         * unwind-dw2-fde.c: Include elf/dwarf2.h.
13739         * dwarf2asm.c: Include elf/dwarf2.h.
13740         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
13741         * config/mmix/mmix.c: Include elf/dwarf2.h.
13742         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
13743         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
13744         * config/sh/sh.c: Include elf/dwarf2.h.
13745         * config/i386/i386.c: Include elf/dwarf2.h.
13746
13747 2009-06-29  DJ Delorie  <dj@redhat.com>
13748
13749         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
13750
13751         * doc/extend.texi: Add MeP attributes and pragmas.
13752         * doc/invoke.text: Add MeP Options.
13753         * doc/contrib.texi: Add MeP contribution.
13754         * doc/md.texi: Add MeP constraints.
13755         * doc/install.texi: Add MeP target.
13756
13757 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
13758
13759         * target.h (struct gcc_target): Add frame_pointer_required field.
13760         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
13761         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
13762         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
13763         hook.
13764         * reload1.c (update_eliminables): (Ditto.).
13765         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
13766         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
13767         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
13768
13769         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
13770
13771         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
13772         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13773         (arm_frame_pointer_required): New function.
13774
13775         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
13776         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13777         (avr_frame_pointer_required_p): Declare as static.
13778         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
13779
13780         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
13781         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13782         (bfin_frame_pointer_required): Make as static, change return type
13783         to bool.
13784         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
13785
13786         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
13787         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13788         (cris_frame_pointer_required): New function.
13789
13790         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
13791
13792         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
13793         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13794         (fr30_frame_pointer_required): New function.
13795
13796         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
13797         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13798         (frv_frame_pointer_required): Make as static, change return type
13799         to bool.
13800         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
13801
13802         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
13803         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13804         (ix86_frame_pointer_required): Make as static, change return type to
13805         bool.
13806         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
13807
13808         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
13809         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13810
13811         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
13812
13813         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
13814
13815         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
13816
13817         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
13818         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13819         (mips_frame_pointer_required): Make as static.
13820         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
13821
13822         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
13823         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13824         (mmix_frame_pointer_required): Mew function.
13825
13826         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
13827         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13828
13829         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
13830
13831         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
13832
13833         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
13834
13835         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
13836         (CAN_ELIMINATE): Redefine.
13837         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13838         (sparc_frame_pointer_required): New function.
13839         (sparc_can_eliminate): New function.
13840         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
13841
13842         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
13843         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13844
13845         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
13846         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13847         (xtensa_frame_pointer_required): Make as static, change return type
13848         to bool.
13849         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
13850         Remove.
13851
13852 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
13853
13854         * doc/plugins.texi: Document PLUGIN_START_UNIT.
13855         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
13856         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
13857         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
13858         (register_callback): Handle PLUGIN_START_UNIT.
13859         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
13860
13861 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
13862
13863         * tree.c (process_call_operands): Propagate TREE_READONLY from the
13864         operands.
13865         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
13866         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
13867
13868 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
13869
13870         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
13871         move cost.
13872
13873 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
13874
13875         * doc/extend.texi (Additional Floating Types): __float128 is also
13876         supported on i386 targets.
13877
13878 2009-06-29  Richard Guenther  <rguenther@suse.de>
13879
13880         PR middle-end/14187
13881         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
13882         flag.
13883         (pt_solutions_same_restrict_base): Declare.
13884         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
13885         flag.
13886         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
13887         (make_constraint_from, make_copy_constraint): Move earlier.
13888         (make_constraint_from_heapvar): New function.
13889         (make_constraint_from_restrict): Likewise.
13890         (handle_lhs_call): Use it.
13891         (find_func_aliases): Use it to track conversions to restrict
13892         qualified pointers.
13893         (struct fieldoff): Add only_restrict_pointers flag.
13894         (push_fields_onto_fieldstack): Initialize it.
13895         (create_variable_info_for): Track global restrict qualified pointers.
13896         (intra_create_variable_infos): Use make_constraint_from_heapvar.
13897         Track restrict qualified pointer arguments.
13898         (set_uids_in_ptset): Use varinfo is_global_var flag.
13899         (find_what_var_points_to): Set the vars_contains_restrict flag.
13900         Always create the points-to solution for sets including restrict tags.
13901         (pt_solutions_same_restrict_base): New function.
13902         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
13903         qualified pointers use pt_solutions_same_restrict_base as
13904         additional source for disambiguation.
13905
13906 2009-06-29  Richard Guenther  <rguenther@suse.de>
13907
13908         PR middle-end/38212
13909         * alias.c (find_base_decl): Remove.
13910         (get_deref_alias_set_1): Remove restrict handling.
13911         * c-common.c (c_apply_type_quals_to_decl): Do not set
13912         DECL_POINTER_ALIAS_SET.
13913         * gimplify.c (find_single_pointer_decl_1): Remove.
13914         (find_single_pointer_decl): Likewise.
13915         (internal_get_tmp_var): Remove restrict handling.
13916         (gimple_regimplify_operands): Likewise.
13917         * omp-low.c (expand_omp_atomic_pipeline): Do not set
13918         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
13919         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
13920         * tree.c (restrict_base_for_decl): Remove.
13921         (init_ttree): Do not allocate it.
13922         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
13923         LABEL_DECL_UID for label decls.
13924         (copy_node_stat): Do not copy restrict information.
13925         (decl_restrict_base_lookup): Remove.
13926         (decl_restrict_base_insert): Likewise.
13927         (print_restrict_base_statistics): Likewise.
13928         (dump_tree_statistics): Do not call print_restrict_base_statistics.
13929         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
13930         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
13931         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
13932         (LABEL_DECL_UID): Adjust.
13933         (DECL_BASED_ON_RESTRICT_P): Remove.
13934         (DECL_GET_RESTRICT_BASE): Likewise.
13935         (SET_DECL_RESTRICT_BASE): Likewise.
13936         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
13937
13938         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
13939         instead of DECL_POINTER_ALIAS_SET.
13940         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
13941         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
13942         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
13943
13944 2009-06-29  Richard Guenther  <rguenther@suse.de>
13945
13946         PR tree-optimization/40579
13947         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
13948         the IL to simplify has constants that overflowed.
13949
13950 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
13951
13952         PR tree-optimization/40550
13953         * tree-vect-generic.c (expand_vector_operations_1): Compute in
13954         vector_compute_type only when the size of vector_compute_type is
13955         less than the size of type.
13956
13957 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
13958
13959         * fold-const.c (contains_label_1): Fix comments.
13960         (contains_label_p): Do not walk trees multiple time.
13961
13962 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13963
13964         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
13965         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
13966         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
13967         ix86_fp_comparison_operator.
13968         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
13969         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
13970         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
13971         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
13972         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
13973         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
13974         (related splits): Change predicate to ix86_fp_comparison_operator.
13975         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
13976         instead of ix86_fp_comparison_codes.
13977         (ix86_trivial_fp_comparison_operator,
13978         ix86_fp_comparison_operator): New.
13979         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
13980         (ix86_expand_compare): Eliminate last two parameters.
13981         (ix86_fp_jump_nontrivial_p): Kill.
13982         * config/i386/i386.c (put_condition_code): Eliminate call to
13983         ix86_fp_comparison_codes and subsequent assertion.
13984         (ix86_fp_comparison_codes): Eliminate.
13985         (ix86_fp_swap_condition): New.
13986         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
13987         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
13988         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
13989         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
13990         and ix86_fp_swap_condition.
13991         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
13992         Use ix86_fp_comparison_strategy.
13993         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
13994         (ix86_fp_jump_nontrivial_p): Eliminate.
13995         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
13996         call to ix86_expand_compare.
13997         (ix86_split_fp_branch, ix86_expand_setcc,
13998         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
13999         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
14000
14001 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
14002
14003         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
14004         related to jump_clobbers.
14005         * config/arm/arm.md (conds): Remove jump_clob case.
14006         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
14007         splits): Change comparison_operator to arm_comparison_operator.
14008         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
14009         Eliminate.
14010
14011 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
14012
14013         * dojump.c (do_compare_rtx_and_jump): Try swapping the
14014         condition for floating point modes.
14015         * expmed.c (emit_store_flag_1): Move here a bigger part
14016         of emit_store_flag.
14017         (emit_store_flag): Try swapping the condition for floating point
14018         modes.
14019         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
14020
14021 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
14022
14023         * expr.c (expand_expr_real_1): Just use do_store_flag.
14024         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
14025         emit_store_flag_force.
14026         * expmed.c (emit_store_flag_force): Copy here trick
14027         previously in expand_expr_real_1.  Try reversing the comparison.
14028         (emit_store_flag_1): Work if target is NULL.
14029         (emit_store_flag): Work if target is NULL, using the result mode
14030         from the comparison.  Use split_comparison, restructure final part
14031         to simplify conditionals.
14032
14033 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
14034
14035         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
14036         * dojump.c (do_jump): Change handling of floating-point
14037         ops to use just do_compare_and_jump.
14038         (split_comparison): New.
14039         (do_compare_rtx_and_jump): Add here logic coming previously
14040         in do_jump, using split_comparison.
14041
14042 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
14043
14044         PR target/40489
14045         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
14046
14047 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
14048
14049         * tree-ssa-alias.c: Fix unintentional commit.
14050
14051 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
14052
14053         * passes.c (execute_one_pass): Fix unintentional commit.
14054
14055 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
14056
14057         * df-problems.c (df_set_seen, df_unset_seen): Delete.
14058         (df_rd_local_compute, df_md_local_compute): Inline them.
14059
14060         (df_md_scratch): New.
14061         (df_md_alloc, df_md_free): Allocate/free it.
14062         (df_md_local_compute): Only include live registers in init.
14063         (df_md_transfer_function): Prune the in-set computed by
14064         the confluence function, and the gen-set too.
14065
14066 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
14067
14068         PR rtl-optimization/26854
14069         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
14070         * df-problems.c (df_rd_add_problem): Fix comment.
14071         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
14072         df_md_simulate_artificial_defs_at_top,
14073         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
14074         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
14075         df_md_transfer_function, df_md_init, df_md_confluence_0,
14076         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
14077         problem_MD, df_md_add_problem): New.
14078         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
14079         df_md_get_bb_info): New.
14080         (DF_LAST_PROBLEM_PLUS1): Adjust.
14081
14082         * Makefile.in (fwprop.o): Include domwalk.h.
14083         * fwprop.c: Include domwalk.h.
14084         (reg_defs, reg_defs_stack): New.
14085         (bitmap_only_bit_between): Remove.
14086         (process_defs): New.
14087         (process_uses): Use reg_defs and local_md instead of
14088         bitmap_only_bit_between and local_rd.
14089         (single_def_use_enter_block): New, from build_single_def_use_links.
14090         (single_def_use_leave_block): New.
14091         (build_single_def_use_links): Remove code moved to
14092         single_def_use_enter_block, invoke domwalk.
14093         (use_killed_between): Adjust comment.
14094
14095 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
14096
14097         * bitmap.h (bitmap_ior_and_into): New.
14098         * bitmap.c (bitmap_ior_and_into): New.
14099
14100 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
14101
14102         * domwalk.h (struct dom_walk_data): Remove all callbacks except
14103         before_dom_children_before_stmts and after_dom_children_after_stmts.
14104         Rename the two remaining callbacks to just before_dom_children and
14105         after_dom_children. Remove other GIMPLE statement walking bits.
14106         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
14107         * graphite.c: Do not include domwalk.h.
14108         * tree-into-ssa.c (interesting_blocks): New global.
14109         (struct mark_def_sites_global_data): Remove it and names_to_rename.
14110         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
14111         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
14112         now that they're not domwalk callbacks.
14113         (rewrite_initialize_block): Rename to...
14114         (rewrite_enter_block): ... this, place after called functions.  Test
14115         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
14116         (rewrite_finalize_block): Rename to...
14117         (rewrite_leave_block): ... this, place after called functions.
14118         (rewrite_update_init_block): Rename to...
14119         (rewrite_update_enter_block): ... this, place after called functions.
14120         Test interesting_blocks, call rewrite_update_stmt and
14121         rewrite_update_phi_arguments.
14122         (rewrite_update_fini_block): Rename to...
14123         (rewrite_leave_block): ... this, place after called functions.
14124         (rewrite_blocks): Remove last argument, simplify initialization of
14125         walk_data.
14126         (mark_def_sites_initialize_block): Rename to...
14127         (mark_def_sites_block): ... this, call mark_def_sites.
14128         (mark_def_sites_blocks): Remove argument, simplify initialization of
14129         walk_data.
14130         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
14131         (update_ssa): Likewise.
14132         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
14133         callback.
14134         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
14135         (dom_opt_initialize_block): Rename to...
14136         (dom_opt_enter_block): ... this, place after called functions.  Walk
14137         statements here, inline propagate_to_outgoing_edges.
14138         (dom_opt_finalize_block): Rename to...
14139         (dom_opt_leave_block): ... this, place after called functions.
14140         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
14141         domwalk callback.
14142         (dse_enter_block, dse_record_phi): New.
14143         (dse_record_phis): Delete.
14144         (dse_finalize_block): Rename to...
14145         (dse_leave_block): ... this.
14146         (tree_ssa_dse): Simplify initialization of walk_data.
14147         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
14148         Adjust initialization of walk_data.
14149         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
14150         * tree-ssa-loop-phiopt.c (get_non_trapping):
14151         Adjust initialization of walk_data.
14152         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
14153         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
14154         it's not a domwalk callback.
14155         (uncprop_initialize_block): Rename to...
14156         (dse_enter_block): ... this, call uncprop_into_successor_phis.
14157         (dse_finalize_block): Rename to...
14158         (dse_leave_block): ... this.
14159         (tree_ssa_uncprop): Simplify initialization of walk_data.
14160         * Makefile.in: Adjust dependencies.
14161
14162 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
14163
14164         * arm.md (casesi): Fix test for Thumb1.
14165         (thumb1_casesi_internal_pic): Likewise.
14166         (thumb1_casesi_dispatch): Likewise.
14167
14168 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
14169
14170         * config/arm/arm-cores.def: Added core cortex-m0.
14171         * config/arm/arm-tune.md: Regenerated.
14172         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
14173
14174 2009-06-26  DJ Delorie  <dj@redhat.com>
14175
14176         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
14177
14178         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
14179         the scheduler doesn't tag jump insns.
14180
14181 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
14182
14183         * c-decl.c (merge_decls): Re-indent.
14184
14185 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
14186
14187         PR c/39902
14188         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
14189         Special-case decimal float constants.
14190
14191 2009-06-26  Richard Henderson  <rth@redhat.com>
14192
14193         * function.h (struct function): Add cannot_be_copied_reason,
14194         and cannot_be_copied_set.
14195         * tree-inline.c (has_label_address_in_static_1): Rename from
14196         inline_forbidden_p_2; don't set inline_forbidden_reason here.
14197         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
14198         don't set inline_forbidden_reason.
14199         (copy_forbidden): New function, split out of inline_forbidden_p.
14200         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
14201         (inline_forbidden_p): Use copy_forbidden.
14202         (tree_versionable_function_p): Likewise.
14203         (inlinable_function_p): Merge into tree_inlinable_function_p.
14204         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
14205         * ipa-cp.c (ipcp_versionable_function_p): New function.
14206         (ipcp_cloning_candidate_p): Use it.
14207         (ipcp_node_modifiable_p): Likewise.
14208
14209 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
14210
14211         * builtins.c (expand_builtin_alloca): Handle builtin alloca
14212         that is marked not to be inlined. Remove flag_mudflap use.
14213         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
14214         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
14215
14216 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
14217
14218         PR bootstrap/40338
14219         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
14220         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
14221
14222 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
14223
14224         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
14225         shared libgcc.
14226         (__mingwthr_remove_key_dtor): Likewise.
14227
14228 2009-06-26  Richard Guenther  <rguenther@suse.de>
14229
14230         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
14231
14232 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
14233
14234         PR middle-end/40525
14235         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
14236         try the non-cond_exec path also.
14237
14238 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14239
14240         PR target/40468
14241         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
14242         (output_cbranch): Use new functions.
14243         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
14244         Likewise.
14245
14246 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
14247             Pat Haugen  <pthaugen@us.ibm.com>
14248             Revital Eres <ERES@il.ibm.com>
14249
14250         * config/rs6000/rs6000.c (print_operand): Correct lossage message
14251         for %c error.  Add %x support to print VSX registers as a unified
14252         register set, instead of separate float and altivec registers.
14253         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
14254         %y case, and add support for VSX pre-modify addresses.
14255         (output_toc): Add assert for CONST containing an integer constant
14256         in the PLUS case.
14257         (rs6000_adjust_cost): Add POWER7 support.
14258         (insn_must_be_first_in_group): Ditto.
14259         (insn_must_be_last_in_group): Ditto.
14260         (rs6000_emit_popcount): Ditto.
14261         (rs6000_vector_mode_supported_p): Ditto.
14262
14263         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
14264         Change some of the functions called by macros to being called
14265         through a pointer, so debug functions can be inserted if
14266         -mdebug=addr or -mdebug=cost.
14267         (rs6000_preferred_reload_class_ptr): Ditto.
14268         (rs6000_secondary_reload_class_ptr): Ditto.
14269         (rs6000_secondary_memory_needed_ptr): Ditto.
14270         (rs6000_cannot_change_mode_class_ptr): Ditto.
14271         (rs6000_secondary_reload_inner): Ditto.
14272         (rs6000_legitimize_reload_address): Ditto.
14273         (rs6000_legitimize_reload_address_ptr): Ditto.
14274         (rs6000_mode_dependent_address): Ditto.
14275         (rs6000_mode_dependent_address_ptr): Ditto.
14276
14277         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
14278         function to return true if the mode allows reg + integer
14279         addresses.
14280         (virtual_stack_registers_memory_p): New function to return true if
14281         the address refers to a virtual stack register.
14282         (rs6000_legitimate_offset_address_p): Move code to say whether a
14283         mode supports reg+int addressing to reg_offset_addressing_ok_p and
14284         call it.
14285         (rs6000_legitimate_address_p): Add checks for modes that only can
14286         do reg+reg addressing.  Start adding VSX support.
14287         (rs6000_legitimize_reload_address): Ditto.
14288         (rs6000_legitimize_address): Ditto.
14289         (rs6000_debug_legitimate_address_p): New debug functions for
14290         -mdebug=addr and -mdebug=cost.
14291         (rs6000_debug_rtx_costs): Ditto.
14292         (rs6000_debug_address_costs): Ditto.
14293         (rs6000_debug_adjust_cost): Ditto.
14294         (rs6000_debug_legitimize_address): Ditto.
14295         (rs6000_legitimize_reload_address_ptr): Point to call normal
14296         function or debug function.  Make functions called via pointer
14297         static.
14298         (rs6000_mode_dependent_address_ptr): Ditto.
14299         (rs6000_secondary_reload_class_ptr): Ditto.
14300         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
14301         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
14302         into a friendlier error.
14303         (rs6000_init_builtins): Add initial VSX support.
14304         (rs6000_adjust_cost): Fix some spacing issues.
14305
14306         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
14307         (REG_CLASS_NAMES): Ditto.
14308         (REG_CLASS_CONTENTS): Ditto.
14309         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
14310         pointer, to add -mdebug=addr support.
14311         (CANNOT_CHANGE_MODE_CLASS): Ditto.
14312         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
14313         -mdebug=addr support.
14314         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
14315         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
14316         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
14317
14318         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
14319         16-bit values.
14320         (bswapsi*): Set attribute types for load/store.  Add combiner
14321         patterns to eliminate zero extend on 64-bit.
14322         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
14323         stdbrx if the hardware supports those instructions.
14324
14325 2009-06-25  Ian Lance Taylor  <iant@google.com>
14326
14327         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
14328         (Link Options): Document -static-libstdc++.
14329
14330 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14331
14332         PR target/38731
14333         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
14334         DATA_ALIGNMENT instead.
14335
14336 2009-06-25  Richard Guenther  <rguenther@suse.de>
14337
14338         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
14339         indirect references against the callused/escaped solutions.
14340         (call_may_clobber_ref_p_1): Likewise.
14341
14342 2009-06-25  Martin Jambor  <mjambor@suse.cz>
14343
14344         PR tree-optimization/40493
14345         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
14346         (enum unscalarized_data_handling): New type.
14347         (handle_unscalarized_data_in_subtree): Return what has been done.
14348         (load_assign_lhs_subreplacements): Handle left flushes differently.
14349         (sra_modify_assign): Use unscalarized_data_handling, simplified
14350         condition determining whether to remove the statement.
14351
14352 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
14353
14354         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
14355         excerpt - @ should be doubled for texinfo.
14356
14357 2009-06-24  Ian Lance Taylor  <iant@google.com>
14358
14359         * config/arc/arc.c: Include "df.h".
14360         (arc_attribute_table): Make static.  Move higher in file.
14361         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
14362         (output_shift): Initialize n later to avoid warning.
14363         * config/arm/arm.c (arm_attribute_table): Make static.  Move
14364         higher in file.
14365         * config/avr/avr.c (avr_attribute_table): Make static.  Move
14366         higher in file.
14367         (reg_class_tab): Change array type from int to enum reg_class.
14368         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
14369         LABEL_REF.
14370         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
14371         (lshrhi3_out): Likewise.
14372         (class_likely_spilled_p): Change return type to bool.
14373         (avr_rtx_costs): Use local code variable with enum type.
14374         * config/avr/avr.md (movmemhi): Use add_reg_note.
14375         (andhi3, andsi3): Don't use AS2 with "and".
14376         (iorhi3, iorsi3): Don't use AS2 with "or".
14377         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
14378         * config/crx/crx.c: Include "df.h".
14379         (crx_attribute_table): Make static.
14380         * config/m32r/m32r.c: Include "df.h".
14381         (m32r_attribute_table): Make static.  Move higher in file.
14382         (pop): Use add_reg_note.
14383         (block_move_call): Change 0 to LCT_NORMAL in function call.
14384         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
14385         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
14386         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
14387         declare, not just when TREE_CODE is defined.
14388         * config/m68hc11/m68hc11.c: Include "expr.h".
14389         (m68hc11_attribute_table): Make static.  Move higher in file.
14390         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
14391         function call.
14392         (m68hc11_register_indirect_p): Likewise.
14393         (m68hc11_function_arg_padding): Change return type to enum
14394         direction.
14395         (emit_move_after_reload): Use add_reg_note.
14396         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
14397         (m68hc11_split_logical): Likewise.
14398         (m68hc11_rtx_costs): Add local code_and outer_code variables with
14399         enum type.
14400         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
14401         to VOIDmode in function call.
14402         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
14403         tree is defined.
14404         (m68hc11_split_logical): Update declaration.
14405         (m68hc11_function_arg_padding): Update declaration.
14406         * config/mcore/mcore.c (regno_reg_class): Change form array of int
14407         to array of enum reg_class.
14408         (mcore_attribute_table): Make static.  Move higher in file.
14409         (mcore_rtx_costs): Add cast to enum type.
14410         * config/mcore/mcore.h (regno_reg_class): Update declaration.
14411         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
14412         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
14413         in file.
14414         * config/sh/predicates.md (trapping_target_operand): Rename and to
14415         and_expr.
14416         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
14417         higher in file.
14418         * config/spu/spu.c (spu_attribute_table): Make static.  Move
14419         higher in file.
14420         * config/v850/v850.c (v850_attribute_table): Make static.  Move
14421         higher in file.
14422         (v850_rtx_costs): Use local code with enum type.
14423         (expand_epilogue): Add cast.
14424         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
14425
14426 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
14427
14428         PR target/40515
14429         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
14430         -m2a-single-only and -m2a-nofpu.
14431         * config/sh/sh.opt: Document m2a generates FPU code.
14432
14433 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
14434
14435         * defaults.h (CAN_ELIMINATE): Provide default.
14436         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
14437         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
14438         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
14439         * config/spu/spu.h (CAN_ELIMINATE): Delete.
14440         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
14441         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
14442         * config/cris/cris.h (CAN_ELIMINATE): Delete.
14443         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
14444         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
14445         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
14446
14447 2009-06-24  DJ Delorie  <dj@redhat.com>
14448
14449         * mep-ext-cop.cpu: Fix copyright notice.
14450         * mep-default: Fix copyright notice.
14451         * mep-core: Fix copyright notice.
14452         * mep: Fix copyright notice.
14453         * mep-ivc2: Fix copyright notice.
14454         * mep-c5: Fix copyright notice.
14455
14456 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
14457
14458         * doc/contrib.texi (Contributors):
14459
14460 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
14461
14462         PR middle-end/40501
14463         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
14464         src and dst operands if necessary.
14465
14466 2009-06-23  DJ Delorie  <dj@redhat.com>
14467
14468         Add MeP port.
14469         * config.gcc: Add mep support.
14470         * recog.c: Resurrect validate_replace_rtx_subexp().
14471         * recog.h: Likewise.
14472         * config/mep/: Add new port:
14473         * config/mep/constraints.md: New file.
14474         * config/mep/default.h: New file.
14475         * config/mep/intrinsics.h: New file.
14476         * config/mep/intrinsics.md: New file.
14477         * config/mep/ivc2-template.h: New file.
14478         * config/mep/mep-c5.cpu: New file.
14479         * config/mep/mep-core.cpu: New file.
14480         * config/mep/mep-default.cpu: New file.
14481         * config/mep/mep-ext-cop.cpu: New file.
14482         * config/mep/mep-intrin.h: New file.
14483         * config/mep/mep-ivc2.cpu: New file.
14484         * config/mep/mep-lib1.asm: New file.
14485         * config/mep/mep-lib2.c: New file.
14486         * config/mep/mep-pragma.c: New file.
14487         * config/mep/mep-protos.h: New file.
14488         * config/mep/mep-tramp.c: New file.
14489         * config/mep/mep.c: New file.
14490         * config/mep/mep.cpu: New file.
14491         * config/mep/mep.h: New file.
14492         * config/mep/mep.md: New file.
14493         * config/mep/mep.opt: New file.
14494         * config/mep/predicates.md: New file.
14495         * config/mep/t-mep: New file.
14496
14497 2009-06-23  Ian Lance Taylor  <iant@google.com>
14498
14499         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
14500         from loose_warn into c_loose_warn and from strict_warn into
14501         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
14502         --enable-build-with-cxx.  Set and substitute
14503         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
14504         * Makefile.in (CXXFLAGS): New variable.
14505         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
14506         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
14507         the default is the same as $(STRICT_WARN).
14508         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
14509         (CXX): New variable.
14510         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
14511         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
14512         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
14513         (HOST_LIBS): New variable.
14514         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
14515         (ALL_CXXFLAGS): New variable.
14516         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
14517         * doc/install.texi (Configuration): Document
14518         --enable-build-with-cxx, --with-stage1-ldflags,
14519         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
14520         * configure: Rebuild.
14521
14522 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14523
14524         * config/arm/arm.c (arm_override_options): Fix braces and formatting
14525         from previous commit.
14526
14527 2009-06-23  Ian Lance Taylor  <iant@google.com>
14528
14529         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
14530
14531 2009-06-23  Ian Lance Taylor  <iant@google.com>
14532
14533         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
14534         with ATTRIBUTE_UNUSED.
14535
14536 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
14537             Pat Haugen  <pthaugen@us.ibm.com>
14538             Revital Eres  <eres@il.ibm.com>
14539
14540         * config.in (HAVE_AS_POPCNTD): Add default definition.
14541         (HAVE_AS_LWSYNC): Ditto.
14542
14543         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
14544         release number.
14545         (gcc_cv_as_powerpc_cmpb): Ditto.
14546         (gcc_cv_as_powerpc_dfp): Ditto.
14547         (gcc_cv_as_powerpc_vsx): Ditto.
14548         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
14549         supporting the popcntd/lwsync instructions.
14550         (gcc_cv_as_powerpc_lwsync): Ditto.
14551         * configure: Regenerate.
14552
14553         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
14554         -mcpu=native and -mcpu=power7.
14555         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
14556
14557         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
14558         a variable instead of a mask to reduce the number of mask bits.
14559         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
14560         (-mbit-word): Ditto.
14561         (-mregnames): Ditto.
14562         * config/rs6000/rs6000.opt (-mupdate): Ditto.
14563         (-mfused-madd): Ditto.
14564
14565         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
14566         2.06 instructions.
14567         (-mvsx): New switch for VSX instructions.
14568         (-misel): Move from a variable to a mask to allow it to be set by
14569         -mcpu=.
14570
14571         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
14572         function declaration to an array declaration.
14573         (rs6000_hard_regno_nregs): New external array declaration.
14574
14575         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
14576         files included by rs6000.md.
14577
14578         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14579         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
14580
14581         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
14582         a target mask.
14583         (rs6000_debug_reg): New -mdebug= variables.
14584         (rs6000_debug_addr): Ditto.
14585         (rs6000_debug_cost): Ditto.
14586         (rs6000_pmode): New variable to hold Pmode.
14587         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
14588         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
14589         calculated at compiler start.
14590         (rs6000_hard_regno_nregs): Change function to an array which holds
14591         HARD_REGNO_NREGS calculated at compiler start.
14592         (rs6000_explicit_options): Delete isel field.
14593         (rs6000_vector_unit): New array to hold which vector unit
14594         supports arithmetic options for a given type.
14595         (rs6000_vector_mem): New array to hold which vector unit supports
14596         memory reference operations for a given type.
14597         (rs6000_vector_align): New array to given the alignment of each
14598         vector type.
14599         (power7_cost): New basic costs for power7.
14600         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
14601         (rs6000_hard_regno_nregs_internal): New function, moved from
14602         HARD_REGNO_NREGS, to calculate the number of registers each hard
14603         register takes for each type.
14604         (rs6000_debug_reg_print): New function for -mdebug=reg support.
14605         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
14606         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
14607         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
14608         unit information here so it is calculated once at compiler startup
14609         time.
14610         (rs6000_override_options): Make -misel a target mask.  Add more
14611         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
14612         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
14613         -mdebug=cost.
14614         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
14615         (rs6000_handle_option): Move -misel from variable to target mask.
14616         (rs6000_builtin_mask_for_load): Add VSX support.
14617         (rs6000_conditional_register_usage): Ditto.
14618         (USE_ALTIVEC_FOR_ARG_P): Ditto.
14619         (function_arg_boundary): Ditto.
14620         (rs6000_expand_builtin): Ditto.
14621         (def_builtin): Make abort message a little friendlier.
14622         (rs6000_emit_int_cmove): Add support for 64-bit isel.
14623
14624         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
14625         assembler support the popcntd instruction instead of a vsx
14626         instruction to enable power7 support.
14627         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
14628         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
14629         option to the assembler if -mcpu=native.
14630         (ASM_CPU_NATIVE_SPEC): Ditto.
14631         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
14632         ISA 2.06 features.
14633         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
14634         the lwsync instruction.
14635         (enum processor_type): Add PROCESSOR_POWER7.
14636         (rs6000_debug_reg): New -mdebug= options.
14637         (rs6000_debug_addr): Ditto.
14638         (rs6000_debug_cost): Ditto.
14639         (rs6000_isel): Delete.
14640         (enum rs6000_vector): New enum to say what vector unit we have.
14641         (VECTOR_UNIT_*): New macros to say which vector unit has
14642         arithmetic operations for a given type.
14643         (VECTOR_MEM_*): New macros to say which vector unit has memory
14644         operations for a given type.
14645         (TARGET_LDBRX): Whether the machine supports the ldbrx
14646         instruction.
14647         (TARGET_ISEL): Delete, -misel moved to be a mask.
14648         (TARGET_ISEL64): New macro for 64-bit isel support.
14649         (UNITS_PER_VSX_WORD): New macro.
14650         (POINTER_SIZE): Move to be an external variable, rather than
14651         calculating whether we are generating 32 ot 64-bit code.
14652         (Pmode): Ditto.
14653         (STACK_BOUNDARY): Add VSX support.
14654         (LOCAL_ALIGNMENT): Ditto.
14655         (SLOW_UNALIGNED_ACCESS): Ditto.
14656         (VSX_REGNO_P): New macro for VSX support.
14657         (VFLOAT_REGNO_P): Ditto.
14658         (VINT_REGNO_P): Ditto.
14659         (VLOGICAL_REGNO_P): Ditto.
14660         (VSX_VECTOR_MODE): Ditto.
14661         (VSX_SCALAR_MODE): Ditto.
14662         (VSX_MODE): Ditto.
14663         (VSX_MOVE_MODE): Ditto.
14664         (VSX_REG_CLASS_P): Ditto.
14665         (HARD_REGNO_NREGS): Instead of calling a function, use an array
14666         lookup.
14667         (UNITS_PER_SIMD_WORD): Add VSX support.
14668         (MODES_TIEABLE_P): Ditto.
14669         (STARTING_FRAME_OFFSET): Ditto.
14670         (STACK_DYNAMIC_OFFSET): Ditto.
14671         (EPILOGUE_USES): Ditto.
14672         (REGNO_REG_CLASS): Move to array lookup.
14673         (CLASS_MAX_NREGS): Ditto.
14674         (rs6000_vector_reg_class): Add declaration.
14675         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
14676         overlap with the floating point and Altivec registers.
14677
14678         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
14679
14680         * config/rs6000/driver-rs6000.c (asm_names): New static array to
14681         give the appropriate asm switches if -mcpu=native.
14682         (host_detect_local_cpu): Add support for "asm".
14683         (host_detect_local_cpu): Follow GNU code guidelines for name.
14684
14685         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
14686         -mbit-word to a variable instead of being a target mask.
14687
14688         * config/rs6000/sync.md (lwsync): If the assembler supports it,
14689         emit the lwsync instruction instead of emitting the instruction as
14690         an integer constant.
14691
14692         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
14693         fixuns_trundfsi2, move expander into rs6000.md.
14694
14695         * config/rs6000/rs6000.md (cpu): Add power7.
14696         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
14697         (logical predicate patterns): Change the single instruction
14698         primitives that set CR0 to be fast_compare instead of compare.
14699         (norsi*): Ditto.
14700         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
14701         (popcntddi2): Ditto.
14702         (popcount<mode>): Ditto.
14703         (floating multiply/add insns): Name the floating point
14704         multiply/add insns.
14705         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
14706         (isel_unsigned_<mode>): Ditto.
14707         (fixuns_trundfsi2): Move expander here from spe.md.
14708         (smindi3): Define if we have -misel on 64-bit systems.
14709         (smaxdi3): Ditto.
14710         (umindi3): Ditto.
14711         (umaxdi3): Ditto.
14712
14713 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
14714
14715         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
14716         extra_objs.
14717         * config/avr/avr.c (avr_current_device): New variable.
14718         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
14719         (avr_arch, mcu_type_s): Move to avr.h.
14720         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
14721         default_data_section_start fields.
14722         (avr_arch): Moved from avr.c.
14723         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
14724         library_name fields.
14725         (avr_current_device, avr_mcu_types, avr_arch_types,
14726         avr_device_to_arch, avr_device_to_data_start,
14727         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
14728         (EXTRA_SPEC_FUNCTIONS): Define.
14729         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
14730         options mapping. Use device_to_arch and device_to_data_start insted.
14731         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
14732         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
14733         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
14734         * config/avr/driver-avr.c: New file.
14735         * config/avr/avr-devices.c: New file.
14736
14737 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
14738
14739         * var-tracking.c (unshare_variable): Force initialized to
14740         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
14741         (set_variable_part): Likewise.
14742         (struct variable_union_info): Remove pos_src field.
14743         (vui_vec, vui_allocated): New variables.
14744         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
14745         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
14746         == 1 use a simpler sorting algorithm.  Compute pos field right
14747         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
14748         Avoid quadratic comparison if !flag_var_tracking_uninit.
14749         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
14750         unshare_variable unconditionally.
14751         (dataflow_set_different_2): Removed.
14752         (dataflow_set_different): Don't traverse second hash table.
14753         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
14754         unconditionally to var_reg_set or var_mem_set.
14755         (emit_notes_in_bb): Likewise.
14756         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
14757         unshare_variable.
14758         (emit_note_insn_var_location): Don't set initialized to
14759         VAR_INIT_STATUS_INITIALIZED early.
14760         (vt_finalize): Free vui_vec if needed, clear vui_vec and
14761         vui_allocated.
14762         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
14763
14764         * tree-object-size.c (addr_object_size): Instead of checking
14765         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
14766         are no FIELD_DECLs following it.
14767
14768 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
14769
14770         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
14771         order to match bswaps with signed source operands.
14772
14773 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14774
14775         * sdbout.c (sdbout_one_type): Fix braces in switch.
14776
14777 2009-06-23  Richard Guenther  <rguenther@suse.de>
14778
14779         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
14780         member.
14781         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
14782         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
14783         var_callused, callused_tree, var_storedanything, storedanything_tree,
14784         var_integer, integer_tree): Remove global variables.
14785         (new_var_info): Do not pass new id, append the new var to the
14786         global variable vector.
14787         (do_ds_constraint): Use is_global_var member of the variable-info.
14788         (new_scalar_tmp_constraint_exp): Adjust.
14789         (create_function_info_for): Likewise.
14790         (create_variable_info_for): Likewise.
14791         (find_what_var_points_to): Remove dead code.
14792         (init_base_vars): Simplify.
14793         (compute_points_to_sets): Adjust.
14794
14795 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
14796
14797         * combine.c (try_combine): Dump information about the insns we're
14798         combining.
14799
14800 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
14801
14802         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
14803         check when calling force_to_mode on TRUNCATE's operand.
14804
14805 2009-06-22  Ian Lance Taylor  <iant@google.com>
14806
14807         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
14808
14809 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
14810
14811         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
14812
14813 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14814
14815         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
14816         override library linkage flags such as -static-libgcc or
14817         -shared-libgcc.
14818
14819 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
14820
14821         * config/m68k/m68k-devices.def: Add line for MCF5221x.
14822
14823 2009-06-22  Ian Lance Taylor  <iant@google.com>
14824
14825         * config/linux.opt: Put mglibc ahead of muclibc.
14826
14827         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
14828         for duplicate decls.
14829
14830 2009-06-22  Matthias Klose  <doko@ubuntu.com>
14831
14832         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
14833
14834 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
14835
14836         PR objc/28050
14837         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
14838         instead of NULL if a parser error occurs.
14839
14840 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14841
14842         * dwarf2out.c (dwarf2_debug_hooks): Initialize
14843         non-DWARF2_DEBUGGING_INFO version.
14844
14845 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
14846
14847         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
14848         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
14849
14850         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
14851         (LIBGCC2_TF_CEXT): Define.
14852         (TF_SIZE): Define.
14853
14854 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14855
14856         PR target/40463
14857         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
14858
14859 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14860
14861         * config/arm/arm.c (arm_override_options): Disable
14862         -mcaller-super-interworking and -mcallee-super-interworking.
14863         * doc/invoke.texi (ARM Options): Document this.
14864
14865 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
14866
14867         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
14868         * config/arm/constraints.md (j): New constraint for movw operands.
14869         (N): Remove thumb2 meaning.
14870         * config/arm/arm.md (*arm_movw): Delete.
14871         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
14872         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
14873         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
14874
14875 2009-06-22  Martin Jambor  <mjambor@suse.cz>
14876
14877         PR tree-optimization/40492
14878         * tree-sra.c (sra_modify_assign): Pass zero offsets to
14879         build_ref_for_offset.
14880
14881 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
14882
14883         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
14884         JUMP_TABLE_DATA_P predicates where applicable.
14885         * auto-inc-dec.c: Ditto.
14886         * builtins.c: Ditto.
14887         * caller-save.c: Ditto.
14888         * calls.c: Ditto.
14889         * cfgcleanup.c: Ditto.
14890         * cfglayout.c: Ditto.
14891         * cfgrtl.c: Ditto.
14892         * combine.c: Ditto.
14893         * combine-stack-adj.c: Ditto.
14894         * cse.c: Ditto.
14895         * cselib.c: Ditto.
14896         * dbxout.c: Ditto.
14897         * df-scan.c: Ditto.
14898         * dse.c: Ditto.
14899         * dwarf2asm.c: Ditto.
14900         * dwarf2out.c: Ditto.
14901         * emit-rtl.c: Ditto.
14902         * except.c: Ditto.
14903         * explow.c: Ditto.
14904         * expmed.c: Ditto.
14905         * expr.c: Ditto.
14906         * final.c: Ditto.
14907         * function.c: Ditto.
14908         * fwprop.c: Ditto.
14909         * gcse.c: Ditto.
14910         * genpreds.c: Ditto.
14911         * genrecog.c: Ditto.
14912         * ifcvt.c: Ditto.
14913         * ira-costs.c: Ditto.
14914         * ira-lives.c: Ditto.
14915         * jump.c: Ditto.
14916         * loop-iv.c: Ditto.
14917         * lower-subreg.c: Ditto.
14918         * modulo-sched.c: Ditto.
14919         * optabs.c: Ditto.
14920         * postreload.c: Ditto.
14921         * print-rtl.c: Ditto.
14922         * recog.c: Ditto.
14923         * reginfo.c: Ditto.
14924         * regmove.c: Ditto.
14925         * reload1.c: Ditto.
14926         * reload.c: Ditto.
14927         * reorg.c: Ditto.
14928         * rtlanal.c: Ditto.
14929         * rtl.c: Ditto.
14930         * sched-vis.c: Ditto.
14931         * sdbout.c: Ditto.
14932         * sel-sched-ir.c: Ditto.
14933         * simplify-rtx.c: Ditto.
14934         * targhooks.c: Ditto.
14935         * var-tracking.c: Ditto.
14936         * vmsdbgout.c: Ditto.
14937
14938 2009-06-22  Matthias Klose  <doko@ubuntu.com>
14939
14940         * Makefile.in (install-plugin): Always use DESTDIR.
14941
14942 2009-06-22  Olivier Hainque  <hainque@adacore.com>
14943
14944         * config/pa/pa.c (output_call): Don't optimize post call jumps
14945         into return address adjustments if the call may throw.
14946
14947 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
14948
14949         * arm.c (thumb1_output_casesi): New function.
14950         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
14951         optimizing for size or PIC.
14952         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
14953         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
14954         (casesi): Handle Thumb-1 when optimizing for size or PIC.
14955         (thumb1_casesi_internal_pic): New expand rule.
14956         (thumb1_casesi_dispatch): New pattern.
14957         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
14958         thumb-1 mode.
14959         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
14960         in the text seciton when PIC or optimizing for size.
14961         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
14962         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
14963         preservation properties of code.
14964         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
14965         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
14966         (__gnu_thumb1_case_si): New function.
14967         * t-arm (LIB1ASMSRC): Define here.
14968         (LIB1ASMFUNCS): Add some common functions.
14969         * t-arm-elf (LIB1ASMSRC): Delete.
14970         (LIB1ASMFUNCS): Append to existing set.
14971         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14972         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14973         * t-symbian (LIB1ASMFUNCS): Likewise.
14974         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14975         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14976
14977 2009-06-21  Richard Guenther  <rguenther@suse.de>
14978
14979         PR tree-optimization/38729
14980         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
14981         to loops with a single exit if -fno-expensive-optimizations.
14982
14983 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
14984
14985         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
14986         (dataflow_set): Change vars type from htab_t to shared_hash.
14987         (shared_hash_pool, empty_shared_hash): New variables.
14988         (vars_clear): Removed.
14989         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
14990         shared_hash_find_slot_unshare, shared_hash_find_slot,
14991         shared_hash_find_slot_noinsert, shared_hash_find): New
14992         static inlines.
14993         (shared_hash_unshare, shared_hash_destroy): New functions.
14994         (unshare_variable): Unshare set->vars if shared, use
14995         shared_hash_htab.
14996         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
14997         (get_init_value, find_src_set_src, dump_dataflow_set,
14998         clobber_variable_part, emit_notes_for_differences): Use
14999         shared_hash_htab.
15000         (dataflow_set_init): Remove second argument, set vars to
15001         empty_shared_hash instead of creating a new htab.
15002         (dataflow_set_clear): Call shared_hash_destroy and set vars
15003         to empty_shared_hash instead of calling vars_clear.
15004         (dataflow_set_copy): Don't call vars_copy, instead just share
15005         the src htab with dst.
15006         (variable_union): Use shared_hash_*, use initially NO_INSERT
15007         lookup if set->vars is shared.  Don't keep slot cleared before
15008         calling unshare_variable.  Unshare set->vars if needed.
15009         Even ->refcount == 1 vars must be unshared if set->vars is shared
15010         and var needs to be modified.
15011         (variable_canonicalize): New function.
15012         (dataflow_set_union): If dst->vars is empty, just share src->vars
15013         with dst->vars and traverse with variable_canonicalize to canonicalize
15014         and unshare what is needed.
15015         (dataflow_set_different): If old_set and new_set use the same shared
15016         htab, they aren't different.  If number of htab elements is different,
15017         htabs are different.  Use shared_hash_*.
15018         (dataflow_set_destroy): Call shared_hash_destroy instead of
15019         htab_delete.
15020         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
15021         second argument to dataflow_set_init.
15022         (vt_initialize): Likewise.  Initialize shared_hash_pool and
15023         empty_shared_hash, move bb in/out initialization afterwards.
15024         Use variable_htab_free instead of NULL as changed_variables del hook.
15025         (variable_was_changed): Change type of second argument to pointer to
15026         dataflow_set.  When inserting var into changed_variables, bump
15027         refcount.  Unshare set->vars if set is shared htab and slot needs to
15028         be cleared.
15029         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
15030         lookup if set->vars is shared.  Unshare set->vars if needed.
15031         Even ->refcount == 1 vars must be unshared if set->vars is shared
15032         and var needs to be modified.  Adjust variable_was_changed caller.
15033         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
15034         vars must be unshared if set->vars is shared and var needs to be
15035         modified.  Adjust variable_was_changed caller.
15036         (emit_note_insn_var_location): Don't pool_free var.
15037         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
15038         instead of 1.
15039         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
15040         free_alloc_pool on shared_hash_pool.
15041
15042 2009-06-20  Anthony Green  <green@moxielogic.com>
15043
15044         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
15045         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
15046
15047 2009-06-20  Richard Guenther  <rguenther@suse.de>
15048
15049         * tree-ssa-structalias.c (find_func_aliases): For memset use
15050         a constraint from NULL if we memset to zero.
15051         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
15052         we explicitly handle that do not read from memory.
15053         (call_may_clobber_ref_p_1): Properly handle builtins that may
15054         set errno.
15055
15056 2009-06-20  Richard Guenther  <rguenther@suse.de>
15057
15058         PR tree-optimization/40495
15059         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
15060         (new_scalar_tmp_constraint_exp): New function.
15061         (process_constraint): Do not create temporary decls.
15062         (process_all_all_constraints): Likewise.
15063         (handle_const_call): Likewise.
15064         (create_function_info_for): Do not set decl.
15065
15066 2009-06-19  Ian Lance Taylor  <iant@google.com>
15067
15068         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
15069         (rs6000_attribute_table): Make static; move before use.
15070
15071 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
15072
15073         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
15074         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
15075         Propagate the TREE_READONLY flag without overwriting it.
15076         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
15077         Propagate the TREE_READONLY flag onto the result.
15078         (process_call_operands): Move around.  Use correct constant value.
15079
15080 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15081
15082         PR target/40482
15083         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
15084         * config/arm/arm.md: Likewise.
15085
15086 2009-06-19  Ian Lance Taylor  <iant@google.com>
15087
15088         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
15089         to GIMPLE_ERROR_MARK.
15090
15091         * c-typeck.c (build_conditional_expr): Add op1_original_type and
15092         op2_original_type parameters.  Warn about using different enum types.
15093         * c-parser.c (c_parser_conditional_expression): Pass original
15094         types to build_conditional_expr.
15095         * c-tree.h (build_conditional_expr): Update declaration.
15096
15097 2009-06-19  Ian Lance Taylor  <iant@google.com>
15098
15099         * config/i386/i386.c (ix86_function_specific_save): Test that
15100         fields match values, rather than testing the values are in a
15101         certain range.
15102
15103 2009-06-19  Richard Guenther  <rguenther@suse.de>
15104
15105         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
15106         ADDR_EXPR pointers.
15107         (ptr_derefs_may_alias_p): Likewise.
15108         (ptr_deref_may_alias_ref_p_1): New function.
15109         (ptr_deref_may_alias_ref_p): Likewise.
15110         (ref_maybe_used_by_call_p_1): Handle builtins that are not
15111         covered by looking at the ESCAPED solution.
15112         (call_may_clobber_ref_p_1): Likewise.
15113         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
15114         Handle NULL_TREE offset.  Do not produce redundant constraints.
15115         (process_all_all_constraints): New helper function.
15116         (do_structure_copy): Use it.
15117         (handle_lhs_call): Likewise.
15118         (find_func_aliases): Handle some builtins with pointer arguments
15119         and/or return values explicitly.
15120
15121 2009-06-19  Ian Lance Taylor  <iant@google.com>
15122
15123         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
15124
15125 2009-06-19  Ian Lance Taylor  <iant@google.com>
15126
15127         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
15128
15129 2009-06-19  Ian Lance Taylor  <iant@google.com>
15130
15131         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
15132         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
15133         version.
15134
15135         * c-decl.c (finish_decl): If -Wc++-compat, warn about
15136         uninitialized const.
15137
15138 2009-06-19  Ian Lance Taylor  <iant@google.com>
15139
15140         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
15141         all uses.
15142
15143         * c-decl.c (in_struct, struct_types): Remove.
15144         (struct c_binding): Add in_struct field.
15145         (c_binding_ptr): Define type, along with VEC.
15146         (struct c_struct_parse_info): Define.
15147         (struct_parse_info): New static variable.
15148         (bind): Initialize in_struct field.
15149         (start_struct): Remove enclosing_in_struct and
15150         enclosing_struct_types parameters.  Add
15151         enclosing_struct_parse_info parameter.  Change all callers.  Set
15152         struct_parse_info rather than in_struct and struct_types.
15153         (grokfield): If -Wc++-compat and there is a symbol binding for the
15154         field name, set the in_struct flag and push it on the
15155         struct_parse_info->fields vector.
15156         (warn_cxx_compat_finish_struct): New static function.
15157         (finish_struct): Remove enclosing_in_struct and
15158         enclosing_struct_types parameters.  Add
15159         enclosing_struct_parse_info parameter.  Change all callers.  Don't
15160         set C_TYPE_DEFINED_IN_STRUCT here.  Call
15161         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
15162         parameter.  Only push on struct_types if warn_cxx_compat.
15163         (finish_enum): Only push on struct_types if warn_cxx_compat.
15164         (declspecs_add_type): Add loc parameter.  Change all callers.
15165         Change all error calls to error_at.  Pass loc, not input_location,
15166         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
15167         defined in a struct.  If -Wc++-compat and parsing a struct, record
15168         that a typedef name was used.
15169         * c-parser.c (c_parser_declspecs): Get location to pass to
15170         declspecs_add_type.
15171         (c_parser_struct_or_union_specifier): Update calls to start_struct
15172         and finish_struct.
15173         * c-tree.h (struct c_struct_parse_info): Declare.
15174         (finish_struct, start_struct): Update declarations.
15175         (declspecs_add_type): Update declaration.
15176
15177 2009-06-19  Ian Lance Taylor  <iant@google.com>
15178
15179         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
15180         variable with an anonymous type.
15181
15182 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
15183
15184         * see.c: Remove for real.
15185
15186 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
15187
15188         * optabs.h (enum optab_index): Add new OTI_significand.
15189         (significand_optab): Define corresponding macro.
15190         * optabs.c (init_optabs): Initialize significand_optab.
15191         * genopinit.c (optabs): Implement significand_optab using
15192         significand?f2 patterns.
15193         * builtins.c (expand_builtin_mathfn): Handle
15194         BUILT_IN_SIGNIFICAND{,F,L}.
15195         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
15196         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
15197
15198         * config/i386/i386.md (significandxf2, significand<mode>2): New
15199         expanders to implement significandf, significand and significandl
15200         built-ins as inline x87 intrinsics.
15201
15202 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
15203
15204         * config/avr/avr.c (avr_override_options): Remove setting value of
15205         PARAM_INLINE_CALL_COST.
15206
15207 2009-06-18  Richard Henderson  <rth@redhat.com>
15208
15209         PR 40488
15210         * tree-pass.h (TDF_ASMNAME): New.
15211         * tree-dump.c (dump_options): Add asmname.
15212         * doc/invoke.texi: Document it.
15213
15214         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
15215         (dump_decl_name): ...here.
15216         (dump_function_name): New flags arg; mind TDF_ASMNAME.
15217         (dump_generic_node): Update dump_function_name calls.
15218         (print_call_name): New flags arg; update all dump calls.
15219         * diagnostic.h (print_call_name): Update.
15220         * gimple-pretty-print.c (dump_gimple_call): Update.
15221
15222 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
15223
15224         PR target/40470
15225         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
15226
15227 2009-06-18  Diego Novillo  <dnovillo@google.com>
15228
15229         * doc/plugins.texi: Document plugin_is_GPL_compatible.
15230         * plugin.c (str_license): Declare.
15231         (try_init_one_plugin): Assert that the symbol
15232         'plugin_is_GPL_compatible' exists.
15233
15234 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
15235
15236         * see.c: Remove.
15237         * Makefile.in (OBJS-common): Remove see.o.
15238         (see.o): Remove.
15239         * common.opt (fsee): Mark as preserved for backward compatibility.
15240         * opts.c (common_handle_option): Add OPT_fsee to the backward
15241         compatibility section.
15242         * passes.c (init_optimization_passes, pass_see): Remove pass.
15243         * timevar.def (TV_SEE): Remove.
15244         * tree-pass.h (pass_see): Remove declaration.
15245         * doc/invoke.texi (-fsee): Remove documentation.
15246
15247 2009-06-18  Martin Jambor  <mjambor@suse.cz>
15248
15249         * tree-sra.c: Include statistics.h
15250         (sra_stats): New variable.
15251         (sra_initialize): Clear sra_stats.
15252         (create_access_replacement): Increment sra_stats.replacements.
15253         (get_access_replacement): Do not return twice.
15254         (analyze_all_variable_accesses): Increment statistics counter by the
15255         number of scalarized aggregates.
15256         (generate_subtree_copies): Increment sra_stats.subtree_copies.
15257         (sra_modify_expr): Increment sra_stats.exprs.
15258         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
15259         (sra_modify_assign): Increment sra_stats.exprs,
15260         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
15261         (perform_intra_sra): Update statistics counters.
15262         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
15263
15264 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
15265
15266         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
15267         (arm_scalar_mode_supported_p): New function.
15268
15269 2009-06-18  Paul Brook  <paul@codesourcery.com>
15270             Sandra Loosemore  <sandra@codesourcery.com>
15271
15272         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
15273         (__extendhfsf2, __truncsfhf2): Define.
15274         * config/arm/fp16.c: New file.
15275         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
15276         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
15277
15278 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
15279
15280         * doc/extend.texi (Half-Precision): New section.
15281         * doc/invoke.texi (Option Summary): List -mfp16-format.
15282         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
15283         * config/arm/arm.opt (mfp16-format=): New.
15284         * config/arm/arm.c: Include intl.h.
15285         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
15286         (TARGET_INVALID_RETURN_TYPE): Redefine.
15287         (TARGET_PROMOTED_TYPE): Redefine.
15288         (TARGET_CONVERT_TO_TYPE): Redefine.
15289         (arm_fp16_format): Define.
15290         (all_fpus): Add entry for neon-fp16.
15291         (fp_model_for_fpu): Likewise.
15292         (struct fp16_format): Declare.
15293         (all_fp16_formats): Define.
15294         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
15295         functions.
15296         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
15297         and no ldrh.
15298         (arm_legitimate_index_p): Treat HFmode like HImode.
15299         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
15300         (coproc_secondary_reload_class): Special-case HFmode.
15301         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
15302         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
15303         (arm_init_fp16_builtins): New.
15304         (arm_init_builtins): Call it.
15305         (arm_invalid_parameter_type): New.
15306         (arm_invalid_return_type): New.
15307         (arm_promoted_type): New.
15308         (arm_convert_to_type).
15309         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
15310         format.
15311         (arm_emit_fp16_const): New function.
15312         (arm_mangle_type): Mangle __fp16 as "Dh".
15313         * config/arm/arm.h (TARGET_VFPD32): Make it know about
15314         FPUTYPE_NEON_FP16.
15315         (TARGET_NEON_FP16): New.
15316         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
15317         (enum fputype): Add FPUTYPE_NEON_FP16.
15318         (enum arm_fp16_format_type): Declare.
15319         (arm_fp16_format): Declare.
15320         (LARGEST_EXPONENT_IS_NORMAL): Define.
15321         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
15322         * config/arm/arm-modes.def (HFmode): Define.
15323         * config/arm/vfp.md (*movhf_vfp): New.
15324         (extendhfsf2): New.
15325         (truncsfhf2): New.
15326         * config/arm/arm.md (fpu): Add neon_fp16.
15327         (floatsihf2, floatdihf2): New.
15328         (fix_trunchfsi2, fix_trunchfdi2): New.
15329         (truncdfhf2): New.
15330         (extendhfdf2): New.
15331         (movhf): New.
15332         (*arm32_movhf): New.
15333         (*thumb1_movhf): New.
15334         (consttable_2): Add check for HFmode constants.
15335         (consttable_4): Handle HFmode constants.
15336
15337 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
15338
15339         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
15340
15341 2009-06-17  Olivier Hainque  <hainque@adacore.com>
15342
15343         * collect2.c (main): Use CONST_CAST2 to perform char ** to
15344         const char ** conversion in AIX specific section.
15345
15346 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
15347
15348         * config/i386/i386.c (ix86_special_builtin_type): Remove
15349         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
15350         (bdesc_special_args): Updated.
15351         (ix86_init_mmx_sse_builtins): Likewise.
15352         (ix86_expand_special_args_builtin): Likewise.
15353
15354 2009-06-17  Richard Henderson  <rth@redhat.com>
15355
15356         * tree-pretty-print.c (maybe_dump_asm_name): New.
15357         (dump_decl_name): Use it.
15358         (PRINT_FUNCTION_NAME): Merge into...
15359         (dump_function_name): ... here.  Use maybe_dump_asm_name.
15360
15361 2009-06-17  Cary Coutant  <ccoutant@google.com>
15362
15363         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
15364         Change caller.
15365         * debug.c (struct gcc_debug_hooks): Change placeholder for
15366         source_line hook.
15367         (debug_nothing_int_charstar_int): Replaced by...
15368         (debug_nothing_int_charstar_int_bool): ...this.
15369         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
15370         source_line prototype.
15371         (debug_nothing_int_charstar_int): Replaced by...
15372         (debug_nothing_int_charstar_int_bool): ...this.
15373         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
15374         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
15375         Output is_stmt operand when necessary.
15376         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
15377         (notice_source_line): Add is_stmt parameter.
15378         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
15379         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
15380         Change callers.
15381         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
15382         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
15383
15384 2009-06-17  Ian Lance Taylor  <iant@google.com>
15385
15386         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
15387         Change all uses.
15388         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
15389         call uses.
15390
15391 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
15392
15393         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
15394         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
15395         tree_strip_sign_nop_conversions and
15396         tree_ssa_strip_useless_type_conversions rather than stripping
15397         the operations here.
15398         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
15399         Declare them.
15400         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
15401         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
15402         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
15403         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
15404         functions.
15405
15406 2009-06-17  Michael Eager  <eager@eagercon.com>
15407
15408         * config/rs6000/constraints.md (register_constraint "d"): New.
15409         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
15410         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
15411         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
15412         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
15413         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
15414         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
15415         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
15416         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
15417         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
15418         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
15419         __fctiwz): Same.
15420         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
15421         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
15422         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
15423         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
15424         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
15425         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
15426         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
15427         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
15428         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
15429         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
15430         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
15431         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
15432         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
15433         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
15434
15435 2009-06-16  Ian Lance Taylor  <iant@google.com>
15436
15437         * profile.c (total_num_never_executed): Don't define.
15438         (compute_branch_probabilities): Don't count or print
15439         num_never_executed.
15440         (init_branch_prob): Don't set total_num_never_executed.
15441         (end_branch_prob): Don't print total_num_never_executed.
15442
15443 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
15444
15445         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
15446
15447 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
15448
15449         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
15450         (nabstd2_fpr): Same.
15451
15452 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
15453
15454         * expr.c (expand_assignment): Change complex type check.
15455
15456 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
15457
15458         * doc/plugins.texi (Building GCC plugins): Added new section.
15459
15460 2009-06-17  Ian Lance Taylor  <iant@google.com>
15461
15462         * c-pch.c (get_ident): Don't set size of templ array.
15463         (pch_init): Don't set size of partial_pch array.
15464
15465         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
15466         string constant to intialize an array whose size is the length of
15467         the string.
15468
15469 2009-06-17  Richard Guenther  <rguenther@suse.de>
15470
15471         PR tree-optimization/40389
15472         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
15473         to addressable types.
15474         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
15475
15476 2009-06-17  Richard Guenther  <rguenther@suse.de>
15477
15478         PR middle-end/40460
15479         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
15480         if there is no evolution of left in the loop bail out.
15481         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
15482         chrec_fold_multiply.
15483
15484 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
15485             Janis Johnson  <janis187@us.ibm.com>
15486
15487         PR target/39254
15488         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
15489         for the symbol ref of a constant that is the source of a move
15490         - nor for any other not-obvious-label-ref constants.
15491
15492 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
15493
15494         * plugin.c (position_pass): Skip newly inserted pass during list
15495         traversal to avoid repeated insertion.
15496
15497 2009-06-16  Ian Lance Taylor  <iant@google.com>
15498
15499         * vec.h (VEC_stack_alloc): Define different version if
15500         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
15501         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
15502         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
15503         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
15504
15505 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
15506
15507         * config.gcc (extra_headers): Add ia32intrin.h for x86.
15508
15509         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
15510         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
15511         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
15512         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
15513         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
15514         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
15515         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
15516         (bdesc_special_args): Add __builtin_ia32_rdtsc and
15517         __builtin_ia32_rdtscp.
15518         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
15519         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
15520         and __builtin_ia32_rorhi.
15521         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
15522         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
15523         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
15524         (ix86_expand_args_builtin): Likewise.
15525         (ix86_expand_special_args_builtin): Likewise.
15526
15527         * config/i386/i386.md (UNSPECV_RDTSCP): New.
15528         (UNSPECV_RDTSC): Likewise.
15529         (UNSPECV_RDPMC): Likewise.
15530         (*bsr): Renamed to ...
15531         (bsr): This
15532         (*bsr_rex64): Renamed to ...
15533         (bsr_rex64): This.
15534         (rdpmc): New.
15535         (*rdpmc): Likewise.
15536         (*rdpmc_rex64): Likewise.
15537         (rdtsc): Likewise.
15538         (*rdtsc): Likewise.
15539         (*rdtsc_rex64): Likewise.
15540         (rdtscp): Likewise.
15541         (*rdtscp): Likewise.
15542         (*rdtscp_rex64): Likewise.
15543
15544         * config/i386/ia32intrin.h: New.
15545
15546         * config/i386/x86intrin.h: Include <ia32intrin.h>.
15547
15548 2009-06-16  Ian Lance Taylor  <iant@google.com>
15549
15550         * ira-build.c (copy_info_to_removed_store_destinations):
15551         Initialize parent_a.
15552
15553 2009-06-16  Ian Lance Taylor  <iant@google.com>
15554
15555         * c-decl.c (grokdeclarator): Change size_varies to bool.
15556
15557 2009-06-16  Ian Lance Taylor  <iant@google.com>
15558
15559         * sel-sched.c: Make forward declarations of move_op_hooks and
15560         fur_hooks explicitly extern.
15561
15562 2009-06-16  Ian Lance Taylor  <iant@google.com>
15563
15564         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
15565         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
15566
15567 2009-06-16  Ian Lance Taylor  <iant@google.com>
15568
15569         * resource.c (mark_referenced_resources): Change
15570         include_delayed_effects parameter to bool.  Change all callers.
15571         (mark_end_of_function_resources): Likewise.
15572         * reorg.c (insn_references_resource_p): Likewise.
15573         (insn_sets_resource_p): Likewise.
15574         * resource.h (mark_referenced_resources): Update declaration.
15575         (mark_end_of_function_resources): Update declaration.
15576
15577 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
15578
15579         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
15580
15581 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
15582
15583         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
15584         GCC can bootstrap on AIX with GNU Binutils 2.20.
15585
15586 2009-06-16  Ian Lance Taylor  <iant@google.com>
15587
15588         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
15589
15590 2009-06-16  Ian Lance Taylor  <iant@google.com>
15591
15592         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
15593         inline, not extern inline.
15594         (exact_log2): Likewise.
15595         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
15596         test CLZ_HWI.
15597         (exact_log2): Likewise, but don't test CTZ_HWI.
15598
15599 2009-06-16  Ian Lance Taylor  <iant@google.com>
15600
15601         * bitmap.c (bitmap_clear): Don't declare as inline.
15602         * gimple.c (gimplify_assign): Likewise.
15603         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
15604         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
15605         (sched_scan_info): Remove duplicate definition.
15606
15607 2009-06-16  Ian Lance Taylor  <iant@google.com>
15608
15609         * c-common.c (skip_evaluation): Don't define.
15610         (c_inhibit_evaluation_warnings): Define global variable.
15611         (overflow_warning): Check c_inhibit_evaluation_warnings rather
15612         than skip_evaluation.
15613         (convert_and_check, warn_for_div_by_zero): Likewise.
15614         * c-common.h (skip_evaluation): Don't declare.
15615         (c_inhibit_evaluation_warnings): Declare.
15616         * c-parser.c (c_parser_typeof_specifier): Set
15617         c_inhibit_evaluation_warnings rather than skip_evaluation.
15618         (c_parser_conditional_expression): Likewise.
15619         (c_parser_binary_expression): Likewise.
15620         (c_parser_sizeof_expression): Likewise.
15621         (c_parser_alignof_expression): Likewise.
15622         * c-typeck.c (build_indirect_ref): Check
15623         c_inhibit_evaluation_warnings rather than skip_evaluation.
15624         (build_conditional_expr, build_binary_op): Likewise.
15625
15626 2009-06-16  Richard Guenther  <rguenther@suse.de>
15627
15628         * tree-ssa-alias.c (is_escape_site): Remove.
15629         * tree-ssa-alias.h (enum escape_type): Remove.
15630         (is_escape_site): Likewise.
15631         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
15632         via casts and asms without deferring to is_escape_site.
15633
15634 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
15635
15636         PR middle-end/40446
15637         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
15638         use gen_lowpart if op0 has complex mode.
15639
15640 2009-06-16  Richard Guenther  <rguenther@suse.de>
15641
15642         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
15643         variables add them to ESCAPED.
15644         (find_func_aliases): Do not make all indirectly stored values escaped.
15645
15646 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
15647
15648         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
15649         make_decl_one_only.
15650
15651 2009-06-16  Martin Jambor  <mjambor@suse.cz>
15652
15653         PR tree-optimization/40432
15654         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
15655         check whether we need to force gimple register operand.
15656
15657 2009-06-16  Martin Jambor  <mjambor@suse.cz>
15658
15659         PR tree-optimization/40413
15660         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
15661         build_ref_for_offset.
15662         (propagate_subacesses_accross_link): Fix a typo in a comment.
15663
15664 2009-06-16  Ira Rosen  <irar@il.ibm.com>
15665
15666         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
15667         with additional parameter.
15668         * tree-vectorizer.h (enum vect_def_type): Add new value
15669         vect_nested_cycle.
15670         (enum vect_relevant): Add comments.
15671         (vect_is_simple_reduction): Add new argument.
15672         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
15673         Detect nested cycles.
15674         (vect_is_simple_reduction): Update documentation, add an argument to
15675         distinguish inner-loop reduction from nested cycle, detect nested
15676         cycles, fix printings and indentation, don't swap operands in case
15677         of nested cycle.
15678         (get_initial_def_for_reduction): Handle subtraction.
15679         (vect_create_epilog_for_reduction): Add new argument to specify
15680         reduction variable.
15681         (vect_finalize_reduction): Handle subtraction, fix comments.
15682         (vectorizable_reduction): Handle nested cycles. In case of nested
15683         cycle keep track of the reduction variable position. Call
15684         vect_is_simple_reduction with additional parameter. Use original
15685         statement code in reduction epilogue for nested cycle. Call
15686         vect_create_epilog_for_reduction with additional parameter.
15687         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
15688         inner-loop vectorization.
15689         (vect_recog_widen_sum_pattern): Likewise.
15690         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
15691         and reductions.
15692         (vect_mark_stmts_to_be_vectorized): Likewise.
15693         (vect_get_vec_def_for_operand): Handle nested cycles.
15694
15695 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15696
15697         * doc/invoke.texi (Debugging Options): Fix option index entries
15698         for -fdump-statistics, -frandom-seed add entries for
15699         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
15700         (FRV Options): Fix entries for -mTLS, -mtls.
15701         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
15702         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
15703         (M68hc1x Options): Fix @itemx for -mnominmax.
15704         (MCore Options): Fix entry for -mno-lsim.
15705         (MMIX Options): Fix entry for -mabi=mmixware.
15706         (PDP-11 Options): Fix entry for -mbcopy-builtin.
15707
15708 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
15709
15710         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
15711         Mention the plugin mode of gengtype.
15712         * doc/gty.texi (Source Files Containing Type Information): Likewise.
15713         * gengtype.c: Updated copyright.
15714         (plugin_files, nb_plugin_files) Added new static variables.
15715         (measure_input_list) Care about plugin_files.
15716         (write_rtx_next): Added early return in plugin mode.
15717         (create_file): Updated copyright year in generated file. Added
15718         asserts.
15719         (oprintf): Added early return if NULL outf.
15720         (get_output_file_with_visibility): Care of plugin_files.
15721         (get_output_file_name): May return null.
15722         (write_local): Added early return.
15723         (put_mangled_filename): Ditto.
15724         (finish_root_table): Added check for base_files.
15725         (write_roots): Care about null when plugins.
15726         (main): Added plugin mode.
15727
15728 2009-06-15  Ian Lance Taylor  <iant@google.com>
15729
15730         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
15731         * gcov.c (read_count_file): Add braces around variables declared
15732         before label.
15733
15734         * c.opt (Wjump-misses-init): New warning.
15735         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
15736         -Wall and -Wc++-compat if not already set.
15737         (c_common_post_options): Clear warn_jump_misses_init if it was not
15738         set.
15739         * c-decl.c (struct c_binding): Change type field to a union with
15740         new label field.  Make it the first field in the struct.  Update
15741         references to type to use u.type instead.
15742         (struct c_spot_bindings): Define.
15743         (struct c_goto_bindings): Define.
15744         (c_goto_bindings_p): Define, along with VECs.
15745         (struct c_label_vars): Define.
15746         (struct c_scope): Add has_label_bindings field.
15747         (bind_label, set_spot_bindings): New static functions.
15748         (decl_jump_unsafe, update_spot_bindings): New static functions.
15749         (update_label_decls): New static function.
15750         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
15751         Update binding u.label field to shadowed field.
15752         (c_binding_start_stmt_expr): New function.
15753         (c_binding_end_stmt_expr): New function.
15754         (pushdecl): Don't call c_begin_vm_scope.
15755         (make_label): Add defining and p_label_vars parameters.  Change
15756         all callers.
15757         (lookup_label): Correct test for whether a label has not yet been
15758         defined.  Call bind_label rather than bind.
15759         (warn_about_goto): New static function.
15760         (lookup_label_for_goto): New function.
15761         (declare_label): Call bind_label rather than bind.
15762         (check_earlier_gotos): New static function.
15763         (define_label): Don't give errors about jumping into statement
15764         expressions or scopes of variably modified types.  Call
15765         set_spot_bindings and check_earlier_gotos.  Call bind_label
15766         instead of bind.  Don't set label_context_stack_se or
15767         label_context_stack_vm.
15768         (c_get_switch_bindings): New function.
15769         (c_release_switch_bindings): New function.
15770         (c_check_switch_jump_warnings): New function.
15771         (start_function): Don't set label_context_stack_se or
15772         label_context_stack_vm.
15773         (finish_function): Likewise.
15774         * c-typeck.c (label_context_stack_se): Don't define.
15775         (label_context_stack_vm): Don't define.
15776         (c_finish_goto_label): Call lookup_label_for_goto rather than
15777         lookup_label.  Don't give errors about jumping into a statement
15778         expression or the scope of a variably modified type.  Don't set
15779         label_context_stack_se or label_context_stack_vm.
15780         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
15781         fields.  Add bindings field.
15782         (c_start_case): Don't set deleted fields.  Set bindings field.
15783         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
15784         or blocked_vm.  Call c_check_switch_jump_warnings.
15785         (c_finish_case): Don't test blocked_stmt_expr field.  Call
15786         c_release_switch_bindings.
15787         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
15788         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
15789         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
15790         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
15791         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
15792         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
15793         (c_begin_vm_scope, c_end_vm_scope): Don't define.
15794         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
15795         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
15796         (C_DECL_UNJUMPABLE_VM): Don't define.
15797         (C_DECL_UNDEFINABLE_VM): Don't define.
15798         (struct c_label_list): Don't define.
15799         (struct c_label_context_se): Don't define.
15800         (struct c_label_context_vm): Don't define.
15801         (struct c_spot_bindings): Declare.
15802         (c_bindings_start_stmt_expr): Declare.
15803         (c_bindings_end_stmt_expr): Declare.
15804         (lookup_label_for_goto): Declare.
15805         (c_get_switch_bindings, c_release_switch_bindings): Declare.
15806         (c_check_switch_jump_warnings): Declare.
15807         (label_context_stack_se, label_context_stack_vm): Don't declare.
15808         (c_finish_goto_label): Update declaration.
15809         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
15810         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
15811         (Warning Options): Document -Wjump-misses-init.
15812
15813 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
15814
15815         * tree-object-size.c (addr_object_size): Fix a pasto in the last
15816         change.
15817
15818 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
15819
15820         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
15821
15822 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
15823
15824         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
15825
15826 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
15827
15828         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
15829
15830 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
15831
15832         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
15833         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15834         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
15835         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
15836         * dwarf2asm.c (dw2_force_const_mem): Update call to
15837         make_decl_one_only.
15838         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
15839         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
15840         * langhooks.c (lhd_comdat_group): Remove.
15841         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
15842         * tree.h (DECL_COMDAT_GROUP): New.
15843         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
15844         (tree_decl_with_vis): Add comdat_group. Remove one_only.
15845         (make_decl_one_only): Change signature.
15846         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
15847         make_decl_one_only.
15848         (make_decl_one_only): Change signature.
15849         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
15850
15851 2009-06-15  Richard Guenther  <rguenther@suse.de>
15852
15853         PR middle-end/40439
15854         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
15855
15856 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15857
15858         * tree-ssa-math-opts.c: Remove extra divide.
15859
15860 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15861
15862         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
15863
15864 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15865
15866         * passes.c: Add bswap pass.
15867         * tree-pass.h: Add pass_optimize_bswap declaration.
15868         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
15869         Include rtl.h, expr.h and optabs.h for optab_handler check.
15870         (struct symbolic_number, pass_optimize_bswap): New definition.
15871         (do_shift_rotate, verify_symbolic_number_p): New functions.
15872         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
15873         (gate_optimize_bswap): New function.
15874         * tree.c (widest_int_cst_value): New function.
15875         * tree.h (widest_int_cst_value): Prototype added.
15876
15877 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
15878
15879         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
15880         REG_EQUAL/REG_EQUIV notes.
15881
15882 2009-06-14  Richard Guenther  <rguenther@suse.de>
15883
15884         PR middle-end/40389
15885         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
15886         has its address taken if NRV was applied and it is addressable.
15887         * tree-ssa-structalias.c (get_constraint_for_address_of): New
15888         function split out from ...
15889         (get_constraint_for_1): ... here.
15890         (handle_rhs_call): Use it to mark the return slot escaped if
15891         it is addressable and NRV was applied.
15892
15893 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
15894
15895         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
15896         Change first argument type to location_t.
15897         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
15898         Do not set input_location.
15899         Use loc instead of input_location throughout.
15900
15901 2009-06-13  Richard Guenther  <rguenther@suse.de>
15902
15903         PR tree-optimization/40421
15904         * tree-predcom.c (should_unroll_loop_p): Remove.
15905         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
15906
15907 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15908
15909         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15910         Add location argument.
15911
15912 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
15913
15914         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
15915         build_decl.
15916         * config/s390/s390.c (s390_build_builtin_va_list): Same.
15917         (s390_gimplify_va_arg): Pass location to create_artificial_label.
15918         * config/spu/spu-protos.h: Add location to
15919         spu_resolve_overloaded_builtin.
15920         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
15921         spu_build_builtin_va_list.
15922         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
15923         argument.  Pass location to build_function_call_vec.
15924         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
15925         build_decl.
15926         (emit_fpu_switch): Same.
15927         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
15928         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
15929         to build_decl and create_artificial_label.
15930         (xtensa_gimplify_va_arg_expr): Same.
15931         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
15932         (xstormy16_gimplify_va_arg_expr): Same.
15933         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
15934         * config/arm/arm.c (arm_build_builtin_va_list): Same.
15935         * config/mips/mips.c (mips_build_builtin_va_list): Same.
15936         (mips16_build_function_stub): Same.
15937         (mips16_build_call_stub): Same.
15938
15939 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
15940
15941         PR target/40327
15942         * arm/constraints.md (Pa, Pb): New constraints.
15943         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
15944         split pattern to deal with them.
15945
15946 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
15947
15948         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
15949         fix index entry for -Xpreprocessor.
15950
15951 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
15952
15953         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15954         Add location argument to build_decl call.
15955         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
15956         (rs6000_init_builtins): Same.
15957         (spe_init_builtins): Same.
15958         (rs6000_gimplify_va_arg): Add location argument to
15959         create_artificial_label call.
15960
15961 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
15962
15963         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
15964         * combine-stack-adj.c (pass_stack_adjustments): Use it.
15965         * Makefile.in: Fix GGC dependency for gcse.o.
15966
15967 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
15968
15969         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
15970         * gimple-pretty-print.c (dump_gimple_stmt): Same.
15971         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
15972         created.
15973         * c-parser.c (c_parser_binary_expression): Use current column while
15974         building binary operations.
15975         * common.opt (fshow-column): Enable by default.
15976         * tree-vrp.c (check_array_ref): Use warning_at.
15977         (check_array_bounds): Use location from call back if expr has no
15978         location.
15979         * tree.h: Add location argument to maybe_fold_*.
15980         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
15981         (maybe_fold_offset_to_array_ref): Add location argument and use it.
15982         (maybe_fold_offset_to_component_ref): Same.
15983         (maybe_fold_offset_to_reference): Same.
15984         (maybe_fold_offset_to_address): Same.
15985         (maybe_fold_stmt_indirect): Same.
15986         (maybe_fold_stmt_addition): Same.
15987         (fold_stmt_r): Pass location to maybe_fold_*.
15988         (fold_gimple_assign): Same.
15989         * c-tree.h: Add location argument to finish_decl,
15990         default_function_array_conversion, store_init_value.
15991         * c-decl.c (define_label): Use error_at.
15992         (c_make_fname_decl): Pass location to finish_decl.
15993         (finish_decl): New location argument.
15994         (build_compound_literal): Pass location to store_init_value.
15995         (grokdeclarator): Pass location to finish_decl.
15996         (grokfield): Same.
15997         * c-typeck.c (array_to_pointer_conversion): New location argument.
15998         (function_to_pointer_conversion): Same.
15999         (default_function_array_conversion): Same.
16000         (parser_build_unary_op): Pass location to overflow_warning.
16001         (parser_build_binary_op): Same.  Use warning_at.
16002         (build_unary_op): Pass location to array_to_pointer_conversion.
16003         (build_c_cast): Pass location to digest_init.
16004         (build_modify_expr): New location argument.
16005         (convert_for_assignment): Same.
16006         (store_init_value): Same.
16007         (digest_init): Same.
16008         (output_init_element): Pass location to digest_init and
16009         array_to_pointer_conversion.
16010         (c_finish_return): Pass location to convert_for_assignment.
16011         * gimplify.c (gimplify_conversion): Pass location to
16012         maybe_fold_offset_to_address.
16013         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
16014         to maybe_fold_stmt_addition.
16015         * c-omp.c (c_finish_omp_atomic): Pass new location to
16016         build_modify_expr.
16017         (c_finish_omp_for): Same.
16018         * c-common.c (overflow_warning): New argument.
16019         * c-common.h: New argument to build_modify_expr, overflow_warning.
16020         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
16021         finish_decl.
16022         (c_parser_initializer): Pass location to
16023         default_function_array_conversion.
16024         (c_parser_initelt): Same.
16025         (c_parser_initval): Same.
16026         (c_parser_asm_operands): Same.
16027         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
16028         (c_parser_conditional_expression): Same.
16029         (c_parser_binary_expression): Add location info to stack.  Use it.
16030         (c_parser_unary_expression): Pass location to
16031         default_function_array_conversion, parser_build_unary_op,
16032         build_indirect_ref, c_parser_postfix_expression_after_primary.
16033         (c_parser_postfix_expression_after_primary): New location argument.
16034         Use it.
16035         (c_parser_expression_conv): Pass location to
16036         default_function_array_conversion.
16037         (c_parser_expr_list): Same.
16038         (c_parser_omp_atomic): Same.
16039         (c_parser_omp_for_loop): Same.
16040         * c-tree.h (struct c_declarator): Add comment to id_loc.
16041         (build_array_declarator): New argument.
16042         * c-decl.c (build_array_declarator): Add location argument.
16043         (grokdeclarator): Set id_loc for cdk_array.
16044         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
16045         build_array_declarator.
16046         * tree.c (build_omp_clause): Add location argument.
16047         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
16048         (OMP_CLAUSE_LOCATION): New macro.
16049         (struct tree_omp_clause): Add location field.
16050         (build_omp_clause): Add argument.
16051         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
16052         build_omp_clause.
16053         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
16054         (cp_parser_omp_clause_collapse): Same.
16055         (cp_parser_omp_clause_default): Same.
16056         (cp_parser_omp_clause_if): Same.
16057         (cp_parser_omp_clause_nowait): Same.
16058         (cp_parser_omp_clause_num_threads): Same.
16059         (cp_parser_omp_clause_ordered): Same.
16060         (cp_parser_omp_clause_schedule): Same.
16061         (cp_parser_omp_clause_untied): Same.
16062         (cp_parser_omp_for_loop): Same.
16063         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
16064         * c-tree.h (c_start_case): Add location argument.
16065         (c_process_expr_stmt): Same.
16066         (c_finish_goto_*): Same.
16067         * tree-parloops.c (initialize_reductions): Pass location to
16068         build_omp_clause.
16069         (create_parallel_loop): Same.
16070         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
16071         (gfc_trans_omp_reduction_list): Same.
16072         (gfc_trans_omp_clauses): Same.
16073         (gfc_trans_omp_do): Same.
16074         * c-typeck.c (c_finish_goto_label): Same.
16075         (c_finish_goto_ptr): New location argument.
16076         (c_start_case): Same.
16077         (emit_side_effect_warnings): Same.
16078         (c_process_expr_stmt): Same.
16079         (c_finish_stmt_expr): Same.
16080         (c_finish_omp_clauses): Use error_at instead of error.
16081         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
16082         build_omp_clause.
16083         * c-omp.c (c_split_parallel_clauses): New location argument.
16084         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
16085         to build_omp_clause.
16086         (convert_local_reference_stmt): Same.
16087         (convert_gimple_call): Same.
16088         * c-common.h (c_split_parallel_clauses): New argument.
16089         * c-parser.c (c_parser_statement_after_labels): Pass location to
16090         c_finish_goto_label.
16091         (c_parser_switch_statement): Pass location to c_start_case.
16092         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
16093         and c_process_expr_stmt.
16094         (c_parser_omp_variable_list): Add location argument.
16095         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
16096         (c_parser_omp_clause_default): Same.
16097         (c_parser_omp_clause_if): Same.
16098         (c_parser_omp_clause_num_threads): Same.
16099         (-c_parser_omp_clause_ordered): Same.
16100         (c_parser_omp_clause_reduction): Pass location to
16101         c_parser_omp_variable_list.
16102         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
16103         (c_parser_omp_clause_untied): Same.
16104         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
16105         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
16106
16107         * c-tree.h (check_for_loop_decls, undeclared_variable,
16108         build_component_ref, build_array_ref, build_external_ref,
16109         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
16110         build_conditional_expr, build_compound_expr, c_cast_expr,
16111         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
16112         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
16113         argument.
16114         * c-semantics.c (build_stmt): Same.
16115         (build_case_label): Same.
16116         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
16117         (undeclared_variable): New argument.
16118         (make_label): Same.
16119         (lookup_label): Pass location on down.
16120         (define_label): Same.
16121         (finish_decl): Same.
16122         (build_compound_literal): Same.
16123         (finish_struct): Same.
16124         (finish_function): Do not set location here.
16125         (check_for_loop_decls): New argument.
16126         * tree.c (save_expr): Set location.
16127         (build_empty_stmt): New argument.
16128         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
16129         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
16130         * builtins.c (gimplify_va_arg_expr): Use locations.
16131         (expand_builtin_sync_operation): Same.
16132         * c-typeck.c (build_component_ref): New argument.
16133         (build_array_ref): Same.
16134         (build_external_ref): Same.
16135         (c_expr_sizeof_expr): Same.
16136         (c_expr_sizeof_type): Same.
16137         (parser_build_unary_op): Same.
16138         (build_conditional_expr): Same.
16139         (build_compound_expr): Pass location on down.
16140         (build_compound_expr): New argument.
16141         (build_c_cast): Same.
16142         (c_cast_expr): Same.
16143         (build_asm_expr): Same.
16144         (c_finish_return): Same.
16145         (c_process_expr_stmt): Pass location on down.
16146         (c_finish_stmt_expr): New argument.
16147         (push_clenaup): Same.
16148         (c_finish_omp_parallel): Same.
16149         (c_finish_omp_task): Same.
16150         * gimplify.c (gimplify_call_expr): Pass location on down.
16151         * c-omp.c (c_finish_omp_master): New argument.
16152         (c_finish_omp_critical): Same.
16153         (c_finish_omp_ordered): Same.
16154         (c_finish_omp_barrier): Same.
16155         (-c_finish_omp_taskwait): Same.
16156         (c_finish_omp_atomic): Same.
16157         (c_finish_omp_flush): Same.
16158         * tree-inline.c (copy_tree_body_r): Pass location on down.
16159         (inline_forbidden_p): Remove use of input_location.
16160         * c-gimplify.c (c_build_bind_expr): New argument.
16161         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
16162         (c_sizeof_or_alignof_type): New argument.
16163         (c_alignof_expr): Same.
16164         (build_va_arg): Same.
16165         (c_add_case_label): Same.
16166         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
16167         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
16168         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
16169         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
16170         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
16171         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
16172         New argument.
16173         * stub-objc.c (objc_build_selector_expr): Same.
16174         (objc_build_throw_stmt): Same.
16175         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
16176         (c_parser_initelt): Same.
16177         (c_parser_compound_statement): Same.
16178         (c_parser_compound_statement_nostart): Same.
16179         (c_parser_label): Same.
16180         (c_parser_statement_after_labels): Same.
16181         (c_parser_if_body): Same.
16182         (c_parser_else_body): Same.
16183         (c_parser_if_statement): Same.
16184         (c_parser_switch_statement): Same.
16185         (c_parser_while_statement): Same.
16186         (c_parser_do_statement): Same.
16187         (c_parser_for_statement): Same.
16188         (c_parser_asm_statement): Same.
16189         (c_parser_conditional_expression): Same.
16190         (c_parser_binary_expression): Same.
16191         (c_parser_cast_expression): Same.
16192         (c_parser_unary_expression): Same.
16193         (c_parser_sizeof_expression): Same.
16194         (c_parser_alignof_expression): Same.
16195         (c_parser_postfix_expression): Same.
16196         (c_parser_expression): Same.
16197         (c_parser_objc_receiver): Same.
16198         (c_parser_omp_variable_list): Same.
16199         (c_parser_omp_structured_block): Same.
16200         (c_parser_omp_atomic): New argument.
16201         (c_parser_omp_barrier): Same.
16202         (c_parser_omp_critical): Same.
16203         (c_parser_omp_flush): Pass location on down.
16204         (c_parser_omp_for_loop): New argument.
16205         (c_parser_omp_for): Same.
16206         (c_parser_omp_master): Same.
16207         (c_parser_omp_ordered): Same.
16208         (c_parser_omp_sections_scope): Same.
16209         (c_parser_omp_sections): Same.
16210         (c_parser_omp_parallel): Same.
16211         (c_parser_omp_single): Same.
16212         (c_parser_omp_task): Same.
16213         (c_parser_omp_taskwait): Pass location on down.
16214         (c_parser_omp_construct): Same.
16215         (c_parser_omp_threadprivate): Same.
16216         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
16217         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
16218         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
16219         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
16220         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
16221         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
16222         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
16223         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
16224         config/i386/i386.c, stmt.c:
16225         Add location argument to the following function definitions and/or
16226         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
16227         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
16228         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
16229         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
16230         do_case, c_finish_bc_stmt, build_compound_literal,
16231         build_function_call.
16232         * c-decl.c (build_compound_literal): Add location argument.
16233         Make all diagnostic calls use location.
16234         (start_struct): Same.
16235         (finish_struct): Same.
16236         (start_enum): Same.
16237         (build_enumerator): Same.
16238         (start_function): Same.
16239         (grokdeclarator): Make all diagnostic calls use location.
16240         (store_parm_decls_oldstyle): Same.
16241         * c-typeck.c (build_function_call): Add location argument.
16242         Make all diagnostic calls use location.
16243         (do_case): Same.
16244         (c_finish_bc_stmt): Same.
16245         * tree-nested.c (get_trampoline_type): Add argument.
16246         Pass location to build_decl.
16247         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
16248         * rtl.h (RTL_LOCATION): New.
16249         * c-common.c (c_add_case_label): Add location argument.
16250         Make all diagnostic calls use location.
16251         * c-common.h: Add location argument to make_fname_decl, do_case,
16252         c_add_case_label, build_function_call, resolve_overloaded_builtin.
16253         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
16254         Set it appropriately for every case.  Pass enum_loc to start_enum
16255         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
16256         parser_xref_tag.
16257         (c_parser_struct_or_union_specifier): Save location.  Use it for
16258         start_struct, finish_struct, and parser_xref_tag.
16259
16260 2009-06-12  Ian Lance Taylor  <iant@google.com>
16261
16262         * fold-const.c (fold_unary): Rename local variable and to and_expr.
16263
16264         * c-opts.c (c_common_handle_option): For -Wc++-compat set
16265         cpp_opts->warn_cxx_operator_names.
16266
16267 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16268
16269         PR tree-opt/38865
16270         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
16271         is returns NULL and OP is a VCE, look through the VCE.
16272
16273 2009-06-12  Ian Lance Taylor  <iant@google.com>
16274
16275         PR bootstrap/40430
16276         * collect2.c (main): Use CONST_CAST2 in code inside #if
16277         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
16278
16279 2009-06-12  Joey Ye  <joey.ye@intel.com>
16280
16281         PR middle-end/39146
16282         * cfgexpand.c (get_decl_align_unit): Update
16283         max_used_stack_slot_alignment with align instead of
16284         stack_alignment_needed.
16285
16286         * function.c (assign_stack_local_1): Update
16287         max_used_stack_slot_alignment with alignment_in_bits instead
16288         of stack_alignment_needed.
16289         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
16290         here.
16291
16292 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
16293
16294         * dwarf2out.c (last_var_location_insn): New variable.
16295         (dwarf2out_end_epilogue): Clear last_var_location_insn.
16296         (dwarf2out_var_location): Don't record anything after last real
16297         insn.  Only change labels if there were any real instructions
16298         in between last note and this one, or if changed sections.
16299
16300 2009-06-11  Richard Henderson  <rth@redhat.com>
16301
16302         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
16303         note when storing the frame pointer in a register.
16304         (FRP): Don't redefine to nothing for epilogue.
16305         (alpha_expand_epilogue): Mark register and sp restores.
16306         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
16307
16308         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
16309         when gen_lowpart is needed.
16310
16311 2009-06-11  Richard Henderson  <rth@redhat.com>
16312
16313         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
16314
16315         * dwarf2out.c (need_data_align_sf_opcode): New.
16316         (div_data_align): Move earlier.
16317         (def_cfa_1, reg_save): Use it.
16318
16319 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
16320
16321         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
16322         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
16323         (ix86_handle_option): Handle OPT_mcrc32.
16324         (ix86_target_string): Add -mcrc32.
16325         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
16326
16327         * config/i386/i386.h (TARGET_CRC32): New.
16328
16329         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
16330         (sse4_2_crc32di): Likewise.
16331
16332         * config/i386/i386.opt (mcrc32): New.
16333
16334         * doc/invoke.texi: Document -mcrc32.
16335
16336 2009-06-11  Richard Henderson  <rth@redhat.com>
16337
16338         * common.opt (gdwarf-): Accept a version number.
16339         * doc/invoke.texi (gdwarf-): Update docs.
16340         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
16341         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
16342         version level, and record it.
16343
16344         * dwarf2.h (DW_CIE_VERSION): Remove.
16345         * dwarf2out.c (DWARF_VERSION): Remove.
16346         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
16347         (output_call_frame_info): Use CIE version 3 for dwarf3,
16348         or if the return register column is out of range for version 1.
16349         (dwarf_stack_op_name): Add all dwarf3 values.
16350         (DEBUG_PUBTYPES_SECTION): New.
16351         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
16352         encoding change for dwarf3.
16353         (output_die) [dw_val_class_die_ref]: Likewise.
16354         (output_compilation_unit_header): Emit correct version for dwarf3.
16355         (output_line_info): Likewise.
16356         (output_pubnames): Update for DWARF_VERSION removal.
16357         (output_aranges): Likewise.
16358         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
16359         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
16360         (dwarf2out_finish): Likewise.
16361
16362 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
16363
16364         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
16365         in r148403.
16366
16367 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
16368
16369         PR c/39252
16370         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
16371         * builtins.c (expand_builtin_unreachable): New function.
16372         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
16373         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
16374         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
16375         successors.
16376         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
16377         searching for missing barriers.
16378
16379 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16380
16381         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
16382         when -fprofile-generate* was passed.
16383         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
16384
16385 2009-06-11  Anthony Green  <green@moxielogic.com>
16386
16387         * config/moxie/moxie.md: Define length attribute for all instructions.
16388         (rCC): Define.
16389         (*b<cond:code>): Support limited branch ranges for new PC-relative
16390         branch instructions.
16391         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
16392
16393 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
16394
16395         * config/i386/i386.c (min_insn_size): Use get_attr_length
16396         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
16397         For __asm return 0.
16398
16399         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
16400         instead of emit_insn_before.
16401
16402 2009-06-10  Ian Lance Taylor  <iant@google.com>
16403
16404         PR bootstrap/40408
16405         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
16406         GIMPLE_SWITCH.
16407
16408 2009-06-10  Revital Eres  <eres@il.ibm.com>
16409
16410         * passes.c (init_optimization_passes): Reschedule
16411         predictive-commoning pass before complete unroll pass.
16412
16413 2009-06-10  Martin Jambor  <mjambor@suse.cz>
16414
16415         * cgraph.c (cgraph_node_can_be_local_p): New function.
16416         (cgraph_make_node_local): New function.
16417         * cgraph.h (cgraph_node_can_be_local_p): Declare.
16418         (cgraph_make_node_local): Declare.
16419
16420 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
16421
16422         * tree.h (tree_base): Add packed_flag and user_align fields.
16423         Decrease size of spare field.
16424         (TYPE_USER_ALIGN): Use user_align from tree_base.
16425         (DECL_USER_ALIGN): Likewise.
16426         (TYPE_PACKED): Use packed_flag from tree_base.
16427         (DECL_PACKED): Likewise.
16428         (tree_type): Delete packed_flag and user_align fields.  Widen
16429         precision field.  Widen mode field and shuffle fields to align
16430         mode on an 8-bit boundary.
16431         (tree_decl_common): Delete decl_flag_1 and user_align fields.
16432         Renumber decl_flag_* fields.  Fix comments.  Widen
16433         decl_common_unused field.
16434         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
16435         (DECL_EXTERNAL): Likewise.
16436         (DECL_BIT_FIELD): Likewise.
16437         (DECL_NONADDRESSABLE_P): Likewise.
16438         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
16439         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
16440
16441 2009-06-10  Ian Lance Taylor  <iant@google.com>
16442
16443         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
16444         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
16445         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
16446         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
16447         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
16448         DEF_VEC_ALLOC_FUNC_P.
16449         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
16450         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
16451         DEF_VEC_ALLOC_FUNC_O.
16452         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
16453         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
16454         DEF_VEC_ALLOC_FUNC_I.
16455         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
16456         (vec_stack_p_reserve_exact_1): Declare.
16457         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
16458         (vec_stack_free): Declare.
16459         (VEC_stack_alloc): Define.
16460         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
16461         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
16462         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
16463         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
16464         for void_p.
16465         (stack_vecs): New static variable.
16466         (vec_stack_p_reserve_exact_1): New function.
16467         (vec_stack_o_reserve_1): New static function.
16468         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
16469         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
16470         (vec_stack_free): New function.
16471         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
16472         (VEC_df_ref_stack_alloc): Define.
16473         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
16474         DEF_VEC_ALLOC_P_STACK.
16475         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
16476         (struct df_collection_rec): Change _vec fields to VEC.  Remove
16477         _use fields.
16478         (df_free_collection_rec): Adjust for new fields.
16479         (df_insn_rescan): Use new df_collection_rec fields.
16480         (df_notes_rescan, df_canonize_collection_rec): Likewise.
16481         (df_ref_create_structure, df_ref_record): Likewise.
16482         (df_get_conditional_uses, df_get_call_refs): Likewise.
16483         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
16484         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
16485         (df_record_exit_block_uses, df_bb_verify): Likewise.
16486         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
16487         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
16488         Remove count parameter.  Change return type to void.  Change all
16489         callers.
16490         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
16491         Remove count parameter.  Change return type to void.  Change all
16492         callers.
16493         (df_install_refs): Change old_vec parameter to VEC.  Remove count
16494         parameter.  Change all callers.
16495         (df_install_mws): Change old_vec parameter to VEC.  Remove count
16496         parameter.  Change all callers.
16497         (df_refs_verify): Change new_rec parameter to VEC.  Change call
16498         callers.
16499         (df_mws_verify): Likewise.
16500
16501 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
16502
16503         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
16504
16505 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
16506
16507         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
16508
16509 2009-06-10  Anthony Green  <green@moxielogic.com>
16510
16511         * config/moxie/crti.asm: New file.
16512         * config/moxie/crtn.asm: New file.
16513         * config/moxie/moxie.c: New file.
16514         * config/moxie/moxie.h: New file.
16515         * config/moxie/sfp-machine.h: New file.
16516         * config/moxie/moxie-protos.h: New file.
16517         * config/moxie/t-moxie: Created.
16518         * config/moxie/t-moxie-softfp: Created.
16519         * config/moxie/moxie.md: Created.
16520         * config/moxie/constraints.md: Created.
16521         * config.gcc: Add moxie support.
16522         * doc/md.texi (Machine Constraints): Add moxie constraints.
16523         * doc/contrib.texi (Contributors): Mention moxie port.
16524         * doc/install.texi (Specific): Mention the moxie port.
16525
16526 2009-06-09  Ian Lance Taylor  <iant@google.com>
16527
16528         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
16529         compiling with C++.
16530         * optabs.c (optab_table): Only use designated initializers if
16531         HAVE_DESIGNATED_INITIALIZERS is defined.
16532         (convert_optab_table): Likewise.
16533         (init_optabs): Always call init_insn_codes if
16534         HAVE_DESIGNATED_INITIALIZERS is not defined.
16535
16536 2009-06-09  Ian Lance Taylor  <iant@google.com>
16537
16538         * targhooks.c (default_builtin_vectorized_function): Change fn
16539         parameter to unsigned int.
16540         (default_builtin_vectorized_conversion): Change code parameter to
16541         unsigned int.
16542         (default_builtin_reciprocal): Change fn parameter to unsigned int.
16543         * targhooks.h: Update declarations.
16544         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
16545         parameter to unsigned int.
16546
16547         * c-typeck.c (comptypes_check_enum_int): New static function.
16548         (comptypes_internal): Add enum_and_int_p parameter.  Change all
16549         callers.
16550         (comp_target_types): Add location parameter.  Change all callers.
16551         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
16552         Change all callers.
16553         (function_types_compatible_p, type_lists_compatible_p): Likewise.
16554         (build_conditional_expr): Add colon_loc parameter.  Change all
16555         callers.
16556         (convert_for_assignment): Add location parameter.  Change all callers.
16557         * c-parser.c (c_parser_conditional_expression): Pass location of
16558         colon to build_conditional_expr.
16559         * c-tree.h (build_conditional_expr): Update declaration.
16560
16561 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
16562
16563         * graphite.c: Revert previous patch.
16564
16565 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
16566
16567         PR bootstrap/40103
16568         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
16569
16570 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
16571
16572         * tree-ssa-loop-prefetch.c
16573         (loop_prefetch_arrays): Fixed a portability problem in printf format
16574         string.
16575
16576 2009-06-09  Martin Jambor  <mjambor@suse.cz>
16577
16578         PR tree-optimization/40351
16579         * tree-sra.c (propagate_subacesses_accross_link): Check that a
16580         refrence to a potential artifical subaccess can be constructed.
16581
16582 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
16583
16584         * config/sh/sh-protos.h (sh_optimization_options): Declare.
16585         (sh_override_options): Likewise.
16586         * config/sh/sh.c: Include params.h.
16587         (sh_optimization_options): New.
16588         (sh_override_options): Likewise.
16589         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
16590         (OVERRIDE_OPTIONS): Use sh_override_options.
16591
16592 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
16593
16594         * dwarf2out.c (emit_cfa_remember): New variable.
16595         (add_fde_cfi): If emit_cfa_remember, recurse to add
16596         DW_CFA_remember_state first.
16597         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
16598         instead just set emit_cfa_remember.
16599
16600 2009-06-08  Jan Hubicka  <jh@suse.cz>
16601
16602         PR debug/40126
16603         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
16604
16605 2009-06-08  Jan Hubicka  <jh@suse.cz>
16606
16607         PR middle-end/39834
16608         * cgraphunit.c (save_inline_function_body): Do not copy transform
16609         hooks for saved inline bodies.
16610         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
16611         for given function.
16612
16613 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
16614
16615         * jump.c (returnjump_p): Handle delayed branches.  Add missing
16616         function comment.
16617
16618 2009-06-08  Jan Hubicka  <jh@suse.cz>
16619
16620         PR middle-end/40102
16621         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
16622         original node might've been modified.
16623         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
16624
16625 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
16626
16627         * tree-object-size.c (addr_object_size): Add OSI argument.
16628         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
16629         (compute_builtin_object_size, expr_object_size): Adjust callers.
16630         (plus_stmt_object_size): Call addr_object_size instead of
16631         compute_builtin_object_size.
16632
16633 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
16634             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
16635
16636         * tree-ssa-loop-prefetch.c
16637         (gather_memory_references): Introduced a counter for the number of
16638         memory references.
16639         (anything_to_prefetch_p): Introduced a counter for the number of
16640         prefetches.
16641         (is_loop_prefetching_profitable): New function with a cost model
16642         for prefetching.
16643         (loop_prefetch_arrays): Use the new cost model to determine if
16644         prefetching is profitable.
16645         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
16646         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
16647         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
16648         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
16649         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
16650         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
16651
16652 2009-06-08  Michael Matz  <matz@suse.de>
16653
16654         PR debug/40012
16655         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
16656         partitions use the same.
16657         (expand_one_var): Deal with DECL_RTL sometimes begin set also
16658         for basevars of SSA_NAMEs.
16659         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
16660         to not expand them twice.
16661         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
16662         multiple places.
16663
16664 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
16665
16666         * common.opt (fcompare-debug=, fcompare-debug-second): New.
16667         (fdump-final-insns=, gtoggle): New.
16668         * doc/invoke.texi: Document them.
16669         * final.c (rest_of_clean_state): Dump final insn stream.
16670         * gcc.c (invoke_as): Hook in -fcompare-debug.
16671         (static_spec_functions): Add compare-debug-dump-opt,
16672         compare-debug-self-opt and compare-debug-auxbase-opt.
16673         (compare_debug, compare_debug_second, compare_debug_opt): New.
16674         (switches_debug_check, n_switches_debug_check): New.
16675         (debug_auxbase_opt, debug_check_temp_file): New.
16676         (process_command): Handle -fno-compare-debug, -fcompare-debug and
16677         -fcompare-debug=*.
16678         (do_self_spec): Handle arguments after switches.
16679         (do_spec_1): Add .gk extension to temp file basenames for compare.
16680         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
16681         (cc1_options): Use it instead of normal auxbase computation for
16682         the second compare-debug compilation.
16683         (compare_files): New.
16684         (main): Set up and implement compare debug mode.
16685         (compare_debug_dump_opt_spec_function): New.
16686         (compare_debug_self_opt_spec_function): New.
16687         (compare_debug_auxbase_opt_spec_function): New.
16688         * toplev.c (process_options): Handle flag_gtoggle,
16689         flag_dump_final_insns.
16690         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
16691         during -fcompare-debug-second compilation.
16692
16693 2009-06-07  Ian Lance Taylor  <iant@google.com>
16694
16695         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
16696         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
16697
16698         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
16699         with no default node.  Change warning with %H to warning_at.
16700         Don't clear warn_switch around case checking.
16701         * doc/invoke.texi (Warning Options): Clarify distinction between
16702         -Wswitch and -Wswitch-enum.
16703
16704 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16705
16706         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
16707
16708 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16709
16710         * gbl-ctors.h: Add header guard.
16711
16712 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16713
16714         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
16715         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
16716         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
16717         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
16718         prototypes for removed functions.
16719         (expressions_equal_p): Move to ...
16720         * tree-ssa-sccvn.h: ... here and ...
16721         * matrix-reorg.c: ... adjust includes.
16722
16723 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16724
16725         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
16726
16727 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16728
16729         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
16730         (finish_function): Remove erroneous whitespace.
16731
16732 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16733
16734         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
16735         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
16736
16737 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16738
16739         * errors.c (internal_error): Commentary typo fix.
16740         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
16741         * tree-ssa-pre.c: Ditto.
16742
16743 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16744
16745         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
16746         them is supposed to hold actual statements.
16747
16748 2009-06-06  Ian Lance Taylor  <iant@google.com>
16749
16750         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
16751         empty statements can now have attributes.
16752
16753 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
16754
16755         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
16756         * config/mips/mips.md: Ditto.
16757
16758 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
16759
16760         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
16761         _RELOCATABLE.
16762         (__eabi_uconvert): Likewise.
16763
16764 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
16765
16766         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
16767         CFI_* definitions with IN_GCC.
16768
16769 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
16770
16771         * xcoffout.h (xcoffout_source_line): Update prototype.
16772
16773 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16774
16775         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
16776         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
16777
16778 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
16779
16780         PR middle-end/40340
16781         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
16782         inlined_function_outer_scope_p blocks for artificial inlines
16783         even at -g0/-g1.
16784         * tree.c (tree_nonartificial_location): Rewrite using
16785         block_nonartificial_location.
16786
16787 2009-06-05  Revital Eres  <eres@il.ibm.com>
16788             Leehod Baruch  <leehod@il.ibm.com>
16789
16790         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
16791         (expand_expr_real_1): Remove comment.
16792         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16793         Vectorize misaligned access when the target supports it.
16794         (vect_supportable_dr_alignment): Check for unaligned access support.
16795         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
16796         and remove asset.
16797
16798 2009-06-05  Julian Brown  <julian@codesourcery.com>
16799
16800         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
16801         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
16802
16803 2009-06-05  Richard Guenther  <rguenther@suse.de>
16804
16805         PR bootstrap/40350
16806         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
16807         as possibly unused.
16808
16809 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
16810
16811         * config/s390/s390.c (global_not_special_regno_p): New static inline.
16812         (save_gprs): Don't tell unwinder when a global register is saved.
16813         (s390_emit_epilogue): Emit needed epilogue unwind info.
16814
16815 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
16816
16817         * dwarf2out.c (deferred_asm_name): New.
16818         (add_name_and_src_coords_attributes): Defer creation of
16819         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
16820         computed yet.
16821         (move_linkage_attr): New.
16822         (dwarf2out_finish): Revisit deferrals and emit attributes at the
16823         right place.
16824
16825 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
16826
16827         * tree-nested.c (finalize_nesting_tree_1): Declare the
16828         frame_decl in the binding tree.
16829
16830 2009-06-04  Cary Coutant  <ccoutant@google.com>
16831
16832         * basic-block.h (struct basic_block_def): Add discriminator field.
16833         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
16834         callers.
16835         * debug.c (do_nothing_debug_hooks): Add additional entry.
16836         (debug_nothing_int_charstar_int): New function.
16837         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
16838         (debug_nothing_int_charstar_int): New declaration.
16839         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
16840         discriminator value in .loc directive.
16841         * final.c (last_discriminator): New variable.
16842         (discriminator): New variable.
16843         (final_start_function): Initialize above variables, pass current
16844         discriminator to debug hook.
16845         (notice_source_line): Check for discriminator change.
16846         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
16847         * sdbout.c (sdbout_source_line): New parameter.
16848         * tree-cfg.c (struct locus_discrim_map): New structure type.
16849         (discriminator_per_locus): New hash table.
16850         (build_gimple_cfg): Allocate and free discriminator hash table.
16851         (make_edges): Call assign_discriminator.
16852         (locus_map_hash): New function.
16853         (locus_map_eq): New function.
16854         (next_discriminator_for_locus): New function.
16855         (same_line_p): New function.
16856         (assign_discriminator): New function.
16857         (make_cond_expr_edges): Call assign_discriminator.
16858         (make_gimple_switch_edges): Likewise.
16859         (first_non_label_stmt): New function.
16860         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
16861         all callers.
16862         * xcoffout.c (xcoffout_source_line): Add new parameter.
16863
16864         * configure.ac (gcc_cv_as_discriminator): New configury check for
16865         gas support for discriminator.
16866         * configure: Regenerate.
16867         * config.in: Regenerate.
16868
16869 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16870
16871         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
16872         val after checking for integers.
16873
16874 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
16875
16876         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
16877         X64_REGPARM_MAX.
16878         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
16879         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
16880         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
16881         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
16882         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
16883         X64_SSE_REGPARM_MAX.
16884         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
16885         X64_SSE_REGPARM_MAX.
16886
16887 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
16888
16889         * gcc.c (report_times_to_file): New.
16890         (execute): Implement it.
16891         (process_command): Support -time=.
16892         * doc/invoke.texi: Document it.
16893
16894 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
16895
16896         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
16897         that have value exprs.
16898
16899 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
16900
16901         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
16902         declarations for constants until...
16903         (dw2_output_indirect_constant_1): ... this point.
16904
16905 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
16906
16907         PR target/10242
16908         * arm.md (arm_addsi3): Don't try to split an add with an
16909         eliminable register until after reload has completed.
16910
16911 2009-06-03  Ian Lance Taylor  <iant@google.com>
16912
16913         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
16914         * genattrtab.c (write_length_unit_log): Likewise.
16915         * genchecksum.c (dosum): Likewise.
16916         * gengtype.c (write_rtx_next): Likewise.
16917         (finish_root_table, write_roots): Likewise.
16918         * gimple.c (gimple_ops_offset_): Likewise.
16919         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
16920         * config/arc/arc.c (arc_attribute_table): Likewise.
16921         * config/arm/arm.c (arm_attribute_table): Likewise.
16922         * config/avr/avr.c (avr_attribute_table): Likewise.
16923         * config/crx/crx.c (crx_attribute_table): Likewise.
16924         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
16925         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
16926         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
16927         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
16928         * config/sh/sh.c (sh_attribute_table): Likewise.
16929         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
16930         * config/spu/spu.c (spu_attribute_table): Likewise.
16931         * config/v850/v850.c (v850_attribute_table): Likewise.
16932
16933         * config/alpha/alpha.c (vms_attribute_table): Make static.
16934         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
16935         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
16936         * config/mips/mips.c (mips_attribute_table): Likewise.
16937
16938         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
16939         $(SYSTEM_H).
16940         (cc1-checksum.o): Likewise.
16941
16942 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
16943
16944         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
16945
16946 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
16947
16948         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
16949         insn if it is changing sp.  Use gen_add3_insn instead of
16950         conditionally gen_addsi3 and gen_adddi3.
16951         (offset_below_red_zone_p): New static inline function.
16952         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
16953         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
16954         * config/rs6000/ppc-asm.h: Include auto-host.h.
16955         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
16956         CFI_RESTORE): Define.
16957         * config/rs6000/crtresxgpr.asm: Add unwind info.
16958         * config/rs6000/crtresxfpr.asm: Likewise.
16959         * config/rs6000/crtresgpr.asm: Likewise.
16960         * config/rs6000/crtresfpr.asm: Likewise.
16961         * config/rs6000/crtsavgpr.asm: Likewise.
16962         * config/rs6000/crtsavfpr.asm: Likewise.
16963
16964         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
16965         argument of DWARF2_FRAME_REG_OUT macros.
16966
16967 2009-06-03  Julian Brown  <julian@codesourcery.com>
16968
16969         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
16970         words or less (including TImode) in core registers.
16971
16972 2009-06-03  Richard Guenther  <rguenther@suse.de>
16973
16974         PR middle-end/40328
16975         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
16976
16977 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
16978
16979         * statistics.c (statistics_counter_event): Do not record event
16980         in pass dump if its number == -1.
16981         (curr_statistics_hash): Add assert that we never get passes
16982         with static number == -1.
16983
16984 2009-06-03  Richard Guenther  <rguenther@suse.de>
16985             Andrey Belevantsev  <abel@ispras.ru>
16986
16987         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
16988         non-BLKmode arrays addressable.
16989
16990 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
16991
16992         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
16993         * config/m68k/m68k.h: ... here.
16994
16995 2009-06-03  Martin Jambor  <mjambor@suse.cz>
16996
16997         PR tree-optimization/40323
16998         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
16999         assignment.
17000
17001 2009-06-03  Richard Guenther  <rguenther@suse.de>
17002
17003         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
17004         consistently.
17005
17006 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
17007
17008         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
17009         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
17010         JUMP_TABLE_DATA_P where applicable.
17011         * config/sh/sh.c: Ditto.
17012         * config/sh/sh.h: Ditto.
17013         * config/sh/sh.md: Ditto.
17014         * config/sh/symbian.c: Ditto.
17015
17016 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
17017
17018         * config/i386/driver-i386.c (describe_cache): Optimize
17019         concatenation of strings.  Use snprintf instead of sprintf.
17020         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
17021         target when not compiling with GCC.
17022
17023 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
17024
17025         * config/sh/sh.c: Revert last change.
17026         (sh_expand_epilogue): Emit a blockage insn before the frame
17027         pointer adjustment unconditionally.
17028
17029 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
17030
17031         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
17032         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
17033         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
17034         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
17035         to COLLECT_GCC_OPTIONS.
17036
17037 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
17038
17039         * collect2.c (target_system_root): New variable.
17040         (main): Handle --sysroot=.
17041         (ignore_library): Strip the sysroot from the library path.
17042
17043 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
17044
17045         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
17046         (collect2.o): Depend on collect2-aix.h.
17047         (collect2-aix.o): New rule.
17048         * collect2-aix.h: New file.
17049         * collect2-aix.c: Likewise.
17050         * collect2.c: Include collect2-aix.h.  Don't undefine
17051         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
17052         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
17053         Use TARGET_AIX_VERSION instead of _AIX51.
17054         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
17055         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
17056         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
17057         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
17058         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
17059
17060 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
17061
17062         * collect2.c (ignore_library): Avoid premature post-increment
17063         and null deference.
17064
17065 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
17066
17067         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
17068         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
17069         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
17070         CROSS_DIRECTORY_STRUCTURE too.
17071         (LINK_LIBG_SPEC): Likewise.
17072         (LIB_SPEC): Add %R to sysroot paths.
17073         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
17074         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
17075         * config/rs6000/aix51.h: As for aix43.h.
17076         * config/rs6000/aix52.h: Likewise.
17077         * config/rs6000/aix53.h: Likewise.
17078         * config/rs6000/aix61.h: Likewise.
17079         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
17080         to the beginning of sysroot paths.
17081
17082 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
17083
17084         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
17085         INSN_LISTs that are out of the REG_NOTE range.
17086
17087 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
17088
17089         * loop-unroll.c (struct iv_to_split): Add pointer to next.
17090         (struct var_to_expand): Likewise.
17091         (struct opt_info): Add head and tail for linked lists of the above.
17092         (analyze_insn_to_expand_var): Initialize next.
17093         (analyze_iv_to_split_insn): Likewise.
17094         (analyze_insns_in_loop): Create linked lists.
17095         (allocate_basic_variable): Simplify for use without hash table.
17096         (insert_var_expansion_initialization): Likewise, make it type-safer.
17097         (combine_var_copies_in_loop_exit): Likewise.
17098         (apply_opt_in_copies): Walk lists rather than hash tables.
17099         (release_var_copies): Simplified and inlined by hand into...
17100         (free_opt_info): ... this function.
17101
17102 2009-06-02  Richard Guenther  <rguenther@suse.de>
17103
17104         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
17105         for field decls.
17106
17107 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
17108
17109         * cfgexpand.c (gimple_expand_cfg): Discard the source location
17110         only for builtins that are not overridden.
17111
17112 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
17113
17114         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
17115         label string.
17116
17117 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
17118
17119         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
17120
17121 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
17122
17123         * combine.c (move_deaths): Compare LUIDs within the same BB only.
17124
17125 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
17126
17127         * common.opt (fdump-unnumbered-links): New.
17128         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
17129         * print-rtl.c (flag_dump_unnumbered_links): New.
17130         (print_rtx): Test it.
17131
17132 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
17133
17134         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
17135         push/pop multiple to 8-byte alignment.
17136
17137 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
17138
17139         * config/i386/i386.c (queued_cfa_restores): New static variable.
17140         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
17141         functions.
17142         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
17143         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
17144         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
17145         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
17146         note unconditionally.
17147         (ix86_emit_restore_regs_using_mov): Likewise.
17148         (ix86_emit_restore_sse_regs_using_mov): Likewise.
17149         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
17150         it through to ix86_emit_restore_reg_using_pop.
17151         (ix86_emit_leave): Add RED_OFFSET argument.  Call
17152         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
17153         instead of adding REG_CFA_OFFSET note unconditionally.
17154         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
17155         the above functions.  Call ix86_add_queued_cfa_restore_notes when
17156         needed.
17157
17158         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
17159         force output of the label even for dwarf2out_do_cfi_asm.
17160         (add_fde_cfi): If -g2 and above and cfi might change CFA,
17161         force creation of CFI label and chain DW_CFA_set_loc jumping to it
17162         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
17163         caller.
17164         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
17165         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
17166         dwarf2out_cfi_label callers.
17167         * tree.h (dwarf2out_cfi_label): Adjust prototype.
17168         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
17169         Adjust dwarf2out_cfi_label callers.
17170         * config/vax/vax.c (vax_output_function_prologue): Likewise.
17171
17172         * config/i386/i386.h (struct machine_cfa_state,
17173         struct machine_function): Guard with ifndef USED_FOR_TARGET
17174         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
17175
17176         PR other/40024
17177         * emutls.c (__emutls_get_address): Change arr->size to mean number
17178         of allocated arr->data entries instead of # of slots + 1.
17179
17180         PR middle-end/40316
17181         * recog.c (peep2_reinit_state): New function.
17182         (peephole2_init_state): Use it at the end of a basic block and also
17183         when seeing a RTX_FRAME_RELATED_P insn.
17184
17185 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
17186
17187         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
17188         fixuns_truncrfdi2): New.
17189         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
17190         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
17191         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
17192         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
17193         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
17194         *recip_approx): Remove.
17195         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
17196         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
17197         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
17198         move to div.md.
17199         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
17200         setf_exp_rf): New.
17201
17202 2009-06-01  Ian Lance Taylor  <iant@google.com>
17203
17204         * attribs.c (register_attribute): Use CONST_CAST.
17205         * collect2.c (main): Use CONST_CAST2.
17206         (scan_prog_file): Likewise.
17207         * gcc.c (process_command, main): Likewise.
17208         * toplev.c (toplev_main): Likewise.
17209
17210         * c-typeck.c (handle_warn_cast_qual): New static function,
17211         partially broken out of build_c_cast.
17212         (build_c_cast): Call handle_warn_cast_qual.
17213         * doc/invoke.texi (Warning Options): Document new effect of
17214         -Wcast-qual.
17215
17216 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
17217
17218         * diagnostic.c (diagnostic_build_prefix): Always print columns.
17219         (diagnostic_report_current_module): Print columns.
17220         * common.opt (flag_show_column): Enable by default.
17221
17222 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
17223
17224         * alias.c (find_base_term): Check for NULL term before returning.
17225
17226 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
17227
17228         Revert due to PR40320:
17229         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
17230         * calls.c (emit_library_call_value_1): Don't force_operand for move
17231         and push insns.
17232
17233 2009-06-01  Olivier Hainque  <hainque@adacore.com>
17234             Eric Botcazou  <ebotcazou@adacore.com>
17235
17236         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
17237         to be processed as a bitfield for constructor output purposes.
17238         * output.h (initializer_constant_valid_for_bitfield_p): Declare
17239         new function.
17240         * varasm.c (oc_local_state): New type, output_constructor
17241         local state to support communication with helpers.
17242         (oc_outer_state): New type, output_constructor outer state of
17243         relevance in recursive calls.
17244         (output_constructor_array_range): New output_constructor helper,
17245         extracted code for an array range element.
17246         (output_constructor_regular_field): New output_constructor helper,
17247         extracted code for an element that is not a bitfield.
17248         (output_constructor_bitfield): New output_constructor helper,
17249         extracted code for a bitfield element.  Accept an OUTER state
17250         argument for recursive processing.  Recurse on record or array
17251         CONSTRUCTOR values, possibly past noop conversions.
17252         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
17253         VALUE is a valid constant-valued expression for use in a static
17254         bit-field initializer.
17255         (output_constructor): Rework to use helpers.  Accept and honor an
17256         OUTER state argument for recursive calls.  Return total size.  Be
17257         prepared for nested constructors initializing bitfields.
17258         (output_constant): Feed OUTER in calls to output_constructor.
17259
17260 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
17261
17262         * calls.c (emit_library_call_value_1): Don't force_operand for move
17263         and push insns.
17264
17265 2009-06-01  Nick Clifton  <nickc@redhat.com>
17266
17267         * doc/invoke.texi (IA-64 Options): Fix typo.
17268
17269 2009-06-01  Ira Rosen  <irar@il.ibm.com>
17270
17271         PR tree-optimization/39129
17272         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
17273         printed message.
17274         (vect_do_peeling_for_loop_bound): Use
17275         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
17276         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
17277         (vect_loop_versioning): Likewise.
17278         (vect_create_cond_for_alias_checks): Fix indentation.
17279         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
17280         macros.
17281         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
17282         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
17283         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
17284         "control flow in loop".
17285         (vect_estimate_min_profitable_iters): Use
17286         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
17287         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
17288         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
17289         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
17290         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
17291         statement belongs to a group of strided accesses with the exact code
17292         check.
17293         (vectorizable_load): Likewise.
17294         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
17295         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
17296
17297 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
17298
17299         * config/freebsd-stdint.h: New file.
17300         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
17301         Add freebsd-stdint.h to tm_file.
17302
17303 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
17304
17305         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
17306         (thumb2_extendhidi2): Likewise.
17307
17308 2009-05-31  Ian Lance Taylor  <iant@google.com>
17309
17310         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
17311
17312 2009-05-31  Ian Lance Taylor  <iant@google.com>
17313
17314         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
17315         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
17316         (ipa-reference.o): Depend upon gt-ipa-reference.h.
17317
17318 2009-05-31  Jason Merrill  <jason@redhat.com>
17319
17320         * tree-pretty-print.c (print_call_name): Take the callee, not the
17321         call itself.  Make non-static.  Use dump_function_name for functions.
17322         (dump_generic_node): Adjust.
17323         * diagnostic.h: Declare print_call_name.
17324         * gimple-pretty-print.c (dump_gimple_call): Use it.
17325
17326 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
17327
17328         * config/sh/sh.md (ashldi3_std): New define_expand.
17329         (ashldi3): Use it.
17330
17331 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
17332
17333         PR target/40313
17334         * config/sh/sh.c: Include debug.h.
17335         (sh_expand_epilogue): Emit a blockage insn before the frame
17336         pointer adjustment also when dwarf2out_do_frame returns true.
17337
17338 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
17339
17340         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
17341         (thumb2_extendqidi2): New pattern.
17342
17343 2009-05-31  Ira Rosen  <irar@il.ibm.com>
17344
17345         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
17346         mark phis for renaming.
17347         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
17348         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
17349         Call mark_sym_for_renaming.
17350         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
17351         * tree-vect-loop.c (vect_transform_loop): Remove
17352         vect_memsyms_to_rename initialization and a call to
17353         mark_set_for_renaming.
17354
17355 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
17356
17357         PR middle-end/40304
17358         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
17359         frame related even if !set_cfa && style < 0.
17360
17361 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
17362
17363         * config/i386/mingw-tls.c: New file.
17364         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
17365         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
17366         defining _WIN32 but not __CYGWIN__.
17367
17368 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17369
17370         * configure.ac: Add MPC support.
17371
17372         * config.in, configure: Regenerate.
17373
17374 2009-05-29  Richard Henderson  <rth@redhat.com>
17375
17376         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
17377         NOTE_INSN_BASIC_BLOCK.
17378         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
17379         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
17380         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
17381         to be deleted.
17382         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
17383         add in_use field.
17384         (add_cfi): Disable check redefining cfa away from drap.
17385         (lookup_cfa_1): Add remember argument; handle remember/restore.
17386         (lookup_cfa): Pass remember argument.
17387         (cfa_remember): New.
17388         (compute_barrier_args_size_1): Remove sibcall check.
17389         (dwarf2out_frame_debug_def_cfa): New.
17390         (dwarf2out_frame_debug_adjust_cfa): New.
17391         (dwarf2out_frame_debug_cfa_offset): New.
17392         (dwarf2out_frame_debug_cfa_register): New.
17393         (dwarf2out_frame_debug_cfa_restore): New.
17394         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
17395         (dwarf2out_begin_epilogue): New.
17396         (dwarf2out_frame_debug_restore_state): New.
17397         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
17398         DW_CFA_restore_state.
17399         (output_cfi_directive): Likewise.
17400         (convert_cfa_to_fb_loc_list): Likewise.
17401         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
17402         * dwarf2out.h: Update.
17403         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
17404         (copy_insn_1): Early out for null.
17405         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
17406         and dwarf2out_frame_debug_restore_state.
17407         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
17408         (prologue_insn_hash, epilogue_insn_hash): New.
17409         (free_after_compilation): Adjust freeing accordingly.
17410         (record_insns): Create hash table if needed; push insns into
17411         hash instead of array.
17412         (maybe_copy_epilogue_insn): New.
17413         (contains): Search hash table instead of array.
17414         (sibcall_epilogue_contains): Remove.
17415         (thread_prologue_and_epilogue_insns): Split eh_return insns
17416         and mark them as epilogues.
17417         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
17418         scanning in terms of basic blocks.
17419         * insn-notes.def (CFA_RESTORE_STATE): New.
17420         * jump.c (returnjump_p_1): Accept EH_RETURN.
17421         (eh_returnjump_p_1, eh_returnjump_p): New.
17422         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
17423         CFA_REGISTER, CFA_RESTORE): New.
17424         * rtl.def (EH_RETURN): New.
17425         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
17426
17427         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
17428         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
17429
17430         * config/i386/i386.c (gen_push): Update cfa state.
17431         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
17432         add a CFA_ADJUST_CFA note.
17433         (ix86_dwarf_handle_frame_unspec): Remove.
17434         (ix86_expand_prologue): Update cfa state.
17435         (ix86_emit_restore_reg_using_pop): New.
17436         (ix86_emit_restore_regs_using_pop): New.
17437         (ix86_emit_leave): New.
17438         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
17439         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
17440         * config/i386/i386.h (struct machine_cfa_state): New.
17441         (ix86_cfa_state): New.
17442         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
17443         (eh_return_internal): Merge from eh_return_<mode>,
17444         use eh_return rtx, split w/ epilogue.
17445
17446 2009-05-29  Ian Lance Taylor  <iant@google.com>
17447
17448         * builtins.c (validate_gimple_arglist): Don't use va_arg with
17449         enum type.
17450         * calls.c (emit_library_call_value_1): Likewise.
17451
17452         * c-typeck.c (c_build_va_arg): New function.
17453         * c-tree.h (c_build_va_arg): Declare.
17454         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
17455         instead of build_va_arg.
17456
17457 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
17458
17459         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
17460         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
17461         (ptr_difference_cost): Use affine combinations to compute it.
17462         (difference_cost): Likewise.
17463         (get_computation_cost_at): Compute more accurate cost for addresses
17464         if the ratio is a multiplier allowed in addresses.
17465         For non-addresses, consider that an additional offset or symbol is
17466         added only once.
17467
17468 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
17469
17470         * config/i386/i386.c (ix86_decompose_address): Avoid useless
17471         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
17472
17473         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
17474         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
17475         (prefix_rex): For UNIT_MMX don't imply the prefix by default
17476         if MODE_DI.
17477         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
17478         to 1 for TYPE_SSE{IADD1,CVT1}.
17479         (prefix_vex_imm8): Removed.
17480         (length_vex): Only pass 1 as second argument to
17481         ix86_attr_length_vex_default if prefix_extra is 0.
17482         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
17483         (length): For prefix vex computation use length_immediate
17484         attribute instead of prefix_vex_imm8.
17485         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
17486         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
17487         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
17488         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
17489         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
17490         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
17491         a space in between the operands.
17492         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
17493         if one operand is 0xff and the other one si, di, bp or sp.
17494         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
17495         other one si, di, bp or sp.
17496         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
17497         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
17498         type and mode attributes.
17499         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
17500         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
17501         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
17502         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
17503         prefix_data16 attribute iff MODE_DF.
17504         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
17505         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
17506         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
17507         constm128_operand in length_immediate computation.
17508         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
17509         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
17510         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
17511         length_immediate attribute to 1.
17512         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
17513         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
17514         for certain alternatives.
17515         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
17516         prefix_data16 attribute if MODE_V1DF.
17517         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
17518         length_immediate to 1.
17519         (set_got_rex64, set_rip_rex64): Remove length attribute, set
17520         length_address to 4, set mode attribute to MODE_DI.
17521         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
17522         (fxam<mode>2_i387): Set length attribute to 4.
17523         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
17524         *prefetch_3dnow_rex): Override length_address attribute.
17525         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
17526         attributes.
17527         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
17528         (constm128_operand): Removed.
17529         * config/i386/i386.c (memory_address_length): For
17530         disp && !index && !base in 64-bit mode account for SIB byte if
17531         print_operand_address can't optimize disp32 into disp32(%rip)
17532         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
17533         for fs: or gs: segment.
17534         (ix86_attr_length_immediate_default): When checking if shortform
17535         is possible, truncate immediate to the length of the non-shortened
17536         immediate.
17537         (ix86_attr_length_address_default): Ignore MEM_P operands
17538         with X constraint.
17539         (ix86_attr_length_vex_default): Only check for DImode on
17540         GENERAL_REG_P operands.
17541         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
17542         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
17543         (sse_cvttps2pi): Clear prefix_rep attribute.
17544         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
17545         attribute.
17546         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
17547         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
17548         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
17549         iff operand 2 is const_int_operand.
17550         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
17551         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
17552         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
17553         instead of vex.
17554         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
17555         prefix_data16.
17556         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
17557         prefix_data16 attribute for movlpd and movhpd instructions.
17558         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
17559         length_immediate for shufpd instruction.
17560         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
17561         (avx_cmpp<avxmodesuffixf2c><mode>3,
17562         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
17563         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
17564         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
17565         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
17566         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
17567         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
17568         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
17569         prefix_data16 attribute for the first alternative to 1.
17570         (*avx_loadlps): Override length_immediate for the first alternative.
17571         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
17572         attributes for second alternative.
17573         (*vec_concatv2sf_sse4_1): Override length_immediate and
17574         prefix_data16 attributes for second alternative.
17575         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
17576         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
17577         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
17578         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
17579         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
17580         prefix_data16 and length_immediate to 1.
17581         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
17582         to 1.
17583         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
17584         prefix_extra attribute for variants that don't have 0f prefix alone.
17585         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
17586         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
17587         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
17588         *sse4_1_pextrd): Set length_immediate to 1.
17589         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
17590         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
17591         to 1.
17592         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
17593         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
17594         length_immediate to 1 for second alternative.
17595         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
17596         prefix_extra and length_immediate attributes for the first
17597         alternative.
17598         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
17599         first alternative.
17600         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
17601         to 1 for the first and third alternative.
17602         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
17603         alternative.
17604         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
17605         attribute.
17606         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
17607         attribute to 0.
17608         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
17609         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
17610         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
17611         *avx_psign<mode>3): Set prefix_extra attribute to 1.
17612         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
17613         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
17614         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
17615         ssse3_psign<mode>3): Override prefix_rex attribute.
17616         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
17617         (ssse3_palignrti): Override length_immediate to 1.
17618         (ssse3_palignrdi): Override length_immediate to 1, override
17619         prefix_rex attribute.
17620         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
17621         (sse4a_extrqi): Override length_immediate to 2.
17622         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
17623         (sse4a_insertq): Override prefix_data16 to 0.
17624         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
17625         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
17626         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
17627         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
17628         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
17629         and length_immediate to 1.
17630         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
17631         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
17632         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
17633         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
17634         and length_immediate to 1.
17635         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
17636         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
17637         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
17638         avx_ptest256): Override prefix_extra to 1.
17639         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
17640         Override prefix_data16 and length_immediate to 1.
17641         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
17642         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
17643         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
17644         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
17645         prefix_data16 to 0 and prefix_extra to 2.
17646         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
17647         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
17648         attribute.
17649         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
17650         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
17651         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
17652         and prefix_extra to 2.
17653         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
17654         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
17655         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
17656         avx_vpermilvar<mode>3,
17657         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
17658         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
17659         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
17660         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
17661         Override prefix_extra to 1.
17662         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
17663         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
17664         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
17665         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
17666         prefix_extra and length_immediate to 1.
17667         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
17668         modrm to 0.
17669         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
17670         to 1 for the first alternative.
17671         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
17672         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
17673         cases.
17674         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
17675         *movv2sf_internal_avx, *movv2sf_internal): Override
17676         prefix_rep attribute for certain alternatives.
17677         (*mov<mode>_internal): Override prefix_rep or prefix_data16
17678         attributes for certain alternatives.
17679         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
17680         attributes for certain alternatives.
17681         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
17682         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
17683         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
17684         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
17685         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
17686         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
17687         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
17688         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
17689         length_immediate to 1 if operand 2 is const_int_operand.
17690         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
17691         *vec_extractv2si_1): Set length_immediate attribute to 1.
17692         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
17693         using old 3DNOW insn rather than SSE/3DNOW_A.
17694         (mmx_emms, mmx_femms): Clear modrm attribute.
17695
17696 2009-05-29  Martin Jambor  <mjambor@suse.cz>
17697
17698         * tree-sra.c:  New implementation of SRA.
17699
17700         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
17701         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
17702         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
17703         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
17704         (SRA_MAX_STRUCTURE_COUNT): Removed.
17705         (SRA_FIELD_STRUCTURE_RATIO): Removed.
17706         * doc/invoke.texi (sra-max-structure-size): Removed.
17707         (sra-field-structure-ratio): Removed.
17708
17709 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
17710
17711         PR middle-end/40291
17712         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
17713         before expansion.
17714
17715 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
17716
17717         PR rtl-optimization/40101
17718         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
17719         seqno.  Adjust comment.
17720         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
17721         inserting bookkeeping before a jump, the jump is not scheduled.
17722         When no positive seqno found, provide a value.  Add comment.
17723
17724 2009-05-29  Richard Guenther  <rguenther@suse.de>
17725
17726         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
17727         short-cutting on the first component.
17728
17729 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
17730
17731         PR middle-end/39958
17732         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
17733         for trees other than decls/types.
17734
17735 2009-05-29  Richard Guenther  <rguenther@suse.de>
17736
17737         * tree-ssa-operands.c (get_expr_operands): Do not handle
17738         INDIRECT_REFs in the handled-component case.  Remove
17739         unused get_ref_base_and_extent case.
17740         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
17741         tree_low_cst and host_integerp where possible.
17742         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
17743         codes for equivalence.
17744         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
17745
17746 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
17747
17748         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
17749         to tmake_file for i[34567]86-*-cygwin*.
17750
17751 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
17752
17753         PR target/40017
17754         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
17755         (altivec_categorize_keyword, init_vector_keywords,
17756         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
17757         similar to bool.
17758
17759 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
17760
17761         * tree.c (handle_dll_attribute): Check if node is
17762         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
17763
17764 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
17765
17766         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
17767         component.
17768         (thumb2_zero_extendqidi2): Likewise.
17769
17770 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
17771
17772         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
17773         instead of gen_movrt.
17774         * config/sh/sh.md (movrt): Remove.
17775
17776 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
17777
17778         * doc/invoke.texi (IA-64 Options):
17779         Add -msdata, -mfused-madd, -mno-inline-float-divide,
17780         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
17781         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
17782         -msched-prefer-non-control-spec-insns,
17783         -msched-stop-bits-after-every-cycle,
17784         -msched-count-spec-in-critical-path,
17785         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
17786         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
17787         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
17788         and -msched-spec-verbose.
17789
17790 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
17791
17792         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
17793         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
17794         error if used.
17795         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
17796
17797 2009-05-28  Richard Guenther  <rguenther@suse.de>
17798
17799         * tree-ssa-alias.c (ao_ref_init): New function.
17800         (ao_ref_base): Likewise.
17801         (ao_ref_base_alias_set): Likewise.
17802         (ao_ref_alias_set): Likewise.
17803         (refs_may_alias_p_1): Change signature.
17804         (refs_may_alias_p): Adjust.
17805         (refs_anti_dependent_p): Likewise.
17806         (refs_output_dependent_p): Likewise.
17807         (call_may_clobber_ref_p_1): Change signature.
17808         (call_may_clobber_ref_p): Adjust.
17809         (stmt_may_clobber_ref_p_1): New function split out from ...
17810         (stmt_may_clobber_ref_p): ... here.
17811         (maybe_skip_until): Adjust signature.
17812         (get_continuation_for_phi): Likewise.
17813         (walk_non_aliased_vuses): Likewise.
17814         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
17815         (ao_ref_init): Declare.
17816         (ao_ref_base): Likewise.
17817         (ao_ref_alias_set): Likewise.
17818         (stmt_may_clobber_ref_p_1): Likewise.
17819         (walk_non_aliased_vuses): Adjust.
17820         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
17821         (get_ref_from_reference_ops): remove.
17822         (vn_reference_lookup_2): Adjust signature.
17823         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
17824         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
17825         (vn_reference_lookup): Adjust.
17826         (vn_reference_insert): Likewise.
17827         (vn_reference_insert_pieces): Adjust signature.
17828         (visit_reference_op_call): Adjust.
17829         * tree-ssa-pre.c (get_expr_type): Simplify.
17830         (phi_translate_1): Adjust.
17831         (compute_avail): Likewise.
17832         (translate_vuse_through_block): Do not re-build trees.
17833         (value_dies_in_block_x): Likewise.
17834         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
17835         fields.
17836         (vn_reference_lookup_pieces): Adjust declaration.
17837         (vn_reference_insert_pieces): Likewise.
17838
17839 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
17840
17841         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
17842         with checking disabled.
17843
17844 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
17845
17846         PR target/37216
17847
17848         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
17849         macro definition for support of three-operand format aligned
17850         .comm directive in assembler on cygwin/pe/mingw target OS.
17851         * configure:  Regenerate.
17852         * config.h:  Regenerate.
17853
17854         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
17855         aligned form of .comm directive if -mpe-aligned-commons is in effect.
17856         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
17857
17858         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
17859         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
17860
17861 2009-05-28  Ira Rosen  <irar@il.ibm.com>
17862
17863         PR tree-optimization/40254
17864         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
17865         in analysis of basic blocks.
17866
17867 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
17868
17869         PR middle-end/33699
17870         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
17871         * target-def.h (TARGET_CONST_ANCHOR): New macro.
17872         (TARGET_INITIALIZER): Use it.
17873         * cse.c (CHEAPER): Move it up to the other macros.
17874         (insert): Rename this ...
17875         (insert_with_costs): ... to this.  Add cost parameters.  Update
17876         function comment.
17877         (insert): New function.  Call insert_with_costs.
17878         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
17879         find_reg_offset_for_const, try_const_anchors): New functions.
17880         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
17881         when using a const-anchor.  Call insert_const_anchors.
17882         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
17883         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
17884
17885 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
17886
17887         * tree-inline.c (remap_decls): Enable nonlocalized variables
17888         when not optimizing.
17889
17890 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
17891
17892         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
17893         Simplify other tests involving optimize.
17894
17895 2009-05-27  Tom Tromey  <tromey@redhat.com>
17896
17897         * unwind-dw2.c (_Unwind_DebugHook): New function.
17898         (uw_install_context): Call _Unwind_DebugHook.
17899
17900 2009-05-27  Tom Tromey  <tromey@redhat.com>
17901
17902         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
17903
17904 2009-05-27  Ian Lance Taylor  <iant@google.com>
17905
17906         * Makefile.in (LINKER, LINKER_FLAGS): Define.
17907         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
17908         (ALL_LINKERFLAGS): Define.
17909         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
17910         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
17911         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
17912         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
17913         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
17914         $(LINKER_FOR_BUILD).
17915         (build/gcov-iov$(build_exeext)): Likewise.
17916
17917 2009-05-27  Julian Brown  <julian@codesourcery.com>
17918
17919         * gcse.c (target.h): Include.
17920         (can_assign_to_reg_without_clobbers_p): Check that the target allows
17921         copy of argument to a pseudo register.
17922
17923 2009-05-27  Diego Novillo  <dnovillo@google.com>
17924
17925         * tree-ssa-live.c (dump_scope_block): Document arguments.
17926         (dump_scope_blocks): Document.
17927         (debug_scope_blocks): New.
17928         * tree-flow.h (debug_scope_blocks): Declare.
17929
17930 2009-05-21  Denis Chertykov  <denisc@overta.ru>
17931
17932         * doc/contrib.texi (Contributors): Add myself to the list.
17933
17934 2009-05-27  Olivier Hainque  <hainque@adacore.com>
17935
17936         * expr.c (target_align): New function.  Alignment the TARGET of an
17937         assignment may be assume to have.
17938         (highest_pow2_factor_for_target): Use it instead of relying on
17939         immediate tree attributes of TARGET, not necessarily honored when
17940         intermediate bitfields are involved.
17941
17942 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
17943
17944         PR target/40266
17945         * config/i386/driver-i386.c (host_detect_local_cpu): Support
17946         AVX, SSE4, AES, PCLMUL and POPCNT.
17947
17948 2009-05-27  Diego Novillo  <dnovillo@google.com>
17949
17950         * tree-pretty-print.c (dump_location): New.
17951         (dump_generic_node): Call it.
17952         Factor code to handle BLOCK nodes ...
17953         (dump_block_node): ... here.
17954
17955 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
17956
17957         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
17958         with it.
17959         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
17960         included.
17961         * gcc-plugin.h: Include config.h and system.h.
17962         (IN_GCC): Define if not defined.
17963
17964 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
17965
17966         PR middle-end/40249
17967         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
17968         with -fno-inline.
17969
17970 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
17971
17972         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
17973         applicable.
17974         * config/m32r/m32r.h: Ditto.
17975         * config/m32r/m32r.md: Ditto.
17976         * config/m32r/predicates.md: Ditto.
17977
17978 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
17979
17980         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
17981
17982 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
17983
17984         * doc/plugins.texi
17985         (Loading plugins): typo.
17986         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
17987         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
17988         (Interacting with the GCC Garbage Collector): Added new section.
17989         (Giving information about a plugin): Added new section for
17990         PLUGIN_INFO.
17991         * ggc.h (ggc_register_root_tab): Added declaration.
17992         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
17993         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
17994         (register_callback): Improved comment in declaration.
17995         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
17996         (extra_root_vec) Added static variable for dynamic roots registration.
17997         (ggc_register_root_tab) Added new routine.
17998         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
17999         PLUGIN_GGC_MARKING event.
18000         * ggc-zone.c: Include plugin.h.
18001         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
18002         * ggc-page.c: Include plugin.h.
18003         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
18004         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
18005         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
18006         (register_callback): check lack of callbacks for
18007         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
18008         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
18009         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
18010         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
18011         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
18012         dependency on plugin.h.
18013         (plugin.o): Added dependency on ggc.h...
18014
18015 2009-05-26  Richard Guenther  <rguenther@suse.de>
18016
18017         PR middle-end/40248
18018         Revert
18019         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
18020         with mismatched comparison modes.
18021
18022         * expr.c (expand_expr_real_1): Expand the operand of a
18023         VIEW_CONVERT_EXPR in its natural mode.
18024
18025 2009-05-26  Ian Lance Taylor  <iant@google.com>
18026
18027         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
18028         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
18029         (ALL_COMPILERFLAGS): Define.
18030         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
18031         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
18032         (collect2$(exeext), collect2.o): Likewise.
18033         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
18034         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
18035         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
18036         (libbackend.o, intl.o, cppdefault.o): Likewise.
18037         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
18038         (build/%.o): Use $(COMPILER_FOR_BUILD).
18039         (build/gen%$(build_exeext)): Likewise.
18040         (build/gcov-iov$(build_exeext)): LIkewise.
18041         * config/t-darwin (darwin.o): Use $(COMPILER).
18042         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
18043         * config/t-sol2 (sol2-c.o): Likewise.
18044         (sol2.o): Likewise.
18045         * config/t-vxworks (vxworks.o): Likewise.
18046         * config/x-darwin (host-darwin.o): Likewise.
18047         * config/x-hpux (host-hpux.o): Likewise.
18048         * config/x-linux (host-linux.o): Likewise.
18049         * config/x-solaris (host-solaris.o): Likewise.
18050         * config/alpha/x-alpha (driver-alpha.o): Likewise.
18051         * config/arm/t-arm (arm-c.o): Likewise.
18052         * config/arm/t-pe (pe.o): Likewise.
18053         * config/arm/t-wince-pe (pe.o): Likewise.
18054         * config/i386/t-cygming (winnt.o): Likewise.
18055         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
18056         * config/i386/t-cygwin (cygwin1.o): Likewise.
18057         (cygwin2.o): Likewise.
18058         * config/i386/t-i386 (i386-c.o): Likewise.
18059         * config/i386/t-interix (winnt.o): Likewise.
18060         * config/i386/t-netware (netware.o): Likewise.
18061         * config/i386/t-nwld (nwld.o): Likewise.
18062         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
18063         * config/i386/x-i386 (driver-i386.o): Likewise.
18064         * config/i386/x-cygwin (host-cygwin.o): Likewise.
18065         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
18066         * config/ia64/t-ia64 (ia64-c.o): Likewise.
18067         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
18068         * config/mips/x-native (driver-native.o): Likewise.
18069         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
18070         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
18071         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
18072         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
18073         * config/score/t-score-elf (score7.o): Likewise.
18074         (score3.o): Likewise.
18075         * config/sh/t-sh (sh-c.o): Likewise.
18076         * config/sh/t-symbian (sh-c.o): Likewise.
18077         (symbian.o): Likewise.
18078         * config/spu/t-spu-elf (spu-c.o): Likewise.
18079         * config/v850/t-v850 (v850-c.o): Likewise.
18080         * config/v850/t-v850e (v850-c.o): Likewise.
18081
18082 2009-05-26  Richard Guenther  <rguenther@suse.de>
18083
18084         PR tree-optimization/40122
18085         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
18086         VECTOR_CSTs if possible.
18087         (fold_gimple_assign): Likewise.
18088
18089 2009-05-26  Richard Guenther  <rguenther@suse.de>
18090
18091         PR middle-end/40252
18092         * fold-const.c (fold_binary): Use the correct types for building
18093         rotates.
18094
18095 2009-05-26  Richard Guenther  <rguenther@suse.de>
18096
18097         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
18098         redundant calls to merge_alias_info.
18099         (bump_vector_ptr): Likewise.
18100         * tree-ssa-copy.c (merge_alias_info): Remove.
18101         (replace_exp_1): Remove call to merge_alias_info.
18102         (propagate_tree_value): Likewise.
18103         (fini_copy_prop): Propagate points-to info.
18104         * tree-flow.h (merge_alias_info): Remove.
18105
18106 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
18107
18108         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
18109
18110 2009-05-25  Jan Hubicka  <jh@suse.cz>
18111
18112         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
18113         * cgraph.h (struct inline_summary): New filed self_wize,
18114         size_inlining_benefit, self_time and time_inlining_benefit.
18115         (struct cgraph_global_info): Replace insns by time ans size fields.
18116         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
18117         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
18118         (ipcp_update_callgraph): Do not touch function bodies.
18119         * ipa-inline.c: Include except.h
18120         (MAX_TIME): New constant.
18121         (overall_insns): Remove.
18122         (leaf_node_p): New.
18123         (overall_size, max_benefit): New static variables.
18124         (cgraph_estimate_time_after_inlining): New function.
18125         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
18126         (cgraph_clone_inlined_nodes): Update size.
18127         (cgraph_mark_inline_edge): Update size.
18128         (cgraph_estimate_growth): Use size info.
18129         (cgraph_check_inline_limits): Check size.
18130         (cgraph_default_inline_p): Likewise.
18131         (cgraph_edge_badness): Compute badness based on benefit and size cost.
18132         (cgraph_decide_recursive_inlining): Check size.
18133         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
18134         and times.
18135         (cgraph_decide_inlining): Likewise.
18136         (cgraph_decide_inlining_incrementally): Likewise; honor
18137         PARAM_EARLY_INLINING_INSNS.
18138         (likely_eliminated_by_inlining_p): New predicate.
18139         (estimate_function_body_sizes): New function.
18140         (compute_inline_parameters): Use it.
18141         * except.c (must_not_throw_labels): New function.
18142         * except.h (must_not_throw_labels): Declare.
18143         * tree-inline.c (init_inline_once): Kill inlining_weigths
18144         * tree-ssa-structalias.c: Avoid uninitialized warning.
18145         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
18146         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
18147         (PARAM_INLINE_CALL_COST): Remove.
18148         (PARAM_EARLY_INLINING_INSNS): New.
18149
18150 2009-05-25  Richard Guenther  <rguenther@suse.de>
18151
18152         PR tree-optimization/36327
18153         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
18154         callback for reference translation or lookup at the point of may-defs.
18155         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
18156         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
18157         for union COMPONENT_REFs.
18158         (vn_reference_lookup_3): New callback.  Lookup from memset
18159         and CONSTRUCTOR assignment, translate through struct copies.
18160         (vn_reference_lookup_pieces): Make sure to not free the
18161         passed operands array.  Adjust walk_non_aliased_vuses call.
18162         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
18163         make sure we do not leak memory.
18164
18165 2009-05-25  Richard Guenther  <rguenther@suse.de>
18166
18167         * tree-ssa-alias.h (dump_points_to_solution): Declare.
18168         * tree-inline.c (expand_call_inline): Reset the escaped and
18169         callused solutions.
18170         * tree-ssa-structalias.c (pass_build_ealias): New.
18171         * tree-pass.h (pass_build_ealias): Declare.
18172         * passes.c (init_optimization_passes): Add PTA during
18173         early optimizations.
18174         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
18175         and CALLUSED solutions.
18176         (dump_points_to_solution): New function, split out from ...
18177         (dump_points_to_info_for): ... here.
18178         * tree-parloops.c (parallelize_loops): Reset the escaped and
18179         callused solutions.
18180
18181 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18182
18183         PR bootstrap/40027
18184         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
18185         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
18186
18187 2009-05-25  Ira Rosen  <irar@il.ibm.com>
18188
18189         PR tree-optimization/40238
18190         * tree-vect-stmts.c (vect_init_vector): Insert initialization
18191         statements after basic block's labels.
18192         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
18193         to free the allocated memory.
18194
18195 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
18196
18197         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
18198         return address with a USE.
18199
18200 2009-05-24  Richard Guenther  <rguenther@suse.de>
18201
18202         PR middle-end/40233
18203         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
18204         array type from the main variant of the inner type.
18205
18206 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18207
18208         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
18209         definition to bool (from int) to un-break build.
18210         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
18211
18212 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
18213
18214         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
18215         discard_stmt_changes): Delete.
18216         * tree-ssa-operands.c (scb_stack): Delete.
18217         (init_ssa_operands): Do not initialize it.
18218         (fini_ssa_operands): Do not free it.
18219         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
18220
18221         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
18222         update_stmt, remove the others.  Fix comments.
18223         * tree-dfa.c (optimize_stack_restore): Likewise.
18224         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
18225         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
18226         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
18227         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
18228         Likewise.
18229         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
18230         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
18231         (dom_opt_finalize_block): Likewise, adjusting access to
18232         stmts_to_rescan.
18233         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
18234         (stmts_to_rescan): Change item type to gimple.
18235         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
18236
18237 2009-05-24  Ira Rosen  <irar@il.ibm.com>
18238
18239         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
18240         * tree-pass.h (pass_slp_vectorize): New pass.
18241         * params.h (SLP_MAX_INSNS_IN_BB): Define.
18242         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
18243         * tree-vectorizer.c (timevar.h): Include.
18244         (user_vect_verbosity_level): Declare.
18245         (vect_location): Fix comment.
18246         (vect_set_verbosity_level): Update user_vect_verbosity_level
18247         instead of vect_verbosity_level.
18248         (vect_set_dump_settings): Add an argument. Ignore user defined
18249         verbosity if dump flags require higher level of verbosity. Print to
18250         stderr only for loop vectorization.
18251         (vectorize_loops): Update call to vect_set_dump_settings.
18252         (execute_vect_slp): New function.
18253         (gate_vect_slp): Likewise.
18254         (struct gimple_opt_pass pass_slp_vectorize): New.
18255         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
18256         access its members.
18257         (vec_info_for_bb): New function.
18258         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
18259         (VECTORIZATION_ENABLED): New macro.
18260         (SLP_ENABLED, SLP_DISABLED): Likewise.
18261         (vect_is_simple_use): Add bb_vec_info argument.
18262         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
18263         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
18264         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
18265         vect_schedule_slp, vect_analyze_slp): Likewise.
18266         (vect_analyze_stmt): Add slp_tree argument.
18267         (find_bb_location): Declare.
18268         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
18269         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
18270         (vect_analyze_loop_operations, vect_analyze_loop,
18271         get_initial_def_for_induction, vect_create_epilog_for_reduction,
18272         vect_finalize_reduction, vectorizable_reduction,
18273         vectorizable_live_operation, vect_transform_loop): Likewise.
18274         * tree-data-ref.c (dr_analyze_innermost): Update comment,
18275         skip evolution analysis if analyzing a basic block.
18276         (dr_analyze_indices): Likewise.
18277         (initialize_data_dependence_relation): Skip the test whether the
18278         object is invariant for basic blocks.
18279         (compute_all_dependences): Skip dependence analysis for data
18280         references in basic blocks.
18281         (find_data_references_in_stmt): Don't fail in case of invariant
18282         access in basic block.
18283         (find_data_references_in_bb): New function.
18284         (find_data_references_in_loop): Move code to
18285         find_data_references_in_bb and add a call to it.
18286         (compute_data_dependences_for_bb): New function.
18287         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
18288         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
18289         that STEP is 0.
18290         (vect_analyze_data_ref_dependence): Check for interleaving in case of
18291         unknown dependence in basic block and fail in case of dependence in
18292         basic block.
18293         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
18294         dependence instances from either loop or basic block vectorization
18295         info.
18296         (vect_compute_data_ref_alignment): Check if it is loop vectorization
18297         before calling nested_in_vect_loop_p.
18298         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
18299         dependence instances from either loop or basic block vectorization
18300         info.
18301         (vect_verify_datarefs_alignment): Likewise.
18302         (vect_enhance_data_refs_alignment): Adjust function calls.
18303         (vect_analyze_data_refs_alignment): Likewise.
18304         (vect_analyze_group_access): Fix printing. Skip different checks if
18305         DR_STEP is 0. Keep strided stores either in loop or basic block
18306         vectorization data structure. Fix indentation.
18307         (vect_analyze_data_ref_access): Fix comments, allow zero step in
18308         basic blocks.
18309         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
18310         dependence instances from either loop or basic block vectorization
18311         info.
18312         (vect_analyze_data_refs): Update comment. Call
18313         compute_data_dependences_for_bb to analyze basic blocks.
18314         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
18315         case of loop vectorization. In case of basic block vectorization use
18316         data-ref itself as a base.
18317         (vect_create_data_ref_ptr): In case of basic block vectorization:
18318         don't advance the pointer, add new statements before the current
18319         statement.  Adjust function calls.
18320         (vect_supportable_dr_alignment): Support only aligned accesses in
18321         basic block vectorization.
18322         * common.opt (ftree-slp-vectorize): New flag.
18323         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
18324         (vect_pattern_recog_1): Likewise.
18325         * tree-vect-stmts.c (process_use): Likewise.
18326         (vect_init_vector): Add new statements in the beginning of the basic
18327         block in case of basic block SLP.
18328         (vect_get_vec_def_for_operand): Adjust function calls.
18329         (vect_finish_stmt_generation): Likewise.
18330         (vectorizable_call): Add assert that it is loop vectorization, adjust
18331         function calls.
18332         (vectorizable_conversion, vectorizable_assignment): Likewise.
18333         (vectorizable_operation): In case of basic block SLP, take
18334         vectorization factor from statement's type and skip the relevance
18335         check. Adjust function calls.
18336         (vectorizable_type_demotion): Add assert that it is loop
18337         vectorization, adjust function calls.
18338         (vectorizable_type_promotion): Likewise.
18339         (vectorizable_store): Check for outer loop only in case of loop
18340         vectorization. Adjust function calls. For basic blocks, skip the
18341         relevance check and don't advance pointers.
18342         (vectorizable_load): Likewise.
18343         (vectorizable_condition): Add assert that it is loop vectorization,
18344         adjust function calls.
18345         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
18346         that it is not reduction, get vector type, call only supported
18347         functions, skip loop specific parts.
18348         (vect_transform_stmt): Check for outer loop only in case of loop
18349         vectorization.
18350         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
18351         (vect_is_simple_use): Fix comment, add new argument, fix conditions
18352         for external definition.
18353         * passes.c (pass_slp_vectorize): New pass.
18354         * tree-vect-slp.c (find_bb_location): New function.
18355         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
18356         check for patterns only in loops.
18357         (vect_build_slp_tree): Add argument, adjust function calls, fail in
18358         case of multiple types in basic block SLP.
18359         (vect_mark_slp_stmts_relevant): New function.
18360         (vect_supported_load_permutation_p): Fix comment.
18361         (vect_analyze_slp_instance): Add argument. In case of basic block
18362         SLP, take vectorization factor from statement's type, check that
18363         unrolling factor is 1. Adjust function call. Save SLP instance in
18364         either loop or basic block vectorization structure. Return FALSE,
18365         if SLP failed.
18366         (vect_analyze_slp): Add argument. Get strided stores groups from
18367         either loop or basic block vectorization structure. Return FALSE
18368         if basic block SLP failed.
18369         (new_bb_vec_info): New function.
18370         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
18371         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
18372         (vect_schedule_slp): Add argument. Get SLP instances from either
18373         loop or basic block vectorization structure. Set vectorization factor
18374         to be 1 for basic block SLP.
18375         (vect_slp_transform_bb): New function.
18376         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
18377
18378 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
18379
18380         * final.c (shorten_branches): Do not align labels for jump tables.
18381         (final_scan_insn): Use JUMP_TABLE_DATA_P.
18382
18383 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
18384
18385         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
18386         Remove outdated reference to flow.c and fix nits.
18387         * doc/gccint.texi: Tweak RTL description.
18388         * doc/rtl.texi: Likewise.
18389
18390 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
18391
18392         * config/avr/avr.c: Change my email address.
18393         * config/avr/avr.h: Likewise.
18394         * config/avr/avr.md: Likewise.
18395         * config/avr/avr-protos.h: Likewise.
18396         * config/avr/libgcc.S: Likewise.
18397
18398 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
18399
18400         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
18401         (spu_split_load, spu_split_store): Change return type to int.
18402         (spu_split_convert): Declare.
18403         * config/spu/predicates.md (spu_mem_operand): Remove.
18404         (spu_mov_operand): Update.
18405         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
18406         * config/spu/spu.c (regno_aligned_for_load): Remove.
18407         (reg_aligned_for_addr, spu_expand_load): Define.
18408         (spu_expand_extv): Reimplement and handle MEM.
18409         (spu_expand_insv): Handle MEM.
18410         (spu_sched_reorder): Handle insn's with length 0.
18411         (spu_legitimate_address_p): Reimplement.
18412         (store_with_one_insn_p): Return TRUE for any mode with size
18413         larger than 16 bytes.
18414         (address_needs_split): Define.
18415         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
18416         operands.
18417         (spu_convert_move): Define.
18418         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
18419         (spu_split_store): Change all MEM's to TImode.
18420         (spu_init_expanders): Preallocate registers that correspond to
18421         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
18422         mark_reg_pointer.
18423         (spu_split_convert): Define.
18424         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
18425         (_move<mode>, _movdi, _movti): Update predicate and condition.
18426         (load, store): Change to define_split.
18427         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
18428         extend<mode>ti2.
18429         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
18430         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
18431         define_insn_and_split of lshr<mode>3.
18432         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
18433         (<v>ashr<mode>3_imm): Define.
18434         (extv, extzv, insv): Allow MEM operands.
18435         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
18436         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
18437         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
18438         (_spu_convert2): Change to define_insn_and_split and remove the
18439         corresponding define_peephole2.
18440         (stack_protect_set, stack_protect_test, stack_protect_test_si):
18441         Change predicates to memory_operand.
18442
18443 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
18444
18445         * config/arm/thumb2.md: Add 16-bit multiply instructions.
18446
18447 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
18448
18449         PR tree-optimization/40219
18450         * tree.c (iterative_hash_expr): Make sure the builtin function is
18451         a normal builtin function and not a front end or back end builtin
18452         before indexing into the built_in_decls array.
18453
18454 2009-05-22  Richard Guenther  <rguenther@suse.de>
18455
18456         PR middle-end/38964
18457         * alias.c (write_dependence_p): Do not use TBAA for answering
18458         anti-dependence or output-dependence.
18459         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
18460         (emit_pointer_definition): Remove.
18461         (emit_alias_warning): Likewise.
18462         (find_what_var_points_to): Remove TBAA pruning code.
18463         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
18464         violations.
18465         (compute_points_to_sets): Remove code computing the set of
18466         dereferenced pointers.
18467         * tree-data-ref.c (dr_may_alias_p): Properly use the split
18468         oracle for querying anti and output dependencies.
18469         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
18470         if TBAA may be applied.
18471         (refs_anti_dependent_p): New function.
18472         (refs_output_dependent_p): Likewise.
18473         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
18474         (refs_output_dependent_p): Likewise.
18475         * doc/tree-ssa.texi (Memory model): New section.
18476         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
18477         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
18478         * cfgexpand.c (expand_gimple_basic_block): Do not handle
18479         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
18480         * expr.c (expand_expr_real_1): Likewise.
18481         * gimple-low.c (lower_stmt): Likewise.
18482         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
18483         (dump_gimple_cdt): Remove.
18484         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
18485         (gimple_size): Likewise.
18486         (walk_gimple_op): Likewise.
18487         (is_gimple_stmt): Likewise.
18488         (walk_stmt_load_store_addr_ops): Likewise.
18489         (gimple_build_cdt): Remove.
18490         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
18491         * gimple.h (gimple_cdt_new_type): Remove.
18492         (gimple_cdt_new_type_ptr): Likewise.
18493         (gimple_cdt_set_new_type): Likewise.
18494         (gimple_cdt_location): Likewise.
18495         (gimple_cdt_location_ptr): Likewise.
18496         (gimple_cdt_set_location): Likewise.
18497         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
18498         * tree-cfg.c (remove_useless_stmts_1): Do not handle
18499         GIMPLE_CHANGE_DYNAMIC_TYPE.
18500         (verify_types_in_gimple_stmt): Likewise.
18501         * tree-inline.c (estimate_num_insns): Likewise.
18502         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
18503         (copy_decl_to_var): Likewise.
18504         (copy_result_decl_to_var): Likewise.
18505         * tree-pretty-print.c (dump_generic_node): Do not handle
18506         CHANGE_DYNAMIC_TYPE_EXPR.
18507         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18508         * tree-ssa-operands.c (get_expr_operands): Likewise.
18509         * tree-ssa-structalias.c (struct variable_info): Remove
18510         no_tbaa_pruning member.
18511         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
18512         (unify_nodes): Do not copy it.
18513         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
18514         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
18515         (set_uids_in_ptset): Do not check it.
18516         (find_what_var_points_to): Likewise.
18517         (compute_tbaa_pruning): Remove.
18518         (compute_points_to_sets): Do not call it.
18519         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
18520         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
18521         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
18522         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
18523         (DECL_NO_TBAA_P): Likewise.
18524         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
18525         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
18526         (expand_omp_atomic_pipeline): Do not set it.
18527         * print-tree.c (print_node): Do not dump it.
18528         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
18529         redundant check.
18530
18531 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
18532
18533         PR target/39856
18534         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
18535         for clobber.
18536
18537 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
18538
18539         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
18540         non-external.
18541
18542 2009-05-22  Ben Elliston  <bje@au.ibm.com>
18543
18544         * Makefile.in (bversion.h, s-bversion): New targets.
18545         (TOPLEV_H): Add bversion.h.
18546         * toplev.h: Include "bversion.h".
18547         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
18548         the __format__ attribute only if compiling with the same version
18549         of GCC as the sources (the "build version").
18550
18551 2009-05-22  Ben Elliston  <bje@au.ibm.com>
18552
18553         * c-format.c (handle_format_attribute): Fix comment typo.
18554
18555 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
18556
18557         PR target/37846
18558         * config/ia64/ia64.opt (mfused-madd): New.
18559         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
18560         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
18561         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
18562         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
18563         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
18564         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
18565         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
18566         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
18567         instruction if !TARGET_FUSED_MADD.
18568         (fpma, fpms): Remove colon from name.
18569
18570 2009-05-22  Richard Guenther  <rguenther@suse.de>
18571
18572         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
18573         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
18574         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
18575         TARGET_MEM_REF.
18576         (create_expression_by_pieces): Only convert if necessary.
18577         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
18578         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
18579
18580 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
18581
18582         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
18583         regular pattern from a template and rename it ...
18584         (*extzv_truncsi_exts): ... to this.
18585
18586 2009-05-21  Richard Guenther  <rguenther@suse.de>
18587
18588         * cgraph.h (struct cgraph_node): Remove inline_decl member.
18589         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
18590         (cgraph_default_inline_p): Likewise.
18591         (cgraph_decide_inlining_incrementally): Likewise.
18592
18593 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18594             Uros Bizjak  <ubizjak@gmail.com>
18595
18596         * config/i386/cpuid.h (bit_MOVBE): New.
18597
18598         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
18599
18600         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
18601         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
18602         (ix86_handle_option): Handle OPT_mmovbe.
18603         (ix86_target_string): Add -mmovbe.
18604         (pta_flags): Add PTA_MOVBE.
18605         (processor_alias_table): Add PTA_MOVBE to "atom".
18606         (override_options): Handle PTA_MOVBE.
18607
18608         * config/i386/i386.h (TARGET_MOVBE): New.
18609
18610         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
18611         (*bswapsi_movbe): New.
18612         (*bswapdi_movbe): Likewise.
18613         (bswapdi2): Renamed to ...
18614         (*bswapdi_1): This.
18615         (bswapdi2): New expander.
18616
18617         * config/i386/i386.opt (mmovbe): New.
18618
18619         * doc/invoke.texi: Document -mmovbe.
18620
18621 2009-05-21  Taras Glek  <tglek@mozilla.com>
18622
18623         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
18624         * gcc-plugin.h (plugin_init): Updated signature.
18625         * gcc-plugin.h (plugin_name_args): Moved to this header.
18626         * doc/plugins.texi (plugin_init): Updated documention to reflect
18627         API change.
18628         * doc/plugins.texi (plugin_name_args): Added to documention.
18629
18630 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
18631
18632         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
18633         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
18634
18635 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
18636
18637         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
18638         JUMP_TABLE_DATA_P predicates where applicable.
18639         * config/i386/predicates.md: Ditto.
18640         * config/i386/sse.md: Ditto.
18641
18642 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
18643
18644         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
18645         operand2 -128 override length_immediate attribute to 1.
18646         * config/i386/predicates.md (constm128_operand): New predicate.
18647
18648         * config/i386/i386.c (memory_address_length): Handle %r12
18649         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
18650         also check REGNO.
18651         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
18652         mode look through optional ZERO_EXTEND and SUBREG.
18653         * config/i386/i386.md (R12_REG): New define_constant.
18654         (prefix_data16): For sse unit set also for MODE_TI insns.
18655         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
18656         insns set if operand 1 is ext_QIreg_operand.
18657         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
18658         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
18659         immediate.
18660         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
18661         mode from MODE_DI to MODE_SI.
18662         (movdi_1_rex64): Override modrm and length_immediate attributes
18663         only for movabs (TYPE_IMOV, alternative 2).
18664         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
18665         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
18666         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
18667         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
18668         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
18669         prefix_rex attribute if DImode.
18670         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
18671         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
18672         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
18673         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
18674         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
18675         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
18676         Likewise.  For TYPE_IMOV clear length_immediate attribute.
18677         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
18678         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
18679         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
18680         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
18681         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
18682         or one operand TYPE_ISHIFT.
18683         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
18684         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
18685         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
18686         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
18687         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
18688         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
18689         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
18690         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
18691         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
18692         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
18693         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
18694         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
18695         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
18696         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
18697         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
18698         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
18699         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
18700         set mode attribute, don't override length attribute.
18701         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
18702         to 1.
18703         (return_internal_long): Set length attribute to 2 instead of 1.
18704         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
18705         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
18706         prefix_rex attribute.
18707         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
18708         New predicates.
18709         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
18710
18711 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18712
18713         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
18714
18715 2009-05-20  Ian Lance Taylor  <iant@google.com>
18716
18717         * tree.c (build_tree_list_vec_stat): New function.
18718         (ctor_to_vec): New function.
18719         (build_nt_call_vec): New function.
18720         (build_call_array): Change args to be a const pointer.
18721         (build_call_vec): New function.
18722         * tree.h (build_nt_call_vec): Declare.
18723         (build_tree_list_vec_stat): Declare.
18724         (build_tree_list_vec): Define.
18725         (build_call_array): Update declaration.
18726         (build_call_vec): Declare.
18727         (ctor_to_vec): Declare.
18728         * c-common.c (tree_vector_cache): New static variable.
18729         (make_tree_vector): New function.
18730         (release_tree_vector): New function.
18731         (make_tree_vector_single): New function.
18732         (make_tree_vector_copy): New function.
18733         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
18734         (make_tree_vector_single, make_tree_vector_copy): Declare.
18735         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
18736         (c_parser_expr_list): Don't manage cache here, instead call
18737         make_tree_vector.
18738         (c_parser_release_expr_list): Remove static function.
18739         (c_parser_vec_to_tree_list): Remove static function.
18740         (c_parser_attributes): Call build_tree_list_vec instead of
18741         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
18742         c_parser_release_expr_list.
18743         (c_parser_postfix_expression_after_primary): Likewise.
18744         (c_parser_objc_keywordexpr): Likewise.
18745
18746 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
18747
18748         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
18749         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
18750         TARGET_CONVERT_TO_TYPE.
18751         * hooks.c (hook_tree_const_tree_null): Define.
18752         * hooks.h (hook_tree_const_tree_null): Declare.
18753         * target.h (struct gcc_target):  Add invalid_parameter_type,
18754         invalid_return_type, promoted_type, and convert_to_type fields.
18755         * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
18756         (TARGET_INVALID_RETURN_TYPE): Define.
18757         (TARGET_PROMOTED_TYPE): Define.
18758         (TARGET_CONVERT_TO_TYPE): Define.
18759         (TARGET_INITIALIZER): Update for new fields.
18760         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
18761         (grokparms): Check targetm.invalid_parameter_type.
18762         * c-typeck.c (default_conversion): Check targetm.promoted_type.
18763         * c-convert.c (convert): Check targetm.convert_to_type.
18764
18765 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
18766
18767         * config/mips/mips.md (*extenddi_truncate<mode>,
18768         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
18769         defintions.
18770         (*extendhi_truncateqi): New define_insn_and_sptit.
18771
18772 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
18773
18774         PR middle-end/40204
18775         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
18776         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
18777
18778 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
18779
18780         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
18781         the operand of VIEW_CONVERT_EXPR.
18782
18783 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
18784
18785         * config/i386/driver-i386.c (host_detect_local_cpu): Check
18786         extended family and model for Intel processors.  Support Intel Atom.
18787
18788 2009-05-20  Olivier Hainque  <hainque@adacore.com>
18789
18790         * gstab.h (stab_code_type): Define, to be used instead of the
18791         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
18792         notice.
18793         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
18794         occurrences by stab_code_type.
18795         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
18796
18797 2009-05-20  Martin Jambor  <mjambor@suse.cz>
18798
18799         * tree-flow.h (insert_edge_copies_seq): Undeclare.
18800         (sra_insert_before): Likewise.
18801         (sra_insert_after): Likewise.
18802         (sra_init_cache): Likewise.
18803         (sra_type_can_be_decomposed_p): Likewise.
18804         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
18805         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
18806         (sra_insert_before): Likewise.
18807         (sra_insert_after): Likewise.
18808         (sra_init_cache): Likewise.
18809         (insert_edge_copies_seq): Made static and moved upwards.
18810
18811         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
18812         case.
18813
18814         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
18815
18816         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
18817         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
18818         simple copies.
18819
18820 2009-05-20  Richard Guenther  <rguenther@suse.de>
18821
18822         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
18823         with mismatched comparison modes.
18824
18825 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18826
18827         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
18828         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
18829         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
18830         with shifts for Thumb2.
18831         (orsi_notsi): New for orn.
18832         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
18833         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
18834         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
18835         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
18836         Don't invert remainder for IOR.
18837
18838 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
18839
18840         PR tree-optimization/40087
18841         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
18842         number_of_iterations_ne): Rename never_infinite argument.
18843         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
18844         number_of_iterations_le): Handle pointer-type ivs when
18845         exit_must_be_taken is false.
18846         (number_of_iterations_cond):  Do not always assume that
18847         exit_must_be_taken if the control variable is a pointer.
18848
18849 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18850
18851         * c-typeck.c (build_binary_op): Allow % on integal vectors.
18852         * doc/extend.texi (Vector Extension): Document that % is allowed too.
18853
18854 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
18855
18856         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
18857         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
18858
18859 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18860
18861         PR c/40172
18862         * c.opt (Wlogical-op): Disabled by default.
18863         * c-opt (c_common_post_options): Do not enable Wlogical-op with
18864         Wextra.
18865         * doc/invoke.texi (Wlogical-op): Likewise.
18866
18867 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
18868
18869         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
18870         into CASE_CONVERT.
18871         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
18872         Propagate the type of the first operand.
18873         <ASSERT_EXPR>: Simplify.
18874         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
18875         Rewrite using the RHS code as discriminant.
18876         <NOP_EXPR>: Turn into CASE_CONVERT.
18877         <PLUS_EXPR>: Propagate the type of the first operand.
18878
18879 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
18880
18881         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
18882         (ia64_dconst_0_375): New.
18883         * config/ia64/ia64.c (ia64_override_options): Remove
18884         -minline-sqrt-min-latency warning.
18885         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
18886         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
18887         * config/ia64/ia64.md (*sqrt_approx): Remove.
18888         (sqrtsf2): Remove #if 0.
18889         (sqrtsf2_internal_thr): Rewrite and move to div.md.
18890         (sqrtdf): Remove assert.
18891         (sqrtdf2_internal_thr): Rewrite and move to div.md.
18892         (sqrtxf2): Remove #if 0.
18893         (sqrtxf2_internal_thr): Rewrite and move to div.md.
18894         * div.md (sqrt_approx_rf): New.
18895         (sqrtsf2_internal_thr): New implementation.
18896         (sqrtsf2_internal_lat): New.
18897         (sqrtdf2_internal_thr: New implementation.
18898         (sqrtxf2_internal): New implementation.
18899
18900 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
18901             Hans-Peter Nilsson  <hp@axis.com>
18902
18903         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
18904         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
18905         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
18906         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
18907         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
18908         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
18909         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
18910         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
18911         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
18912         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
18913         * c-common.c: ...from here.
18914
18915 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18916
18917         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
18918
18919 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18920
18921         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
18922
18923 2009-05-19  Ben Elliston  <bje@au.ibm.com>
18924
18925         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
18926         assignments with memcpy calls.
18927         (add_fdes): Likewise.
18928         (binary_search_unencoded_fdes): Likewise.
18929         (linear_search_fdes): Eliminate type puns.
18930
18931 2009-05-19  Richard Guenther  <rguenther@suse.de>
18932
18933         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
18934         not falsely claim to have propagated into all uses.
18935
18936 2009-05-19  Ben Elliston  <bje@au.ibm.com>
18937
18938         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
18939         version to v3.0.
18940
18941 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
18942
18943         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
18944         * config/sh/sh.c (sh_legitimate_address_p): Make static.
18945         (TARGET_LEGITIMATE_ADDRESS_P): New.
18946         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18947         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
18948
18949 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
18950
18951         PR debug/40109
18952         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
18953         child of the containing namespace's DIE.
18954
18955 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
18956
18957         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
18958         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
18959         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
18960         extend patterns.
18961
18962 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
18963
18964         PR target/39942
18965         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
18966         gen_align with gen_pad.
18967         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
18968         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
18969
18970         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
18971         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
18972
18973         * config/i386/i386.md (align): Renamed to ...
18974         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
18975         ASM_OUTPUT_MAX_SKIP_PAD.
18976
18977 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
18978
18979         * config.gcc: Fix variable syntax.
18980
18981         PR target/39531
18982         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
18983         before calling exact_log2.
18984         (output_iorsi3): Likewise.
18985         (output_xorsi3): Likewise.
18986
18987 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
18988
18989         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
18990         for the none zero constant operand except for EQ and NE
18991         comprisons even when the first operand is R0.
18992
18993 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
18994
18995         * config/s390/2064.md: Remove trailing whitespaces.
18996         * config/s390/2084.md: Likewise.
18997         * config/s390/constraints.md: Likewise.
18998         * config/s390/fixdfdi.h: Likewise.
18999         * config/s390/libgcc-glibc.ver: Likewise.
19000         * config/s390/s390-modes.def: Likewise.
19001         * config/s390/s390-protos.h: Likewise.
19002         * config/s390/s390.c: Likewise.
19003         * config/s390/s390.h: Likewise.
19004         * config/s390/s390.md: Likewise.
19005         * config/s390/tpf-unwind.h: Likewise.
19006
19007 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
19008
19009         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
19010
19011 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
19012
19013         M68K TLS support.
19014         * configure.ac (m68k-*-*): Check if binutils support TLS.
19015         * configure: Regenerate.
19016         * config/m68k/predicates.md (symbolic_operand): Extend comment.
19017         * config/m68k/constraints.md (Cu): New constraint.
19018         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
19019         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
19020         (movsi): Handle TLS symbols.
19021         (addsi3_5200): Handle XTLS symbols, indent.
19022         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
19023         (m68k_tls_reference_p): Declare.
19024         (m68k_legitimize_address): Declare.
19025         (m68k_unwrap_symbol): Declare.
19026         * config/m68k/m68k.opt (mxtls): New option.
19027         * config/m68k/m68k.c (ggc.h): Include.
19028         (m68k_output_dwarf_dtprel): Implement hook.
19029         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
19030         (m68k_expand_prologue): Load GOT pointer when function needs it.
19031         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
19032         (m68k_legitimate_constant_address_p): Same.
19033         (m68k_decompose_address): Handle TLS references.
19034         (m68k_get_gp): New static function.
19035         (enum m68k_reloc): New contants.
19036         (TLS_RELOC_P): New macro.
19037         (m68k_wrap_symbol): New static function.
19038         (m68k_unwrap_symbol): New function.
19039         (m68k_final_prescan_insn_1): New static function.
19040         (m68k_final_prescan_insn): New function.
19041         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
19042         functions.
19043         (legitimize_pic_address): Handle TLS references..
19044         (m68k_tls_get_addr, m68k_get_tls_get_addr)
19045         (m68k_libcall_value_in_a0_p)
19046         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
19047         (m68k_call_m68k_read_tp): Helper variables and functions for ...
19048         (m68k_legitimize_tls_address): Handle TLS references.
19049         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
19050         New functions.
19051         (m68k_legitimize_address): Handle TLS symbols.
19052         (m68k_get_reloc_decoration): New static function.
19053         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
19054         UNSPEC_RELOC32.
19055         (m68k_output_dwarf_dtprel): Implement hook.
19056         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
19057         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
19058         m68k_call_* routines.
19059         (sched_attr_op_type): Handle TLS symbols.
19060         (gt-m68k.h): Include.
19061         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
19062         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
19063
19064 2009-05-18  Martin Jambor  <mjambor@suse.cz>
19065
19066         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
19067         (visit_store_addr_for_mod_analysis): New function.
19068         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
19069         (determine_cst_member_ptr): Use gimple_assign_single_p.
19070         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
19071         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
19072         operands.  Don't check number of operands of a NOP_EXPR.
19073
19074 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
19075
19076         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
19077
19078 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19079
19080         PR c/40172
19081         * c-common.c (warn_logical_operator): Don't warn if one of
19082         expression isn't always true or false.
19083
19084 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
19085
19086         * config/i386/biarch32.h: New file.
19087         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
19088
19089 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
19090
19091         * config/mips/mips.md (*zero_extend<mode>_trunchi,
19092         *zero_extend<mode>_truncqi): Merge these into ...
19093         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
19094         Name the pattern following this as *zero_extendhi_truncqi.
19095
19096 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
19097
19098         PR middle-end/39301
19099         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
19100         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
19101         (output_info): Make field HOST_WIDEST_INT.
19102         (print_statistics): Use HOST_WIDEST_INT_PRINT.
19103         (dump_bitmat_statistics): Same.
19104
19105 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
19106
19107         * config.gcc (use_gcc_stdint):  Set to wrap.
19108         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
19109         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
19110         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
19111         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
19112         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
19113         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
19114         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
19115         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
19116
19117 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
19118
19119         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
19120         tune_64.
19121         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
19122         Move definitions earlier.
19123         (OPT_ARCH64, OPT_ARCH32): Define.
19124         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
19125         and tune_64.
19126
19127 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
19128
19129         PR target/40153
19130         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
19131         implies.
19132
19133 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
19134
19135         * arm.md (movdi2): Copy non-reg values to DImode registers.
19136
19137 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
19138
19139         PR target/39942
19140         * final.c (label_to_max_skip): New function.
19141         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
19142         CODE_LABEL_NUMBER <= max_labelno.
19143         * output.h (label_to_max_skip): New prototype.
19144         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
19145         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
19146         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
19147         Handle CODE_LABELs with >= 16 byte alignment or with
19148         max_skip == (1 << align) - 1.
19149         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
19150         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
19151
19152         PR target/39942
19153         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
19154         .p2align 3 if MAX_SKIP is smaller than 7.
19155         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
19156
19157 2009-05-15  Ian Lance Taylor  <iant@google.com>
19158
19159         * alias.c (struct alias_set_entry_d): Rename from struct
19160         alias_set_entry.  Change all uses.
19161         * except.c (struct call_site_record_d): Rename from struct
19162         call_site_record.  Change all uses.
19163         * except.h (struct eh_region_d): Rename from struct eh_region.
19164         Change all uses.
19165         * gcse.c (struct hash_table_d): Rename from struct hash_table.
19166         Change all uses.
19167         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
19168         ivtype_map_elt.  Change all uses.
19169         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
19170         Change all uses.
19171         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
19172         * graphite.h (struct name_tree_d): Rename from struct name_tree.
19173         Change all uses.
19174         (struct sese_d): Rename from struct sese.  Change all uses.
19175         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
19176         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
19177         * optabs.h (struct optab_d): Rename from struct optab.  Change all
19178         uses.
19179         (struct convert_optab_d): Rename from struct convert_optab.
19180         Change all uses.
19181         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
19182         ipa_opt_pass.  Change all uses.
19183         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
19184         all uses.
19185
19186         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
19187         defined as a typedef.
19188         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
19189         defined as a tag.
19190
19191 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19192
19193         PR 16302
19194         * fold-const.c (make_range,build_range_check,merge_ranges): Move
19195         declaration to...
19196         (merge_ranges): Returns bool.
19197         * tree.h (make_range): .. to here.
19198         (build_range_check): Likewise.
19199         (merge_ranges): Likewise. Renamed from merge_ranges.
19200         * c-typeck.c (parser_build_binary_op): Update calls to
19201         warn_logical_operator.
19202         * c-common.c (warn_logical_operator): Add new warning.
19203         * c-common.h (warn_logical_operator): Update declaration.
19204
19205 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19206
19207         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
19208
19209 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19210
19211         * doc/install.texi: Document MPC requirements, flags etc.
19212
19213         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
19214         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
19215         Evaluate constant arguments.
19216         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
19217         (fold_builtin_1): Likewise, also evaluate constant arguments.
19218         Remove superfluous break.
19219         (do_mpc_ckconv): New.
19220         * real.h: Include mpc.h.
19221         * toplev.c (print_version): Output MPC version info if available.
19222
19223 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
19224
19225         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
19226
19227 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
19228
19229         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
19230         only once.
19231
19232 2009-05-15  Jan Hubicka  <jh@suse.cz>
19233
19234         * doc/invoke.texi (max-early-inliner-iterations): New flag.
19235         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
19236         (try_inline): Fix return value.
19237         (cgraph_decide_inlining_incrementally): Honor new value.
19238         (cgraph_early_inlining): Handle indirect inlining.
19239         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
19240
19241 2009-05-15  Jan Hubicka  <jh@suse.cz>
19242
19243         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
19244         * cgraphunit.c (cgraph_finalize_function): Set it.
19245         (cgraph_expand_function): Use it.
19246
19247 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
19248
19249         * real.c (encode_ieee_half): Define.
19250         (decode_ieee_half): Define.
19251         (ieee_half_format): Define.
19252         (arm_half_format): Define.
19253         * real.h (ieee_half_format): Declare.
19254         (arm_half_format): Declare.
19255
19256 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
19257
19258         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
19259         swapped, and reversed optabs exist before trying to use them.
19260
19261 2009-05-15  Paul Brook  <paul@codesourcery.com>
19262             Sandra Loosemore  <sandra@codesourcery.com>
19263
19264         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
19265         loads.  Allow PRE_DEC.
19266         (output_move_neon): Handle PRE_DEC.
19267         (arm_print_operand): Add 'A' for neon structure loads.
19268         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
19269         * config/arm/neon.md (neon_mov): Update comment.
19270         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
19271         calls.
19272         (Um): New constraint.
19273
19274 2009-05-15  Jan Hubicka  <jh@suse.cz>
19275
19276         Revert the following patch until testsuite fallout is fixed:
19277         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
19278         * cgraph.h (struct inline_summary): New filed self_wize,
19279         size_inlining_benefit, self_time and time_inlining_benefit.
19280         (struct cgraph_global_info): Replace insns by time ans size fields.
19281         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
19282         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
19283         (ipcp_update_callgraph): Do not touch function bodies.
19284         * ipa-inline.c: Include except.h
19285         (MAX_TIME): New constant.
19286         (overall_insns): Remove
19287         (overall_size, max_benefit): New static variables.
19288         (cgraph_estimate_time_after_inlining): New function.
19289         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
19290         (cgraph_clone_inlined_nodes): Update size.
19291         (cgraph_mark_inline_edge): Update size.
19292         (cgraph_estimate_growth): Use size info.
19293         (cgraph_check_inline_limits): Check size.
19294         (cgraph_default_inline_p): Likewise.
19295         (cgraph_edge_badness): Compute badness based on benefit and size cost.
19296         (cgraph_decide_recursive_inlining): Check size.
19297         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
19298         and times.
19299         (cgraph_decide_inlining): Likewise.
19300         (cgraph_decide_inlining_incrementally): Likewise; honor
19301         PARAM_EARLY_INLINING_INSNS.
19302         (likely_eliminated_by_inlining_p): New predicate.
19303         (estimate_function_body_sizes): New function.
19304         (compute_inline_parameters): Use it.
19305         * except.c (must_not_throw_labels): New function.
19306         * except.h (must_not_throw_labels): Declare.
19307         * tree-inline.c (init_inline_once): Kill inlining_weigths
19308         * tree-ssa-structalias.c: Avoid uninitialized warning.
19309         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
19310         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
19311         (PARAM_INLINE_CALL_COST): Remove.
19312         (PARAM_EARLY_INLINING_INSNS): New.
19313
19314 2009-05-15  Richard Guenther  <rguenther@suse.de>
19315
19316         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
19317         not TODO_update_ssa.
19318
19319 2009-05-15  Richard Guenther  <rguenther@suse.de>
19320
19321         PR tree-optimization/39999
19322         * gimple.h (gimple_expr_type): Use the expression type looking
19323         through useless conversions.
19324         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
19325         (vn_nary_op_insert_stmt): Likewise.
19326         (simplify_binary_expression): Likewise.
19327
19328 2009-05-15  Richard Guenther  <rguenther@suse.de>
19329
19330         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
19331         New options, enabled by default.
19332         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
19333         Document.
19334         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
19335         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
19336         * tree-ssa-structalias.c (gate_tree_pta): New function.
19337         (pass_build_alias): Use it.
19338
19339 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
19340
19341         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
19342         recurse on an invariant address if a conversion from a pointer
19343         type to a wider integer type is involved.
19344
19345 2009-05-15  Jan Hubicka  <jh@suse.cz>
19346
19347         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
19348         * cgraph.h (struct inline_summary): New filed self_wize,
19349         size_inlining_benefit, self_time and time_inlining_benefit.
19350         (struct cgraph_global_info): Replace insns by time ans size fields.
19351         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
19352         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
19353         (ipcp_update_callgraph): Do not touch function bodies.
19354         * ipa-inline.c: Include except.h
19355         (MAX_TIME): New constant.
19356         (overall_insns): Remove
19357         (overall_size, max_benefit): New static variables.
19358         (cgraph_estimate_time_after_inlining): New function.
19359         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
19360         (cgraph_clone_inlined_nodes): Update size.
19361         (cgraph_mark_inline_edge): Update size.
19362         (cgraph_estimate_growth): Use size info.
19363         (cgraph_check_inline_limits): Check size.
19364         (cgraph_default_inline_p): Likewise.
19365         (cgraph_edge_badness): Compute badness based on benefit and size cost.
19366         (cgraph_decide_recursive_inlining): Check size.
19367         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
19368         and times.
19369         (cgraph_decide_inlining): Likewise.
19370         (cgraph_decide_inlining_incrementally): Likewise; honor
19371         PARAM_EARLY_INLINING_INSNS.
19372         (likely_eliminated_by_inlining_p): New predicate.
19373         (estimate_function_body_sizes): New function.
19374         (compute_inline_parameters): Use it.
19375         * except.c (must_not_throw_labels): New function.
19376         * except.h (must_not_throw_labels): Declare.
19377         * tree-inline.c (init_inline_once): Kill inlining_weigths
19378         * tree-ssa-structalias.c: Avoid uninitialized warning.
19379         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
19380         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
19381         (PARAM_INLINE_CALL_COST): Remove.
19382         (PARAM_EARLY_INLINING_INSNS): New.
19383         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
19384         (inline-call-cost): Remove.
19385         (early-inlining-insns): New.
19386
19387 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
19388
19389         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
19390         for bounds.
19391         (print_int_cst_bounds_in_octal_p): Likewise.
19392         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
19393         with subtypes.
19394         * dwarf2out.c (base_type_die): Likewise.
19395         (is_subrange_type): Delete.
19396         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
19397         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
19398         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
19399         if the destination type is boolean.
19400         (build_range_check): Do not special-case subtypes.
19401         (fold_sign_changed_comparison): Likewise.
19402         (fold_unary): Likewise.
19403         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
19404         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
19405         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
19406         * tree.c (subrange_type_for_debug_p): New predicate based on the
19407         former is_subrange_type.
19408         * tree.h (subrange_type_for_debug_p): Declare.
19409         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
19410         (convert_affine_scev): Remove call to above function.
19411         (chrec_convert_aggressive): Likewise.
19412         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
19413         false for conversions involving subtypes.
19414         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
19415         (vrp_val_min): Likewise.
19416         (needs_overflow_infinity): Likewise.
19417         (extract_range_from_unary_expr): Likewise.
19418
19419 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
19420
19421         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
19422         * config/frv/frv.c: Likewise.
19423         * config/s390/s390.c: Likewise.
19424         * config/sparc/sparc.h: Likewise.
19425         * config/i386/i386.h: Likewise.
19426         * config/i386/i386.c: Likewise.
19427         * config/crx/crx.c: Likewise.
19428         * config/m68hc11/m68hc11.h: Likewise.
19429         * config/iq2000/iq2000.c: Likewise.
19430         * config/mn10300/mn10300.h: Likewise.
19431         * config/mn10300/mn10300.c: Likewise.
19432         * config/m68k/m68k.c: Likewise.
19433         * config/rs6000/rs6000.c: Likewise.
19434         * config/rs6000/xcoff.h: Likewise.
19435         * config/rs6000/linux64.h: Likewise.
19436         * config/rs6000/sysv4.h: Likewise.
19437         * config/score/score3.c: Likewise.
19438         * config/score/score7.c: Likewise.
19439         * config/score/score.c: Likewise.
19440         * config/arm/arm.md: Likewise.
19441         * config/mips/mips.c: Likewise.
19442         * config/mips/mips.md: Likewise.
19443         * config/bfin/bfin.h: Likewise.
19444         * config/pa/pa.c: Likewise.
19445         * config/pa/constraints.md: Likewise.
19446
19447         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
19448         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
19449         * config/pdp11/pdp11.h: Use memory_address_p instead.
19450
19451 2009-05-14  Ian Lance Taylor  <iant@google.com>
19452
19453         * passes.c (finish_optimization_passes): Change i to int.
19454         * plugin.c (plugins_active_p): Change event to int.
19455         (dump_active_plugins): Likewise.
19456         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
19457         Add cast.
19458         * tree.c (tree_range_check_failed): Change c to unsigned int.
19459         (omp_clause_range_check_failed): Likewise.
19460         (build_common_builtin_nodes): Change mode to int.  Add cast.
19461         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
19462         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
19463
19464         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
19465         ++ or -- with a variable of enum type.
19466
19467 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
19468
19469         PR driver/40144
19470         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
19471
19472 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
19473
19474         * store-motion.c: Do not include params.h
19475         * Makefile.in: Fix dependencies for various files.
19476
19477 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
19478
19479         * auto-inc-dec.c: Fix pass description, remove apparent
19480         accidental duplication.
19481
19482 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19483
19484         PR middle-end/40147
19485         * ipa-utils.h (memory_identifier_string): Moved to ...
19486         * tree.h (memory_identifier_string): Here.  Add GTY(()).
19487
19488 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
19489
19490         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
19491         in the former documentation of...
19492         (GO_IF_LEGITIMATE_ADDRESS): ... this.
19493         * ira-conflicts.c (get_dup_num): Use address_operand.
19494         * targhooks.c (default_legitimate_address_p): New.
19495         * targhooks.h (default_legitimate_address_p): New.
19496         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
19497         Call hook.
19498         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
19499         * target.h (struct target): Add legitimate_address_p.
19500         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
19501         (TARGET_INITIALIZER): Include it.
19502
19503         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19504         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
19505         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
19506         (TARGET_LEGITIMATE_ADDRESS_P): New.
19507
19508         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19509         (REG_OK_STRICT_P): Delete.
19510         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
19511         (frv_legitimate_address_p_1): ... this.
19512         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
19513         (frv_legitimate_address_p_1): ... the renamed old
19514         frv_legitimate_address_p.
19515         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
19516         (TARGET_LEGITIMATE_ADDRESS_P): New.
19517
19518         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19519         * config/s390/s390-protos.h (legitimate_address_p): Remove.
19520         * config/s390/s390.c (legitimate_address_p): Rename to...
19521         (s390_legitimate_address_p): ... this, make static.
19522         (legitimize_address): Adjust call.
19523         (TARGET_LEGITIMATE_ADDRESS_P): New.
19524         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
19525
19526         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19527         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
19528         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
19529         (TARGET_LEGITIMATE_ADDRESS_P): New.
19530
19531         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19532         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
19533         * config/spu/spu.c (spu_legitimate_address): Rename to...
19534         (spu_legitimate_address_p): ... this, make static.
19535         (TARGET_LEGITIMATE_ADDRESS_P): New.
19536
19537         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19538         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
19539         * config/sparc/sparc.c (legitimate_address_p): Rename to...
19540         (sparc_legitimate_address_p): ... this, make static and return bool.
19541         (legitimize_address): Adjust call.
19542         (TARGET_LEGITIMATE_ADDRESS_P): New.
19543
19544         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19545         * config/i386/i386-protos.h (legitimate_address_p): Remove.
19546         * config/i386/i386.c (legitimate_address_p): Rename to...
19547         (ix86_legitimate_address_p): ... this, make static.
19548         (constant_address_p): Move after it, adjust call.
19549         (TARGET_LEGITIMATE_ADDRESS_P): New.
19550
19551         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19552         * config/avr/avr-protos.h (legitimate_address_p): Remove.
19553         * config/avr/avr.c (legitimate_address_p): Rename to...
19554         (avr_legitimate_address_p): ... this, make static.
19555         (legitimize_address): Adjust call.
19556         (TARGET_LEGITIMATE_ADDRESS_P): New.
19557
19558         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19559         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
19560         * config/crx/crx.c (crx_legitimate_address_p): Make static.
19561         (TARGET_LEGITIMATE_ADDRESS_P): New.
19562
19563         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19564         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
19565         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
19566         (TARGET_LEGITIMATE_ADDRESS_P): New.
19567
19568         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19569         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
19570         Remove.
19571         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
19572         Make static.
19573         (TARGET_LEGITIMATE_ADDRESS_P): New.
19574
19575         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19576         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
19577         Remove.
19578         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
19579         Rename to...
19580         (m68hc11_legitimate_address_p): ... this, make static.
19581         (go_if_legitimate_address_internal): Rename to...
19582         (m68hc11_legitimate_address_p_1): ... this.
19583         (legitimize_address): Adjust call.
19584         (TARGET_LEGITIMATE_ADDRESS_P): New.
19585
19586         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19587         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
19588         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
19589         (TARGET_LEGITIMATE_ADDRESS_P): New.
19590
19591         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19592         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
19593         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
19594         (mn10300_legitimate_address_p): ... this, make static.
19595         (TARGET_LEGITIMATE_ADDRESS_P): New.
19596
19597         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19598         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
19599         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
19600         (TARGET_LEGITIMATE_ADDRESS_P): New.
19601
19602         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19603         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
19604         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
19605         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19606         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
19607         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
19608         (rs6000_legitimate_address_p): ... this, make static.
19609         (TARGET_LEGITIMATE_ADDRESS_P): New.
19610         (REG_MODE_OK_FOR_BASE_P): Delete.
19611         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
19612
19613         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19614         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
19615         Delete.
19616         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
19617         static, adjust types.
19618         (TARGET_LEGITIMATE_ADDRESS_P): New.
19619
19620         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19621         * config/score/score.c (score_address_p): Rename to...
19622         (score_legitimate_address_p): ... this.
19623         (TARGET_LEGITIMATE_ADDRESS_P): New.
19624         * config/score/score3.c (score3_address_p): Rename to...
19625         (score3_legitimate_address_p): ... this.
19626         * config/score/score7.c (score7_address_p): Rename to...
19627         (score7_legitimate_address_p): ... this.
19628
19629         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
19630         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
19631         GO_IF_LEGITIMATE_ADDRESS): Delete.
19632         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
19633         thumb2_legitimate_address_p): Delete.
19634         (arm_legitimate_address_p): Rename to...
19635         (arm_legitimate_address_outer_p): ... this.
19636         * config/arm/constraints.md ("Uq"): Adjust call.
19637         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
19638         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
19639         to...
19640         (arm_legitimate_address_outer_p): ... this.
19641         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
19642         static.
19643         (TARGET_LEGITIMATE_ADDRESS_P): New.
19644
19645         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19646         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
19647         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
19648         (TARGET_LEGITIMATE_ADDRESS_P): New.
19649
19650         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19651         * config/vax/vax-protos.h (legitimate_address_p): Remove.
19652         * config/vax/vax.c (legitimate_address_p): Rename to...
19653         (vax_legitimate_address_p): ... this, make static.
19654         (TARGET_LEGITIMATE_ADDRESS_P): New.
19655
19656         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19657         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
19658         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
19659         (TARGET_LEGITIMATE_ADDRESS_P): New.
19660
19661         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19662         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
19663         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
19664         (mmix_legitimate_address_p): ... this, make static.
19665         (TARGET_LEGITIMATE_ADDRESS_P): New.
19666
19667         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19668         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
19669         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
19670         (TARGET_LEGITIMATE_ADDRESS_P): New.
19671
19672 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
19673
19674         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
19675         of MODE_COMPLEX_INT.
19676
19677 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19678
19679         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
19680         LCT_NORMAL in function call.
19681         * mips-tdump.c (print_file_desc): Add cast to enum type.
19682         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
19683         (mark_stabs): Add casts to enum types.
19684         (parse_stabs_common): Add casts to enum types.
19685
19686 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
19687
19688         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
19689         Check for invalid values of LETTER.
19690
19691 2009-05-13  Taras Glek  <tglek@mozilla.com>
19692
19693         * attribs.c (register_attribute): moved out attribute registration
19694         into register_attribute.
19695         * doc/plugins.texi: Documented register_attribute and
19696         PLUGIN_ATTRIBUTES.
19697         * gcc-plugin.h: Added forward decl for register_attribute.
19698         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
19699         * plugin.c (register_callback, invoke_plugin_callbacks): Added
19700         PLUGIN_ATTRIBUTES boilerplate.
19701
19702 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
19703
19704         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
19705         values even in sentinel and empty entries.
19706         (ms_printf_flag_specs):  Likewise.
19707         (ms_scanf_flag_specs):  Likewise.
19708         (ms_strftime_flag_specs):  Likewise.
19709         (ms_print_char_table):  Likewise.
19710         (ms_scan_char_table):  Likewise.
19711         (ms_time_char_table):  Likewise.
19712
19713 2009-05-13  Doug Kwan  <dougkwan@google.com>
19714
19715         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
19716
19717 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
19718
19719         * config/mips/mips.md (store): Add attributes for QI and HI.
19720         Update comment.
19721         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
19722         (truncdi<mode>2): ... this new pattern.
19723
19724 2009-05-13  Brad Hards  <bradh@kde.org>
19725
19726         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
19727
19728 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
19729             Ben Elliston <bje@au.ibm.com>
19730
19731         PR middle-end/40035
19732         * dse.c (check_mem_read_rtx): Guard against width == -1.
19733
19734 2009-05-13  Michael Matz  <matz@suse.de>
19735
19736         PR middle-end/39976
19737         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
19738         (trivially_conflicts_p): New function.
19739         (insert_backedge_copies): Use it.
19740
19741 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
19742
19743         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
19744         (handle_stdc_pragma): Use new enum constant names.
19745         (handle_pragma_float_const_decimal64): Ditto.
19746
19747 2009-05-13  Ian Lance Taylor  <iant@google.com>
19748
19749         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
19750         tree.def.
19751
19752 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
19753
19754         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
19755         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
19756         multilibs.
19757         * config/m68k/m68k.h (FL_UCLINUX): Define.
19758
19759 2009-05-13  Jan Hubicka  <jh@suse.cz>
19760
19761         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
19762
19763 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
19764
19765         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
19766         unless -fschedule-insns is specified.
19767
19768 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
19769
19770         PR target/39561
19771         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
19772         TARGET_EXPAND_CBRANCHDI4.
19773         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
19774         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
19775         (cmpeqdi): Fix comment.
19776
19777 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
19778
19779         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
19780         (sh_legitimate_address_p): Likewise.
19781         * config/sh/sh.c (sh_legitimate_index_p): New.
19782         (sh_legitimate_address_p): Likewise.
19783         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
19784         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
19785         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
19786         (MAYBE_BASE_REGISTER_RTX_P): New macro.
19787         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
19788         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
19789         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
19790         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
19791         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
19792
19793 2009-05-12  Jan Hubicka  <jh@suse.cz>
19794
19795         * tree-inline.c (estimate_operator_cost): Add operands;
19796         when division happens by constant, it is cheap.
19797         (estimate_num_insns): Loads and stores are not having cost of 0;
19798         EH magic stuff is cheap; when computing runtime cost of switch,
19799         use log2 base of amount of its cases; builtin_expect has cost of 0;
19800         compute cost for moving return value of call.
19801         (init_inline_once): Initialize time_based flags.
19802         * tree-inline.h (eni_weights_d): Add time_based flag.
19803
19804 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19805
19806         * df-core.c: Update head documentation.
19807
19808 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
19809
19810         PR bootstrap/40118
19811         * rs6000.c (rs6000_generate_compare): Use op1b instead of
19812         shadowing exisiting variable op1.
19813
19814 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
19815
19816         PR target/37179
19817         * config/i386/driver-i386.c (processor_signatures): New enum.
19818         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
19819         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
19820         processor signature to detect geode processor.
19821
19822 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19823
19824         Revert:
19825
19826         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19827
19828         * optabs.c (prepare_cmp_insn): Temporarily disable test that
19829         causes spurious differences between trunk and cond-optab branch.
19830
19831 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19832
19833         * dojump.c (compare_from_rtx): Delete.
19834         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
19835         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
19836         if the comparison does not satisfy the predicate; test predicates for
19837         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
19838         further if one existing pattern fails.
19839         * expr.h (compare_from_rtx): Delete.
19840         (prepare_operand): Declare it.
19841         * optabs.c: Change "lib call" to "libcall" throughout.
19842         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
19843         HAVE_conditional_trap, emit_cmp_insn): Delete.
19844         (can_compare_p): Delete cmp_optab case.
19845         (prepare_float_lib_cmp): Return an rtx and a machine mode.
19846         Accept other parameters by value.
19847         (prepare_operand): Make non-static.
19848         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
19849         other parameters by value.  Try to widen operands here based on
19850         an optab_methods argument and looking at cbranch_optab.
19851         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
19852         loop.  Use cbranch_optab directly.
19853         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
19854         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
19855         assertion.
19856         (emit_conditional_move, emit_conditional_add): Inline what's needed
19857         of compare_from_rtx, using new prepare_cmp_insn for the rest.
19858         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
19859         with COMPARE.  Move cmov_optab and cstore_optab above
19860         with cbranch_optab, move cmp_optab down with ucmp_optab,
19861         remove tst_otpab.  Do not initialize trap_rtx.
19862         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
19863         for trap code.  Do not check HAVE_conditional_trap.  Use
19864         prepare_cmp_insn.  Accept no predicate for operand 3.
19865         * optabs.h (OTI_cmp): Mark as used only for libcalls.
19866         (OTI_ctrap, ctrap_optab): New.
19867         (tst_optab): Delete.
19868         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
19869         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
19870         with lookup of ctrap_optab.
19871         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
19872         Delete.
19873         (ctrap_optab): New.
19874
19875         * combine.c (combine_simplify_rtx, simplify_set): Do not
19876         special case comparing against zero for cc0 machines.
19877         * simplify-rtx.c (simplify_binary_operation_1): Never remove
19878         COMPARE on cc0 machines.
19879         (simplify_relational_operation): Return a new expression when
19880         a COMPARE could be removed.
19881         * final.c (final_scan_insn): Compare cc_status values
19882         against LHS of a (compare FOO (const_int 0)) cc0 source.
19883         Also check if cc_status.value is the full compare.
19884
19885         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
19886         (cstoreMM4): Document.
19887         (conditional_trap): Document ctrapMM4 instead.
19888         (sync_compare_and_swapMM): Refer to cbranchcc4.
19889         (Dependent Patterns): Eliminate obsolete information referring to
19890         the old jump optimization phase.
19891         (Canonicalization): Include cbranchcc4 case, omit canonicalization
19892         of compares with 0 on cc0 machines.
19893         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
19894         avoiding references to cc0.  Remove text about storing operands
19895         in cmpMM.
19896         * doc/tm.texi (Condition Codes): Include blurb on different
19897         condition code representations, separate into subsections for
19898         CC0, MODE_CC and conditional execution.
19899
19900         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
19901         alpha_emit_setcc): Accept operands and a machine mode.
19902         * config/alpha/alpha.c (alpha_emit_conditional_branch):
19903         Get code/op0/op1 from operands, use machine mode argument
19904         instead of alpha_compare.fp_p.  Emit the branch here.
19905         (alpha_emit_setcc): Likewise, and return boolean.
19906         (alpha_emit_conditional_move): Likewise.  Assert that
19907         cmp_op_mode == cmp_mode, and simplify accordingly.
19908         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
19909         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
19910         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
19911         Delete.
19912         (stack probe test): Use cbranchdi4.
19913         * config/alpha/predicates.md (alpha_cbranch_operator): New.
19914
19915         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
19916         * config/arc/arc.h (movsicc, movsfcc): Use it.
19917         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
19918         (cbranchsi4, cstoresi4): New.
19919         (cmpsi, bCC and sCC expanders): Remove.
19920
19921         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
19922         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
19923         * config/arm/predicates.md (arm_comparison_operator): Only include
19924         floating-point operators if there is a hardware floating-point unit.
19925         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
19926         deferring to cbranch_cc and cstore_cc respectively.
19927         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
19928         cbranch_cc, cstore_cc): New.
19929         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
19930         arm_compare_op1.
19931         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
19932
19933         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
19934         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
19935         as an argument.
19936         (adjust_insn_length): Adjust calls.
19937         (avr_reorg): Handle (compare (foo) (const_int 0)).
19938         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
19939         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
19940         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
19941         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
19942         (bCC): Remove.
19943         (cbranchqi4, cbranchhi4, cbranchsi4): New.
19944         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
19945
19946         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
19947         (cbranchsi4, cstorebi4, cstoresi4): New.
19948         (movbisi): This insn is duplicate, split it to zero_extend.
19949         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
19950         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
19951         (bfin_optimize_loop): Use cbranch expander.
19952         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
19953         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
19954         (bfin_bimode_comparison_operator): ... this.
19955         (bfin_direct_comparison_operator): New.
19956
19957         * config/cris/cris.c (cris_normal_notice_update_cc): Look
19958         inside (compare FOO (const_int 0)).
19959         (cris_rtx_costs): Handle ZERO_EXTRACT.
19960         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
19961         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
19962         (*tstdi_v32): Delete.
19963         (*cmpdi_non_v32): Add M alternative for operand 1.
19964         (cmpsi, cmp<mode>): Make private.
19965         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
19966         with COMPARE.
19967         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
19968
19969         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
19970         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
19971         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
19972         (cc_reg_operand): New.
19973         (any_cond): Delete.
19974         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
19975         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
19976         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
19977         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
19978         crx_expand_scond): Delete.
19979
19980         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
19981         (cbranchsi4): New.
19982         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
19983         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
19984
19985         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
19986         cstoresi4, cstoresf4, cstoredf4): New.
19987         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
19988         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
19989         Receive the entire operands array.
19990         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
19991         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
19992         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
19993         Get test/op0/op1 from the operands array.
19994         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
19995
19996         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
19997         (h8300_expand_store): New.
19998         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
19999         (const_int 0)).
20000         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
20001         (h8300_expand_store): New.
20002         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
20003         or do not try to produce (set (cc0) REG).
20004         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
20005         change a compare into a move to a scratch register.  Disable some
20006         peepholes when comparing with zero.
20007         (tstsi, tsthi, tstsi, cmpqi): Make private.
20008         (cmphi): Delete.
20009         (bCC, sCC): Delete.
20010         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
20011         cstoresi4): New.
20012
20013         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
20014         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
20015         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
20016         (ix86_emit_i387_log1p): Use cbranchxf2.
20017         (ix86_expand_setcc): Return void.
20018         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
20019         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
20020         cmp<MODEF>, cmpcc): Remove.
20021         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
20022         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
20023         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
20024         (sCC and bCC expanders): Remove.
20025         (stack_protect_test): Use cbranchcc4.
20026
20027         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
20028         Delete.
20029         (ia64_expand_compare): Accept three rtx by reference and return void.
20030         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
20031         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
20032         from *expr.  Update *expr with the BImode comparison to do.
20033         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
20034         cmptf, bCC, sCC, conditional_trap): Delete.
20035         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
20036         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
20037         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
20038         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
20039         * config/ia64/predicates.md (ia64_cbranch_operator): New.
20040
20041         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
20042         type of last argument.
20043         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
20044         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
20045         use machine mode argument instead of branch_type.  Remove dead
20046         code for floating-point comparisons.
20047         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
20048         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
20049         Remove.
20050         (cbranchsi4, cstoresi4): New.
20051         * config/iq2000/predicates.md (reg_or_const_operand): New.
20052
20053         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
20054         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
20055         (b<code>_op): Rewrite to...
20056         (bcc_op): ... this, using match_operator.
20057         (s<code>_op): Rewrite to...
20058         (scc_op): ... this, using match_operator.
20059         (s<code>_24_op): Rewrite to...
20060         (scc_op_24): ... this, using match_operator.
20061         (s<code>_<mode>): Rewrite to...
20062         (cstore<mode>4): ... this, using match_operator.
20063         (s<code>_<mode>_24): Rewrite to...
20064         (cstore<mode>4_24): ... this, using match_operator.
20065         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
20066         m32c_unpend_compare, m32c_expand_scc): Delete.
20067         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
20068         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
20069         (m32c_expand_movcc): Change NE to EQ if necessary.
20070         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
20071
20072         * config/m32r/m32r-protos.h (gen_cond_store): New.
20073         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
20074         (gen_cond_store): New, from sCC patterns.
20075         (m32r_expand_block_move): Use cbranchsi4.
20076         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
20077         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
20078         (cbranchsi4, cstoresi4): New.
20079
20080         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
20081         Delete.
20082         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
20083         (m68hc11_notice_update_cc): Look into a compare with 0.
20084         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
20085         Delete.
20086         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
20087         cmphi, cmpqi, bCC): Delete.
20088         (cbranchsi4, cbranchhi4, cbranchqi4): New.
20089         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
20090         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
20091         sets with COMPARE.
20092
20093         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
20094         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
20095         * config/m68k/constraints.md (H): New.
20096         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
20097         the define_insn below.
20098         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
20099         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
20100         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
20101         patterns): Wrap RHS with COMPARE.
20102         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
20103         (*cmpdi_internal): Name this pattern.
20104         (cmpdi): Change to define_insn.
20105         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
20106         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
20107         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
20108         predicate.
20109         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
20110         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
20111         (conditional_trap): Change to...
20112         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
20113         (*conditional_trap): Use the ordered_comparison_operator and
20114         const1_operand predicates.
20115         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
20116         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
20117         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
20118         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
20119
20120         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
20121         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
20122         (mcore_gen_compare): New.
20123         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
20124         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
20125         (mcore_gen_compare): ... this.
20126         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
20127         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
20128         (stack probe pattern): Use cbranchsi4.
20129
20130         * config/mips/predicates.md (mips_cstore_operator): New.
20131         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
20132         * config/mips/mips.md (any_cond): Delete.
20133         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
20134         always succeed.
20135         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
20136         fixuns_truncsfdi2): Use cbranch patterns.
20137         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
20138         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
20139         Adjust call to mips_expand_conditional_branch.
20140         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
20141         cstore<GPR:mode>4.
20142         * config/mips/mips-protos.h (mips_expand_conditional_branch,
20143         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
20144         * config/mips/mips.c (cmp_operands): Delete.
20145         (mips_emit_compare): Get comparison operands from *op0/*op1.
20146         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
20147         that it succeeds.  Use op0/op1 instead of cmp_operands.
20148         (mips_expand_conditional_branch, mips_expand_conditional_move,
20149         mips_expand_conditional_trap): Likewise.
20150         (mips_block_move_loop): Use cbranch patterns.
20151         * config/mips/mips.h (cmp_operands): Delete.
20152
20153         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
20154         (mmix_gen_compare_reg): Just return a register in the right CC mode.
20155         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
20156         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
20157         (*cmpcc_folded): Rename to...
20158         (*cmpdi_folded): this.
20159         (*cmpcc): Rename to...
20160         (*cmps): ... this.
20161         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
20162         (bCC): Remove.
20163         (cbranchdi4): New.
20164         (cbranchdf4): New.  Handle invalid comparisons here.
20165         * config/mmix/predicates.md (float_comparison_operator): New.
20166
20167         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
20168         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
20169         * config/mn10300/mn10300.md (tst): Delete.
20170         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
20171         Name these patterns and wrap RHS in a compare.
20172         (*cmpsi): Make this pattern private.  Include tst.
20173         (*cmpsf): Make this pattern private.
20174         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
20175         (compare with zero peepholes): Likewise.
20176         (bCC): Remove.
20177         (cbranchsi4, cbranchsf4): New.
20178         (casesi): Use cbranchsi4.
20179
20180         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
20181         hppa_branch_type): Delete.
20182         (return_addr_rtx): Use cbranchsi4.
20183         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
20184         Emit CCFPmode comparison here.
20185         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
20186         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
20187         hppa_branch_type): Delete.
20188         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
20189         (movsicc, movdicc): Remove references to hppa_compare_op0,
20190         hppa_compare_op1 and compare_from_rtx.
20191         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
20192         (casesi): Use cbranchsi4.
20193
20194         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
20195         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
20196         * config/pdp11/pdp11.md (register_or_const0_operand): New.
20197         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
20198         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
20199         (bCC): Delete.
20200         (cbranchdf4, cbranchhi4, cbranchqi4): New.
20201         (*branch, *branch_inverted): New.
20202
20203         * config/picochip/picochip.md (cbranchhi4): Use
20204         ordered_comparison_operator.
20205         (cmphi, bCC): Remove.
20206
20207         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
20208         (trap_comparison_operator): Delete.
20209         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
20210         rs6000_emit_cbranch): Accept mode and operands.
20211         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
20212         rs6000_compare_fp_p): Delete.
20213         (rs6000_generate_compare): Accept mode and comparison.  Extract code
20214         and op0/op1 from there.  Replace references to rs6000_compare_op0
20215         and rs6000_compare_op1.
20216         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
20217         extract result from passed operands.
20218         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
20219         extract loc from passed operands.
20220         (rs6000_emit_cmove): Likewise.
20221         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
20222         rs6000_compare_fp_p): Delete.
20223         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
20224         (cbranch<GPR>4, cbranch<FP>4): New.
20225         (cstore<mode>4): New.  Consolidate here all choices about when to use
20226         portable or specialized sCC sequences.
20227         (stack_protect_test): Use cbranchsi4.
20228         (conditional_trap): Replace with ctrap<GPR>4.
20229         (conditional trap insn): Replace trap_comparison_operator with
20230         ordered_comparison_operator.
20231
20232         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
20233         (s390_emit_prologue): Use ctrap.
20234         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
20235         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
20236         New predicates replacing...
20237         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
20238         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
20239         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
20240         (add<mode>cc): Do not use s390_compare_op0/op1.
20241         (s<code>): Change to...
20242         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
20243         (seq): Change to...
20244         (cstorecc4): ... this.  Handle EQ or NE equally.
20245         (*sne): Un-privatize for use in cstorecc4.
20246         (b<code>): Change to...
20247         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
20248         (conditional_trap): Replace with...
20249         (ctrap<GPR>4, ctrap<FP>4): ... these.
20250         (stack_protect): Use cbranchcc4.
20251
20252         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
20253         * config/score/score-protos.h (score_gen_cmp): Delete.
20254         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
20255         (score_block_move-loop): Use cbranchsi4.
20256         * config/score/score.md (cbranchsi4): New.
20257         (cmpsi, bCC): Delete.
20258         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
20259         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
20260         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
20261         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
20262         * config/score/score3.h (score3_gen_cmp): Delete.
20263         * config/score/score7.h (score7_gen_cmp): Delete.
20264
20265         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
20266         (sh_emit_scc_to_t): ... this.  Return void.
20267         (from_compare): Rename to...
20268         (sh_emit_compare_and_branch): ... this.
20269         (sh_emit_compare_and_set): New.
20270         (sh_expand_t_scc): Accept operands.
20271         * config/sh/predicates.md (sh_float_comparison_operator): New.
20272         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
20273         (prepare_scc_operands): Rename to...
20274         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
20275         arguments.
20276         (sh_emit_cheap_store_flag): New.
20277         (sh_emit_set_t_insn): New.
20278         (from_compare): Rename to...
20279         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
20280         handling of TARGET_SH2E floating point to avoid recursive call.
20281         Generate branch here.
20282         (sh_emit_compare_and_set): New.
20283         (sh_expand_t_scc): Get op0/op1 from arguments.
20284         (sh_emit_cheap_store_flag): New.
20285         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
20286         cases.
20287         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
20288         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
20289         (movsicc, movdicc): Do nothing when it recreated operands from
20290         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
20291         prepare_scc_operands (now sh_emit_scc_to_t).
20292         (udivdi3): Use cstoresi4.
20293         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
20294         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
20295         (cbranchint4_media, cbranchfp4_media): New.
20296         (casesi): Use cbranchdi4.
20297         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
20298         Delete.
20299         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
20300         (movnegt): Remove second operand.
20301         (cbranchsf4, cbranchdf4): New.
20302         (stack_protect): Use cbranchdi4/cbranchsi4.
20303
20304         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
20305         (gen_compare_reg): Accept comparison, extract part of it to...
20306         (gen_compare_reg_1): ... this.
20307         (gen_compare_operator): Delete.
20308         (gen_v9_scc): Accept separate destination, comparison code and arms.
20309         Do not use sparc_compare_op0/sparc_compare_op1.
20310         (emit_scc_insn, emit_conditional_branch_insn): New.
20311         (emit_v9_brxx): Make static.  Remove useless assertion.
20312         (sparc_emit_float_lib_cmp): Return RTL instead of calling
20313         emit_cmp_insn.
20314         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
20315         * config/sparc/sparc-protos.h (gen_compare_reg,
20316         sparc_emit_float_lib_cmp): Adjust prototype.
20317         (emit_scc_insn, emit_conditional_branch_insn): New.
20318         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
20319         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
20320         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
20321         iterators to the top.
20322         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
20323         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
20324         snedi_special_trunc): Delete.
20325         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
20326         and snedi_special_trunc.
20327         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
20328         cbranchdi4, cbranch<F:mode>4): New.
20329         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
20330         here.  Use gen_compare_reg instead of gen_compare_operator.
20331         (conditional_trap): Replace with...
20332         (ctrapsi4, ctrapdi4): ... this.
20333         (stack_protect_test): Use cbranchcc4.
20334
20335         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
20336         argument to rtx.
20337         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
20338         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
20339         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
20340         from operands[0] or operands[3] depending on is_set.
20341         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
20342         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
20343         cmpdf, bCC), sCC: Remove.
20344         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
20345         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
20346         cstoredf4): New.
20347         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
20348         spu_emit_branch_or_set.
20349
20350         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
20351         Add two arguments.
20352         * config/stormy16/stormy16.h (xstormy16_compare_op0,
20353         xstormy16_compare_op1): Delete.
20354         * config/stormy16/stormy16.c (xstormy16_compare_op0,
20355         xstormy16_compare_op1): Delete.
20356         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
20357         Adjust calls.
20358         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
20359         (cmphi, cmpsi, bCC): Remove.
20360
20361         * config/v850/v850.md (tstsi, cmpsi): Fold into...
20362         (*cmpsi): ... this one.
20363         (cbranchsi4, cstoresi4): New.
20364         (bCC expanders): Delete.
20365         (sCC insns): Fold into...
20366         (*setcc): ... this one.
20367         (casesi): Do not use gen_cmpsi and gen_bgtu.
20368         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
20369         (movsicc): Simplify.
20370         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
20371
20372         * config/vax/vax-protos.h (cond_name): New.
20373         (vax_output_conditional_branch): Remove.
20374         * config/vax/vax.c (cond_name): New.
20375         (vax_output_conditional_branch): Remove.
20376         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
20377         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
20378         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
20379         (bit<VAXint>): Wrap source with (compare).
20380         (b<code> and following unnamed pattern): Rename to *branch and
20381         *branch_reversed.  Change macroization to match_operator.
20382         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
20383
20384         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
20385         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
20386         Change last argument to machine_mode.
20387         (xtensa_expand_scc): Add machine_mode argument.
20388         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
20389         (gen_conditional_move, xtensa_expand_conditional_branch,
20390         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
20391         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
20392         Adjust operand numbers.
20393         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
20394         Delete.
20395         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
20396         (cmpsi, cmpsf, b<code>, s<code>): Delete.
20397         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
20398
20399 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
20400
20401         * optabs.c (prepare_cmp_insn): Temporarily disable test that
20402         causes spurious differences between trunk and cond-optab branch.
20403
20404 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
20405
20406         PR target/37137
20407         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
20408
20409 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
20410
20411         * tree.c (iterative_hash_pointer): Delete.
20412         (iterative_hash_expr): Short-circuit handling of NULL pointer.
20413         Hash UIDs and versions of SSA names.  Don't special-case built-in
20414         function declarations.
20415
20416 2009-05-11  Ian Lance Taylor  <iant@google.com>
20417
20418         PR bootstrap/40103
20419         * graphite.c: Force -Wc++-compat to only be a warning before
20420         #including "cloog/cloog.h".
20421
20422 2009-05-11  Martin Jambor  <mjambor@suse.cz>
20423
20424         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
20425
20426 2009-05-11  Jan Hubicka  <jh@suse.cz>
20427
20428         * tree-ssa-loop-ivcanon.c: Include target.h
20429         (struct loop_size): new structure.
20430         (constant_after_peeling): New predicate.
20431         (tree_estimate_loop_size): New function.
20432         (estimated_unrolled_size): Rewrite for new estimates.
20433         (try_unroll_loop_completely): Use new estimates.
20434         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
20435
20436 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20437
20438         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
20439         libcpp interface change.
20440         (spu_macro_to_expand): Likewise.
20441
20442 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
20443
20444         PR tree-optimization/40026
20445         * gimplify.c (gimplify_init_constructor): Change initial conditional
20446         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
20447         optimize_compound_literals_in_ctor.
20448
20449 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
20450
20451         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
20452         New devices.
20453         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
20454
20455 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
20456
20457         * tree-vect-data-refs.c (vect_analyze_group_access): Use
20458         HOST_WIDE_INT for gap.
20459
20460 2009-05-11  Ira Rosen  <irar@il.ibm.com>
20461
20462         PR tree-optimization/40074
20463         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
20464         account in group size and step comparison.
20465
20466 2009-05-11  Richard Guenther  <rguenther@suse.de>
20467
20468         * passes.c (init_optimization_passes): Strip now incorrect comment.
20469         (execute_function_todo): Do not set PROP_alias.
20470         * tree-pass.h (PROP_alias): Remove.
20471         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
20472         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
20473         * tree-nrv.c (pass_return_slot): Likewise.
20474         * tree-object-size.c (pass_object_sizes): Likewise.
20475         * tree-ssa-dom.c (pass_dominator): Likewise.
20476         (pass_phi_only_cprop): Likewise.
20477         * tree-ssa-dse.c (pass_dse): Likewise.
20478         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
20479         (pass_cselim): Likewise.
20480         * tree-ssa-pre.c (pass_pre): Likewise.
20481         (pass_fre): Likewise.
20482         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
20483         * tree-ssa-sink.c (pass_sink_code): Likewise.
20484         * tree-stdarg.c (pass_stdarg): Likewise.
20485         * tree-tailcall.c (pass_tail_calls): Likewise.
20486         * tree-vrp.c (pass_vrp): Likewise.
20487
20488 2009-05-10  Ian Lance Taylor  <iant@google.com>
20489
20490         * basic-block.h (enum profile_status): Break out of struct
20491         control_flow_graph.
20492         * cgraph.h (struct inline_summary): Break out of struct
20493         cgraph_local_info.
20494         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
20495         of struct cgraph_order_sort.
20496         * combine.c (enum undo_kind): New enum, broken out of struct undo.
20497         * cse.c (struct branch_path): Break out of struct
20498         cse_basic_block_data.
20499         * except.h (enum eh_region_type): Break out of struct eh_region.
20500         * gcc.c (enum add_del): Break out of struct modify_target.
20501         * genrecog.c (enum decision_type): Break out of struct decision_test.
20502         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
20503         ggc_pch_data.
20504         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
20505         * regmove.c (enum match_use): New enum, broken out of struct match.
20506         * sched-int.h (enum post_call_group): New enum, broken out of
20507         struct deps.
20508         (struct deps_reg): Break out of struct deps.
20509         * target.h (struct asm_int_op): Break out of struct gcc_target.
20510         * tree-eh.c (struct goto_queue_node): Break out of struct
20511         leh_tf_state.
20512         * tree-inline.h (enum copy_body_cge_which): Break out of
20513         copy_body_data.
20514         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
20515
20516         * c-decl.c (in_struct, struct_types): New static variables.
20517         (pushtag): Add loc parameter.  Change all callers.
20518         (lookup_tag): Add ploc parameter.  Change all callers.
20519         (check_compound_literal_type): New function.
20520         (parser_xref_tag): Add loc parameter.  Change all callers.  If
20521         -Wc++-compat, warn about struct/union/enum types defined within a
20522         struct or union.
20523         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
20524         and loc parameters.  Change all callers.  Change error calls to
20525         error_at, using loc.  For a redefinition, if the location of the
20526         original definition is known, report it.  Set in_struct and
20527         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
20528         (finish_struct): Add new parameters enclosing_in_struct and
20529         enclosing_struct_types.  Change all callers.  Set
20530         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
20531         in the struct.  If in a struct, add this struct to struct_types.
20532         (start_enum): Add loc parameter.  Change all callers.  Use
20533         error_at for errors, using loc.  For a redefinition, if the
20534         location of the original definition is known, report it.  If in a
20535         struct, add this enum type to struct_types.  If -Wc++-compat warn
20536         if in sizeof, typeof, or alignof.
20537         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
20538         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
20539         (c_parser_enum_specifier): Get enum location for start_enum.
20540         (c_parser_struct_or_union_specifier): Get struct location for
20541         start_struct.  Save in_struct and struct_types status between
20542         start_struct and finish_struct.
20543         (c_parser_cast_expression): Get location of cast.
20544         (c_parser_alignof_expression): Get location of type.
20545         (c_parser_postfix_expression): Likewise.
20546         (c_parser_postfix_expression_after_paren_type): Add type_loc
20547         parameter.  Change all callers.  Call check_compound_literal_type.
20548         Use type_loc for error about variable size type.
20549         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
20550         of an enum constant from an enum type defined in a struct or union.
20551         (c_cast_expr): Add loc parameter.  Change all callers.  If
20552         -Wc++-compat, warn about defining a type in a cast.
20553         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
20554         (start_enum, start_struct, finish_struct): Update declarations.
20555         (parser_xref_tag, c_cast_expr): Update declarations.
20556         (check_compound_literal_type): Declare.
20557
20558 2009-05-11  Ben Elliston  <bje@au.ibm.com>
20559
20560         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
20561         for recent libcpp interface change.
20562         (rs6000_macro_to_expand): Likewise.
20563
20564 2009-05-10  Michael Matz  <matz@suse.de>
20565
20566         PR target/40031
20567         * config/arm/arm.c (require_pic_register): Emit on entry edge,
20568         not at entry of function.
20569
20570 2009-05-10  Richard Guenther  <rguenther@suse.de>
20571
20572         PR tree-optimization/40081
20573         Revert
20574         * tree-sra.c (instantiate_element): Instantiate scalar replacements
20575         using the main variant of the element type.  Do not fiddle with
20576         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
20577
20578         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
20579         structs with volatile fields.
20580
20581 2009-05-10  Jan Hubicka  <jh@suse.cz>
20582
20583         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
20584         (estimate_move_cost): Assert that it does not get called for
20585         VOID_TYPE_P.
20586         (estimate_num_insns): Skip VOID types in argument handling.
20587         (optimize_inline_calls): Delete unreachable blocks and verify that
20588         callgraph is valid.
20589
20590 2009-05-10  Jan Hubicka  <jh@suse.cz>
20591
20592         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
20593         * cgraph.c (cgraph_mark_address_taken_node): New function.
20594         (dump_cgraph_node): Dump new flag.
20595         * cgraph.h (struct cgraph_node): Add address_taken.
20596         (cgraph_mark_address_taken_node): New function.
20597         * ipa.c (cgraph_postorder): Prioritize functions with address taken
20598         since new direct calls can be born.
20599
20600 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
20601
20602         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
20603         tok->val.node.node.
20604
20605 2009-05-10  Jan Hubicka  <jh@suse.cz>
20606
20607         PR middle-end/40084
20608         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
20609         argument; rewrite.
20610         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
20611         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
20612         * tree-inline.c (copy_bb): Set frequency correctly.
20613         (fold_marked_statements): Update call to
20614         cgraph_update_edges_for_call_stmt.
20615
20616 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
20617
20618         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
20619         identifiers in diagnostics.
20620         * config/arm/arm.c (arm_handle_fndecl_attribute,
20621         arm_handle_isr_attribute): Likewise.
20622         * config/avr/avr.c (avr_handle_progmem_attribute,
20623         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
20624         * config/bfin/bfin.c (handle_int_attribute,
20625         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
20626         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
20627         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
20628         Likewise.
20629         * config/darwin.c (darwin_handle_kext_attribute,
20630         darwin_handle_weak_import_attribute): Likewise.
20631         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
20632         h8300_handle_eightbit_data_attribute,
20633         h8300_handle_tiny_data_attribute): Likewise.
20634         * config/i386/i386.c (ix86_handle_cconv_attribute,
20635         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
20636         * config/i386/winnt.c (ix86_handle_shared_attribute,
20637         ix86_handle_selectany_attribute): Likewise.
20638         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
20639         * config/m32c/m32c.c (function_vector_handler): Likewise.
20640         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
20641         m68hc11_handle_fntype_attribute): Likewise.
20642         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
20643         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
20644         * config/mips/mips.c (mips_insert_attributes,
20645         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
20646         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
20647         rs6000_handle_struct_attribute): Likewise.
20648         * config/sh/sh.c (sh_insert_attributes,
20649         sh_handle_resbank_handler_attribute,
20650         sh_handle_interrupt_handler_attribute,
20651         sh2a_handle_function_vector_handler_attribute,
20652         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
20653         Likewise.
20654         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
20655         * config/spu/spu.c (spu_handle_fndecl_attribute,
20656         spu_handle_vector_attribute): Likewise.
20657         * config/stormy16/stormy16.c
20658         (xstormy16_handle_interrupt_attribute): Likewise.
20659         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
20660         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
20661
20662 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
20663
20664         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
20665         (pp_translate_identifiers): New.
20666         (pp_identifier): Only conditionally translate identifier to locale
20667         character set.
20668         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
20669         (pp_base_tree_identifier): Only conditionally translate identifier
20670         to locale character set.
20671         * c-pretty-print.c (M_): Define.
20672         (pp_c_type_specifier, pp_c_primary_expression): Mark English
20673         fragments for conditional translation with M_.
20674         * tree-pretty-print.c (maybe_init_pretty_print): Disable
20675         identifier translation.
20676
20677 2009-05-10  Richard Guenther  <rguenther@suse.de>
20678
20679         PR tree-optimization/40081
20680         * tree-sra.c (instantiate_element): Instantiate scalar replacements
20681         using the main variant of the element type.  Do not fiddle with
20682         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
20683
20684 2009-05-09  Jan Hubicka  <jh@suse.cz>
20685
20686         PR middle-end/40080
20687         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
20688         indirect calls; verify cgraph afterwards.
20689
20690 2009-05-09  Jan Hubicka  <jh@suse.cz>
20691
20692         PR bootstrap/40082
20693         * ipa.c (update_inlined_to_pointer): New function.
20694         (cgraph_remove_unreachable_nodes): Use it.
20695
20696 2009-05-09  Jan Hubicka  <jh@suse.cz>
20697
20698         * tree-eh.c (struct leh_state): Remove prev_try.
20699         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
20700         not track prev_try.
20701         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
20702         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
20703         remove_eh_handler_and_replace, foreach_reachable_handler,
20704         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
20705         * except.h (struct eh_region): Remove eh_region_u_cleanup.
20706         (gen_eh_region_cleanup): Update prototype.
20707
20708 2009-05-09  Jan Hubicka  <jh@suse.cz>
20709
20710         PR middle-end/40043
20711         * except.c (copy_eh_region): Always set prev_try.
20712         (redirect_eh_edge_to_label): Find outer try.
20713         (foreach_reachable_handler): When looking for prev try
20714         handle case where previous try is not going to be taken.
20715
20716 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
20717
20718         PR tree-optimization/40049
20719         * tree-vect-stmts.c (vectorizable_operation): If the machine has
20720         only vector/vector shifts, convert the type of the constant to the
20721         appropriate type to avoid building incorrect trees, which
20722         eventually have problems with garbage collection.
20723
20724 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
20725
20726         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
20727         -1 for complex floating-point types if honoring signed zeros.
20728
20729 2009-05-08  Jan Hubicka  <jh@suse.cz>
20730
20731         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
20732         argument; handle correctly when profile is absent.
20733         (build_cgraph_edges): Update.
20734         (rebuild_cgraph_edges): Update.
20735         * cgraph.c: Do not include varray.h.
20736         (cgraph_set_call_stmt_including_clones): New function.
20737         (cgraph_create_edge_including_clones): Likewise
20738         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
20739         (cgraph_update_edges_for_call_stmt): Handle clones.
20740         (cgraph_remove_node): Handle clone tree.
20741         (cgraph_remove_node_and_inline_clones): New function.
20742         (dump_cgraph_node): Dump clone tree.
20743         (cgraph_clone_node): Handle clone tree.
20744         (clone_function_name): Bring here from tree-inline.c.
20745         (cgraph_create_virtual_clone): New function.
20746         * cgraph.h (ipa_replace_map): Move here from ipa.h.
20747         (cgraph_clone_info): New function.
20748         (strut cgraph_node): Add clone_info and new clone tree pointers.
20749         (cgraph_remove_node_and_inline_clones,
20750         cgraph_set_call_stmt_including_clones,
20751         cgraph_create_edge_including_clones,
20752         cgraph_create_virtual_clone): Declare.
20753         (cgraph_function_versioning): Use VEC argument.
20754         (compute_call_stmt_bb_frequency): Update prototype.
20755         (cgraph_materialize_all_clones): New function.
20756         * ipa-cp.c (ipcp_update_cloned_node): Remove.
20757         (ipcp_create_replace_map): Update to VECtors.
20758         (ipcp_update_callgraph): Use virtual clones.
20759         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
20760         (ipcp_update_profiling): Do not update local profiling.
20761         (ipcp_insert_stage): Use VECtors and virtual clones.
20762         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
20763         (clone_of_p): New function.
20764         (cgraph_preserve_function_body_p): Use clone tree.
20765         (cgraph_optimize): Materialize clones.
20766         (cgraph_function_versioning): Update for VECtors.
20767         (save_inline_function_body): Use clone tree.
20768         (cgraph_materialize_clone): New function.
20769         (cgraph_materialize_all_clones): Likewise.
20770         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
20771         * ipa.c: Include gimple.h.
20772         (cgraph_remove_unreachable_nodes): Use clone tree.
20773         * ipa-prop.c (ipa_note_param_call): Update call to
20774         compute_call_stmt_bb_frequencycall.
20775         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
20776         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
20777         (copy_bb): Handle updating of clone tree; add new edge when new call
20778         appears.
20779         (expand_call_inline): Be strict about every call having edge.
20780         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
20781         (delete_unreachable_blocks_update_callgraph): New function.
20782         (tree_function_versioning): Use VECtors; always remove unreachable
20783         blocks and fold conditionals.
20784         * tree-inline.h: Do not include varray.h.
20785         (tree_function_versioning): Remove.
20786         * Makefile.in (GTFILES): Remove tree-inline.c
20787         * passes.c (do_per_function): Do only functions having body.
20788         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
20789         tree.
20790
20791 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
20792             Andrew Morrow  <acm@google.com>
20793
20794         PR c/36892
20795         * c-common.c (c_common_attribute_table): Permit deprecated
20796         attribute to take an optional argument.
20797         (handle_deprecated_attribute): If the optional argument to
20798         __attribute__((deprecated)) is not a string ignore the attribute
20799         and emit a warning.
20800
20801         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
20802         * c-typeck.c (build_component_ref): Likewise.
20803         (build_external_ref): Likewise.
20804
20805         * toplev.c (warn_deprecated_use): Add an attribute argument.
20806         Emit the message associated with __attribute__((deprecated)).
20807
20808         * toplev.h (warn_deprecated_use): Updated.
20809
20810         * doc/extend.texi: Document new optional parameter to
20811         __attribute__((deprecated))
20812
20813 2009-05-08  Michael Eager <eager@eagercon.com>
20814
20815         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
20816         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
20817
20818 2009-05-08  Richard Guenther  <rguenther@suse.de>
20819
20820         PR tree-optimization/40062
20821         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
20822         Avoid exponential behavior.
20823
20824 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
20825
20826         PR rtl-optimization/33928
20827         PR 26854
20828         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
20829         process_uses, build_single_def_use_links): New.
20830         (update_df): Update use_def_ref.
20831         (forward_propagate_into): Use get_def_for_use instead of use-def
20832         chains.
20833         (fwprop_init): Call build_single_def_use_links and let it initialize
20834         dataflow.
20835         (fwprop_done): Free use_def_ref.
20836         (fwprop_addr): Eliminate duplicate call to df_set_flags.
20837         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
20838         df_rd_simulate_one_insn): New.
20839         (df_rd_bb_local_compute_process_def): Update head comment.
20840         (df_chain_create_bb): Use the new RD simulation functions.
20841         * df.h (df_rd_simulate_artificial_defs_at_top,
20842         df_rd_simulate_one_insn): New.
20843         * opts.c (decode_options): Enable fwprop at -O1.
20844         * doc/invoke.texi (-fforward-propagate): Document this.
20845
20846 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
20847
20848         PR c/24581
20849         * c-typeck.c (build_binary_op): Handle arithmetic between one real
20850         and one complex operand specially.
20851         * tree-complex.c (some_nonzerop): Do not identify a real value as
20852         zero if flag_signed_zeros.
20853
20854 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
20855
20856         PR rtl-optimization/33928
20857         * loop-invariant.c (record_use): Fix && vs. || mishap.
20858
20859 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
20860
20861         PR rtl-optimization/33928
20862         * loop-invariant.c (struct use): Add addr_use_p.
20863         (struct def): Add n_addr_uses.
20864         (struct invariant): Add cheap_address.
20865         (create_new_invariant): Set cheap_address.
20866         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
20867         (record_uses): Pass df_ref to record_use.
20868         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
20869         used only as such.
20870
20871 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
20872
20873         * config/sh/sh.c: Do not include c-pragma.h.
20874
20875 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20876
20877         * config/spu/spu.c: Remove include of c-common.h.
20878
20879 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
20880
20881         PR c/39037
20882         * c-common.h (mark_valid_location_for_stdc_pragma,
20883         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
20884         clear_float_const_decimal64, float_const_decimal64_p): New.
20885         * c.opt (Wunsuffixed-float-constants): New.
20886         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
20887         unsuffixed float constant, handle new warning.
20888         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
20889         * c-decl.c (c_scope): New flag float_const_decimal64.
20890         (set_float_const_decimal64, clear_float_const_decimal64,
20891         float_const_decimal64_p): New.
20892         (push_scope): Set new flag.
20893         * c-parser.c (c_parser_translation_unit): Mark when it's valid
20894         to use STDC pragmas.
20895         (c_parser_external_declaration): Ditto.
20896         (c_parser_compound_statement_nostart): Ditto.
20897         * c-pragma.c (valid_location_for_stdc_pragma,
20898         mark_valid_location_for_stdc_pragma,
20899         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
20900         handle_pragma_float_const_decimal64): New.
20901         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
20902         * cp/semantics.c (valid_location_for_stdc_pragma_p,
20903         set_float_const_decimal64, clear_float_const_decimal64,
20904         float_const_decimal64_p): New dummy functions.
20905         * doc/extend.texi (Decimal Float): Remove statement that the
20906         pragma, and suffix for double constants, are not supported.
20907         * doc/invoke.texi (Warning Options): List new option.
20908         (-Wunsuffixed-float-constants): New.
20909
20910 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
20911
20912         * config/i386/i386.c: Do not include c-common.h.
20913
20914 2009-05-07  Mark Heffernan  <meheff@google.com>
20915
20916         * doc/invoke.texi (Debugging Options): Document change of debugging
20917         dump location.
20918         * opts.c (decode_options): Make dump_base_name relative to
20919         aux_base_name directory.
20920
20921 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
20922
20923         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
20924         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
20925
20926 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
20927
20928         * Makefile.in (install-plugin): Simplify a bit.
20929
20930 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
20931
20932         * Makefile.in (OBJS-common): Add regcprop.o.
20933         (regcprop.o): New.
20934         * timevar.def (TV_CPROP_REGISTERS): New.
20935         * regrename.c (regrename_optimize): Return 0.
20936         (rest_of_handle_regrename): Delete.
20937         (pass_rename_registers): Point to regrename_optimize.
20938         (struct value_data_entry, struct value_data,
20939         kill_value_one_regno, kill_value_regno, kill_value,
20940         set_value_regno, init_value_data, kill_clobbered_value,
20941         kill_set_value, kill_autoinc_value, copy_value,
20942         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
20943         replace_oldest_value_reg, replace_oldest_value_addr,
20944         replace_oldest_value_mem, copyprop_hardreg_forward_1,
20945         debug_value_data, validate_value_data): Move...
20946         * regcprop.c: ... here.
20947         (rest_of_handle_cprop): Delete.
20948         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
20949
20950 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
20951
20952         PR middle-end/40057
20953         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
20954         GEN_INT for 1 << bitnum.
20955         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
20956         build_int_cst_type.
20957
20958 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
20959
20960         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
20961         Remove wrong description of "nand" operation.
20962
20963 2009-05-06  Richard Guenther  <rguenther@suse.de>
20964             Adam Nemet  <anemet@caviumnetworks.com>
20965
20966         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
20967         comment.  Add that if LHS is not a gimple register, then RHS1 has
20968         to be a single object (GIMPLE_SINGLE_RHS).
20969
20970 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
20971
20972         * expr.c (get_def_for_expr): Move it up in the file.
20973         (store_field): When expanding a bit-field store, look at the
20974         defining gimple stmt for the masking conversion.
20975
20976 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
20977
20978         PR middle-end/39986
20979         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
20980         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
20981         32-bit memcpy into long.
20982
20983 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
20984
20985         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
20986         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
20987         new_reg_loc_descr.
20988         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
20989         instead of appending DW_OP_deref*.
20990
20991 2009-05-06  Michael Matz  <matz@suse.de>
20992
20993         PR middle-end/40021
20994         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
20995         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
20996
20997 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
20998
20999         * Makefile.in (install-plugin): Fix srcdir handling.
21000
21001 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
21002
21003         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
21004         when processing for not_regs_needed bitmap.
21005         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
21006         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
21007         handling it for rhs.
21008
21009 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
21010
21011         * config/i386/i386.md (unnamed inc/dec peephole): Use
21012         optimize_insn_for_size_p instead of optimize_size.
21013         * config/i386/predicates.md (incdec_operand): Likewise.
21014         (aligned_operand): Likewise.
21015         * config/i386/sse.md (divv8sf3): Likewise.
21016         (sqrtv8sf2): Likewise.
21017
21018 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
21019
21020         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
21021
21022         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
21023
21024 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
21025
21026         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
21027         ssemodesuffixf2c with avxmodesuffixf2c.
21028
21029 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
21030
21031         PR c/40032
21032         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
21033
21034 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
21035
21036         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
21037         (struct tree_base): Adjust spacing for 8 bit boundaries.
21038         (struct tree_decl_common): Add decl_by_reference_flag bit.
21039         (DECL_BY_REFERENCE): Adjust.
21040         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
21041         print DECL_BY_REFERENCE bit.
21042         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
21043         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
21044         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
21045         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
21046         unconditionally.
21047
21048         PR middle-end/39666
21049         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
21050         range of the type, but default label is missing, add it with one
21051         of the existing labels instead of adding a new label for it.
21052
21053 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
21054
21055         * dwarf.h: Remove.
21056
21057 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
21058
21059         * Makefile.in (enable_plugin, plugin_includedir): New.
21060         (install): Depend on install-plugin.
21061         (PLUGIN_HEADERS): New.
21062         (install-plugin): New.
21063         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
21064
21065 2009-05-05  Richard Guenther  <rguenther@suse.de>
21066
21067         PR tree-optimization/40022
21068         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
21069         the only vuse.
21070         (phivn_valid_p): Fix tuplification error, simplify.
21071         (phiprop_insert_phi): Add dumps.
21072         (propagate_with_phi): Simplify.
21073
21074 2009-05-05  Richard Guenther  <rguenther@suse.de>
21075
21076         PR middle-end/40023
21077         * builtins.c (gimplify_va_arg_expr): Properly build the address.
21078
21079 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
21080
21081         * tree.h (strip_float_extensions): Remove duplicate declaration.
21082         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
21083         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
21084         block_ultimate_origin): Rearrange the declarations line to match the
21085         comment that indicates the .c file which the functions are defined.
21086         (dwarf2out_*, set_decl_rtl): Add comment.
21087         (get_base_address): Adjust comment.
21088         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
21089         declarations line and add comment.
21090         (is_builtin_name): Add blank after function name, for clarity.
21091
21092 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
21093
21094         * attribs.c (decl_attributes): Use %qE for identifiers in
21095         diagnostics.
21096         * cgraphunit.c (verify_cgraph_node): Translate function names to
21097         locale character set in diagnostics.
21098         * coverage.c (get_coverage_counts): Use %qE for identifiers in
21099         diagnostics.
21100         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
21101         Document that functions are named in UTF-8.
21102         * expr.c (expand_expr_real_1): Translate function names to locale
21103         character set in diagnostics.
21104         * gimplify.c (omp_notice_variable, omp_is_private,
21105         gimplify_scan_omp_clauses): Use %qE for identifiers in
21106         diagnostics.
21107         * langhooks.c (lhd_print_error_function): Translate function names
21108         to locale character set.
21109         * langhooks.h (decl_printable_name): Document that return value is
21110         in internal character set.
21111         * stmt.c: Include pretty-print.h
21112         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
21113         diagnostics.
21114         (resolve_operand_name_1): Translate named operand name to locale
21115         character set.
21116         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
21117         diagnostics.
21118         * toplev.c (announce_function): Translate function names to locale
21119         character set.
21120         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
21121         (default_tree_printer): Use pp_identifier or translate identifiers
21122         to locale character set.  Mark "<anonymous>" for translation.
21123         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
21124         for identifiers in diagnostics.
21125         * tree.c (handle_dll_attribute): Use %qE for identifiers in
21126         diagnostics.
21127         * varasm.c (output_constructor): Use %qE for identifiers in
21128         diagnostics.
21129
21130 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
21131
21132         * configure.ac: use ` ` instead of $()
21133         * configure: Regenerate.
21134
21135 2009-05-05  Ben Elliston  <bje@au.ibm.com>
21136
21137         * config/pa/linux-atomic.c: Eliminate conditional include of
21138         errno.h on non-LP64 systems to simplify build requirements.
21139
21140 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
21141
21142         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
21143         diagnostics.
21144         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
21145         and pass value to identifier_to_locale.
21146         (warn_variable_length_array): Make name a tree.
21147         (grokdeclarator): Separate diagnostic texts for named and unnamed
21148         declarators.  Use %qE for named declarators.
21149         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
21150         diagnostics.
21151         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
21152         identifiers in diagnostics.
21153         * c-typeck.c (push_member_name, start_init): Pass identifiers to
21154         identifier_to_locale.  Mark "anonymous" strings for translation.
21155
21156 2009-05-04  Michael Eager <eager@eagercon.com>
21157
21158         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
21159         address for DImode/DFmode only if double-precision FP regs.
21160
21161 2009-05-04  Michael Eager <eager@eagercon.com>
21162
21163         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
21164         TARGET_SINGLE_FLOAT check.
21165
21166 2009-05-04  Michael Eager <eager@eagercon.com>
21167
21168         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
21169
21170 2009-05-04  Michael Eager <eager@eagercon.com>
21171
21172         * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
21173         * config/rs6000/t-xilinx: New
21174
21175 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
21176
21177         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
21178         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
21179         * gcc/explow.c (memory_address): Use target hook.
21180         * gcc/targhooks.c (default_legitimize_address): New.
21181         * gcc/targhooks.h (default_legitimize_address): New.
21182         * gcc/target.h (legitimize_address): New.
21183         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
21184         (TARGET_INITIALIZER): Include it.
21185         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
21186
21187         * config/bfin/bfin-protos.h (legitimize_address): Remove.
21188         * config/bfin/bfin.c (legitimize_address): Remove.
21189         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
21190         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
21191         Remove.
21192         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
21193         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
21194
21195         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
21196         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
21197         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
21198         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
21199         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
21200         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
21201         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
21202         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
21203         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
21204         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
21205         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
21206         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
21207         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
21208         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
21209         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
21210         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
21211         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
21212         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
21213         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
21214         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
21215         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
21216         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
21217         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
21218
21219         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
21220         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
21221         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
21222         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
21223         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
21224         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
21225         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
21226         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
21227         (thumb_legitimize_address): Delete.
21228         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
21229         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
21230         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
21231         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
21232         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
21233         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
21234         Delete.
21235         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
21236         Delete.
21237
21238         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
21239         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
21240         * config/m32r/m32r.c (m32r_legitimize_address): New.
21241         * config/m68k/m68k.c (m68k_legitimize_address): New.
21242         * config/score/score.c (score_legitimize_address): Standardize.
21243         * config/score/score3.c (score3_legitimize_address): Standardize.
21244         * config/score/score3.h (score3_legitimize_address): Adjust.
21245         * config/score/score7.c (score7_legitimize_address): Standardize.
21246         * config/score/score7.h (score7_legitimize_address): Adjust.
21247         * config/sh/sh.c (sh_legitimize_address): New.
21248         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
21249
21250         * gcc/config/s390/s390.c (legitimize_address): Rename to...
21251         (s390_legitimize_address): ... this.
21252         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
21253         (sparc_legitimize_address): ... this.
21254         * gcc/config/i386/i386.c (legitimize_address): Rename to...
21255         (ix86_legitimize_address): ... this.
21256         * gcc/config/avr/avr.c (legitimize_address): Rename to...
21257         (avr_legitimize_address): ... this.
21258         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
21259         (mn10300_legitimize_address): ... this.
21260         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
21261         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
21262         (alpha_expand_mov): Adjust call.
21263
21264         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
21265         * config/spu/spu.c (spu_legitimize_address): Likewise.
21266         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
21267         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
21268
21269 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
21270
21271         * intl.c (locale_encoding, locale_utf8): New.
21272         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
21273         * intl.h (locale_encoding, locale_utf8): Declare.
21274         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
21275         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
21276         New.
21277         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
21278         argument.
21279         (pp_tree_identifier): Define to call pp_base_tree_identifier.
21280         (pp_base_tree_identifier): Declare as function.
21281         (identifier_to_locale): Declare.
21282         * Makefile.in (pretty-print.o): Update dependencies.
21283         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
21284
21285 2009-05-04  Richard Guenther  <rguenther@suse.de>
21286
21287         PR middle-end/40015
21288         * builtins.c (fold_builtin_memory_op): Do not decay to element
21289         type if the size matches the whole array.
21290
21291 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
21292
21293         * expmed.c (synth_mult): When trying out a shift, pass the result
21294         of a signed shift.
21295
21296 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
21297
21298         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
21299         (shiftsub1_cost): New.
21300         (init_expmed): Compute shiftsub1_cost.
21301         (synth_mult): Optimize multiplications by constants of the form
21302         -(2^^m-1) for some constant positive integer m.
21303
21304 2009-05-03  Richard Guenther  <rguenther@suse.de>
21305
21306         PR c/39983
21307         * c-typeck.c (array_to_pointer_conversion): Do not built
21308         ADDR_EXPRs of arrays of pointer-to-element type.
21309         * c-gimplify.c (c_gimplify_expr): Revert change fixing
21310         up wrong ADDR_EXPRs after-the-fact.
21311         * c-common.c (strict_aliasing_warning): Strip pointer
21312         conversions for obtaining the original type.
21313         * builtins.c (fold_builtin_memset): Handle array types.
21314         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
21315         and array types
21316
21317 2009-05-03  Richard Guenther  <rguenther@suse.de>
21318
21319         PR middle-end/23329
21320         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
21321         Do not lose casts from array types with unknown extent to array
21322         types with known extent.
21323         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
21324         alias set compatibility.
21325
21326 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21327
21328         * flags.h (extra_warnings): Delete.
21329         * toplev.c (process_options): Handle Wuninitialized here.
21330         * opts.c (extra_warnings): Delete.
21331         (set_Wextra): Delete.
21332         (common_handle_option): -Wextra can be handled automatically.
21333         * c-opts.c (c_common_handle_option): Delete obsolete code.
21334         (c_common_post_options): Simplify comment.
21335         * common.opt (W): Add Var.
21336         (Wextra): Add Var.
21337         (Wuninitialized): Initialize to -1.
21338
21339 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
21340             Richard Guenther  <rguenther@suse.de>
21341
21342         * expr.c (get_def_for_expr): New function.
21343         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
21344         SSA rather than trees.
21345         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
21346         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
21347
21348 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
21349
21350         * c-common.c (reswords): Add _Imaginary.
21351         * c-common.c (enum rid): Add RID_IMAGINARY.
21352
21353 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
21354
21355         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
21356         Patch by Richard Guenther.
21357
21358 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
21359
21360         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
21361         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
21362         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
21363         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
21364         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
21365         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
21366         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
21367         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
21368         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
21369         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
21370         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
21371         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
21372         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
21373         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
21374         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
21375         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
21376         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
21377         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
21378
21379 2009-05-02  Richard Guenther  <rguenther@suse.de>
21380
21381         PR tree-optimization/39940
21382         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
21383         doing so.
21384
21385 2009-05-02  Richard Guenther  <rguenther@suse.de>
21386
21387         PR middle-end/40001
21388         * tree-ssa.c (execute_update_addresses_taken): Properly check
21389         if we can mark a variable DECL_GIMPLE_REG_P.
21390         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
21391         back to the end of the function.
21392         (is_gimple_reg_type): Remove complex type special casing.
21393         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
21394         if not optimizing.
21395
21396 2009-05-02  Ben Elliston  <bje@au.ibm.com>
21397
21398         * doc/collect2.texi (Collect2): Document search path behaviour
21399         when configured with --with-ld.
21400
21401 2009-05-02  Jan Hubicka  <jh@suse.cz>
21402
21403         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
21404         parameter; update callers.
21405         (coalesce_cost_edge): EH edges are costier because they needs
21406         splitting even if not critical and even more costier when there are
21407         multiple EH predecestors.
21408
21409 2009-05-02  Jan Hubicka  <jh@suse.cz>
21410
21411         * except.c (remove_eh_handler_and_replace): Handle updating after
21412         removing TRY blocks.
21413
21414 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
21415
21416         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
21417
21418 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
21419
21420         * varasm.c: Do not include c-pragma.h.
21421         * attribs.c: Do not incude c-common.h.
21422
21423 2009-05-01  Michael Matz  <matz@suse.de>
21424
21425         * calls.c (initialize_argument_information): Handle SSA names like
21426         decls with a non MEM_P DECL_RTL.
21427
21428 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
21429
21430         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
21431         * ipa-utils.c: Likewise.
21432         * ipa-type-escape.c: Likewise.
21433         * cgraphunit.c Do not include c-common.h.
21434         * ipa-pure-const.c: Likewise.
21435         * tree-if-conv.c: Likewise.
21436         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
21437         * ipa-struct-reorg.c: Likewise.
21438         * tree-nomudflap.c: Likewise.
21439         * tree-ssa-structalias.c: Likewise.
21440
21441 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
21442
21443         * store-motion.c: Many cleanups to make this pass a first-class
21444         citizen instead of an appendix to gcse load motion.  Add TODO list
21445         to make this pass faster/cleaner/better.
21446
21447         (struct ls_expr): Post gcse.c-split cleanups.
21448         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
21449         "stores" field to "avail_stores".
21450         (pre_ldst_mems): Rename to store_motion_mems.
21451         (pre_ldst_table): Rename to store_motion_mems_table.
21452         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
21453         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
21454         (ldst_entry): Rename to st_expr_entry, update users.
21455         (free_ldst_entry): Rename to free_st_expr_entry, update users.
21456         (free_ldst_mems): Rename to free_store_motion_mems, update users.
21457         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
21458         update caller.
21459         (first_ls_expr): Rename to first_st_expr, update users.
21460         (next_ls_expr): Rename to next_st_expr, update users.
21461         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
21462         fields properly for store motion instead of names inherited from load
21463         motion in gcse.c.
21464         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
21465         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
21466         are done with it.
21467
21468         (ae_kill): Rename to st_kill, update users.
21469         (ae_gen): Rename to st_avloc, update users.
21470         (transp): Rename to st_transp, update users.
21471         (pre_insert_map): Rename to st_insert_map, update users.
21472         (pre_delete_map): Rename to st_delete_map, update users.
21473         (insert_store, build_store_vectors, free_store_memory,
21474         one_store_motion_pass): Update for abovementioned changes.
21475
21476         (gcse_subst_count, gcse_create_count): Remove.
21477         (one_store_motion_pass): New statistics counters "n_stores_deleted"
21478         and "n_stores_created", local variables.
21479
21480         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
21481         use for_each_rtx.
21482
21483         (regvec, compute_store_table_current_insn): Remove.
21484         (reg_set_info, reg_clear_last_set): Remove.
21485         (compute_store_table): Use DF caches instead of local dataflow
21486         solvers.
21487
21488 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
21489
21490         * c-objc-common.c (c_tree_printer): Print identifiers with
21491         pp_identifier, not pp_string.  Mark "({anonymous})" for
21492         translation.
21493         * c-pretty-print.c (pp_c_ws_string): New.
21494         (pp_c_cv_qualifier, pp_c_type_specifier,
21495         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
21496         pp_c_storage_class_specifier, pp_c_function_specifier,
21497         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
21498         pp_c_primary_expression, pp_c_postfix_expression,
21499         pp_c_unary_expression, pp_c_shift_expression,
21500         pp_c_relational_expression, pp_c_equality_expression,
21501         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
21502         use pp_string and pp_c_ws_string in place of pp_identifier and
21503         pp_c_identifier for non-identifiers.  Mark English strings for
21504         translation.
21505         * c-pretty-print.h (pp_c_ws_string): Declare.
21506
21507 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
21508             Roland McGrath <roland@redhat.com>
21509
21510         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
21511         (ENABLE_LD_BUILDID): New configuration option.
21512         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
21513         (LINK_BUILDID_SPEC): New macro.
21514         (init_spec): If defined, prepend it between LINK_EH_SPEC and
21515         link_spec.
21516         * doc/install.texi: Document --enable-linker-build-id option.
21517         * configure: Rebuild.
21518         * config.in: Rebuild.
21519
21520 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
21521
21522         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
21523         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
21524         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
21525         MIPS_GP_SAVE_AREA_SIZE.
21526         * config/mips/mips.c (struct mips_frame_info): Update comment
21527         before arg_pointer_offset and hard_frame_pointer_offset.
21528         (mips_compute_frame_info): Update diagram before function: to
21529         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
21530         indicate the position of frame_pointer_rtx with -fstack-protector and
21531         to show args_size.  Don't allocate cprestore area for leaf functions
21532         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
21533         cprestore_size.
21534         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
21535
21536 2009-04-30  Michael Matz  <matz@suse.de>
21537
21538         PR tree-optimization/39955
21539         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
21540
21541 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
21542
21543         * ira.c (setup_cover_and_important_classes):  Use safe macro
21544         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
21545         directly.
21546         * genpreds.c (write_tm_preds_h):  Output suitable definition of
21547         REG_CLASS_FOR_CONSTRAINT.
21548
21549 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
21550
21551         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
21552         instead of an int.
21553         * bitmap.c (bitmap_descriptor): Likewise.
21554         * ggc-common.c (loc_descriptor): Likewise.
21555         * varray.c (varray_descriptor): Likewise.
21556         * vec.c (vec_descriptor): Likewise.
21557
21558 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
21559
21560         * Makefile.in (dce.o): Add $(EXCEPT_H).
21561         * dce.c: Include except.h and delete redundant vector definitions.
21562         (deletable_insn_p): Return false for non-call insns that can throw
21563         if DF is running.
21564
21565 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
21566
21567         * gcse.c (ae_gen): Remove.
21568         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
21569         and make non-static function to make it available in store-motion.c.
21570         Update call sites with search-and-replace.
21571         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
21572         extract_mentioned_regs, extract_mentioned_regs_helper,
21573         find_moveable_store, compute_store_table, load_kills_store, find_loads,
21574         store_killed_in_insn, store_killed_after, store_killed_before,
21575         build_store_vectors, insert_insn_start_basic_block, insert-store,
21576         remove_reachable_equiv_notes, replace_store_insn, delete_store,
21577         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
21578         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
21579         * store-motion.c: ...new file.  Also copy data structures from gcse.c
21580         and clean up to remove parts not used by store motion.
21581         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
21582         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
21583
21584 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21585
21586         PR target/38571
21587         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
21588         when optimizing for size.
21589
21590 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
21591
21592         * gcse.c (gcse_constant_p): Fix typo in last change.
21593
21594 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
21595
21596         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
21597
21598 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
21599
21600         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
21601
21602 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
21603
21604         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
21605         CONST_HIGH_PART result.
21606
21607 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
21608
21609         * config/avr/avr.c (initial_elimination_offset): Rename to
21610         avr_initial_elimination_offset.
21611         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
21612         change return type to bool.
21613         (avr_can_eliminate): New function.
21614         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
21615         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
21616         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
21617         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
21618         avr_initial_elimination_offset.
21619         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
21620         (avr_initial_elimination_offset): Define.
21621
21622 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
21623             Steven Bosscher  <steven@gcc.gnu.org>
21624
21625         PR rtl-optimization/39938
21626         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
21627         * cfgrtl.c: Include insn-attr.h.
21628         (rest_of_pass_free_cfg): New function.
21629         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
21630         * resource.c (init_resource_info): Remove call to df_analyze.
21631
21632 2009-04-29  Richard Guenther  <rguenther@suse.de>
21633
21634         PR target/39943
21635         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
21636         allow conversion to signed integers.
21637
21638 2009-04-29  Richard Guenther  <rguenther@suse.de>
21639
21640         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
21641         shifts of floating point vectors if the shift amount is
21642         a constant multiple of the element size.
21643
21644 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
21645             Michael Matz  <matz@suse.de>
21646
21647         PR middle-end/39927
21648         PR bootstrap/39929
21649         * tree-outof-ssa.c (emit_partition_copy): New function.
21650         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
21651         insert_part_to_rtx_on_edge): Perform the partition base var
21652         copy using emit_partition_copy.
21653         (insert_value_copy_on_edge): Convert constants to the right mode.
21654         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
21655         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
21656
21657 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
21658
21659         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
21660         scan backwards to try to find a constant to initialize it.
21661
21662         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
21663         insn before the loop_end instruction, don't look past labels.
21664
21665 2009-04-29  Richard Guenther  <rguenther@suse.de>
21666
21667         PR middle-end/39937
21668         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
21669         loose type conversions.
21670         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
21671         stmts only if there are no uses of its definition.
21672
21673 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
21674
21675         * config/bfin/bfin.h (splitting_loops): Declare.
21676         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
21677         Reorder bit definitions to be ascending.
21678         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
21679         * config/bfin/bfin.c (splitting_loops): New variable.
21680         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
21681         (struct loop_info): Remove members INIT and LOOP_INIT.
21682         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
21683         the LSETUP sequence.  Allow LC to be loaded from any register, but
21684         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
21685         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
21686         set to 1.
21687         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
21688         of reload_completed.
21689
21690         From Jie Zhang:
21691         * config/bfin/bfin.md (movsi_insn): Refine constraints.
21692
21693 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
21694
21695         * Makefile.in (PLUGIN_VERSION_H): New.
21696         (OBJS-common): Remove plugin-version.o.
21697         (plugin.o): Depend on (PLUGIN_VERSION_H).
21698         (plugin-version.o): Remove.
21699         * configure: Regenerate
21700         * configure.ac: Create plugin-version.h.
21701         * gcc-plugin.h (plugin_gcc_version): Remove.
21702         (plugin_default_version_check): Change signature.
21703         * plugin-version.c: Remove.
21704         * plugin.c: Include plugin-version.h.
21705         (str_plugin_gcc_version_name): Remove.
21706         (try_init_one_plugin): Pass gcc version to plugin_init.
21707         (plugin_default_version_check): Both gcc and plugin versions are now
21708         arguments.
21709
21710 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
21711
21712         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
21713         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
21714         Remove special case testing for last insn of inner loops. Don't fail
21715         if the loop ends with a jump, emit an extra nop instead.
21716
21717         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
21718         DREGS rather than comparing directly.  Remove code that tries to
21719         account for latencies.
21720
21721 2009-04-29  Richard Guenther  <rguenther@suse.de>
21722
21723         PR tree-optimization/39941
21724         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
21725         eliminating an indirect call.
21726
21727 2009-04-29  Richard Guenther  <rguenther@suse.de>
21728
21729         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
21730         parameter.  Allow invariants as base if !require_lvalue.
21731         (verify_gimple_assign_single): Adjust.
21732
21733 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
21734
21735         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
21736         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
21737         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
21738         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
21739         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
21740         a VEC_SELECT.
21741         * config/bfin/bfin.c (bfin_expand_builtin,
21742         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
21743
21744 2009-04-28  Richard Guenther  <rguenther@suse.de>
21745
21746         * tree-vect-loop.c (get_initial_def_for_induction): Use
21747         correct types for pointer increment.
21748
21749 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21750
21751         * toplev.c (print_version): Update GMP version string calculation.
21752
21753 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21754
21755         PR rtl-optimization/39938
21756         * resource.c (init_resource_info): Add call to df_analyze.
21757
21758 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21759
21760         * config/alpha/alpha.md (usegp): Cast the result of
21761         alpha_find_lo_sum_using_gp to enum attr_usegp.
21762         * config/alpha/alpha.c (override_options): Remove end-of-structure
21763         marker element from cpu_table.  Use array size of cpu_table to handle
21764         -mcpu and -mtune options.
21765         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
21766
21767 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
21768
21769         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
21770         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
21771         tune_32 and tune_64.
21772         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
21773         support on PowerPC.
21774         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
21775         * config/rs6000/option-defaults.h: ... here.  New file.
21776         (OPT_64, OPT_32): Define.
21777         (MASK_64BIT): Define to 0 if not already defined.
21778         (OPT_ARCH64, OPT_ARCH32): Define.
21779         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
21780         and tune_64.
21781
21782 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21783
21784         * config/arm/arm.c (arm_override_options): Emit error on using
21785         fpa with AAPCS.
21786
21787 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21788
21789         PR rtl-optimization/39914
21790         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
21791         registers for allocnos created from user-defined variables only
21792         when not optimizing.
21793
21794 2009-04-28  Richard Guenther  <rguenther@suse.de>
21795
21796         PR middle-end/39937
21797         * fold-const.c (fold_binary): Use distribute_real_division only
21798         on float types.
21799
21800 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
21801
21802         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
21803         add hpux-stdint.h to tm_file.
21804         (hppa[12]*-*-hpux11*): Ditto.
21805         (ia64*-*-hpux*): Ditto.
21806         * config/hpux-stdint.h: New.
21807         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
21808         __STDC_EXT__ for all compiles.
21809         * config/pa/pa-hpux.h: Ditto.
21810         * config/pa/pa-hpux10.h: Ditto.
21811         * config/pa/pa-hpux11.h: Ditto.
21812
21813 2009-04-28  Catherine Moore  <clm@codesourcery.com>
21814
21815         * debug.h (set_name): Add comment.
21816
21817 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
21818
21819         PR target/39929
21820         * config/darwin.c (machopic_gen_offset): Check
21821         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
21822         * config/arm/arm.c (require_pic_register): Likewise.
21823
21824 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
21825
21826         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
21827         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
21828         m32c_promote_prototypes): Delete.
21829
21830 2009-04-28  Michael Matz  <matz@suse.de>
21831
21832         PR middle-end/39922
21833         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
21834         constants.
21835
21836 2009-04-28  Richard Guenther  <rguenther@suse.de>
21837
21838         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
21839
21840 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21841
21842         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
21843         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
21844         * config/arm/arm-tune.md: Regenerate.
21845
21846 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
21847
21848         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
21849         block if there are complex incoming edges.
21850         (sel_merge_blocks): Remove useless assert.
21851         (sel_redirect_edge_and_branch): Check that edge was redirected.
21852         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
21853         (sel_find_rgns): Delete declaration.
21854         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
21855         the region when it is not a preheader.
21856
21857 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21858
21859         PR c/39323
21860         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
21861
21862 2009-04-28  Richard Guenther  <rguenther@suse.de>
21863
21864         * tree.h (SSA_NAME_VALUE): Remove.
21865         (struct tree_ssa_name): Remove value_handle member.
21866         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
21867         array for jump threading.
21868         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
21869         SSA_NAME_VALUEs.
21870         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
21871         * tree-flow.h (threadedge_initialize_values): Declare.
21872         (threadedge_finalize_values): Likewise.
21873         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
21874         (SSA_NAME_VALUE): Define.
21875         (threadedge_initialize_values): New function.
21876         (threadedge_finalize_values): Likewise.
21877         * tree-ssa-dom.c (ssa_name_values): New global variable.
21878         (SSA_NAME_VALUE): Define.
21879         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
21880
21881 2009-04-28  Ira Rosen  <irar@il.ibm.com>
21882
21883         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
21884         Use REPORT_VECTORIZED_LOCATIONS instead
21885         REPORT_VECTORIZED_LOOPS.
21886         * tree-vectorizer.c (vect_verbosity_level): Make static.
21887         (vect_loop_location): Rename to vect_location.
21888         (vect_set_verbosity_level): Update comment.
21889         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
21890         and vect_location.
21891         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
21892         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
21893         instead REPORT_UNVECTORIZED_LOOPS.
21894         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
21895         and vect_loop_def to vect_external_def and vect_internal_def.
21896         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
21897         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
21898         REPORT_UNVECTORIZED_LOCATIONS.
21899         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
21900         and vect_used_in_loop and to vect_unused_in_scope and
21901         vect_used_in_scope.
21902         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
21903         (vect_verbosity_level): Remove declaration.
21904         (vect_analyze_operations): Likewise.
21905         (vect_analyze_stmt): Declare.
21906         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
21907         REPORT_UNVECTORIZED_LOCATIONS.
21908         (vect_get_loop_niters): Fix indentation.
21909         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
21910         (vect_analyze_loop_operations): New function.
21911         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
21912         vect_analyze_operations.
21913         (vect_is_simple_reduction): Use new names.
21914         (vectorizable_live_operation, vect_transform_loop): Likewise.
21915         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
21916         to specify whether the data references can be a part of interleaving
21917         chain.
21918         (vect_analyze_data_ref_dependence): Use new names.
21919         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
21920         (vect_create_addr_base_for_vector_ref): Remove redundant code.
21921         * tree-vect-patterns.c (widened_name_p): Use new names.
21922         (vect_recog_dot_prod_pattern): Likewise.
21923         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
21924         (process_use, vect_mark_stmts_to_be_vectorized,
21925         vect_model_simple_cost, vect_model_store_cost,
21926         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
21927         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
21928         vectorizable_operation, vectorizable_type_demotion,
21929         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
21930         vectorizable_condition): Likewise.
21931         (vect_analyze_operations): Split into vect_analyze_loop_operations
21932         and ...
21933         (vect_analyze_stmt): ... new function.
21934         (new_stmt_vec_info): Use new names.
21935         (vect_is_simple_use): Use new names and fix comment.
21936         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
21937         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
21938
21939 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21940
21941         PR target/39911
21942         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
21943         and integer modes for x87 operands.  Do not ICE for unsupported size,
21944         generate error instead.  Generate error for unsupported operand types.
21945         ['z']: Do not handle HImode memory operands specially.  Warning
21946         for floating-point operands.  Fallthru to 'Z' for unsupported operand
21947         types.  Do not ICE for unsupported size, generate error instead.
21948         (output_387_binary_op): Use %Z to output operands.
21949         (output_fp_compare): Ditto.
21950         (output_387_reg_move): Ditto.
21951
21952 2009-04-28  Ben Elliston  <bje@au.ibm.com>
21953
21954         PR c++/35652
21955         Revert:
21956
21957         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21958
21959         * builtins.c (c_strlen): Do not warn here.
21960         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
21961         * c-common.c (pointer_int_sum): Take an explicit location.
21962         Warn about offsets out of bounds.
21963         * c-common.h (pointer_int_sum): Adjust declaration.
21964
21965 2009-04-27  Ian Lance Taylor  <iant@google.com>
21966
21967         * collect2.c (is_ctor_dtor): Change type of ret field in struct
21968         names to symkind.
21969         * dce.c (run_fast_df_dce): Change type of old_flags to int.
21970         * df-core.c (df_set_flags): Change return type to int.  Change
21971         type of old_flags to int.
21972         (df_clear_flags): Likewise.
21973         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
21974         (df_get_conditional_uses): Likewise.
21975         * df.h (df_set_flags, df_clear_flags): Update declarations.
21976         * dwarf2out.c (struct indirect_string_node): Change type of form
21977         field to enum dwarf_form.
21978         (AT_string_form): Change return type to enum dwarf_form.
21979         * fixed-value.c (fixed_compare): Add cast to enum type.
21980         * fwprop.c (update_df): Change 0 to VOIDmode.
21981         * gensupport.c: Change 0 to UNKNOWN.
21982         * gimple.h (gimple_cond_code): Add cast to enum type.
21983         * haifa-sched.c (reemit_notes): Add cast to enum type.
21984         * hooks.c (hook_int_void_no_regs): Remove function.
21985         * hooks.h (hook_int_void_no_regs): Remove declaration.
21986         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
21987         * predict.c (combine_predictions_for_insn): Add casts to enum type.
21988         * real.c (real_arithmetic): Add cast to enum type.
21989         (real_compare): Likewise.
21990         * target.h (struct gcc_target): Change return type of
21991         branch_target_register_class to enum reg_class.
21992         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
21993         default_branch_target_register_class.
21994         * targhooks.c (default_branch_target_register_class): New function.
21995         * targhooks.h (default_branch_target_register_class): Declare.
21996         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
21997         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
21998         cast to int.
21999         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
22000         ERROR_MARK.
22001         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
22002         vect_uninitialized_def.  Change 0 to ERROR_MARK.
22003         * tree-vect-stmts.c (supportable_widening_operation): Don't
22004         initialize icode1 and icode2.
22005         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
22006         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
22007         and to STD_C89.
22008         (cmn_err_flag_specs): Change 0 to STD_C89.
22009         (cmn_err_char_table): Likewise.
22010         * config/arm/arm.c (get_arm_condition_code): Change type of code
22011         to enum arm_cond_code.
22012         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
22013         (IWMMXT_BUILTIN2): Likewise.
22014         (neon_builtin_type_bits): Don't define typedef.
22015         (neon_builtin_datum): Change type of bits field to int.
22016         (arm_expand_neon_args): Add cast to enum type.
22017         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
22018         TLS_MODEL_NONE.
22019         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
22020         casts to enum type.
22021         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
22022         MIPS_FP_COND_f.
22023         * config/mips/mips.md (jal_macro): Return enum constant.
22024         (single_insn): Likewise.
22025         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
22026         CODE_FOR_nothing.
22027         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22028         casts to enum type.
22029         * config/s390/s390.c (s390_tune_flags): Change type to int.
22030         (s390_arch_flags): Likewise.
22031         (s390_handle_arch_option): Change flags field of struct pta to int.
22032         * config/s390/s390.h (s390_tune_flags): Update declaration.
22033         (s390_arch_flags): Likewise.
22034         * config/sh/sh.c (prepare_move_operands): Compare
22035         tls_symbolic_operand result with enum constant.
22036         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
22037         (sh_expand_prologue): Add cast to enum type.
22038         (sh_expand_epilogue): Likewise.
22039         (tls_symbolic_operand): Change return type to enum tls_model.
22040         (fpscr_set_from_mem): Add cast to enum type.
22041         (legitimize_pic_address): Compare tls_symbolic_operand result with
22042         enum constant.
22043         (sh_target_reg_class): Change return type to enum reg_class.
22044         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
22045         PROCESSOR_xxx.
22046         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
22047         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
22048         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
22049         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
22050         (delayed_branch, tls_call_delay): Likewise.
22051         (eligible_for_sibcall_delay): Likewise.
22052         (eligible_for_return_delay): Likewise.
22053         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
22054         (spu_expand_builtin_1): Likewise.
22055
22056         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
22057         for all types of conversions.
22058         (output_init_element): Issue -Wc++-compat warning if needed when
22059         initializing a bitfield with enum type.
22060         * c-parser.c (c_parser_expression): Set original_type to
22061         original_type of right hand operand of comma operator.
22062
22063 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22064
22065         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
22066         grammar nits.
22067         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
22068         * doc/cpp.texi (Standard Predefined Macros)
22069         (Implementation-defined behavior): Likewise.
22070         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
22071         * doc/gimple.texi (GIMPLE Exception Handling)
22072         (@code{GIMPLE_ASSIGN}): Likewise.
22073         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
22074         * doc/invoke.texi (Warning Options, Optimize Options)
22075         (AVR Options, Darwin Options): Likewise.
22076         (Optimize Options): Reformulate -fwhole-program description.
22077         * doc/loop.texi (Lambda): Likewise.
22078         * doc/md.texi (Output Template, Define Constraints)
22079         (Standard Names, Insn Splitting): Likewise.
22080         * doc/options.texi (Option properties): Likewise.
22081         * doc/passes.texi (Tree-SSA passes): Likewise.
22082         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
22083         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
22084         (File Names and DBX): Likewise.
22085         * doc/trouble.texi (Incompatibilities): Likewise.
22086
22087 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
22088
22089         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
22090         instruction is correct.
22091
22092 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
22093
22094         Allow non-constant arguments to conversion intrinsics.
22095         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
22096         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
22097         * spu.c (print_operand): Handle 'v' and 'w'.
22098         (exp2_immediate_p, spu_gen_exp2): Define.
22099         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
22100         spu_convtf_1): Update parameter descriptions.
22101         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
22102         * constraints.md ('v', 'w'): New.
22103         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
22104         Remove.
22105         (i2f, I2F): New define_mode_attr.
22106         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
22107         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
22108         fixuns_truncv4sfv4si2):  Update to use mode attribute.
22109         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
22110         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
22111         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
22112         patterns for combine.
22113
22114 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
22115
22116         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
22117         (cprop, hoist, pre, store_motion): New debug counters.
22118         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
22119         is not an RTL pass anymore.
22120         (pass_profiling): Remove extern decl for pass removed in 2005.
22121         (pass_gcse, pass_jump_bypass): Remove.
22122         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
22123         to 0 for clean state.
22124         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
22125         * cse.c (gate_handle_cse_after_global_opts,
22126         rest_of_handle_cse_after_global_opts): New functions.
22127         (pass_cse_after_global_opts): New pass, does local CSE.
22128         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
22129         (TV_CPROP): New timevar.
22130         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
22131         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
22132         (gcse_main, recompute_all_luids): Remove.
22133         (compute_hash_table_work): Call max_reg_num instead of reading
22134         max_gcse_regno.
22135         (cprop_jump): Don't set run_jump_opt_after_gcse.
22136         (constprop_register): Always allow to alter jumps.
22137         (cprop_insn): Likewise.
22138         (do_local_cprop): Likewise.
22139         (local_cprop_pass): Likewise.  Return non-zero if something changed.
22140         (cprop): Remove function, fold interesting bits into one_cprop_pass.
22141         (find_implicit_sets): Add note about missed optimization opportunity.
22142         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
22143         pass_rtl_cprop execute function.
22144         Don't bother tracking the pass number, each pass gets its own dumpfile
22145         now anyway.
22146         Always allow to alter jumpsand bypass jumps.
22147         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
22148         will just find no suitable set.
22149         (pre_edge_insert): Fix dumping, this function is for PRE only.
22150         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
22151         pass_rtl_pre execute function.
22152         (hoist_code): Return non-zero if something changed.  Keep track of
22153         substitutions and insertions for statistics gathering similar to PRE.
22154         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
22155         called from the pass_rtl_hoist execute function.  Show pass statistics.
22156         (compute_store_table): Use max_reg_num directly instead of using the
22157         formerly global max_gcse_regno.
22158         (build_store_vectors): Likewise.
22159         (replace_store_insn): Fix dumping.
22160         (store_motion): Rename to ...
22161         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
22162         pass, called from the pass_rtl_store_motion execute function.  Keep
22163         track of substitutions and insertions for statistics gathering similar
22164         to PRE.
22165         (bypass_jumps): Remove, fold interesting bits into ...
22166         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
22167         from the pass_rtl_cprop execute function.
22168         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
22169         pass_jump_bypass): Remove.
22170         (gate_handle_gcse, rest_of_handle_gcse): Remove.
22171         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
22172         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
22173         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
22174         (gate_rtl_store_motion, execute_rtl_store_motion,
22175         pass_rtl_store_motion): New.
22176         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
22177         make it clear that -fcse-skip-blocks is a no-op for backward compat.
22178         * passes.c (init_optimization_passes): Remove pass_gcse and
22179         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
22180         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
22181         instead of pass_jump_bypass.
22182
22183 2009-04-27  Richard Guenther  <rguenther@suse.de>
22184
22185         PR middle-end/39928
22186         * gimplify.c (gimplify_expr): If we are required to create
22187         a temporary make sure it ends up as register.
22188
22189 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
22190
22191         PR target/39903
22192         * config/i386/i386.c (construct_container): Don't call
22193         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
22194         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
22195
22196 2009-04-27  Michael Matz  <matz@suse.de>
22197
22198         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
22199         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
22200         * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
22201         (dump_replaceable_exprs): Take a bitmap.
22202         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
22203         array.
22204         (expand_gimple_basic_block): Likewise.
22205         * tree-ssa-ter.c (struct temp_expr_table_d): Make
22206         replaceable_expressions member a bitmap.
22207         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
22208         (mark_replaceable): Likewise.
22209         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
22210         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
22211
22212 2009-04-27  Richard Guenther  <rguenther@suse.de>
22213
22214         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
22215         (verify_stmts): Dispatch to gimple/type verification code.
22216         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
22217         issue with call argument types.
22218
22219 2009-04-27  Michael Matz  <matz@suse.de>
22220
22221         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
22222         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
22223         to above.
22224
22225 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
22226             Eric Botcazou  <ebotcazou@adacore.com>
22227
22228         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
22229         a label's basic block.
22230         (mark_target_live_regs): Tidy and rework obsolete comments.
22231         Change back DF problem to LIVE.  If a label starts a basic block,
22232         assume that all registers that used to be live then still are.
22233         (init_resource_info): If a label starts a basic block, set its
22234         BLOCK_FOR_INSN accordingly.
22235         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
22236
22237 2009-04-27  Richard Guenther  <rguenther@suse.de>
22238
22239         * tree-flow-inline.h (function_ann): Remove.
22240         (get_function_ann): Likewise.
22241         * tree-dfa.c (create_function_ann): Remove.
22242         * tree-flow.h (struct static_var_ann_d): Remove.
22243         (struct function_ann_d): Likewise.
22244         (union tree_ann_d): Remove fdecl member.
22245         (function_ann_t): Remove.
22246         (function_ann, get_function_ann, create_function_ann): Remove
22247         declarations.
22248
22249 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
22250
22251         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
22252
22253 2009-04-27  Jan Hubicka  <jh@suse.cz>
22254
22255         * ipa-pure-const.c (struct funct_state_d): New fields
22256         state_previously_known, looping_previously_known; remove
22257         state_set_in_source.
22258         (analyze_function): Use new fields.
22259         (propagate): Avoid assumption that state_set_in_source imply
22260         nonlooping.
22261
22262         * tree-ssa-loop-niter.c (finite_loop_p): New function.
22263         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
22264         * cfgloop.h (finite_loop_p): Declare.
22265
22266 2009-04-26  Michael Matz  <matz@suse.de>
22267
22268         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
22269
22270 2009-04-26  Michael Matz  <matz@suse.de>
22271
22272         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
22273         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
22274         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
22275         pass_mark_used_blocks): Remove.
22276         * tree-optimize.c (pass_free_datastructures,
22277         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
22278         * passes.c (init_optimization_passes): Don't call
22279         pass_mark_used_blocks, remove dead code.
22280
22281 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
22282
22283         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
22284         * tree-ssa-live.h (register_ssa_partition): Likewise.
22285
22286 2009-04-26  Michael Matz  <matz@suse.de>
22287
22288         Expand from SSA.
22289         * builtins.c (fold_builtin_next_arg): Handle SSA names.
22290         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
22291         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
22292         SSA names.
22293         (compare_pairs): Swap cost comparison.
22294         (coalesce_ssa_name): Don't use change_partition_var.
22295         * tree-nrv.c (struct nrv_data): Add modified member.
22296         (finalize_nrv_r): Set it.
22297         (tree_nrv): Use it to update statements.
22298         (pass_nrv): Require PROP_ssa.
22299         * tree-mudflap.c (mf_decl_cache_locals,
22300         mf_build_check_statement_for): Use make_rename_temp.
22301         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
22302         * alias.c (find_base_decl): Handle SSA names.
22303         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
22304         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
22305         * rtl.h (set_reg_attrs_for_parm): Declare.
22306         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
22307         to "optimized", remove unused locals at finish.
22308         (execute_free_datastructures): Make global, call
22309         delete_tree_cfg_annotations.
22310         (execute_free_cfg_annotations): Don't call
22311         delete_tree_cfg_annotations.
22312
22313         * ssaexpand.h: New file.
22314         * expr.c (toplevel): Include ssaexpand.h.
22315         (expand_assignment): Handle SSA names the same as register variables.
22316         (expand_expr_real_1): Expand SSA names.
22317         * cfgexpand.c (toplevel): Include ssaexpand.h.
22318         (SA): New global variable.
22319         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
22320         (SSAVAR): New macro.
22321         (set_rtl): New helper function.
22322         (add_stack_var): Deal with SSA names, use set_rtl.
22323         (expand_one_stack_var_at): Likewise.
22324         (expand_one_stack_var): Deal with SSA names.
22325         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
22326         before unique numbers.
22327         (expand_stack_vars): Use set_rtl.
22328         (expand_one_var): Accept SSA names, add asserts for them, feed them
22329         to above subroutines.
22330         (expand_used_vars): Expand all partitions (without default defs),
22331         then only the local decls (ignoring those expanded already).
22332         (expand_gimple_cond): Remove edges when jumpif() expands an
22333         unconditional jump.
22334         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
22335         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
22336         SSA name.
22337         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
22338         members of SA; deal with PARM_DECL partitions here; expand
22339         all PHI nodes, free tree datastructures and SA.  Commit instructions
22340         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
22341         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
22342         info and statements at start, collect garbage at finish.
22343         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
22344         (VAR_ANN_PARTITION) Remove.
22345         (change_partition_var): Don't declare.
22346         (partition_to_var): Always return SSA names.
22347         (var_to_partition): Only accept SSA names.
22348         (register_ssa_partition): Only check argument.
22349         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
22350         member.
22351         (delete_var_map): Don't free it.
22352         (var_union): Only accept SSA names, simplify.
22353         (partition_view_init): Mark only useful SSA names as used.
22354         (partition_view_fini): Only deal with SSA names.
22355         (change_partition_var): Remove.
22356         (dump_var_map): Use ssa_name instead of partition_to_var member.
22357         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
22358         basic blocks.
22359         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
22360         (struct _elim_graph): New member const_dests; nodes member vector of
22361         ints.
22362         (set_location_for_edge): New static helper.
22363         (create_temp): Remove.
22364         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
22365         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
22366         (new_elim_graph): Allocate const_dests member.
22367         (clean_elim_graph): Truncate const_dests member.
22368         (delete_elim_graph): Free const_dests member.
22369         (elim_graph_size): Adapt to new type of nodes member.
22370         (elim_graph_add_node): Likewise.
22371         (eliminate_name): Likewise.
22372         (eliminate_build): Don't take basic block argument, deal only with
22373         partition numbers, not variables.
22374         (get_temp_reg): New static helper.
22375         (elim_create): Use it, deal with RTL temporaries instead of trees.
22376         (eliminate_phi): Adjust all calls to new signature.
22377         (assign_vars, replace_use_variable, replace_def_variable): Remove.
22378         (rewrite_trees): Only do checking.
22379         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
22380         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
22381         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
22382         contains_tree_r, MAX_STMTS_IN_LATCH,
22383         process_single_block_loop_latch, analyze_edges_for_bb,
22384         perform_edge_inserts): Remove.
22385         (expand_phi_nodes): New global function.
22386         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
22387         functions, initialize new parameter, remember partitions having a
22388         default def.
22389         (finish_out_of_ssa): New global function.
22390         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
22391         don't reset in_ssa_p here, don't disable TER when mudflap.
22392         (pass_del_ssa): Remove.
22393         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
22394         partition members.
22395         (execute_free_datastructures): Declare.
22396         * Makefile.in (SSAEXPAND_H): New variable.
22397         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
22398         * basic-block.h (commit_one_edge_insertion): Declare.
22399         * passes.c (init_optimization_passes): Move pass_nrv and
22400         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
22401         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
22402         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
22403         (redirect_branch_edge): Deal with super block when expanding, split
22404         out jump patching itself into ...
22405         (patch_jump_insn): ... here, new static helper.
22406
22407 2009-04-26  Michael Matz  <matz@suse.de>
22408
22409         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
22410         beyond num_ssa_names.
22411         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
22412         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
22413
22414 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
22415
22416         PR inline-asm/39543
22417         * fwprop.c (forward_propagate_asm): New function.
22418         (forward_propagate_and_simplify): Propagate also into __asm, if it
22419         doesn't increase the number of referenced registers.
22420
22421         PR c/39889
22422         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
22423
22424 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
22425
22426         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
22427         note_nonlocal_vla_type for nonlocal VLAs.
22428         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
22429         contains_remapped_vars, remap_vla_decls): New functions.
22430         (convert_nonlocal_reference_stmt): If not optimizing, call
22431         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
22432         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
22433         if it wasn't found in var_map.
22434         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
22435         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
22436         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
22437         declare_vars.
22438         * gimplify.c (nonlocal_vlas): New variable.
22439         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
22440         referenced VLAs.
22441         (gimplify_body): Create and destroy nonlocal_vlas.
22442
22443         * dwarf2out.c (loc_descr_plus_const): New function.
22444         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
22445         mem_loc_descriptor, loc_descriptor_from_tree_1,
22446         descr_info_loc, gen_variable_die): Use it.
22447
22448         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
22449         !TREE_STATIC VAR_DECLs.
22450         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
22451         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
22452         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
22453         DECL_BY_REFERENCE is valid.
22454         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
22455         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
22456         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
22457         Copy DECL_BY_REFERENCE.
22458         (struct nesting_copy_body_data): New type.
22459         (nesting_copy_decl): New function.
22460         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
22461         if they have variable length.
22462
22463 2009-04-26  Michael Matz  <matz@suse.de>
22464
22465         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
22466         mark new temporaries for renaming.
22467
22468 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
22469
22470         PR c/39581
22471         * c-decl.c (global_bindings_p): Return negative value.
22472         (c_variable_size): New.  Based on variable_size from
22473         stor-layout.c.
22474         (grokdeclarator): Call c_variable_size not variable_size.
22475
22476 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
22477
22478         * config/i386/i386.c (print_operand) ['z']: Fix typo.
22479
22480 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
22481
22482         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
22483         Redefine it to just use mingw/include.
22484         (ASM_SPEC): Rules for -m32 and -m64.
22485         (LINK_SPEC): Use Likewise.
22486         (SPEC_32): New define.
22487         (SPEC_64): Likewise.
22488         (SUB_LINK_SPEC): Likewise.
22489         (MULTILIB_DEFAULTS): New define.
22490         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
22491         Add multilib options.
22492         (MULTILIB_DIRNAMES): Likewise.
22493         (MULTILIB_OSDIRNAMES): Likewise.
22494         (LIBGCC): Likewise.
22495         (INSTALL_LIBGCC): Likewise.
22496
22497 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
22498
22499         PR c/39556
22500         * c-tree.h (enum c_inline_static_type): New.
22501         (record_inline_static): Declare.
22502         * c-decl.c (struct c_inline_static, c_inline_statics,
22503         record_inline_static, check_inline_statics): New.
22504         (pop_file_scope): Call check_inline_statics.
22505         (start_decl): Call record_inline_static instead of pedwarning
22506         directly for static in inline function.
22507         * c-typeck.c (build_external_ref): Call record_inline_static
22508         instead of pedwarning directly for static referenced in inline
22509         function.
22510
22511 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
22512
22513         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
22514         not new but only being rescanned.
22515         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
22516         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
22517         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
22518         record_set_info, compute_set, grealloc): Remove.
22519         (recompute_all_luids): New function.
22520         (gcse_main): Don't compute sets, and don't do related memory
22521         allocations/free-ing.  If something changed before the end of the
22522         pass, update LUIDs using recompute_all_luids.
22523         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
22524         (free_gcse_mem): Don't free it either.
22525         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
22526         Use the df insn LUIDs.
22527         (load_killed_in_block): Likewise.
22528         (compute_hash_table_work): Don't compute reg_set_in_block.
22529         (compute_transp): Use DF_REG_DEF_CHAINs.
22530         (local_cprop_pass): Don't use compute_sets and related functions.
22531         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
22532         Use get_max_uid() instead of max_cuid.
22533         (insert_insn_end_basic_block, pre_insert_copy_insn,
22534         update_ld_motion_stores): Don't try to
22535         keep reg_set tables up to date.
22536         (pre_insert_copies): Use df insn LUIDs.
22537         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
22538         (reg_set_info): Don't use extra bitmap argument.
22539         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
22540         information to compute regs_set_in_block.
22541         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
22542         (bypass_jumps): Don't use compute_sets and friends.
22543
22544 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22545
22546         PR testsuite/39710
22547         * opts.c (undocumented_msg): Do not leave blank even with
22548         ENABLE_CHECKING.
22549
22550 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
22551
22552         * c-decl.c (build_enumerator): Allow values folding to integer
22553         constants but not integer constant expressions with a pedwarn if
22554         pedantic.
22555
22556 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
22557
22558         PR c/39582
22559         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
22560         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
22561         type is an integer constant.
22562
22563 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
22564
22565         PR target/39897
22566         * config/i386/i386.c (print_operand) ['z']: Revert handling of
22567         HImode operands.
22568
22569 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
22570
22571         PR c/39564
22572         * c-decl.c (grokdeclarator): Diagnose declarations of functions
22573         with variably modified return type and no storage class
22574         specifiers, except for the case of nested functions.  Distinguish
22575         extern declarations of functions with variably modified return
22576         types from those of objects with variably modified types.
22577
22578 2009-04-25  Jan Hubicka  <jh@suse.cz>
22579
22580         * tree.c (list_equal_p): New function.
22581         * tree.h (list_equal_p): Declare.
22582         * coretypes.h (edge_def, edge, const_edge, basic_block_def
22583         basic_block_def, basic_block, const_basic_block): New.
22584         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
22585         (redirect_eh_edge): New function.
22586         (make_eh_edge_update_phi): EH edges are not abnormal.
22587         * except.c: Include tree-flow.h.
22588         (list_match): New function.
22589         (eh_region_replaceable_by_p): New function.
22590         (replace_region): New function.
22591         (hash_type_list): New function.
22592         (hash_eh_region): New function.
22593         (eh_regions_equal_p): New function.
22594         (merge_peers): New function.
22595         (remove_unreachable_regions): Verify EH tree when checking;
22596         merge peers.
22597         (copy_eh_region_1): New function.
22598         (copy_eh_region): New function.
22599         (push_reachable_handler): New function.
22600         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
22601         regions without label but with live RESX.
22602         * except.h (redirect_eh_edge_to_label): New.
22603         * tree-flow.h (redirect_eh_edge): New.
22604         * coretypes.h (edge_def, edge, const_edge, basic_block_def
22605         basic_block_def, basic_block, const_basic_block): Remove.
22606         * Makefile.in (except.o): Add dependency on tree-flow.h
22607         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
22608         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
22609         Remove.
22610
22611 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
22612
22613         PR bootstrap/39645
22614         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
22615         on the destination of memcpy.
22616
22617 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
22618
22619         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
22620         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
22621         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
22622
22623 2009-04-25  Jan Hubicka  <jh@suse.cz>
22624
22625         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
22626         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
22627         to be reached by different label than left.
22628         (update_eh_edges): Update comment; remove edge_to_remove if possible
22629         and return true if suceeded.
22630         (cleanup_empty_eh): Accept sharing map; handle shared regions.
22631         (cleanup_eh): Compute sharing map.
22632         * except.c (remove_eh_handler_and_replace): Add argument if we should
22633         update regions.
22634         (remove_unreachable_regions): Update for label sharing.
22635         (label_to_region_map): Likewise.
22636         (get_next_region_sharing_label): New function.
22637         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
22638         prev_try pointers.
22639         (remove_eh_handler): Update.
22640         (remove_eh_region_and_replace_by_outer_of): New function.
22641         * except.h (struct eh_region): Add next_region_sharing_label.
22642         (remove_eh_region_and_replace_by_outer_of,
22643         get_next_region_sharing_label): Declare.
22644         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
22645
22646 2009-04-25  Jan Hubicka  <jh@suse.cz>
22647
22648         * tree-cfg.c (split_critical_edges): Split also edges where we can't
22649         insert code even if they are not critical.
22650
22651 2009-04-25  Jan Hubicka  <jh@suse.cz>
22652
22653         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
22654         (gimple_can_remove_branch_p): EH edges won't remove branch by
22655         redirection.
22656         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
22657         updating of non-abnormal EH edges.
22658         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
22659         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
22660         (split_critical_edges): Split also edges where emitting code on them
22661         will lead to splitting later.
22662
22663 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
22664             H.J. Lu  <hongjiu.lu@intel.com>
22665
22666         PR target/39590
22667         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
22668         the configured assembler supports fildq and fistpq mnemonics.
22669         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
22670         * configure: Regenerated.
22671         * config.in: Ditto.
22672
22673         * config/i386/i386.c (print_operand): Handle 'Z'.
22674         ['z']: Remove handling of special fild/fist suffixes.
22675         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
22676         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
22677         suffix of fild insn.
22678         (*floatsi<mode>2_vector_mixed): Ditto.
22679         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
22680         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
22681         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
22682         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
22683         * config/i386/gas.h (GAS_MNEMONICS): Remove.
22684
22685 2009-04-25  Ben Elliston  <bje@au.ibm.com>
22686
22687         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
22688         the source of a set operation.
22689
22690 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
22691
22692         * target.h (struct gcc_target): Add case_values_threshold field.
22693         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
22694         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
22695         * targhooks.c (default_case_values_threshold): New function.
22696         * targhooks.h (default_case_values_threshold): Declare function.
22697         * stmt.c (expand_case): Use case_values_threshold target hook.
22698         * expr.h (case_values_threshold): Remove declartation.
22699         * expr.c (case_values_threshold): Remove function.
22700         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
22701
22702         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
22703         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
22704         (avr_case_values_threshold): Declare as static.
22705         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
22706
22707         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
22708         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
22709         (mn10300_case_values_threshold): New function.
22710
22711 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
22712
22713         * ira.c (setup_cover_and_important_classes): Add enum cast.
22714
22715 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
22716
22717         * genpreds.c (write_enum_constraint_num): Output definition of
22718         CONSTRAINT_NUM_DEFINED_P macro.
22719         * ira.c (setup_cover_and_important_classes): Use
22720         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
22721
22722 2009-04-24  DJ Delorie  <dj@redhat.com>
22723
22724         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
22725         __SH2A_SINGLE_ONLY__ also.
22726
22727 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
22728
22729         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
22730         (movdf_internal): Ditto.
22731         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
22732         SFmode and DFmode constants.
22733         (ia64_print_operand): Add 'G' format for printing
22734         floating point constants.
22735
22736 2009-04-24  Richard Guenther  <rguenther@suse.de>
22737
22738         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
22739         from unsigned additions.
22740
22741 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
22742
22743         * c-typeck.c (set_init_index): Allow array designators that are
22744         not integer constant expressions with a pedwarn if pedantic.
22745
22746 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
22747
22748         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
22749         zero if no overlap in nonzero bits between the operands.
22750
22751 2009-04-24  Ian Lance Taylor  <iant@google.com>
22752
22753         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
22754         (record_dead_and_set_regs): Likewise.
22755         * df.h (struct df_mw_hardreg): Change flags field to int.
22756         (struct df_base_ref): Likewise.
22757         (struct df): Change changeable_flags field to int.
22758         * df-scan.c (df_defs_record): Change clobber_flags to int.
22759         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
22760         constants rather than #define macros.
22761         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
22762         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
22763         (enum dwarf_calling_convention): Likewise.
22764         (enum dwarf_line_number_x_ops): Likewise.
22765         (enum dwarf_call_frame_info): Likewise.
22766         (enum dwarf_source_language): Likewise.
22767         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
22768         (add_calling_convention_attribute): Likewise.
22769         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
22770         (combine_comparisons): Change compcode to int.  Add cast to enum type.
22771         * genrecog.c (maybe_both_true_2): Change c to int.
22772         (write_switch): Likewise.  Add cast to enum type.
22773         * gimplify.c (gimplify_omp_for): Handle return values from
22774         gimplify_expr using MIN rather than bitwise or.
22775         (gimplify_expr): Add cast to enum type.
22776         * ipa-prop.c (update_jump_functions_after_inlining): Change
22777         IPA_BOTTOM to IPA_JF_UNKNOWN.
22778         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
22779         Add casts to enum type.
22780         (setup_cover_and_important_classes): Change cl to int.  Add casts
22781         to enum type.
22782         (setup_class_translate): Change cl and mode to int.
22783         (ira_init_once): Change mode to int.
22784         (free_register_move_costs): Likewise.
22785         (setup_prohibited_mode_move_regs): Add casts to enum type.
22786         * langhooks.c (add_builtin_function_common): Rework assertion that
22787         value fits bitfield.
22788         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
22789         * omega.c (omega_do_elimination): Avoid math on enum types.
22790         * optabs.c (expand_vec_shift_expr): Remove casts to int.
22791         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
22792         int local to handle integral_argment value.
22793         * regmove.c (try_auto_increment): Change PUT_MODE to
22794         PUT_REG_NOTE_KIND.
22795         * reload.c (push_secondary_reload): Add casts to enum type.
22796         (secondary_reload_class, find_valid_class): Likewise.
22797         * reload1.c (emit_input_reload_insns): Likewise.
22798         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
22799         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
22800         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
22801         constant.
22802         * tree.c (build_common_builtin_nodes): Add casts to enum type.
22803         * tree-complex.c (complex_lattice_t): Typedef to int rather than
22804         enum type.
22805         (expand_complex_libcall): Add casts to enum type.
22806         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
22807         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
22808         with ERROR_MARK, not NUM_TREE_CODES.
22809         (vect_create_epilog_for_reduction): Likewise.
22810         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
22811         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
22812         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
22813         enum machine_mode.
22814         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
22815         vect_unused_in_loop.  Change 0 to loop_vect.
22816         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
22817         * var-tracking.c (get_init_value): Change return type to enum
22818         var_init_status.
22819         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
22820         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
22821         arm_fp_model.
22822         (arm_override_options): Add casts to enum type.
22823         (arm_emit_tls_decoration): Likewise.
22824         * config/i386/i386.c (ix86_function_specific_restore): Add casts
22825         to enum type.
22826         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
22827         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
22828         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
22829         enum type.
22830         * config/s390/s390.c (code_for_builtin_64): Change to array of
22831         enum insn_code.
22832         (code_for_builtin_31): Likewise.
22833         (s390_expand_builtin): Change code_for_builtin to enum insn_code
22834         const *.
22835         * config/sparc/sparc.c (sparc_override_options): Change value
22836         field in struct code_model to enum cmodel.  In initializer change
22837         0 to NULL and add cast to enum type.
22838
22839         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
22840         Change all callers.  Issue a -Wc++-compat warning using
22841         lhs_origtype if necessary.
22842         (convert_for_assignment): Issue -Wc++-compat warnings about
22843         invalid conversions to enum type on assignment.
22844         * c-common.h (build_modify_expr): Update declaration.
22845
22846 2009-04-24  Nick Clifton  <nickc@redhat.com>
22847
22848         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
22849         (function_arg_advance): Likewise.
22850         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
22851         5th alternative.
22852
22853 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
22854
22855         * config/s390/constraints.md ('I', 'J'): Fix condition.
22856
22857 2009-04-24  Diego Novillo  <dnovillo@google.com>
22858
22859         * gengtype-parse.c (parse_error): Add newline after message.
22860
22861 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
22862
22863         * config/i386/sse.md (avxmodesuffixs): Removed.
22864         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
22865         (*avx_pinsr<ssevecsize>): This.
22866
22867 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
22868
22869         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
22870         follow chains of regs with a single definition, and allow expressions
22871         that are function_invariant_p.
22872         (simple_rhs_p): Allow expressions that are function_invariant_p.
22873
22874 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
22875
22876         PR middle-end/39867
22877         * fold-const.c (fold_cond_expr_with_comparison): When folding
22878         > and >= to MAX, make sure the MAX uses the same type as the
22879         comparison's operands.
22880
22881 2009-04-24  Nick Clifton  <nickc@redhat.com>
22882
22883         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
22884         addressing for DImode accesses.
22885         (frv_print_operand_address): Handle PLUS case.
22886         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
22887
22888 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
22889
22890         PR rtl-optimization/39794
22891         * alias.c (canon_true_dependence): Add x_addr argument.
22892         * rtl.h (canon_true_dependence): Adjust prototype.
22893         * cse.c (check_dependence): Adjust canon_true_dependence callers.
22894         * cselib.c (cselib_invalidate_mem): Likewise.
22895         * gcse.c (compute_transp): Likewise.
22896         * dse.c (scan_reads_nospill): Likewise.
22897         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
22898         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
22899         canon_base_addr of the group, plus optional offset.
22900         (struct group_info): Rename canon_base_mem to
22901         canon_base_addr.
22902         (get_group_info): Set canon_base_addr to canon_rtx of base, not
22903         canon_rtx of base_mem.
22904
22905 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
22906
22907         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
22908         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
22909
22910 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22911
22912         * config/spu/spu-builtins.h: Delete file.
22913
22914         * config/spu/spu.h (enum spu_builtin_type): Move here from
22915         spu-builtins.h.
22916         (struct spu_builtin_description): Likewise.  Add GTY marker.
22917         Do not use enum spu_function_code or enum insn_code.
22918         (spu_builtins): Add extern declaration.
22919
22920         * config/spu/spu.c: Do not include "spu-builtins.h".
22921         (enum spu_function_code, enum spu_builtin_type_index,
22922         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
22923         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
22924         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
22925         unsigned_V2DI_type_node): Move here from spu-builtins.h.
22926         (spu_builtin_types): Make static.  Add GTY marker.
22927         (spu_builtins): Add extern declaration with GTY marker.
22928         Include "gt-spu.h".
22929
22930         * config/spu/spu-c.c: Do not include "spu-builtins.h".
22931         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
22932         Check programmatically whether all parameters are scalar.
22933
22934         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
22935
22936 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
22937
22938         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
22939         assignment from the constructor either if the target is volatile.
22940
22941 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
22942
22943         * config/arm/arm.md (insv): Do not share operands[0].
22944
22945 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
22946
22947         * config/vxlib-tls.c (active_tls_threads): Delete.
22948         (delete_hook_installed): New.
22949         (tls_delete_hook): Don't delete the delete hook.
22950         (tls_destructor): Delete it here.
22951         (__gthread_set_specific): Adjust installing the delete hook.
22952         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
22953         __gthread_leave_tsd_dtor_context.
22954
22955 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
22956
22957         * c-format.c (gcc_tdiag_char_table): Add support for %E.
22958
22959 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
22960
22961         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
22962         enum type.
22963         (alpha_rtx_costs): Ditto.
22964         (emit_unlikely_jump): Use add_reg_note.
22965         (emit_frame_store_1): Ditto.
22966         (alpha_expand_prologue): Ditto.
22967         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22968         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
22969
22970 2009-04-23  Nick Clifton  <nickc@redhat.com>
22971
22972         * config/v850/v850.md (epilogue): Remove suppressed code.
22973         (return): Rename to return_simple and remove test of frame size.
22974         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
22975         to gen_return_simple.
22976
22977 2009-04-22  Jing Yu  <jingyu@google.com>
22978
22979         PR testsuite/39781
22980         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
22981
22982 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22983
22984         PR C/31499
22985         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
22986         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
22987         value is a VECTOR_CST, the element type is the element type of the
22988         vector.
22989
22990 2009-04-22  DJ Delorie  <dj@redhat.com>
22991
22992         * config/m32c/m32c.h: Update GTY annotations to new syntax.
22993
22994 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
22995
22996         * alias.c (find_base_term): Move around LO_SUM case, so that
22997         CONST falls through into PLUS/MINUS handling.
22998
22999         PR c/39855
23000         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
23001         into 0, use omit_one_operand.
23002
23003 2009-04-23  Ben Elliston  <bje@au.ibm.com>
23004
23005         * config/rs6000/linux-unwind.h (get_regs): Remove type
23006         puns. Change the type of `pc' to an array of unsigned ints and
23007         update all users.  Constify frame24.
23008
23009 2009-04-22  DJ Delorie  <dj@redhat.com>
23010
23011         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
23012         declarations before code.
23013         (current_function_special_page_vector): Likewise.
23014         (m32c_expand_insv): Silence a warning.
23015
23016 2009-04-21  Taras Glek  <tglek@mozilla.com>
23017
23018         * alias.c: Update GTY annotations to new syntax.
23019         * basic-block.h: Likewise.
23020         * bitmap.h: Likewise.
23021         * c-common.h: Likewise.
23022         * c-decl.c: Likewise.
23023         * c-parser.c: Likewise.
23024         * c-pragma.c: Likewise.
23025         * c-tree.h: Likewise.
23026         * cfgloop.h: Likewise.
23027         * cgraph.h: Likewise.
23028         * config/alpha/alpha.c: Likewise.
23029         * config/arm/arm.h: Likewise.
23030         * config/avr/avr.h: Likewise.
23031         * config/bfin/bfin.c: Likewise.
23032         * config/cris/cris.c: Likewise.
23033         * config/darwin.c: Likewise.
23034         * config/frv/frv.c: Likewise.
23035         * config/i386/i386.c: Likewise.
23036         * config/i386/i386.h: Likewise.
23037         * config/i386/winnt.c: Likewise.
23038         * config/ia64/ia64.h: Likewise.
23039         * config/iq2000/iq2000.c: Likewise.
23040         * config/mips/mips.c: Likewise.
23041         * config/mmix/mmix.h: Likewise.
23042         * config/pa/pa.c: Likewise.
23043         * config/pa/pa.h: Likewise.
23044         * config/rs6000/rs6000.c: Likewise.
23045         * config/s390/s390.c: Likewise.
23046         * config/sparc/sparc.c: Likewise.
23047         * config/xtensa/xtensa.c: Likewise.
23048         * cselib.h: Likewise.
23049         * dbxout.c: Likewise.
23050         * dwarf2out.c: Likewise.
23051         * except.c: Likewise.
23052         * except.h: Likewise.
23053         * fixed-value.h: Likewise.
23054         * function.c: Likewise.
23055         * function.h: Likewise.
23056         * gimple.h: Likewise.
23057         * integrate.c: Likewise.
23058         * optabs.c: Likewise.
23059         * output.h: Likewise.
23060         * real.h: Likewise.
23061         * rtl.h: Likewise.
23062         * stringpool.c: Likewise.
23063         * tree-data-ref.c: Likewise.
23064         * tree-flow.h: Likewise.
23065         * tree-scalar-evolution.c: Likewise.
23066         * tree-ssa-address.c: Likewise.
23067         * tree-ssa-alias.h: Likewise.
23068         * tree-ssa-operands.h: Likewise.
23069         * tree.c: Likewise.
23070         * tree.h: Likewise.
23071         * varasm.c: Likewise.
23072         * varray.h: Likewise.
23073         * vec.h: Likewise.
23074         * coretypes.h: Do not define GTY macro if it is already defined.
23075         * doc/gty.texi: Update GTY documentation to new syntax.
23076         * gengtype-lex.l: Enforce attribute-like syntax for GTY
23077         annotations on structs.
23078         * gengtype-parse.c: Likewise.
23079
23080 2009-04-22  Mark Heffernan  <meheff@google.com>
23081
23082         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
23083
23084 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
23085
23086         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
23087         where appropriate.
23088
23089 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
23090
23091         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
23092         the same as a PLUS without a shift.  Increase the cost of a
23093         CONST_INT in MULT.
23094
23095 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23096
23097         * Makefile.in: Update dependencies.
23098         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
23099         * errors.h: Remove bogus comment about compatibility.
23100         (warning): Update declaration.
23101         * genautomata.c: Update all calls to warning.
23102         * gimple.c: Do not include errors.h. Include toplev.h.
23103         * tree-ssa-structalias.c: Do not include errors.h.
23104         * omega.c: Likewise.
23105         * tree-ssa-reassoc.c: Likewise.
23106         * config/spu/spu-c.c: Likewise.
23107         * config/spu/t-spu-elf: Update dependencies.
23108
23109 2009-04-22  Richard Guenther  <rguenther@suse.de>
23110
23111         PR tree-optimization/39824
23112         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
23113         make sure the types are compatible.
23114
23115 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23116
23117         PR c++/14875
23118         * c-common.c (c_parse_error): Take a token_flags parameter.
23119         Use token_type for the token type instead.
23120         Pass token_flags to cpp_type2name.
23121         * c-common.h (c_parse_error): Update declaration.
23122         * c-parser.c (c_parser_error): Pass 0 as token flags.
23123
23124 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
23125
23126         PR rtl-optimization/39580
23127         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
23128
23129 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23130
23131         * function.c (expand_function_end): Do not emit a jump to the "naked"
23132         return label for fall-through returns.
23133         * except.c (sjlj_emit_function_exit): Always place the call to the
23134         unregister function at the location installed by expand_function_end.
23135
23136 2009-04-22  Richard Guenther  <rguenther@suse.de>
23137
23138         PR tree-optimization/39845
23139         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
23140         (gen_inbound_check): Likewise.
23141
23142 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
23143
23144         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
23145         padding for PPC.
23146         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
23147         * config/vxlib.c (__gthread_once): Add race guard for PPC.
23148
23149 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
23150
23151         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
23152         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
23153         shift counts to avoid out-of-bounds array accesses.
23154
23155 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
23156
23157         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
23158         (Pmode): Move above.
23159
23160 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
23161
23162         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
23163         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
23164         GET_CODE macro.  Use IN_RANGE macro where appropriate.
23165         * config/alpha/alpha.h: Ditto.
23166         * config/alpha/alpha.md: Ditto.
23167         * config/alpha/constraints.md: Ditto.
23168         * config/alpha/predicates.md: Ditto.
23169
23170 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
23171
23172         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
23173         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23174         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23175         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23176         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23177         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23178         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23179         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23180         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23181         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23182         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23183         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23184         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23185         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23186         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23187         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23188         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23189         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23190         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23191         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23192         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23193         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23194         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23195         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23196         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23197         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23198         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
23199
23200 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23201
23202         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
23203         references from comments.
23204         * cfgbuild.c (count_basic_blocks): Delete.
23205         (find_basic_blocks_1): Delete.
23206         (find_basic_blocks): Delete.
23207         * except.c (finish_eh_generation): Make static.  Move comment from
23208         except.h here.  Remove find_basic_blocks references from comments.
23209         * except.h (finish_eh_generation): Delete.
23210         * basic-block.h (find_basic_blocks): Delete.
23211         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
23212
23213 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
23214
23215         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
23216         (sdbout_parms):  Likewise.
23217
23218 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
23219
23220         * config/sh/sh.c (prepare_cbranch_operands): Use
23221         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
23222         (expand_cbranchdi4): Likewise.
23223         (from_compare): Add cast to enum type.
23224         (expand_cbranchsi4): Use add_reg_note.
23225         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
23226         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
23227         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
23228         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
23229         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
23230         instead of CODE_FOR_nothing.
23231         (cbranchdi4): Likewise.  Fix the order of arguments for
23232         gen_rtx_fmt_ee.
23233         (push_fpscr): Use add_reg_note.
23234         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
23235         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
23236
23237 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
23238
23239         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
23240         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
23241         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
23242         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
23243         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
23244         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
23245         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
23246         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
23247         config/alpha/x-vms, config/arc/t-arc,
23248         config/arm/README-interworking, config/arm/arm-c.c,
23249         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
23250         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
23251         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
23252         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
23253         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
23254         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
23255         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
23256         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
23257         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
23258         config/cris/t-elfmulti, config/crx/t-crx,
23259         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
23260         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
23261         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
23262         config/h8300/t-h8300, config/i386/athlon.md,
23263         config/i386/darwin-libgcc.10.4.ver,
23264         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
23265         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
23266         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
23267         config/i386/t-linux64, config/i386/t-nwld,
23268         config/i386/t-rtems-i386, config/i386/t-sol2-10,
23269         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
23270         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
23271         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
23272         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
23273         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
23274         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
23275         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
23276         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
23277         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
23278         config/m68k/t-uclinux, config/mcore/t-mcore,
23279         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
23280         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
23281         config/mips/crtn.asm, config/mips/irix-crti.asm,
23282         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
23283         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
23284         config/mips/mips-fixed.md, config/mips/sb1.md,
23285         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
23286         config/mips/t-iris6, config/mips/t-isa3264,
23287         config/mips/t-libgcc-mips16, config/mips/t-linux64,
23288         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
23289         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
23290         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
23291         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
23292         config/mn10300/t-linux, config/mn10300/t-mn10300,
23293         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
23294         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
23295         config/picochip/libgccExtras/clzsi2.asm,
23296         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
23297         config/rs6000/darwin-libgcc.10.4.ver,
23298         config/rs6000/darwin-libgcc.10.5.ver,
23299         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
23300         config/rs6000/t-aix43, config/rs6000/t-aix52,
23301         config/rs6000/t-darwin, config/rs6000/t-fprules,
23302         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
23303         config/rs6000/t-lynx, config/rs6000/t-netbsd,
23304         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
23305         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
23306         config/rs6000/t-rtems, config/rs6000/t-spe,
23307         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
23308         config/score/t-score-elf, config/sh/divcost-analysis,
23309         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
23310         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
23311         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
23312         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
23313         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
23314         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
23315         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
23316         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
23317         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
23318         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
23319         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
23320         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
23321         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
23322         limitx.h, version.c, xcoff.h: Add copyright and license notices.
23323         * config/h8300/genmova.sh: Include copyright and license notices
23324         in generated output.
23325         * config/h8300/mova.md: Regenerate.
23326         * doc/install.texi2html: Include word "Copyright" in copyright
23327         notice and use name "Free Software Foundation, Inc.".
23328         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
23329         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
23330         ChangeLog-2007, ChangeLog-2008: Correct dates.
23331
23332 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
23333
23334         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
23335         NE_EXPR operations as well.
23336         * c-parser.c (c_parser_condition): Do not set location information on
23337         the condition.
23338         (c_parser_conditional_expression): Likewise.
23339         (c_parser_binary_expression): Set location information on operators.
23340         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
23341         TRUTH_NOT_EXPR has been folded.
23342         * fold-const.c (fold_truth_not_expr): Copy location information from
23343         the incoming expression to the outgoing one.
23344         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
23345         recursive calls on the LHS of the operator but pass that of the
23346         operator to recursive calls on the RHS of the operator.  Set it
23347         on the COND_EXPR.
23348         (shortcut_cond_expr): Set the locus of the operator on the second
23349         COND_EXPR and that of the expression on the first in degenerate cases.
23350         Pass the locus of the expression to calls to shortcut_cond_r.
23351         Set the locus of the 'then' block on the associated jump, if any.
23352         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
23353         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
23354         expression to call to gimplify_boolean_expr.
23355
23356 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
23357
23358         * config.gcc: Add additional configuration for
23359         i686-w64-mingw* and x86_64-w64-mingw* triplet.
23360         * config/i386/mingw-w64.h: New mingw-w64 specific header.
23361         (CPP_SPEC): Redefine for allowing -municode option.
23362         (STARTFILE_SPEC): Likewise.
23363         * config/i386/t-mingw-w64: New.
23364         * config/i386/mingw-w64.opt: New.
23365         (municode): Add new target option.
23366         * doc/invoke.texi (municode): Add documentation for new option.
23367
23368 2009-04-21  Ian Lance Taylor  <iant@google.com>
23369
23370         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23371         Correct test for number of arguments.
23372         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23373
23374 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
23375
23376         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
23377         argument of emit_library_call.
23378
23379 2009-04-21  Richard Guenther  <rguenther@suse.de>
23380
23381         PR middle-end/39829
23382         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
23383         inside VIEW_CONVERT_EXPRs.
23384
23385 2009-04-21  Martin Jambor  <mjambor@suse.cz>
23386
23387         * tree-switch-conversion.c (build_constructors): Split a long line.
23388         (constructor_contains_same_values_p): New function.
23389         (build_one_array): Create assigns of constants if possible, do not
23390         call mark_sym_for_renaming, call update_stmt.
23391         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
23392         make_rename_temp.  Do not call mark_symbols_for_renaming, call
23393         update_stmt.
23394         (gen_def_assigns): Do not call mark_symbols_for_renaming or
23395         find_new_referenced_vars, call update_stmt.
23396         (gen_inbound_check): Use create_tmp_var and create ssa names manually
23397         instead of calling make_rename_temp.  Do not call
23398         find_new_referenced_vars or mark_symbols_for_renaming, call
23399         update_stmt.
23400
23401 2009-04-21  Richard Guenther  <rguenther@suse.de>
23402
23403         PR tree-optimization/39827
23404         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
23405         (tree_ssa_phiprop): Pass the correct array size.
23406
23407 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
23408
23409         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
23410
23411 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23412
23413         PR 16202
23414         * c-typeck.c (lvalue_p): Move declaration ...
23415         * c-common.h (lvalue_p): ... to here.
23416         * c-common.c (candidate_equal_p): New.
23417         (add_tlist): Use it.
23418         (merge_tlist): Use it.
23419         (warn_for_collisions_1): Likewise.
23420         (warning_candidate_p): Accept more candidates.
23421         (verify_tree): A warning candidate can be an expression. Use
23422         candidate_equal_p.
23423
23424 2009-04-21  Ben Elliston  <bje@au.ibm.com>
23425
23426         PR target/5267
23427         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
23428         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
23429         options.  Remove -mcall-solaris documentation.
23430
23431 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23432
23433         PR c++/13358
23434         * doc/invoke.texi (-Wlong-long): Update description.
23435         * c-lex (interpret_integer): Only warn if there was no previous
23436         overflow and -Wlong-long is enabled.
23437         * c-decl.c (declspecs_add_type): Drop redundant flags.
23438         * c.opt (Wlong-long): Init to -1.
23439         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
23440         and front-end warn_long_long. Wlong-long only depends on other
23441         flags if it is uninitialized.
23442         * c-parser.c (disable_extension_diagnostics): warn_long_long is
23443         the same for CPP and FE.
23444         (restore_extension_diagnostics): Likewise.
23445
23446 2009-04-20  Ian Lance Taylor  <iant@google.com>
23447
23448         Fix enum conversions which are invalid in C++:
23449         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
23450         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
23451         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
23452         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
23453         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
23454         (dbxout_parms): Likewise.
23455         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
23456         (df_clear_flags): Likewise.
23457         * df-problems.c (df_rd_bb_local_compute_process_def): Change
23458         top_flag parameter to int.
23459         (df_chain_create_bb_process_use): Likewise.
23460         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
23461         Remove cast.
23462         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
23463         (df_ref_create_structure, df_def_record_1): Likewise.
23464         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
23465         (df_notes_rescan): Change 0 to VOIDmode in function call.
23466         (df_get_call_refs, df_insn_refs_collect): Likewise.
23467         (df_bb_regs_collect): Likewise.
23468         (df_entry_block_defs_collect): Likewise.
23469         (df_exit_block_uses_collect): Likewise.
23470         * df.h: Update declarations.
23471         * double-int.c (double_int_divmod): Add cast to enum type.
23472         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
23473         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
23474         (based_loc_descr): Likewise.
23475         (loc_descriptor_from_tree_1): Change first_op and second_op to
23476         enum dwarf_location_atom.  Add cast to enum type.
23477         * expmed.c (init_expmed): Change 0 to SET in function call.
23478         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
23479         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
23480         (do_store_flag): Likewise.
23481         * fixed-value.h (struct fixed_value): Change mode to enum
23482         machine_mode.
23483         * function.c (assign_parms): Change 0 to VOIDmode in function call.
23484         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
23485         function call.
23486         (insert_insn_decl, insert_decl, insert_state): Likewise.
23487         (automata_list_finish): Likewise.
23488         * genrecog.c (process_define_predicate): Add cast to enum type.
23489         * gensupport.c (init_predicate_table): Add cast to enum type.
23490         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
23491         function call.
23492         (gimple_build_call_1, gimple_build_label): Likewise.
23493         (gimple_build_goto, gimple_build_asm_1): Likewise.
23494         (gimple_build_switch_1, gimple_build_cdt): Likewise.
23495         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
23496         (enum fallback): Rename from enum fallback_t.
23497         (fallback_t): Typedef as int.
23498         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
23499         GSI_SAME_STMT in function call.
23500         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
23501         enum type.
23502         (setup_reg_class_relations): Likewise.
23503         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
23504         (setup_prohibited_class_mode_regs): Add cast to enum type.
23505         (setup_prohibited_mode_move_regs): Likewise.
23506         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
23507         (record_address_regs): Change i to enum reg_class.
23508         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
23509         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
23510         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
23511         (GET_MODE_2XWIDER_MODE): Likewise.
23512         (GET_CLASS_NARROWEST_MODE): Likewise.
23513         * omp-low.c (expand_omp_for): Add cast to enum type.
23514         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
23515         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
23516         * postreload.c (reload_cse_simplify_operands): Change rclass local
23517         to enum reg_class.
23518         * predict.c (combine_predictions_for_insn): Change best_predictor
23519         and predictor to enum br_predictor.
23520         (combine_predictions_for_bb): Likewise.
23521         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
23522         use SET_PREDICT_EXPR_OUTCOME.
23523         * real.c (real_arithmetic): Change icode to code in function call.
23524         * reginfo.c (init_move_cost): Add casts to enum type.
23525         (init_reg_sets_1, init_fake_stack_mems): Likewise.
23526         * regmove.c (regclass_compatible_p): Change class0 and class1 to
23527         enum reg_class.
23528         * reload.c (find_valid_class): Add casts to enum type.
23529         (push_reload): Change 0 to NO_REGS in function call.
23530         (find_reloads): Change this_alternative to array of enum
23531         reg_class.  Remove some now-unnecessary casts.
23532         (make_memloc): Change 0 to VOIDmode in function call.
23533         * reload1.c (reload): Change 0 to VOIDmode in function call.
23534         (eliminate_regs_1, elimination_effects): Likewise.
23535         (eliminate_regs_in_insn): Likewise.
23536         (emit_input_reload_insns): Add cast to enum type.
23537         (delete_output_reload): Change 0 to VOIDmode in function call.
23538         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
23539         to enum type in function call.
23540         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
23541         (SET_PREDICT_EXPR_OUTCOME): Define.
23542         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
23543         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
23544         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
23545         (dump_function): Likewise.
23546         * tree-dump.h: Update declarations.
23547         * tree-pass.h: Update declarations.
23548         * varasm.c (assemble_integer): Change mclass to enum mode_class.
23549         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
23550         enum type.
23551         (arm_rtx_costs_1): Correct parenthesization.
23552         (arm_rtx_costs): Add casts to enum type.
23553         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
23554         (vfp_emit_fstmd): Use add_rg_note.
23555         (emit_multi_reg_push, emit_sfm): Likewise.
23556         (thumb_set_frame_pointer): Likewise.
23557         (arm_expand_prologue): Likewise.
23558         (arm_regno_class): Change return type to enum reg_class.
23559         (thumb1_expand_prologue): Use add_reg_note.
23560         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
23561         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
23562         in function call.
23563         * config/arm/gentune.sh: Add cast to enum type.
23564         * config/arm/arm-tune.md: Rebuild.
23565         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
23566         (ix86_split_fp_branch, predict_jump): Likewise.
23567         (ix86_expand_multi_arg_builtin): Change sub_code from enum
23568         insn_code to enum rtx_code.
23569         (ix86_builtin_vectorized_function): Add cast to enum type.
23570         * config/i386/i386.md (truncdfsf2): Change slot to enum
23571         ix86_stack_slot.
23572         (truncxf<mode>2, isinf<mode>2): Likewise.
23573         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
23574         enum type.
23575         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
23576         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
23577         (insert_bundle_state): Change 1 to INSERT in function call.
23578         (ia64_add_bundle_selector_before): Likewise.
23579         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
23580         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
23581         (restore_stack_nonlocal): Likewise.
23582         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
23583         function call.
23584         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
23585         function call.
23586         (mips_rtx_costs): Likewise.
23587         (mips_override_options): Add casts to enum type.
23588         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
23589         in function call.
23590         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
23591         (store_reg, set_reg_plus_d): Likewise.
23592         (hppa_expand_prologue, hppa_profile_hook): Likewise.
23593         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
23594         cast to enum type.
23595         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
23596         function call.
23597         (emit_unlikely_jump): Use add_reg_note.
23598         (rs6000_emit_allocate_stack): Likewise.
23599         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
23600         (output_toc): Change 1 to INSERT in function call.
23601         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
23602         (rs6000_initialize_trampoline): Likewise.
23603         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
23604         function call.
23605         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
23606         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
23607         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
23608         (save_gprs): Use add_reg_note.
23609         (s390_emit_prologue): Likewise.
23610         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
23611         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
23612         (sparc_fold_builtin): Add cast to enum type.
23613         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
23614         enum insn_code.
23615         (spu_expand_prologue): Use add_reg_note.
23616         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
23617
23618 2009-04-20  Ian Lance Taylor  <iant@google.com>
23619
23620         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
23621         (c_parser_postfix_expression_after_primary): Get VEC for list of
23622         arguments.  Get original types of arguments.  Call
23623         build_function_call_vec.
23624         (cached_expr_list_1, cached_expr_list_2): New static variables.
23625         (c_parser_expr_list): Change return type to VEC *.  Add
23626         p_orig_types parameter.  Change all callers.
23627         (c_parser_release_expr): New static function.
23628         (c_parser_vec_to_tree_list): New static function.
23629         * c-typeck.c (build_function_call): Rewrite to build a VEC and
23630         call build_function_call_vec.
23631         (build_function_call_vec): New function, based on old
23632         build_function_call.
23633         (convert_arguments): Remove nargs and argarray parameters.  Change
23634         values to a VEC.  Add origtypes parameter.
23635         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
23636         (convert_for_assignment): Add origtype parameter.  Change all
23637         callers.  If warn_cxx_compat, check for conversion to an enum
23638         type when calling a function.
23639         (store_init_value): Add origtype parameter.  Change all callers.
23640         (digest_init): Likewise.
23641         (struct init_node): Add origtype field.
23642         (add_pending_init): Add origtype parameter.  Change all callers.
23643         (output_init_element): Likewise.
23644         (output_pending_init_elements): Pass origtype from init_node to
23645         output_init_element.
23646         (process_init_element): Pass origtype from c_expr to
23647         output_init_element.
23648         (c_finish_return): Add origtype parameter.  Change all callers.
23649         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
23650         caller.
23651         (sync_resolve_params): Likewise.
23652         (sync_resolve_return): Change params to first_param.  Change caller.
23653         (resolve_overloaded_builtins): Change params to VEC *.  Change
23654         callers.  Save first parameter around call to build_function_call_vec.
23655         * c-decl.c (finish_decl): Add origtype parameter.  Change all
23656         callers.  Call build_function_call_vec rather than
23657         build_function_call for cleanup.
23658         * c-tree.h: Update declarations.
23659         * c-common.h: Update declarations.
23660         * stub-objc.c (objc_rewrite_function_call): Change parameter from
23661         params to first_param.
23662         * target.h (struct gcc_target): Change resolve_overloaded_builtin
23663         params parameter from tree to void *.
23664         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23665         Change arglist parameter to have type void *, and to be a pointer
23666         to a VEC.
23667         * config/rs6000/rs6000-protos.h
23668         (altivec_resolve_overloaded_builtin): Update declaration.
23669         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
23670         fnargs parameter to have type void *, and to be a pointer to a
23671         VEC.  Call build_function_call_vec instead of
23672         build_function_call.
23673         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
23674
23675 2009-04-20  Joey Ye  <joey.ye@intel.com>
23676             Xuepeng Guo  <xuepeng.guo@intel.com>
23677             H.J. Lu  <hongjiu.lu@intel.com>
23678
23679         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
23680
23681         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
23682         (IX86_LEA_PRIORITY): Likewise.
23683         (distance_non_agu_define): New function.
23684         (distance_agu_use): Likewise.
23685         (ix86_lea_for_add_ok): Likewise.
23686         (ix86_dep_by_shift_count): Likewise.
23687
23688         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
23689         should split for LEA.
23690
23691         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
23692         function.
23693         (ix86_dep_by_shift_count): Likewise.
23694
23695 2009-04-20  Richard Guenther  <rguenther@suse.de>
23696
23697         * expr.c (handled_component_p): Move ...
23698         * tree.h (handled_component_p): ... here.
23699         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
23700         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
23701         and REALPART_EXPR to be in one group.
23702
23703 2009-04-20  Richard Guenther  <rguenther@suse.de>
23704
23705         * basic-block.h (get_all_dominated_blocks): Declare.
23706         * dominance.c (get_all_dominated_blocks): New function.
23707         * tree-cfg.c (get_all_dominated_blocks): Remove.
23708         (remove_edge_and_dominated_blocks): Adjust.
23709         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
23710         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
23711         instead of recursing.
23712
23713 2009-04-20  Doug Kwan  <dougkwan@google.com>
23714
23715         * cgraph.h (cgraph_node_ptr): New type for vector functions.
23716         (struct cgraph_node_set_def): New type.
23717         (cgraph_node_set) New type. Also declare vector functions.
23718         (struct cgraph_node_set_element_def): New type.
23719         (cgraph_node_set_element): Ditto.
23720         (cgraph_node_set_iterator): New iterator type.
23721         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
23722         cgraph_node_set_remove, dump_cgraph_node_set,
23723         debug_cgraph_node_set): New prototypes.
23724         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
23725         cgraph_node_set_size): New inlines.
23726         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
23727         including cgraph.h.
23728         (struct ipa_opt_pass): Add struct cgraph_node_set_def
23729         argument to function 'write_summary'.
23730         * ipa.c: Include ggc.h.
23731         (hash_cgraph_node_set_element,
23732         eq_cgraph_node_set_element, cgraph_node_set_new,
23733         cgraph_node_set_add, cgraph_node_set_remove,
23734         cgraph_node_set_find, dump_cgraph_node_set,
23735         debug_cgraph_node_set): New functions.
23736         * Makefile.in (ipa.o): Add dependency on GGC_H.
23737
23738 2009-04-20  Ira Rosen  <irar@il.ibm.com>
23739
23740         PR tree-optimization/39675
23741         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
23742         check of the return code of vect_schedule_slp. Check that
23743         stmt_vec_info still exists for the statement, before checking its
23744         vectorization type.
23745
23746 2009-04-20  Michael Matz  <matz@suse.de>
23747
23748         * Makefile.in (generated_files): Take out $(simple_generated_c).
23749
23750 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
23751
23752         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
23753         (UINTPTR_TYPE):  Likewise.
23754
23755 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
23756
23757         PR c/37481
23758         * c-typeck.c (digest_init): Check for initializing an array with a
23759         string literal.
23760
23761 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
23762
23763         PR c/19771
23764         * c-semantics.c (pop_stmt_list): Propagate
23765         STATEMENT_LIST_HAS_LABEL to parent statement list.
23766
23767 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
23768
23769         * config/mips/mips.h (mips_tune_attr): New macro.
23770         * config/mips/mips.md (cpu): Use it.
23771
23772 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
23773
23774         PR c/38243
23775         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
23776         declaring a tag.
23777
23778 2009-04-19  Diego Novillo  <dnovillo@google.com>
23779
23780         * toplev.c (compile_file): Move call to coverage_finish ...
23781         * cgraphunit.c (ipa_passes): ... here.
23782         Call cgraph_process_new_functions.
23783         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
23784         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
23785
23786 2009-04-19  Jan Hubicka  <jh@suse.cz>
23787
23788         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
23789         cfun.
23790         (dump_cgraph_node): Dump can throw external flag.
23791         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
23792
23793 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23794
23795         PR c/32061
23796         PR c++/36954
23797         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
23798         * common.opt (Wlogical-op): Move from here...
23799         * c.opt (Wlogical-op): ... to here.
23800         * c-typeck.c (parser_build_binary_op): Update call to
23801         warn_logical_operator.
23802         * c-opts.c (c_common_post_options): Enable warn_logical_op with
23803         extra_warnings.
23804         * c-common.c (warn_logical_op): Update.
23805         * c-common.h (warn_logical_op): Update declaration.
23806
23807 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
23808
23809         * tree.c (protected_set_expr_location): Fix formatting.
23810
23811 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
23812
23813         PR c/27676
23814         * c-typeck.c (readonly_warning): new.
23815         (build_unary_op, build_modify_expr): Use readonly_warning for
23816         storing into something readonly but not const-qualified.
23817
23818 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
23819
23820         PR c/22367
23821         * c-typeck.c (build_unary_op): Check for taking address of
23822         expression of type void.
23823
23824 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
23825
23826         PR c/35210
23827         * c-typeck.c (build_function_call): Check for calling a function
23828         with qualified void return types.  Call require_complete_type when
23829         generating a trap.
23830
23831 2009-04-18  Jan Hubicka  <jh@suse.cz>
23832
23833         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
23834         Set nothrow flag.
23835         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
23836         can_throw_external flag.
23837         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
23838         * ipa-pure-const.c (ignore_edge): New function.
23839         (propagate): Compute order for NOTHROW computation; set NOTHROWs
23840         only over can_throw_external edges.
23841         (local_pure_const): Add nothrow flag.
23842         * ipa-utils.c (searchc): Add ignore_edge callback.
23843         (ipa_utils_reduced_inorder): Add ignore_edge callback.
23844         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
23845         (set_nothrow_function_flags): Update cgraph.
23846         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
23847
23848 2009-04-18  Richard Guenther  <rguenther@suse.de>
23849
23850         PR middle-end/39804
23851         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
23852         (fold_stmt): ... this and ...
23853         (fold_stmt_inplace): ... this.
23854         (fold_stmt_1): Fold references in calls and asms.
23855         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
23856
23857 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23858
23859         * tree-vrp.c (ssa_name_nonzero_p): Remove.
23860         * tree.h: Remove the prototype for ssa_name_nonzero_p.
23861
23862 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23863
23864         * tree.c (function_args_count): Remove.
23865         * tree.h: Remove the prototype for function_args_count.
23866
23867 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23868
23869         * tree-iterator.c (expr_only): Remove.
23870         * tree.h: Remove the prototype for expr_only.
23871
23872 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23873
23874         * reginfo.c (cannot_change_mode_set_regs): Remove.
23875         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
23876
23877 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
23878
23879         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
23880         whether operands 0 and 1 overlaps.
23881
23882 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23883
23884         PR middle-end/36902
23885         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
23886         pointer. Use warning_at instead of warning.
23887         (search_for_addr_array): Likewise.
23888         (check_array_bounds): Likewise.
23889         (check_all_array_refs): Check that the incoming edge is not in the
23890         list of edges to be removed.
23891         (check_all_array_refs): Avoid the temporal pointer.
23892         (vrp_visit_cond_stmt): Fix typo.
23893         (simplify_switch_using_ranges): Handle the case where the switch
23894         index is an integer constant.
23895
23896 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
23897
23898         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
23899
23900 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23901
23902         * doc/extend.texi, doc/invoke.texi: Fix typos.
23903
23904 2009-04-17  Cary Coutant  <ccoutant@google.com>
23905
23906         * tree-flow-inline.h (get_lineno): Fix inverted test.
23907
23908 2009-04-17  Diego Novillo  <dnovillo@google.com>
23909
23910         * tree-ssa-pre.c (create_expression_by_pieces): Remove
23911         assertion for AVAIL_OUT.
23912
23913 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
23914
23915         PR target/38627
23916         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
23917         * config/sh/linux-atomic.asm: Likewise.
23918
23919 2009-04-17  Diego Novillo  <dnovillo@google.com>
23920
23921         * except.c (debug_eh_tree): New.
23922         (struct eh_region, struct eh_status): Move ...
23923         * except.h: ... here.
23924         (add_type_for_runtime): Declare extern.
23925         (lookup_type_for_runtime): Likewise.
23926         (debug_eh_tree): Declare.
23927         * Makefile.in (GTFILES): List except.h before except.c
23928
23929 2009-04-17  Diego Novillo  <dnovillo@google.com>
23930
23931         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
23932         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
23933         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
23934         (find_vars_r): ... here.
23935         * tree-flow.h (find_referenced_vars_in): Declare.
23936         * tree-ssa-pre.c (create_expression_by_pieces): Assert
23937         that AVAIL_OUT exists for BLOCK.
23938         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
23939         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
23940         (tree-parloops.o): Likewise.
23941
23942 2009-04-17  Simon Baldwin  <simonb@google.com>
23943
23944         * toplev.c (default_tree_printer): Add handling for %E format.
23945
23946 2009-04-17  Diego Novillo  <dnovillo@google.com>
23947
23948         * tree-pretty-print.c (dump_generic_node): Add break after
23949         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
23950         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
23951         FUNCTION_TYPE together.  Call print_struct_decl when printing
23952         structures and TDF_SLIM is not given.
23953         (print_struct_decl): Fix logic for detecting recursion.
23954
23955 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
23956
23957         PR 31567
23958         * gcc.c (create_at_file): New.
23959         (compile_input_file_p): New.
23960         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
23961         * main.c (main): Update call to toplev_main.
23962         * toplev.c (toplev_main): Change signature. Call expandargv.
23963         * toplev.h (toplev_main): Change signature.
23964
23965 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
23966
23967         * dwarf2out.c (field_byte_offset): Use the type size as the field size
23968         if the latter is not constant.
23969
23970 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
23971
23972         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
23973
23974 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
23975
23976         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
23977         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
23978
23979 2009-04-17  Richard Guenther  <rguenther@suse.de>
23980
23981         * tree-ssa-structalias.c (get_constraint_for_component_ref):
23982         Handle component references view-converting an invariant address.
23983
23984 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
23985
23986         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
23987         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
23988         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
23989         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
23990         Use @deftypevr rather than @deftypevar.
23991
23992 2009-04-17  Richard Guenther  <rguenther@suse.de>
23993
23994         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
23995         (get_prop_source_stmt): Likewise.
23996         (can_propagate_from): Likewise.
23997
23998 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
23999
24000         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
24001         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
24002         (--with-multilib-list): Add default value.
24003         * configure: Regenerate.
24004         * Makefile.in (TM_ENDIAN_CONFIG): Define.
24005         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
24006         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
24007         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
24008         Don't add default cpu to multilib list unnecessarily, but do enable
24009         the relevant compiler option..
24010         Add support for --with-multilib-list=<blank> and
24011         --with-multilib-list=!<somelib> to supress unwanted multilibs.
24012         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
24013         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
24014         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
24015         TM_MULTILIB_CONFIG.
24016         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
24017         (MULTILIB_OSDIRNAMES): New variable.
24018         * config/sh/t-1e: Delete file.
24019         * config/sh/t-mlib-sh1: Delete file.
24020         * config/sh/t-mlib-sh2: Delete file.
24021         * config/sh/t-mlib-sh2a: Delete file.
24022         * config/sh/t-mlib-sh2a-nofpu: Delete file.
24023         * config/sh/t-mlib-sh2a-single: Delete file.
24024         * config/sh/t-mlib-sh2a-single-only: Delete file.
24025         * config/sh/t-mlib-sh2e: Delete file.
24026         * config/sh/t-mlib-sh3e: Delete file.
24027         * config/sh/t-mlib-sh4: Delete file.
24028         * config/sh/t-mlib-sh4-nofpu: Delete file.
24029         * config/sh/t-mlib-sh4-single: Delete file.
24030         * config/sh/t-mlib-sh4-single-only: Delete file.
24031         * config/sh/t-mlib-sh4a: Delete file.
24032         * config/sh/t-mlib-sh4a-nofpu: Delete file.
24033         * config/sh/t-mlib-sh4a-single: Delete file.
24034         * config/sh/t-mlib-sh4a-single-only: Delete file.
24035         * config/sh/t-mlib-sh4al: Delete file.
24036         * config/sh/t-mlib-sh5-32media: Delete file.
24037         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
24038         * config/sh/t-mlib-sh5-64media: Delete file.
24039         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
24040         * config/sh/t-mlib-sh5-compact: Delete file.
24041         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
24042         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
24043         * doc/install.texi (Options specification): Add
24044         --with-multilib-list and --with-endian.
24045
24046 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
24047
24048         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
24049         REVISION_c.
24050         (OBJS-common): Add plugin-version.o.
24051         (plugin-version.o): New.
24052         * gcc-plugin.h (plugin_gcc_version): New.
24053         (plugin_default_version_check): New.
24054         (plugin_init_func, plugin_init): Add version argument.
24055         * plugin-version.c: New.
24056         * plugin.c (str_plugin_gcc_version_name): New.
24057         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
24058         pass it to the init function.
24059         (plugin_default_version_check): New.
24060
24061 2009-04-17  Richard Guenther  <rguenther@suse.de>
24062
24063         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
24064         for decl-vs-decl disambiguation.
24065
24066 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
24067
24068         * config/s390/s390.h (s390_tune_attr): New macro definition.
24069         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
24070
24071 2009-04-17  Richard Guenther  <rguenther@suse.de>
24072
24073         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
24074         (fold_stmt_r): Likewise.
24075         (maybe_fold_reference): New function.
24076         (fold_gimple_assign): Handle cases fold_stmt_r did.
24077         (fold_stmt): Do not use fold_stmt_r.
24078         (fold_stmt_inplace): Likewise.
24079
24080 2009-04-17  Richard Guenther  <rguenther@suse.de>
24081
24082         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
24083         (record_equivalences_from_stmt): Remove useless checks and
24084         simplifications.
24085         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
24086         the type is already suitable.
24087
24088 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
24089
24090         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
24091
24092 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
24093
24094         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
24095         (CMPtype): Define as __gcc_CMPtype.
24096
24097 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
24098
24099         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
24100         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
24101
24102 2009-04-17  Richard Guenther  <rguenther@suse.de>
24103
24104         PR tree-optimization/39746
24105         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
24106         special-casing for builtins and static variable use/def.
24107         (call_may_clobber_ref_p_1): Likewise.
24108
24109 2009-04-16  Ian Lance Taylor  <iant@google.com>
24110
24111         * df.h: Include "timevar.h".
24112         (struct df_problem): Change tv_id field to timevar_id_t.
24113         * tree-pass.h: Include "timevar.h".
24114         (struct opt_pass): Change tv_id field to timevar_id_t.
24115         * timevar.h (timevar_id_t): Define TV_NONE.
24116         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
24117         TV_NONE rather than tv_id != 0.
24118         (execute_one_pass): Likewise.
24119         * Makefile.in (DF_H): Add $(TIMEVAR_H).
24120         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
24121         dependencies to $(TREE_PASS_H).
24122         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
24123         to TV_NONE.
24124         (pass_branch_target_load_optimize2): Likewise.
24125         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
24126         (pass_outof_cfg_layout_mode): Likewise.
24127         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
24128         (pass_rebuild_cgraph_edges): Likewise.
24129         (pass_remove_cgraph_callee_edges): Likewise.
24130         * df-core.c (pass_df_initialize_opt): Likewise.
24131         (pass_df_initialize_no_opt): Likewise.
24132         (pass_df_finish): Likewise.
24133         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
24134         * except.c (pass_set_nothrow_function_flags): Likewise.
24135         (pass_convert_to_eh_region_ranges): Likewise.
24136         * final.c (pass_compute_alignments): Likewise.
24137         * function.c (pass_instantiate_virtual_regs): Likewise.
24138         (pass_init_function): Likewise.
24139         (pass_leaf_regs): Likewise.
24140         (pass_match_asm_constraints): Likewise.
24141         * gimple-low.c (pass_lower_cf): Likewise.
24142         (pass_mark_used_blocks): Likewise.
24143         * init-regs.c (pass_initialize_regs): Likewise.
24144         * integrate.c (pass_initial_value_sets): Likewise.
24145         * ira.c (pass_ira): Likewise.
24146         * jump.c (pass_cleanup_barriers): Likewise.
24147         * omp-low.c (pass_expand_omp): Likewise.
24148         (pass_lower_omp): Likewise.
24149         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
24150         * recog.c (pass_split_all_insns): Likewise.
24151         (pass_split_after_reload): Likewise.
24152         (pass_split_before_regstack): Likewise.
24153         (pass_split_before_sched2): Likewise.
24154         (pass_split_for_shorten_branches): Likewise.
24155         * reginfo.c (pass_reginfo_init): Likewise.
24156         (pass_subregs_of_mode_init): Likewise.
24157         (pass_subregs_of_mode_finish): Likewise.
24158         * passes.c (pass_postreload): Likewise.
24159         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
24160         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
24161         (pass_warn_function_return): Likewise.
24162         (pass_warn_function_noreturn): Likewise.
24163         * tree-complex.c (pass_lower_complex): Likewise.
24164         (pass_lower_complex_O0): Likewise.
24165         * tree-if-conv.c (pass_if_conversion): Likewise.
24166         * tree-into-ssa.c (pass_build_ssa): Likewise.
24167         * tree-mudflap.c (pass_mudflap_1): Likewise.
24168         (pass_mudflap_2): Likewise.
24169         * tree-nomudflap.c (pass_mudflap_1): Likewise.
24170         (pass_mudflap_2): Likewise.
24171         * tree-nrv.c (pass_return_slot): Likewise.
24172         * tree-object-size.c (pass_object_sizes): Likewise.
24173         * tree-optimize.c (pass_all_optimizations): Likewise.
24174         (pass_early_local_passes): Likewise.
24175         (pass_all_early_optimizations): Likewise.
24176         (pass_cleanup_cfg): Likewise.
24177         (pass_cleanup_cfg_post_optimizing): Likewise.
24178         (pass_free_datastructures): Likewise.
24179         (pass_free_cfg_annotations): Likewise.
24180         (pass_fixup_cfg): Likewise.
24181         (pass_init_datastructures): Likewise.
24182         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
24183         (pass_late_warn_uninitialized): Likewise.
24184         (pass_update_address_taken): Likewise.
24185         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
24186         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
24187         (pass_cse_sincos): Likewise.
24188         (pass_convert_to_rsqrt): Likewise.
24189         * tree-ssa-structalias.c (pass_build_alias): Likewise.
24190         * tree-stdarg.c (pass_stdarg): Likewise.
24191         * tree-tailcall.c (pass_tail_recursion): Likewise.
24192         (pass_tail_calls): Likewise.
24193         * tree-vect-generic.c (pass_lower_vector): Likewise.
24194         (pass_lower_vector_ssa): Likewise.
24195         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
24196
24197 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
24198
24199         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
24200         XLR entry.
24201         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
24202         Handle -march=xlr.
24203         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
24204         logical and signext.
24205
24206 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
24207
24208         PR target/39767
24209         * config/sh/predicates.md (arith_operand): Check if the operand
24210         of TRUNCATE is a REG.
24211
24212 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
24213
24214         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
24215         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
24216
24217 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
24218
24219         * tree-iterator.c (tsi_split_statement_list_after,
24220         tsi_split_statement_list_before): Remove.
24221         * tree-iterator.h: Remove the prototypes for
24222         tsi_split_statement_list_after and tsi_split_statement_list_before.
24223
24224 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
24225
24226         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
24227         * tree-ssa-propagate.h: Remove the prototype for
24228         stmt_makes_single_load.
24229
24230 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
24231
24232         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
24233         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
24234
24235 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
24236
24237         * tree-iterator.c (EXPR_LAST_BODY): Remove.
24238
24239 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
24240
24241         * except.c (eh_region_outer_p): Remove.
24242         * except.h: Remove the prototype for eh_region_outer_p.
24243
24244 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
24245
24246         * function.c (current_function_assembler_name): Remove.
24247         * function.h: Remove the prototype for
24248         current_function_assembler_name.
24249
24250 2009-04-16  Ian Lance Taylor  <iant@google.com>
24251
24252         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
24253         (add_reg_note): Call alloc_reg_note.
24254         * rtl.h (alloc_reg_note): Declare.
24255         * combine.c (try_combine): Use alloc_reg_note.
24256         (recog_for_combine, move_deaths): Likewise.
24257         (distribute_notes): Use alloc_reg_note and add_reg_note.
24258         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
24259         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
24260         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
24261
24262 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
24263
24264         PR rtl-optimization/39762
24265         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
24266         ira_may_move_out_cost): Add comments about way of their usage.
24267         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
24268
24269         * ira-conflicts.c (process_regs_for_copy): Use function
24270         ira_get_register_move_cost instead of global
24271         ira_register_move_cost.
24272
24273         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
24274         color_pass, move_spill_restore, update_curr_costs): Ditto.
24275
24276         * ira-lives.c (process_single_reg_class_operands): Ditto.
24277
24278         * ira-emit.c (emit_move_list): Ditto.
24279
24280         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
24281         (record_reg_classes): Ditto.  Use functions
24282         ira_get_register_move_cost and ira_get_may_move_cost instead of
24283         global vars ira_register_move_cost, ira_may_move_out_cost and
24284         ira_may_move_in_cost.
24285         (record_address_regs): Don't call ira_init_register_move_cost.
24286         Use function ira_get_may_move_cost instead of global
24287         ira_may_move_in_cost.
24288         (process_bb_node_for_hard_reg_moves): Use function
24289         ira_get_register_move_cost instead of global ira_register_move_cost.
24290         (ira_costs): Don't call ira_init_register_move_cost.
24291
24292 2009-04-16  Richard Guenther  <rguenther@suse.de>
24293
24294         * tree-cfg.c (verify_gimple_assign_binary):
24295         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
24296         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
24297         (create_general_new_stmt): Note that this function is broken.
24298
24299 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
24300
24301         * common.opt (fhelp): Add Var(help_flag).
24302         * gcc-plugin.h (plugin_info): Add help.
24303         * plugin.c (plugin_name_args): Add help.
24304         (register_plugin_info): Set plugin->help.
24305         (print_help_one_plugin): New.
24306         (print_plugins_help): New.
24307         * plugin.h (print_plugins_help): New.
24308         * toplev.c (toplev_main): Call print_plugins_help if needed.
24309
24310 2009-04-16  Richard Guenther  <rguenther@suse.de>
24311
24312         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
24313         (gimple_ior_addresses_taken_1): New function.
24314         (gimple_ior_addresses_taken): Likewise.
24315         * gimple.h (struct gimple_statement_with_ops_base): Remove
24316         addresses_taken member.
24317         (gimple_ior_addresses_taken): Declare.
24318         (gimple_addresses_taken, gimple_addresses_taken_ptr,
24319         gimple_set_addresses_taken): Remove.
24320         * ipa-reference.c (mark_address): New function.
24321         (scan_stmt_for_static_refs): Use it for marking addresses taken.
24322         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
24323         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
24324         (gimple_add_to_addresses_taken): Remove.
24325         (get_tmr_operands): Call mark_address_taken.
24326         (get_asm_expr_operands): Likewise.
24327         (get_expr_operands): Likewise.
24328         (build_ssa_operands): Do not clear the addresses_taken bitmap.
24329         (free_stmt_operands): Do not free it.
24330         * tree-ssa.c (delete_tree_ssa): Likewise.
24331         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
24332
24333 2009-04-16  Richard Guenther  <rguenther@suse.de>
24334
24335         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
24336         (walk_stmt_load_store_ops): Likewise.
24337         * gimple.c (get_base_loadstore): New function.
24338         (walk_stmt_load_store_addr_ops): Likewise.
24339         (walk_stmt_load_store_ops): Likewise.
24340         * ipa-pure-const.c (check_op): Simplify.
24341         (check_load, check_store): New functions.
24342         (check_stmt): Use walk_stmt_load_store_ops.
24343         * ipa-reference.c (mark_load): Adjust signature.
24344         (mark_store): Likewise.
24345         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
24346
24347 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
24348
24349         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
24350         (plugin_info): New.
24351         * opts.c (common_handle_option): Don't call print_version.
24352         * plugin.c (plugin_name_args): Add version.
24353         (register_plugin_info): New.
24354         (register_callback): Handle PLUGIN_INFO.
24355         (try_init_one_plugin): New.
24356         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
24357         if failed to init.
24358         (finalize_one_plugin): New.
24359         (finalize_plugins): New.
24360         (print_one_plugin): New.
24361         (print_plugins_versions): New.
24362         * plugin.h (print_plugins_versions): New.
24363         (finalize_plugins): New.
24364         * toplev.c (compile_file): Don't call initialize_plugins.
24365         (print_version): Call print_plugins_versions.
24366         (toplev_main): Call initialize_plugins. Print version if needed.
24367         Call finalize_plugins.
24368
24369 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
24370
24371         * common.opt (fversion): New.
24372         * gcc.c (print_version): New.
24373         (process_command): Don't print the version. Just set print_version.
24374         (main): Print version. Call subprocesses if print_version and
24375         verbose_flag are set.
24376         * opts.c (common_handle_option): Handle OPT_fversion.
24377
24378 2009-04-16  Richard Guenther  <rguenther@suse.de>
24379             Ira Rosen  <irar@il.ibm.com>
24380
24381         PR tree-optimization/39698
24382         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
24383         type of the reduction variable.  Only generate the def if
24384         it is needed.
24385
24386         * omp-low.c (expand_omp_for_generic): When converting to a pointer
24387         make sure to first convert to an integer of the same precision.
24388         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
24389         the type of the evolution correctly in computing the new
24390         induction variable base.
24391
24392 2009-04-16  Richard Guenther  <rguenther@suse.de>
24393
24394         PR middle-end/39625
24395         * tree-cfg.c (make_blocks): Split statements with to-be
24396         abnormal SSA names on the lhs.
24397
24398 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
24399
24400         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
24401         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
24402         * c-typeck.c (really_start_incremental_init): Likewise.
24403         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
24404         (TARGET_INITIALIZER): Remove it.
24405         * target.h (struct target): Remove vector_opaque_p.
24406         * tree.c (build_opaque_vector_type): New.
24407         * tree.h (TYPE_VECTOR_OPAQUE): New.
24408         (build_opaque_vector_type): Declare.
24409         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
24410         * config/rs6000/rs6000.c (build_opaque_vector_type,
24411         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
24412         (rs6000_init_builtins): Use build_opaque_vector_type for
24413         opaque_V4SI_type_node.
24414
24415 2009-04-15  Catherine Moore  <clm@codesourcery.com>
24416
24417         * debug.h (set_name):  Declare.
24418         * dwarf2out.c (dwarf2out_set_name): Declare.
24419         (dwarf2_debug_hooks): Add set_name.
24420         (find_AT_string): New.
24421         (add_AT_string): Call find_AT_string.
24422         (dwarf2out_set_name): New.
24423         * cp/decl.c (grokdeclarator): Call set_name.
24424         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
24425         * debug.c (do_nothing_debug_hooks):  Likewise.
24426         * dbxout.c (dbx_debug_hooks): Likewise.
24427         * sdbout.c (sdb_debug_hooks): Likewise.
24428
24429 2009-04-15  Michael Eager  <eager@eagercon.com>
24430
24431         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
24432         reg for single-precision FPU.
24433         * config/rs6000/rs6000.md (movsi_internal1): Only for
24434         !TARGET_SINGLE_FPU.
24435         (movsi_internal1_single): New. Add pattern to move SI values to/from
24436         single-precision FP regs.
24437
24438 2009-04-15  Richard Guenther  <rguenther@suse.de>
24439
24440         * omp-low.c (lower_rec_input_clauses): Build correct address
24441         expressions.
24442         (expand_omp_for_generic): Fix multiplication type.
24443         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
24444         (generate_memset_zero): Fix types.
24445         * tree-profile.c (prepare_instrumented_value): Correctly
24446         widen a pointer.
24447
24448 2009-04-15  Ian Lance Taylor  <iant@google.com>
24449
24450         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
24451         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
24452         for -Wall and for -Wc++-compat.
24453         (c_common_post_options): For C++, set warn_enum_compare if not
24454         already set.
24455         * c-tree.h (struct c_expr): Add field original_type.
24456         (build_external_ref): Update declaration.
24457         * c-parser.c (c_parser_braced_init): Set original_type.
24458         (c_parser_initelt): Likewise.
24459         (c_parser_expr_no_commas): Likewise.
24460         (c_parser_conditional_expression): Likewise.
24461         (c_parser_cast_expression): Likewise.
24462         (c_parser_unary_expression): Likewise.  Pull setting of
24463         original_code to top of function.
24464         (c_parser_sizeof_expression): Set original_type.
24465         (c_parser_alignof_expression): Likewise.
24466         (c_parser_postfix_expression): Likewise.  Pull setting of
24467         original_code to top of function.
24468         (c_parser_postfix_expression_after_paren_type): Set original_type.
24469         (c_parser_postfix_expression_after_primary): Likewise.
24470         (c_parser_expression): Likewise.
24471         * c-typeck.c (build_external_ref): Add type parameter.  Change all
24472         callers.
24473         (c_expr_sizeof_expr): Set original_type field.
24474         (parser_build_unary_op): Likewise.
24475         (parser_build_binary_op): Likewise.  Optionally warn about
24476         comparisons of enums of different types.
24477         (digest_init): Set original_type field.
24478         (really_start_incremental_init): Likewise.
24479         (push_init_level, pop_init_level): Likewise.
24480         * doc/invoke.texi (Warning Options): -Wenum-compare now
24481         supported in C.
24482
24483 2009-04-15  Richard Guenther  <rguenther@suse.de>
24484
24485         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
24486         out a necessary conversion.
24487         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
24488         names we didn't value number.
24489         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
24490
24491 2009-04-15  Richard Guenther  <rguenther@suse.de>
24492
24493         PR tree-optimization/39764
24494         * tree-ssa-ccp.c (get_value): Canonicalize value with
24495         canonicalize_float_value.
24496
24497 2009-04-15  Jan Hubicka  <jh@suse.cz>
24498
24499         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
24500         Wrong version of patch.
24501
24502 2009-04-15  Jan Hubicka  <jh@suse.cz>
24503
24504         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
24505
24506 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
24507
24508         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
24509         our distinct integral and vector types.
24510
24511 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
24512
24513         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
24514         * init.c (build_vtbl_address): Remove call to assemble_external.
24515
24516 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
24517
24518         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
24519         output for other floating point modes.
24520
24521 2009-04-14  Diego Novillo  <dnovillo@google.com>
24522
24523         * diagnostic.c (diagnostic_report_diagnostic): Do not
24524         warn about loaded plugins for DK_ERROR and DK_WARNING.
24525         * c-decl.c (declspecs_add_type): Move call to
24526         invoke_plugin_callbacks ...
24527         * c-parser.c (c_parser_declspecs): ... here.
24528         * plugin.c (dump_active_plugins): Tidy output.
24529
24530 2009-04-14  Diego Novillo  <dnovillo@google.com>
24531             Le-Chun Wu  <lcwu@google.com>
24532
24533         * configure.ac: Add --enable-plugin support.
24534         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
24535         * Makefile.in (PLUGIN_H): Define.
24536         Export ENABLE_PLUGIN and GMPINC to site.exp.
24537         Add PLUGINLIBS to link command.
24538         Add/modify dependencies for plugin.o and files including plugin.h.
24539         (plugin.o): New.
24540         * config.in: Regenerate.
24541
24542         * opts.c (common_handle_option): Handle OPT_fplugin_ and
24543         OPT_fplugin_arg_.
24544
24545 2009-04-14  Le-Chun Wu  <lcwu@google.com>
24546
24547         * tree-pass.h (register_one_dump_file): Add a prototype for
24548         register_one_dump_file.
24549         * toplev.c (compile_file): Call initialize_plugins.
24550         (do_compile): Call invoke_plugin_callbacks.
24551         (toplev_main): Call invoke_plugin_callbacks.
24552         * common.opt: Add -fplugin= and -fplugin-arg-.
24553         * gcc-plugin.h: New public header file for plugins to include.
24554         * plugin.c: New source file.
24555         * plugin.h: New internal header file.
24556         * passes.c (register_one_dump_file): Make it external.
24557
24558         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
24559
24560 2009-04-14  Diego Novillo  <dnovillo@google.com>
24561
24562         * doc/plugins.texi: New.
24563         * doc/gccint.texi: Add reference to Plugins chapter.
24564         * doc/invoke.texi: Document -fplugin and -fplugin-arg
24565         * diagnostic.c (diagnostic_report_diagnostic): Warn about
24566         loaded plugins, if any.
24567         * timevar.def (TV_PLUGIN_INIT): Define.
24568         (TV_PLUGIN_RUN): Define.
24569         * plugin.c: Include timevar.h
24570         (plugins_active_p): New.
24571         (dump_active_plugins): New.
24572         (debug_active_plugins): New.
24573
24574 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
24575
24576         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
24577         library paths.
24578         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
24579
24580 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
24581
24582         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
24583         the same as a minus without a shift.
24584
24585 2009-04-14  Nick Clifton  <nickc@redhat.com>
24586
24587         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
24588         comparisons with small integers will always produce a short
24589         branch.
24590
24591 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
24592
24593         Merge:
24594         2008-12-19  Diego Novillo  <dnovillo@google.com>
24595
24596         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
24597
24598 2009-04-14  Richard Guenther  <rguenther@suse.de>
24599
24600         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
24601         verification.
24602         (verify_gimple_assign_binary): Likewise.  Handle shifts and
24603         rotates correctly.
24604         (verify_gimple_phi): Print the mismatched argument position.
24605         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
24606         Fix types.
24607         (vect_update_init_of_dr): Likewise.
24608         * matrix-reorg.c (transform_access_sites): Do what the
24609         comment suggests.
24610         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
24611
24612 2009-04-13  Michael Eager  <eager@eagercon.com>
24613
24614         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
24615         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
24616         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
24617         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
24618         remove duplicate config
24619
24620 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
24621
24622         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
24623         file_name:line_number type locator of the call site.
24624
24625 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
24626
24627         * genautomata.c: Put blank after comma.
24628         (automaton_decls): New.
24629         (struct unit_usage): Add comments to member next.
24630         (store_alt_unit_usage): Keep the list ordered.
24631         (unit_present_on_list_p, equal_alternatives_p): New.
24632         (check_regexp_units_distribution): Check units distribution
24633         correctness correctly.
24634         (main): Don't write automata if error is found.  Return correct
24635         exit code.
24636
24637         * config/m68k/cf.md (cfv4_ds): Remove.
24638         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
24639         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
24640
24641         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
24642         power4-load-ext, power4-store, power4-store-update,
24643         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
24644         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
24645         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
24646         power4-sqrt, power4-isync): Modify reservation to make correct
24647         unit distribution to automata.
24648
24649         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
24650         power5-store-update, power5-two, power5-three, power5-lmul,
24651         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
24652
24653 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
24654
24655         * except.c (pass_set_nothrow_function_flags): Set name and add
24656         TODO_dump_func.
24657         (set_nothrow_function_flags): Mention in the dump file when
24658         changing a function to nothrow.
24659
24660 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
24661
24662         PR/39066
24663         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
24664         instead of unsigned long.
24665
24666 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24667
24668         * config/arm/arm.c (return_used_this_function): Remove.
24669         (arm_output_function_prologue): Remove use of
24670         return_used_this_function.
24671         (output_return_instruction): Replace use of
24672         return_used_this_function
24673         by cfun->machine->return_used_this_function.
24674         (arm_output_epilogue): Likewise.
24675         (arm_output_function_epilogue): Likewise.
24676         (thumb_unexpanded_epilogue): Likewise.
24677         * config/arm/arm.h (struct machine_function):
24678         New member return_used_this_function.
24679
24680 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
24681
24682         * doc/install.texi: Correct description of default directory for
24683         --with-gxx-include-dir.
24684
24685 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
24686
24687         * fold-const.c (build_range_check): Properly deal with enumeral and
24688         boolean base types.
24689
24690 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
24691
24692         * doc/invoke.texi (max_gcse_passes): Remove documentation.
24693         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
24694         * params.h (MAX_GCSE_PASSES): Remove.
24695         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
24696         in sequence.  Remove ability to run multiple passes.
24697         (bypass_jumps): Report run as third CPROP pass.
24698
24699 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
24700
24701         PR middle-end/39651
24702         * except.c (can_throw_external): Look at each insn in a SEQUENCE
24703         when deciding whether the whole SEQUENCE can throw.
24704
24705 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
24706
24707         PR target/39740
24708         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
24709         offseted label references.
24710
24711 2009-04-11  Jan Hubicka  <jh@suse.cz>
24712
24713         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
24714
24715 2009-04-11  Richard Guenther  <rguenther@suse.de>
24716
24717         PR middle-end/39732
24718         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
24719         return variables as TREE_ADDRESSABLE.
24720
24721 2009-04-11  Richard Guenther  <rguenther@suse.de>
24722
24723         PR tree-optimization/39713
24724         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
24725         reference trees have SSA_NAME operands.
24726
24727 2009-04-11  Richard Guenther  <rguenther@suse.de>
24728
24729         PR c/39712
24730         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
24731         address expressions.
24732
24733 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
24734
24735         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
24736         match changes in Cygwin 1.7
24737         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
24738         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
24739
24740 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
24741
24742         PR tree-optimization/39701
24743         * doc/invoke.texi (Optimization Options): Document change in
24744         meaning and initialization of -fdelete-null-pointer-checks.
24745
24746 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
24747
24748         PR middle-end/39701
24749         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
24750
24751         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
24752         here.
24753
24754         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
24755
24756 2009-04-10  Chao-ying Fu  <fu@mips.com>
24757
24758         * doc/tm.texi (Instruction Output): Document
24759         TARGET_ASM_FINAL_POSTSCAN_INSN.
24760         * target.h (final_postscan_insn): New field in asm_out.
24761         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
24762         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
24763         * final.c (final_scan_insn): Call
24764         targetm.asm_out.final_postscan_insn after outputting
24765         an asm macro and a normal instruction.
24766
24767         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
24768         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
24769         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
24770         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
24771         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
24772
24773 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
24774
24775         PR middle-end/39701
24776         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
24777         variables as non-NULL even with -fdelete-null-pointer-checks.
24778
24779 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
24780
24781         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
24782
24783 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
24784
24785         PR target/39678
24786         * config/i386/i386.c (classify_argument): Handle SCmode with
24787         (bit_offset % 64) != 0.
24788
24789 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
24790
24791         * doc/invoke.texi (Optimize Options): Add cross-reference to
24792         -Q --help=optimizers examples.
24793
24794 2009-04-10  Ben Elliston  <bje@au.ibm.com>
24795
24796         PR target/36800
24797         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
24798         regalign for the reg == fpr and TDmode case.
24799
24800 2009-04-09  David Ayers  <ayers@fsfe.org>
24801
24802         PR objc/29200
24803         * objc/objc-act.c (warn_with_method): Remove helper function.
24804         (check_duplicates): Call warning and inform directly.
24805         (really_start_method): Likewise.
24806
24807 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
24808
24809         * expmed.c (expand_divmod): Always use a comparison for a division
24810         by a large unsigned integer.
24811
24812         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
24813         for things others than variables or functions as nonzero.
24814
24815 2009-04-09  Nick Clifton  <nickc@redhat.com>
24816
24817         * unwind-compat.c: Change copyright header to refer to version
24818         3 of the GNU General Public License with version 3.1 of the
24819         GCC Runtime Library Exception and to point readers at the
24820         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
24821         * config/alpha/crtfastmath.c: Likewise.
24822         * config/alpha/linux-unwind.h: Likewise.
24823         * config/alpha/qrnnd.asm: Likewise.
24824         * config/alpha/vms-crt0-64.c: Likewise.
24825         * config/alpha/vms-crt0.c: Likewise.
24826         * config/alpha/vms-dwarf2.asm: Likewise.
24827         * config/alpha/vms-dwarf2eh.asm: Likewise.
24828         * config/alpha/vms-psxcrt0-64.c: Likewise.
24829         * config/alpha/vms-psxcrt0.c: Likewise.
24830         * config/alpha/vms_tramp.asm: Likewise.
24831         * config/arc/initfini.c: Likewise.
24832         * config/arc/lib1funcs.asm: Likewise.
24833         * config/arm/bpabi-v6m.S: Likewise.
24834         * config/arm/bpabi.S: Likewise.
24835         * config/arm/bpabi.c: Likewise.
24836         * config/arm/crti.asm: Likewise.
24837         * config/arm/crtn.asm: Likewise.
24838         * config/arm/ieee754-df.S: Likewise.
24839         * config/arm/ieee754-sf.S: Likewise.
24840         * config/arm/lib1funcs.asm: Likewise.
24841         * config/arm/libunwind.S: Likewise.
24842         * config/arm/linux-atomic.c: Likewise.
24843         * config/arm/mmintrin.h: Likewise.
24844         * config/arm/pr-support.c: Likewise.
24845         * config/arm/unaligned-funcs.c: Likewise.
24846         * config/arm/unwind-arm.c: Likewise.
24847         * config/arm/unwind-arm.h: Likewise.
24848         * config/avr/libgcc.S: Likewise.
24849         * config/bfin/crti.s: Likewise.
24850         * config/bfin/crtlibid.s: Likewise.
24851         * config/bfin/crtn.s: Likewise.
24852         * config/bfin/lib1funcs.asm: Likewise.
24853         * config/bfin/linux-unwind.h: Likewise.
24854         * config/cris/arit.c: Likewise.
24855         * config/cris/cris_abi_symbol.c: Likewise.
24856         * config/darwin-64.c: Likewise.
24857         * config/darwin-crt2.c: Likewise.
24858         * config/darwin-crt3.c: Likewise.
24859         * config/darwin.h: Likewise.
24860         * config/dbxelf.h: Likewise.
24861         * config/dfp-bit.c: Likewise.
24862         * config/dfp-bit.h: Likewise.
24863         * config/elfos.h: Likewise.
24864         * config/fixed-bit.c: Likewise.
24865         * config/fixed-bit.h: Likewise.
24866         * config/fp-bit.c: Likewise.
24867         * config/fp-bit.h: Likewise.
24868         * config/fr30/crti.asm: Likewise.
24869         * config/fr30/crtn.asm: Likewise.
24870         * config/fr30/lib1funcs.asm: Likewise.
24871         * config/freebsd-spec.h: Likewise.
24872         * config/frv/cmovd.c: Likewise.
24873         * config/frv/cmovh.c: Likewise.
24874         * config/frv/cmovw.c: Likewise.
24875         * config/frv/frvbegin.c: Likewise.
24876         * config/frv/frvend.c: Likewise.
24877         * config/frv/lib1funcs.asm: Likewise.
24878         * config/glibc-stdint.h: Likewise.
24879         * config/h8300/clzhi2.c: Likewise.
24880         * config/h8300/crti.asm: Likewise.
24881         * config/h8300/crtn.asm: Likewise.
24882         * config/h8300/ctzhi2.c: Likewise.
24883         * config/h8300/fixunssfsi.c: Likewise.
24884         * config/h8300/lib1funcs.asm: Likewise.
24885         * config/h8300/parityhi2.c: Likewise.
24886         * config/h8300/popcounthi2.c: Likewise.
24887         * config/i386/ammintrin.h: Likewise.
24888         * config/i386/att.h: Likewise.
24889         * config/i386/avxintrin.h: Likewise.
24890         * config/i386/biarch64.h: Likewise.
24891         * config/i386/bmmintrin.h: Likewise.
24892         * config/i386/cpuid.h: Likewise.
24893         * config/i386/cross-stdarg.h: Likewise.
24894         * config/i386/crtfastmath.c: Likewise.
24895         * config/i386/crtprec.c: Likewise.
24896         * config/i386/cygming-crtbegin.c: Likewise.
24897         * config/i386/cygming-crtend.c: Likewise.
24898         * config/i386/cygwin.asm: Likewise.
24899         * config/i386/emmintrin.h: Likewise.
24900         * config/i386/gmm_malloc.h: Likewise.
24901         * config/i386/gthr-win32.c: Likewise.
24902         * config/i386/i386.h: Likewise.
24903         * config/i386/immintrin.h: Likewise.
24904         * config/i386/linux-unwind.h: Likewise.
24905         * config/i386/linux64.h: Likewise.
24906         * config/i386/mm3dnow.h: Likewise.
24907         * config/i386/mmintrin-common.h: Likewise.
24908         * config/i386/mmintrin.h: Likewise.
24909         * config/i386/nmmintrin.h: Likewise.
24910         * config/i386/pmm_malloc.h: Likewise.
24911         * config/i386/pmmintrin.h: Likewise.
24912         * config/i386/smmintrin.h: Likewise.
24913         * config/i386/sol2-c1.asm: Likewise.
24914         * config/i386/sol2-ci.asm: Likewise.
24915         * config/i386/sol2-cn.asm: Likewise.
24916         * config/i386/sol2-gc1.asm: Likewise.
24917         * config/i386/tmmintrin.h: Likewise.
24918         * config/i386/unix.h: Likewise.
24919         * config/i386/w32-unwind.h: Likewise.
24920         * config/i386/wmmintrin.h: Likewise.
24921         * config/i386/x86-64.h: Likewise.
24922         * config/i386/x86intrin.h: Likewise.
24923         * config/i386/xmmintrin.h: Likewise.
24924         * config/ia64/crtbegin.asm: Likewise.
24925         * config/ia64/crtend.asm: Likewise.
24926         * config/ia64/crtfastmath.c: Likewise.
24927         * config/ia64/crti.asm: Likewise.
24928         * config/ia64/crtn.asm: Likewise.
24929         * config/ia64/fde-glibc.c: Likewise.
24930         * config/ia64/lib1funcs.asm: Likewise.
24931         * config/ia64/linux-unwind.h: Likewise.
24932         * config/ia64/quadlib.c: Likewise.
24933         * config/ia64/unwind-ia64.c: Likewise.
24934         * config/linux.h: Likewise.
24935         * config/m32c/m32c-lib1.S: Likewise.
24936         * config/m32c/m32c-lib2-trapv.c: Likewise.
24937         * config/m32c/m32c-lib2.c: Likewise.
24938         * config/m32r/initfini.c: Likewise.
24939         * config/m68hc11/larith.asm: Likewise.
24940         * config/m68hc11/m68hc11-crt0.S: Likewise.
24941         * config/m68k/cf.md: Likewise.
24942         * config/m68k/crti.s: Likewise.
24943         * config/m68k/crtn.s: Likewise.
24944         * config/m68k/lb1sf68.asm: Likewise.
24945         * config/m68k/linux-unwind.h: Likewise.
24946         * config/mcore/crti.asm: Likewise.
24947         * config/mcore/crtn.asm: Likewise.
24948         * config/mcore/lib1.asm: Likewise.
24949         * config/mips/linux-unwind.h: Likewise.
24950         * config/mips/loongson.h: Likewise.
24951         * config/mips/mips16.S: Likewise.
24952         * config/mmix/crti.asm: Likewise.
24953         * config/mmix/crtn.asm: Likewise.
24954         * config/pa/fptr.c: Likewise.
24955         * config/pa/hpux-unwind.h: Likewise.
24956         * config/pa/lib2funcs.asm: Likewise.
24957         * config/pa/linux-atomic.c: Likewise.
24958         * config/pa/linux-unwind.h: Likewise.
24959         * config/pa/milli64.S: Likewise.
24960         * config/pa/quadlib.c: Likewise.
24961         * config/pa/stublib.c: Likewise.
24962         * config/picochip/libgccExtras/adddi3.asm: Likewise.
24963         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
24964         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
24965         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
24966         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
24967         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
24968         * config/picochip/libgccExtras/divmod15.asm: Likewise.
24969         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
24970         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
24971         * config/picochip/libgccExtras/longjmp.asm: Likewise.
24972         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
24973         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
24974         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
24975         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
24976         * config/picochip/libgccExtras/setjmp.asm: Likewise.
24977         * config/picochip/libgccExtras/subdi3.asm: Likewise.
24978         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
24979         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
24980         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
24981         * config/rs6000/750cl.h: Likewise.
24982         * config/rs6000/altivec.h: Likewise.
24983         * config/rs6000/biarch64.h: Likewise.
24984         * config/rs6000/crtresfpr.asm: Likewise.
24985         * config/rs6000/crtresgpr.asm: Likewise.
24986         * config/rs6000/crtresxfpr.asm: Likewise.
24987         * config/rs6000/crtresxgpr.asm: Likewise.
24988         * config/rs6000/crtsavfpr.asm: Likewise.
24989         * config/rs6000/crtsavgpr.asm: Likewise.
24990         * config/rs6000/darwin-asm.h: Likewise.
24991         * config/rs6000/darwin-fallback.c: Likewise.
24992         * config/rs6000/darwin-fpsave.asm: Likewise.
24993         * config/rs6000/darwin-ldouble.c: Likewise.
24994         * config/rs6000/darwin-tramp.asm: Likewise.
24995         * config/rs6000/darwin-unwind.h: Likewise.
24996         * config/rs6000/darwin-vecsave.asm: Likewise.
24997         * config/rs6000/darwin-world.asm: Likewise.
24998         * config/rs6000/e500crtres32gpr.asm: Likewise.
24999         * config/rs6000/e500crtres64gpr.asm: Likewise.
25000         * config/rs6000/e500crtres64gprctr.asm: Likewise.
25001         * config/rs6000/e500crtrest32gpr.asm: Likewise.
25002         * config/rs6000/e500crtrest64gpr.asm: Likewise.
25003         * config/rs6000/e500crtresx32gpr.asm: Likewise.
25004         * config/rs6000/e500crtresx64gpr.asm: Likewise.
25005         * config/rs6000/e500crtsav32gpr.asm: Likewise.
25006         * config/rs6000/e500crtsav64gpr.asm: Likewise.
25007         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
25008         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
25009         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
25010         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
25011         * config/rs6000/eabi-ci.asm: Likewise.
25012         * config/rs6000/eabi-cn.asm: Likewise.
25013         * config/rs6000/eabi.asm: Likewise.
25014         * config/rs6000/linux-unwind.h: Likewise.
25015         * config/rs6000/linux64.h: Likewise.
25016         * config/rs6000/paired.h: Likewise.
25017         * config/rs6000/paired.md: Likewise.
25018         * config/rs6000/ppc64-fp.c: Likewise.
25019         * config/rs6000/ppu_intrinsics.h: Likewise.
25020         * config/rs6000/rs6000.h: Likewise.
25021         * config/rs6000/si2vmx.h: Likewise.
25022         * config/rs6000/sol-ci.asm: Likewise.
25023         * config/rs6000/sol-cn.asm: Likewise.
25024         * config/rs6000/spe.h: Likewise.
25025         * config/rs6000/spu2vmx.h: Likewise.
25026         * config/rs6000/sysv4.h: Likewise.
25027         * config/rs6000/tramp.asm: Likewise.
25028         * config/rs6000/vec_types.h: Likewise.
25029         * config/s390/linux-unwind.h: Likewise.
25030         * config/s390/tpf-unwind.h: Likewise.
25031         * config/score/crti.asm: Likewise.
25032         * config/score/crtn.asm: Likewise.
25033         * config/sh/crt1.asm: Likewise.
25034         * config/sh/crti.asm: Likewise.
25035         * config/sh/crtn.asm: Likewise.
25036         * config/sh/divtab-sh4-300.c: Likewise.
25037         * config/sh/divtab-sh4.c: Likewise.
25038         * config/sh/divtab.c: Likewise.
25039         * config/sh/lib1funcs-4-300.asm: Likewise.
25040         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
25041         * config/sh/lib1funcs.asm: Likewise.
25042         * config/sh/lib1funcs.h: Likewise.
25043         * config/sh/linux-atomic.asm: Likewise.
25044         * config/sh/linux-unwind.h: Likewise.
25045         * config/sh/shmedia.h: Likewise.
25046         * config/sh/sshmedia.h: Likewise.
25047         * config/sh/ushmedia.h: Likewise.
25048         * config/sparc/crtfastmath.c: Likewise.
25049         * config/sparc/linux-unwind.h: Likewise.
25050         * config/sparc/sol2-c1.asm: Likewise.
25051         * config/sparc/sol2-ci.asm: Likewise.
25052         * config/sparc/sol2-cn.asm: Likewise.
25053         * config/spu/divmodti4.c: Likewise.
25054         * config/spu/divv2df3.c: Likewise.
25055         * config/spu/float_disf.c: Likewise.
25056         * config/spu/float_unsdidf.c: Likewise.
25057         * config/spu/float_unsdisf.c: Likewise.
25058         * config/spu/float_unssidf.c: Likewise.
25059         * config/spu/mfc_multi_tag_release.c: Likewise.
25060         * config/spu/mfc_multi_tag_reserve.c: Likewise.
25061         * config/spu/mfc_tag_release.c: Likewise.
25062         * config/spu/mfc_tag_reserve.c: Likewise.
25063         * config/spu/mfc_tag_table.c: Likewise.
25064         * config/spu/multi3.c: Likewise.
25065         * config/spu/spu_internals.h: Likewise.
25066         * config/spu/spu_intrinsics.h: Likewise.
25067         * config/spu/spu_mfcio.h: Likewise.
25068         * config/spu/vec_types.h: Likewise.
25069         * config/spu/vmx2spu.h: Likewise.
25070         * config/stormy16/stormy16-lib2.c: Likewise.
25071         * config/svr4.h: Likewise.
25072         * config/sync.c: Likewise.
25073         * config/v850/lib1funcs.asm: Likewise.
25074         * config/vxlib-tls.c: Likewise.
25075         * config/vxlib.c: Likewise.
25076         * config/vxworks-dummy.h: Likewise.
25077         * config/xtensa/crti.asm: Likewise.
25078         * config/xtensa/crtn.asm: Likewise.
25079         * config/xtensa/ieee754-df.S: Likewise.
25080         * config/xtensa/ieee754-sf.S: Likewise.
25081         * config/xtensa/lib1funcs.asm: Likewise.
25082         * config/xtensa/lib2funcs.S: Likewise.
25083         * config/xtensa/linux-unwind.h: Likewise.
25084         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
25085         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
25086         * coretypes.h: Likewise.
25087         * crtstuff.c: Likewise.
25088         * defaults.h: Likewise.
25089         * dwarf2.h: Likewise.
25090         * emutls.c: Likewise.
25091         * gbl-ctors.h: Likewise.
25092         * gcov-io.h: Likewise.
25093         * ginclude/float.h: Likewise.
25094         * ginclude/iso646.h: Likewise.
25095         * ginclude/stdarg.h: Likewise.
25096         * ginclude/stdbool.h: Likewise.
25097         * ginclude/stddef.h: Likewise.
25098         * ginclude/stdfix.h: Likewise.
25099         * ginclude/stdint-gcc.h: Likewise.
25100         * ginclude/tgmath.h: Likewise.
25101         * gthr-aix.h: Likewise.
25102         * gthr-dce.h: Likewise.
25103         * gthr-gnat.c: Likewise.
25104         * gthr-gnat.h: Likewise.
25105         * gthr-lynx.h: Likewise.
25106         * gthr-mipssde.h: Likewise.
25107         * gthr-nks.h: Likewise.
25108         * gthr-posix.c: Likewise.
25109         * gthr-posix.h: Likewise.
25110         * gthr-posix95.h: Likewise.
25111         * gthr-rtems.h: Likewise.
25112         * gthr-single.h: Likewise.
25113         * gthr-solaris.h: Likewise.
25114         * gthr-tpf.h: Likewise.
25115         * gthr-vxworks.h: Likewise.
25116         * gthr-win32.h: Likewise.
25117         * gthr.h: Likewise.
25118         * libgcc2.c: Likewise.
25119         * libgcc2.h: Likewise.
25120         * libgcov.c: Likewise.
25121         * tsystem.h: Likewise.
25122         * typeclass.h: Likewise.
25123         * unwind-c.c: Likewise.
25124         * unwind-compat.h: Likewise.
25125         * unwind-dw2-fde-compat.c: Likewise.
25126         * unwind-dw2-fde-darwin.c: Likewise.
25127         * unwind-dw2-fde-glibc.c: Likewise.
25128         * unwind-dw2-fde.c: Likewise.
25129         * unwind-dw2-fde.h: Likewise.
25130         * unwind-dw2.c: Likewise.
25131         * unwind-dw2.h: Likewise.
25132         * unwind-generic.h: Likewise.
25133         * unwind-pe.h: Likewise.
25134         * unwind-sjlj.c: Likewise.
25135         * unwind.inc: Likewise.
25136         * config/arm/neon-gen.ml: Change generated copyright header to
25137         refer to version 3 of the GNU General Public License with
25138         version 3.1 of the GCC Runtime Library Exception and to point
25139         readers at the COPYING3 and COPYING3.RUNTIME files and the
25140         FSF's license web page.
25141         * config/arm/arm_neon.h: Regenerate.
25142
25143 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
25144
25145         * config/cris/cris.md: Change copyright header to refer to version
25146         3 of the GNU General Public License.
25147         * doc/install.texi2html: Change copyright header to refer to version
25148         3 of the GNU General Public License and to point readers at the
25149         COPYING3 file and the FSF's license web page.
25150         * config/vax/linux.h: Likewise.
25151
25152 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
25153
25154         * config/i386/i386.md (cmpcc): New.
25155         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
25156         (sync_compare_and_swap_cc*): Delete.
25157
25158         * config/s390/s390.c (s390_compare_emitted): Remove.
25159         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
25160         s390_compare_emitted used to be handled.  Assert that modes match.
25161         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
25162         refer to sync_compare_and_swap_ccsi.
25163         * config/s390/s390.h (s390_compare_emitted): Remove.
25164         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
25165         instead of s390_compare_emitted.
25166         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
25167         instead of s390_compare_emitted.
25168         * config/s390/s390.md (cmpcc): New.
25169         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
25170         CC_REGNUM, do not pretend it's set.
25171         (sync_compare_and_swap_cc*): Delete.
25172         * config/s390/predicates.md (cc_reg_operand): New.
25173
25174         * expr.c (sync_compare_and_swap_cc): Delete.
25175         * optabs.h (sync_compare_and_swap_cc): Delete.
25176         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
25177         is being used with can_compare_p.
25178         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
25179         (find_cc_set): New.
25180         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
25181         look for a MODE_CC set instead.  Use emit_store_flag.
25182         (expand_compare_and_swap_loop): Likewise, with some additional
25183         complication to avoid a force_reg when useless.  Use
25184         emit_cmp_and_jump_insns.
25185         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
25186         * doc/md.texi (sync_compare_and_swap_cc): Merge with
25187         sync_compare_and_swap documentation.
25188
25189 2009-04-09  Jan Hubicka  <jh@suse.cz>
25190
25191         * except.c (find_prev_try): Break out from ....
25192         (duplicate_eh_regions): ... here; properly update prev_try pointers
25193         when duplication part of tree.
25194         (dump_eh_tree): Improve dumping.
25195         (verify_eh_region): New.
25196         (verify_eh_tree): Use it.
25197
25198 2009-04-06  Richard Guenther  <rguenther@suse.de>
25199
25200         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
25201         &ARRAY addresses by adjusting their types and prepending
25202         a conversion.
25203         * tree-cfg.c (verify_gimple_assign_single): Verify that
25204         addresses are correct.
25205
25206 2009-04-09  Richard Guenther  <rguenther@suse.de>
25207
25208         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
25209         indices into an array reference if possible.
25210         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
25211         Fold POINTER_PLUS_EXPR statements with invariant address.
25212
25213 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
25214
25215         PR target/39634
25216         * config.gcc (powerpc64-*-linux*): Always build biarch.
25217
25218 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
25219
25220         PR c/39613
25221         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
25222         it and pedwarn if this results in an INTEGER_CST.
25223
25224 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25225
25226         * doc/install.texi: Update minimum GMP version.  Remove obsolete
25227         text in MPFR section.
25228
25229 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
25230
25231         * dwarf2out.c (class_scope_p): New static inline.
25232         (class_or_namespace_scope_p): Use it.
25233         (gen_variable_die): Use DW_TAG_member tag for static data member
25234         declarations instead of DW_TAG_variable.
25235
25236         PR middle-end/39573
25237         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
25238         variables.
25239
25240 2009-04-08  Richard Guenther  <rguenther@suse.de>
25241
25242         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
25243         valueize random data.
25244
25245 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
25246
25247         * config.gcc (aix tm_file):  Add aix-stdint.h.
25248         (aix tm clause use_gcc_stdint):  Set to wrap.
25249         * config/rs6000/aix-stdint.h:  New file.
25250
25251 2009-04-08  Richard Guenther  <rguenther@suse.de>
25252
25253         PR middle-end/36291
25254         * tree-dfa.c (add_referenced_var): Do not recurse into
25255         global initializers.
25256         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
25257         exposed variables.
25258         (fold_const_aggregate_ref): Likewise.
25259
25260 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
25261
25262         * recog.c (ordered_comparison_operator): New.
25263         * gensupport.c (std_preds): Add it.
25264         * doc/md.texi (Machine-Independent Predicates): Document it.
25265
25266 2009-04-08  Jan Hubicka  <jh@suse.cz>
25267
25268         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
25269         * function.h (rtl_eh): Remove exception_handler_label_map.
25270         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
25271         remove_exception_handler_label, for_each_eh_label_1): Remove.
25272         (rtl_remove_unreachable_regions): Remove.
25273         (convert_from_eh_region_ranges): Do not remove unreachable regions.
25274         (find_exception_handler_labels): Don't build the hashtable.
25275         (maybe_remove_eh_handler): Remove.
25276         (for_each_eh_label): Rewrite to walk the tree.
25277         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
25278         * except.h (maybe_remove_eh_handler): Remove.
25279         * passes.c (init_optimization_passes): Schedule second EH cleanup
25280         before out-of-ssa.
25281         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
25282         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
25283
25284 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
25285
25286         * genoutput.c (validate_optab_operands): New.
25287         (gen_insn, gen_expand): Call it.
25288
25289         * genflags.c (gen_insn): Detect misused iterators.
25290         (main): Pass line_no to gen_insn, exit with status 1 on error.
25291
25292         * genextract.c (line_no): Make global.
25293         (VEC_safe_set_locstr): Change assertion to error message.
25294         (main): Exit with status 1 on error.
25295
25296 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
25297
25298         PR c/39614
25299         PR c/39673
25300         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
25301         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
25302         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
25303         * c-convert.c (convert): Do not call fold on results of conversion
25304         functions when the result is a C_MAYBE_CONST_EXPR.
25305         * c-parser.c (c_parser_postfix_expression): Do not fold condition
25306         of __builtin_choose_expr.
25307         * c-typeck.c (remove_c_maybe_const_expr): New.
25308         (build_unary_op, build_conditional_expr, build_compound_expr,
25309         build_binary_op, c_objc_common_truthvalue_conversion): Call
25310         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
25311         integer operands.
25312
25313 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
25314
25315         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
25316         CODE to produce a new one. Add a prototype to use fold_convert_const
25317
25318 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
25319
25320         PR bootstrap/39660
25321         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
25322         mix declarations and code.
25323
25324 2009-04-08  Ben Elliston  <bje@au.ibm.com>
25325
25326         * gcc.c: Replace `CC' with `GCC' throughout.
25327
25328 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
25329
25330         * doc/invoke.texi: Document Atom support.
25331
25332 2009-04-07  Jason Merrill  <jason@redhat.com>
25333
25334         PR c++/25185
25335         * c-common.h, c-common.c: Add flag_pretty_templates.
25336         * c-opts.c (c_common_handle_option): Set it.
25337         * c.opt: Add -fno-pretty-templates.
25338         * doc/invoke.texi (C++ Dialect Options): Likewise.
25339
25340 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
25341
25342         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
25343         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
25344         (ia64_expand_builtin): Likewise.
25345
25346 2009-04-07  Martin Jambor  <mjambor@suse.cz>
25347
25348         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
25349         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
25350         ADDR_EXPRS are include too.
25351
25352 2009-04-07  Richard Guenther  <rguenther@suse.de>
25353
25354         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
25355         decls are only used if passes as parameters or if they are
25356         local statics and the call is not to a builtin.
25357         (call_may_clobber_ref_p_1): Likewise.
25358
25359 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
25360
25361         * expr.c (do_store_flag): Remove last argument.  Simplify code
25362         to avoid duplication of tests already done by can_compare_p.
25363         (expand_expr_real_1): Adjust caller.
25364
25365 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
25366
25367         * optabs.c (can_compare_p): Test the predicate of a
25368         cbranch and cstore pattern.
25369
25370 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
25371
25372         * expr.c (convert_move): Use emit_store_flag instead of
25373         "emulating" it.
25374
25375 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
25376
25377         * config/i386/i386.c (ix86_compare_emitted): Remove.
25378         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
25379         ix86_compare_op0 like ix86_compare_emitted used to be handled.
25380         * config/i386/i386.h (ix86_compare_emitted): Remove.
25381         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
25382         instead of ix86_compare_emitted.
25383         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
25384
25385 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
25386
25387         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
25388         Add t-sysroot-suffix to tmake_file.
25389         * config/print-sysroot-suffix.sh: New file.
25390         * config/t-sysroot-suffix: New file.
25391
25392 2009-04-07  Ben Elliston  <bje@au.ibm.com>
25393
25394         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
25395         as the latter produces a warning when the target does not support
25396         infinity.
25397
25398 2009-04-07  Ben Elliston  <bje@au.ibm.com>
25399
25400         * dfp.c: Replace type punning assignments with memcpy throughout.
25401         * Makefile.in (dfp.o-warn): Remove.
25402
25403 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
25404
25405         PR target/39634
25406         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
25407         Include soft-fp/t-softfp after rs6000/t-linux64.
25408
25409 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
25410
25411         * stor-layout.c (set_sizetype): Use the full precision of their
25412         machine mode for bitsize types.
25413
25414 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
25415
25416         * config/i386/i386.md: Revert 2 accidental checkins.
25417
25418 2009-04-06  Joey Ye  <joey.ye@intel.com>
25419             Xuepeng Guo  <xuepeng.guo@intel.com>
25420             H.J. Lu  <hongjiu.lu@intel.com>
25421
25422         Atom pipeline model, tuning and insn selection.
25423         * config.gcc (atom): Add atom config options and target.
25424
25425         * config/i386/atom.md: New.
25426
25427         * config/i386/i386.c (atom_cost): New cost.
25428         (m_ATOM): New macro flag.
25429         (initial_ix86_tune_features): Set m_ATOM.
25430         (x86_accumulate_outgoing_args): Likewise.
25431         (x86_arch_always_fancy_math_387): Likewise.
25432         (processor_target): Add Atom cost.
25433         (cpu_names): Add Atom cpu name.
25434         (override_options): Set Atom ISA.
25435         (ix86_issue_rate): New case PROCESSOR_ATOM.
25436         (ix86_adjust_cost): Likewise.
25437
25438         * config/i386/i386.h (TARGET_ATOM): New target macro.
25439         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
25440         (TARGET_OPT_AGU): New target option.
25441         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
25442         (processor_type): Add PROCESSOR_ATOM.
25443
25444         * config/i386/i386.md (cpu): Add new value "atom".
25445         (use_carry, movu): New attr.
25446         (atom.md): Include atom.md.
25447         (adddi3_carry_rex64): Set attr "use_carry".
25448         (addqi3_carry): Likewise.
25449         (addhi3_carry): Likewise.
25450         (addsi3_carry): Likewise.
25451         (*addsi3_carry_zext): Likewise.
25452         (subdi3_carry_rex64): Likewise.
25453         (subqi3_carry): Likewise.
25454         (subhi3_carry): Likewise.
25455         (subsi3_carry): Likewise.
25456         (x86_movdicc_0_m1_rex64): Likewise.
25457         (*x86_movdicc_0_m1_se): Likewise.
25458         (x86_movsicc_0_m1): Likewise.
25459         (*x86_movsicc_0_m1_se): Likewise.
25460         (*adddi_1_rex64): Emit add insn as much as possible.
25461         (*addsi_1): Likewise.
25462         (return_internal): Set atom_unit.
25463         (return_internal_long): Likewise.
25464         (return_pop_internal): Likewise.
25465         (*rcpsf2_sse): Set atom_sse_attr attr.
25466         (*qrt<mode>2_sse): Likewise.
25467         (*prefetch_sse): Likewise.
25468
25469         * config/i386/i386-c.c (ix86_target_macros_internal): New case
25470         PROCESSOR_ATOM.
25471         (ix86_target_macros_internal): Likewise.
25472
25473         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
25474         (*prefetch_sse_rex): Likewise.
25475         (sse_rcpv4sf2): Likewise.
25476         (sse_vmrcpv4sf2): Likewise.
25477         (sse_sqrtv4sf2): Likewise.
25478         (<sse>_vmsqrt<mode>2): Likewise.
25479         (sse_ldmxcsr): Likewise.
25480         (sse_stmxcsr): Likewise.
25481         (*sse_sfence): Likewise.
25482         (sse2_clflush): Likewise.
25483         (*sse2_mfence): Likewise.
25484         (*sse2_lfence): Likewise.
25485         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
25486         (<sse>_movup<ssemodesuffixf2c>): Likewise.
25487         (avx_movdqu<avxmodesuffix>): Likewise.
25488         (avx_lddqu<avxmodesuffix>): Likewise.
25489         (sse2_movntv2di): Change attr "type" to "ssemov".
25490         (sse2_movntsi): Likewise.
25491         (rsqrtv8sf2): Change attr "type" to "sseadd".
25492         (sse3_addsubv2df3): Set attr "atom_unit".
25493         (sse3_h<plusminus_insn>v4sf3): Likewise.
25494         (*sse2_pmaddwd): Likewise.
25495         (*vec_extractv2di_1_rex64): Likewise.
25496         (*vec_extractv2di_1_avx): Likewise.
25497         (sse2_psadbw): Likewise.
25498         (ssse3_phaddwv8hi3): Likewise.
25499         (ssse3_phaddwv4hi3): Likewise.
25500         (ssse3_phadddv4si3): Likewise.
25501         (ssse3_phadddv2si3): Likewise.
25502         (ssse3_phaddswv8hi3): Likewise.
25503         (ssse3_phaddswv4hi3): Likewise.
25504         (ssse3_phsubwv8hi3): Likewise.
25505         (ssse3_phsubwv4hi3): Likewise.
25506         (ssse3_phsubdv4si3): Likewise.
25507         (ssse3_phsubdv2si3): Likewise.
25508         (ssse3_phsubswv8hi3): Likewise.
25509         (ssse3_phsubswv4hi3): Likewise.
25510         (ssse3_pmaddubsw128): Likewise.
25511         (sse3_pmaddubsw: Likewise.
25512         (ssse3_palignrti): Likewise.
25513         (ssse3_palignrdi): Likewise.
25514
25515 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
25516
25517         * doc/install.texi (Specific): Fix two cross-references to MinGW.
25518
25519 2009-04-06  Richard Guenther  <rguenther@suse.de>
25520
25521         PR tree-optimization/28868
25522         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
25523         of which PHI results we inserted.
25524         (insert_into_preds_of_block): Record inserted PHIs.
25525         (eliminate): Eliminate redundant PHI nodes.
25526         (init_pre): Init inserted_phi_names.
25527
25528 2009-04-06  Richard Guenther  <rguenther@suse.de>
25529
25530         PR tree-optimization/39643
25531         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
25532         IMAGPART_EXPRs of complex constants.
25533         (execute_fold_all_builtins): If we folded a call queue
25534         TODO_update_address_taken.
25535
25536 2009-04-06  Jan Hubicka  <jh@suse.cz>
25537
25538         PR middle-end/39659
25539         * except.c (remove_unreachable_regions): Propagate may_contain_throw
25540         flag.
25541
25542 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
25543
25544         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
25545         delay slot.
25546         (ic_invalidate_array): Likewise.
25547
25548 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
25549
25550         * calls.c (emit_library_call_value_1): Fix a problem with parameter
25551         alignment for library calls.
25552
25553 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
25554
25555         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
25556         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
25557         * config/i386/mingw-stdint.h:  New file.
25558
25559 2009-04-05  Richard Guenther  <rguenther@suse.de>
25560
25561         PR tree-optimization/39648
25562         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
25563         our &A vs. &A[0] IL deficiencies.
25564
25565 2009-04-04  Jan Hubicka  <jh@suse.cz>
25566
25567         * except.c (sjlj_find_directly_reachable_regions): Be ready for
25568         removed toplevel regions.
25569         (sjlj_mark_call_sites): Likewise.
25570
25571 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
25572
25573         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
25574         (cygwin tm clause use_gcc_stdint):  Set to wrap.
25575         * config/i386/cygwin-stdint.h:  New file.
25576
25577 2009-04-04  Richard Guenther  <rguenther@suse.de>
25578
25579         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
25580         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
25581         single-argument PHIs if we are in loop-closed SSA form.
25582         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
25583         for the pre-condition.
25584         (slpeel_tree_peel_loop_to_edge): Likewise.
25585         (vect_build_loop_niters): Take an optional sequence to append stmts.
25586         (vect_generate_tmps_on_preheader): Likewise.
25587         (vect_do_peeling_for_loop_bound): Take extra guards for the
25588         pre-condition.
25589         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
25590         the cost model check.
25591         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
25592         guards if we are going to peel.  Do not apply versioning in that case.
25593         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
25594         (vect_do_peeling_for_loop_bound): Likewise.
25595         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
25596         loop bound only record extra pre-conditions, do not apply loop
25597         versioning.
25598
25599 2009-04-04  Richard Guenther  <rguenther@suse.de>
25600
25601         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
25602         renaming code.
25603
25604 2009-04-04  Jan Hubicka  <jh@suse.cz>
25605
25606         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
25607         last_basic_block for size of bb->index indexed array.
25608         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
25609         compute_out, link_btr_uses, build_btr_def_use_webs,
25610         build_btr_def_use_webs, migrate_btr_defs): Likewise.
25611
25612 2009-04-04  Jan Hubicka  <jh@suse.cz>
25613
25614         * except.c (remove_eh_handler_and_replace): Break out from ...
25615         (remove_eh_handler): ... here.
25616         (bring_to_root): New function.
25617         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
25618         handled ones, bring others to root of tree.
25619
25620 2009-04-04  Jan Hubicka  <jh@suse.cz>
25621
25622         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
25623         (all_phis_safe_to_merge): New function.
25624         (update_info): New structure.
25625         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
25626         (cleanup_empty_eh): Update SSA if possible.
25627
25628 2009-04-04  Richard Guenther  <rguenther@suse.de>
25629
25630         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
25631         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
25632         (append_vuse): Likewise.
25633
25634 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
25635
25636         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
25637         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
25638         instead of REG_UNSAVED for DW_CFA_undefined.
25639         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
25640         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
25641         outermost frame.
25642
25643 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
25644
25645         PR target/39501
25646         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
25647
25648 2009-04-04  Richard Guenther  <rguenther@suse.de>
25649
25650         PR tree-optimization/8781
25651         PR tree-optimization/37892
25652         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
25653         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
25654         (valueize_refs): Call it for *& valueizations.
25655         (shared_reference_ops_from_ref): Rename to ...
25656         (valueize_shared_reference_ops_from_ref): ... this and valueize.
25657         (shared_reference_ops_from_call): Rename to ...
25658         (valueize_shared_reference_ops_from_call): ... this and valueize.
25659         (vn_reference_lookup): Update.
25660         (visit_reference_op_call): Likewise.
25661         * tree-ssa-pre.c (phi_translate_1): Fold *&.
25662         (eliminate): Value-replace the call address in call statements.
25663
25664 2009-04-04  Richard Guenther  <rguenther@suse.de>
25665
25666         PR tree-optimization/39636
25667         * tree-ssa-forwprop.c
25668         (forward_propagate_addr_into_variable_array_index): Check for
25669         GIMPLE_ASSIGN before accessing the rhs code.
25670
25671 2009-04-03  Jason Merrill  <jason@redhat.com>
25672
25673         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
25674
25675 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
25676
25677         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
25678         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
25679         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
25680         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
25681         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
25682         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
25683         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
25684         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
25685         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
25686         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
25687         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
25688         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
25689         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
25690         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
25691         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
25692         Use fr_reg_or_fp01_operand instead of fr_register_operand
25693
25694         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
25695         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
25696         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
25697
25698 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
25699
25700         PR rtl-optimization/39607
25701         PR rtl-optimization/39631
25702
25703         Revert:
25704
25705         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
25706         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
25707         instead of DF_LR_OUT.
25708         * ira-lives.c (process_bb_node_lives): Ditto.
25709         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
25710         instead of DF_LR_{OUT,IN}.
25711         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
25712         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
25713
25714 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
25715
25716         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
25717         (execute_lower_omp): Always run but take the short way out if -fopenmp
25718         is not given.
25719         (gate_lower_omp): Remove, forcing the pass manager to always run the
25720         pass and always set PROP_gimple_lomp.
25721         (pass_lower_omp): Remove gate function.
25722         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
25723         PROP_trees.  Instead, require it.
25724         * ipa-cp.c (pass_ipa_cp): Likewise.
25725         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
25726         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
25727         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
25728         and PROP_gimple_leh.
25729
25730 2009-04-03  Richard Guenther  <rguenther@suse.de>
25731
25732         PR middle-end/13146
25733         PR tree-optimization/23940
25734         PR tree-optimization/33237
25735         PR middle-end/33974
25736         PR middle-end/34093
25737         PR tree-optimization/36201
25738         PR tree-optimization/36230
25739         PR tree-optimization/38049
25740         PR tree-optimization/38207
25741         PR tree-optimization/38230
25742         PR tree-optimization/38301
25743         PR tree-optimization/38585
25744         PR middle-end/38895
25745         PR tree-optimization/38985
25746         PR tree-optimization/39299
25747         * tree-ssa-structalias.h: Remove.
25748         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
25749         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
25750         (struct vuse_element_d): Remove.
25751         (struct vuse_vec_d): Likewise.
25752         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
25753         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
25754         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
25755         VUSE_ELEMENT_VAR): Likewise.
25756         (struct voptype_d): Likewise.
25757         (NUM_VOP_FREE_BUCKETS): Likewise.
25758         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
25759         (struct stmt_operands_d): Remove.
25760         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
25761         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
25762         VDEF_NUM, VDEF_VECT): Likewise.
25763         (copy_virtual_operands): Remove.
25764         (operand_build_cmp): Likewise.
25765         (create_ssa_artificial_load_stmt): Likewise.
25766         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
25767         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
25768         vuse_index and mayuse_index members.  Pack and move done and iter_type
25769         members to the front.
25770         (SSA_OP_VMAYUSE): Remove.
25771         (SSA_OP_VIRTUAL_USES): Adjust.
25772         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
25773         (unlink_stmt_vdef): Declare.
25774         (add_to_addressable_set): Remove.
25775         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
25776         (vrp_visit_stmt): Likewise.
25777         * doc/tree-ssa.texi (Alias analysis): Update.
25778         * doc/invoke.texi (max-aliased-vops): Remove docs.
25779         (avg-aliased-vops): Likewise.
25780         * tree-into-ssa.c (syms_to_rename): Remove.
25781         (need_to_update_vops_p): Likewise.
25782         (need_to_initialize_update_ssa_p): Rename to ...
25783         (update_ssa_initialized_fn): ... this.  Track function we are
25784         initialized for.
25785         (symbol_marked_for_renaming): Simplify.
25786         (add_new_name_mapping): Do not set need_to_update_vops_p.
25787         (dump_currdefs): Use SYMS_TO_RENAME.
25788         (rewrite_update_stmt): Always walk all uses/defs.
25789         (dump_update_ssa): Adjust.
25790         (init_update_ssa): Take function argument.  Track what we are
25791         initialized for.
25792         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
25793         (create_new_def_for): Initialize for cfun, assert we are initialized
25794         for cfun.
25795         (mark_sym_for_renaming): Simplify.
25796         (mark_set_for_renaming): Do not initialize update-ssa.
25797         (need_ssa_update_p): Simplify.  Take function argument.
25798         (name_mappings_registered_p): Assert we ask for the correct function.
25799         (name_registered_for_update_p): Likewise.
25800         (ssa_names_to_replace): Likewise.
25801         (release_ssa_name_after_update_ssa): Likewise.
25802         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
25803         (dump_decl_set): Do not print a newline.
25804         (debug_decl_set): Do it here.
25805         (dump_update_ssa): And here.
25806         * tree-ssa-loop-im.c (move_computations): Adjust.
25807         (movement_possibility): Likewise.
25808         (determine_max_movement): Likewise.
25809         (gather_mem_refs_stmt): Likewise.
25810         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
25811         or NAME_MEMORY_TAG.
25812         * tree-complex.c (update_all_vops): Remove.
25813         (expand_complex_move): Adjust.
25814         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
25815         Simplify test for memory referencing statement.  Exclude
25816         non-invariant ADDR_EXPRs.
25817         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
25818         * tree-loop-distribution.c (generate_memset_zero): Adjust.
25819         (rdg_flag_uses): Likewise.
25820         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
25821         related code.
25822         (tree_optimize_tail_calls_1): Also split the
25823         edge from the entry block if we have degenerate PHI nodes in
25824         the first basic block.
25825         * tree.c (init_ttree): Remove memory-tag related code.
25826         (tree_code_size): Likewise.
25827         (tree_node_structure): Likewise.
25828         (build7_stat): Re-write to be build6_stat.
25829         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
25830         (SSA_VAR_P): Adjust.
25831         (struct tree_memory_tag): Remove.
25832         (struct tree_memory_partition_tag): Likewise.
25833         (union tree_node): Adjust.
25834         (build7): Re-write to be build6.
25835         * tree-pass.h (pass_reset_cc_flags): Remove.
25836         (TODO_update_address_taken): New flag.
25837         (pass_simple_dse): Remove.
25838         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
25839         * params.h (MAX_ALIASED_VOPS): Remove.
25840         (AVG_ALIASED_VOPS): Likewise.
25841         * omp-low.c (expand_omp_taskreg): Update SSA form.
25842         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
25843         aliases the lhs in a copy stmt.
25844         * tree-ssa-dse.c (struct address_walk_data): Remove.
25845         (memory_ssa_name_same): Likewise.
25846         (memory_address_same): Likewise.
25847         (get_kill_of_stmt_lhs): Likewise.
25848         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
25849         unused stores.  Look through PHI nodes into post-dominated regions.
25850         (dse_optimize_stmt): Simplify.  Properly remove stores.
25851         (tree_ssa_dse): Compute dominators.
25852         (execute_simple_dse): Remove.
25853         (pass_simple_dse): Likewise.
25854         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
25855         gimple_loaded_syms and gimple_stored_syms computation.
25856         * toplev.c (dump_memory_report): Dump alias and pta stats.
25857         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
25858         (vn_reference_eq): Likewise.
25859         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
25860         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
25861         valueize_vuses): Remove.
25862         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
25863         (get_def_ref_stmt_vuse): ... this.
25864         (vn_reference_lookup_2): New function.
25865         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
25866         walking equivalent vuses.  Simplify.
25867         (vn_reference_lookup): Likewise.
25868         (vn_reference_insert): Likewise.
25869         (vn_reference_insert_pieces): Likewise.
25870         (visit_reference_op_call): Simplify.
25871         (visit_reference_op_load): Likewise.
25872         (visit_reference_op_store): Likewise.
25873         (init_scc_vn): Remove shared_lookup_vuses initialization.
25874         (free_scc_vn): Remove shared_lookup_vuses freeing.
25875         (sort_vuses, sort_vuses_heap): Remove.
25876         (get_ref_from_reference_ops): Export.
25877         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
25878         vector with single vuse pointer.
25879         (vn_reference_lookup_pieces, vn_reference_lookup,
25880         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
25881         (shared_vuses_from_stmt): Remove.
25882         (get_ref_from_reference_ops): Declare.
25883         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
25884         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
25885         memory-tag related code.
25886         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
25887         (likely_value): Add comment, skip static-chain of call statements.
25888         (surely_varying_stmt_p): Adjust.
25889         (gimplify_and_update_call_from_tree): Likewise.
25890         (execute_fold_all_builtins): Do not rebuild alias info.
25891         (gimplify_and_update_call_from_tree): Properly update VOPs.
25892         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
25893         (copy_ref_info): Remove memory-tag related code.
25894         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
25895         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
25896         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
25897         computation.
25898         * tree-ssa-dom.c (gimple_p): Remove typedef.
25899         (eliminate_redundant_computations): Adjust.
25900         (record_equivalences_from_stmt): Likewise.
25901         (avail_expr_hash): Likewise.
25902         (avail_expr_eq): Likewise.
25903         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
25904         (stmt_makes_single_load): Likewise.
25905         (stmt_makes_single_store): Likewise.
25906         * tree-ssa-alias.c: Rewrite completely.
25907         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
25908         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
25909         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
25910         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
25911         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
25912         Remove public functions.
25913         (pass_reset_cc_flags): Remove.
25914         (pass_build_alias): Move ...
25915         * tree-ssa-structalias.c (pass_build_alias): ... here.
25916         * tree-ssa-alias.c (may_be_aliased): Move ...
25917         * tree-flow-inline.h (may_be_aliased): ... here.
25918         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
25919         count_uses_and_derefs): Move ...
25920         * gimple.c: ... here.
25921         * gimple.h (count_uses_and_derefs): Declare.
25922         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
25923         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
25924         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
25925         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
25926         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
25927         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
25928         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
25929         New functions.
25930         * tree-dfa.c (refs_may_alias_p): Move ...
25931         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
25932         * tree-ssa-alias.h: New file.
25933         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
25934         (statement_sink_location): Likewise.
25935         * opts.c (decode_options): Do not adjust max-aliased-vops or
25936         avg-aliased-vops values.
25937         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
25938         (TV_CALL_CLOBBER): Likewise.
25939         (TV_FLOW_SENSITIVE): Likewise.
25940         (TV_FLOW_INSENSITIVE): Likewise.
25941         (TV_MEMORY_PARTITIONING): Likewise.
25942         (TV_ALIAS_STMT_WALK): New timevar.
25943         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
25944         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
25945         (get_address_description): Remove memory-tag related code.
25946         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
25947         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
25948         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
25949         and immediate uses in statements.  Document.
25950         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
25951         (dump_symbols): Remove.
25952         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
25953         * alias.c (get_deref_alias_set): New function split out from ...
25954         (get_alias_set): ... here.
25955         * alias.h (get_deref_alias_set): Declare.
25956         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
25957         type parameter.  Remove restrict pointer handling.  Create a
25958         ref-all pointer in case type-based alias sets do not conflict.
25959         (vect_analyze_data_refs): Remove SMT related code.
25960         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
25961         (vectorizable_load): Likewise.
25962         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
25963         (DR_SYMBOL_TAG, DR_VOPS): Remove.
25964         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
25965         Ignore vops and SMTs.
25966         (dr_analyze_alias): Likewise..
25967         (free_data_ref): Likewise.
25968         (create_data_ref): Likewise.
25969         (analyze_all_data_dependences): Likewise.
25970         (get_references_in_stmt): Adjust.
25971         * tree-flow-inline.h (gimple_aliases_computed_p,
25972         gimple_addressable_vars, gimple_call_clobbered_vars,
25973         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
25974         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
25975         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
25976         gimple_mem_ref_stats): Remove.
25977         (gimple_vop): New function.
25978         (op_iter_next_use): Remove vuses and mayuses cases.
25979         (op_iter_next_def): Remove vdefs case.
25980         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
25981         (clear_and_done_ssa_iter): Do not set removed fields.
25982         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
25983         Assert we are not iterating over vuses or vdefs if not also
25984         iterating over uses or defs.
25985         (op_iter_init_use): Likewise.
25986         (op_iter_init_def): Likewise.
25987         (op_iter_next_vdef): Remove.
25988         (op_iter_next_mustdef): Likewise.
25989         (op_iter_init_vdef): Likewise.
25990         (compare_ssa_operands_equal): Likewise.
25991         (link_use_stmts_after): Handle vuse operand.
25992         (is_call_used): Use is_call_clobbered.
25993         (is_call_clobbered): Global variables are always call clobbered,
25994         query the call-clobbers bitmap.
25995         (mark_call_clobbered): Ignore global variables.
25996         (clear_call_clobbered): Likewise.
25997         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
25998         virtual operands sanity check.
25999         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
26000         Remove.
26001         (TARGET_MEM_REF): Remove TMR_TAG operand.
26002         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
26003         Remove call-clobber related code.
26004         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
26005         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
26006         partitions or escape reason.
26007         (get_single_def_stmt, get_single_def_stmt_from_phi,
26008         get_single_def_stmt_with_phi): Remove.
26009         (dump_referenced_vars): Tidy.
26010         (get_ref_base_and_extent): Allow bare decls.
26011         (collect_dfa_stats): Adjust.
26012         * graphite.c (rename_variables_in_stmt): Adjust.
26013         (graphite_copy_stmts_from_block): Likewise.
26014         (translate_clast): Likewise.
26015         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
26016         (EXPR_DIES): New.
26017         (translate_vuse_through_block): Use the oracle.
26018         (phi_translate_1): Adjust.
26019         (value_dies_in_block_x): Use the oracle.  Cache the outcome
26020         in EXPR_DIES.
26021         (valid_in_sets): Check if the VUSE for
26022         a REFERENCE is available.
26023         (eliminate): Do not remove stmts during elimination,
26024         instead queue and remove them afterwards.
26025         (do_pre): Do not rebuild alias info.
26026         (pass_pre): Run TODO_rebuild_alias before PRE.
26027         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
26028         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
26029         (mark_all_v_defs_stmt): Remove.
26030         (mark_all_v_defs_seq): Adjust.
26031         (sra_replace): Likewise.
26032         (scalarize_use): Likewise.
26033         (scalarize_copy): Likewise.
26034         (scalarize_init): Likewise.
26035         (scalarize_ldst): Likewise.
26036         (todoflags): Remove.
26037         (tree_sra): Do not rebuild alias info.
26038         (tree_sra_early): Adjust.
26039         (pass_sra): Run TODO_update_address_taken before SRA.
26040         * tree-predcom.c (set_alias_info): Remove.
26041         (prepare_initializers_chain): Do not call it.
26042         (mark_virtual_ops_for_renaming): Adjust.
26043         (mark_virtual_ops_for_renaming_list): Remove.
26044         (initialize_root_vars): Adjust.
26045         (initialize_root_vars_lm): Likewise.
26046         (prepare_initializers_chain): Likewise.
26047         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
26048         (may_propagate_copy_into_stmt): Likewise.
26049         (merge_alias_info): Do nothing for now.
26050         (propagate_tree_value_into_stmt): Adjust.
26051         (stmt_may_generate_copy): Likewise.
26052         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
26053         not mark symbols for renaming.
26054         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
26055         with the same statement, make sure to update the new pointed-to one.
26056         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
26057         call statements, do not mark symbols for renaming.
26058         (mark_operand_necessary): Dump something.
26059         (ref_may_be_aliased): New function.
26060         (mark_aliased_reaching_defs_necessary_1): New helper function.
26061         (mark_aliased_reaching_defs_necessary): Likewise.
26062         (mark_all_reaching_defs_necessary_1): Likewise.
26063         (mark_all_reaching_defs_necessary): Likewise.
26064         (propagate_necessity): Do not process virtual PHIs.  For
26065         non-aliased loads mark all reaching definitions as necessary.
26066         For aliased loads and stores mark the immediate dominating
26067         aliased clobbers as necessary.
26068         (visited): New global static.
26069         (perform_tree_ssa_dce): Free visited bitmap after propagating
26070         necessity.
26071         (remove_dead_phis): Perform simple dead virtual PHI removal.
26072         (remove_dead_stmt): Properly unlink virtual operands when
26073         removing stores.
26074         (eliminate_unnecessary_stmts): Schedule PHI removal after
26075         stmt removal.
26076         * tree-ssa-ter.c (is_replaceable_p): Adjust.
26077         (process_replaceable): Likewise.
26078         (find_replaceable_in_bb): Likewise.
26079         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
26080         based on the single gimple vop.
26081         (verify_flow_insensitive_alias_info): Remove.
26082         (verify_flow_sensitive_alias_info): Likewise.
26083         (verify_call_clobbering): Likewise.
26084         (verify_memory_partitions): Likewise.
26085         (verify_alias_info): Likewise.
26086         (verify_ssa): Adjust..
26087         (execute_update_addresses_taken): Export.  Update SSA
26088         manually.  Optimize only when optimizing.  Use a local bitmap.
26089         (pass_update_address_taken): Remove TODO_update_ssa, add
26090         TODO_dump_func.
26091         (pass_update_address_taken): Just use TODO_update_address_taken.
26092         (init_tree_ssa): Do not initialize addressable_vars.
26093         (verify_ssa): Verify new VUSE / VDEF properties.
26094         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
26095         Do not call verify_alias_info.
26096         (delete_tree_ssa): Clear the VUSE, VDEF operands.
26097         Do not free the loaded and stored syms bitmaps.  Reset the escaped
26098         and callused solutions.  Do not free addressable_vars.
26099         Remove memory-tag related code.
26100         (warn_uninitialized_var): Aliases are always available.
26101         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
26102         * lambda-code.c (can_put_in_inner_loop): Adjust.
26103         (can_put_after_inner_loop): Likewise.
26104         (perfect_nestify): Likewise.
26105         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
26106         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
26107         (vectorizable_conversion): Do not mark symbols for renaming.
26108         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
26109         (expand_call_inline): Unlink the calls virtual operands before
26110         replacing it.
26111         (tree_function_versioning): Do not call update_ssa if we are not
26112         updating clones.  Simplify.
26113         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
26114         (propagate_with_phi): Likewise..
26115         * tree-outof-ssa.c (create_temp): Remove memory tag and call
26116         clobber code.  Assert we are not aliased or global.
26117         * tree-flow.h: Include tree-ssa-alias.h
26118         (enum escape_type): Remove.
26119         (struct mem_sym_stats_d): Likewise.
26120         (struct mem_ref_stats_d): Likewise.
26121         (struct gimple_df): Add vop member.  Remove global_var,
26122         call_clobbered_vars, call_used_vars, addressable_vars,
26123         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
26124         escaped and callused members.
26125         (struct ptr_info_def): Remove all members, add points-to solution
26126         member pt.
26127         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
26128         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
26129         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
26130         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
26131         (tree-ssa-alias.o): Likewise.
26132         (toplev.o): Add tree-ssa-alias.h
26133         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
26134         * gimple.c (gimple_set_bb): Fix off-by-one error.
26135         (is_gimple_reg): Do not handle memory tags.
26136         (gimple_copy): Also copy virtual operands.
26137         Delay updating the statement.  Do not reset loaded and stored syms.
26138         (gimple_set_stored_syms): Remove.
26139         (gimple_set_loaded_syms): Likewise.
26140         (gimple_call_copy_skip_args): Copy the virtual operands
26141         and mark the new statement modified.
26142         * tree-ssa-structalias.c (may_alias_p): Remove.
26143         (set_uids_in_ptset): Take the alias set to prune with as
26144         parameter.  Fold in the alias test of may_alias_p.
26145         (compute_points_to_sets): Compute whether a ptr is dereferenced
26146         in a local sbitmap.
26147         (process_constraint): Deal with &ANYTHING on the lhs, reject all
26148         other ADDRESSOF constraints on the lhs.
26149         (get_constraint_for_component_ref): Assert that we don't get
26150         ADDRESSOF constraints from the base of the reference.
26151         Properly generate UNKNOWN_OFFSET for DEREF if needed.
26152         (struct variable_info): Remove collapsed_to member.
26153         (get_varinfo_fc): Remove.
26154         (new_var_info): Do not set collapsed_to.
26155         (dump_constraint): Do not follow cycles.
26156         (dump_constraint_graph): Likewise.
26157         (build_pred_graph): Likewise.
26158         (build_succ_graph): Likewise.
26159         (rewrite_constraints): Likewise.
26160         (do_simple_structure_copy): Remove.
26161         (do_rhs_deref_structure_copy): Remove.
26162         (do_lhs_deref_structure_copy): Remove.
26163         (collapse_rest_of_var): Remove.
26164         (do_structure_copy): Re-implement.
26165         (pta_stats): New global variable.
26166         (dump_pta_stats): New function.
26167         (struct constraint_expr): Make offset signed.
26168         (UNKNOWN_OFFSET): Define special value.
26169         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
26170         (solution_set_expand): New helper function split out from ...
26171         (do_sd_constraint): ... here.
26172         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
26173         (do_ds_constraint): Likewise.
26174         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
26175         and CALLUSED = *CALLUSED.
26176         (set_union_with_increment): Make inc argument signed.
26177         (type_safe): Remove.
26178         (get_constraint_for_ptr_offset): Handle unknown and negative
26179         constant offsets.
26180         (first_vi_for_offset): Handle offsets before start.  Bail
26181         out early for offsets beyond the variable extent.
26182         (first_or_preceding_vi_for_offset): New function.
26183         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
26184         Together with ESCAPED = *ESCAPED this properly computes reachability.
26185         (find_what_var_points_to): New function.
26186         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
26187         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
26188         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
26189         pt_solutions_intersect): New functions.
26190         (compute_call_used_vars): Remove.
26191         (compute_may_aliases): New main entry into PTA computation.
26192         * gimple.h (gimple_p): New typedef.
26193         (struct gimple_statement_base): Remove references_memory_p.
26194         (struct gimple_statement_with_memory_ops_base): Remove
26195         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
26196         members.
26197         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
26198         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
26199         gimple_set_references_memory): Remove.
26200         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
26201         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
26202         New functions.
26203         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
26204         (verify_expr): Allow RESULT_DECL.
26205         (gimple_duplicate_bb): Do not copy virtual operands.
26206         (gimple_duplicate_sese_region): Adjust.
26207         (gimple_duplicate_sese_tail): Likewise.
26208         (mark_virtual_ops_in_region): Remove.
26209         (move_sese_region_to_fn): Do not call it.
26210         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
26211         and pass_simple_dse.
26212         (execute_function_todo): Handle TODO_update_address_taken,
26213         call execute_update_addresses_taken for TODO_rebuild_alias.
26214         (execute_todo): Adjust.
26215         (execute_one_pass): Init dump files early.
26216         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
26217         call-clobbered.
26218         (create_general_new_stmt): Clear vops.
26219         * tree-ssa-reassoc.c (get_rank): Adjust.
26220         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
26221         symbols for renaming.
26222         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
26223         (PARAM_AVG_ALIASED_VOPS): Likewise.
26224         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
26225         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
26226         * tree-ssa-operands.c: Simplify for new virtual operand representation.
26227         (operand_build_cmp, copy_virtual_operands,
26228         create_ssa_artificial_load_stmt, add_to_addressable_set,
26229         gimple_add_to_addresses_taken): Remove public functions.
26230         (unlink_stmt_vdef): New function.
26231
26232 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
26233
26234         * config.gcc (powerpc-*-linux*): Merge variants.
26235
26236 2009-04-02  Chao-ying Fu  <fu@mips.com>
26237             James Grosbach  <james.grosbach@microchip.com>
26238
26239         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
26240         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
26241         cop0_sp_offset.
26242         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
26243         keep_interrupts_masked_p, use_debug_exception_return_p.
26244         (mips_attribute_table): Add interrupt, use_shadow_register_set,
26245         keep_interrupts_masked, use_debug_exception_return.
26246         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
26247         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
26248         New functions.
26249         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
26250         (mips_print_operand): Process COP0 registers to print $0 .. $31
26251         correctly for GAS to process.
26252         (mips_interrupt_extra_call_saved_reg_p): New function.
26253         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
26254         extra registers.
26255         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
26256         (mips_compute_frame_info): Add supports for interrupt context that
26257         includes doubleword accumulators and COP0 registers.
26258         (mips_for_each_saved_acc): New function.
26259         (mips_for_each_saved_gpr_and_fpr): Change the function name from
26260         mips_for_each_saved_reg.
26261         (mips_save_reg): Save accumulators.
26262         (mips_kernel_reg_p): A new for_each_rtx callback.
26263         (mips_expand_prologue): Support interrupt handlers.
26264         (mips_restore_reg): Restore accumulators.
26265         (mips_expand_epilogue): Support interrupt handlers.
26266         (mips_can_use_return_insn): Return false for interrupt handlers.
26267         (mips_epilogue_uses): New function.
26268         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
26269         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
26270         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
26271         cop0_move): New instructions.
26272         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
26273         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
26274         defines.
26275         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
26276         New defines.
26277         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
26278         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
26279         interrupt handlers, we use K0 as the temporary register.
26280         (EPILOGUE_USES): Change to a function call.
26281         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
26282         handlers, we use K0 as the temporary register.
26283
26284         * doc/extend.texi (Function Attributes): Document interrupt,
26285         use_shadow_register_set, keep_interrupts_masked,
26286         use_debug_exception_return for MIPS attributes.
26287
26288 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
26289
26290         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
26291         Remove a number of t-files from tmake_file.
26292         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
26293         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
26294         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
26295         target_prototype, not TARGET_PROTOTYPE.
26296         (LINK_OS_GNU_SPEC): Define.
26297         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
26298         and darwin-ldoubdle.c.
26299
26300 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
26301
26302         PR driver/39293
26303         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
26304         (cpp_options): Ditto.
26305         (default_compilers): Ditto.
26306         (display_help): Ditto.
26307         (process_command): Ditto.
26308         (do_spec_1): Ditto.
26309         (set_input): Use lbasename instead of duplicate code.
26310         (save_temps_prefix): New static for -save-temps=obj.
26311         (save_temps_length): Ditto.
26312
26313         * doc/invoke.texi (-save-temps=obj): Document new variant to
26314         -save-temps switch.
26315
26316 2009-04-02  Jeff Law  <law@redhat.com>
26317
26318         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
26319         variable.
26320
26321 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
26322
26323         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
26324         * configure: Regenerated.
26325
26326 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
26327
26328         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
26329         share the argument list.
26330
26331 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
26332
26333         Merge
26334
26335         2009-02-12  Diego Novillo  <dnovillo@google.com>
26336
26337         * varpool.c (debug_varpool): New.
26338         * cgraph.h (debug_varpool): Declare.
26339
26340 2009-04-02  Jan Hubicka  <jh@suse.cz>
26341
26342         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
26343         pass.
26344
26345 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
26346
26347         * config/i386/i386.c (ix86_abi): Move initialization to ...
26348         (override_options): Here.
26349
26350 2009-04-02  Christian Bruel  <christian.bruel@st.com>
26351
26352         * config/sh/sh.c (sh_dwarf_register_span): New function.
26353         (TARGET_DWARF_REGISTER_SPAN): Define.
26354         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
26355
26356 2009-04-02  Ira Rosen  <irar@il.ibm.com>
26357
26358         PR tree-optimization/39595
26359         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
26360         interleaved loads group is not  greater than the SLP group size.
26361
26362 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
26363
26364         * builtins.c (is_builtin_name): New.
26365         (called_as_built_in): Use is_builtin_name.
26366         * tree.h (is_builtin_name): New.
26367         * varasm.c (incorporeal_function_p): Use is_builtin_name
26368
26369 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
26370
26371         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
26372
26373 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
26374
26375         PR c++/26693
26376         * c-decl.c (clone_underlying_type): Move this ...
26377         * c-common.c (set_underlying_type): ... here.
26378         Also, make sure the function properly sets TYPE_STUB_DECL() on
26379         the newly created typedef variant type.
26380         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
26381         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
26382         points.
26383
26384 2009-04-02  Richard Guenther  <rguenther@suse.de>
26385
26386         PR tree-optimization/37221
26387         * tree-flow.h (degenerate_phi_result): Declare.
26388         * tree-ssa-dom.c (degenerate_phi_result): Export.
26389         * tree-scalar-evolution.c (analyze_initial_condition): If
26390         the initial condition is defined by a degenerate PHI node
26391         use the degenerate value.
26392
26393 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
26394
26395         PR rtl-optimization/39588
26396         * combine.c (merge_outer_ops): Do not set the constant when this
26397         is not necessary.
26398         (simplify_shift_const_1): Do not modify it either in this case.
26399
26400 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
26401
26402         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
26403         tuning is deprecated if -mtune value is set to an Itanium1 variant.
26404
26405 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
26406
26407         PR c/29027
26408         * c-lex.c (interpret_float): Default (no suffix) is double.
26409
26410 2009-04-1  Xinliang David Li  <davidxl@google.com>
26411
26412         * config/i386/i386.c (legitimate_constant_p): Recognize
26413         all one vector constant.
26414
26415 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26416
26417         * config/vax/vax.c: Add #includes to silence warnings.
26418         Change #include order to silence two warnings.
26419
26420 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26421
26422         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
26423         (ASM_SPEC): Pass -k to the assembler for PIC code.
26424
26425 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26426
26427         * config.gcc: Add vax-*-linux* to the switch.
26428         * config/vax/linux.h: New file. (TARGET_VERSION,
26429         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
26430
26431 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26432
26433         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
26434         Use predicate macros instead of GET_CODE() == foo.
26435         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
26436         ashlsi3, rotrsi3, <unnamed>): Likewise.
26437
26438 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26439
26440         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
26441         jbbccihi, jbbccisi): Remova trailing whitespace.
26442         * config/vax/constraints.md: Likewise.
26443         * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
26444         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
26445         * config/vax/predicates.md: Likewise.
26446         * config/vax/vax.c (print_operand_address, vax_output_int_move,
26447         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
26448         * config/vax/vax.h: Likewise.
26449         * config/vax/vax.md (nonlocal_goto): Likewise.
26450
26451 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26452
26453         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
26454         (indirectable_address_p, adjacent_operands_p): Add spaces around
26455         braces.
26456         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
26457
26458 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26459
26460         * config/vax/vax.c (legitimate_constant_address_p,
26461         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
26462         index_term_p, reg_plus_index_p, legitimate_address_p,
26463         vax_mode_dependent_address_p): Update comments to match functions
26464         modified by the recent int->bool conversion.
26465
26466 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26467
26468         * config/vax/builtins.md: Update copyright message.
26469         * config/vax/constraints.md: Likewise.
26470         * config/vax/netbsd-elf.h: Likewise.
26471         * config/vax/predicates.md: Likewise.
26472         * config/vax/vax-protos.h: Likewise.
26473         * config/vax/vax.c: Likewise.
26474         * config/vax/vax.h: Likewise.
26475         * config/vax/vax.md: Likewise.
26476         * config/vax/vax.opt: Likewise.
26477
26478 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
26479
26480         * config/vax/builtins.md (ffssi2, ffssi2_internal,
26481         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
26482         * config/vax/constraints.md (B, R): Likewise.
26483         * config/vax/predicates.md (external_memory_operand,
26484         nonimmediate_addsub_di_operand): Likewise.
26485         * config/vax/vax.c (vax_output_int_add): Likewise.
26486         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
26487         untyped_call): Likewise.
26488
26489 2009-04-01  Matt Thomas  <matt@3am-software.com>
26490
26491         * config/vax/predicates.md: New file.
26492         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
26493         external_const_operand, nonsymbolic_operand, external_memory_operand,
26494         indirect_memory_operand, indexed_memory_operand,
26495         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
26496         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
26497         predicate.
26498         * config/vax/constraints.md: New file.
26499         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
26500         New constraint.
26501         * config/vax/builtins.md: New file.
26502         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
26503         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
26504         jbbccisi): Define.
26505         * config/vax/vax.opt (mqmath): Add option.
26506         * config/vax/vax.md (isfx): Extend with DI.
26507         (VAXintQH, VAXintQHSD): Define.
26508         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
26509         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
26510         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
26511         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
26512         (movdi): Update constraints and use vax_output_int_move().
26513         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
26514         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
26515         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
26516         nonlocal_goto): New.
26517         (mov<mode>): Extend accepted operand types.
26518         (subdi3_old): Rename from subdi3, change update constraints and use
26519         a new implementation.
26520         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
26521         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
26522         MOVE_RATIO, CLEAR_RATIO): Define.
26523         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
26524         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
26525         (PRINT_OPERAND): Redefine using a function instead of inlined code.
26526         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
26527         (split_quadword_operands): Make static and really allow variable
26528         splitting.
26529         (print_operand_address): Update for PIC generation.
26530         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
26531         indexable_address_p, fixup_mathdi_operand,
26532         vax_expand_addsub_di_operands, adjacent_operands_p): New.
26533         (vax_float_literal, legitimate_constant_p,
26534         indirectable_constant_address_p, index_term_p,
26535         reg_plus_index_p): Return bool instead of int.
26536         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
26537         where needed.
26538         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
26539         generation.
26540         (vax_output_conditional_branch): Indent.
26541         (legitimate_constant_address_p, indirectable_constant_address_p,
26542         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
26543         vax_mode_dependent_address_p): Return bool instead of int, update for
26544         PIC generation.
26545         * config/vax/vax-protos.h (legitimate_constant_address_p,
26546         legitimate_constant_p, legitimate_address_p,
26547         vax_mode_dependent_address_p): Change declaration to bool.
26548         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
26549         vax_expand_addsub_di_operands, vax_output_int_subtract,
26550         vax_output_movmemsi): Declare.
26551         (split_quadword_operands, vax_float_literal): Delete declaration.
26552         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
26553         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
26554         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
26555         ASM_OUTPUT_DWARF_PCREL): Define.
26556         (ASM_SPEC): Change definition to allow PIC generation.
26557
26558 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
26559
26560         * doc/sourcebuild.texi: Update front-end requirements.
26561
26562 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
26563
26564         PR target/39226
26565         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
26566         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
26567         (booldi3_internal3): Use boolean_or_operator instead of
26568         boolean_operator.
26569
26570 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
26571
26572         PR c/39605
26573         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
26574         declarator whose size is not an integer constant expression but
26575         folds to an integer constant, then treat it as a constant
26576         subsequently.
26577
26578 2009-04-01  Richard Guenther  <rguenther@suse.de>
26579
26580         * fold-const.c (fold_plusminus_mult_expr): Do not fold
26581         i * 4 + 2 to (i * 2 + 1) * 2.
26582
26583 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
26584
26585         PR c/37772
26586         * c-parser.c (c_parser_asm_statement): Skip until close paren and
26587         return if c_parser_asm_string_literal returned NULL.
26588
26589 2009-04-01  Nick Clifton  <nickc@redhat.com>
26590
26591         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
26592         already defined.
26593         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
26594         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
26595         other typedefs to avoid conflicts with libgcc2.c.  Define labels
26596         to gain 16-bit bit-manipulation functions from libgcc2.c and then
26597         include it.
26598         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
26599         to gain 16-bit trapping arithmetic functions from libgcc2.c and
26600         then include it.
26601
26602 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
26603
26604         * varasm.c (default_function_rodata_section): Declare DOT as
26605         const char*.
26606
26607 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
26608             Andrey Galkin  <agalkin@hypercom.com>
26609
26610         PR/39492
26611         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
26612         Make object_name unique for each process.
26613
26614 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
26615
26616         PR other/39591
26617         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
26618         addressable variables in the parallel that could go out of scope while
26619         running queued tasks.
26620
26621 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
26622
26623         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
26624         (CASE_VALUES_THRESHOLD): Redefine.
26625         * config/avr/avr.c (avr_override_options): Remove initialization of
26626         avr_case_values_threshold variable.
26627         (avr_case_values_threshold): Remove variable. Add new function.
26628         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
26629         * config/avr/avr.opt (mno-tablejump): Remove option.
26630         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
26631
26632 2009-04-01  DJ Delorie  <dj@redhat.com>
26633
26634         * varasm.c (default_function_rodata_section): Don't assume
26635         anything about where the first '.' in the section name is.
26636
26637 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
26638
26639         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
26640         rs6000_emit_stack_tie.
26641
26642 2009-03-31  Ian Lance Taylor  <iant@google.com>
26643
26644         * tree-eh.c (tree_remove_unreachable_handlers): Compare
26645         gimple_code with GIMPLE_RESX, not RESX.
26646
26647 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
26648
26649         * c-common.c (c_get_ident): New.
26650         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
26651
26652 2009-04-01  Ben Elliston  <bje@au.ibm.com>
26653
26654         * config/rs6000/sysv4.opt (msdata): Improve option description.
26655
26656 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
26657
26658         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
26659         (divdf3_internal_lat): Remove.
26660         (divxf3_internal_lat): Remove.
26661         (divxf3_internal_thr): Remove.
26662         (divxf): Use divxf3_internal.
26663         * config/ia64/div.md (divsf3_internal_lat): New.
26664         (divdf3_internal_lat): New.
26665         (divxf3_internal): New.
26666
26667 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
26668
26669         PR c/448
26670         * Makefile.in (USE_GCC_STDINT): Define.
26671         (stmp-int-hdrs): Install stdint.h if applicable.
26672         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
26673         if known.
26674         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
26675         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
26676         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
26677         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26678         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26679         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26680         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26681         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26682         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
26683         (c_common_nodes_and_builtins): Initialize
26684         underlying_wchar_type_node.  Do not initialize
26685         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
26686         nodes for new types.
26687         (c_stddef_cpp_builtins): Define macros for new types.
26688         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
26689         Remove.
26690         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
26691         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
26692         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
26693         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
26694         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
26695         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
26696         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
26697         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
26698         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
26699         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
26700         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
26701         int16_type_node, int32_type_node, int64_type_node,
26702         uint8_type_node, uint16_type_node, c_uint32_type_node,
26703         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
26704         int_least32_type_node, int_least64_type_node,
26705         uint_least8_type_node, uint_least16_type_node,
26706         uint_least32_type_node, uint_least64_type_node,
26707         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
26708         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
26709         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
26710         uintptr_type_node): Define.
26711         * c-cppbuiltin.c (builtin_define_constants,
26712         builtin_define_type_minmax): New.
26713         (builtin_define_stdint_macros): Define more macros.
26714         (c_cpp_builtins): Define more limit macros.
26715         (type_suffix): New.
26716         (builtin_define_type_max): Define in terms of
26717         builtin_define_type_minmax.  Remove is_long parameter.  All
26718         callers changed.
26719         * config.gcc (use_gcc_stdint): Define.
26720         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
26721         Add newlib-stdint.h for generic targets.
26722         * config/glibc-stdint.h, config/newlib-stdint.h,
26723         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
26724         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
26725         * config/score/score.h (UINTPTR_TYPE): Define.
26726         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
26727         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
26728         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26729         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26730         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26731         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26732         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26733         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
26734         * config/spu/spu.h (STDINT_LONG32): Define.
26735         * configure.ac (use_gcc_stdint): Substitute.
26736         * configure: Regenerate.
26737         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
26738         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
26739         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
26740         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
26741         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
26742         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
26743         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
26744         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
26745         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
26746         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
26747         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
26748         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
26749         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
26750         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
26751         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
26752         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
26753         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
26754         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
26755         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
26756         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
26757         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
26758         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
26759         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
26760         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26761         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26762         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26763         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26764         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26765         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
26766
26767 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
26768
26769         * loop-iv.c (suitable_set_for_replacement): Renamed from
26770         simplify_using_assignment; changed to return bool and to accept new
26771         args DEST and SRC.  Return true iff we find a source/destination pair
26772         that can be used to make a replacement, and fill SRC and DEST if so.
26773         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
26774         changed.
26775         (simplify_using_initial_values): Deal with altered regs here and track
26776         more precisely the effect they have on the validity of our expression.
26777
26778         * loop-iv.c (simplify_using_condition): A condition of the form
26779         (EQ REG CONST) can be used to simply make a substitution.
26780         (simplify_using_initial_values): Keep track of conditions we have seen
26781         and keep using them to simplify new expressions, while applying the
26782         same substitutions to them as to the expression.
26783
26784         * simplify-rtx.c (simplify_relational_operation_1): Simplify
26785         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
26786         GEU/LTU reversed.
26787
26788         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
26789         changed.  Use this when trying to improve the upper bound.
26790         Generate the comparison by using simplify_gen_relational.
26791
26792         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
26793
26794         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
26795         functions.
26796         (simplify_using_assignment, simplify_using_initial_values): Call
26797         replace_in_expr to make replacements.  Call replace_single_def_regs
26798         once on the initial version of the expression.
26799
26800 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26801
26802         PR target/27237
26803         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
26804
26805 2009-03-31  Richard Guenther  <rguenther@suse.de>
26806
26807         PR middle-end/31029
26808         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
26809         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
26810
26811 2009-03-31  Richard Guenther  <rguenther@suse.de>
26812
26813         * tree.h (div_if_zero_remainder): Declare.
26814         * fold-const.c (div_if_zero_remainder): Export.
26815         * tree-ssa-forwprop.c
26816         (forward_propagate_addr_into_variable_array_index): Handle
26817         constant array index addition outside of the variable index.
26818
26819 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
26820
26821         PR target/39592
26822         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
26823         define_splits, floatunssi<mode>2): Require x87 conversions from
26824         DImode to be permitted.
26825
26826 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
26827
26828         PR preprocessor/15638
26829         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
26830
26831 2009-03-31  Richard Guenther  <rguenther@suse.de>
26832
26833         PR middle-end/23401
26834         PR middle-end/27810
26835         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
26836         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
26837         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
26838         a separate statement.
26839         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
26840         (lookup_tmp_var): Likewise.
26841         (is_gimple_formal_tmp_or_call_rhs): Remove.
26842         (is_gimple_reg_or_call_rhs): Rename to ...
26843         (is_gimple_reg_rhs_or_call): ... this.
26844         (is_gimple_mem_or_call_rhs): Rename to ...
26845         (is_gimple_mem_rhs_or_call): ... this.
26846         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
26847         DECL_GIMPLE_REG_P only if is_formal is true.
26848         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
26849         for non-proper post-modify expression gimplification.
26850         (gimplify_self_mod_expr): For post-modify expressions gimplify
26851         the lvalue to a minimal lvalue.
26852         (rhs_predicate_for): Remove formal temp case.
26853         (gimplify_modify_expr_rhs): Likewise.
26854         (gimplify_addr_expr): Use is_gimple_reg.
26855         (gimplify_expr): Remove formal temp cases.
26856         (gimple_regimplify_operands): Likewise.
26857         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
26858         and FILTER_EXPR like constants.
26859         * gimple.c (walk_gimple_op): Fix val_only initialization, use
26860         is_gimple_reg.
26861         (is_gimple_formal_tmp_rhs): Remove.
26862         (is_gimple_reg_rhs): Remove special casing.
26863         (is_gimple_mem_rhs): Fix.
26864         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
26865         (is_gimple_formal_tmp_var): Remove.
26866         (is_gimple_formal_tmp_reg): Likewise.
26867         (is_gimple_min_lval): Allow invariant component ref parts.
26868         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
26869         is_gimple_formal_tmp_reg): Remove declarations.
26870         * tree-cfg.c (verify_expr): Verify that variables with address
26871         taken do not have DECL_GIMPLE_REG_P set.
26872         * tree-mudflap.c (mf_build_check_statement_for): Use
26873         force_gimple_operand instead of gimplify_expr.
26874
26875 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
26876
26877         * modulo-sched.c (sms_schedule_by_order): Pass the actual
26878         schedulable rows to compute_split_row.
26879
26880 2009-03-31  Ben Elliston  <bje@au.ibm.com>
26881
26882         PR target/31635
26883         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
26884         OPT_mvrsave.
26885
26886 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
26887
26888         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
26889         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
26890         * configure: Regenerate.
26891         * config.in: Regenerate.
26892         * config/rs6000/rs6000.opt (mtls-markers): Add.
26893         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
26894         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
26895         (tls_ld_aix, tls_ld_sysv): Likewise.
26896         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
26897         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
26898
26899 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
26900
26901         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
26902
26903 2009-03-30  Jan Hubicka  <jh@suse.cz>
26904
26905         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
26906         out of RESX.
26907         (tree_remove_unreachable_handlers): Cleanup EH predecestor
26908         detection and label handling.
26909
26910 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
26911
26912         * ira-int.h (ira_allocno): Rename left_conflicts_num to
26913         left_conflicts_size.
26914         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
26915         ALLOCNO_LEFT_CONFLICTS_SIZE.
26916
26917         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
26918         remove_allocno_from_bucket_and_push,
26919         allocno_spill_priority_compare, push_allocnos_to_stack,
26920         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
26921         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
26922         (setup_allocno_left_conflicts_num): Ditto.  Rename to
26923         setup_allocno_left_conflicts_size.
26924         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
26925         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
26926         setup_allocno_left_conflicts_size instead of
26927         setup_allocno_left_conflicts_num.
26928
26929         * ira-build.c (ira_create_allocno): Use
26930         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
26931         ALLOCNO_LEFT_CONFLICTS_NUM.
26932
26933 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
26934
26935         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
26936         instead of DF_LR_OUT.
26937
26938         * ira-lives.c (process_bb_node_lives): Ditto.
26939
26940         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
26941         instead of DF_LR_{OUT,IN}.
26942
26943         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
26944
26945         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
26946
26947 2009-03-30  Jan Hubicka  <jh@suse.cz>
26948
26949         * except.c (label_to_region_map): Fix thinko.
26950
26951 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
26952
26953         PR middle-end/38237
26954         * tree.h (tree_find_value): New declaration.
26955         * tree.c (tree_find_value): New function.
26956         * varasm.c (assemble_external): Avoid duplicate entries on lists.
26957
26958 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
26959
26960         PR debug/39563
26961         * c-decl.c (struct c_binding): Add locus field.
26962         (bind): Add locus argument, set locus field from it.
26963         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
26964         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
26965         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
26966         implicitly_declare, undeclared_variable, lookup_label,
26967         declare_label, c_make_fname_decl, c_builtin_function,
26968         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
26969         bind callers.
26970
26971 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
26972
26973         PR target/38781
26974         * config/i386/i386.c (classify_argument): Check total size of
26975         structure.
26976
26977 2009-03-30  Martin Jambor  <mjambor@suse.cz>
26978
26979         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
26980         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
26981         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
26982         respectively.
26983
26984         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
26985         seen_variable_array_ref while also traversing a union.
26986
26987         * tree-inline.c (optimize_inline_calls): Do not call
26988         cgraph_node_remove_callees.
26989         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
26990         (pass_remove_cgraph_callee_edges): New variable.
26991         * passes.c (init_optimization_passes): Add
26992         pass_remove_cgraph_callee_edges after early inlining and before all
26993         late intraprocedural passes.
26994
26995         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
26996
26997 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26998
26999         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
27000         Fix typos in names.
27001
27002 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
27003
27004         * combine.c (simplify_comparison): Use have_insn_for.
27005         * dojump.c (do_jump): Likewise.
27006
27007 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
27008
27009         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
27010         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
27011         sparc_compare_op0 like sparc_compare_emitted used to be handled.
27012         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
27013         instead of sparc_compare_emitted.
27014         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
27015         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
27016         instead of sparc_compare_emitted.
27017
27018 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
27019
27020         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
27021         enter/exit cfglayout mode.
27022         (pass_partition_block): Require it.
27023         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
27024         (combine_instructions): Track basic blocks instead of labels.
27025         (update_cfg_for_uncondjump): New.
27026         (try_combine): Use it.  Update jumps after rescanning.
27027         (pass_combine): Require PROP_cfglayout.
27028         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
27029
27030 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
27031
27032         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
27033         Provide/destroy PROP_cfglayout respectively.
27034         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
27035         * tree-pass.h (PROP_cfglayout): New.
27036
27037 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
27038
27039         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
27040         fold_convert_const_fixed_from_fixed,
27041         fold_convert_const_fixed_from_int,
27042         fold_convert_const_fixed_from_real, fold_negate_const): Do not
27043         set TREE_CONSTANT_OVERFLOW.
27044         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
27045         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
27046
27047 2009-03-30  Ira Rosen  <irar@il.ibm.com>
27048
27049         * tree-vect-loop-manip.c: New file.
27050         * tree-vectorizer.c: Update documentation and included files.
27051         (vect_loop_location): Make extern.
27052         (rename_use_op): Move to tree-vect-loop-manip.c
27053         (rename_variables_in_bb, rename_variables_in_loop,
27054         slpeel_update_phis_for_duplicate_loop,
27055         slpeel_update_phi_nodes_for_guard1,
27056         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
27057         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
27058         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
27059         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
27060         find_loop_location): Likewise.
27061         (new_stmt_vec_info): Move to tree-vect-stmts.c.
27062         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
27063         get_vectype_for_scalar_type, vect_is_simple_use,
27064         supportable_widening_operation, supportable_narrowing_operation):
27065         Likewise.
27066         (bb_in_loop_p): Move to tree-vect-loop.c.
27067         (new_loop_vec_info, destroy_loop_vec_info,
27068         reduction_code_for_scalar_code, report_vect_op,
27069         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
27070         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
27071         (vect_supportable_dr_alignment): Likewise.
27072         * tree-vectorizer.h (tree-data-ref.h): Include.
27073         (vect_loop_location): Declare.
27074         Reorganize function declarations according to the new file structure.
27075         * tree-vect-loop.c: New file.
27076         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
27077         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
27078         * tree-vect-data-refs.c: New file.
27079         * tree-vect-patterns.c (timevar.h): Don't include.
27080         * tree-vect-stmts.c: New file.
27081         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
27082         tree-vect-slp.c, tree-vect-loop.c.
27083         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
27084         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
27085         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
27086         (tree-vect-analyze.o): Remove.
27087         (tree-vect-transform.o): Likewise.
27088         (tree-vect-data-refs.o): Add rule.
27089         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
27090         tree-vect-slp.o): Likewise.
27091         (tree-vect-patterns.o): Remove redundant dependencies.
27092         (tree-vectorizer.o): Likewise.
27093         * tree-vect-slp.c: New file.
27094
27095 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27096
27097         * optc-gen.awk: Warn if an option flag has multiple different
27098         help strings.
27099
27100 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
27101
27102         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
27103         -floop-block): Document dependences on PPL, CLooG and Graphite.
27104
27105 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
27106
27107         PR rtl-optimization/323
27108         * c-common.c (c_fully_fold, convert_and_check,
27109         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
27110         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
27111         * c-common.def (EXCESS_PRECISION_EXPR): New.
27112         * c-cppbuiltin.c (builtin_define_float_constants): Define
27113         constants with enough digits for long double.
27114         * c-lex.c (interpret_float): Interpret constant with excess
27115         precision where appropriate.
27116         * c-opts.c (c_common_post_options): Set
27117         flag_excess_precision_cmdline.  Give an error for
27118         -fexcess-precision=standard for C++ for processors where the
27119         option is significant.
27120         * c-parser.c (c_parser_conditional_expression): Handle excess
27121         precision in condition.
27122         * c-typeck.c (convert_arguments): Handle arguments with excess
27123         precision.
27124         (build_unary_op): Move excess precision outside operation.
27125         (build_conditional_expr): Likewise.
27126         (build_compound_expr): Likewise.
27127         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
27128         (build_modify_expr): Handle excess precision in RHS.
27129         (convert_for_assignment): Handle excess precision in converted
27130         value.
27131         (digest_init, output_init_element, process_init_element): Handle
27132         excess precision in initializer.
27133         (c_finish_return): Handle excess precision in return value.
27134         (build_binary_op): Handle excess precision in operands and add
27135         excess precision as needed for operation.
27136         * common.opt (-fexcess-precision=): New option.
27137         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
27138         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
27139         For standard excess precision, output explicit conversion to and
27140         truncation from XFmode.
27141         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
27142         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
27143         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
27144         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
27145         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
27146         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
27147         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
27148         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
27149         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
27150         define_splits, sqrt<mode>2): Disable where appropriate for
27151         standard excess precision.
27152         * convert.c (convert_to_real): Do not shorten arithmetic to type
27153         for which excess precision would be used.
27154         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
27155         * doc/invoke.texi (-fexcess-precision=): Document option.
27156         (-mfpmath=): Correct index entry.
27157         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
27158         flag_excess_precision): New.
27159         * langhooks.c (lhd_post_options): Set
27160         flag_excess_precision_cmdline.
27161         * opts.c (common_handle_option): Handle -fexcess-precision=.
27162         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
27163         init_excess_precision): New.
27164         (lang_dependent_init_target): Call init_excess_precision.
27165         * tree.c (excess_precision_type): New.
27166         * tree.h (excess_precision_type): Declare.
27167
27168 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
27169
27170         PR c/35235
27171         * c-typeck.c (build_component_ref): Do not copy qualifiers from
27172         non-lvalue to component.
27173
27174 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
27175
27176         PR preprocessor/34695
27177         * Makefile.in (c-opts.o): Depend on c-tree.h.
27178         * c-common.c: Move down include of diagnostic.h.
27179         (done_lexing, c_cpp_error): New.
27180         * c-common.h (done_lexing): Declare.
27181         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
27182         (parse_in).
27183         * c-opts.c: Include c-tree.h.
27184         (c_common_init_options): Set preprocessor error callback.
27185         (c_common_handle_option): Do not set preprocessor
27186         inhibit_warnings, warnings_are_errors, warn_system_headers,
27187         pedantic_errors or inhibit_warnings flags.
27188         (c_common_post_options): Do not check cpp_errors (parse_in).
27189         (c_common_finish): Do not output dependencies if there were
27190         errors.  Do not check return value of cpp_finish.
27191         * c-ppoutput.c (pp_file_change): Set input_location.
27192         * c-tree.h (c_cpp_error): Declare.
27193         * diagnostic.c (diagnostic_set_info_translated): Also initialize
27194         override_column.
27195         (diagnostic_build_prefix): Check override_column.
27196         * diagnostic.h (diagnostic_info): Add override_column field.
27197         (diagnostic_override_column): Define.
27198
27199 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
27200
27201         * c-common.c (c_expand_expr, c_staticp): Remove.
27202         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
27203         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
27204         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
27205         * c-gimplify.c (gimplify_compound_literal_expr,
27206         optimize_compound_literals_in_ctor): Remove.
27207         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
27208         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
27209         * c-semantics.c (emit_local_var): Remove.
27210
27211         * langhooks-def.h (lhd_expand_expr): Remove.
27212         * langhooks.c (lhd_expand_expr): Remove.
27213         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
27214
27215         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
27216         handling from c-semantics.c; don't call into langhook.
27217         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
27218         * gimplify.c (gimplify_compound_literal_expr,
27219         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
27220         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
27221         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
27222         as was done in c-gimplify.c.
27223         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
27224         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
27225         Move from c-common.h.
27226         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
27227
27228         * tree.c (staticp): Do not call langhook.
27229         * langhooks.c (lhd_staticp): Delete.
27230         * langhooks-def.h (lhd_staticp): Delete prototype.
27231         (LANG_HOOKS_STATICP): Delete.
27232         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
27233
27234         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
27235         instead of DECL_STMTs.
27236
27237 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
27238
27239         PR c/456
27240         PR c/5675
27241         PR c/19976
27242         PR c/29116
27243         PR c/31871
27244         PR c/35198
27245         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
27246         void_type_node.
27247         (fold_call_expr): Return a NOP_EXPR from folding rather than the
27248         contained expression.
27249         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
27250         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
27251         conditional expressions for C.
27252         (decl_constant_value_for_optimization): Move from
27253         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
27254         whether optimizing and that the expression is a VAR_DECL not of
27255         array type instead of doing such checks in the caller.  Do not
27256         check pedantic.  Call gcc_unreachable for C++.
27257         * c-common.def (C_MAYBE_CONST_EXPR): New.
27258         * c-common.h (c_fully_fold, c_save_expr,
27259         decl_constant_value_for_optimization): New prototypes.
27260         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
27261         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
27262         EXPR_INT_CONST_OPERANDS): Define.
27263         * c-convert.c (convert): Strip nops from expression.
27264         * c-decl.c (groktypename): Take extra parameters expr and
27265         expr_const_operands.  Update call to grokdeclarator.
27266         (start_decl): Update call to grokdeclarator.  Add statement for
27267         expressions used in type of decl.
27268         (grokparm): Update call to grokdeclarator.
27269         (push_parm_decl): Update call to grokdeclarator.
27270         (build_compound_literal): Add parameter non_const and build a
27271         C_MAYBE_COSNT_EXPR if applicable.
27272         (grokdeclarator): Take extra parameters expr and
27273         expr_const_operands.  Track expressions used in declaration
27274         specifiers and declarators.  Fold array sizes and track whether
27275         they are constant expressions and whether they are integer
27276         constant expressions.
27277         (parser_xref_tag): Set expr and expr_const_operands fields in
27278         return value.
27279         (grokfield): Update call to grokdeclarator.
27280         (start_function): Update call to grokdeclarator.
27281         (build_null_declspecs): Set expr and expr_const_operands fields in
27282         return value.
27283         (declspecs_add_type): Handle expressions in typeof specifiers.
27284         * c-parser.c (c_parser_declspecs): Set expr and
27285         expr_const_operands fields for declaration specifiers.
27286         (c_parser_enum_specifier): Likewise.
27287         (c_parser_struct_or_union_specifier): Likewise.
27288         (c_parser_typeof_specifier): Likewise.  Update call to
27289         groktypename.  Fold expression as needed.  Return expressions with
27290         type instead of adding statements.
27291         (c_parser_attributes): Update calls to c_parser_expr_list.
27292         (c_parser_statement_after_labels): Fold expression before passing
27293         to objc_build_throw_stmt.
27294         (c_parser_condition): Fold expression.
27295         (c_parser_asm_operands): Fold expression.
27296         (c_parser_conditional_expression): Use c_save_expr.  Update call
27297         to build_conditional_expr.
27298         (c_parser_alignof_expression): Update call to groktypename.
27299         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
27300         original_code.  Fold expression argument of va_arg.  Create
27301         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
27302         argument to va_arg.  Update calls to groktypename.  Fold array
27303         index for offsetof.  Verify that first argument to
27304         __builtin_choose_expr has integer type.
27305         (c_parser_postfix_expression_after_paren_type): Update calls to
27306         groktypename and build_compound_literal.  Handle expressions with
27307         side effects in type name.
27308         (c_parser_postfix_expression_after_primary): Update call to
27309         c_parser_expr_list.  Set original_code for calls to
27310         __builtin_constant_p.
27311         (c_parser_expr_list): Take extra parameter fold_p.  Fold
27312         expressions if requested.
27313         (c_parser_objc_type_name): Update call to groktypename.
27314         (c_parser_objc_synchronized_statement): Fold expression.
27315         (c_parser_objc_receiver): Fold expression.
27316         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
27317         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
27318         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
27319         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
27320         (struct c_typespec): Add elements expr and expr_const_operands.
27321         (struct c_declspecs): Add elements expr and expr_const_operands.
27322         (groktypename, build_conditional_expr, build_compound_literal):
27323         Update prototypes.
27324         (in_late_binary_op): Declare.
27325         * c-typeck.c (note_integer_operands): New function.
27326         (in_late_binary_op): New variable.
27327         (decl_constant_value_for_broken_optimization): Move to c-common.c
27328         and rename to decl_constant_value_for_optimization.
27329         (default_function_array_conversion): Do not strip nops.
27330         (default_conversion): Do not call
27331         decl_constant_value_for_broken_optimization.
27332         (build_array_ref): Do not fold result.
27333         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
27334         result when operand is a VLA.
27335         (c_expr_sizeof_type): Update call to groktypename.  Handle
27336         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
27337         result when operand names a VLA type.
27338         (build_function_call): Update call to build_compound_literal.
27339         Only fold result for calls to __builtin_* functions.  Strip
27340         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
27341         the function designator.
27342         (convert_arguments): Fold arguments.  Update call to
27343         convert_for_assignment.
27344         (build_unary_op): Handle increment and decrement of
27345         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
27346         decrement earlier.  Fold operand of increment and decrement.
27347         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
27348         built for integer operand.  Wrap returns that are INTEGER_CSTs
27349         without being integer constant expressions or that have integer
27350         constant operands without being INTEGER_CSTs.
27351         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
27352         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
27353         result is an integer constant expression or can be used in
27354         unevaluated parts of one and avoid folding and wrap as
27355         appropriate.  Fold operands before possibly doing -Wsign-compare
27356         warnings.
27357         (build_compound_expr): Wrap result for C99 if operands can be used
27358         in integer constant expressions.
27359         (build_c_cast): Update call to digest_init.  Do not ignore
27360         overflow from casting floating-point constants to integers.  Wrap
27361         results that could be confused with integer constant expressions,
27362         null pointer constants or floating-point constants.
27363         (c_cast_expr): Update call to groktypename.  Handle expressions
27364         included in type name.
27365         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
27366         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
27367         Update calls to convert_for_assignment.
27368         (convert_for_assignment): Take new parameter
27369         null_pointer_constant.  Do not strip nops or call
27370         decl_constant_value_for_broken_optimization.  Set
27371         in_late_binary_op for conversions to boolean.
27372         (store_init_value): Update call to digest_init.
27373         (digest_init): Take new parameter null_pointer_constant.  Do not
27374         call decl_constant_value_for_broken_optimization.  pedwarn for
27375         initializers not constant expressions.  Update calls to
27376         convert_for_assignment.
27377         (constructor_nonconst): New.
27378         (struct constructor_stack): Add nonconst element.
27379         (really_start_incremental_init, push_init_level, pop_init_level):
27380         Handle constructor_nonconst and nonconst element.
27381         (set_init_index): Call constant_expression_warning for array
27382         designators.
27383         (output_init_element): Fold value.  Set constructor_nonconst as
27384         applicable.  pedwarn for initializers not constant expressions.
27385         Update call to digest_init.  Call constant_expression_warning
27386         where constant initializers are required.
27387         (process_init_element): Use c_save_expr.
27388         (c_finish_goto_ptr): Fold expression.
27389         (c_finish_return): Fold return value.  Update call to
27390         convert_for_assignment.
27391         (c_start_case): Fold switch expression.
27392         (c_process_expr_stmt): Fold expression.
27393         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
27394         ensure statement expression is not evaluated in constant expression.
27395         (build_binary_op): Track whether results are integer constant
27396         expressions or may occur in such, disable folding and wrap results
27397         as applicable.  Fold operands for -Wsign-compare warnings unless
27398         in_late_binary_op.
27399         (c_objc_common_truthvalue_conversion): Handle results folded to
27400         integer constants that are not integer constant expressions.
27401         * doc/extend.texi: Document when typeof operands are evaluated,
27402         that condition of __builtin_choose_expr is an integer constant
27403         expression, and more about use of __builtin_constant_p in
27404         initializers.
27405
27406 2009-03-29  Richard Guenther  <rguenther@suse.de>
27407
27408         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
27409         propagate addresses of array references.
27410
27411 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
27412
27413         * regmove.c (perhaps_ends_bb_p): Remove.
27414         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
27415         from INSN and check that the main loop stays within that basic block.
27416         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
27417         (regmove_forward_pass): Split out from regmove_optimize.  Use
27418         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
27419         (regmove_backward_pass): Split out from regmove_optimize.  Use
27420         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
27421         (regmove_optimize): Simplify.
27422
27423 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
27424
27425         PR target/39545
27426         * config/i386/i386.c (classify_argument): Ignore flexible array
27427         member in struct and warn ABI change.
27428
27429 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
27430
27431         * config/i386/i386-protos.h (ix86_agi_dependent): New.
27432
27433         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
27434         (ix86_adjust_cost): Updated.
27435
27436 2009-03-29  Jan Hubicka  <jh@suse.cz>
27437
27438         PR middle-end/28850
27439         * tree-pass.h (pass_cleanup_eh): New function.
27440         (remove_unreachable_regions): Break code handling RTL
27441         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
27442         that can not be reached by runtime.
27443         (can_be_reached_by_runtime): New function.
27444         (label_to_region_map): New function.
27445         (num_eh_regions): New function.
27446         (rtl_remove_unreachable_regions): New function.
27447         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
27448         (remove_eh_region): New function.
27449         * except.h: Include sbitmap and vecprim.
27450         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
27451         num_eh_regions): Declare.
27452         * passes.c (init_optimization_passes): Schedule cleanup_eh.
27453         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
27454         * tree-eh.c (tree_remove_unreachable_handlers): New function.
27455         (tree_empty_eh_handler_p): New function.
27456         (cleanup_empty_eh): New function.
27457         (cleanup_eh): New function.
27458         (pass_cleanup_eh): New function.
27459
27460 2009-03-29  Jan Hubicka  <jh@suse.cz>
27461
27462         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
27463         for removed regions.
27464
27465 2009-03-29  Jan Hubicka  <jh@suse.cz>
27466
27467         * except.c (dump_eh_tree): Dump all datastructures.
27468
27469 2009-03-29  Jan Hubicka  <jh@suse.cz>
27470
27471         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
27472         (duplicate_eh_regions_1): Likewise.
27473         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
27474         vector; call EH verification.
27475         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
27476         Be ready for region being removed.
27477
27478 2009-03-29  Jan Hubicka  <jh@suse.cz>
27479
27480         * bitmap.c (bitmap_last_set_bit): New function.
27481         * bitmap.h (bitmap_last_set_bit): Declare.
27482
27483 2009-03-29  David Ayers  <ayers@fsfe.org>
27484
27485         PR objc/27377
27486         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
27487         by calling objc_compare_types and surpress warnings about
27488         incompatible C pointers that are compatible ObjC pointers.
27489
27490 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
27491
27492         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
27493         call initialize_inline_failed.
27494         (initialize_inline_failed): Move it from here ...
27495         * cgraph.c (initialize_inline_failed): ... to here.
27496         (cgraph_create_edge): Call initialize_inline_failed rather than
27497         setting inline_failed directly.
27498
27499 2009-03-29  Ben Elliston  <bje@au.ibm.com>
27500
27501         PR target/32542
27502         * sysv4.opt (msdata): Improve comment.
27503         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
27504         * sysv4.h (SVR4_ASM_SPEC): Likewise.
27505
27506 2009-03-29  Ben Elliston  <bje@au.ibm.com>
27507
27508         PR target/30451
27509         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
27510         load and store attributes.
27511
27512 2009-03-29  Ben Elliston  <bje@au.ibm.com>
27513
27514         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
27515         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
27516         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
27517         * doc/extend.texi (X86 Built-in Functions): Add index entries for
27518         __builtin_infq and __builtin_huge_valq.
27519
27520 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
27521
27522         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
27523         atmega8m1 devices.
27524         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
27525         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
27526
27527 2009-03-28  Xinliang David Li  <davidxl@google.com>
27528
27529         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
27530         (do_dbg_cnt): New function.
27531
27532 2009-03-28  Jan Hubicka  <jh@suse.cz>
27533
27534         Merge from pretty-ipa:
27535
27536         2009-03-27  Jan Hubicka  <jh@suse.cz>
27537
27538         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
27539         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
27540         * passes.c (function_called_by_processed_nodes_p): New.
27541         * ipa-pure-const.c (check_call): Fix handling of operands.
27542         (analyze_function): Dump debug output for skipped bodies.
27543         (local_pure_const): Use function_called_by_processed_nodes_p.
27544         * dwarf2out.c (reference_to_unused): Use output.
27545         * passes.c (do_per_function_toporder): Likewise.
27546
27547         2008-11-12  Jan Hubicka  <jh@suse.cz>
27548
27549         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
27550         * ipa-pure-const.c (funct_state_d): Add can throw field; make
27551         state_set_in_source enum
27552         (check_decl): Ignore memory tags; do not set fake looping flags;
27553         dump diagnostics.
27554         (check_operand, check_tree, check_rhs_var, check_lhs_var,
27555         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
27556         (check_call, analyze_function): Rewrite.
27557         (check_stmt): New.
27558         (add_new_function): Update call of analyze_function.
27559         (generate_summary): Add call of analyze_function.
27560         (propagate): Propagate can_throw; handle state_set_in_source correctly.
27561         (local_pure_const): New function.
27562         (pass_local_pure_const): New pass.
27563         * ipa-inline.c (inline_transform): Set after_inlining.
27564         * tree-eh.c (stmt_can_throw_external): New.
27565         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
27566         work with aliasing built.
27567         * tree-flow.h (stmt_can_throw_external): New.
27568         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
27569         and local pure/const pass in early and late optimization queue.
27570
27571 2009-03-28  Martin Jambor  <mjambor@suse.cz>
27572
27573         * fold-const.c (get_pointer_modulus_and_residue): New parameter
27574         allow_func_align.
27575         (fold_binary): Allow function decl aligment consideration is the
27576         second argument is integer constant one.
27577         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
27578         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
27579         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
27580
27581 2009-03-28  Jan Hubicka  <jh@suse.cz>
27582
27583         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
27584         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
27585         * function.h (rtl_data): Add nothrow flag.
27586         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
27587         set DECL_NOTHROW for AVAILABLE functions.
27588
27589 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
27590
27591         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
27592         following vector keyword has expansion starting with pixel or bool
27593         keyword, expand vector to __vector and pixel or bool to __pixel or
27594         __bool.
27595
27596         PR c++/39554
27597         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
27598         warn_if_disallowed_function_p): Removed.
27599         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
27600         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
27601         warning_if_disallowed_function_p.
27602         * flags.h (warn_if_disallowed_function_p,
27603         warn_disallowed_functions): Removed.
27604         * common.opt (Wdisallowed-function-list=): Removed.
27605         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
27606
27607 2009-03-28  Richard Guenther  <rguenther@suse.de>
27608
27609         PR tree-optimization/38723
27610         * tree-ssa-pre.c (compute_avail): Add all default definitions to
27611         the entry block.
27612
27613 2009-03-28  Jan Hubicka  <jh@suse.cz>
27614
27615         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
27616         test introduced by my previous patch.
27617
27618 2009-03-28  Richard Guenther  <rguenther@suse.de>
27619
27620         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
27621         the PHIs value undefined.
27622
27623 2009-03-28  Jan Hubicka  <jh@suse.cz>
27624
27625         * tree-pass.h (pass_fixup_cfg): New pass.
27626         * ipa-inline.c (inline_transform): Set
27627         always_inline_functions_inlined/after_inlining.
27628         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
27629         (pass_fixup_cfg): New pass.
27630         * passes.c (init_optimization_passes): Add fixup_cfg.
27631
27632 2009-03-28  Richard Guenther  <rguenther@suse.de>
27633
27634         PR tree-optimization/38458
27635         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
27636         argument use the arguments copy-of value.
27637
27638 2009-03-28  Richard Guenther  <rguenther@suse.de>
27639
27640         PR tree-optimization/38180
27641         * tree-ssa-ccp.c (get_default_value): Simplify.
27642         (likely_value): Likewise.
27643         (surely_varying_stmt_p): Properly handle VOP case.
27644         (ccp_initialize): Likewise.
27645         (ccp_fold): Handle propagating through *&.
27646         (fold_const_aggregate_ref): Also handle decls.
27647
27648 2009-03-28  Jan Hubicka  <jh@suse.cz>
27649
27650         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
27651         * cgraph.h (cgraph_node): Likewise.
27652         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
27653         (cgraph_reset_node): Use process flag.
27654         (cgraph_mark_functions_to_output): Likewise.
27655         (cgraph_expand_function): Likewise.
27656         (cgraph_expand_all_functions): Likewise.
27657         (cgraph_output_in_order): Likewise.
27658         * dwarf2out.c (reference_to_unused): Likewise.
27659         * passes.c do_per_function_toporder): Likewise.
27660
27661 2009-03-28  Jan Hubicka  <jh@suse.cz>
27662
27663         Bring from lto-branch:
27664
27665         2008-09-03  Doug Kwan  <dougkwan@google.com>
27666
27667         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
27668         enums instead of reason strings.
27669         * cgraph.c (cgraph_create_edge): Same.
27670         (cgraph_inline_failed_string): New function.
27671         * cgraph.h (cgraph_inline_failed_t): New enum type.
27672         (cgraph_inline_failed_string): New prototype.
27673         (struct cgraph_edge): Change type of INLINED_FAILED from constant
27674         char pointer to cgraph_inline_failed_t.
27675         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
27676         (cgraph_default_inline_p): Ditto.
27677         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
27678         to cgraph_inline_failed_t pointer.
27679         * cif-code.def: New file.
27680         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
27681         reason string.
27682         (cgraph_check_inline_limits): Change type of REASON to pointer to
27683         cgraph_inline_failed_t.  Replace reason strings with enums.
27684         (cgraph_default_inline_p): Ditto.
27685         (cgraph_recursive_inlining_p): Ditto.
27686         (update_caller_keys): Change type of FAILED_REASON to
27687         cgraph_inline_failed_t.
27688         (cgraph_set_inline_failed): Change type of REASON to pointer to
27689         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
27690         convert enums to strings for text output.
27691         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
27692         to be of type cgraph_inline_failed_t.  Replace reason strings with
27693         enums.  Call cgraph_inline_failed_string to covert enums
27694         to strings for text output.
27695         (cgraph_decide_inlining): Replace reason strings with enums.
27696         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
27697         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
27698         for text output.
27699         * tree-inline.c (expand_call_inline): Change type of REASON
27700         to cgraph_inline_failed_t.  Replace reason strings with enums.
27701         Call cgraph_inline_failed_string for text output.
27702         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
27703         (cgraph.o): Ditto.
27704
27705 2009-03-28  Jan Hubicka  <jh@suse.cz>
27706
27707         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
27708         cgraph_clone_node): Remove master clone handling.
27709         (cgraph_is_master_clone, cgraph_master_clone): Remove.
27710         * cgraph.h (master_clone): Remove.
27711         (cgraph_is_master_clone, cgraph_master_clone): Remove.
27712         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
27713         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
27714
27715 2009-03-28  Jan Hubicka  <jh@suse.cz>
27716
27717         * cgraph.c (cgraph_function_body_availability): Functions declared
27718         inline are always safe to assume that it is not going to be replaced.
27719
27720 2009-03-28  Richard Guenther  <rguenther@suse.de>
27721
27722         PR tree-optimization/38513
27723         * tree-ssa-pre.c (eliminate): Remove redundant stores.
27724         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
27725         EXC_PTR_EXPR and FILTER_EXPR.
27726         (get_ref_from_reference_ops): Likewise.
27727
27728 2009-03-28  Richard Guenther  <rguenther@suse.de>
27729
27730         PR tree-optimization/38968
27731         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
27732         Use FLOOR_MOD_EXPR to compute misalignment.
27733
27734 2009-03-28  Richard Guenther  <rguenther@suse.de>
27735
27736         PR tree-optimization/37795
27737         * tree.h (combine_comparisons): Declare.
27738         * fold-const.c (combine_comparisons): Export.
27739         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
27740         comparisons.
27741         (ifcombine_iforif): Use combine_comparisons.
27742
27743 2009-03-28  Jan Hubicka  <jh@suse.cz>
27744
27745         * tree-eh.c (inlinable_call_p): New function.
27746         (make_eh_edges): Use it.
27747         (verify_eh_edges): Use it.
27748         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
27749         * except.c (reachable_next_level): Add inlinable_function argument
27750         (sjlj_find_directly_reachable_regions): Update.
27751         (add_reachable_handler): Do not set saw_any_handlers.
27752         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
27753         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
27754         Add new inlinable call parameter.
27755         (can_throw_internal, can_throw_external): Update.
27756         * except.h (can_throw_internal_1, can_throw_external_1,
27757         foreach_reachable_handler): Update declaration.
27758
27759 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
27760
27761         * config/arm/t-arm-coff, config/h8300/coff.h,
27762         config/i386/i386-aout.h, config/i386/i386-coff.h,
27763         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
27764         config/pdp11/2bsd.h, config/rs6000/aix41.h,
27765         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
27766         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
27767         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
27768         sys-types.h: Remove.
27769         * Makefile.in: Remove protoize and fixproto support and references
27770         in comments.
27771         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
27772         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
27773         Remove.
27774         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
27775         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
27776         unprotoize$(exeext).
27777         (rest.encap): Don't depend on $(STMP_FIXPROTO)
27778         (.PHONY): Don't depend on proto.
27779         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
27780         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
27781         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
27782         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
27783         build/gen-protos.o, build/scan.o, xsys-protos.h,
27784         build/fix-header$(build_exeext), build/fix-header.o,
27785         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
27786         stmp-install-fixproto): Remove.
27787         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
27788         SYSCALLS.c or fixproto files.
27789         (install-common): Don't install protoize.
27790         (install-headers-tar, install-headers-cpio, install-headers-cp):
27791         Don't depend on $(STMP_FIXPROTO).
27792         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
27793         install fixproto files or write out fixproto settings.
27794         (uninstall): Don't uninstall protoize.
27795         * config.gcc (use_fixproto): Remove.
27796         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
27797         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
27798         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
27799         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
27800         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
27801         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
27802         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
27803         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
27804         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
27805         * config/t-vxworks (STMP_FIXPROTO): Remove.
27806         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
27807         STMP_FIXPROTO): Remove.
27808         * config.in, configure: Regenerate.
27809         * crtstuff.c (gid_t, uid_t): Don't undefine.
27810         * doc/install.texi: Change m68k-coff to m68k-elf in example.
27811         (arm-*-coff, arm-*-aout: Remove target entries.
27812         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
27813         Remove mention of AIX 4.1.
27814         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
27815         * doc/invoke.texi (Running Protoize): Remove.
27816         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
27817         (Protoize Caveats): Remove.
27818         * tsystem.h: Update comments on headers assumed to exist.
27819
27820 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
27821
27822         * genautomata.c: Add a new year to the copyright.  Add a new
27823         reference.
27824         (struct insn_reserv_decl): Add comments for member bypass_list.
27825         (find_bypass): Remove.
27826         (insert_bypass): New.
27827         (process_decls): Use insert_bypass.
27828         (output_internal_insn_latency_func): Output all bypasses with the
27829         same input insn in one switch case.
27830
27831         * rtl.def (define_bypass): Describe bypass choice.
27832         * doc/md.texi (define_bypass): Ditto.
27833
27834 2009-03-27  Richard Guenther  <rguenther@suse.de>
27835
27836         * gimplify.c (mark_addressable): Export.
27837         * tree-flow.h (mark_addressable): Declare.
27838         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
27839         * tree-ssa.c (verify_phi_args): Verify that address taken
27840         variables have TREE_ADDRESSABLE set.
27841
27842 2009-03-27  Richard Guenther  <rguenther@suse.de>
27843
27844         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
27845         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
27846         Do not mark decls TREE_ADDRESSABLE.
27847         (build_fold_addr_expr): Adjust.
27848         (fold_addr_expr): Remove.
27849         (fold_unary): Use build_fold_addr_expr.
27850         (fold_comparison): Likewise.
27851         (split_address_to_core_and_offset): Likewise.
27852         * coverage.c (tree_coverage_counter_addr): Mark the array decl
27853         TREE_ADDRESSABLE.
27854         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
27855         (gimplify_modify_expr_to_memcpy): Mark source and destination
27856         addressable.
27857         * omp-low.c (create_omp_child_function): Mark the object decl
27858         TREE_ADDRESSABLE.
27859         (lower_rec_input_clauses): Mark the var we take the address of
27860         TREE_ADDRESSABLE.
27861         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
27862
27863 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27864
27865         PR middle-end/39315
27866         * cfgexpand.c (expand_one_stack_var_at): Change alignment
27867         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
27868
27869 2009-03-27  Richard Guenther  <rguenther@suse.de>
27870
27871         PR tree-optimization/39120
27872         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
27873         constraints.
27874         (handle_lhs_call): Process return constraints.  Add escape
27875         constraints if necessary.
27876         (handle_const_call): Fill out return constraints.  Make nested
27877         case more precise.  Avoid consttmp if possible.
27878         (handle_pure_call): Fill out return constraints.  Avoid
27879         callused if possible.
27880         (find_func_aliases): Simplify call handling.
27881
27882 2009-03-27  Richard Guenther  <rguenther@suse.de>
27883
27884         PR tree-optimization/39120
27885         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
27886         as a representative.
27887         (solve_graph): Do propagate CALLUSED.
27888         (handle_pure_call): Use a scalar constraint from CALLUSED for
27889         the return value.
27890         (find_what_p_points_to): CALLUSED shall not appear in poins-to
27891         solutions.
27892
27893 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27894
27895         PR c/39323
27896         * c-common.c (handle_aligned_attribute): Properly check alignment
27897         overflow.  Use (1U << i) instead of (1 << i).
27898
27899         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
27900
27901         * expr.h (get_mem_align_offset): Updated.
27902
27903         * tree.h (tree_decl_common): Change align to "unsigned int" and
27904         move it before pointer_alias_set.
27905
27906 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27907             Jakub Jelinek  <jakub@redhat.com>
27908
27909         PR target/38034
27910         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
27911         gr_register_operand with gr_reg_or_0_operand.
27912         (cmpxchg_rel_di): Likewise.
27913         (sync_lock_test_and_set<mode>): Likewise.
27914
27915 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27916
27917         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
27918         (true_regnum): Likewise.
27919
27920         * rtlanal.c (subreg_info): Moved to ...
27921         * rtl.h (subreg_info): Here.  New.
27922         (subreg_get_info): New.
27923
27924         * rtlanal.c (subreg_get_info): Make it extern.
27925
27926 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27927
27928         PR target/39472
27929         * config/i386/i386.c (ix86_abi): New.
27930         (override_options): Handle -mabi=.
27931         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
27932         (ix86_call_abi_override): Likewise.
27933         (init_cumulative_args): Likewise.
27934         (function_arg_advance): Likewise.
27935         (function_arg_64): Likewise.
27936         (function_arg): Likewise.
27937         (ix86_pass_by_reference): Likewise.
27938         (ix86_function_value_regno_p): Likewise.
27939         (ix86_build_builtin_va_list_abi): Likewise.
27940         (setup_incoming_varargs_64): Likewise.
27941         (is_va_list_char_pointer): Likewise.
27942         (ix86_init_machine_status): Likewise.
27943         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
27944         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
27945         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
27946         (ix86_function_abi): Make it static and return enum calling_abi.
27947         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
27948         with ix86_abi.
27949         (ix86_fn_abi_va_list): Updated.
27950
27951         * config/i386/i386.h (ix86_abi): New.
27952         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
27953         (CONDITIONAL_REGISTER_USAGE): Likewise.
27954         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
27955         (machine_function): Likewise.
27956
27957         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
27958         with ix86_abi.
27959         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
27960         (STACK_BOUNDARY): Likewise.
27961         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
27962
27963         * config/i386/i386.opt (mabi=): New.
27964
27965         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
27966         return enum calling_abi.
27967         (ix86_function_type_abi): Likewise.
27968         (ix86_function_abi): Removed.
27969
27970         * doc/invoke.texi: Document -mabi= option for x86.
27971
27972 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27973
27974         * builtins.c (real_dconstp): Delete.
27975         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
27976
27977 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
27978             Jakub Jelinek  <jakub@redhat.com>
27979
27980         PR debug/37959
27981         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
27982         (gen_subprogram_die): When a function is explicit, generate the
27983         DW_AT_explicit attribute.
27984         * langhooks.h (struct lang_hooks_for_decls): Add
27985         function_decl_explicit_p langhook.
27986         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
27987         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
27988
27989 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
27990
27991         * builtins.c (fold_builtin_memory_op): Optimize memmove
27992         into memcpy if we can prove source and destination don't overlap.
27993
27994         * tree-inline.c: Include gt-tree-inline.h.
27995         (clone_fn_id_num): New variable.
27996         (clone_function_name): New function.
27997         (tree_function_versioning): Use it.
27998         * Makefile.in (GTFILES): Add tree-inline.c.
27999
28000 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
28001
28002         * BASE-VER: Change to 4.5.0.
28003
28004 2009-03-27  Xinliang David Li  <davidxl@google.com>
28005
28006         PR tree-optimization/39557
28007         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
28008
28009 2009-03-27  Xinliang David Li  <davidxl@google.com>
28010
28011         PR tree-optimization/39548
28012         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
28013         candidate check.
28014
28015 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
28016
28017         * c-common.c (pointer_int_sum): Use %wd on return from
28018         tree_low_cst.
28019
28020 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
28021
28022         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
28023         on return from tree_low_cst.
28024
28025 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
28026
28027         PR c++/36799
28028         * ginclude/stdarg.h (va_copy): Define also for
28029         __GXX_EXPERIMENTAL_CXX0X__.
28030
28031 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
28032
28033         PR c++/35652
28034         * builtins.h (c_strlen): Do not warn here.
28035         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
28036         * c-common.c (pointer_int_sum): Take an explicit location.
28037         Warn about offsets out of bounds.
28038         * c-common.h (pointer_int_sum): Adjust declaration.
28039
28040 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28041
28042         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
28043         markup glitch.
28044
28045 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
28046
28047         PR c++/39554
28048         * opts.c (warn_if_disallowed_function_p): Don't assume
28049         get_callee_fndecl must return non-NULL.
28050
28051 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
28052
28053         PR rtl-optimization/39522
28054         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
28055         when reg_reloaded_valid is set.
28056
28057 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28058
28059         * config/spu/divv2df3.c: New file.
28060         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
28061         (DPBIT_FUNCS): Filter out _div_df.
28062
28063 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
28064
28065         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
28066         a jump insn, count that jump in the distance to the loop start.
28067
28068 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
28069
28070         PR target/39523
28071         * config/sh/sh.c (calc_live_regs): Fix condition for global
28072         registers except PIC_OFFSET_TABLE_REGNUM.
28073
28074 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
28075
28076         PR/39518
28077         * doc/invoke.texi (-mconsole): New.
28078         (-mcygwin): New.
28079         (-mno-cygwin): New.
28080         (-mdll): New.
28081         (-mnop-fun-dllimport): New.
28082         (-mthread): New.
28083         (-mwin32): New.
28084         (-mwindows): New.
28085         (sub section "i386 and x86-64 Windows Options"): New.
28086
28087 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
28088
28089         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
28090         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
28091
28092 2009-03-25  Richard Guenther  <rguenther@suse.de>
28093
28094         PR middle-end/39497
28095         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
28096         of -Wno-error.
28097
28098 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
28099
28100         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
28101         neither of haifa/selective schedulers are working.
28102
28103 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28104
28105         * doc/invoke.texi (Debugging Options): Fix description of
28106         -fno-merge-debug-strings.
28107
28108 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
28109
28110         * config/cris/libgcc.ver: New version-script.
28111         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
28112
28113         * configure.ac <GAS features, nop mnemonic>: Add pattern
28114         crisv32-*-* for "nop".
28115         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
28116         * configure: Regenerate.
28117
28118 2009-03-24  Ira Rosen  <irar@il.ibm.com>
28119
28120         PR tree-optimization/39529
28121         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
28122         mark_sym_for_renaming for the tag copied to the new vector
28123         pointer.
28124
28125 2009-03-24  Arthur Loiret  <aloiret@debian.org>
28126
28127         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
28128         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
28129         EXTRA_SPEC_FUNCTIONS.
28130         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
28131         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
28132         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
28133         -march and -mtune options.
28134
28135 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
28136
28137         * config/m68k/t-rtems: Add m5329 multilib.
28138
28139 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
28140             Jakub Jelinek  <jakub@redhat.com>
28141
28142         PR debug/39524
28143         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
28144         nodes.
28145
28146 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
28147
28148         PR c/39495
28149         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
28150         instead of c_parser_expression_conv, if original_code isn't one of the
28151         4 allowed comparison codes, fail.
28152
28153 2009-03-23  Richard Guenther  <rguenther@suse.de>
28154
28155         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
28156         * tree.h (struct tree_type): Likewise.
28157         * reload.h (struct insn_chain): Likewise.
28158         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
28159         * function.h (struct function): Likewise.
28160         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
28161
28162 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
28163
28164         PR tree-optimization/39516
28165         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
28166
28167 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
28168
28169         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
28170         should be set true if BITS_PER_WORD of target is bigger than 32
28171
28172 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
28173
28174         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
28175         Translate -B-options to -rpath-link.  Correct existing
28176         rpath-link and conditionalize on !nostdlib.
28177
28178 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28179
28180         * doc/extend.texi (Function Attributes, Variable Attributes):
28181         Fix typos.
28182         * doc/invoke.texi (Debugging Options, Optimize Options)
28183         (i386 and x86-64 Options, MCore Options): Likewise.
28184
28185 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
28186
28187         PR debug/37890
28188         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
28189         it for block local namespace aliases.
28190         (gen_decl_die): Pass context_die to gen_namespace_die.
28191
28192 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
28193
28194         PR c/39495
28195         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
28196         minimum or maximum value.
28197
28198 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
28199
28200         * reginfo.c (globalize_reg): Recompute derived reg sets.
28201
28202 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
28203
28204         PR target/39063
28205         * libgcc2.c (mprotect): Do not use signed arguments for
28206         VirtualProtect, use DWORD arguments.  Also fix the 'may
28207         be used uninitialized' warning for the np variable.
28208
28209 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
28210
28211         PR target/39496
28212         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
28213         functions using regparm calling conventions when not optimizing.
28214         (ix86_function_sseregparm): Similarly for sseregparm calling
28215         conventions.
28216
28217 2009-03-19  Li Feng  <nemokingdom@gmail.com>
28218
28219         PR middle-end/39500
28220         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
28221         dependence if the first conflict is after niter iterations.
28222
28223 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
28224
28225         PR middle-end/38609
28226         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
28227         functions with dynamic stack-pointer adjustments.
28228
28229 2009-03-19  Ben Elliston  <bje@au.ibm.com>
28230
28231         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
28232         option; change to -msdata=data.
28233
28234 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28235
28236         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
28237         and -fopenmp.
28238
28239 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
28240
28241         PR target/35180
28242         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
28243
28244 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
28245
28246         * doc/invoke.texi (Code Gen Options): Expand discussion of
28247         -fno-common.
28248
28249 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
28250
28251         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
28252         * matrix-reorg.c (struct matrix_info): Likewise.
28253         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
28254         * rtl.h (struct mem_attrs): Likewise.
28255         * df.h (struct df): Likewise.
28256         * tree-data-ref.h (struct data_dependence_relation): Likewise.
28257         * ira-int.h (struct ira_allocno): Likewise.
28258         * df-scan.c (struct df_collection_rec): Likewise.
28259         * ira.c (struct equivalence): Likewise.
28260         * function.c (struct temp_slot): Likewise.
28261         * cfgloop.h (struct loop): Likewise.
28262
28263         PR debug/39485
28264         * function.c (use_register_for_decl): When not optimizing, disregard
28265         register keyword for variables with types containing methods.
28266
28267 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
28268
28269         PR middle-end/39447
28270         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
28271         (is_simple_operand): Call contains_component_ref_p before calling data
28272         reference analysis that would fail on COMPONENT_REFs.
28273
28274         * tree-vrp.c (search_for_addr_array): Fix formatting.
28275
28276 2009-03-18  Richard Guenther  <rguenther@suse.de>
28277
28278         * tree-vect-transform.c (vect_loop_versioning): Fold the
28279         generated comparisons.
28280         * tree-vectorizer.c (set_prologue_iterations): Likewise.
28281         (slpeel_tree_peel_loop_to_edge): Likewise.
28282
28283 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28284
28285         PR middle-end/37805
28286         * opts.c (print_specific_help): In addition to `undocumented',
28287         accept `separate' and `joined' flags if passed alone.  Describe
28288         output by the first matched one of those.
28289         (common_handle_option): Skip over empty strings.
28290         * gcc.c (display_help): Fix help string for `--help='.
28291         * doc/invoke.texi (Option Summary, Overall Options): With
28292         `--help=', classes and qualifiers can both be repeated, but
28293         only the latter can be negated.  One should not pass only
28294         negated qualifiers.  Fix markup and examples.
28295
28296         Revert
28297         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
28298         PR middle-end/37805
28299         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
28300         and -fhelp=separate.
28301
28302 2009-03-17  Jing Yu  <jingyu@google.com>
28303
28304         PR middle-end/39378
28305         * function.h (struct rtl_data): Move is_thunk from here...
28306         (struct function): ...to here.
28307         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
28308         * varasm.c (assemble_start_function): Change is_thunk from crtl to
28309         cfun.
28310         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
28311         cfun.
28312         (alpha_does_function_need_gp, alpha_start_function): Likewise.
28313         (alpha_output_function_end_prologue): Likewise.
28314         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
28315         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
28316         (rs6000_output_function_epilogue): Likewise.
28317         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
28318
28319 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
28320
28321         PR target/39482
28322         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
28323         from different units in a single alternative.
28324         (*truncdfsf_i387): Ditto.
28325         (*truncxfsf2_mixed): Ditto.
28326         (*truncxfdf2_mixed): Ditto.
28327
28328 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
28329
28330         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
28331         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
28332
28333         PR debug/39474
28334         * tree-ssa-live.c (remove_unused_locals): Don't remove local
28335         unused non-artificial variables when not optimizing.
28336
28337         PR debug/39471
28338         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
28339         DW_TAG_imported_module even if decl is IMPORTED_DECL with
28340         NAMESPACE_DECL in its DECL_INITIAL.
28341
28342         PR middle-end/39443
28343         * optabs.c (set_user_assembler_libfunc): New function.
28344         * expr.h (set_user_assembler_libfunc): New prototype.
28345         * c-common.c: Include libfuncs.h.
28346         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
28347         for memcmp, memset, memcpy, memmove and abort.
28348         * Makefile.in (c-common.o): Depend on libfuncs.h.
28349
28350         PR debug/39412
28351         * dwarf2out.c (gen_inlined_enumeration_type_die,
28352         gen_inlined_structure_type_die, gen_inlined_union_type_die,
28353         gen_tagged_type_instantiation_die): Removed.
28354         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
28355         do nothing.
28356
28357 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
28358
28359         PR testsuite/38526
28360         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
28361         its use.
28362         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
28363         (check-parallel-%): Ditto.
28364         (check-consistency): Ditto.
28365
28366 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
28367
28368         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
28369         local variable rhs by NULL_TREE.
28370
28371 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
28372
28373         PR target/39477
28374         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
28375
28376 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
28377
28378         PR target/39476
28379         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
28380
28381 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
28382
28383         PR target/39473
28384         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
28385         for ms->sysv ABI calls only in 64bit mode.
28386
28387         * config/i386/i386.md (untyped_call): Support 32bit.
28388
28389 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
28390
28391         * doc/extend.texi: Replace x86_65 with x86_64.
28392
28393 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
28394
28395         PR tree-optimization/39455
28396         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
28397         mismatches for POINTER_TYPE_P (type).
28398         (number_of_iterations_le): Likewise.
28399
28400 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
28401
28402         * config/picochip/picochip.c: Removed profiling support.
28403         * config/picochip/picochip.md: Removed profiling instruction.
28404         * config/picochip/picochip.h: Removed profiling builtin.
28405
28406 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
28407
28408         * doc/install.texi (--with-host-libstdcxx): Document.
28409
28410 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
28411
28412         PR target/34299
28413         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
28414         generate a warning if the function name does not begin with
28415         "__vector" and the function has either the 'signal' or 'interrupt'
28416         attribute, from here to ...
28417         (avr_declare_function_name): ...here. New function.
28418         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
28419         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
28420
28421 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
28422
28423         PR bootstrap/39454
28424         * cse.c (fold_rtx): Don't modify original const_arg1 when
28425         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
28426         separate variable instead.
28427         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
28428         from out of range shift counts.
28429         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
28430
28431 2009-03-13  Catherine Moore  <clm@codesourcery.com>
28432
28433         * config/i386/x-mingw32 (host-mingw32.o): Replace
28434         diagnostic.h with $(DIAGNOSTIC_H).
28435
28436 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
28437
28438         PR target/39431
28439         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
28440         predicate.
28441         * config/i386/sync.md (sync_compare_and_swap<mode>,
28442         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
28443         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
28444         into a register.
28445         (sync_double_compare_and_swapdi_pic,
28446         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
28447         cmpxchg8b_pic_memory_operand instead of just memory_operand.
28448
28449 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
28450
28451         PR target/39445
28452         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
28453
28454 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
28455
28456         PR target/39327
28457         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
28458         (avx_addsubv4df3): Likewise.
28459         (*avx_addsubv4sf3): Likewise.
28460         (sse3_addsubv4sf3): Likewise.
28461
28462 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
28463
28464         PR target/38824
28465         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
28466
28467 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
28468
28469         PR debug/39432
28470         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
28471         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
28472         registers for allocnos created from user-defined variables.
28473
28474 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28475
28476         PR target/39181
28477         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
28478         of non-integer mode as well.
28479
28480 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
28481
28482         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
28483         for functions for which the parameter types are unknown.
28484
28485 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
28486
28487         PR target/39137
28488         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
28489         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
28490         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
28491         * config/i386/i386.c (ix86_local_alignment): For
28492         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
28493         long long variables on the stack to avoid dynamic realignment.
28494         Allow the first argument to be a decl rather than type.
28495         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
28496
28497 2009-03-11  Nick Clifton  <nickc@redhat.com>
28498
28499         PR target/5362
28500         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
28501         options.
28502         Add description to mno-lsim option.
28503         * config/mcore/mcore.h: Remove comment about deprecated m4align
28504         option.
28505         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
28506         * doc/invoke.texi: Add description of mno-lsim and
28507         mstack-increment options.
28508
28509         * config/fr30/fr30.opt: Document the -mno-lsim option.
28510         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
28511         and -mno-lsim options.
28512
28513 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28514
28515         * fold-const.c (fold_comparison): Only call fold_inf_compare
28516         if the mode supports infinities.
28517
28518 2009-03-11  Jason Merrill  <jason@redhat.com>
28519
28520         PR debug/39086
28521         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
28522         end already did.  Notice GIMPLE_CALL modifications of the result.
28523         Don't copy debug information from an ignored decl or a decl from
28524         another function.
28525
28526 2009-03-10  Richard Guenther  <rguenther@suse.de>
28527             Nathan Froyd  <froydnj@codesourcery.com>
28528
28529         PR middle-end/37850
28530         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
28531         (__divMODE3): Likewise.
28532
28533 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
28534
28535         PR tree-optimization/39394
28536         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
28537         DECL_SIZE_UNIT of variable length FIELD_DECLs.
28538
28539 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28540
28541         * recog.c (verfiy_changes): Disallow renaming of hard regs in
28542         inline asms for register asm ("") declarations.
28543
28544 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
28545
28546         * fold-const.c (fold_unary): Fix comment.
28547
28548 2009-03-07  Jan Hubicka  <jh@suse.cz>
28549
28550         PR target/39361
28551         * tree-inline.c (setup_one_parameter): Do replacement of const
28552         argument by constant in SSA form.
28553
28554 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28555
28556         PR middle-end/38028
28557         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
28558         determine alignment passed to assign_stack_local.
28559         (assign_parms_unsplit_complex): Likewise.
28560         * except.c (sjlj_build_landing_pads): Likewise.
28561
28562 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
28563
28564         PR middle-end/39360
28565         * tree-flow.h (add_referenced_var): Return bool instead of void.
28566         * tree-dfa.c (add_referenced_var): Return result of
28567         referenced_var_check_and_insert call.
28568         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
28569         of referenced_var_check_and_insert.
28570
28571         PR debug/39372
28572         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
28573         (gen_variable_die): Emit DW_AT_location on abstract static variable's
28574         DIE, don't emit it if abstract origin already has it.
28575         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
28576         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
28577
28578 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
28579
28580         * genpreds.c (needs_variable): Fix parentheses at variable name
28581         detection.
28582         (write_tm_constrs_h): Indent generated code.
28583
28584 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28585
28586         * doc/extend.texi (Function Attributes): Add documentation
28587         for isr attributes.
28588
28589 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
28590
28591         PR debug/39387
28592         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
28593         take locus from its DECL_SOURCE_LOCATION instead of input_location.
28594
28595 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
28596
28597         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
28598         the loop as bad.
28599
28600 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
28601
28602         PR debug/39379
28603         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
28604         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
28605
28606 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
28607
28608         * config/i386/i386.md (R8_REG, R9_REG): New constants.
28609         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
28610         constants instead of magic numbers.
28611         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
28612         (QI_REG_P): Ditto.
28613         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
28614         (x86_64_ms_abi_int_parameter_registers): Ditto.
28615         (x86_64_int_return_registers): Ditto.
28616         (ix86_maybe_switch_abi): Ditto.
28617         (ix86_expand_call): Ditto for clobbered_registers array.
28618         (ix86_hard_regno_mode_ok): Ditto.
28619         (x86_extended_QIreg_mentioned_p): Ditto.
28620
28621 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
28622
28623         PR tree-optimization/39349
28624         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
28625
28626         * combine.c (gen_lowpart_for_combine): Use omode when generating
28627         clobber.
28628
28629 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
28630
28631         PR rtl-optimization/39235
28632         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
28633
28634 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
28635
28636         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
28637
28638 2009-03-04  Richard Guenther  <rguenther@suse.de>
28639
28640         PR tree-optimization/39362
28641         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
28642         that occur in abnormal PHIs should be varying.
28643
28644 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
28645
28646         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
28647         Extend comments.
28648         (simple_iv):  Take loop as an argument instead of statement.
28649         * tree-scalar-evolution.h (simple_iv): Declaration changed.
28650         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
28651         to simple_iv.
28652         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
28653         Ditto.
28654         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
28655         * matrix-reorg.c (analyze_transpose): Ditto.
28656         * tree-data-ref.c (dr_analyze_innermost): Ditto.
28657         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
28658         * tree-predcom.c (ref_at_iteration): Ditto.
28659         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
28660
28661 2009-03-04  Richard Guenther  <rguenther@suse.de>
28662
28663         PR tree-optimization/39358
28664         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
28665         escaped_id and callused_id.
28666         (solve_graph): Likewise.
28667
28668 2009-03-04  Richard Guenther  <rguenther@suse.de>
28669
28670         PR tree-optimization/39339
28671         * tree-sra.c (try_instantiate_multiple_fields): Make it
28672         no longer ICE on the above.
28673
28674 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
28675
28676         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
28677         that fits within Pmode.
28678
28679 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
28680
28681         PR middle-end/10109
28682         * tm.texi (LIBCALL_VALUE): Update description.
28683
28684 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
28685
28686         PR middle-end/34443
28687         * doc/extend.texi (section): Update description.
28688
28689 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
28690
28691         PR middle-end/39345
28692         * tree-inline.c (remapped_type): New.
28693         (can_be_nonlocal): Call remapped_type instead of remap_type.
28694
28695 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
28696
28697         PR fortran/39354
28698         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
28699         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
28700
28701 2009-03-03  Richard Guenther  <rguenther@suse.de>
28702
28703         PR middle-end/39272
28704         * tree.c (tree_nonartificial_location): New function.
28705         * tree.h (tree_nonartificial_location): Declare.
28706         * builtins.c (expand_builtin_memory_chk): Provide location
28707         of the call location for artificial function pieces.
28708         (maybe_emit_chk_warning): Likewise.
28709         (maybe_emit_sprintf_chk_warning): Likewise.
28710         (maybe_emit_free_warning): Likewise.
28711         * expr.c (expand_expr_real_1): Likewise.
28712
28713 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
28714
28715         PR tree-optimization/39343
28716         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
28717         COMPONENT_REF t has ARRAY_TYPE.
28718
28719 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
28720
28721         PR middle-end/39335
28722         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
28723         when the type precision of the induction variable should be
28724         larger than the type precision of nit.
28725         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
28726         * graphite.c (graphite_loop_normal_form): Same.
28727         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
28728
28729 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
28730
28731         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
28732         (*call_1_rex64_ms_sysv): Use named constants instead of magic
28733         numbers to describe clobbered registers.
28734         (*call_value_0_rex64_ms_sysv): Ditto.
28735         * config/i386/mmx.md (mmx_emms): Ditto.
28736         (mmx_femms): Ditto.
28737
28738 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
28739
28740         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
28741         of ABI_64.
28742
28743 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28744
28745         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
28746         (spu_section_type_flags): New function.
28747
28748 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
28749
28750         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
28751         reg_class_contents of FLOAT_REGS into a temporary.
28752
28753 2009-03-02  Richard Guenther  <rguenther@suse.de>
28754             Ira Rosen  <irar@il.ibm.com>
28755
28756         PR tree-optimization/39318
28757         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
28758         information to the vectorized statement.
28759
28760 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
28761
28762         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
28763         variable.  Use defined names instead of magic constants for REX SSE
28764         registers.
28765
28766 2009-03-01  Richard Guenther  <rguenther@suse.de>
28767
28768         PR tree-optimization/39331
28769         * omp-low.c (lower_send_shared_vars): Do not receive new
28770         values for the reference of DECL_BY_REFERENCE parms or results.
28771
28772 2009-03-01  Jan Hubicka  <jh@suse.cz>
28773
28774         PR debug/39267
28775         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
28776         BLOCK_NONLOCALIZED_VAR): New macros.
28777         (tree_block): Add nonlocalized_vars.
28778         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
28779         gen_decl_die): Add origin argument.  Allow generation of die with
28780         origin at hand only.
28781         (gen_member_die, gen_type_die_with_usage, force_decl_die,
28782         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
28783         of gen_*.
28784         (gen_block_die): Fix checking for unused blocks.
28785         (process_scope_var): Break out from .... ; work with origins only.
28786         (decls_for_scope) ... here; process nonlocalized list.
28787         (dwarf2out_ignore_block): Look for nonlocalized vars.
28788         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
28789         vars.
28790         (dump_scope_block): Dump them.
28791         * tree-inline.c (remap_decls): Handle nonlocalized vars.
28792         (remap_block): Likewise.
28793         (can_be_nonlocal): New predicate.
28794         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
28795
28796 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28797
28798         * configure: Regenerate.
28799
28800 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28801
28802         * optc-gen.awk: No need to duplicate option flags twice.
28803         Reuse help texts for duplicate options which do not have any.
28804
28805         * gcc.c (display_help): Document --version.
28806
28807         * gcc.c (main): If print_help_list and verbose_flag, ensure
28808         driver output comes before subprocess output.
28809
28810         * optc-gen.awk: Assign all remaining fields to help string,
28811         space-separated, for multi-line help in *.opt.
28812
28813         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
28814         -Wno-pedantic-ms-format is for MinGW targets only.
28815
28816         * doc/options.texi (Option file format): Fix bad indentation,
28817         restoring dropped sentence.
28818
28819 2009-02-28  Jan Hubicka  <jh@suse.cz>
28820
28821         * tree-inline.c (tree_function_versioning): Output debug info.
28822
28823 2009-02-28  Jan Hubicka  <jh@suse.cz>
28824
28825         PR debug/39267
28826         * tree-inline.c (setup_one_parameter): Do not copy propagate
28827         arguments when not optimizing.
28828
28829 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
28830
28831         PR target/39327
28832         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
28833         (avx_addsubv4df3): Likewise.
28834         (*avx_addsubv4sf3): Likewise.
28835         (sse3_addsubv4sf3): Likewise.
28836         (*avx_addsubv2df3): Likewise.
28837         (sse3_addsubv2df3): Likewise.
28838         (avx_unpckhps256): Correct item selectors.
28839         (avx_unpcklps256): Likewise.
28840         (avx_unpckhpd256): Likewise.
28841         (avx_unpcklpd256): Likewise.
28842
28843 2009-02-28  Jan Hubicka  <jh@suse.cz>
28844
28845         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
28846         static vars.
28847         (copy_arguments_for_versioning): If var is declared don't declare it.
28848         (tree_function_versioning): First setup substitutions and then copy
28849         args.
28850
28851 2009-02-27  Jan Hubicka  <jh@suse.cz>
28852
28853         PR debug/39267
28854         * cgraph.h (varpool_output_debug_info): Remove.
28855         * cgraphunit.c (varpool_output_debug_info): Remove.
28856         * dwarf2out.c (deferred_locations_struct): New struct
28857         (deferred_locations): New type.
28858         (deferred_locations_list): New static var.
28859         (deffer_location): New function.
28860         (gen_variable_die): Use it.
28861         (decls_for_scope): Output info on local static vars.
28862         (dwarf2out_finish): Process deferred locations.
28863         * varpool.c (varpool_output_debug_info): Remove.
28864
28865 2009-02-27  Jan Hubicka  <jh@suse.cz>
28866
28867         PR debug/39267
28868         * tree.h (TREE_PROTECTED): Fix comment.
28869         (BLOCK_HANDLER_BLOCK): Remove.
28870         (struct tree_block): Remove handler_block add body_block.
28871         (inlined_function_outer_scope_p): New.
28872         (is_body_block): Remove.
28873         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
28874         * dwarf2out.c (is_inlined_entry_point): Remove.
28875         (add_high_low_attributes): Use inlined_function_outer_scope_p.
28876         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
28877         code.
28878         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
28879         * gimplify.c (gimplify_expr): Gimplify body blocks.
28880         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
28881         block with multiple subblocks.
28882         (dump_scope_block): Prettier output; dump more flags and info.
28883         (dump_scope_blocks): New.
28884         (remove_unused_locals): Use dump_scope_blocks.
28885         * tree-flow.h (dump_scope_blocks): Declare.
28886         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
28887         * stmt.c (is_body_block): Remove.
28888         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
28889         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
28890
28891 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
28892
28893         PR middle-end/39308
28894         * graphite.c (graphite_loop_normal_form): Do not call
28895         number_of_iterations_exit from a gcc_assert.
28896
28897 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28898
28899         * config/s390/s390.c (s390_swap_cmp): Look for conditional
28900         jumps if COND is NULL.
28901         (find_cond_jump): New function.
28902         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
28903         * config/s390/s390.md: Remove z10_cobra attribute value.
28904
28905 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
28906
28907         * config/alpha/alpha.h (alpha_expand_mov): Return false if
28908         force_const_mem returns NULL_RTX.
28909
28910 2009-02-26  Jan Hubicka  <jh@suse.cz>
28911
28912         PR debug/39267
28913         * cgraph.h (varpool_output_debug_info): Remove.
28914         * cgraphunit.c (varpool_output_debug_info): Remove.
28915         * dwarf2out.c (deferred_locations_struct): New struct
28916         (deferred_locations): New type.
28917         (deferred_locations_list): New static var.
28918         (deffer_location): New function.
28919         (gen_variable_die): Use it.
28920         (decls_for_scope): Output info on local static vars.
28921         (dwarf2out_finish): Process deferred locations.
28922         * varpool.c (varpool_output_debug_info): Remove.
28923
28924 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
28925
28926         PR rtl-optimization/39241
28927         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
28928         to subreg_offset_representable_p.
28929
28930 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
28931
28932         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
28933         execute function prototype.  Get f and nregs from max_reg_num
28934         and get_insns.  Remove the first backward pass as it's dead,
28935         guard the forward pass by flag_expensive_optimizations.
28936         (rest_of_handle_regmove): Delete.
28937         (pass_regmove): Replace it with regmove_optimize.
28938
28939 2009-02-25  Martin Jambor  <mjambor@suse.cz>
28940
28941         PR tree-optimization/39259
28942         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
28943         calls_alloca function flags.
28944         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
28945         calls are detected.
28946
28947 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
28948
28949         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
28950         flags_set_1_rtx, flags_set_1_set): Delete.
28951         (regmove_optimize): Do not call mark_flags_life_zones.
28952
28953 2009-02-24  Julian Brown  <julian@codesourcery.com>
28954
28955         PR target/35965
28956         * config/arm/arm.c (require_pic_register): Only set
28957         cfun->machine->pic_reg once per function.
28958
28959 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
28960
28961         * doc/invoke.texi (Link Options): Document an easier way to pass
28962         options that take arguments to the GNU linker using -Xlinker and -Wl.
28963
28964 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
28965
28966         PR target/33785
28967         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
28968
28969 2009-02-24  Richard Guenther  <rguenther@suse.de>
28970
28971         PR debug/39285
28972         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
28973
28974 2009-02-24  Richard Guenther  <rguenther@suse.de>
28975             Zdenek Dvorak  <ook@ucw.cz>
28976
28977         PR tree-optimization/39233
28978         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
28979         from converting them to a generic type.
28980
28981 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
28982
28983         PR tree-optimization/39260
28984         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
28985         contains a condition with a real type.
28986         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
28987
28988 2009-02-23  Jason Merrill  <jason@redhat.com>
28989
28990         PR c++/38880
28991         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
28992         narrowing_initializer_constant_valid_p.
28993         (narrowing_initializer_constant_valid_p): Don't return
28994         null_pointer_node for adding a pointer to itself.
28995
28996 2009-02-23  Jan Hubicka  <jh@suse.cz>
28997
28998         PR c/12245
28999         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
29000         resizing.
29001
29002 2009-02-23  Jan Hubicka  <jh@suse.cz>
29003
29004         PR tree-optimization/37709
29005         * tree.c (block_ultimate_origin): Move here from dwarf2out.
29006         * tree.h (block_ultimate_origin): Declare.
29007         * dwarf2out.c (block_ultimate_origin): Move to tree.c
29008         * tree-ssa-live.c (remove_unused_scope_block_p):
29009         Eliminate blocks containig no instructions nor live variables nor
29010         nested blocks.
29011         (dump_scope_block): New function.
29012         (remove_unused_locals): Enable removal of dead blocks by default;
29013         enable dumping at TDF_DETAILS.
29014
29015 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
29016
29017         * config/i386/i386.c (classify_argument): Don't allow COImode
29018         and OImode.
29019         (function_arg_advance_32): Don't allow OImode.
29020         (function_arg_32): Likewise.
29021         (function_value_32): Likewise.
29022         (return_in_memory_32): Likewise.
29023         (function_arg_64): Remove OImode comment.
29024
29025 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
29026
29027         PR target/39261
29028         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
29029         ix86_expand_vector_set for V4DImode in 64bit mode only.
29030         (ix86_expand_vector_init_one_var): Likewise.
29031
29032 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
29033
29034         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
29035
29036 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
29037
29038         PR bootstrap/39257
29039         * loop-iv.c: Revert last change.
29040         * emit-rtl.c: Likewise.
29041
29042 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
29043
29044         PR target/39256
29045         * config/i386/i386.c (type_natural_mode): Remove an extra
29046         space in the warning message.
29047         (function_value_32): Handle 32-byte vector modes.
29048         (return_in_memory_32): Likewise.
29049
29050 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
29051
29052         * loop-iv.c (truncate_value): New function.
29053         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
29054         of lowpart_subreg.
29055         (lowpart_subreg): Move to...
29056         * emit-rtl.c: ...here.
29057
29058 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
29059
29060         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
29061         accidental and undocumented change at revision 140860.
29062
29063 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
29064
29065         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
29066         take gimple_seq * arguments.
29067         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
29068         types_compatible_p langhook.
29069
29070 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
29071             Joseph Myers  <joseph@codesourcery.com>
29072
29073         * config/arm/arm.c (arm_builtin_va_list): New function.
29074         (arm_expand_builtin_va_start): Likewise.
29075         (arm_gimplify_va_arg_expr): Likewise.
29076         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
29077         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
29078         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
29079         (va_list_type): New variable.
29080         (arm_mangle_type): Mangle va_list_type appropriately.
29081
29082 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
29083
29084         PR middle-end/39157
29085         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
29086         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
29087         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
29088         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
29089         parameter to 1000 for -O1 by default.
29090         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
29091         parameter.
29092         * loop-invariant.c: Include params.h.
29093         (move_loop_invariants): Don't call move_single_loop_invariants on
29094         very large loops.
29095
29096 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
29097
29098         * calls.c (emit_library_call_value_1): Use slot_offset instead of
29099         offset when calculating bounds for indexing stack_usage_map.  Fixes
29100         a buffer overflow with certain target setups.
29101
29102 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
29103
29104         PR target/39240
29105         * calls.c (expand_call): Clear try_tail_call if caller and callee
29106         disagree in promotion of function return value.
29107
29108 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
29109
29110         PR target/39175
29111         * c-common.c (c_determine_visibility): If visibility changed and
29112         DECL_RTL has been already set, call make_decl_rtl to update symbol
29113         flags.
29114
29115 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
29116
29117         PR c++/39188
29118         * varasm.c (assemble_variable): Don't check DECL_NAME when
29119         globalizing a variable.
29120
29121 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
29122
29123         PR c/38483
29124         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
29125         expression before any __builtin_trap call.
29126         * c-typeck.c (build_function_call): Convert and check function
29127         arguments before generating a call to a trap.  Evaluate the
29128         function arguments before the trap.
29129
29130 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
29131
29132         PR target/39228
29133         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
29134         (UNSPEC_FXAM_MEM): New unspec.
29135         (fxam<mode>2_i387_with_temp): New insn and split pattern.
29136         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
29137         memory using fxam<mode>2_i387_with_temp to remove excess precision.
29138
29139 2009-02-19  Richard Guenther  <rguenther@suse.de>
29140
29141         PR tree-optimization/39207
29142         PR tree-optimization/39074
29143         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
29144         storedanything_tree): New.
29145         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
29146         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
29147         (build_succ_graph): Add edges from STOREDANYTHING to all
29148         non-direct nodes.
29149         (init_base_vars): Initialize STOREDANYTHING.
29150         (compute_points_to_sets): Free substitution info after
29151         building the succ graph.
29152         (ipa_pta_execute): Likewise.
29153
29154         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
29155         field.
29156         (do_ds_constraint): Do not add to special var or non-pointer
29157         field solutions.
29158         (type_could_have_pointers): Split out from ...
29159         (could_have_pointers): ... here.  For arrays use the element type.
29160         (create_variable_info_for): Initialize may_have_pointers.
29161         (new_var_info): Likewise.
29162         (handle_lhs_call): Make the HEAP variable unknown-sized.
29163         (intra_create_variable_infos): Use a type with pointers for
29164         PARM_NOALIAS, make it unknown-sized.
29165
29166 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
29167
29168         PR target/39224
29169         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
29170
29171 2009-02-18  Jason Merrill  <jason@redhat.com>
29172
29173         PR target/39179
29174         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
29175         value if DECL_EXTERNAL.
29176         * tree-sra.c (sra_walk_gimple_assign): Likewise.
29177         * target.h (gcc_target::binds_local_p): Clarify "module".
29178         * tree.h (TREE_PUBLIC): Clarify "module".
29179
29180 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
29181
29182         PR target/38891
29183         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
29184         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
29185
29186 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
29187
29188         PR target/39082
29189         * c.opt (Wabi): Support C and ObjC.
29190         (Wpsabi): New.
29191
29192         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
29193
29194         * config/i386/i386.c (classify_argument): Warn once about the ABI
29195         change when passing union with long double.
29196
29197         * doc/invoke.texi: Update -Wabi for warning psABI changes.
29198
29199 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
29200
29201         PR c/35447
29202         * c-parser.c (c_parser_compound_statement): Always enter and leave
29203         a scope.
29204
29205 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29206
29207         PR target/34587
29208         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
29209
29210 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
29211
29212         PR tree-optimization/36922
29213         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
29214         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
29215         Likewise.
29216
29217 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
29218
29219         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
29220         to 0 for EABI64.
29221
29222 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
29223
29224         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
29225
29226 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
29227
29228         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
29229         tree sharing.
29230
29231 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
29232             Richard Sandiford  <rdsandiford@googlemail.com>
29233
29234         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
29235         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
29236         (loongson_biadd): ...this.
29237
29238 2009-02-17  Richard Guenther  <rguenther@suse.de>
29239
29240         PR tree-optimization/39202
29241         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
29242         a var make sure to follow existing collapses.
29243
29244 2009-02-17  Richard Guenther  <rguenther@suse.de>
29245
29246         PR middle-end/39214
29247         * langhooks.c (lhd_print_error_function): Check for NULL block.
29248
29249 2009-02-17  Richard Guenther  <rguenther@suse.de>
29250
29251         PR tree-optimization/39204
29252         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
29253         of the PHI arg.
29254
29255 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
29256
29257         * config/soft-fp/double.h: Update from glibc CVS.
29258
29259 2009-02-17  Richard Guenther  <rguenther@suse.de>
29260
29261         PR tree-optimization/39207
29262         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
29263         strict-aliasing warnings for pointers pointing to NULL.
29264
29265 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
29266
29267         PR c/35446
29268         * c-parser.c (c_parser_braced_init): Call pop_init_level when
29269         skipping until next close brace.
29270
29271 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
29272
29273         PR target/37049
29274         * config/i386/i386.c (ix86_expand_push): Set memory alignment
29275         to function argument boundary.
29276
29277 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
29278
29279         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
29280         in the lea_add. Reload eventually constraints it properly.
29281         * config/picochip/constraints.md: Remove the target constraint
29282         "b", since it is not needed anymore.
29283
29284 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
29285
29286         * gthr-dce.h: Uglify function parameter and local variable names.
29287         * gthr-gnat.h: Likewise.
29288         * gthr-mipssde.h: Likewise.
29289         * gthr-nks.h: Likewise.
29290         * gthr-posix95.h: Likewise.
29291         * gthr-posix.h: Likewise.
29292         * gthr-rtems.h: Likewise.
29293         * gthr-single.h: Likewise.
29294         * gthr-solaris.h: Likewise.
29295         * gthr-tpf.h: Likewise.
29296         * gthr-vxworks.h: Likewise.
29297         * gthr-win32.h: Likewise.
29298
29299 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
29300
29301         PR target/39196
29302         * config/i386/i386.md: Restrict the new peephole2 to move
29303         between MMX/SSE registers.
29304
29305 2009-02-15  Richard Guenther  <rguenther@suse.de>
29306
29307         Revert
29308         2009-02-13  Richard Guenther  <rguenther@suse.de>
29309
29310         * configure.ac: Enable LFS.
29311         * configure: Re-generate.
29312         * config.in: Likewise.
29313
29314 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29315
29316         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
29317         spu_srqwbyte, spu_srqwbytebc): Define.
29318         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
29319         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
29320         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
29321         "shrqby_<mode>"): New insn-and-split patterns.
29322         * config/spu/spu.c (expand_builtin_args): Determine and return
29323         number of operands using spu_builtin_description data.
29324         (spu_expand_builtin_1): Use it.
29325
29326 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
29327
29328         PR target/38056
29329         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
29330         TARGET_CONST_GP.
29331
29332 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
29333
29334         PR target/39149
29335         * config/i386/i386.c (override_options): Correct warning
29336         messages for -malign-loops, -malign-jumps and -malign-functions.
29337
29338 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
29339
29340         PR target/39152
29341         * config/i386/i386.md: Restrict the new peephole2 to move
29342         between the general purpose registers.
29343
29344 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
29345
29346         PR target/39162
29347         * config/i386/i386.c (type_natural_mode): Add a new argument.
29348         Return the original mode and warn ABI change if vector size is 32byte.
29349         (function_arg_advance): Updated.
29350         (function_arg): Likewise.
29351         (ix86_function_value): Likewise.
29352         (ix86_return_in_memory): Likewise.
29353         (ix86_sol10_return_in_memory): Likewise.
29354         (ix86_gimplify_va_arg): Likewise.
29355         (function_arg_32): Don't warn ABX ABI change here.
29356         (function_arg_64): Likewise.
29357
29358 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
29359
29360         * loop-iv.c (implies_p): In the final case, test that operands 0
29361         of the two comparisons match.
29362
29363         * config/bfin/bfin.c (find_prev_insn_start): New function.
29364         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
29365         (find_next_insn_start): Move.
29366
29367 2009-02-13  Richard Guenther  <rguenther@suse.de>
29368
29369         * configure.ac: Enable LFS.
29370         * configure: Re-generate.
29371         * config.in: Likewise.
29372
29373 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
29374
29375         PR c/35444
29376         * c-parser.c (c_parser_parms_list_declarator): Discard pending
29377         sizes on syntax error after some arguments have been parsed.
29378
29379 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
29380
29381         * doc/invoke.texi (-fira): Remove.
29382
29383 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
29384
29385         * caller-save.c: Replace regclass.c with reginfo.c in comments.
29386         * recog.c: Likewise.
29387         * rtl.h: Likewise.
29388
29389 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
29390
29391         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
29392         (umul_ppmm): Likewise.
29393         (count_leading_zeros): Likewise.
29394         (count_trailing_zeros): Likewise.
29395         (UMUL_TIME): Likewise.
29396
29397 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
29398
29399         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
29400         soft-fp/t-softfp to tmake_file.
29401
29402         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
29403         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
29404         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
29405         IA64_BUILTIN_INFQ]: New.
29406         (ia64_init_builtins): Initialize __builtin_infq,
29407         __builtin_fabsq and __builtin_copysignq if not HPUX.
29408         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
29409         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
29410
29411         * config/ia64/lib1funcs.asm (__divtf3): Define only if
29412         SHARED is defined.
29413         (__fixtfti): Likewise.
29414         (__fixunstfti): Likewise.
29415         (__floattitf): Likewise.
29416
29417         * config/ia64/libgcc-glibc.ver: New.
29418         * config/ia64/t-fprules-softfp: Likewise.
29419         * config/ia64/sfp-machine.h: Likewise.
29420
29421         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
29422         (LIBGCC2_TF_CEXT): Likewise.
29423         (TF_SIZE): Likewise.
29424         (TARGET_INIT_LIBFUNCS): Likewise.
29425
29426         * config/ia64/t-glibc (SHLINB_MAPFILES):
29427         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
29428
29429 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
29430
29431         * config/i386/i386.c (construct_container): Rewrite processing
29432         BLKmode with X86_64_SSE_CLASS.
29433
29434 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
29435
29436         PR target/39152
29437         * config/i386/i386.md: Replace simplify_replace_rtx with
29438         replace_rtx in the new peephole2.
29439
29440 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
29441
29442         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
29443         loop unrolling do not happen at -O2.
29444
29445 2009-02-12  Michael Matz  <matz@suse.de>
29446
29447         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
29448
29449 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
29450
29451         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
29452         for -g3.
29453
29454 2009-02-12  Ben Elliston  <bje@au.ibm.com>
29455
29456         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
29457         patterns when updating the back chain.  Missed in the 2009-02-10
29458         change.
29459
29460 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
29461
29462         * doc/extend.texi (Decimal Floating Types): Update identifier of
29463         draft TR and list of missing support.
29464
29465 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
29466
29467         PR middle-end/39154
29468         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
29469         bit to variable length decl's flags, add it also to its
29470         pointer replacement variable.
29471
29472 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
29473             Jakub Jelinek  <jakub@redhat.com>
29474
29475         PR target/39118
29476         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
29477         (memory_blockage): New expander.
29478         (*memory_blockage): New insn pattern.
29479         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
29480         instead of general blockage at the end of function prologue when
29481         frame pointer is used to access red zone area.  Do not emit blockage
29482         when profiling, it is emitted in generic code.
29483         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
29484         function epilogue when frame pointer is used to access red zone area.
29485
29486 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
29487
29488         PR target/38824
29489         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
29490         by arithmetic with memory operands.
29491         * config/i386/predicates.md (commutative_operator): New.
29492
29493 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
29494
29495         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
29496         bulleted lists.
29497
29498 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
29499
29500         * alias.h (record_alias_subset): Declare.
29501         * alias.c (record_alias_subset): Make global.
29502
29503 2009-02-10  Nick Clifton  <nickc@redhat.com>
29504
29505         * tree-parloops.c: Change license to GPLv3.
29506         * ipa-struct-reorg.c: Change license to GPLv3.
29507         * ipa-struct-reorg.h: Change license to GPLv3.
29508
29509 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
29510
29511         PR c/39084
29512         * c-decl.c (start_struct): Return NULL on error.
29513
29514 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
29515
29516         PR middle-end/39124
29517         * cfgloopmanip.c (remove_path): Call remove_bbs after
29518         cancel_loop_tree, not before it.
29519
29520         PR target/39139
29521         * function.h (struct function): Add has_local_explicit_reg_vars bit.
29522         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
29523         VAR_DECLs were seen.
29524         * tree-ssa-live.c (remove_unused_locals): Recompute
29525         cfun->has_local_explicit_reg_vars.
29526         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
29527         copies or clearings if cfun->has_local_explicit_reg_vars.
29528
29529 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
29530
29531         PR target/39118
29532         * config/i386/i386.c (expand_prologue): Emit blockage at the end
29533         of function prologue when frame pointer is used to access
29534         red zone area.
29535
29536 2009-02-10  Richard Guenther  <rguenther@suse.de>
29537
29538         PR middle-end/39127
29539         * gimplify.c (gimple_regimplify_operands): Always look if
29540         we need to create a temporary.
29541
29542 2009-02-10  Richard Guenther  <rguenther@suse.de>
29543
29544         PR tree-optimization/39132
29545         * tree-loop-distribution.c (todo): New global var.
29546         (generate_memset_zero): Trigger TODO_rebuild_alias.
29547         (tree_loop_distribution): Return todo.
29548
29549 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
29550
29551         PR target/39119
29552         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
29553         (x86_64_reg_class_name): Removed.
29554         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
29555         first one isn't X86_64_SSE_CLASS or any other ones aren't
29556         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
29557         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
29558         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
29559         and 3 X86_64_SSEUP_CLASS.
29560         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
29561         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
29562
29563 2009-02-10  Ben Elliston  <bje@au.ibm.com>
29564
29565         * config/rs6000/rs6000.md (allocate_stack): Always use an update
29566         form instruction to update the stack back chain word, even if the
29567         user has disabled the generation of update instructions.
29568         (movdi_<mode>_update_stack): New.
29569         (movsi_update_stack): Likewise.
29570         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
29571         always use an update form instruction to update the stack back
29572         chain word.
29573
29574 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
29575
29576         PR middle-end/38953
29577         * graphite.c (if_region_set_false_region): After moving a region in
29578         the false branch of a condition, remove the empty dummy basic block.
29579         (gloog): Remove wrong fix for PR38953.
29580
29581 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29582
29583         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
29584         generation due to implicit sign extension.
29585
29586 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
29587
29588         PR middle-end/38981
29589         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
29590         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
29591
29592 2009-02-09  Richard Guenther  <rguenther@suse.de>
29593
29594         PR middle-end/35202
29595         * convert.c (convert_to_real): Disable (float)fn((double)x)
29596         to fnf(x) conversion if errno differences may occur and
29597         -fmath-errno is set.
29598
29599 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
29600
29601         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
29602         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
29603         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
29604
29605 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
29606
29607         PR c/35434
29608         * c-common.c (handle_alias_attribute): Disallow attribute for
29609         anything not a FUNCTION_DECL or VAR_DECL.
29610
29611 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
29612
29613         PR c/39035
29614         * real.c (do_compare): Special-case compare of zero against
29615         decimal float value.
29616
29617 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
29618
29619         PR c/36432
29620         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
29621         as indicating flexible array members unless the field itself is
29622         being declarared as the incomplete array.
29623
29624 2009-02-06  Jan Hubicka  <jh@suse.cz>
29625
29626         PR tree-optimization/38844
29627         * ipa-inline.c (try_inline): Stop inlining recursion when edge
29628         is already inlined.
29629
29630 2009-02-06  Richard Guenther  <rguenther@suse.de>
29631
29632         PR middle-end/38977
29633         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
29634         fork because we may expand it as __gcov_fork.
29635
29636 2009-02-06  Nick Clifton  <nickc@redhat.com>
29637
29638         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
29639
29640 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
29641
29642         PR tree-optimization/35659
29643         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
29644         vn_phi_eq): Shortcut if hashcode does not match.
29645         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
29646         NULL operands.
29647         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
29648         and avoid iterative_hash_expr.
29649         (FOR_EACH_VALUE_ID_IN_SET): New.
29650         (value_id_compare): Remove.
29651         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
29652         sort expressions by value id.
29653
29654 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
29655
29656         PR target/38991
29657         * config/sh/predicates.md (general_movsrc_operand): Don't check
29658         the subreg of system registers here.
29659
29660 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
29661
29662         PR c++/39106
29663         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
29664         on the copied decl.
29665
29666 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
29667
29668         PR rtl-optimization/39110
29669         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
29670         addresses, not aligned ones.
29671
29672 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
29673             Richard Guenther  <rguenther@suse.de>
29674
29675         PR tree-optimization/39100
29676         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
29677         comment says and add edges.
29678
29679 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
29680
29681         PR c/35435
29682         * c-common.c (handle_tls_model_attribute): Ignore attribute for
29683         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
29684
29685 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
29686
29687         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
29688         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
29689         register_bb_in_sese, new_sese, free_sese): Moved.
29690         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
29691         outermost_loop_in_scop, build_scop_iteration_domain,
29692         expand_scalar_variables_ssa_name, get_vdef_before_scop,
29693         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
29694         Use loop_in_sese_p instead of loop_in_scop_p.
29695         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
29696         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
29697         (scopdet_basic_block_info): Fix bug in scop detection.
29698         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
29699         eq_loop_to_cloog_loop): Remove.
29700         (nb_loops_around_loop_in_scop, nb_loop
29701         ref_nb_loops): Moved here...
29702         * graphite.h (ref_nb_loops): ... from here.
29703         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
29704         (loop_domain_dim, loop_iteration_vector_dim): Remove.
29705         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
29706
29707 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
29708             Hans-Peter Nilsson  <hp@axis.com>
29709
29710         PR rtl-optimization/37889
29711         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
29712         Move offset handling from PLUS to before the switch.  Use new
29713         arguments when considering SYMBOL_REFs too.
29714         (rtx_addr_can_trap_p): Pass dummy offset and size.
29715         (enum may_trap_p_flags): Remove.
29716         (may_trap_p_1): Pass size from MEM_SIZE.
29717
29718         PR rtl-optimization/38921
29719         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
29720         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
29721         * rtlanal.c (may_trap_after_code_motion_p): Delete.
29722         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
29723
29724 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
29725
29726         AVX Programming Reference (January, 2009)
29727         * config/i386/sse.md (*vpclmulqdq): New.
29728
29729 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
29730
29731         PR tree-optimization/38977
29732         PR gcov-profile/38292
29733         * calls.c (special_function_p): Disregard __builtin_ prefix.
29734
29735 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
29736
29737         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
29738         non-indexable addresses even before reload.
29739
29740 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
29741
29742         PR c/29129
29743         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
29744         as having variable size.  Do not give an error for unnamed
29745         parameters with [*] declarators.  Give a warning for type names
29746         with [*] declarators and mark them as variable size.
29747         * c-parser.c (c_parser_sizeof_expression): Do not give an error
29748         for sizeof applied to [*] type names.
29749
29750 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
29751
29752         PR C++/36607
29753         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
29754
29755 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
29756
29757         * gcc.c (process_command): Update copyright notice dates.
29758         * gcov.c (print_version): Likewise.
29759         * gcov-dump.c (print_version): Likewise.
29760         * mips-tfile.c (main): Likewise.
29761         * mips-tdump.c (main): Likewise.
29762
29763 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
29764
29765         PR c/35433
29766         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
29767         for composite type involving a zero-length array type.
29768
29769 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
29770
29771         PR target/35318
29772         * function.c (match_asm_constraints_1): Skip over
29773         initial optional % in the constraint.
29774
29775         PR inline-asm/39059
29776         * c-parser.c (c_parser_postfix_expression): If fixed point is not
29777         supported, don't accept FIXED_CSTs.
29778         * c-decl.c (finish_declspecs): Error if fixed point is not supported
29779         and _Sat is used without _Fract/_Accum.  Set specs->type to
29780         integer_type_node for cts_fract/cts_accum if fixed point is not
29781         supported.
29782
29783 2009-02-02  Catherine Moore  <clm@codesourcery.com>
29784
29785         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
29786
29787 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
29788
29789         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
29790         (ABI_HAS_64BIT_SYMBOLS): Use it.
29791         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
29792
29793 2009-02-02  Paul Brook  <paul@codesourcery.com>
29794
29795         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
29796
29797 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
29798
29799         PR inline-asm/39058
29800         * recog.h (asm_operand_ok): Add constraints argument.
29801         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
29802         recurse on matching constraint.
29803         (check_asm_operands): Pass constraints as 3rd argument to
29804         asm_operand_ok.  Don't look up matching constraint here.
29805         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
29806         to asm_operand_ok.
29807
29808 2009-02-02  Ben Elliston  <bje@au.ibm.com>
29809
29810         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
29811         TARGET_NARROW_VOLATILE_BITFIELD macro names.
29812
29813 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29814
29815         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
29816         information.  Remove some obsolete information.  Reorganize.
29817
29818         * config/pa/fptr.c: Revert license to GPL 2.
29819         * config/pa/milli64.S: Likewise.
29820
29821 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
29822
29823         PR target/38904
29824         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
29825         LIBRARY name in, instead of hard-coding it.
29826         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
29827         extra target make frag to tmake_files according to EH model.
29828         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
29829         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
29830         frags that define makefile variable EH_MODEL appropriately.
29831         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
29832         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
29833         to "-sjlj" according to type of EH configured.
29834         (LIBGCC_SONAME):  Concatenate it to shared library base name.
29835         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
29836         to "_sjlj" according to type of EH configured.
29837         (LIBGCC_SONAME):  Concatenate it to shared library base name.
29838         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
29839         (SHLIB_LINK):  Add missing semicolon to if-else construct.
29840         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
29841         string value of "pe_dll" command-line option.
29842         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
29843         (SHLIB_SONAME):  Use it when overriding t-cygming default.
29844         (SHLIB_IMPLIB):  Override t-cygming default.
29845         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
29846         string value of "pe_dll" command-line option.
29847
29848 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
29849
29850         PR target/38952
29851         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
29852         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
29853
29854 2009-01-31  Richard Guenther  <rguenther@suse.de>
29855
29856         PR tree-optimization/38937
29857         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
29858         computing the transitive closure.
29859
29860 2009-01-30  Richard Guenther  <rguenther@suse.de>
29861
29862         PR tree-optimization/39041
29863         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
29864         Propagate variable indices only if the types match for this stmt.
29865
29866 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
29867
29868         PR target/39013
29869         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
29870         inline but never defined.
29871
29872 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
29873
29874         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
29875         (*insv_h_di_reg_extimm): New insn.
29876         (*insv_l<mode>_reg_extimm): New insn.
29877
29878 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
29879
29880         * config/picochip/picochip.c (flag_conserve_stack): set
29881         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
29882         fconserve-stack. Reduce call-overhead used by inliner.
29883
29884 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
29885
29886         PR/38157
29887         * common.opt (flag_conserve_stack): Initialised to zero.
29888
29889 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
29890
29891         PR/39002
29892         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
29893         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
29894         method.
29895
29896 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
29897
29898         * ira-color.c (allocno_reload_assign): Update comments.
29899         * regmove.c (regmove_optimize): Likewise.
29900
29901         * ra.h: Removed.
29902
29903 2009-01-29  Robert Millan  <rmh@aybabtu.com>
29904
29905         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
29906         * config/i386/kopensolaris-gnu.h: New file.  Undefine
29907         `MD_UNWIND_SUPPORT'.
29908         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
29909
29910 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
29911
29912         PR tree-optimization/39007
29913         * tree-loop-distribution.c (generate_builtin): Use
29914         recompute_dominator to compute the immediate dominator of the
29915         basic block just after the loop.
29916
29917 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29918
29919         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
29920         (ASM_OUTPUT_DWARF_PCREL): Define.
29921
29922 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
29923
29924         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
29925         * doc/passes.texi: Remove entries about regclass, local-alloc, and
29926         global.  Modify entries about regmove and IRA.
29927
29928         * ra-conflict.c: Remove the file.
29929
29930         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
29931
29932         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
29933         (pass_regclass_init): Rename to pass_reginfo_init.
29934
29935         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
29936
29937         * toplev.h (flag_ira): Remove.
29938
29939         * caller-save.c (setup_save_areas): Remove flag_ira.
29940
29941         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
29942
29943         * global.c: Remove the file.
29944
29945         * opts.c (decode_options): Remove flag_ira.
29946
29947         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
29948
29949         * regmove.c: Modify file description.
29950         (find_use_as_address, try_auto_increment): Define them only if
29951         AUTO_INC_DEC is defined.
29952         (replacement_quality, replace_in_call_usage, fixup_match_1,
29953         stable_and_no_regs_but_for_p): Remove.
29954         (reg_set_in_bb): Make it static.
29955         (regmove_optimize): Remove flag_ira and code which worked for
29956         !flag_ira.
29957
29958         * local-alloc.c: Remove the file.
29959
29960         * common.opt (fira): Remove.
29961
29962         * ira.c: Include except.h.
29963         (eliminable_regset): Move from global.c.
29964         (mark_elimination): Ditto.  Remove flag_ira.
29965         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
29966         equiv_mem_modified, validate_equiv_mem_from_store,
29967         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
29968         contains_replace_regs, memref_referenced_p, memref_used_between_p,
29969         no_equiv, recorded_label_ref): Move from local-alloc.c.
29970         (update_equiv_regs): Ditto.  Make it static.
29971         (print_insn_chain, print_insn_chains): Move it from global.c.
29972         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
29973         (build_insn_chain): Ditto.  Make it static.
29974         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
29975         Rename to init_live_subregs.
29976         (gate_ira): Remove flag_ira.
29977
29978         * regclass.c: Rename reginfo.c.  Change file description.
29979         (FORBIDDEN_INC_DEC_CLASSES): Remove.
29980         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
29981         (init_reg_sets_1): Remove code for evaluation of
29982         reg_class_superclasses and losing_caller_save_reg_set.
29983         (init_regs): Remove init_reg_autoinc.
29984         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
29985         ok_for_base_p_nonstrict): Remove.
29986         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
29987         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
29988         corresponding entries.
29989         (dump_regclass, record_operand_costs, scan_one_insn,
29990         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
29991         record_address_regs, auto_inc_dec_reg_p): Remove.
29992         (gt-regclass.h): Rename to gt-reginfo.h.
29993
29994         * rtl.h (dump_global_regs, retry_global_alloc,
29995         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
29996
29997         * Makefile.in (RA_H): Remove.
29998         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
29999         Rename regclass.o to reginfo.o.
30000         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
30001         gt-reginfo.h.
30002         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
30003         (GTFILES): Rename regclass.c to reginfo.c.
30004
30005         * passes.c (init_optimization_passes): Remove pass_local_alloc and
30006         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
30007
30008         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
30009         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
30010         Remove flag_ira.
30011         (finish_spills): Ditto.  Remove code for !flag_ira.
30012
30013 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
30014
30015         PR middle-end/35854
30016         * doc/invoke.texi (rtl debug options): Complete rewrite.
30017         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
30018         to auto_inc_dec".
30019         * mode-switching.c (pass_mode_switching): Rename pass from
30020         "mode-sw" to "mode_sw".
30021         * except.c (pass_convert_to_eh_ranges): Rename pass from
30022         "eh-ranges" to "eh_ranges".
30023         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
30024         to "subreg1".
30025
30026
30027 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
30028             Alexander Monakov  <amonakov@ispras.ru>
30029
30030         PR middle-end/38857
30031         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
30032         register.
30033         (move_exprs_to_boundary): Change return type and pass through
30034         should_move from move_op.  Relax assert.  Update usage ...
30035         (schedule_expr_on_boundary): ... here.  Use should_move instead of
30036         cant_move.
30037         (move_op_orig_expr_found): Indicate that insn was disconnected from
30038         stream.
30039         (code_motion_process_successors): Do not call after_merge_succs
30040         callback if original expression was not found when traversing any of
30041         the branches.
30042         (code_motion_path_driver): Change return type.  Update prototype.
30043         (move_op): Update comment.  Add a new parameter (should_move).  Update
30044         prototype.  Set *should_move based on indication provided by
30045         move_op_orig_expr_found.
30046
30047 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
30048
30049         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
30050         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
30051         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
30052         * config/rs6000/rs6000.c (rs6000_override_options): Default
30053         avoid-indexed-addresses on for Power6, off for everything else.
30054         (avoiding_indexed_address_p): New function.
30055         (rs6000_legitimize_address): Use it.
30056         (rs6000_legitimate_address): Likewise.
30057         * config/rs6000/rs6000.md (movXX_updateX): Likewise
30058
30059 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
30060
30061         PR tree-optimization/38997
30062         * tree-loop-distribution.c (generate_memset_zero): Use
30063         POINTER_PLUS_EXPR for a pointer addition.
30064
30065 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
30066
30067         * config/s390/s390.md (bswap<mode>2): New pattern added.
30068
30069 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
30070
30071         * config/s390/s390.md (*tls_load_31): Added type attribute.
30072
30073 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
30074
30075         * config/s390/s390.md: Fix a few comments.
30076
30077 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
30078
30079         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
30080         (*tm<mode>_full): Fixed z10prop attribute.
30081         (*tst<mode>_extimm): Fixed z10prop attribute.
30082         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
30083         (*tstqiCCT_cconly): Fixed z10prop attribute.
30084         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
30085         (*movsi_larl): Fixed z10prop attribute.
30086         (*movsi_zarch): Fixed z10prop attribute.
30087         (*movsi_eas): Fixed z10prop attribute.
30088         (*movhi): Fixed z10prop attribute.
30089         (*movqi): Fixed z10prop attribute.
30090         (*movstrictqi): Fixed z10prop attribute.
30091         (*mov<mode>): Fixed z10prop attribute.
30092         (*movcc): Fixed z10prop attribute.
30093         (*sethighpartdi_64): Fixed z10prop attribute.
30094         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
30095         (*negdi2_sign_cc): Fixed z10prop attribute.
30096         (*negdi2_sign): Fixed z10prop attribute.
30097         (*absdi2_sign_cc): Fixed z10prop attribute.
30098         (*absdi2_sign): Fixed z10prop attribute.
30099         (*negabsdi2_sign_cc): Fixed z10prop attribute.
30100         (*negabsdi2_sign): Fixed z10prop attribute.
30101         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
30102         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
30103         (doloop_si64): Fixed z10prop attribute.
30104         (doloop_si31): Fixed z10prop attribute.
30105         (doloop_long): Fixed z10prop attribute.
30106         (indirect_jump): Fixed z10prop attribute.
30107         (nop): Fixed z10prop attribute.
30108         (main_base_64): Fixed z10prop attribute.
30109         (reload_base_64): Fixed z10prop attribute.
30110
30111 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
30112
30113         PR rtl-optimization/38740
30114         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
30115         if !optimize.
30116         * config/mips/mips.c (mips_reorg): Likewise.
30117
30118 2009-01-28  Richard Guenther  <rguenther@suse.de>
30119
30120         PR tree-optimization/38926
30121         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
30122         with the correct value id to a value.
30123         (do_regular_insertion): Use the value number of edoubleprime
30124         for the value number of the expr.
30125
30126         Revert
30127         2008-08-21  Richard Guenther  <rguenther@suse.de>
30128
30129         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
30130         a PHI ask VN if it is already available.
30131         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
30132         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
30133
30134 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
30135
30136         PR middle-end/38934
30137         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
30138         set to varying whenever max has TREE_OVERFLOW set, similarly
30139         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
30140
30141 2009-01-28  Richard Guenther  <rguenther@suse.de>
30142
30143         PR middle-end/38908
30144         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
30145         uninitialized aggregate uses in call arguments.
30146
30147 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
30148
30149         PR tree-optimization/38984
30150         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
30151         the nothing_id variable if -fno-delete-null-pointer-checks.
30152
30153 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
30154
30155         PR target/38988
30156         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
30157         (set_got_offset_rex64): Ditto.
30158
30159 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
30160
30161         PR target/38941
30162         * doc/extend.texi: Improve local variable with asm reg.
30163
30164 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
30165
30166         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
30167         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
30168         was not supplied then set warn_packed_bitfield_compat to the
30169         default value of 1.
30170         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
30171         against 1.
30172
30173 2009-01-27  Richard Guenther  <rguenther@suse.de>
30174
30175         PR tree-optimization/38503
30176         * cfgexpand.c (expand_gimple_basic_block): Ignore
30177         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
30178         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
30179         variables that cannot have TBAA applied.
30180         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
30181         statements.
30182
30183 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
30184
30185         PR middle-end/38969
30186         * calls.c (initialize_argument_information): Do not wrap complex
30187         arguments in SAVE_EXPR.
30188
30189 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
30190
30191         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
30192         (INSTALL_LIBGCC): Revert typo commit.
30193
30194 2009-01-26  Richard Guenther  <rguenther@suse.de>
30195
30196         PR tree-optimization/38745
30197         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
30198         from special handling.
30199
30200 2009-01-26  Richard Guenther  <rguenther@suse.de>
30201
30202         PR tree-optimization/38745
30203         * tree-ssa.c (execute_update_addresses_taken): Do not include
30204         variables that cannot possibly be a register in not_reg_needs.
30205         Do not clear TREE_ADDRESSABLE on vars that may not become
30206         registers.
30207         * tree-ssa.c (update_alias_info_1): Include those in the set
30208         of addressable vars.
30209
30210 2009-01-26  Richard Guenther  <rguenther@suse.de>
30211
30212         PR middle-end/38851
30213         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
30214         * tree-ssa-dse.c: Include langhooks.h
30215         (execute_simple_dse): Remove stores with zero size.
30216
30217 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
30218
30219         PR c/38957
30220         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
30221         as PLUS_EXPR.
30222
30223 2009-01-24  Julian Brown  <julian@codesourcery.com>
30224
30225         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
30226         config/arm/linux-atomic.c.
30227         * config/arm/linux-atomic.c: New.
30228
30229 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
30230
30231         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
30232         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
30233         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
30234
30235 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
30236
30237         PR c/38938
30238         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
30239         properly.
30240
30241 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
30242
30243         PR tree-optimization/38953
30244         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
30245         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
30246         (gloog): Split the exit of the scop when the scop exit is a loop exit.
30247         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
30248         changed the CFG.
30249
30250 2009-01-24  Paul Brook  <paul@codesourcery.com>
30251
30252         * config/arm/neon.md (neon_type): Move to arm.md.
30253         (neon_mov<VSTRUCT>): Add neon_type attribute.
30254         * config/arm/arm.md (neon_type): Move to here.
30255         (conds): Add "unconditioal" and use as default for NEON insns.
30256
30257 2009-01-24  Ben Elliston  <bje@au.ibm.com>
30258
30259         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
30260         void *' warning from -Wc++-compat.
30261         * Makefile.in (dominance.o-warn): Remove.
30262
30263 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
30264
30265         PR tree-optimization/38932
30266         * fold-const.c (fold_unary_ignore_overflow): New.
30267         * tree.h (fold_unary_ignore_overflow): Declare.
30268         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
30269         * tree-ssa-sccvn.c (visit_reference_op_load,
30270         simplify_unary_expression): Likewise.
30271
30272 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
30273
30274         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
30275         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
30276         regardless of their type.
30277         * c-common.c (handle_packed_attribute): Don't ignore packed on
30278         bitfields.
30279         * c.opt (Wpacked-bitfield-compat): New warning option.
30280         * stor-layout.c (place_field): Warn if offset of a field changed.
30281         * doc/extend.texi (packed): Mention the ABI change.
30282         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
30283         (Warning Options): Add it to the list.
30284
30285 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
30286
30287         * c-opts.c (c_common_post_options): Fix a typo in comments.
30288
30289 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
30290
30291         PR middle-end/38615
30292         * gimplify.c (gimplify_init_constructor): Fix promotion of const
30293         variables to static.
30294         * doc/invoke.texi (-fmerge-all-constants): Update description.
30295
30296 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
30297
30298         PR target/38931
30299         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
30300         (*movdi_1_rex64): Use type "mmx" for alternative 5.
30301
30302 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
30303
30304         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
30305         a word boundary.
30306         (LOCAL_ALIGNMENT): Similarly.
30307
30308 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
30309             Joseph Myers  <joseph@codesourcery.com>
30310
30311         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
30312         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
30313         * config/arm/arm-tune.md: Regenerate.
30314         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
30315         -march=iwmmxt2.
30316
30317 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
30318
30319         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
30320         version number to five.
30321
30322 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
30323
30324         PR c++/38930
30325         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
30326         * c-common.c (set_underlying_type): Likewise.
30327         (is_typedef_decl ): Likewise
30328         * tree.h: Likewise
30329         (set_underlying_type): Likewise.
30330         (is_typedef_type): Likewise.
30331
30332 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
30333
30334         PR middle-end/38587
30335         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
30336         crossing setjmps.
30337
30338 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
30339
30340         PR bootstrap/37660
30341         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
30342         (LIBGCC_SPEC):  Don't define.
30343         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
30344
30345 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
30346
30347         PR rtl-optimization/38879
30348         * alias.c (base_alias_check): Unaligned access via AND address can
30349         alias all surrounding object types except those with sizes equal
30350         or wider than the size of unaligned access.
30351
30352 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
30353
30354         PR c++/26693
30355         * c-decl.c (clone_underlying_type): Move this ...
30356         * c-common.c (set_underlying_type): ... here.
30357         Also, make sure the function properly sets TYPE_STUB_DECL() on
30358         the newly created typedef variant type.
30359         (is_typedef_decl ): New entry point.
30360         * tree.h: Added a new member member_types_needing_access_check to
30361         struct tree_decl_non_common.
30362         (set_underlying_type): New entry point.
30363         (is_typedef_type): Likewise.
30364
30365 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
30366
30367         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
30368         Check whether two instructions have memory references that
30369         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
30370         are helper functions for traversing.
30371         * alias.h (insn_alias_sets_confilict_p): New prototypes.
30372         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
30373         not to draw dependency edge for instructions with non-conflicting
30374         alias sets.
30375
30376 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
30377
30378         PR other/38758
30379         * longlong.h: Update copyright years.  Use soft-fp license notice.
30380         Sync __clz_tab declaration with glibc.
30381
30382 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
30383
30384         PR target/30687
30385         * doc/extend.texi (syscall_linkage): New.
30386         (version_id): Modify.
30387
30388 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
30389             Richard Guenther  <rguenther@suse.de>
30390
30391         PR tree-optimization/38747
30392         PR tree-optimization/38748
30393         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
30394         conversion if the base address is an indirect reference and the
30395         aliasing sets could cause issues.
30396
30397 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
30398
30399         * common.opt (fgraphite, fgraphite-identity): Add comment for
30400         explaining why these options are not documented.
30401
30402 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
30403
30404         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
30405         gimple_call_lhs is NULL.
30406
30407 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30408
30409         PR target/38868
30410         * emit-rtl.c (adjust_address_1): Make sure memref is never
30411         overwritten.
30412
30413 2009-01-20  Ben Elliston  <bje@au.ibm.com>
30414
30415         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
30416         const qualifier from arg parameter. Remove unnecessary cast to char *.
30417         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
30418         const qualifier from arg 2.
30419
30420 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
30421
30422         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
30423
30424 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
30425
30426         PR c/38869
30427         * rtl.h (reinit_regs): New prototype.
30428         * regclass.c: Include ira.h.
30429         (reinit_regs): New.
30430         * Makefile.in (regclass.o): Add ira.h.
30431         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
30432
30433 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
30434
30435         PR target/38736
30436         * c-common.c (handle_aligned_attribute): Use
30437         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
30438         default alignment value.
30439
30440         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
30441
30442         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
30443         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
30444
30445         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
30446         __BIGGEST_ALIGNMENT__.
30447
30448         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
30449
30450 2009-01-18  Richard Guenther  <rguenther@suse.de>
30451
30452         PR tree-optimization/38819
30453         * tree-flow.h (operation_could_trap_helper_p): Declare.
30454         * tree-eh.c (operation_could_trap_helper_p): Export.
30455         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
30456         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
30457         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
30458         are about to insert a possibly trapping instruction and fail
30459         in this case.
30460
30461 2009-01-18  Andreas Schwab  <schwab@suse.de>
30462
30463         * doc/install.texi (Configuration): Remove obsolete paragraph
30464         about use of --with-gnu-ld with --with-gnu-as.
30465
30466 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
30467
30468         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
30469         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
30470         Follow spelling conventions.
30471
30472 2009-01-18  Ben Elliston  <bje@au.ibm.com>
30473
30474         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
30475         C++ warning about implicit conversion from void * to struct
30476         bitmap_head_def *.
30477         (bitmap_obstack_free): Likewise for bitmap_element *.
30478         * Makefile.in (bitmap.o-warn): Remove.
30479
30480 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
30481
30482         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
30483
30484 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
30485             Tobias Grosser  <tobi.grosser@amd.com>
30486
30487         * graphite.c (graphite_trans_scop_block): Do not block single
30488         nested loops.
30489
30490 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
30491
30492         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
30493         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
30494         test with assertion.
30495
30496 2009-01-16  Richard Guenther  <rguenther@suse.de>
30497
30498         PR tree-optimization/38835
30499         PR middle-end/36227
30500         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
30501         and INT + PTR -> (INT)(PTR p+ INT) folding.
30502         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
30503
30504 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
30505
30506         PR target/38554
30507         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
30508         the subreg from a lowpart subreg if it is also casting the value.
30509
30510 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
30511             Tobias Grosser  <tobi.grosser@amd.com>
30512
30513         * graphite.c (compare_prefix_loops): New.
30514         (build_scop_canonical_schedules): Rewritten.
30515         (graphite_transform_loops): Move build_scop_canonical_schedules
30516         after build_scop_iteration_domain.
30517
30518 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
30519             Tobias Grosser  <tobi.grosser@amd.com>
30520
30521         * graphite.c (add_conditions_to_domain): Add the loops to
30522         the dimension of the iteration domain.  Do copy the domain
30523         only when it exists.
30524         (build_scop_conditions_1): Do not call add_conditions_to_domain.
30525         (add_conditions_to_constraints): New.
30526         (can_generate_code_stmt, can_generate_code): Removed.
30527         (gloog): Do not call can_generate_code.
30528         (graphite_transform_loops): Call add_conditions_to_constraints
30529         after building the iteration domain.
30530
30531 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
30532
30533         PR tree-optimization/38789
30534         * tree-ssa-threadedge.c
30535         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
30536         __builtin_constant_p.
30537
30538 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
30539
30540         * dce.c (delete_unmarked_insns): Reversed the order that insns are
30541         examined before deleting them.
30542
30543 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
30544
30545         * function.c (aggregate_value_p): Correctly extract the function
30546         type from CALL_EXPR_FN lookup.
30547
30548 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
30549
30550         * config/picochip/picochip.c (picochip_override_options): Revert
30551         CFI asm flag disable commited previously.
30552
30553 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
30554             Tobias Grosser  <tobi.grosser@amd.com>
30555             Jan Sjodin  <jan.sjodin@amd.com>
30556
30557         * graphite.c (scan_tree_for_params): On substractions negate
30558         all the coefficients of the term.
30559         (clast_to_gcc_expression_red): New.  Handle reduction expressions
30560         of more than two operands.
30561         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
30562         (get_vdef_before_scop): Handle also the case of default definitions.
30563
30564 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
30565
30566         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
30567         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
30568         Also use them when walking CALL_INSN_FUNCTION_USAGE.
30569
30570 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
30571             Joey Ye  <joey.ye@intel.com>
30572
30573         PR middle-end/37843
30574         * cfgexpand.c (expand_stack_alignment): Don't update stack
30575         boundary nor check incoming stack boundary here.
30576         (gimple_expand_cfg): Update stack boundary and check incoming
30577         stack boundary here.
30578
30579 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
30580
30581         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
30582
30583 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
30584
30585         PR rtl-optimization/38245
30586         * calls.c (expand_call): Add stack arguments to
30587         CALL_INSN_FUNCTION_USAGE even for pure calls (when
30588         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
30589         in regs and partially in memory or BLKmode arguments.
30590         (emit_library_call_value_1): Add stack arguments to
30591         CALL_INSN_FUNCTION_USAGE even for pure calls (when
30592         ACCUMULATE_OUTGOING_ARGS).
30593         * dce.c: Include tm_p.h.
30594         (find_call_stack_args): New function.
30595         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
30596         argument.
30597         (mark_insn): Call find_call_stack_args for CALL_Ps.
30598         (prescan_insns_for_dce): Walk insns backwards in bb rather than
30599         forwards.  Allocate and free arg_stores bitmap if needed, pass it
30600         down to deletable_insn_p, don't mark stores set in arg_stores
30601         bitmap, clear the bitmap at the beginning of each bb.
30602         * Makefile.in (dce.o): Depend on $(TM_P_H).
30603
30604 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
30605
30606         PR target/22599
30607         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
30608         to make sure the insn is a conditional test (bug 22599).  Reformat a
30609         few long lines.
30610
30611 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
30612
30613         PR middle-end/38431
30614         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
30615         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
30616         (gloog): Do not call cleanup_tree_cfg.
30617         (graphite_transform_loops): Call cleanup_tree_cfg after all
30618         scops have been code generated.
30619
30620 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
30621         * doc/gty.texi (Invoking the garbage collector): Added new node
30622         and section documenting ggc_collect.
30623
30624 2009-01-14  Richard Guenther  <rguenther@suse.de>
30625
30626         PR tree-optimization/38826
30627         PR middle-end/38477
30628         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
30629         initialization notes only if we actually emitted a warning.
30630         (intra_create_variable_infos): Add constraints for a result decl
30631         that is passed by hidden reference.
30632         (build_pred_graph): Mark all related variables non-direct on
30633         address-taking.
30634
30635 2009-01-14  Nick Clifton  <nickc@redhat.com>
30636
30637         * ira-conflicts.c: Include addresses.h for the definition of
30638         base_reg_class.
30639         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
30640         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
30641
30642 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
30643
30644         PR target/38811
30645         * Makefile.in (ira-lives.o): Add except.h.
30646
30647         * ira-lives.c: Include except.h.
30648         (process_bb_node_lives): Process can_throw_internal.
30649
30650 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
30651
30652         PR rtl-optimization/38774
30653         * combine.c (simplify_set): When undoing cc_use change, don't do
30654         PUT_CODE on the newly created comparison, but instead put back the
30655         old comparison.
30656
30657 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
30658
30659         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
30660         values.  Remove duplicate arm8 entry.
30661
30662 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
30663
30664         PR tree-optimization/38786
30665         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
30666         the SSA_NAME case of expand_scalar_variables_expr.
30667         Set the type of an expression to the type of its assign statement.
30668         (expand_scalar_variables_expr): Also gather the scalar computation
30669         used to index the memory access.  Do not pass loop_p.
30670         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
30671         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
30672         the gimple_stmt_iterator where it inserts new code.
30673         Do not pass loop_p.
30674         (copy_bb_and_scalar_dependences): Do not pass loop_p.
30675         (translate_clast): Update call to copy_bb_and_scalar_dependences.
30676
30677 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
30678
30679         * graphite.h (debug_value): Removed.
30680         * graphite.c (debug_value): Removed.
30681
30682 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
30683
30684         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
30685         ldrd/strd with two 32-bit instructions.
30686
30687 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
30688
30689         * config/arm/arm.c (struct processors): Pass for speed down into
30690         cost helper functions.
30691         (const_ok_for_op): Handle COMPARE and inequality nodes.
30692         (arm_rtx_costs_1): Rewrite.
30693         (arm_size_rtx_costs): Update prototype.
30694         (arm_rtx_costs): Pass speed down to helper functions.
30695         (arm_slowmul_rtx_costs): Rework cost calculations.
30696         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
30697         (arm_9e_rtx_costs): Likewise.
30698
30699 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
30700
30701         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
30702         relocations of local symbols wider than UNITS_PER_WORD are not valid.
30703         (alpha_legitimize_address): Do not split local symbols wider than
30704         UNITS_PER_WORD into HIGH/LO_SUM parts.
30705
30706 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
30707
30708         PR bootstrap/38580
30709         * gcc.c (process_command): Replace call to execvp with calls
30710         to pex_one and exit.
30711
30712 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
30713
30714         PR target/29141
30715         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
30716         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
30717         variant for devices with 3-byte PC.
30718         (__tablejump_elpm__): New.
30719
30720 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
30721
30722         PR c/32041
30723         * c-parser.c (c_parser_postfix_expression): Allow `->' in
30724         offsetof member-designator, handle it as `[0].'.
30725
30726 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30727
30728         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
30729         function when not using named sections on targets with named sections
30730         if branch distance is less than 262132.
30731
30732 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
30733
30734         * combine.c (combine_instructions):  Recompute
30735         optimize_this_for_speed_p  for each BB in the main combine loop.
30736
30737 2009-01-12  Tomas Bily  <tbily@suse.cz>
30738
30739         PR middlend/38385
30740         * tree-loop-distribution.c (prop_phis): New function.
30741         (generate_builtin): Call prop_phis.
30742
30743 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
30744
30745         PR tree-optimization/38807
30746         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
30747         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
30748
30749 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
30750
30751         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
30752         subreg of op0 to the original op0.
30753
30754 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
30755
30756         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
30757
30758 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
30759
30760         PR debug/7055
30761         * mips-tfile.c (parse_def): Fix parsing of def strings
30762         starting with digits.
30763
30764 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
30765
30766         PR target/38695
30767         * config/arm/arm.c (arm_is_long_call_p): Don't call
30768         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
30769
30770 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
30771
30772         * regrename.c (regrename_optimize): Fix dumping.
30773         (find_oldest_value_reg): Preserve REG_POINTER.
30774         (copy_hardreg_forward_1): Likewise.
30775
30776 2009-01-09  Diego Novillo  <dnovillo@google.com>
30777
30778         * gimple.h (struct gimple_statement_base) <uid>: Document
30779         the restrictions on its use.
30780         (gimple_uid): Tidy.
30781         (gimple_set_uid): Tidy.
30782
30783 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
30784
30785         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
30786         zero guard even if align_bytes != 0 and count is smaller than
30787         size_needed.
30788
30789 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
30790
30791         PR rtl-optimization/38495
30792         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
30793         (add_range_and_copies_from_move_list): Print all added ranges.
30794         Add ranges to memory optimized destination.
30795
30796 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
30797
30798         PR target/38686
30799         PR target/38708
30800         * config/i386/i386.c (override_options): Reject
30801         -mstringop-strategy=rep_8byte with -m32.
30802         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
30803         to 1.  Do count comparison against epilogue_size_needed at compile
30804         time even when count_exp was constant forced into register.  For
30805         size_needed don't jump to epilogue, instead just avoid aligning
30806         and invoke the body algorithm.  If need_zero_guard, add zero guard
30807         even if count is non-zero, but smaller than size_needed + number of
30808         bytes that could be stored for alignment.
30809         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
30810         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
30811         but smaller than size_needed + number of bytes that could be stored
30812         for alignment.  Compare size_needed with epilogue_size_needed instead
30813         of desired_align - align, don't adjust size_needed, pass
30814         epilogue_size_needed to the epilogue expanders.
30815
30816         PR c/35742
30817         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
30818
30819 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30820
30821         * pa.c (last_address): Change to unsigned.
30822         (update_total_code_bytes): Change argument to unsigned.  Don't
30823         check if insn addresses are set.
30824         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
30825         addresses are not set.
30826         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
30827
30828 2009-01-09  Nick Clifton  <nickc@redhat.com>
30829
30830         * config/sh/symbian.c: Replace uses of DECL_INLINE with
30831         DECL_DECLARED_INLINE_P.
30832
30833 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
30834
30835         PR middle-end/38347
30836         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
30837         GET_MODE (op0) in operand_subword_force calls.
30838
30839         PR middle-end/38771
30840         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
30841         fold_convert arg0 operands to TREE_TYPE (op0) first.
30842
30843 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
30844
30845         * params.def (ira-max-conflict-table-size): Decrease default value
30846         to 1000.
30847
30848 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
30849
30850         PR tree-optimization/37031
30851         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
30852         on parameter_set.
30853         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
30854         allocate it using gc instead of heap, use VEC_quick_push instead of
30855         VEC_safe_push.
30856         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
30857         instead of heap, use VEC_quick_push instead of VEC_safe_push.
30858         * tree-data-ref.h (struct access_matrix): Change matrix to gc
30859         allocated vector from heap allocated.
30860         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
30861         * tree-loop-linear.c (linear_transform_loops): Allocate nest
30862         vector only after perfect_loop_nest_depth call.
30863
30864 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
30865             Jan Sjodin  <jan.sjodin@amd.com>
30866
30867         PR tree-optimization/38559
30868         * graphite.c (debug_value, copy_constraint,
30869         swap_constraint_variables, scale_constraint_variable, ): New.
30870         (get_lower_bound, get_upper_bound): Removed.
30871         (graphite_trans_bb_strip_mine): Clean up this code that works
30872         only for constant number of iterations.  Fully copy upper and
30873         lower bound constraints, not only the constant part of them.
30874         * graphite.h (debug_value): Declared.
30875
30876 2009-01-08  Ira Rosen  <irar@il.ibm.com>
30877
30878         PR tree-optimization/37194
30879         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
30880         Don't add the cost of cost model guard in prologue to scalar
30881         outside cost in case of known number of iterations.
30882
30883 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
30884             Alan Modra  <amodra@bigpond.net.au>
30885
30886         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
30887         non-word-aligned REG+CONST addressing.
30888
30889 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
30890
30891         PR target/38706
30892         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
30893         free_after_compilation when outputting a thunk.
30894         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
30895         Do not call free_after_compilation here.
30896
30897 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
30898
30899         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
30900         (ix86_valid_target_attribute_inner_p): Ditto.
30901
30902 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
30903
30904         PR tree-optimization/38492
30905         PR tree-optimization/38498
30906         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
30907         * tree-chrec.h (scev_is_linear_expression): Declared.
30908         * graphite.c (graphite_cannot_represent_loop_niter): New.
30909         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
30910         (graphite_loop_normal_form): Use gcc_assert.
30911         (scan_tree_for_params): Use CASE_CONVERT.
30912         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
30913         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
30914         Use gcc_assert.  Discard scops that contain unhandled cases.
30915         (build_scop_conditions): Return a boolean status for unhandled cases.
30916         (strip_mine_profitable_p): Print the loop number, not its depth.
30917         (is_interchange_valid): Pass the depth of the loop nest, don't
30918         recompute it wrongly.
30919         (graphite_trans_bb_block): Same.
30920         (graphite_trans_bb_block): Print tentative of loop blocking.
30921         (graphite_trans_scop_block): Do not print that the loop has been
30922         blocked.
30923         (graphite_transform_loops): Do not handle scops that contain condition
30924         scalar phi nodes.
30925
30926 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
30927
30928         AVX Programming Reference (December, 2008)
30929         * config/i386/avxintrin.h (_mm256_stream_si256): New.
30930         (_mm256_stream_pd): Likewise.
30931         (_mm256_stream_ps): Likewise.
30932
30933         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
30934         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
30935         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
30936         (bdesc_special_args): Add __builtin_ia32_movntdq256,
30937         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
30938         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
30939         (ix86_expand_special_args_builtin): Likewise.
30940
30941         * config/i386/sse.md (AVXMODEDI): New.
30942         (avx_movnt<mode>): Likewise.
30943         (avx_movnt<mode>): Likewise.
30944         (<sse>_movnt<mode>): Remove AVX support.
30945         (sse2_movntv2di): Likewise.
30946
30947 2009-01-07  Richard Guenther  <rguenther@suse.de>
30948
30949         PR middle-end/38751
30950         * fold-const.c (extract_muldiv): Remove obsolete comment.
30951         (fold_plusminus_mult_expr): Undo MINUS_EXPR
30952         to PLUS_EXPR canonicalization for the canonicalization.
30953
30954 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
30955
30956         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
30957         hosted cross-compilers generating less efficient code.
30958
30959 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
30960
30961         * function.h (rtl_data): Add a dbr_scheduled_p field.
30962         * reorg.c (dbr_schedule): Set it.
30963         (gate_handle_delay_slots): Check it.
30964         * config/mips/mips.c (mips_base_delayed_branch): Delete.
30965         (mips_reorg): Check flag_delayed_branch instead of
30966         mips_base_delayed_branch.
30967         (mips_override_options): Don't set mips_base_delayed_branch
30968         or flag_delayed_branch.
30969
30970 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
30971
30972         PR rtl-optimization/38426.
30973         * ira.c (ira): Set current_function_is_leaf earlier.
30974
30975 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
30976
30977         PR rtl-optimization/38722
30978         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
30979         too early, only set a flag and modify after last possible
30980         undo_all point.
30981
30982 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
30983
30984         PR c/34252
30985         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
30986         * real.c (decimal_single_format): Correct values of emin and emax.
30987         (decimal_double_format): Ditto.
30988         (decimal_quad_format): Ditto.
30989         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
30990         computation of DECnn_MIN and DECnn_MAX for corrected values of
30991         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
30992         __DECnn_MIN__, and adjust its computation for the corrected value
30993         of emin.
30994
30995 2009-01-06  Jan Hubicka  <jh@suse.cz>
30996
30997         PR target/38744
30998         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
30999
31000 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
31001
31002         * doc/contrib.texi (Contributors): Slightly adjust the end note.
31003         Add Robert Clark to the list of testers.
31004
31005 2009-01-06  Jan Hubicka  <jh@suse.cz>
31006             Kai Tietz  <kai.tietz@onevision.com>
31007
31008         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
31009         * config/i386/i386.c (ix86_expand_call): Add clobbers.
31010
31011 2009-01-06  Jan Hubicka  <jh@suse.cz>
31012             Kai Tietz  <kai.tietz@onevision.com>
31013
31014         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
31015         for w64 ABI.
31016         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
31017         (ix86_nsaved_regs): Count only general purpose regs.
31018         (ix86_nsaved_sseregs): New.
31019         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
31020         to 16 for w64; compute padding and size of sse reg save area.
31021         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
31022         general purpose regs.
31023         (ix86_emit_save_sse_regs_using_mov): New.
31024         (ix86_expand_prologue): Save SSE regs if needed.
31025         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
31026         (ix86_emit_restore_sse_regs_using_mov): New.
31027         (ix86_expand_epilogue): Save SSE regs if needed.
31028
31029 2009-01-06  Jan Hubicka  <jh@suse.cz>
31030             Kai Tietz  <kai.tietz@onevision.com>
31031
31032         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
31033         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
31034         functions when accumulate outgoing args is off.
31035
31036 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
31037
31038         PR bootstrap/38742
31039         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
31040         before using pseudos_have_intersected_live_ranges_p.
31041
31042         * ira-int.h (ira_assert): Always define.
31043
31044 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
31045
31046         AVX Programming Reference (December, 2008)
31047         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
31048         (_mm256_permute2_pd): Likewise.
31049         (_mm_permute2_ps): Likewise.
31050         (_mm256_permute2_ps): Likewise.
31051         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
31052         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
31053
31054         * config/i386/i386.c (ix86_builtins): Remove
31055         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
31056         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
31057         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
31058         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
31059         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
31060         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
31061         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
31062         __builtin_ia32_vpermil2ps256.
31063         (ix86_init_mmx_sse_builtins): Updated.
31064         (ix86_expand_args_builtin): Likewise.
31065
31066 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31067
31068         * pa.c (output_call): Relocate non-jump insns in the delay slot of
31069         long absolute calls when generating PA 2.0 code.
31070
31071 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
31072
31073         PR rtl-optimization/38583
31074         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
31075
31076         * params.def (ira-max-conflict-table-size): New.
31077
31078         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
31079
31080         * ira.h (ira_conflicts_p): New external definition.
31081
31082         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
31083         table.  Report this.  Return result of building.
31084         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
31085         building conflict table.
31086
31087         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
31088         (ira_color): Use ira_conflicts_p.
31089
31090         * global.c: Include ira.h.
31091         (pseudo_for_reload_consideration_p, build_insn_chain): Use
31092         ira_conflicts_p.
31093
31094         * Makefile.in (global.o): Add ira.h.
31095
31096         * ira-build.c (mark_all_loops_for_removal,
31097         propagate_some_info_from_allocno): New.
31098         (remove_unnecessary_allocnos): Call
31099         propagate_some_info_from_allocno.
31100         (remove_low_level_allocnos): New.
31101         (remove_unnecessary_regions): Add parameter.  Call
31102         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
31103         parameter to remove_unnecessary_regions.
31104         (ira_build): Remove all regions but root if the conflict table was
31105         not built.  Update conflict hard regs for allocnos crossing calls.
31106
31107         * ira.c (ira_conflicts_p): New global.
31108         (ira): Define and use ira_conflicts_p.
31109
31110         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
31111         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
31112         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
31113
31114 2009-01-06  Ben Elliston  <bje@au.ibm.com>
31115
31116         * gengtype-lex.l (YY_NO_INPUT): Define.
31117
31118 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
31119
31120         PR c/34911
31121         * c-common.c (handle_vector_size_attribute): Also reject
31122         BOOLEAN_TYPE types.
31123
31124 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
31125
31126         PR tree-optimization/38492
31127         * graphite.c (rename_map_elt, debug_rename_elt,
31128         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
31129         rename_map_elt_info, eq_rename_map_elts,
31130         get_new_name_from_old_name, bb_in_sese_p): Moved around.
31131         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
31132         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
31133         (sese_build_livein_liveouts): New.
31134         (new_sese, free_sese): New.
31135         (new_scop): Call new_sese.
31136         (free_scop): Call free_sese.
31137         (rename_variables_from_edge, rename_phis_end_scop): Removed.
31138         (register_old_new_names): Renamed register_old_and_new_names.
31139         (register_scop_liveout_renames, add_loop_exit_phis,
31140         insert_loop_close_phis, struct igp,
31141         default_liveout_before_guard, add_guard_exit_phis,
31142         insert_guard_phis, copy_renames): New.
31143         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
31144         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
31145         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
31146         (scop_adjust_phis_for_liveouts): New.
31147         (gloog): Call scop_adjust_phis_for_liveouts.
31148
31149         * graphite.h (struct sese): Documented.  Added fields liveout,
31150         num_ver and livein.
31151         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
31152         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
31153         (struct scop): Added field liveout_renames.
31154         (SCOP_LIVEOUT_RENAMES): New.
31155
31156 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
31157
31158         PR tree-optimization/38510
31159         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
31160         (translate_clast): Call recompute_all_dominators before
31161         graphite_verify.
31162         (gloog): Call recompute_all_dominators before graphite_verify.
31163
31164 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
31165             Jan Sjodin  <jan.sjodin@amd.com>
31166
31167         PR tree-optimization/38500
31168         * graphite.c (create_sese_edges): Call fix_loop_structure after
31169         splitting blocks.
31170
31171 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
31172
31173         * config.gcc: Add m32r*-*-rtems*.
31174         * config/m32r/rtems.h: New file.
31175
31176 2009-01-05  Ben Elliston  <bje@au.ibm.com>
31177
31178         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
31179         (.po.pox): Likewise.
31180         (po/gcc.pot): Likewise.
31181
31182 2009-01-04  David S. Miller  <davem@davemloft.net>
31183
31184         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
31185         (STARTING_FRAME_OFFSET): Always set to zero.
31186
31187 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
31188
31189         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
31190         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
31191         fixed-point types, and vectors of the same.
31192
31193 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
31194
31195         * config/mips/sync.md (*mb_barrier): Rename to...
31196         (*memory_barrier): ...this.
31197
31198 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
31199
31200         * doc/extend.texi (Function Attributes): Move @cindex after @item
31201         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
31202         and put in alphabetical order. Fix 'target' name and put in order.
31203         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
31204         typos.
31205
31206 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
31207
31208         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
31209         (memory_barrier): Expand as unspec instead of unspec_volatile.
31210         Remove mem:BLK from insn operands.  Use Pmode scratch register.
31211         (*memory_barrier): Define as unspec instead of unspec_volatile.
31212         Use (match_dup 0) as input operand.
31213
31214         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
31215         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
31216         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
31217         scratch register.  Remove operand 1.
31218         (*stbar): Define as unspec instead of unspec_volatile.
31219         Use (match_dup 0) as input operand, remove (const_int 8).
31220         (*membar): Define as unspec instead of unspec_volatile.
31221         Use (match_dup 0) as input operand, remove input operand 2.
31222
31223         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
31224         (memory_barrier): Expand as unspec instead of unspec_volatile.
31225         Remove mem:BLK from insn operands.  Use Pmode scratch register.
31226         (*memory_barrier): Define as unspec instead of unspec_volatile.
31227         Use (match_dup 0) as input operand.
31228
31229         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
31230         Remove mem:BLK from insn operands.  Use Pmode scratch register.
31231         Set volatile flag on operand 0.
31232         (*memory_barrier): New insn pattern.
31233
31234         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
31235         insn operands.
31236         (*memory_barrier): Use (match_dup 0) as input operand.
31237
31238         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
31239         Remove mem:BLK from insn operands.  Use Pmode scratch register.
31240         Set volatile flag on operand 0.
31241         (*mb_internal): New insn pattern.
31242
31243         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
31244
31245 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
31246
31247         PR middle-end/38586
31248         * function.c (struct temp_slot): Move to the section of the file
31249         that deals with temp slots.  Remove field 'address'.
31250         (temp_slot_address_table): New hash table of address -> temp slot.
31251         (struct temp_slot_address_entry): New struct, items for the table.
31252         (temp_slot_address_compute_hash, temp_slot_address_hash,
31253         temp_slot_address_eq, insert_temp_slot_address): Support functions
31254         for the new table.
31255         (find_temp_slot_from_address): Rewrite to use the new hash table.
31256         (remove_unused_temp_slot_addresses): Remove addresses of temp
31257         slots that have been made available.
31258         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
31259         worker function for remove_unused_temp_slot_addresses.
31260         (assign_stack_temp_for_type): Don't clear the temp slot address list.
31261         Add the temp slot address to the address -> temp slot map.
31262         (update_temp_slot_address): Update via insert_temp_slot_address.
31263         (free_temp_slots): Call remove_unused_temp_slot_addresses.
31264         (pop_temp_slots): Likewise.
31265         (init_temp_slots): Allocate the address -> temp slot map, or empty
31266         the map if it is already allocated.
31267         (prepare_function_start): Initialize temp slot processing.
31268
31269 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
31270
31271         PR middle-end/38584
31272         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
31273         Calculate the size of all stack vars assuming no packing of stack
31274         vars will happen, replacing a quadratic algorithm with a linear one.
31275
31276 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
31277
31278         PR target/38707
31279         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
31280         can't be used.
31281
31282 2009-01-03  Diego Novillo  <dnovillo@google.com>
31283
31284         * doc/contrib.texi: Update contributions.
31285
31286 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
31287
31288         PR c++/38705
31289         * builtins.c (fold_builtin_memory_op): Give up if either operand
31290         is volatile.  Set srctype or desttype to non-qualified version
31291         of the other type.
31292
31293         PR c/38700
31294         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
31295         and FUNCTION_DECLs.
31296
31297 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
31298
31299         PR rtl-optimization/35805
31300         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
31301         problem if fast dce is able to remove any instructions.
31302         * dce.c (dce_process_block): Fix dump message.
31303
31304 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
31305
31306         PR 33649
31307         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
31308
31309 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
31310
31311         PR middle-end/38690
31312         * tree-flow.h (op_code_prio, op_prio): New prototypes.
31313         * tree-pretty-print.c (op_code_prio): New function.
31314         (op_prio): No longer static.  Use op_code_prio.
31315         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
31316         Use op_prio and op_code_prio to determine if () should be
31317         printed around operand(s) or not.
31318
31319         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
31320         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
31321         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
31322         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
31323         pp_character instead of pp_string for single letter printing.
31324
31325 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
31326
31327         * doc/extend.texi: Fix '#pragma GCC option' typo.
31328
31329 2009-01-02  Richard Guenther  <rguenther@suse.de>
31330
31331         * doc/install.texi (--enable-checking): Mention different
31332         default for stage1.
31333         (--enable-stage1-checking): Document.
31334
31335 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
31336
31337         PR middle-end/30142
31338         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
31339         case to be an error.
31340
31341 2009-01-02  Ben Elliston  <bje@au.ibm.com>
31342
31343         * config/fp-bit.h (pack_d): Constify argument.
31344         * config/fp-bit.c (makenan): Constify return type. Remove casts.
31345         (isnan): Constify argument.
31346         (isinf): Likewise.
31347         (iszero): Likewise.
31348         (pack_d): Likewise.
31349         (_fpadd_parts): Constify return type.
31350         (_fpmul_parts): Likewise.
31351         (_fpdiv_parts): Likewise.
31352
31353 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
31354
31355         PR c/36489
31356         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
31357         warn about overwriting initializer with side-effects or
31358         -Woverride-init if !IMPLICIT.
31359         (output_init_element): Likewise.  Pass IMPLICIT down to
31360         add_pending_init.
31361         (process_init_element): Add IMPLICIT argument.  Pass it down
31362         to output_init_element.
31363         (push_init_element, pop_init_level, set_designator): Adjust
31364         process_init_element callers.
31365         (set_nonincremental_init, set_nonincremental_init_from_string):
31366         Adjust add_pending_init callers.
31367         (output_pending_init_elements): Adjust output_init_element callers.
31368         * c-tree.h (process_init_element): Adjust prototype.
31369         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
31370         process_init_element callers.
31371
31372 \f
31373 Copyright (C) 2009 Free Software Foundation, Inc.
31374
31375 Copying and distribution of this file, with or without modification,
31376 are permitted in any medium without royalty provided the copyright
31377 notice and this notice are preserved.